hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

query II rowsort
SELECT DISTINCT + - col0 + + 64 AS col1, + 73 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-11
73
0
73
18
73

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col1 + + col0 NOT BETWEEN NULL AND + 46
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT col0 DIV col0 * - col1 - - 84 AS col2 FROM tab2 AS cor0
----
17
33
7

skipif mysql # not compatible
query I rowsort label-4
SELECT col0 / col0 * - col1 - - 84 AS col2 FROM tab2 AS cor0
----
17
33
7

query I rowsort
SELECT + - col1 - + - 78 AS col0 FROM tab0 AS cor0
----
-3
57
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 75 * - 54 IS NULL
----

query I rowsort
SELECT + 39 * - 16 + + col1 FROM tab1 cor0 WHERE 24 < + col1
----
-577

query II rowsort
SELECT DISTINCT - col1, + col0 - - 83 AS col2 FROM tab2 AS cor0
----
-51
129
-67
158
-77
147

query I rowsort
SELECT DISTINCT - col2 + - - 74 FROM tab0 WHERE NULL IS NULL
----
-25
27
64

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

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

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

query I rowsort
SELECT - 58 + - col1 * + + col2 * 33 FROM tab0
----
-125689
-3325
-6988

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

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

query I rowsort
SELECT ALL 85 + - - col2 FROM tab2
----
108
125
143

query I rowsort
SELECT + 91 + ( ( + - ( + 98 ) ) ) + - col2 FROM tab1
----
-103
-66
-75

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

query I rowsort
SELECT ( - 76 ) * 5 * + col0 FROM tab1 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT - - col0 AS col1, + col1 - col2 * + col0 FROM tab2 AS cor0
----
46
-1007
64
-2483
75
-4283

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + col1 + 15 = 59 - + 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT DISTINCT - - ( - ( + MIN( DISTINCT - + col1 ) ) ) col0 FROM tab1 AS cor0
----
47

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

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

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

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

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

query I rowsort
SELECT + col0 * + + 49 AS col2 FROM tab0
----
4263
4753
735

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

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT ALL - col1 DIV - 90 * - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL - col1 / - 90 * - col0 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL + MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
10

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-31
SELECT col0, col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-31
SELECT col0, col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ALL - 50 + + - SUM( 59 ) * + 49 AS col1 FROM tab2 AS cor0
----
-8723

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL - 50 + + - SUM ( 59 ) * + 49 AS col1 FROM tab2 AS cor0
----
-8723

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + + 74, col2 * - ( - + col0 ) * - col1 + + col2 col0 FROM tab2
----
120
-53935
138
-197080
149
-291392

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

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

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + CAST ( + + ( - col0 ) AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT + - 76 + - + 53 FROM tab0 AS cor0 WHERE + col1 * - col2 <= - col2
----
-129
-129
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT ALL - + MAX( ALL + 74 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-74

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - + MAX ( ALL + 74 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-74

query I rowsort
SELECT - col0 * - 82 + col0 FROM tab2 AS cor0
----
3818
5312
6225

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + 5 + - ( - 72 ) + - col1 NOT BETWEEN + + col1 * - + col1 / + col1 AND + - 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT DISTINCT - col0 - + - col2 + col1, col0 * - ( + col2 ) + - + 33 AS col0 FROM tab0
----
-56
-903
113
-738
3
-9636

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

query I rowsort
SELECT ALL - col2 - + + col1 * + col1 AS col1 FROM tab0
----
-100
-451
-6608

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT COUNT( * ) - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( * ) - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT SUM( - 68 ) col0 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-49
SELECT SUM ( - 68 ) col0 FROM tab0 AS cor0
----
-204

query I rowsort
SELECT 20 * 18 FROM tab2
----
360
360
360

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT DISTINCT - ( + COUNT( * ) ) * - ( + + SUM( + 50 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT - ( + COUNT ( * ) ) * - ( + + SUM ( + 50 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 45 + - - 35 AS col0 FROM tab2 WHERE NOT - col1 * - 51 IS NULL
----
80
80
80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT - col0 DIV col1 + col1 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-54
SELECT - col0 / col1 + col1 FROM tab2 AS cor0
----
51
66
77

query I rowsort
SELECT DISTINCT + col1 * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1475
-150212
-18816

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

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

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

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

query I rowsort
SELECT + col1 * - + 85 + + col2 AS col0 FROM tab0 AS cor0
----
-1775
-6838
14

query I rowsort
SELECT DISTINCT 59 * - 0 * - col1 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * - 67 col0 FROM tab0
----
-3484
-3484
-3484

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT + 4 + col0 DIV + + 93 AS col2 FROM tab0 WHERE NOT + col2 - - + col0 IS NULL
----
4
4
5

skipif mysql # not compatible
query I rowsort label-63
SELECT + 4 + col0 / + + 93 AS col2 FROM tab0 WHERE NOT + col2 - - + col0 IS NULL
----
4
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col0 col2 FROM tab2
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8, - col1 col2 FROM tab1
----
8
-14
8
-47
8
-5

query I rowsort
SELECT ALL - 41 * + - col2 * - 78 FROM tab0 AS cor0
----
-150306
-316602
-31980

query I rowsort
SELECT DISTINCT - + col2 * 89 FROM tab2 AS cor0
----
-2047
-3560
-5162

query I rowsort
SELECT + 25 + 90 FROM tab1 cor0
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT + SUM( ALL + + 38 ) + + COUNT( * ) + + 51 + MIN( DISTINCT + - col0 ) + + - 27 AS col2 FROM tab2 AS cor0 WHERE col2 - + col1 NOT BETWEEN + - 0 AND + ( - col1 ) * ( + + 46 )
----
66

skipif mysql # not compatible
query I rowsort label-70
SELECT + SUM ( ALL + + 38 ) + + COUNT ( * ) + + 51 + MIN ( DISTINCT + - col0 ) + + - 27 AS col2 FROM tab2 AS cor0 WHERE col2 - + col1 NOT BETWEEN + - 0 AND + ( - col1 ) * ( + + 46 )
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT MAX( ALL - col1 ) col2 FROM tab1
----
-5

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

query I rowsort
SELECT DISTINCT - + 55 * + col1 - col0 FROM tab1 AS cor0
----
-2676
-360
-821

query I rowsort
SELECT + - col2 - + 16 FROM tab1 AS cor0
----
-112
-75
-84

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

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

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

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

query I rowsort
SELECT 51 * + + 38 AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
1938
1938
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - COUNT( * ) FROM tab1 WHERE - col1 * - - 39 / - 50 * + 31 + - 9 * + ( + - 30 ) + + 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT - COUNT ( * ) FROM tab1 WHERE - col1 * - - 39 / - 50 * + 31 + - 9 * + ( + - 30 ) + + 56 IS NULL
----
0

query I rowsort
SELECT 57 * - col2 * + ( + 50 ) AS col1 FROM tab0 WHERE NOT + 1 * - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-81
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL - COUNT( ALL 92 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL - COUNT ( ALL 92 ) FROM tab0
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-85
SELECT col1 * + CAST( 77 AS SIGNED ) AS col1 FROM tab0 cor0
----
1617
6237
77

skipif mysql # not compatible
query I rowsort label-85
SELECT col1 * + CAST ( 77 AS INTEGER ) AS col1 FROM tab0 cor0
----
1617
6237
77

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

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

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

query II rowsort
SELECT ALL - col0 * - col1, col1 AS col1 FROM tab0 AS cor0
----
1215
81
1827
21
97
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT + 30 DIV ( - col2 ) FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-90
SELECT + 30 / ( - col2 ) FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-91
SELECT - COUNT( + col1 ) DIV COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-91
SELECT - COUNT ( + col1 ) / COUNT ( * ) AS col2 FROM tab1
----
-1

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

query I rowsort
SELECT + 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

skipif mysql # not compatible
query I rowsort label-94
SELECT MAX ( - 67 ) AS col0 FROM tab1
----
-67

query I rowsort
SELECT ALL col0 * + + 68 + + col2 + + ( + + ( col0 ) ) - - - 80 * - - col1 + - ( + 48 ) * col0 + - col1 + - + 47 AS col1 FROM tab2 AS cor0
----
-3189
-3841
-4900

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

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

query I rowsort
SELECT DISTINCT - 95 * col1 * - 69 + + col1 - - - col1 * + col2 AS col2 FROM tab1 AS cor0
----
304936
32485
90440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-98
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-98
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL col2 + 24 FROM tab0 cor0
----
123
34
71

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE NOT + - 75 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 80 ) * + col0 * + col0 + - + ( - ( - + 19 ) ) col2 FROM tab0
----
17981
605501
752701

query I rowsort
SELECT 83 * + + col2 FROM tab1
----
4897
5644
7968

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL NOT IN ( col1, + col1 * + + 4 * + col2 + 63 ) )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE 89 < - 2
----

query II rowsort
SELECT DISTINCT - col2 * col0, col1 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT ALL + - col0 * - col2 * + 45 + ( - col1 ) + col2 * + - 50 * + 78 AS col0 FROM tab0 cor0
----
-151656
129
46034

query II rowsort
SELECT ALL - - 22 * - 55 AS col0, - 84 AS col0 FROM tab1 AS cor0
----
-1210
-84
-1210
-84
-1210
-84

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

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

skipif mysql # not compatible
query I rowsort label-110
SELECT - - CAST ( + - 2 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + + COUNT( * ) - - COUNT( * ) + - 98 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-92

skipif mysql # not compatible
query I rowsort label-111
SELECT + + COUNT ( * ) - - COUNT ( * ) + - 98 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-112
SELECT + + 96 DIV - ( - - SUM( col2 ) ), 18 AS col2 FROM tab1 AS cor0
----
0
18

skipif mysql # not compatible
query II rowsort label-112
SELECT + + 96 / - ( - - SUM ( col2 ) ), 18 AS col2 FROM tab1 AS cor0
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT DISTINCT - 32 + + MIN( DISTINCT + col0 ) FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT - 32 + + MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
19

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> col2 + 74 * 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT ALL col2 DIV 25 AS col2 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL col2 / 25 AS col2 FROM tab1 AS cor0
----
2
2
3

query I rowsort
SELECT DISTINCT + 91 * - 25 * + col0 AS col0 FROM tab1 AS cor0
----
-116025
-193375
-207025

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT + COUNT( * ) * - 7 * MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-2016

skipif mysql # not compatible
query I rowsort label-118
SELECT + COUNT ( * ) * - 7 * MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-2016

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT DISTINCT + 51 DIV - col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT + 51 / - col0 FROM tab0 AS cor0
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-120
SELECT + col0 col0 FROM tab2 AS cor0 WHERE ( + - col1 - CAST( 82 AS SIGNED ) IS NOT NULL )
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-120
SELECT + col0 col0 FROM tab2 AS cor0 WHERE ( + - col1 - CAST ( 82 AS INTEGER ) IS NOT NULL )
----
46
64
75

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL + - SUM( DISTINCT 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + - SUM ( DISTINCT 29 ) FROM tab2 AS cor0
----
-29

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-124
SELECT - CAST( NULL AS SIGNED ), + 95 AS col1 FROM tab0
----
NULL
95
NULL
95
NULL
95

skipif mysql # not compatible
query II rowsort label-124
SELECT - CAST ( NULL AS INTEGER ), + 95 AS col1 FROM tab0
----
NULL
95
NULL
95
NULL
95

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT col1 DIV + ( + 34 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-127
SELECT col1 / + ( + 34 ) FROM tab2
----
1
1
2

query II rowsort
SELECT ALL + col2, + 53 * - col2 FROM tab0
----
10
-530
47
-2491
99
-5247

query I rowsort
SELECT DISTINCT + col1 * + 96 AS col0 FROM tab2
----
4896
6432
7392

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

query I rowsort
SELECT DISTINCT - col0 * + + 72 FROM tab2
----
-3312
-4608
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL + 73 + + - 84 + - + COUNT( * ) AS col1 FROM tab2 WHERE + col1 < NULL
----
-11

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL + 73 + + - 84 + - + COUNT ( * ) AS col1 FROM tab2 WHERE + col1 < NULL
----
-11

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

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

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

query II rowsort
SELECT 29 AS col1, ( + col0 ) FROM tab2 AS cor0
----
29
46
29
64
29
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - 16
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT DISTINCT MIN ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
59

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

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

query I rowsort
SELECT - 63 * + 25 FROM tab0 AS cor0
----
-1575
-1575
-1575

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

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

query I rowsort
SELECT DISTINCT - - 57 * col1 + - - col1 + + + ( 50 ) FROM tab1 AS cor0
----
2776
340
862

query I rowsort
SELECT DISTINCT - 98 + + + col0 * col2 FROM tab0
----
607
772
9505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 14 col2, + 13 AS col0 FROM tab1
----
-14
13

query I rowsort
SELECT ALL + col1 + 5 FROM tab1
----
10
19
52

query I rowsort
SELECT ALL + 3 * + 84 AS col1 FROM tab0
----
252
252
252

query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab0 WHERE NOT + - 30 IS NULL
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT + - MAX( 44 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-47

skipif mysql # not compatible
query I rowsort label-148
SELECT + - MAX ( 44 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT + - MIN( DISTINCT + col1 ) + ( - SUM( ALL + - ( col2 ) ) ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-149
SELECT + - MIN ( DISTINCT + col1 ) + ( - SUM ( ALL + - ( col2 ) ) ) FROM tab2 AS cor0
----
70

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

query I rowsort
SELECT DISTINCT + col1 * - col2 - - - col1 AS col1 FROM tab2
----
-1224
-3157
-3953

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

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT + 13 * - - 24 - MAX( DISTINCT - + col0 ) col1 FROM tab0 AS cor0
----
327

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-153
SELECT DISTINCT + 13 * - - 24 - MAX ( DISTINCT - + col0 ) col1 FROM tab0 AS cor0
----
327

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT - 25 - + - MIN( - col1 ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-154
SELECT - 25 - + - MIN ( - col1 ) FROM tab1 AS cor0
----
-72

query II rowsort
SELECT + 30 - - col2, col2 FROM tab0 AS cor0
----
129
99
40
10
77
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-156
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2, ( + col0 ) * + - ( + - col1 ), - + col2 * + + col2 * ( + ( - CAST( + col2 AS SIGNED ) ) ) * 10, 74 + - + 94 )
----

skipif mysql # not compatible
query III rowsort label-156
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2, ( + col0 ) * + - ( + - col1 ), - + col2 * + + col2 * ( + ( - CAST ( + col2 AS INTEGER ) ) ) * 10, 74 + - + 94 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-159
SELECT - MIN ( DISTINCT 80 ) AS col1 FROM tab2
----
-80

query I rowsort
SELECT DISTINCT - col1 * + 41 FROM tab0
----
-3321
-41
-861

query I rowsort
SELECT DISTINCT - 3 * - 61 AS col0 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL - COUNT( * ) FROM tab2 WHERE + + 94 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL - COUNT ( * ) FROM tab2 WHERE + + 94 IS NOT NULL
----
-3

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + - 36 AS col0 FROM tab1 AS cor0
----
23
32
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT ALL col2 * - col2 + - 94 + - ( col1 ) * - col0 AS col0 FROM tab0
----
-1088
-9798
1633

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

query I rowsort
SELECT ALL col0 * - - col0 + + col1 FROM tab2
----
2167
4173
5692

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-176
SELECT DISTINCT + 37 * - CAST( NULL AS DECIMAL ) * - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + 37 * - CAST ( NULL AS REAL ) * - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + + MAX( ALL + + col2 ) FROM tab0 WHERE + 56 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT + + MAX ( ALL + + col2 ) FROM tab0 WHERE + 56 IS NULL
----
NULL

query I rowsort
SELECT ( - 75 ) FROM tab2
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-179
SELECT DISTINCT CAST( - + 14 AS SIGNED ) * CAST( + - col2 AS SIGNED ) - - 59 + - + col2 + col1 FROM tab1
----
1321
831
990

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT CAST ( - + 14 AS INTEGER ) * CAST ( + - col2 AS INTEGER ) - - 59 + - + col2 + col1 FROM tab1
----
1321
831
990

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

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

query I rowsort
SELECT - 27 * - 18 - col1 FROM tab2 AS cor0
----
409
419
435

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

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

query I rowsort
SELECT + col1 + - - ( - col0 ) AS col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT + 29 + + col2 + + - col0 FROM tab1
----
3
6
74

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT ALL - + COUNT( * ), - 36 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-186
SELECT ALL - + COUNT ( * ), - 36 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 12 col0 FROM tab0
----
-11
69
9

query I rowsort
SELECT ALL col2 * + col1 - col1 AS col1 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-189
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col2, col2 col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

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

query I rowsort
SELECT ALL col1 * - - 52 FROM tab2 AS cor0
----
2652
3484
4004

query II rowsort
SELECT DISTINCT + 91 AS col1, col1 AS col0 FROM tab2 AS cor0
----
91
51
91
67
91
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT - 16 DIV - 65 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-195
SELECT - 16 / - 65 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT - + 78 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-196
SELECT - + 78 / - col1 AS col0 FROM tab1 AS cor0
----
1
15
5

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-198
SELECT ALL - - col0 * - 22 + + + col2 * + CAST( + - 96 AS DECIMAL ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - - col0 * - 22 + + + col2 * + CAST ( + - 96 AS REAL ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 32 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * - 33 + - ( - COUNT( * ) ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - 33 + - ( - COUNT ( * ) ) AS col1 FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT ALL - 37 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL - 37 / col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-202
SELECT ALL SUM( - - 38 ) DIV MAX( 99 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL SUM ( - - 38 ) / MAX ( 99 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + ( + ( - + 40 ) ) AS col2 FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT ALL ( + 40 ) AS col2, COUNT( * ) col2 FROM tab0
----
40
3

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

query I rowsort
SELECT + + col1 + - col1 + 26 * col0 FROM tab0 cor0
----
2262
2522
390

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 56 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-207
SELECT - col2 / 45 + - - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT - col2 / 45 + - - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT DISTINCT col2 * + - 43 + - + col2 + - + 68 * col1 DIV + col2 FROM tab2 AS cor0
----
-1162
-1890
-2630

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT col2 * + - 43 + - + col2 + - + 68 * col1 / + col2 FROM tab2 AS cor0
----
-1162
-1890
-2630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col0 * - 23 col2 FROM tab1 AS cor0
----
-14
-1173
-47
-2093
-5
-1955

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

query II rowsort
SELECT - col0 * + ( - col1 ), col1 FROM tab1 AS cor0
----
425
5
4277
47
714
14

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

query I rowsort
SELECT ALL - - col1 + - - col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT - 3 + + + 25 + - 71 AS col0 FROM tab2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT col2 FROM tab1 WHERE col0 * - CAST( NULL AS SIGNED ) = - col1 * - 15 / col1
----

skipif mysql # not compatible
query I rowsort label-216
SELECT col2 FROM tab1 WHERE col0 * - CAST ( NULL AS INTEGER ) = - col1 * - 15 / col1
----

query I rowsort
SELECT - 62 - col0 + ( + + col2 ) FROM tab1 WHERE NULL NOT BETWEEN + col2 + + 86 AND NULL
----

query I rowsort
SELECT DISTINCT 44 * - col1 * + 65 * 56 + + col2 AS col0 FROM tab0
----
-12972913
-160061
-3363350

query I rowsort
SELECT - col0 * + + col0 * + col0 + + col1 * - - col1 FROM tab0
----
-658062
-912672
3186

query I rowsort
SELECT ALL + col0 * + col1 - + col1 - col1 FROM tab0
----
1053
1785
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL + 60 + - 35 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 60 + - 35 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= ( NULL ) AND NOT ( col2 ) IS NULL
----

query I rowsort
SELECT col2 - + 57 FROM tab0
----
-10
-47
42

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

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

query I rowsort
SELECT DISTINCT - col1 * + col2 + - 21 AS col0 FROM tab2 AS cor0
----
-1194
-3101
-3907

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-230
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + 49 AS SIGNED ) + + ( + - 92 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-230
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + 49 AS INTEGER ) + + ( + - 92 ) >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT MIN( DISTINCT + ( - + col1 ) ) * - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-233
SELECT MIN ( DISTINCT + ( - + col1 ) ) * - COUNT ( * ) FROM tab0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT 18 DIV - - col0 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-234
SELECT 18 / - - col0 AS col1 FROM tab0
----
0
0
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT - 45 DIV + COUNT( * ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-236
SELECT - 45 / + COUNT ( * ) AS col0 FROM tab0
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT MIN( DISTINCT + + col0 ) + - + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-239
SELECT MIN ( DISTINCT + + col0 ) + - + COUNT ( * ) FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL COUNT( * ) + + + COUNT( * ) FROM tab0, tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL COUNT ( * ) + + + COUNT ( * ) FROM tab0, tab2 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT + 10 * COUNT( * ) + 41 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-241
SELECT + 10 * COUNT ( * ) + 41 FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 / - 64 = NULL
----

query I rowsort
SELECT ALL - - col2 + 54 * + + 96 * + 0 * - col1 AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT - + col1 DIV - col2 - + col2 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-244
SELECT - + col1 / - col2 - + col2 FROM tab0 AS cor0
----
-46
-8
-99

query I rowsort
SELECT DISTINCT - - col2 + - + 68 FROM tab1 AS cor0
----
-9
0
28

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT DISTINCT + col1 DIV col2 DIV - - 37 + - + col2 col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-246
SELECT DISTINCT + col1 / col2 / - - 37 + - + col2 col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL - MAX( + col1 ) - + ( - COUNT( * ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL - MAX ( + col1 ) - + ( - COUNT ( * ) ) FROM tab0
----
-78

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-249
SELECT ALL col0 + + + col1 - - + 86 col2, CAST( - - col1 AS SIGNED ) + + 1 FROM tab2
----
183
52
227
78
228
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-249
SELECT ALL col0 + + + col1 - - + 86 col2, CAST ( - - col1 AS INTEGER ) + + 1 FROM tab2
----
183
52
227
78
228
68

query I rowsort
SELECT 57 - + col0 AS col0 FROM tab1
----
-28
-34
6

query I rowsort
SELECT DISTINCT ( - + 74 ) * - + 26 + + 92 - + - 2 AS col1 FROM tab0
----
2018

query I rowsort
SELECT ALL 37 - - col2 AS col2 FROM tab0
----
136
47
84

query I rowsort
SELECT - 18 + + - col0 FROM tab2 AS cor0
----
-64
-82
-93

query I rowsort
SELECT + - 38 + - col1 AS col2 FROM tab1 AS cor0
----
-43
-52
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-255
SELECT + 33 * CAST( - + col2 AS SIGNED ) + 35 FROM tab0 AS cor0
----
-1516
-295
-3232

skipif mysql # not compatible
query I rowsort label-255
SELECT + 33 * CAST ( - + col2 AS INTEGER ) + 35 FROM tab0 AS cor0
----
-1516
-295
-3232

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

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

query I rowsort
SELECT DISTINCT + col1 * - - col1 FROM tab0 WHERE NOT + col1 + col2 IS NULL
----
1
441
6561

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

query II rowsort
SELECT DISTINCT + 12 * - 91 + + - col1 + + col1 AS col2, col1 FROM tab0 AS cor0
----
-1092
1
-1092
21
-1092
81

query II rowsort
SELECT - 19 AS col2, - 6 AS col1 FROM tab1 AS cor0
----
-19
-6
-19
-6
-19
-6

query I rowsort
SELECT ALL 30 AS col2 FROM tab1 AS cor0 WHERE col2 > - + 66
----
30
30
30

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

onlyif mysql # DIV for integer division: 
query II rowsort label-263
SELECT + + 54 AS col0, - col2 DIV - 58 AS col2 FROM tab2 AS cor0
----
54
0
54
0
54
1

skipif mysql # not compatible
query II rowsort label-263
SELECT + + 54 AS col0, - col2 / - 58 AS col2 FROM tab2 AS cor0
----
54
0
54
0
54
1

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

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) / - - 75 * - ( - - 10 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT ALL - ( + MAX( DISTINCT + - col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - ( + MAX ( DISTINCT + - col2 ) ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT - 80 + + col1 / - 18 + + CAST( NULL AS SIGNED ) 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-266
SELECT - 80 + + col1 / - 18 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + + col2 AS col2 FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-268
SELECT - + col2 AS col0, col2 + - - CAST( NULL AS SIGNED ) * + col2 col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-268
SELECT - + col2 AS col0, col2 + - - CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT 27 * - - 62 + - + CAST( + MAX( - col2 ) AS SIGNED ) * + - 39 AS col0 FROM tab2 AS cor0
----
777

skipif mysql # not compatible
query I rowsort label-270
SELECT 27 * - - 62 + - + CAST ( + MAX ( - col2 ) AS INTEGER ) * + - 39 AS col0 FROM tab2 AS cor0
----
777

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

query I rowsort
SELECT 64 - + + col0 AS col0 FROM tab0 AS cor0
----
-23
-33
49

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT ALL + col1 + - 94 DIV col0 col0 FROM tab0 AS cor0
----
1
20
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-273
SELECT ALL + col1 + - 94 / col0 col0 FROM tab0 AS cor0
----
1
20
75

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

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

query I rowsort
SELECT ALL 8 FROM tab0 cor0 WHERE col2 >= 42
----
8
8

query I rowsort
SELECT - 49 + + + 2 AS col2 FROM tab0 cor0
----
-47
-47
-47

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

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

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

query I rowsort
SELECT DISTINCT + 45 + ( - + 96 ) FROM tab2 AS cor0
----
-51

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = 85
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT DISTINCT col2 * - col0 DIV + - col0 - - ( - 22 ) FROM tab2
----
1
18
36

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT col2 * - col0 / + - col0 - - ( - 22 ) FROM tab2
----
1
18
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT DISTINCT col2 - - 7 DIV - - 29 * - col0 * - + 80 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT col2 - - 7 / - - 29 * - col0 * - + 80 FROM tab1
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT - - SUM( ALL - - col2 ) FROM tab2 AS cor0 WHERE NOT + 46 / - 87 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT - - SUM ( ALL - - col2 ) FROM tab2 AS cor0 WHERE NOT + 46 / - 87 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 15 - + - 2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL - 89 * + MIN( - 35 ) + - - 20 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
3135

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - 89 * + MIN ( - 35 ) + - - 20 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
3135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + CAST( - COUNT( - 99 ) AS SIGNED ) AS col1 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + CAST ( - COUNT ( - 99 ) AS INTEGER ) AS col1 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-3

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

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

query I rowsort
SELECT - 27 + 97 + col2 + - 59 AS col2 FROM tab0 AS cor0
----
110
21
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col2 * 64 col1 FROM tab1
----
51
-6144
85
-3776
91
-4352

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - 98 * + MAX( DISTINCT col1 ) * 20 col0 FROM tab1
----
-92120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-298
SELECT - 98 * + MAX ( DISTINCT col1 ) * 20 col0 FROM tab1
----
-92120

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

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

query I rowsort
SELECT DISTINCT + - col1 * - + 21 FROM tab0 AS cor0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT - + MIN( DISTINCT + + col0 ) * COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-301
SELECT - + MIN ( DISTINCT + + col0 ) * COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-150

query I rowsort
SELECT ALL + + col0 + + + 58 FROM tab0 AS cor0
----
145
155
73

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

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

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

query I rowsort
SELECT DISTINCT - 75 - - + col0 * - 73 AS col1 FROM tab2
----
-3433
-4747
-5550

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

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT col0 DIV 87 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-307
SELECT col0 / 87 FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 92 ) >= col2
----

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

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

query I rowsort
SELECT - col0 - + col2 + 14 * + 5 AS col2 FROM tab1
----
-74
-77
-89

query I rowsort
SELECT DISTINCT 5 + + col1 FROM tab2
----
56
72
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - - col1 col1 FROM tab1
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 * col1 col2 FROM tab0
----
1365
5265
65

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-315
SELECT ALL + col2 / + col1 * col2 col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT col1 * + + ( ( 66 ) ) - + - 8 AS col0 FROM tab1 AS cor0
----
3110
338
932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - - col0 col1 FROM tab0 AS cor0 WHERE NOT + 73 < col2
----
62
97

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT ( 83 * - 72 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-320
SELECT ALL * FROM tab1 WHERE NOT ( + CAST( 75 AS SIGNED ) + - col0 ) <> ( col0 )
----

skipif mysql # not compatible
query III rowsort label-320
SELECT ALL * FROM tab1 WHERE NOT ( + CAST ( 75 AS INTEGER ) + - col0 ) <> ( col0 )
----

query I rowsort
SELECT col1 * 69 FROM tab0 WHERE NOT ( col1 + - 61 ) IS NOT NULL
----

query I rowsort
SELECT + 47 + + col1 * + col2 AS col1 FROM tab2 WHERE NOT ( + col2 * col0 ) IS NULL
----
1220
3127
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT DISTINCT 2 * - SUM( ALL 49 ) + - 42 AS col1 FROM tab0
----
-336

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT 2 * - SUM ( ALL 49 ) + - 42 AS col1 FROM tab0
----
-336

query I rowsort
SELECT - col1 + + 35 AS col2 FROM tab1
----
-12
21
30

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) = + 95 + + col1
----

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

query I rowsort
SELECT ALL - 47 / - 86 + col1 * 1 AS col0 FROM tab0 WHERE 8 IS NULL
----

query I rowsort
SELECT ALL 17 AS col0 FROM tab2 WHERE NULL < ( + col1 + 30 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 * 34 col2 FROM tab0
----
-3026

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

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

query I rowsort
SELECT DISTINCT 93 + col2 FROM tab2 WHERE NOT + 35 * col1 > NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT ( ( - 72 ) ) > 40
----
14
47
5

query I rowsort
SELECT 46 - + col0 FROM tab0
----
-41
-51
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-337
SELECT ALL + CAST( NULL AS SIGNED ) - + MAX( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + CAST ( NULL AS INTEGER ) - + MAX ( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / - 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT ALL col2 * + CAST( + 8 AS SIGNED ) FROM tab0
----
376
792
80

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL col2 * + CAST ( + 8 AS INTEGER ) FROM tab0
----
376
792
80

query I rowsort
SELECT ( 58 ) * col2 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT + col0 * 44 FROM tab1
----
2244
3740
4004

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-343
SELECT 8 * + CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-343
SELECT 8 * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
24

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab1 cor0 WHERE NOT + 12 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 0 + 34 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 * col1 )
----

query I rowsort
SELECT ALL + col2 / col2 FROM tab1 AS cor0 WHERE NOT NULL <> + col1 + + col2
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE + 4 / ( + col1 * - col0 ) NOT IN ( - 46 )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 + + col0 col1 FROM tab0
----
128
138
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 + + col2 IN ( 76 * col2 )
----

skipif mysql # not compatible
query I rowsort label-349
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 + + col2 IN ( 76 * col2 )
----

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 WHERE ( 50 ) NOT BETWEEN 26 * - col0 AND ( 26 )
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT COUNT( * ) - 87 AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-351
SELECT COUNT ( * ) - 87 AS col0 FROM tab0
----
-84

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT 22 <= 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL + COUNT( * ) - CAST( - 96 AS SIGNED ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL + COUNT ( * ) - CAST ( - 96 AS INTEGER ) FROM tab2 AS cor0
----
99

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 52 * - col2 NOT IN ( + 16 )
----

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

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

query I rowsort
SELECT col1 * - col0 - 41 FROM tab1 cor0
----
-4318
-466
-755

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

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

query I rowsort
SELECT ALL + col0 - + col0 * 83 FROM tab1 AS cor0
----
-4182
-6970
-7462

query I rowsort
SELECT DISTINCT + 6 + col0 AS col2 FROM tab1 AS cor0
----
57
91
97

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

query I rowsort
SELECT DISTINCT col2 * - 26 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( * ) * - 44 AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( * ) * - 44 AS col2 FROM tab0
----
132

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( col0 + 32 * ( 47 ) ) <> NULL
----

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

query I rowsort
SELECT ALL 53 * 34 * col2 AS col0 FROM tab0
----
178398
18020
84694

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col0 NOT IN ( col2 )
----

query I rowsort
SELECT ALL col0 + 47 AS col0 FROM tab1 WHERE col0 * + 50 IS NOT NULL
----
132
138
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-104
-133
-69

query I rowsort
SELECT DISTINCT + 36 * - col0 FROM tab1
----
-1836
-3060
-3276

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

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL NOT BETWEEN 0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - SUM( - - 47 ) AS col2 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-374
SELECT - SUM ( - - 47 ) AS col2 FROM tab2
----
-141

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 + + 42 NOT BETWEEN col2 * + col1 AND col0
----

query I rowsort
SELECT - 44 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) <> - col2
----

query I rowsort
SELECT DISTINCT col1 / col1 FROM tab0 AS cor0 WHERE ( col2 + - col1 ) BETWEEN ( + 16 ) AND - col0 * 15 - - 64
----

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

query I rowsort
SELECT 86 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT CAST( + + 54 AS SIGNED ) * MIN( DISTINCT + col2 ) - - 23 AS col2 FROM tab2
----
1265

skipif mysql # not compatible
query I rowsort label-382
SELECT CAST ( + + 54 AS INTEGER ) * MIN ( DISTINCT + col2 ) - - 23 AS col2 FROM tab2
----
1265

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ALL SUM( - 62 ) AS col1 FROM tab2, tab2 AS cor0
----
-558

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL SUM ( - 62 ) AS col1 FROM tab2, tab2 AS cor0
----
-558

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT 25 FROM tab1, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT col1 * + + ( 51 ) * col2 FROM tab2 AS cor0
----
157080
198186
59823

query I rowsort
SELECT col1 + 47 FROM tab2 AS cor0
----
114
124
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 81 AS col1, + col1 - + 3 col1 FROM tab1 cor0
----
-81
11
-81
2
-81
44

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

query I rowsort
SELECT ALL + 93 + + col1 AS col2 FROM tab0 AS cor0
----
114
174
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT + col1 + + + CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-392
SELECT + col1 + + + CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
28
37
9

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

query I rowsort
SELECT + 25 + - col0 FROM tab1
----
-26
-60
-66

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

query I rowsort
SELECT - ( + 46 ) * col2 AS col1 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT - 6 * - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT - 6 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-398
SELECT ALL + col0 + + col2 col1, col1 DIV + col2 FROM tab2
----
104
1
133
1
69
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-398
SELECT ALL + col0 + + col2 col1, col1 / + col2 FROM tab2
----
104
1
133
1
69
2

query I rowsort
SELECT ALL - 36 + + 98 FROM tab1
----
62
62
62

query III rowsort
SELECT * FROM tab2 WHERE - col1 / + col0 * + col1 - + col1 IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 88 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT ALL 64 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 >= ( + - col0 + - + CAST( col1 AS SIGNED ) * + 47 )
----

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL 64 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 >= ( + - col0 + - + CAST ( col1 AS INTEGER ) * + 47 )
----

query I rowsort
SELECT col1 + - 71 AS col1 FROM tab2 AS cor0
----
-20
-4
6

query I rowsort
SELECT col1 + - - 76 * 20 * col0 * + col0 + + col0 AS col2 FROM tab0 AS cor0
----
11504988
14301778
342096

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 <> - 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query II rowsort
SELECT + 51 AS col0, + 61 FROM tab2 cor0
----
51
61
51
61
51
61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 > + 95
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 46 AS col0, col1 col1 FROM tab1 AS cor0
----
46
14
46
47
46
5

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT + col0 DIV + 35 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-414
SELECT + col0 / + 35 FROM tab0 AS cor0
----
0
2
2

query II rowsort
SELECT + col0 * - 98 AS col0, ( 92 ) + + + col0 + - - col1 AS col1 FROM tab2
----
-4508
189
-6272
233
-7350
234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab2 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE NOT NULL = ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-418
SELECT COUNT( * ) AS col0, + 45 - - - 22 / + + 45 + CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-418
SELECT COUNT ( * ) AS col0, + 45 - - - 22 / + + 45 + CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL MIN( - 98 ) AS col2 FROM tab1 WHERE NOT - 12 IN ( - col0 * 89 - - ( 78 ) * col1 )
----
-98

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL MIN ( - 98 ) AS col2 FROM tab1 WHERE NOT - 12 IN ( - col0 * 89 - - ( 78 ) * col1 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - 96 * - ( COUNT( * ) ) AS col0 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-420
SELECT - 96 * - ( COUNT ( * ) ) AS col0 FROM tab2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + COUNT( * ) * - 9 AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-421
SELECT + COUNT ( * ) * - 9 AS col2 FROM tab2
----
-27

query I rowsort
SELECT - 75 FROM tab1 WHERE NOT - 13 > NULL
----

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - - col1 ) AS col1 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col2 + 51
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-426
SELECT 5 + - - 91 * col0 FROM tab2 AS cor0 WHERE NOT + 31 NOT BETWEEN + col2 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-426
SELECT 5 + - - 91 * col0 FROM tab2 AS cor0 WHERE NOT + 31 NOT BETWEEN + col2 AND - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - + col0 * - - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-428
SELECT ALL col0 AS col2, ( + ( - ( + - col0 ) ) ) * - 31 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-428
SELECT ALL col0 AS col2, ( + ( - ( + - col0 ) ) ) * - 31 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-430
SELECT * FROM tab1 WHERE NOT col0 < ( CAST( col2 AS SIGNED ) + 70 )
----

skipif mysql # not compatible
query III rowsort label-430
SELECT * FROM tab1 WHERE NOT col0 < ( CAST ( col2 AS INTEGER ) + 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) * + 32 col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

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

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

query I rowsort
SELECT - col2 * 84 AS col2 FROM tab2 cor0 WHERE + col1 + + - col1 * - - ( + ( col0 ) ) * + - col2 BETWEEN + 77 / + col0 AND - col2
----

query I rowsort
SELECT col1 * + 72 FROM tab2 cor0
----
3672
4824
5544

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-436
SELECT + - col2 DIV + 41 AS col0, - col1 * - + ( + 64 ) FROM tab0 AS cor0
----
-1
5184
-2
64
0
1344

skipif mysql # not compatible
query II rowsort label-436
SELECT + - col2 / + 41 AS col0, - col1 * - + ( + 64 ) FROM tab0 AS cor0
----
-1
5184
-2
64
0
1344

query I rowsort
SELECT - col1 * - ( + col1 ) * - + 80 AS col1 FROM tab2 AS cor0 WHERE 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT col2 / - + CAST( NULL AS SIGNED ) + - + col1 + - - 59 / + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT col2 / - + CAST ( NULL AS INTEGER ) + - + col1 + - - 59 / + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 36 + col0 * - col2 FROM tab1 AS cor0
----
-4932
-5051
-6224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-440
SELECT DISTINCT - col0 + CAST( - + col1 AS SIGNED ) AS col1, 0 FROM tab0
----
-108
0
-96
0
-98
0

skipif mysql # not compatible
query II rowsort label-440
SELECT DISTINCT - col0 + CAST ( - + col1 AS INTEGER ) AS col1, 0 FROM tab0
----
-108
0
-96
0
-98
0

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

query I rowsort
SELECT DISTINCT 57 + col1 FROM tab1
----
104
62
71

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( 11 ) > - + col2 - + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 88 + - - col1 FROM tab0
----
109
169
89

query III rowsort
SELECT * FROM tab1 WHERE col2 <= + + 61
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT MAX( + col1 ) + - 54 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-446
SELECT MAX ( + col1 ) + - 54 FROM tab1
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 col1 FROM tab1
----
138
65
90

query II rowsort
SELECT + col2 * + 92 + col2, col1 + + 25 AS col1 FROM tab2 cor0
----
2139
76
3720
102
5394
92

query I rowsort
SELECT ALL 68 AS col0 FROM tab2 cor0 WHERE NOT - 21 NOT IN ( - 26 )
----

query II rowsort
SELECT ALL - col1, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 72 / col0 > col1
----

query II rowsort
SELECT DISTINCT + 11 + - col2 * + col1, col1 FROM tab2 AS cor0
----
-1162
51
-3069
77
-3875
67

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < - ( - col1 ) + + col2
----
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-454
SELECT + 76 * 29 FROM tab2 WHERE NOT - col1 = - 82 / col0 * + + CAST( + + 62 AS DECIMAL ) + - col0
----
2204
2204
2204

skipif mysql # not compatible
query I rowsort label-454
SELECT + 76 * 29 FROM tab2 WHERE NOT - col1 = - 82 / col0 * + + CAST ( + + 62 AS REAL ) + - col0
----
2204
2204
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT + SUM( DISTINCT - - col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-455
SELECT + SUM ( DISTINCT - - col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT 84 + CAST( + AVG ( DISTINCT + 64 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT 36 > + ( - col1 ) * + + 56 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT 84 + CAST ( + AVG ( DISTINCT + 64 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT 36 > + ( - col1 ) * + + 56 - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT ALL + 5 FROM tab2 AS cor0 WHERE NOT - col2 / + col2 * + + col2 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + + COUNT( * ) * - - ( + - 26 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-461
SELECT + + COUNT ( * ) * - - ( + - 26 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-78

query I rowsort
SELECT 28 AS col0 FROM tab0 cor0 WHERE NOT + col2 - 94 IS NULL
----
28
28
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-463
SELECT - + col1 * 25 * CAST( NULL AS DECIMAL ) col2 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-463
SELECT - + col1 * 25 * CAST ( NULL AS REAL ) col2 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + col1 * + + col1 <= ( col0 )
----
-2

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + col1 * + + col1 <= ( col0 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT + ( COUNT( * ) ) * + 55 AS col1 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-465
SELECT + ( COUNT ( * ) ) * + 55 AS col1 FROM tab2
----
165

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL MIN( + 51 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL MIN ( + 51 ) FROM tab2
----
51

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IN ( - col1 * + 53 * + + col1, - col1 )
----

query II rowsort
SELECT ALL - col2 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

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

query I rowsort
SELECT 44 FROM tab0 AS cor0 WHERE NOT ( - 99 IS NULL )
----
44
44
44

query I rowsort
SELECT + col2 - + 15 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
25
43
8

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT ALL col0 DIV + col1 + + + 72 FROM tab2 AS cor0
----
72
72
73

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL col0 / + col1 + + + 72 FROM tab2 AS cor0
----
72
72
73

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

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

query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 77 + + col1 * col1 FROM tab2 cor0
----
2524
4412
5852

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT DISTINCT - - 52 DIV + ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN col1 * + col1 + col2 AND NULL
----
0
3

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT - - 52 / + ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN col1 * + col1 + col2 AND NULL
----
0
3

query II rowsort
SELECT + 32 + - 86 AS col1, + col2 + - ( + col2 ) FROM tab2 AS cor0
----
-54
0
-54
0
-54
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT DISTINCT + COUNT( * ) * - ( - 20 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT + COUNT ( * ) * - ( - 20 ) FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT - - col0 * - + ( 24 ) AS col1 FROM tab1 AS cor0
----
-1224
-2040
-2184

query I rowsort
SELECT DISTINCT - 38 + + col0 FROM tab2 AS cor0
----
26
37
8

query II rowsort
SELECT DISTINCT + 89 + + + col0 AS col2, + 49 * - col0 AS col0 FROM tab0 cor0
----
104
-735
176
-4263
186
-4753

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

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT DISTINCT + SUM( ALL - col1 ) + + 68 AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT + SUM ( ALL - col1 ) + + 68 AS col1 FROM tab1
----
2

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT + COUNT( * ) + + ( 17 ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-490
SELECT + COUNT ( * ) + + ( 17 ) FROM tab1 cor0
----
20

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 34 * + - col2 * + ( col1 )
----

query I rowsort
SELECT ALL - 80 * - - 62 + - - col0 * + - 96 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT MAX( + + 70 ) * - 69 FROM tab2
----
-4830

skipif mysql # not compatible
query I rowsort label-495
SELECT MAX ( + + 70 ) * - 69 FROM tab2
----
-4830

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <> NULL
----
0

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

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

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

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

query I rowsort
SELECT ALL - - col0 + - 5 AS col2 FROM tab0 AS cor0
----
10
82
92

query I rowsort
SELECT + col0 - 49 + - 84 FROM tab2 cor0
----
-58
-69
-87

query I rowsort
SELECT ALL + + 63 FROM tab0 AS cor0 WHERE NOT col2 + - col1 NOT BETWEEN - + col0 AND - 11 + + 23 + + ( - col2 ) + + 7 + - + col0
----

query I rowsort
SELECT + col0 + col1 * 18 AS col0 FROM tab1 AS cor0
----
175
303
937

query II rowsort
SELECT + - 89 AS col2, - 37 + - ( + col2 ) FROM tab2 AS cor0 WHERE ( - + col1 ) = + - 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT DISTINCT COUNT( * ) - + + ( - COUNT( * ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT COUNT ( * ) - + + ( - COUNT ( * ) ) FROM tab1
----
6

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-513
SELECT ALL - + col1 col0, + 95 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
9
-81
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-513
SELECT ALL - + col1 col0, + 95 / + col2 AS col0 FROM tab0 AS cor0
----
-1
0
-21
9
-81
2

query I rowsort
SELECT DISTINCT 35 * - 33 * col1 AS col0 FROM tab0
----
-1155
-24255
-93555

query II rowsort
SELECT DISTINCT - col2 * - 95 AS col1, col0 + ( - + col0 ) + - + col2 AS col2 FROM tab2
----
2185
-23
3800
-40
5510
-58

query I rowsort
SELECT 24 * - + ( col0 ) AS col1 FROM tab0
----
-2088
-2328
-360

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

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

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

skipif mysql # not compatible
query I rowsort label-518
SELECT - + ( + COUNT ( * ) ) FROM tab1 cor0 WHERE NOT + col0 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL ( - MIN( DISTINCT - col1 ) ) FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL ( - MIN ( DISTINCT - col1 ) ) FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col0 + - 8 + + col0 col2 FROM tab1 AS cor0
----
-348
-4194
-671

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 AS col1, - col1 * - col2 col2 FROM tab1
----
46
1344
46
295
46
3196

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

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

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

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

query II rowsort
SELECT ALL - col1 AS col0, - ( + - 49 ) * col2 FROM tab0
----
-1
4851
-21
490
-81
2303

onlyif mysql # DIV for integer division: 
query II rowsort label-526
SELECT ALL col2 DIV col1 * + col2 AS col2, - col1 - - col1 + + 32 - + - col1 col1 FROM tab2
----
0
109
0
83
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-526
SELECT ALL col2 / col1 * + col2 AS col2, - col1 - - col1 + + 32 - + - col1 col1 FROM tab2
----
0
109
0
83
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT + 32 DIV col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-527
SELECT + 32 / col0 FROM tab0
----
0
0
2

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-530
SELECT DISTINCT - col1 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-530
SELECT DISTINCT - col1 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-531
SELECT DISTINCT - 58 AS col1, - 48 AS col1 FROM tab0 AS cor0 WHERE + CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-531
SELECT DISTINCT - 58 AS col1, - 48 AS col1 FROM tab0 AS cor0 WHERE + CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-532
SELECT + + col0 DIV + col0 + + + 52 AS col1, - col2 FROM tab0 AS cor0
----
53
-10
53
-47
53
-99

skipif mysql # not compatible
query II rowsort label-532
SELECT + + col0 / + col0 + + + 52 AS col1, - col2 FROM tab0 AS cor0
----
53
-10
53
-47
53
-99

query I rowsort
SELECT ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + col1 col2 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT DISTINCT - + ( + 66 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-66

query I rowsort
SELECT 53 + 89 AS col0 FROM tab1
----
142
142
142

query II rowsort
SELECT + 44, + 61 FROM tab0 AS cor0 WHERE - 92 + + 10 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( - col2 ) + + col0 - + - 87 - - + col0 FROM tab0 cor0
----
1131
822
9884

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL COUNT( * ) + + 53 AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL COUNT ( * ) + + 53 AS col2 FROM tab2 AS cor0
----
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col0 ) = + - col1 / + + ( + - 88 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-542
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-3

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

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

query I rowsort
SELECT ALL 52 * - col2 + - col2 - col1 AS col2 FROM tab2
----
-1270
-2197
-3141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-545
SELECT ALL - CAST( + 5 AS SIGNED ) + col2 col1 FROM tab1
----
54
63
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-545
SELECT ALL - CAST ( + 5 AS INTEGER ) + col2 col1 FROM tab1
----
54
63
91

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

onlyif mysql # DIV for integer division: 
query II rowsort label-547
SELECT 99 DIV ( col2 ) AS col2, - col1 DIV 29 DIV - - col1 AS col1 FROM tab0
----
1
0
2
0
9
0

skipif mysql # not compatible
query II rowsort label-547
SELECT 99 / ( col2 ) AS col2, - col1 / 29 / - - col1 AS col1 FROM tab0
----
1
0
2
0
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT + COUNT( * ) - COUNT( * ) + - + MIN( ALL - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-548
SELECT + COUNT ( * ) - COUNT ( * ) + - + MIN ( ALL - col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT - + col1 * col0 + - 59 FROM tab0 AS cor0
----
-1274
-156
-1886

query I rowsort
SELECT - 30 * - col2 AS col1 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 / + col0 AND NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-554
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + CAST( NULL AS SIGNED ) AND + col2 / + + col1 + + 63 * - 10 + 53 - - - CAST( NULL AS SIGNED ) + - col1 - - - 81 * - + col0
----

skipif mysql # not compatible
query III rowsort label-554
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND + col2 / + + col1 + + 63 * - 10 + 53 - - - CAST ( NULL AS INTEGER ) + - col1 - - - 81 * - + col0
----

query I rowsort
SELECT ALL ( - + col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-556
SELECT ALL - col0 * - ( - col1 ) * - + 87 AS col2, 51 DIV 57 AS col1 FROM tab2
----
204102
0
428736
0
437175
0

skipif mysql # not compatible
query II rowsort label-556
SELECT ALL - col0 * - ( - col1 ) * - + 87 AS col2, 51 / 57 AS col1 FROM tab2
----
204102
0
428736
0
437175
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab1 cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 64 col1 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # DIV for integer division: 
query II rowsort label-560
SELECT col1, col1 DIV col0 + col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-560
SELECT col1, col1 / col0 + col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

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

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

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

skipif mysql # not compatible
query I rowsort label-562
SELECT + - COUNT ( * ) * - 46 AS col2 FROM tab1 cor0
----
138

query I rowsort
SELECT 80 * - + col0 FROM tab0
----
-1200
-6960
-7760

query I rowsort
SELECT + col0 * + + col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT + - col0 + + col0 DIV - + col1 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-565
SELECT + - col0 + + col0 / - + col1 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-194
-91

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

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

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + col1 / + col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 + + col2 + + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-573
SELECT col0 - + col2 - CAST( - 52 AS SIGNED ) * 89 DIV + - 35 FROM tab0 cor0
----
-134
-164
-55

skipif mysql # not compatible
query I rowsort label-573
SELECT col0 - + col2 - CAST ( - 52 AS INTEGER ) * 89 / + - 35 FROM tab0 cor0
----
-134
-164
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-574
SELECT DISTINCT + 40 * COUNT( DISTINCT - 59 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT + 40 * COUNT ( DISTINCT - 59 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
13

query I rowsort
SELECT 22 + + - col0 AS col0 FROM tab2 AS cor0
----
-24
-42
-53

query I rowsort
SELECT 58 + col0 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT - + col0 + + + col2 AS col1 FROM tab1 cor0
----
-23
-26
45

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + + 88 * + col0 * col1 FROM tab0 WHERE - col2 IS NOT NULL
----
1607760
5025240
845064

query I rowsort
SELECT DISTINCT col0 * + col2 - - col1 FROM tab2 WHERE - 29 IS NULL
----

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

query I rowsort
SELECT 21 * ( + - AVG ( DISTINCT col0 ) ) * 58 - - 94 FROM tab2 AS cor0 WHERE NOT NULL <> + col1
----
NULL

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

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

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - 7 * + col0 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + + CAST( - - col0 AS SIGNED ) IS NULL )
----
15
87
97

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

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

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

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

query I rowsort
SELECT + - 49 + 31 FROM tab2 AS cor0
----
-18
-18
-18

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

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

query I rowsort
SELECT + col0 * 48 FROM tab0
----
4176
4656
720

query II rowsort
SELECT + 27 * + - 77, col1 FROM tab2
----
-2079
51
-2079
67
-2079
77

query I rowsort
SELECT ALL + 22 * + col2 AS col1 FROM tab1
----
1298
1496
2112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-596
SELECT DISTINCT - col2 * - 1 * ( CAST( NULL AS SIGNED ) ) AS col0, - 55 FROM tab1
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-596
SELECT DISTINCT - col2 * - 1 * ( CAST ( NULL AS INTEGER ) ) AS col0, - 55 FROM tab1
----
NULL
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT DISTINCT + 67 * - 11 AS col1, + MAX( DISTINCT - 28 ) col2 FROM tab0 cor0
----
-737
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-597
SELECT DISTINCT + 67 * - 11 AS col1, + MAX ( DISTINCT - 28 ) col2 FROM tab0 cor0
----
-737
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 / col1 > NULL
----

query I rowsort
SELECT + col0 + + col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 22 col2 FROM tab0 cor0
----
-1
-21
59

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

skipif mysql # not compatible
query I rowsort label-601
SELECT 8 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ( 90 ) AS col1 FROM tab1 cor0 WHERE 97 - - col2 IS NOT NULL
----
90
90
90

query I rowsort
SELECT - col1 * + + col1 + - 10 FROM tab0
----
-11
-451
-6571

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

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

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

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

query I rowsort
SELECT - 93 + 82 + - col0 AS col0 FROM tab2
----
-57
-75
-86

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 >= col0
----
75
67
58

query I rowsort
SELECT - 85 AS col2 FROM tab1 AS cor0 WHERE col1 + 82 IS NOT NULL
----
-85
-85
-85

query I rowsort
SELECT + 63 * - + col1 - + + col1 * - - col1 * + + col2 FROM tab1 AS cor0
----
-153173
-1790
-19698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-615
SELECT COUNT( 52 ) DIV + 56 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-615
SELECT COUNT ( 52 ) / + 56 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 13 * + 91 AS col0 FROM tab1 AS cor0
----
1183
1183
1183

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-617
SELECT ( + 68 ) DIV COUNT( * ), + 78 AS col2 FROM tab0
----
22
78

skipif mysql # not compatible
query II rowsort label-617
SELECT ( + 68 ) / COUNT ( * ), + 78 AS col2 FROM tab0
----
22
78

query I rowsort
SELECT ALL col2 * ( + - 84 ) * + - col1 FROM tab0
----
17640
319788
8316

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) >= col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT col0 col1 FROM tab2 WHERE NOT - - col0 NOT BETWEEN + - 57 * CAST( NULL AS SIGNED ) + + 86 AND - 22
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-621
SELECT col0 col1 FROM tab2 WHERE NOT - - col0 NOT BETWEEN + - 57 * CAST ( NULL AS INTEGER ) + + 86 AND - 22
----

query I rowsort
SELECT ALL + - 45 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - MIN( ALL - 95 ) col1 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-623
SELECT - MIN ( ALL - 95 ) col1 FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE ( NOT ( + ( - col0 ) + col2 IS NULL ) )
----
-10
-47
-99

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - 36
----

onlyif mysql # DIV for integer division: 
query II rowsort label-628
SELECT - 26 DIV + col2, col1 FROM tab0 cor0
----
-2
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-628
SELECT - 26 / + col2, col1 FROM tab0 cor0
----
-2
21
0
1
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT + 90 + + - MIN( - col2 ) FROM tab2 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT + 90 + + - MIN ( - col2 ) FROM tab2 AS cor0
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT CAST( 58 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-630
SELECT CAST ( 58 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT + 91 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-632
SELECT MIN( DISTINCT + - col0 ) * - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-632
SELECT MIN ( DISTINCT + - col0 ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-633
SELECT DISTINCT - 88 + + CAST( - + 29 AS SIGNED ) DIV + col0 FROM tab2
----
-88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - col2 col2 FROM tab0
----
210
3807
99

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

query II rowsort
SELECT - 71 AS col0, 3 + + col1 AS col2 FROM tab0 AS cor0
----
-71
24
-71
4
-71
84

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT - SUM( + 9 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-637
SELECT - SUM ( + 9 ) AS col2 FROM tab2 AS cor0
----
-27

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

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

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col2 * - 62 * + col2 NOT IN ( + 51 )
----
59
68
96

query I rowsort
SELECT DISTINCT + 51 + col2 FROM tab2
----
109
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL 76 - - COUNT( * ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL 76 - - COUNT ( * ) AS col0 FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL MAX( ALL + ( 26 ) ) * - 82 * - 50 - - 11 col0 FROM tab1
----
106611

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-642
SELECT ALL MAX ( ALL + ( 26 ) ) * - 82 * - 50 - - 11 col0 FROM tab1
----
106611

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT SUM( col1 ) - - 9 AS col2 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT SUM ( col1 ) - - 9 AS col2 FROM tab1
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL AND NOT col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT DISTINCT SUM( ( - - col1 ) ) * 40 - + COUNT( * ) FROM tab0 AS cor0
----
4117

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT SUM ( ( - - col1 ) ) * 40 - + COUNT ( * ) FROM tab0 AS cor0
----
4117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - + COUNT( * ) + COUNT( * ) * 19 - ( - MAX( ALL - - col2 ) ) + - - 21 + - 12 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-647
SELECT - + COUNT ( * ) + COUNT ( * ) * 19 - ( - MAX ( ALL - - col2 ) ) + - - 21 + - 12 FROM tab1 AS cor0
----
159

query I rowsort
SELECT ALL - 46 - + - col2 FROM tab0 AS cor0
----
-36
1
53

onlyif mysql # DIV for integer division: 
query I rowsort label-649
SELECT col2 + + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-649
SELECT col2 + + col1 / col1 AS col2 FROM tab0 AS cor0
----
100
11
48

query I rowsort
SELECT + + col1 * - col1 - - col0 AS col0 FROM tab2 cor0
----
-2555
-4414
-5865

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

skipif mysql # not compatible
query I rowsort label-651
SELECT + - MIN ( - + col2 ) FROM tab0 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 77 col1 FROM tab1 AS cor0 WHERE ( NOT + - 74 <> NULL )
----

query II rowsort
SELECT ( + col2 ), col1 AS col0 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-654
SELECT + CAST( - col2 AS SIGNED ) AS col1, + col0 + - 32 col2 FROM tab1
----
-59
53
-68
59
-96
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-654
SELECT + CAST ( - col2 AS INTEGER ) AS col1, + col0 + - 32 col2 FROM tab1
----
-59
53
-68
59
-96
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + col1 col0 FROM tab0
----
1260
4860
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-656
SELECT DISTINCT + 59 * + MAX( - + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT + 59 * + MAX ( - + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-657
SELECT ALL + COUNT( * ) DIV ( + COUNT( DISTINCT col0 ) ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + COUNT ( * ) / ( + COUNT ( DISTINCT col0 ) ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-2

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

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

query I rowsort
SELECT - col2 * - 21 * - - col1 AS col2 FROM tab1 AS cor0
----
28224
6195
67116

query II rowsort
SELECT DISTINCT - ( - col1 ) AS col0, - col1 - + col2 FROM tab0 AS cor0
----
1
-100
21
-31
81
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL 37 * - 9 + - - ( - 30 ) * + MIN( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE + ( - 72 ) IS NOT NULL
----
-1713

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL 37 * - 9 + - - ( - 30 ) * + MIN ( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE + ( - 72 ) IS NOT NULL
----
-1713

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

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

query I rowsort
SELECT - col1 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
2550
4422
5852

query I rowsort
SELECT + 92 + - 52 AS col1 FROM tab0 AS cor0
----
40
40
40

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 14 IS NULL
----

query I rowsort
SELECT ALL + + 7 + - col0 AS col0 FROM tab2 AS cor0
----
-39
-57
-68

query I rowsort
SELECT DISTINCT ( + 84 ) * col1 + + - col0 + + 19 FROM tab1
----
1144
354
3876

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT 82 * ( - COUNT( * ) ) * - + 77 - + 40 + - - 49 * + 44 AS col2 FROM tab0
----
21058

skipif mysql # not compatible
query I rowsort label-670
SELECT 82 * ( - COUNT ( * ) ) * - + 77 - + 40 + - - 49 * + 44 AS col2 FROM tab0
----
21058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT DISTINCT - CAST( - 32 AS SIGNED ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - CAST ( - 32 AS INTEGER ) FROM tab1
----
32

query I rowsort
SELECT ALL - col1 * + + 54 - - 47 FROM tab0 AS cor0
----
-1087
-4327
-7

query I rowsort
SELECT DISTINCT - 65 * - col1 + - - col2 AS col2 FROM tab1 AS cor0
----
1006
3123
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 * + col1 + + col0 + col0 * 99 col0 FROM tab0 AS cor0
----
-150249
-16725
291

query I rowsort
SELECT ALL - - 63 FROM tab2 WHERE NULL < - - col2 * + col1 + + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-676
SELECT ALL ( 7 ) DIV + col1 AS col2, - 55 * + - col1 AS col1 FROM tab1 AS cor0
----
0
2585
0
770
1
275

skipif mysql # not compatible
query II rowsort label-676
SELECT ALL ( 7 ) / + col1 AS col2, - 55 * + - col1 AS col1 FROM tab1 AS cor0
----
0
2585
0
770
1
275

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

onlyif mysql # aggregate syntax: 
query II rowsort label-678
SELECT DISTINCT - 19, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-678
SELECT DISTINCT - 19, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-19
3

query II rowsort
SELECT + col1, 50 * 2 AS col2 FROM tab2 AS cor0
----
51
100
67
100
77
100

query I rowsort
SELECT - + col0 * + 99 + col1 AS col0 FROM tab0 cor0
----
-1404
-8592
-9602

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

query I rowsort
SELECT ALL - + col2 * - - col2 * - - 68 + - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + + 87 AND + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - 85 * + - COUNT( * ) AS col1 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-684
SELECT - 85 * + - COUNT ( * ) AS col1 FROM tab0
----
255

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT ( NOT 83 > NULL )
----

query I rowsort
SELECT ALL - 67 * - 59 FROM tab2
----
3953
3953
3953

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-688
SELECT * FROM tab1 WHERE NOT ( CAST( + ( - col2 ) AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-688
SELECT * FROM tab1 WHERE NOT ( CAST ( + ( - col2 ) AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 50 AS col1, 89 * - col0 FROM tab0
----
50
-1335
50
-7743
50
-8633

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

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

query I rowsort
SELECT col0 * + - 99 AS col0 FROM tab0
----
-1485
-8613
-9603

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

query I rowsort
SELECT col1 * - + 57 FROM tab2 AS cor0
----
-2907
-3819
-4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col1 AS col0, - col1 col0 FROM tab0 AS cor0
----
-100
-1
-128
-81
-31
-21

query I rowsort
SELECT ALL + 62 * + ( - ( - + 59 ) ) * - - col0 + col0 FROM tab2 AS cor0
----
168314
234176
274425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 22 col1 FROM tab2
----
45
62
80

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-697
SELECT ALL + COUNT ( ALL + - col2 ) - - ( COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 - + 62 FROM tab0
----
-15
-52
37

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT - MIN( + 40 ) AS col0 FROM tab0 WHERE - 12 IS NOT NULL
----
-40

skipif mysql # not compatible
query I rowsort label-699
SELECT - MIN ( + 40 ) AS col0 FROM tab0 WHERE - 12 IS NOT NULL
----
-40

query I rowsort
SELECT col1 * + col2 * + + col0 + + + col1 + - col1 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL - col2 * + + ( 25 ) + - - col0 FROM tab0
----
-1160
-163
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT 63 * - MAX( - col1 ) - - 13 col2 FROM tab2
----
3226

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-702
SELECT DISTINCT 63 * - MAX ( - col1 ) - - 13 col2 FROM tab2
----
3226

query I rowsort
SELECT ALL col1 - - ( + col1 ) + ( + - 32 ) * - col1 FROM tab2
----
1734
2278
2618

query II rowsort
SELECT - + col0 AS col2, + ( + col1 ) FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT - + 9 * - + 55 + + col0 AS col0 FROM tab2 AS cor0
----
541
559
570

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT - 83 * + col1 + - 87 DIV - col1 - + col2 FROM tab1 AS cor0
----
-1252
-3968
-457

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT - 83 * + col1 + - 87 / - col1 - + col2 FROM tab1 AS cor0
----
-1252
-3968
-457

query I rowsort
SELECT + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT - 58 * - col1 + col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-709
SELECT ALL COUNT ( ALL - - 14 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + 42 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab2, tab2 AS cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL - 68 * - COUNT( * ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - 68 * - COUNT ( * ) FROM tab0 AS cor0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-714
SELECT ALL col1 * + ( + - col2 ) - - + 50 * - + CAST( - - col2 AS SIGNED ) * + 42 AS col1, - ( + col1 ) AS col0 FROM tab2 cor0
----
-125686
-67
-49473
-51
-87080
-77

skipif mysql # not compatible
query II rowsort label-714
SELECT ALL col1 * + ( + - col2 ) - - + 50 * - + CAST ( - - col2 AS INTEGER ) * + 42 AS col1, - ( + col1 ) AS col0 FROM tab2 cor0
----
-125686
-67
-49473
-51
-87080
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL + 29 * - + 20 * + MIN( - + col1 ) AS col1 FROM tab1 AS cor0
----
27260

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + 29 * - + 20 * + MIN ( - + col1 ) AS col1 FROM tab1 AS cor0
----
27260

query I rowsort
SELECT DISTINCT + col2 * + + 54 FROM tab2 AS cor0
----
1242
2160
3132

query III rowsort
SELECT * FROM tab1 WHERE NOT - 68 IN ( + 33, - col1 + - - col0 * - ( - + col2 ), + 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT - col1 DIV 6 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-718
SELECT - col1 / 6 FROM tab1
----
-2
-7
0

query I rowsort
SELECT ALL 84 * - + col2 FROM tab0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN - - 85 + + + col1 + - col1 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN - - 85 + + + col1 + - col1 AND - col0
----
0

query I rowsort
SELECT + 50 * 81 FROM tab0
----
4050
4050
4050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * + 42 col2 FROM tab1
----
-12390
-134232
-56448

query I rowsort
SELECT - 68 * + col1 AS col1 FROM tab2
----
-3468
-4556
-5236

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

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT + COUNT( * ) * MIN( ALL - - 65 ) AS col0, 33 * - COUNT( * ) FROM tab2
----
195
-99

skipif mysql # not compatible
query II rowsort label-725
SELECT + COUNT ( * ) * MIN ( ALL - - 65 ) AS col0, 33 * - COUNT ( * ) FROM tab2
----
195
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-726
SELECT DISTINCT - 49 AS col2, col1 * + CAST( NULL AS SIGNED ) * ( + ( - - col2 ) ) * col2 FROM tab0 cor0
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-726
SELECT DISTINCT - 49 AS col2, col1 * + CAST ( NULL AS INTEGER ) * ( + ( - - col2 ) ) * col2 FROM tab0 cor0
----
-49
NULL

query I rowsort
SELECT DISTINCT + col1 * - col2 + col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT ALL - - col1 + - + 44 FROM tab0 AS cor0 WHERE NOT + col2 + - 74 <= - 77
----
-23
-43
37

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT MIN( + 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-729
SELECT MIN ( + 12 ) FROM tab2
----
12

query I rowsort
SELECT - 81 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

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

query I rowsort
SELECT DISTINCT - + col0 * - col0 AS col1 FROM tab0 cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - 7 ) * - 53 * - col0 * - col1 * + 79 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT 19 + - MAX( col1 ) * 49 + + - 31 FROM tab0 cor0
----
-3981

skipif mysql # not compatible
query I rowsort label-734
SELECT 19 + - MAX ( col1 ) * 49 + + - 31 FROM tab0 cor0
----
-3981

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL - - COUNT( * ) * 70 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - - COUNT ( * ) * 70 FROM tab1 AS cor0
----
210

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-737
SELECT DISTINCT + col0, CAST( - - 33 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
33
87
33
97
33

skipif mysql # not compatible
query II rowsort label-737
SELECT DISTINCT + col0, CAST ( - - 33 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
33
87
33
97
33

query I rowsort
SELECT DISTINCT 43 * + col2 * - col2 + + + col1 FROM tab2 AS cor0
----
-144585
-22696
-68723

query II rowsort
SELECT DISTINCT - - 20 AS col1, ( 43 ) FROM tab2 AS cor0
----
20
43

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT ALL col1 + + - 24 DIV 24 * + + 74 AS col0 FROM tab0
----
-53
-73
7

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL col1 + + - 24 / 24 * + + 74 AS col0 FROM tab0
----
-53
-73
7

query I rowsort
SELECT ALL + col2 + - col0 * - col1 FROM tab2
----
2369
4968
5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT DISTINCT 96 / - - COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT 96 / - - COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT - col2 - - col0 DIV col2 - + 18 AS col0 FROM tab2
----
-39
-57
-75

skipif mysql # not compatible
query I rowsort label-744
SELECT - col2 - - col0 / col2 - + 18 AS col0 FROM tab2
----
-39
-57
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-745
SELECT ALL + 6 - - col1 * + CAST( NULL AS SIGNED ) AS col0, col0 * - + 12 FROM tab0
----
NULL
-1044
NULL
-1164
NULL
-180

skipif mysql # not compatible
query II rowsort label-745
SELECT ALL + 6 - - col1 * + CAST ( NULL AS INTEGER ) AS col0, col0 * - + 12 FROM tab0
----
NULL
-1044
NULL
-1164
NULL
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT 28 * - 9 AS col1 FROM tab2
----
-252
-252
-252

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 13 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-749
SELECT 13 AS col1, 57 DIV + - ( - + col1 ) FROM tab2 AS cor0
----
13
0
13
0
13
1

skipif mysql # not compatible
query II rowsort label-749
SELECT 13 AS col1, 57 / + - ( - + col1 ) FROM tab2 AS cor0
----
13
0
13
0
13
1

query I rowsort
SELECT 82 * 28 FROM tab2 AS cor0
----
2296
2296
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT MAX( ALL 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-751
SELECT MAX ( ALL 32 ) FROM tab1 AS cor0
----
32

query II rowsort
SELECT 96 AS col0, + 41 * + 20 FROM tab0 AS cor0
----
96
820
96
820
96
820

query I rowsort
SELECT DISTINCT - 42 * + col1 AS col0 FROM tab0 AS cor0
----
-3402
-42
-882

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-754
SELECT ALL + CAST( NULL AS DECIMAL ), COUNT( * ) DIV + 50 AS col2 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-754
SELECT ALL + CAST ( NULL AS REAL ), COUNT ( * ) / + 50 AS col2 FROM tab2 AS cor0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT 33 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-755
SELECT 33 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT + col0 + + 17 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + col0 * col2 * - - col2 * col2 AS col0 FROM tab0 AS cor0
----
1557360
87087
94119100

query II rowsort
SELECT + col2 + + 0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT + COUNT( * ) + + 43 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-759
SELECT + COUNT ( * ) + + 43 FROM tab0 AS cor0
----
46

query I rowsort
SELECT + - 99 * col1 * col2 + - col1 + col0 FROM tab1 AS cor0
----
-133019
-29125
-316360

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - MIN( - - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-761
SELECT - MIN ( - - col2 ) FROM tab2 cor0
----
-23

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----

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

query I rowsort
SELECT DISTINCT - - col1 * + 75 FROM tab2 AS cor0
----
3825
5025
5775

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

onlyif mysql # aggregate syntax: 
query II rowsort label-766
SELECT - ( - COUNT( * ) ) - + COUNT( * ), COUNT( * ) col2 FROM tab0 AS cor0
----
0
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT ALL + 7 DIV - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + 7 / - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT DISTINCT + 77 DIV + col0 + - 65 DIV + 61 FROM tab0 AS cor0
----
-1
4

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + 77 / + col0 + - 65 / + 61 FROM tab0 AS cor0
----
-1
4

query I rowsort
SELECT 42 + - col1 - + + ( + 14 ) AS col0 FROM tab1 cor0
----
-19
14
23

query I rowsort
SELECT + col0 + + + col0 - col0 * + + 16 FROM tab2 AS cor0
----
-1050
-644
-896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT DISTINCT 39 + - + COUNT( * ) + + 37 AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT 39 + - + COUNT ( * ) + + 37 AS col2 FROM tab1
----
73

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT - CAST( NULL AS SIGNED ) + - + 61 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-774
SELECT - CAST ( NULL AS INTEGER ) + - + 61 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - - 92 AS col0 FROM tab1
----
151
160
188

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

skipif mysql # not compatible
query II rowsort label-776
SELECT - COUNT ( * ) AS col0, 33 AS col1 FROM tab0
----
-3
33

query I rowsort
SELECT ALL ( - + 40 ) - - 10 AS col1 FROM tab1
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0, col0 col2, col1 * - - 49 AS col2 FROM tab2
----
9 values hashing to 836379b28f8b4f9201dde17a42f5929c

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT DISTINCT + 82 DIV 18 AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + 82 / 18 AS col1 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-780
SELECT 97 * 95, CAST( - ( col2 ) AS SIGNED ) col1, + + col2 + - col2 + - 71 DIV + col2 col2 FROM tab2
----
9 values hashing to 4a7ad64faa323a1bd756968fbaeaedee

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-780
SELECT 97 * 95, CAST ( - ( col2 ) AS INTEGER ) col1, + + col2 + - col2 + - 71 / + col2 col2 FROM tab2
----
9 values hashing to 4a7ad64faa323a1bd756968fbaeaedee

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

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

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

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

query II rowsort
SELECT ALL 59 AS col1, + 97 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT ALL CAST( - 52 AS SIGNED ) * - 45 AS col1 FROM tab0
----
2340
2340
2340

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL CAST ( - 52 AS INTEGER ) * - 45 AS col1 FROM tab0
----
2340
2340
2340

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL - COUNT( ALL - col2 ) + 11 AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL - COUNT ( ALL - col2 ) + 11 AS col1 FROM tab0 AS cor0
----
8

query I rowsort
SELECT + col1 + + 17 FROM tab1
----
22
31
64

query I rowsort
SELECT + 33 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND - col0 + + col0
----

query I rowsort
SELECT DISTINCT col0 + + 58 * - 67 FROM tab1 WHERE - 3 * 70 + 73 * 62 BETWEEN NULL AND ( - 16 + - col0 )
----

query I rowsort
SELECT - 42 + 45 AS col2 FROM tab0
----
3
3
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE col0 NOT IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE col0 NOT IN ( - col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT - COUNT( * ) * + ( SUM( - 62 ) ) FROM tab0
----
558

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT - COUNT ( * ) * + ( SUM ( - 62 ) ) FROM tab0
----
558

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 - + ( - col1 ) ) >= 75
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT SUM( + col1 ) + - COUNT( * ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-800
SELECT SUM ( + col1 ) + - COUNT ( * ) AS col2 FROM tab2
----
192

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

query I rowsort
SELECT col2 - 15 * col1 AS col2 FROM tab2
----
-1115
-742
-947

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT + MIN( DISTINCT 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-805
SELECT + MIN ( DISTINCT 6 ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT + col0 + - col1 DIV + col0 AS col2 FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-806
SELECT + col0 + - col1 / + col0 AS col2 FROM tab2
----
45
63
75

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT + 2 DIV col0 + + col0 col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-807
SELECT + 2 / col0 + + col0 col0 FROM tab1
----
51
85
91

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

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

query I rowsort
SELECT ALL col0 + - col0 FROM tab1 WHERE NOT ( - 44 ) * + col2 + - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT - col0 DIV - 94 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-811
SELECT - col0 / - 94 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT COUNT( * ) + 46 AS col2 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT COUNT ( * ) + 46 AS col2 FROM tab2
----
49

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-814
SELECT * FROM tab2 WHERE col1 <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-814
SELECT * FROM tab2 WHERE col1 <= ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT ALL + 99 * CAST( - SUM( DISTINCT 67 ) AS SIGNED ) + SUM( - 87 ) FROM tab2
----
-6894

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL + 99 * CAST ( - SUM ( DISTINCT 67 ) AS INTEGER ) + SUM ( - 87 ) FROM tab2
----
-6894

query I rowsort
SELECT DISTINCT 28 + + col1 FROM tab2
----
105
79
95

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * 26 + + col1 ) >= + col2 * - 61 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - MAX ( - 24 ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT DISTINCT col2 * + 17 - 85 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

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

query I rowsort
SELECT 44 FROM tab1 WHERE NOT col1 / - col0 > + 86 * col1 - col0 / col1
----
44
44
44

query I rowsort
SELECT ALL - 94 * - 43 FROM tab2
----
4042
4042
4042

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 - - col1 <> + 9
----
75
67
58

query I rowsort
SELECT DISTINCT 8 / 5 AS col2 FROM tab1 WHERE NOT col2 * + 36 NOT IN ( 4 * - 66 )
----

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

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

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT - - MAX ( 36 ) AS col1 FROM tab2 AS cor0
----
36

query I rowsort
SELECT DISTINCT - ( - ( 88 ) ) + col2 FROM tab0 AS cor0
----
135
187
98

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

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

query I rowsort
SELECT DISTINCT + + 12 + + col2 AS col1 FROM tab0 AS cor0
----
111
22
59

query I rowsort
SELECT DISTINCT + col0 * + 90 + + col1 * col1 FROM tab1
----
10399
4786
7675

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE + col2 BETWEEN + col2 AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN ( + 19 ) AND col0
----
15
81
47

query I rowsort
SELECT DISTINCT col1 + - col1 + + col2 * 73 FROM tab1
----
4307
4964
7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * col1 col0 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT * FROM tab0 WHERE + 42 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab2 WHERE NOT - 34 NOT BETWEEN ( NULL ) AND - col0 * col0 + col1
----

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

query III rowsort
SELECT * FROM tab1 WHERE 35 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT - + MIN( col1 ) * + MAX( + col1 ) + - COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-841
SELECT - + MIN ( col1 ) * + MAX ( + col1 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT DISTINCT - - CAST( + - 23 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT - - CAST ( + - 23 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL 12 * - - 18 * - 77 + - 36 AS col2 FROM tab1 AS cor0
----
-16668
-16668
-16668

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

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE col1 * col2 + + col0 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + ( - 21 ) * - col2 AS col1 FROM tab1 WHERE ( ( 30 * col0 ) IN ( + col1 - + 15 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-848
SELECT 43 / CAST( NULL AS SIGNED ) + - 88 * + 7 FROM tab2 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-848
SELECT 43 / CAST ( NULL AS INTEGER ) + - 88 * + 7 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT - col0 * col1 FROM tab2 WHERE ( - col1 ) IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + - col1 + 68 * - col1 )
----

query II rowsort
SELECT DISTINCT + + col0 AS col1, 63 * - col0 FROM tab1 AS cor0
----
51
-3213
85
-5355
91
-5733

query I rowsort
SELECT + col0 + - + col2 AS col2 FROM tab2 cor0
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT col1 DIV - ( 77 ) + col0 AS col1 FROM tab0 AS cor0
----
14
87
97

skipif mysql # not compatible
query I rowsort label-854
SELECT col1 / - ( 77 ) + col0 AS col1 FROM tab0 AS cor0
----
14
87
97

query I rowsort
SELECT DISTINCT + col2 * + ( - 27 ) + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 47 + col1 FROM tab1 AS cor0
----
-33
-42
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-858
SELECT * FROM tab1 WHERE NOT - col0 + 72 + 57 * CAST( NULL AS SIGNED ) NOT BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-858
SELECT * FROM tab1 WHERE NOT - col0 + 72 + 57 * CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 88 FROM tab0
----
1848
7128
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * col2 * + col2 * + col1 col2 FROM tab2
----
3080000
5634700
674475

query I rowsort
SELECT col1 + - 21 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL MAX( ALL col0 ) FROM tab1 WHERE + 35 < 20 / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL MAX ( ALL col0 ) FROM tab1 WHERE + 35 < 20 / 66
----
NULL

query I rowsort
SELECT ALL + 94 * - ( + - col1 ) FROM tab2
----
4794
6298
7238

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 > col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT ALL CAST( + - col0 AS SIGNED ) * + col0 * + + ( 55 ) AS col2 FROM tab0
----
-12375
-416295
-517495

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL CAST ( + - col0 AS INTEGER ) * + col0 * + + ( 55 ) AS col2 FROM tab0
----
-12375
-416295
-517495

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT ALL - COUNT( * ) * + 56 FROM tab2 AS cor0 WHERE col2 > CAST( + + 0 AS SIGNED )
----
-168

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL - COUNT ( * ) * + 56 FROM tab2 AS cor0 WHERE col2 > CAST ( + + 0 AS INTEGER )
----
-168

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

query I rowsort
SELECT + 95 - - col0 / col2 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT DISTINCT col2 DIV + 16 FROM tab0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT col2 / + 16 FROM tab0
----
0
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 WHERE NOT - - 70 NOT IN ( + col1 + col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-875
SELECT + 58 * + col1 AS col0 FROM tab0 WHERE NOT + + col0 * + col0 * - col2 + col1 / 76 NOT IN ( + col0 + + col1 * ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-875
SELECT + 58 * + col1 AS col0 FROM tab0 WHERE NOT + + col0 * + col0 * - col2 + col1 / 76 NOT IN ( + col0 + + col1 * ( CAST ( NULL AS INTEGER ) ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT COUNT( ALL - col0 ) FROM tab1 cor0 WHERE ( NULL ) BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-878
SELECT COUNT ( ALL - col0 ) FROM tab1 cor0 WHERE ( NULL ) BETWEEN - col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL 59 + - COUNT( * ) - + COUNT( - 70 ) col0 FROM tab2 AS cor0
----
53

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

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

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

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NULL <> NULL
----

query II rowsort
SELECT col0, 64 FROM tab0
----
15
64
87
64
97
64

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

query III rowsort
SELECT * FROM tab0 WHERE + 1 NOT BETWEEN 13 + 11 AND + + 2 * + 43 + + col2 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT MAX( + ( - - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-885
SELECT MAX ( + ( - - col2 ) ) FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 41 col2 FROM tab1
----
100
109
137

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT + 61 + + - COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT + 61 + + - COUNT ( * ) FROM tab1
----
58

query I rowsort
SELECT DISTINCT ( - + 40 ) FROM tab0
----
-40

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

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

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

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

query I rowsort
SELECT ALL - ( - 70 ) * + col1 * - + 27 AS col0 FROM tab2 AS cor0
----
-126630
-145530
-96390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-893
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 43 + CAST( NULL AS SIGNED ) AND - ( - + 90 )
----

skipif mysql # not compatible
query III rowsort label-893
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 43 + CAST ( NULL AS INTEGER ) AND - ( - + 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT ALL + - CAST( + 56 AS SIGNED ) + - - col1 AS col0 FROM tab1 AS cor0
----
-42
-51
-9

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + - CAST ( + 56 AS INTEGER ) + - - col1 AS col0 FROM tab1 AS cor0
----
-42
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT ALL 82 + - MAX( 18 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL 82 + - MAX ( 18 ) FROM tab1
----
64

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-897
SELECT * FROM tab0 AS cor0 WHERE NOT ( 45 + - col0 * - 98 + + + CAST( col1 AS SIGNED ) ) < ( CAST( 46 AS SIGNED ) ) * 66
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-897
SELECT * FROM tab0 AS cor0 WHERE NOT ( 45 + - col0 * - 98 + + + CAST ( col1 AS INTEGER ) ) < ( CAST ( 46 AS INTEGER ) ) * 66
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT 25 * - - MIN( col0 ) FROM tab2 AS cor0
----
1150

skipif mysql # not compatible
query I rowsort label-898
SELECT 25 * - - MIN ( col0 ) FROM tab2 AS cor0
----
1150

query I rowsort
SELECT 71 * - col0 * - col1 AS col0 FROM tab0 AS cor0
----
129717
6887
86265

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT col1 DIV col2 col2 FROM tab2
----
1
1
2

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

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

query II rowsort
SELECT DISTINCT + col0, - col2 FROM tab1 AS cor0 WHERE NOT - 97 IS NULL
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 81 * - - 96 AS col2 FROM tab2 AS cor0
----
7776
7776
7776

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-906
SELECT ALL - 89 * - + 57, CAST( NULL AS SIGNED ) - + 95 * - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
5073
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-906
SELECT ALL - 89 * - + 57, CAST ( NULL AS INTEGER ) - + 95 * - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
5073
NULL

query I rowsort
SELECT DISTINCT - - 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-908
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL - MIN( + col0 ) + - + COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL - MIN ( + col0 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-18

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

skipif mysql # not compatible
query I rowsort label-910
SELECT - SUM ( ALL + - col2 ) FROM tab2 AS cor0
----
121

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

query I rowsort
SELECT 14 * - + 76 AS col2 FROM tab1 AS cor0
----
-1064
-1064
-1064

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

skipif mysql # not compatible
query I rowsort label-913
SELECT 15 / + col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + 18 + + + 23 * + 58 AS col0 FROM tab1 AS cor0
----
1352
1352
1352

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + + col1 AND - col2
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT ( CAST( NULL AS SIGNED ) ) col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 7 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT MIN( - 77 ) + + COUNT( DISTINCT + col1 ) col2 FROM tab1
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-918
SELECT MIN ( - 77 ) + + COUNT ( DISTINCT + col1 ) col2 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT 62 * - + 33 + 28 AS col1 FROM tab0
----
-2018

query I rowsort
SELECT ALL col1 + + ( - + col2 ) * ( - 77 ) FROM tab2
----
1822
3157
4533

query I rowsort
SELECT ALL - 78 FROM tab1 WHERE NOT + + 56 IS NULL
----
-78
-78
-78

query I rowsort
SELECT 62 + - col2 + + 2 * - - col2 * + col1 + - - ( 51 ) * col1 * + col2 * col2 AS col0 FROM tab2
----
11502564
1378314
6289382

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-926
SELECT + COUNT ( + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( - - 26 ) FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - + col0 + - 46 AS col0 FROM tab1 cor0
----
-131
-137
-97

query I rowsort
SELECT ALL col2 + col1 * - 32 AS col2 FROM tab0
----
-2545
-662
67

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 72 * - - 4 + + 22 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-932
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab0 cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-932
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab0 cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > - + 48
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > - + 48
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-934
SELECT + 16 AS col0, - COUNT( * ) FROM tab2 WHERE NOT NULL < NULL
----
16
0

skipif mysql # not compatible
query II rowsort label-934
SELECT + 16 AS col0, - COUNT ( * ) FROM tab2 WHERE NOT NULL < NULL
----
16
0

query II rowsort
SELECT DISTINCT + col0 + - col2, col1 AS col0 FROM tab2 cor0
----
17
67
23
51
24
77

query I rowsort
SELECT ALL + col2 + + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT 71 + - col2 FROM tab2
----
13
31
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-938
SELECT + CAST( + 49 AS SIGNED ) DIV - col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-938
SELECT + CAST ( + 49 AS INTEGER ) / - col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
44
99

query I rowsort
SELECT DISTINCT + 39 * - 87 FROM tab0 AS cor0
----
-3393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-940
SELECT ALL + ( - - CAST( + - COUNT( * ) AS SIGNED ) ) * + SUM( ALL - - col1 ) FROM tab2 cor0
----
-585

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL + ( - - CAST ( + - COUNT ( * ) AS INTEGER ) ) * + SUM ( ALL - - col1 ) FROM tab2 cor0
----
-585

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + 64 ) <> 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 28 FROM tab2 AS cor0 WHERE col2 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT DISTINCT 71 + - - col1 + - col2 DIV + + col0 + col1 FROM tab1
----
165
81
98

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT 71 + - - col1 + - col2 / + + col0 + col1 FROM tab1
----
165
81
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT ALL - 89 DIV - col1 + col0 FROM tab0
----
16
186
91

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - 89 / - col1 + col0 FROM tab0
----
16
186
91

onlyif mysql # DIV for integer division: 
query II rowsort label-948
SELECT col2 - col0 DIV + 80 + - ( + 22 ) AS col1, 4 FROM tab2
----
1
4
18
4
36
4

skipif mysql # not compatible
query II rowsort label-948
SELECT col2 - col0 / + 80 + - ( + 22 ) AS col1, 4 FROM tab2
----
1
4
18
4
36
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT DISTINCT 76 - - COUNT( * ) col2 FROM tab1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-950
SELECT DISTINCT 76 - - COUNT ( * ) col2 FROM tab1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT DISTINCT 59 DIV ( + col0 ) FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT 59 / ( + col0 ) FROM tab2 cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * - col2 > NULL
----

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

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

query I rowsort
SELECT ALL 63 * col0 AS col1 FROM tab1
----
3213
5355
5733

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

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT ALL + col2 DIV + + 6 FROM tab1 AS cor0 WHERE ( + - col2 ) IS NOT NULL OR - col0 IS NULL
----
11
16
9

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL + col2 / + + 6 FROM tab1 AS cor0 WHERE ( + - col2 ) IS NOT NULL OR - col0 IS NULL
----
11
16
9

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - MIN( DISTINCT - col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-957
SELECT - MIN ( DISTINCT - col0 ) FROM tab0 cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-958
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), - col0 * col0 + + 69 + + ( + + 39 ) )
----

skipif mysql # not compatible
query III rowsort label-958
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), - col0 * col0 + + 69 + + ( + + 39 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT + + COUNT( * ) * - MIN( + 14 ) * + SUM( ALL col2 ), 76 AS col2 FROM tab1 AS cor0
----
-9366
76

skipif mysql # not compatible
query II rowsort label-959
SELECT + + COUNT ( * ) * - MIN ( + 14 ) * + SUM ( ALL col2 ), 76 AS col2 FROM tab1 AS cor0
----
-9366
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + - 33 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-961
SELECT - CAST ( col0 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

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

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

query I rowsort
SELECT + + 38 * + col1 FROM tab0 AS cor0
----
3078
38
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1, col2 col1, - 88 FROM tab1
----
9 values hashing to 62c7aff6fff7ed4884b57fbd3e662238

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

query I rowsort
SELECT ALL 30 FROM tab1 WHERE NOT - + col0 NOT BETWEEN - col2 AND NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col2 ) < col0
----
87
21
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 46, col2, col0, - 31 + - col1, - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ( + + 45 ) * - MAX( DISTINCT + 39 ) + - ( - - 22 ) + - 71 FROM tab1 AS cor0
----
-1848

skipif mysql # not compatible
query I rowsort label-972
SELECT ( + + 45 ) * - MAX ( DISTINCT + 39 ) + - ( - - 22 ) + - 71 FROM tab1 AS cor0
----
-1848

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

query I rowsort
SELECT + 11 * - col0 * + 64 + - col1 + col2 AS col0 FROM tab1 AS cor0
----
-35822
-59786
-64043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT - COUNT( * ) * SUM( col0 ) FROM tab0 AS cor0 WHERE CAST( - 59 AS SIGNED ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT - COUNT ( * ) * SUM ( col0 ) FROM tab0 AS cor0 WHERE CAST ( - 59 AS INTEGER ) <= NULL
----
NULL

query I rowsort
SELECT - 99 + + + col0 AS col1 FROM tab1
----
-14
-48
-8

query I rowsort
SELECT DISTINCT col2 + - 0 AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> 99 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, col0 * - 79 col2 FROM tab1 AS cor0
----
14
-4029
47
-7189
5
-6715

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-981
SELECT ALL - COUNT( * ) DIV - ( + + SUM( + col0 ) ) FROM tab0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - COUNT ( * ) / - ( + + SUM ( + col0 ) ) FROM tab0 WHERE NULL IS NULL
----
0

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

query I rowsort
SELECT DISTINCT col0 * col1 * 91 AS col2 FROM tab2
----
213486
448448
457275

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

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT - MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE - col0 + + - col0 - col0 <> + col0
----
-51
-85
-91

query I rowsort
SELECT ALL - 38 AS col2 FROM tab0 cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL 44 + SUM( + - 83 ) * - 35 FROM tab1
----
8759

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL 44 + SUM ( + - 83 ) * - 35 FROM tab1
----
8759

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

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT col2 / - - col0 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT COUNT( * ) DIV - 95 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT COUNT ( * ) / - 95 AS col0 FROM tab1
----
0

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE + col0 - ( - + 31 ) <> ( + col0 + + col1 * + + col1 )
----
51
85
91

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-995
SELECT - 55 DIV - 59, + col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-995
SELECT - 55 / - 59, + col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

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

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

query I rowsort
SELECT ALL - col1 * - col1 - - + col2 FROM tab2
----
2624
4547
5969

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT DISTINCT - ( 28 ) DIV + col2 + col2 * + col1 * col0 FROM tab0
----
18268
57105
9603

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT - ( 28 ) / + col2 + col2 * + col1 * col0 FROM tab0
----
18268
57105
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 WHERE NULL NOT IN ( col0, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-999
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 WHERE NULL NOT IN ( col0, col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - 18 * col2 - - col2 AS col1 FROM tab1
----
-1003
-1156
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - col0 AS col2 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT col1 * - 68 - + col0 AS col2 FROM tab2 AS cor0
----
-3514
-4631
-5300

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1006
SELECT 18 col2, CAST( NULL AS SIGNED ) * COUNT( * ) * - SUM( ALL + 81 ) AS col0 FROM tab2
----
18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1006
SELECT 18 col2, CAST ( NULL AS INTEGER ) * COUNT ( * ) * - SUM ( ALL + 81 ) AS col0 FROM tab2
----
18
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1008
SELECT DISTINCT - + COUNT( * ) AS col1, ( - SUM( + col2 ) ) FROM tab1 cor0
----
-3
-223

skipif mysql # not compatible
query II rowsort label-1008
SELECT DISTINCT - + COUNT ( * ) AS col1, ( - SUM ( + col2 ) ) FROM tab1 cor0
----
-3
-223

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

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

query II rowsort
SELECT ALL - - col2 AS col1, + col2 + - ( + - 14 ) * + - col0 + col2 FROM tab0 AS cor0
----
10
-1198
47
-116
99
-1160

query I rowsort
SELECT - col2 + + col0 FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT - COUNT( * ) * - 82 AS col0 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-1012
SELECT - COUNT ( * ) * - 82 AS col0 FROM tab2 AS cor0
----
246

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

skipif mysql # not compatible
query I rowsort label-1013
SELECT - + CAST ( - ( 25 ) AS INTEGER ) FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - - 98 * - 96 + + ( - COUNT( * ) ) col2 FROM tab1 cor0
----
-9411

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1015
SELECT DISTINCT + col1 * col0 - + - col2 + - - col0 AS col0, - col0 DIV + + col0 FROM tab1 AS cor0
----
4436
-1
569
-1
861
-1

skipif mysql # not compatible
query II rowsort label-1015
SELECT DISTINCT + col1 * col0 - + - col2 + - - col0 AS col0, - col0 / + + col0 FROM tab1 AS cor0
----
4436
-1
569
-1
861
-1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1017
SELECT DISTINCT - 97 + + CAST( NULL AS DECIMAL ) * + ( - col0 ) * + col2 + + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT - 97 + + CAST ( NULL AS REAL ) * + ( - col0 ) * + col2 + + + col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 + - + col0 AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 90 + + + ( - col1 ) FROM tab2 WHERE NOT NULL NOT IN ( col2, - col2 )
----

query I rowsort
SELECT + + 93 + + col2 * - col2 FROM tab1 AS cor0
----
-3388
-4531
-9123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL + + SUM( ALL + col1 ) * + + COUNT( * ) - + + 21 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + + SUM ( ALL + col1 ) * + + COUNT ( * ) - + + 21 FROM tab0 AS cor0
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT col1 DIV col1 DIV 50 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT col1 / col1 / 50 AS col1 FROM tab0 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT MIN ( 21 ) FROM tab0 AS cor0
----
21

query I rowsort
SELECT 86 + + + ( + col1 ) + - + 18 AS col1 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + - 94 + - MAX( DISTINCT 10 ) AS col0 FROM tab1 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-1026
SELECT + - 94 + - MAX ( DISTINCT 10 ) AS col0 FROM tab1 AS cor0
----
-104

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query II rowsort
SELECT - - col0 + + 15 + - 72, 0 * col2 * col2 AS col2 FROM tab2 cor0
----
-11
0
18
0
7
0

query I rowsort
SELECT ALL + 75 + - col2 FROM tab0 AS cor0
----
-24
28
65

query II rowsort
SELECT DISTINCT - col0 AS col2, - ( - ( col2 ) ) AS col0 FROM tab1
----
-51
96
-85
59
-91
68

query II rowsort
SELECT ALL + col1, 37 + + col1 FROM tab2 AS cor0
----
51
88
67
104
77
114

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE - col2 <> - + ( + col2 ) * col0 + 22 + + - col2 - col0 + + - 38
----
46
64
75

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

query II rowsort
SELECT 11 + + col0, + col0 FROM tab2 AS cor0
----
57
46
75
64
86
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT DISTINCT COUNT( * ) * CAST( + 81 AS SIGNED ) * - + COUNT( * ) col1 FROM tab1 cor0
----
-729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1036
SELECT DISTINCT COUNT ( * ) * CAST ( + 81 AS INTEGER ) * - + COUNT ( * ) col1 FROM tab1 cor0
----
-729

query I rowsort
SELECT ALL + + 39 AS col2 FROM tab1 AS cor0
----
39
39
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + col2
----
85
5
59
91
47
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1041
SELECT ALL col2 AS col0, - CAST( + 68 AS SIGNED ) FROM tab0
----
10
-68
47
-68
99
-68

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL col2 AS col0, - CAST ( + 68 AS INTEGER ) FROM tab0
----
10
-68
47
-68
99
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT + MAX( DISTINCT + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT + MAX ( DISTINCT + col0 ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ( COUNT( * ) ) * - - 74 - + COUNT( - 99 ) AS col2 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-1043
SELECT ( COUNT ( * ) ) * - - 74 - + COUNT ( - 99 ) AS col2 FROM tab1
----
219

query I rowsort
SELECT 58 * col2 AS col0 FROM tab0
----
2726
5742
580

query I rowsort
SELECT DISTINCT - col1 + - + col1 * + 55 FROM tab2
----
-2856
-3752
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT DISTINCT - 47 * + + COUNT( * ) * 10 AS col2 FROM tab1
----
-1410

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT - 47 * + + COUNT ( * ) * 10 AS col2 FROM tab1
----
-1410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 * + col2 col2 FROM tab0
----
2397
5049
510

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

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

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

query I rowsort
SELECT ( + + col0 ) + col0 + - ( + col0 ) + - 19 FROM tab1
----
32
66
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT col0 * - col1 + - col1 DIV + + col0 FROM tab0
----
-1220
-1827
-97

skipif mysql # not compatible
query I rowsort label-1051
SELECT col0 * - col1 + - col1 / + + col0 FROM tab0
----
-1220
-1827
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - ( - + SUM( DISTINCT col0 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT - ( - + SUM ( DISTINCT col0 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + - MIN( - 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1054
SELECT + - MIN ( - 52 ) FROM tab2 AS cor0
----
52

query I rowsort
SELECT ALL ( 2 ) AS col0 FROM tab1 AS cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 <> + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT - COUNT ( * ) * - COUNT ( + + col0 ) FROM tab1 cor0
----
9

query I rowsort
SELECT + col2 * - 27 * - col0 AS col0 FROM tab2 AS cor0
----
117450
28566
69120

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

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

query II rowsort
SELECT col2, col1 * - - col1 FROM tab1
----
59
25
68
2209
96
196

query I rowsort
SELECT ALL + col0 * + col0 * + ( col1 ) * - 53 - + + col1 FROM tab0 AS cor0
----
-498678
-8424318
-966006

query I rowsort
SELECT 71 - col2 FROM tab1 cor0 WHERE NOT - col1 <> NULL
----

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

query I rowsort
SELECT DISTINCT + + 85 * col1 AS col1 FROM tab2 AS cor0
----
4335
5695
6545

query II rowsort
SELECT DISTINCT + col1, 0 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT - + 63 AS col0 FROM tab0 AS cor0 WHERE 40 NOT IN ( - 60, 93 )
----
-63
-63
-63

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

query I rowsort
SELECT DISTINCT + + 52 * + 12 + + - col0 FROM tab0 AS cor0
----
527
537
609

query I rowsort
SELECT + ( 43 ) FROM tab1 cor0
----
43
43
43

query I rowsort
SELECT - 8 + - col0 AS col2 FROM tab0
----
-105
-23
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 19 + + col1 col2, - col1 AS col0 FROM tab1
----
-14
-5
-5
-14
28
-47

query I rowsort
SELECT ALL + 51 + - 12 FROM tab0
----
39
39
39

query II rowsort
SELECT col0 * + 9, col2 AS col2 FROM tab0 AS cor0
----
135
47
783
10
873
99

query I rowsort
SELECT col0 * - col2 * + - col0 FROM tab0 cor0
----
10575
75690
931491

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 col1, - 2 FROM tab0 AS cor0
----
-5
-2
-5
-2
-5
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT DISTINCT + 61 AS col1, + COUNT( * ) + + 96 FROM tab0 AS cor0
----
61
99

skipif mysql # not compatible
query II rowsort label-1078
SELECT DISTINCT + 61 AS col1, + COUNT ( * ) + + 96 FROM tab0 AS cor0
----
61
99

query I rowsort
SELECT DISTINCT - + col1 + - col1 - - col2 * - col2 FROM tab2 WHERE NOT col0 + + + col1 IS NULL
----
-1754
-3498
-631

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= - + 88 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL + MAX( ALL + 84 ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + MAX ( ALL + 84 ) AS col2 FROM tab0
----
84

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - ( 39 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT + 20 DIV - - 25 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1083
SELECT + 20 / - - 25 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 10 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL MAX( - 19 ) AS col1 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL MAX ( - 19 ) AS col1 FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT + + MAX( - 97 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-1086
SELECT + + MAX ( - 97 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

query I rowsort
SELECT ALL + 35 * col2 * + - 80 FROM tab2 AS cor0
----
-112000
-162400
-64400

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 * - ( - ( + + 44 ) ) + - col1 AS col0 FROM tab1
----
2021
215
602

query III rowsort
SELECT * FROM tab1 WHERE - - 56 IN ( + col2, + col0 + - - ( col2 ) * - col2 + - + col2, + col2 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 10 col0, + 18 * + col0 AS col2 FROM tab1 AS cor0
----
-10
1530
-10
1638
-10
918

query I rowsort
SELECT DISTINCT - ( - 71 ) + + col2 FROM tab2 AS cor0
----
111
129
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - col0 + + + 65 col0 FROM tab0 AS cor0
----
-4981
-5561
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT COUNT( * ) * 55 AS col1 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-1096
SELECT COUNT ( * ) * 55 AS col1 FROM tab2
----
165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1097
SELECT ALL + - CAST( NULL AS SIGNED ) * + col2 AS col1, 42 + - col2 DIV 11 AS col0, col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to eaa7ae8c75fc52f8492bb08ad68be427

skipif mysql # not compatible
query III rowsort label-1097
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col2 AS col1, 42 + - col2 / 11 AS col0, col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to eaa7ae8c75fc52f8492bb08ad68be427

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - - COUNT( * ) * - 26 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1099
SELECT - - COUNT ( * ) * - 26 FROM tab1 AS cor0
----
-78

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

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

query I rowsort
SELECT DISTINCT - - 46 AS col2 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1102
SELECT - - MAX( ALL - col2 ) DIV COUNT( * ) col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1102
SELECT - - MAX ( ALL - col2 ) / COUNT ( * ) col0 FROM tab1 AS cor0
----
-19

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

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

query I rowsort
SELECT - 31 * col0 AS col1 FROM tab2 cor0
----
-1426
-1984
-2325

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1106
SELECT 44 AS col0, + MAX( - 30 ) * + MIN( - + ( + col2 ) ) FROM tab1
----
44
2880

skipif mysql # not compatible
query II rowsort label-1106
SELECT 44 AS col0, + MAX ( - 30 ) * + MIN ( - + ( + col2 ) ) FROM tab1
----
44
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT 63 * COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT 63 * COUNT ( * ) FROM tab1
----
189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT + + 83 * COUNT( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
249

skipif mysql # not compatible
query I rowsort label-1109
SELECT + + 83 * COUNT ( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
249

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - - MAX( ALL + col0 ) + + 33 FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-1111
SELECT - - MAX ( ALL + col0 ) + + 33 FROM tab2 cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT ALL - col2 * + ( - - 31 ) - + col2 + - CAST( - col1 AS SIGNED ) + - 74 * - + col2 AS col2 FROM tab0 AS cor0
----
2055
4159
441

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL - col2 * + ( - - 31 ) - + col2 + - CAST ( - col1 AS INTEGER ) + - 74 * - + col2 AS col2 FROM tab0 AS cor0
----
2055
4159
441

query I rowsort
SELECT - 52 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1267
-149
-1879

query I rowsort
SELECT DISTINCT + 28 * + 62 + + - col2 AS col1 FROM tab2 AS cor0
----
1678
1696
1713

query I rowsort
SELECT DISTINCT + 92 + - 51 + + col1 FROM tab2
----
108
118
92

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

query I rowsort
SELECT DISTINCT 54 + + col2 * + + ( - - 35 ) AS col0 FROM tab0
----
1699
3519
404

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT - 24 + + - COUNT( * ) * - SUM( + - 93 ) FROM tab0
----
-861

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT - 24 + + - COUNT ( * ) * - SUM ( + - 93 ) FROM tab0
----
-861

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - 89
----

query III rowsort
SELECT * FROM tab0 WHERE + + 98 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1, - col1, + 39 )
----

query I rowsort
SELECT - 82 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL 86 * + - col1 FROM tab2
----
-4386
-5762
-6622

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

skipif mysql # not compatible
query I rowsort label-1125
SELECT + 7 * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT DISTINCT + COUNT( * ) AS col1, 94 AS col1 FROM tab1 AS cor0
----
3
94

skipif mysql # not compatible
query II rowsort label-1126
SELECT DISTINCT + COUNT ( * ) AS col1, 94 AS col1 FROM tab1 AS cor0
----
3
94

query I rowsort
SELECT + + col1 * - col2 + - - col1 FROM tab0 AS cor0
----
-189
-3726
-98

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

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

query I rowsort
SELECT ALL - - 59 * + col0 AS col2 FROM tab1 AS cor0
----
3009
5015
5369

query II rowsort
SELECT ALL col1 * + col0 AS col1, + col2 FROM tab0
----
1215
47
1827
10
97
99

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT - - 76 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1132
SELECT + + CAST ( NULL AS INTEGER ) + - col1 col0 FROM tab0 WHERE NOT - col2 / - - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 98 * + + col2 FROM tab2
----
2254
3920
5684

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 - - - 91 <= col0 * + col1 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 - - - 91 <= col0 * + col1 / + col1
----
0

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

query I rowsort
SELECT ALL 59 + col0 AS col0 FROM tab2
----
105
123
134

query II rowsort
SELECT DISTINCT + col1, 93 FROM tab0
----
1
93
21
93
81
93

query I rowsort
SELECT 59 * col1 + - col2 * + 71 AS col0 FROM tab2
----
-165
1376
1703

query I rowsort
SELECT + ( + - ( + - col0 ) ) * + - 45 + + + ( + - 22 ) AS col2 FROM tab1
----
-2317
-3847
-4117

query I rowsort
SELECT ALL ( - - 36 ) FROM tab2
----
36
36
36

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

query I rowsort
SELECT ALL - col2 * col0 * - - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

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

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

query II rowsort
SELECT DISTINCT - - col2 AS col1, col0 + - ( + 69 ) FROM tab0 AS cor0
----
10
18
47
-54
99
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT 82 * - COUNT( DISTINCT + 51 ) col0 FROM tab2 AS cor0
----
-82

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

query II rowsort
SELECT 74 * - - col2 AS col2, - col1 AS col1 FROM tab2
----
1702
-51
2960
-77
4292
-67

query I rowsort
SELECT DISTINCT 11 + + 46 FROM tab1
----
57

query I rowsort
SELECT 81 - - 53 FROM tab0
----
134
134
134

query I rowsort
SELECT - 51 - - - col1 + - col0 FROM tab2
----
-148
-192
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT COUNT( * ) - - + 42 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-1152
SELECT COUNT ( * ) - - + 42 FROM tab0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * - + 63 + - 86 FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * - + 63 + - 86 FROM tab1
----
103

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT MAX( ALL + - col1 ) col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1158
SELECT MAX ( ALL + - col1 ) col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1159
SELECT - + COUNT( DISTINCT - ( col0 ) ) * + COUNT( * ) * - - 11 AS col1, ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-1159
SELECT - + COUNT ( DISTINCT - ( col0 ) ) * + COUNT ( * ) * - - 11 AS col1, ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-99
3

query I rowsort
SELECT DISTINCT + 0 + + 70 FROM tab2 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-1161
SELECT - 99 AS col1, + 37 * 85 DIV + - col1 AS col0 FROM tab1
----
-99
-224
-99
-629
-99
-66

skipif mysql # not compatible
query II rowsort label-1161
SELECT - 99 AS col1, + 37 * 85 / + - col1 AS col0 FROM tab1
----
-99
-224
-99
-629
-99
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT - MIN( ALL - ( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - MIN ( ALL - ( col0 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT + - COUNT( * ) + - + 2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1164
SELECT + - COUNT ( * ) + - + 2 FROM tab0 AS cor0
----
-5

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

query I rowsort
SELECT DISTINCT col2 + 12 * col2 FROM tab0 AS cor0
----
1287
130
611

query I rowsort
SELECT ALL col2 + + + col0 + + col1 FROM tab2
----
120
181
200

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1168
SELECT - - col2 col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL - col0 + - 96 FROM tab0
----
-111
-183
-193

query I rowsort
SELECT 36 - - - col2 * - - col1 FROM tab0 AS cor0
----
-174
-3771
-63

query I rowsort
SELECT ALL + 82 AS col2 FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT SUM( + - 64 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-1172
SELECT SUM ( + - 64 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-189

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

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

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

query I rowsort
SELECT col2 + 66 * - - col1 FROM tab2 AS cor0
----
3389
4480
5122

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

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

query I rowsort
SELECT DISTINCT col2 + - 52 AS col1 FROM tab0
----
-42
-5
47

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1179
SELECT + MAX( DISTINCT - col1 ), ( + - MAX( - - 97 ) ) col0 FROM tab0 WHERE NOT - 44 + - 76 > NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1179
SELECT + MAX ( DISTINCT - col1 ), ( + - MAX ( - - 97 ) ) col0 FROM tab0 WHERE NOT - 44 + - 76 > NULL
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT - 40 / + COUNT ( * ) FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT COUNT( * ) * - + SUM( ALL - col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-1181
SELECT COUNT ( * ) * - + SUM ( ALL - col0 ) FROM tab2
----
555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1182
SELECT DISTINCT 77 / + - 25 * CAST( NULL AS SIGNED ), col0 * col2 col0 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1182
SELECT DISTINCT 77 / + - 25 * CAST ( NULL AS INTEGER ), col0 * col2 col0 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT - - COUNT( * ) * + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1184
SELECT - - COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT + 62 * - COUNT( * ) + + 93 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + 62 * - COUNT ( * ) + + 93 FROM tab1
----
-93

query I rowsort
SELECT DISTINCT + 39 FROM tab0 WHERE NOT ( - col2 + 98 ) IS NULL
----
39

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( - col1 ) BETWEEN + 41 * + col0 + - col1 AND NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1189
SELECT * FROM tab1 WHERE NOT ( 92 ) BETWEEN - ( 29 ) + col1 / + CAST( - col0 - 4 AS SIGNED ) AND - 80 * - 55 + - 28
----

skipif mysql # not compatible
query III rowsort label-1189
SELECT * FROM tab1 WHERE NOT ( 92 ) BETWEEN - ( 29 ) + col1 / + CAST ( - col0 - 4 AS INTEGER ) AND - 80 * - 55 + - 28
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT + col2 < col1
----

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

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

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

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

query I rowsort
SELECT ALL + 11 + - col2 FROM tab0
----
-36
-88
1

query I rowsort
SELECT + col2 * 98 AS col1 FROM tab2
----
2254
3920
5684

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE ( col1 + - 75 ) IS NOT NULL
----
-10
-47
-99

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

query III rowsort
SELECT * FROM tab0 WHERE + 53 NOT IN ( 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * - 20 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT MIN( 32 ) + + 42 AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1201
SELECT MIN ( 32 ) + + 42 AS col2 FROM tab0
----
74

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

skipif mysql # not compatible
query I rowsort label-1202
SELECT - 36 - MIN ( - col2 ) AS col0 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT DISTINCT col1 * - CAST( 59 AS SIGNED ) col1 FROM tab2
----
-3009
-3953
-4543

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1203
SELECT DISTINCT col1 * - CAST ( 59 AS INTEGER ) col1 FROM tab2
----
-3009
-3953
-4543

query I rowsort
SELECT ALL 15 + + col1 * - 47 AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT ALL + MAX( col1 ) + 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-1205
SELECT ALL + MAX ( col1 ) + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 * 13 AS col0 FROM tab1 WHERE NOT 39 * col0 + + 60 IS NULL
----
1248
767
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT ( + 42 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1208
SELECT ALL COUNT( * ) DIV 82 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + col2 ) AND + 50 + col2
----
0

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL COUNT ( * ) / 82 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + col2 ) AND + 50 + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL MAX( ALL 61 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL MAX ( ALL 61 ) FROM tab2
----
61

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 27 + 37 * col2 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT + MAX( + 95 ) * + 63 FROM tab2 AS cor0
----
5985

skipif mysql # not compatible
query I rowsort label-1211
SELECT + MAX ( + 95 ) * + 63 FROM tab2 AS cor0
----
5985

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

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

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

query I rowsort
SELECT ALL col2 * 18 + + 53 AS col1 FROM tab1
----
1115
1277
1781

query I rowsort
SELECT + 73 + - col0 AS col1 FROM tab1
----
-12
-18
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1216
SELECT DISTINCT - 72 DIV + 73 + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - 72 / + 73 + COUNT ( * ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col1 * + col1 + 37 FROM tab0
----
38
478
6598

query I rowsort
SELECT DISTINCT 67 * col0 AS col2 FROM tab2
----
3082
4288
5025

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL - + SUM( + 82 ) - + 99 AS col1 FROM tab0 AS cor0
----
-345

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL - + SUM ( + 82 ) - + 99 AS col1 FROM tab0 AS cor0
----
-345

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

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

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

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

query I rowsort
SELECT ( 23 ) * + col0 FROM tab1 cor0
----
1173
1955
2093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT - 47 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1224
SELECT DISTINCT - 47 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + + col1 * - col0 - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT + 57 - col0 FROM tab0 AS cor0
----
-30
-40
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT + 61 - 66 * + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-1227
SELECT + 61 - 66 * + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-137

query I rowsort
SELECT + 65 - - col0 AS col0 FROM tab0 AS cor0
----
152
162
80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT - SUM( DISTINCT - 95 ) AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-1231
SELECT - SUM ( DISTINCT - 95 ) AS col0 FROM tab1
----
95

query I rowsort
SELECT 81 * - col2 AS col1 FROM tab2
----
-1863
-3240
-4698

query I rowsort
SELECT DISTINCT - 13 * - col1 * col1 FROM tab0
----
13
5733
85293

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL - 80 * + - MIN( ALL - col0 ) * - SUM( col2 * - 86 ) AS col2 FROM tab2
----
-62436000

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - 80 * + - MIN ( ALL - col0 ) * - SUM ( col2 * - 86 ) AS col2 FROM tab2
----
-62436000

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( col0 ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT 58 DIV SUM( DISTINCT 41 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT 58 / SUM ( DISTINCT 41 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT ALL - col0 * - - 77 FROM tab2
----
-3542
-4928
-5775

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1240
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 70 ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1240
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 70 ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT - + 68 AS col0 FROM tab2 AS cor0
----
-68

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

skipif mysql # not compatible
query I rowsort label-1243
SELECT - COUNT ( * ) * - 91 AS col2 FROM tab0 cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT - 45 + COUNT( * ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT - 45 + COUNT ( * ) FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL MIN( ALL - - 7 ) + - 57 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL MIN ( ALL - - 7 ) + - 57 FROM tab2
----
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT - ( - MAX( + col1 ) ) * 75 AS col1 FROM tab1 WHERE NOT NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - ( - MAX ( + col1 ) ) * 75 AS col1 FROM tab1 WHERE NOT NULL = ( NULL )
----
NULL

query I rowsort
SELECT - 12 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + + SUM( DISTINCT - col1 ) * - - 24 AS col1 FROM tab0 AS cor0
----
-2472

skipif mysql # not compatible
query I rowsort label-1251
SELECT + + SUM ( DISTINCT - col1 ) * - - 24 AS col1 FROM tab0 AS cor0
----
-2472

query I rowsort
SELECT DISTINCT + 44 + + + col2 - col0 * - col1 FROM tab1 AS cor0
----
4389
528
854

query I rowsort
SELECT - 27 * col2 * - - col1 + - - 68 * 54 FROM tab0 AS cor0
----
-1998
-99117
999

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

query II rowsort
SELECT col0 - - col2 * + col1 AS col2, ( 13 ) AS col0 FROM tab2
----
1219
13
3144
13
3961
13

query I rowsort
SELECT 75 + - - 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 55400066049fe9a655ffc1f4b4055564

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL 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-1257
SELECT ALL COUNT ( DISTINCT ( col2 ) ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 59 + + + col0 FROM tab0 cor0
----
-44
28
38

query I rowsort
SELECT DISTINCT col0 * col0 - + ( - col1 ) - + 7 FROM tab1 AS cor0
----
2608
7223
8321

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - col2 - + 22 + + col1 + + 31 BETWEEN NULL AND ( 99 ) * col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1260
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - col2 - + 22 + + col1 + + 31 BETWEEN NULL AND ( 99 ) * col0
----
0

query I rowsort
SELECT + - col1 * col2 * - + col0 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

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

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

query I rowsort
SELECT + col0 * - 50 FROM tab0
----
-4350
-4850
-750

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 > ( - - 17 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1271
SELECT + CAST( NULL AS SIGNED ) AS col0, col0 AS col0, col1 FROM tab2
----
9 values hashing to 033226a40f8c7ef6f2ea59c9f6a9c9ce

skipif mysql # not compatible
query III rowsort label-1271
SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 AS col0, col1 FROM tab2
----
9 values hashing to 033226a40f8c7ef6f2ea59c9f6a9c9ce

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

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - ( - - 21 ) / + - COUNT ( * ) FROM tab0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT DISTINCT 55 DIV + ( - 71 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT 55 / + ( - 71 ) FROM tab0
----
0

query II rowsort
SELECT - - col2, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + + col0 + + + 58 FROM tab2 AS cor0
----
104
122
133

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT col1 + - col1 * + + col0 DIV - + col0 FROM tab2 cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-1278
SELECT col1 + - col1 * + + col0 / - + col0 FROM tab2 cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 + - + col0 col0 FROM tab2 AS cor0
----
-110
-81
-99

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 1 = - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - col0 * - 44 / + + col0 + + 98 <= NULL )
----

query I rowsort
SELECT ALL 59 + col1 FROM tab1
----
106
64
73

query II rowsort
SELECT + 75, col0 * - - col0 AS col0 FROM tab2
----
75
2116
75
4096
75
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT MIN( - 78 ) AS col2 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-1285
SELECT MIN ( - 78 ) AS col2 FROM tab1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT - SUM( - + 28 ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - SUM ( - + 28 ) AS col2 FROM tab0
----
84

query I rowsort
SELECT DISTINCT col0 * col1 + - col2 - - 6 + + col0 + - ( + - col1 ) AS col1 FROM tab0
----
102
1270
1931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * - + col0 - + - 27 col2 FROM tab0
----
-183
-7455
-9285

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT ALL - MAX( - ( col0 ) ) AS col2, + 54 AS col2 FROM tab2 AS cor0
----
46
54

skipif mysql # not compatible
query II rowsort label-1289
SELECT ALL - MAX ( - ( col0 ) ) AS col2, + 54 AS col2 FROM tab2 AS cor0
----
46
54

query I rowsort
SELECT + - col1 * + col1 + + 6 * 45 AS col1 FROM tab1 AS cor0
----
-1939
245
74

query I rowsort
SELECT + - 53 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT + 29 * + SUM( + 62 ) + 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16182

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + 29 * + SUM ( + 62 ) + 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
16182

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= - 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1294
SELECT 62 FROM tab0 AS cor0 WHERE NOT - CAST( + 55 AS DECIMAL ) * - col2 < + - ( + - col2 )
----
62
62
62

skipif mysql # not compatible
query I rowsort label-1294
SELECT 62 FROM tab0 AS cor0 WHERE NOT - CAST ( + 55 AS REAL ) * - col2 < + - ( + - col2 )
----
62
62
62

query II rowsort
SELECT ALL - - col1 * + - col0, col1 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

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

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT + COUNT ( ALL - 20 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

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

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

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

query I rowsort
SELECT - col2 * + col1 * - col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - MAX( DISTINCT + 49 ) AS col2 FROM tab2 WHERE NOT - 51 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT - MAX ( DISTINCT + 49 ) AS col2 FROM tab2 WHERE NOT - 51 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( + ( - ( - - col1 ) ) ) AS col2 FROM tab0
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT DISTINCT COUNT( * ) * - - 62 AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT COUNT ( * ) * - - 62 AS col2 FROM tab0 AS cor0
----
186

query I rowsort
SELECT + 5 * + col2 AS col1 FROM tab1
----
295
340
480

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL + ( - + COUNT( * ) ) * - 67 AS col2 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + ( - + COUNT ( * ) ) * - 67 AS col2 FROM tab0 AS cor0
----
201

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT + - COUNT ( * ) * - MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
69

query I rowsort
SELECT - col1 + - - col0 * + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT ALL 22 + - col2 + - + col0 * - col2 FROM tab1 AS cor0
----
4822
4978
6142

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1310
SELECT * FROM tab2 AS cor0 WHERE col2 < col0 * - CAST( NULL AS DECIMAL ) / - 70 * col0
----

skipif mysql # not compatible
query III rowsort label-1310
SELECT * FROM tab2 AS cor0 WHERE col2 < col0 * - CAST ( NULL AS REAL ) / - 70 * col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 82 BETWEEN NULL AND + + 29
----

query I rowsort
SELECT - 31 FROM tab1, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE - + 24 BETWEEN + col2 * + + col2 + - + col1 AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT + col2 DIV - col1 + + 69 FROM tab0
----
-30
69
69

skipif mysql # not compatible
query I rowsort label-1317
SELECT + col2 / - col1 + + 69 FROM tab0
----
-30
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT SUM( + - 75 ) AS col1 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1318
SELECT SUM ( + - 75 ) AS col1 FROM tab0 AS cor0
----
-225

query I rowsort
SELECT DISTINCT 61 FROM tab0 AS cor0 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT + COUNT( * ) * - COUNT( * ) AS col2, 16 AS col1 FROM tab0 cor0
----
-9
16

skipif mysql # not compatible
query II rowsort label-1320
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, 16 AS col1 FROM tab0 cor0
----
-9
16

query I rowsort
SELECT 51 - col1 * ( - - 68 ) FROM tab0 AS cor0
----
-1377
-17
-5457

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 40 col2 FROM tab0
----
139
50
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT SUM( + col0 ) AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-1325
SELECT SUM ( + col0 ) AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
199

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

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

query I rowsort
SELECT ALL + - col2 * ( + 62 ) AS col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1328
SELECT ALL + col2 col1, CAST( col2 AS SIGNED ) + - ( - col1 ) FROM tab2 AS cor0
----
23
74
40
117
58
125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1328
SELECT ALL + col2 col1, CAST ( col2 AS INTEGER ) + - ( - col1 ) FROM tab2 AS cor0
----
23
74
40
117
58
125

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT DISTINCT COUNT( * ), + MIN( DISTINCT + col0 ) + - - 19 AS col0 FROM tab1 AS cor0
----
3
70

skipif mysql # not compatible
query II rowsort label-1330
SELECT DISTINCT COUNT ( * ), + MIN ( DISTINCT + col0 ) + - - 19 AS col0 FROM tab1 AS cor0
----
3
70

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / - 2 + 56 + - 46 > - + col0
----

query I rowsort
SELECT col1 * - 70 FROM tab0
----
-1470
-5670
-70

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

query II rowsort
SELECT + col2 * - - col2 AS col2, 60 AS col2 FROM tab2
----
1600
60
3364
60
529
60

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

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT - COUNT ( * ) * ( 62 ) AS col1 FROM tab0
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT + CAST( SUM( DISTINCT col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + 29 + + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT + CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + 29 + + - col1 IS NOT NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1340
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) = - ( - 25 ) * - col0 * + + col1
----

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) = - ( - 25 ) * - col0 * + + col1
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 53 = + col1
----

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

query I rowsort
SELECT DISTINCT col2 + + 76 FROM tab2 AS cor0
----
116
134
99

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

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

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

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

query I rowsort
SELECT ALL 9 * + ( - ( - + col1 ) ) + - col0 * + - 35 * col0 + - col2 FROM tab1
----
252861
290190
91065

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 43
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1352
SELECT ALL 56 FROM tab1 AS cor0 WHERE NOT NULL <> 66 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL 56 FROM tab1 AS cor0 WHERE NOT NULL <> 66 + - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT MIN( + 85 ) * COUNT( + + 0 ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-1353
SELECT MIN ( + 85 ) * COUNT ( + + 0 ) FROM tab0 AS cor0
----
255

query II rowsort
SELECT ( + + col0 ), col0 FROM tab1
----
51
51
85
85
91
91

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

query I rowsort
SELECT - col0 * - 96 FROM tab2 AS cor0
----
4416
6144
7200

query I rowsort
SELECT - col2 * 20 * 39 FROM tab0 AS cor0
----
-36660
-77220
-7800

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT DISTINCT 57 * - 8 AS col2 FROM tab2
----
-456

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

query II rowsort
SELECT col0 - + col2, + 22 - + col2 + + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
17
22
23
22
24
22

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT DISTINCT - col2 * CAST( - col2 AS SIGNED ) + + - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
1523
3297
478

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - col2 * CAST ( - col2 AS INTEGER ) + + - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
1523
3297
478

query I rowsort
SELECT - - col1 + 86 + - col1 FROM tab2 AS cor0
----
86
86
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT - 33 * + + col2 + - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1397
-1981
-810

skipif mysql # not compatible
query I rowsort label-1372
SELECT - 33 * + + col2 + - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1397
-1981
-810

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

query I rowsort
SELECT 5 + + + col1 AS col0 FROM tab2
----
56
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT COUNT( * ) + + - 65 col2 FROM tab0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1375
SELECT COUNT ( * ) + + - 65 col2 FROM tab0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT DISTINCT 33 * + + col2 + col1 * col1 DIV + col1 + - + col0 + - + col0 AS col1 FROM tab2
----
1269
1831
718

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT 33 * + + col2 + col1 * col1 / + col1 + - + col0 + - + col0 AS col1 FROM tab2
----
1269
1831
718

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * + 13 * + 76 / + col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 + - - col1 * - + col1 FROM tab0
----
-431
-6514
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1380
SELECT DISTINCT COUNT( * ) DIV - CAST( - 4 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT COUNT ( * ) / - CAST ( - 4 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT ALL - + col0 - + - ( + col2 ) FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - + col1 * - col0 - 72 * + 53 FROM tab1 AS cor0
----
-3102
-3391
461

query I rowsort
SELECT - 19 * + 47 * + 82 FROM tab1 AS cor0
----
-73226
-73226
-73226

query I rowsort
SELECT DISTINCT ( + 10 ) FROM tab1 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - COUNT( DISTINCT col2 ) AS col2 FROM tab1 WHERE NOT NULL > - ( - col0 ) + - col2
----
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT - COUNT ( DISTINCT col2 ) AS col2 FROM tab1 WHERE NOT NULL > - ( - col0 ) + - col2
----
0

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

query I rowsort
SELECT + ( - 54 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 + - col1 <= - 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL + MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col2
----

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

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

query II rowsort
SELECT DISTINCT col2 AS col2, - 70 AS col2 FROM tab1 AS cor0
----
59
-70
68
-70
96
-70

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + ( + col0 ) - + + 17 * - + 75 ) AND + 41 + + - col0
----

query I rowsort
SELECT + 2 * - col1 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT 83 * col0 AS col0 FROM tab2
----
3818
5312
6225

query II rowsort
SELECT - col2 * - col1 AS col1, col1 AS col1 FROM tab0
----
210
21
3807
81
99
1

query I rowsort
SELECT ( 49 ) * + ( + col2 ) * - col1 AS col1 FROM tab0
----
-10290
-186543
-4851

query I rowsort
SELECT ALL ( - 57 ) FROM tab0
----
-57
-57
-57

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

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

query II rowsort
SELECT DISTINCT + col0 + - col0 AS col1, - 6 AS col2 FROM tab1 AS cor0
----
0
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + 56
----

query I rowsort
SELECT DISTINCT - col2 + - 61 * - + col1 AS col1 FROM tab1
----
246
2799
758

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT - MIN( - col1 ) - 6 AS col1 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1408
SELECT - MIN ( - col1 ) - 6 AS col1 FROM tab2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT col2 - col0 DIV - col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-1409
SELECT col2 - col0 / - col2 FROM tab2
----
25
41
59

query I rowsort
SELECT - col2 - 88 AS col2 FROM tab1
----
-147
-156
-184

query I rowsort
SELECT + col1 - col2 * + ( - col2 ) AS col0 FROM tab2
----
1677
3431
580

query I rowsort
SELECT - 87 * - + 37 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 0860313e03c5b4674a90126f968d08ce

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-1414
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
81

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

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

query I rowsort
SELECT ALL - 11 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 84 AS col2 FROM tab2 AS cor0
----
3864
5376
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL - + 7 * - + COUNT( * ) col1 FROM tab2 AS cor0
----
21

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

query I rowsort
SELECT DISTINCT + - 10 + 7 FROM tab1 AS cor0
----
-3

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + 6 - - col1 IS NULL
----

query II rowsort
SELECT DISTINCT 31 * col2, col2 FROM tab2
----
1240
40
1798
58
713
23

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

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

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

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

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

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

query II rowsort
SELECT ALL - col2 AS col1, + col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT col2 * + 24 + - 2 FROM tab0
----
1126
2374
238

query I rowsort
SELECT DISTINCT + 55 * - - 0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 21 / + - 41 col0 FROM tab0 AS cor0 WHERE NULL >= 92 / + + col0
----

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

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

query I rowsort
SELECT col0 * + - 57 * - - 3 - col0 FROM tab0
----
-14964
-16684
-2580

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

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

query I rowsort
SELECT + col2 + - 78 FROM tab2 cor0
----
-20
-38
-55

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

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

query I rowsort
SELECT ALL - + ( - 28 ) + 11 AS col1 FROM tab2 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 46 > col0
----
2

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 46 > col0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * 78 / - col0 + + col1 = + ( 8 )
----

query I rowsort
SELECT ALL ( + 30 ) FROM tab1
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL 98 * - MIN( DISTINCT 94 ) AS col1 FROM tab1
----
-9212

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL 98 * - MIN ( DISTINCT 94 ) AS col1 FROM tab1
----
-9212

query II rowsort
SELECT - ( + + col1 ), col2 * 16 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT - SUM( + - 88 ) col1 FROM tab2
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1444
SELECT - SUM ( + - 88 ) col1 FROM tab2
----
264

query II rowsort
SELECT + 66 AS col2, col0 FROM tab0 AS cor0
----
66
15
66
87
66
97

query I rowsort
SELECT DISTINCT - col0 * - 6 AS col1 FROM tab1 AS cor0
----
306
510
546

query I rowsort
SELECT + col0 + - 83 FROM tab0 AS cor0
----
-68
14
4

query I rowsort
SELECT DISTINCT - - col0 * - ( - col2 ) * col0 FROM tab1 AS cor0
----
249696
426275
563108

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> col0
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT COUNT( * ) * - 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-1453
SELECT COUNT ( * ) * - 90 FROM tab2
----
-270

query I rowsort
SELECT ALL + 10 + 9 FROM tab0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT DISTINCT - MAX( + 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - MAX ( + 66 ) FROM tab1
----
-66

query I rowsort
SELECT + 95 * - 29 AS col1 FROM tab1
----
-2755
-2755
-2755

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - - col0 + + 16 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 col1 FROM tab0
----
225
7569
9409

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 BETWEEN col2 + + 59 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT DISTINCT + COUNT( * ) DIV - + 48 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT + COUNT ( * ) / - + 48 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + col2 - + + 70 + + col0 FROM tab0
----
-8
126
27

query I rowsort
SELECT DISTINCT - col2 - - - col2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT ALL - ( MIN( DISTINCT - col1 ) ) DIV + 67 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - ( MIN ( DISTINCT - col1 ) ) / + 67 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1465
SELECT DISTINCT 11 * - col2 DIV - col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT 11 * - col2 / - col2 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT - - COUNT( * ) AS col1, 4 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-1466
SELECT - - COUNT ( * ) AS col1, 4 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT 42 + + + SUM( + CAST( - + col1 AS SIGNED ) ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT 42 + + + SUM ( + CAST ( - + col1 AS INTEGER ) ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1468
SELECT + COUNT( * ) AS col1, SUM( DISTINCT + 26 ) + 81 * 72 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1468
SELECT + COUNT ( * ) AS col1, SUM ( DISTINCT + 26 ) + 81 * 72 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT 38 DIV + col1 col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1470
SELECT 38 / + col1 col1 FROM tab1
----
0
2
7

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

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

query II rowsort
SELECT DISTINCT + col1 * - + col1 AS col0, col0 + col1 * col2 AS col1 FROM tab0 AS cor0
----
-1
196
-441
297
-6561
3822

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL MAX( ALL - col0 ) * + COUNT( * ) AS col0 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL MAX ( ALL - col0 ) * + COUNT ( * ) AS col0 FROM tab1
----
-153

query I rowsort
SELECT ALL - col1 * 25 AS col0 FROM tab2 AS cor0
----
-1275
-1675
-1925

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT 82 + COUNT( * ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT 82 + COUNT ( * ) FROM tab1 AS cor0
----
85

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

skipif mysql # not compatible
query I rowsort label-1479
SELECT + SUM ( DISTINCT - 97 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT 61 * + col2 - + + col1 + + + col2 + col0 FROM tab0 AS cor0 WHERE - col2 + - - 93 NOT BETWEEN + col2 AND NULL
----
2848
6234

query I rowsort
SELECT + col1 + + col1 + + + col1 * col2 AS col2 FROM tab0
----
101
252
3969

query I rowsort
SELECT DISTINCT - 49 * - - col1 + 29 * - col2 AS col1 FROM tab1
----
-1956
-3470
-4275

query I rowsort
SELECT col0 * 64 + + ( + col0 ) AS col2 FROM tab2
----
2990
4160
4875

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 87 AND + 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT SUM( - - col1 ) FROM tab0 WHERE NULL = ( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT SUM ( - - col1 ) FROM tab0 WHERE NULL = ( + 15 )
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE col2 - - 98 + + 51 - + - 62 * col0 BETWEEN - 47 AND + 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT 16 * + CAST( - ( + 60 ) AS SIGNED ) FROM tab1
----
-960
-960
-960

skipif mysql # not compatible
query I rowsort label-1487
SELECT 16 * + CAST ( - ( + 60 ) AS INTEGER ) FROM tab1
----
-960
-960
-960

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

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL + - COUNT ( * ) * - - SUM ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
669

query I rowsort
SELECT + 23 * - - col1 * 30 * - col1 * + + 41 AS col0 FROM tab2 cor0
----
-126993810
-167731410
-73582290

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT + col2 DIV - 20 col2 FROM tab1 AS cor0
----
-2
-3
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1490
SELECT + col2 / - 20 col2 FROM tab1 AS cor0
----
-2
-3
-4

query I rowsort
SELECT - col2 * + + 19 * col1 FROM tab0 AS cor0
----
-1881
-3990
-72333

query I rowsort
SELECT ALL - + 58 * + ( + + 9 ) * + + col0 + + 94 FROM tab2 AS cor0
----
-23918
-33314
-39056

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1496
SELECT * FROM tab2 WHERE NOT 54 + + - 22 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1496
SELECT * FROM tab2 WHERE NOT 54 + + - 22 < + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT col1 DIV + - col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1497
SELECT col1 / + - col2 AS col0 FROM tab2
----
-1
-1
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1500
SELECT - col1 AS col2, col0 + - + CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-1500
SELECT - col1 AS col2, col0 + - + CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query II rowsort
SELECT - + col2 AS col0, + col0 * - ( - - 36 ) + - col1 AS col2 FROM tab2 AS cor0
----
-23
-1707
-40
-2381
-58
-2767

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab1 cor0
----
-96

query I rowsort
SELECT ALL + 76 FROM tab2 AS cor0 WHERE + 74 IS NOT NULL
----
76
76
76

query I rowsort
SELECT + col2 + + 91 AS col2 FROM tab0
----
101
138
190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1505
SELECT DISTINCT - AVG ( + CAST( NULL AS DECIMAL ) ) AS col2, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1505
SELECT DISTINCT - AVG ( + CAST ( NULL AS REAL ) ) AS col2, COUNT ( * ) FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1506
SELECT - 65 + - 3 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-1506
SELECT - 65 + - 3 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
-68
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - COUNT( * ) * - - 2 AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1508
SELECT - COUNT ( * ) * - - 2 AS col0 FROM tab0 AS cor0
----
-6

query II rowsort
SELECT ALL - - 43 + + + col2, + col2 FROM tab0 AS cor0
----
142
99
53
10
90
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT SUM( col1 ) + - COUNT( * ) * + 51 col0 FROM tab2
----
42

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col0 >= col0
----
14
47
5

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

query I rowsort
SELECT ALL + 96 FROM tab0 WHERE NOT 61 IN ( col1 )
----
96
96
96

query I rowsort
SELECT - 96 - + + col0 FROM tab1
----
-147
-181
-187

query I rowsort
SELECT ALL 36 * + col2 AS col1 FROM tab0
----
1692
3564
360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT - 81 + - MIN( - col0 ) * - 35 FROM tab1
----
-3266

skipif mysql # not compatible
query I rowsort label-1517
SELECT - 81 + - MIN ( - col0 ) * - 35 FROM tab1
----
-3266

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT ALL - 4 DIV - 5 * col0 * + + 95 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - 4 / - 5 * col0 * + + 95 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL 65 AS col1 FROM tab0 WHERE ( col2 ) * + 60 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT - 14 FROM tab2 WHERE NOT CAST( + 78 AS SIGNED ) / + CAST( + 74 AS SIGNED ) + col1 * - - col0 * - col0 > 50
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 14 FROM tab2 WHERE NOT CAST ( + 78 AS INTEGER ) / + CAST ( + 74 AS INTEGER ) + col1 * - - col0 * - col0 > 50
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT 82 * COUNT( ALL - 19 ) col1 FROM tab1
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1521
SELECT DISTINCT 82 * COUNT ( ALL - 19 ) col1 FROM tab1
----
246

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND 45
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT - SUM( - 21 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT - SUM ( - 21 ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT + MAX( - 79 ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-1527
SELECT + MAX ( - 79 ) FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT ALL MIN( + col2 ) * - + 15 + + COUNT( * ) AS col2 FROM tab1
----
-882

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL MIN ( + col2 ) * - + 15 + + COUNT ( * ) AS col2 FROM tab1
----
-882

query I rowsort
SELECT ALL - 15 * - 40 AS col2 FROM tab2
----
600
600
600

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT 5 DIV + + 45 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1530
SELECT 5 / + + 45 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 82 * + + col2 AS col1 FROM tab1
----
4838
5576
7872

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + 38 BETWEEN NULL AND - col1
----

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

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

query I rowsort
SELECT + - col1 + - col1 * col2 * + col0 FROM tab2 cor0
----
-197197
-291517
-54009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 * 7 + - + col1 col2, - col0 * - 13 FROM tab2 AS cor0
----
110
598
203
832
339
975

query I rowsort
SELECT - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <= + col1
----
97
1
99

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

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

query I rowsort
SELECT ALL - - 33 AS col2 FROM tab1 AS cor0 WHERE NOT - 50 * + + col2 * - 46 NOT BETWEEN + col1 * + col2 + - + 14 * - + col2 AND - col0 + - 22
----

query I rowsort
SELECT + col2 * - col0 - + col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # DIV for integer division: 
query I rowsort label-1542
SELECT + col0 DIV + - col0 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-1542
SELECT + col0 / + - col0 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

query I rowsort
SELECT + 73 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
73
73
73

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1545
SELECT ALL - - col2, + ( + + 65 ) DIV + col0 col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1545
SELECT ALL - - col2, + ( + + 65 ) / + col0 col0 FROM tab1 AS cor0
----
59
0
68
0
96
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 10 col2, 4 FROM tab1 AS cor0
----
-10
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT - + COUNT( * ) DIV COUNT( * ) + + 42 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - + COUNT ( * ) / COUNT ( * ) + + 42 FROM tab0 AS cor0
----
41

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

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

query I rowsort
SELECT DISTINCT + + ( + - col0 ) + col1 FROM tab2 AS cor0
----
-8
13
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT col1 + + CAST( + - col0 AS SIGNED ) FROM tab2 cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-1551
SELECT col1 + + CAST ( + - col0 AS INTEGER ) FROM tab2 cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1552
SELECT DISTINCT col1 + - col2 - + + CAST( - - col0 AS SIGNED ) - col0, - 53 AS col1 FROM tab2
----
-141
-53
-64
-53
-91
-53

skipif mysql # not compatible
query II rowsort label-1552
SELECT DISTINCT col1 + - col2 - + + CAST ( - - col0 AS INTEGER ) - col0, - 53 AS col1 FROM tab2
----
-141
-53
-64
-53
-91
-53

query I rowsort
SELECT ALL 33 - + 56 FROM tab1
----
-23
-23
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT DISTINCT CAST( + - col0 AS SIGNED ) + + col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) + + col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 60 + + + 16 AND + col1 * - + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL + - SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE + ( - - col0 ) - - col1 + - - col0 - - col0 * + col1 + + + col2 * + 10 > - col2
----
-103

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL + - SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE + ( - - col0 ) - - col1 + - - col0 - - col0 * + col1 + + + col2 * + 10 > - col2
----
-103

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + col1 * + col2 FROM tab1 AS cor0
----
14
1344
47
3196
5
295

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1564
SELECT + COUNT ( * ), + 5 / - COUNT ( * ) col2 FROM tab0 AS cor0
----
3
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1565
SELECT DISTINCT + col1, col2 * col0 DIV col0 * + + CAST( + 3 AS SIGNED ) FROM tab1 cor0
----
14
288
47
204
5
177

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT + col1, col2 * col0 / col0 * + + CAST ( + 3 AS INTEGER ) FROM tab1 cor0
----
14
288
47
204
5
177

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

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

query I rowsort
SELECT ALL - col1 * + 40 AS col0 FROM tab0
----
-3240
-40
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL - MIN( DISTINCT + CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - MIN ( DISTINCT + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1
----
91

query II rowsort
SELECT + col0 * + + 4 AS col2, + ( - col0 ) + - col0 AS col2 FROM tab2
----
184
-92
256
-128
300
-150

query I rowsort
SELECT DISTINCT - 30 + col1 + + 33 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 49 * - - 59 AS col2 FROM tab0
----
2891
2891
2891

query I rowsort
SELECT + col0 * + + col2 AS col0 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1573
SELECT ALL * FROM tab0 WHERE ( - CAST( - 80 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-1573
SELECT ALL * FROM tab0 WHERE ( - CAST ( - 80 AS INTEGER ) IS NULL )
----

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

query II rowsort
SELECT - ( col1 ) + col2 + - - 7 + 67 * col2 AS col1, col1 FROM tab2
----
1520
51
2650
77
3884
67

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

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

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE 63 + + col0 + 89 >= + - col2 / + - 56
----
-51
-67
-77

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT SUM ( ALL + + col0 ) * COUNT ( * ) * + 52 FROM tab0 AS cor0
----
31044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 47, 57 * - col1 col2 FROM tab2
----
-47
-2907
-47
-3819
-47
-4389

query I rowsort
SELECT - col1 * - col1 - - 59 * - col0 FROM tab0
----
-4692
-5722
5676

query I rowsort
SELECT ALL - 64 - + col0 AS col1 FROM tab2
----
-110
-128
-139

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + ( - ( + 29 ) ) * - 79 IS NULL AND NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL 77 + + + COUNT( * ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL 77 + + + COUNT ( * ) AS col0 FROM tab0
----
80

query I rowsort
SELECT DISTINCT + 20 - 90 AS col0 FROM tab2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1585
SELECT ALL + CAST( NULL AS SIGNED ), SUM( ALL - col0 ) col1 FROM tab0 cor0
----
NULL
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1585
SELECT ALL + CAST ( NULL AS INTEGER ), SUM ( ALL - col0 ) col1 FROM tab0 cor0
----
NULL
-199

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * + 98 col2 FROM tab0
----
3332
3332
3332

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1590
SELECT DISTINCT + ( COUNT( * ) ) AS col0, ( + 36 ) - - COUNT( * ) col1, - - 79 FROM tab1 AS cor0
----
3
39
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1590
SELECT DISTINCT + ( COUNT ( * ) ) AS col0, ( + 36 ) - - COUNT ( * ) col1, - - 79 FROM tab1 AS cor0
----
3
39
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1591
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 28, ( + - col1 ) + + 43 * + + col1 * col1 + 28, - + ( CAST( + col0 AS SIGNED ) ), + - col1 + ( - col0 ) * + col2 * - + col2, - 21 )
----

skipif mysql # not compatible
query III rowsort label-1591
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 28, ( + - col1 ) + + 43 * + + col1 * col1 + 28, - + ( CAST ( + col0 AS INTEGER ) ), + - col1 + ( - col0 ) * + col2 * - + col2, - 21 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT - - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col0 * + - 95 NOT BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query I rowsort label-1593
SELECT - - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 * + - 95 NOT BETWEEN NULL AND - col0
----

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

query I rowsort
SELECT ALL + ( 50 ) * - col1 * 51 FROM tab2 AS cor0
----
-130050
-170850
-196350

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 cor0 WHERE + col0 / + 62 < + - col2 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1597
SELECT ALL + MAX( + - CAST( NULL AS DECIMAL ) ) / CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + MAX ( + - CAST ( NULL AS REAL ) ) / CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
NULL

query II rowsort
SELECT + col1, col2 * - - col1 AS col2 FROM tab2
----
51
1173
67
3886
77
3080

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2, tab0 cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + - 37 * 9 col1 FROM tab0
----
-367
-367
-367

query I rowsort
SELECT ALL 39 + + col2 + - col2 + + - col1 FROM tab0 cor0
----
-42
18
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT COUNT( * ) * + 27 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT COUNT ( * ) * + 27 FROM tab2
----
81

query I rowsort
SELECT ALL 93 AS col0 FROM tab1 WHERE NOT + 15 <= col0 - - 42
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 23 <> ( - col1 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - 40 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT + CAST( NULL AS SIGNED ) + + 89 / 22 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1607
SELECT + CAST ( NULL AS INTEGER ) + + 89 / 22 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL - MAX( 62 ) col2 FROM tab0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1609
SELECT ALL - MAX ( 62 ) col2 FROM tab0
----
-62

query I rowsort
SELECT + col0 - 25 * 50 AS col1 FROM tab2
----
-1175
-1186
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT ( + 36 ) + COUNT( DISTINCT - col0 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT ( + 36 ) + COUNT ( DISTINCT - col0 ) FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT + 40 - COUNT( * ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-1612
SELECT + 40 - COUNT ( * ) FROM tab0
----
37

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( col0 ) * col0 >= 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - SUM( ALL - 50 ) * 4 FROM tab1
----
600

skipif mysql # not compatible
query I rowsort label-1614
SELECT - SUM ( ALL - 50 ) * 4 FROM tab1
----
600

query I rowsort
SELECT ALL - 75 * - col2 + + col0 FROM tab1
----
4510
5191
7251

query I rowsort
SELECT DISTINCT col2 - ( col1 ) * col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT - col1 + 28 AS col0 FROM tab1 WHERE + 20 + col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1618
SELECT 32 * - COUNT ( * ) AS col1 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - COUNT( * ) + + 9 * + 89 AS col0 FROM tab2
----
798

skipif mysql # not compatible
query I rowsort label-1619
SELECT - COUNT ( * ) + + 9 * + 89 AS col0 FROM tab2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL 70 * - COUNT( * ) FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL 70 * - COUNT ( * ) FROM tab1
----
-210

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab2 WHERE NOT ( - col0 + + 28 * col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1622
SELECT + 32 * col1 + + col0 DIV + 84 FROM tab2
----
1632
2144
2464

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 32 * col1 + + col0 / + 84 FROM tab2
----
1632
2144
2464

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

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

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

query I rowsort
SELECT ALL - col0 * - col1 AS col1 FROM tab0 WHERE NOT col0 - + 20 <> ( NULL )
----

query I rowsort
SELECT DISTINCT 60 + - 68 AS col0 FROM tab0
----
-8

query I rowsort
SELECT + 49 - + col0 * 61 AS col0 FROM tab0
----
-5258
-5868
-866

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT + col2 - col0 DIV col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-1628
SELECT + col2 - col0 / col2 FROM tab2
----
21
39
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL ( + 29 ) DIV + 50 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL ( + 29 ) / + 50 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT DISTINCT + ( col0 ) DIV col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + ( col0 ) / col1 AS col0 FROM tab1
----
1
17
3

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - 74 ) BETWEEN col2 / + col1 AND ( col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 - ( + 88 ) >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( - ( + col0 ) * - col2 ) IS NULL
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT SUM( + 92 ) / 53 FROM tab2 WHERE NOT + col1 * 94 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT SUM ( + 92 ) / 53 FROM tab2 WHERE NOT + col1 * 94 IS NOT NULL
----
NULL

query I rowsort
SELECT 3 * 75 AS col2 FROM tab1
----
225
225
225

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 + 40 * + 59 AND NULL
----

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

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

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - 96 < NULL
----

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

query I rowsort
SELECT DISTINCT 5 + + + 2 AS col0 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT - MAX( 69 ) col2 FROM tab0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1646
SELECT - MAX ( 69 ) col2 FROM tab0
----
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT col2 * - - CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-1648
SELECT col2 * - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT MIN( DISTINCT + - col0 ) * - 17 AS col0 FROM tab0
----
1649

skipif mysql # not compatible
query I rowsort label-1649
SELECT MIN ( DISTINCT + - col0 ) * - 17 AS col0 FROM tab0
----
1649

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT DISTINCT 43 * - 4 * - 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-1651
SELECT DISTINCT 43 * - 4 * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT col1 * - 81 FROM tab2 AS cor0
----
-4131
-5427
-6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 * - 76 + + col0 col0 FROM tab1 AS cor0
----
5599
5633
5639

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT DISTINCT ( MAX( ALL CAST( ( col0 ) AS SIGNED ) ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT ( MAX ( ALL CAST ( ( col0 ) AS INTEGER ) ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL - col0 + + ( - 69 ) * - ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-4156
-4783
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + MAX( 43 ) + - MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1657
SELECT + MAX ( 43 ) + - MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT + 10 + - 86 - + 70 * col1 DIV col0 FROM tab0
----
-454
-76
-92

skipif mysql # not compatible
query I rowsort label-1658
SELECT + 10 + - 86 - + 70 * col1 / col0 FROM tab0
----
-454
-76
-92

query I rowsort
SELECT - col1 + - - 98 FROM tab0
----
17
77
97

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

query I rowsort
SELECT DISTINCT - col1 * 3 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-153
-201
-231

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT COUNT( ALL + 2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + 80 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT COUNT ( ALL + 2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + 80 AND col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 / col1 )
----

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

query I rowsort
SELECT DISTINCT + 38 * + col2 AS col2 FROM tab2
----
1520
2204
874

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

query I rowsort
SELECT DISTINCT + ( + + col0 ) * + 85 AS col2 FROM tab2
----
3910
5440
6375

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT ALL col2 DIV - - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL col2 / - - col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - ( MIN( col0 ) ) AS col0 FROM tab1 WHERE NOT 62 NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT - ( MIN ( col0 ) ) AS col0 FROM tab1 WHERE NOT 62 NOT BETWEEN + col0 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - 49 * + + 20 + col2 + col1
----

query I rowsort
SELECT ALL - col1 * col0 FROM tab1 WHERE ( + 93 - - col0 / - col2 ) NOT IN ( col0 * - 3 + col2 )
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT DISTINCT - 28 DIV - col2 + col0 FROM tab2 AS cor0 WHERE ( NOT ( + - 23 DIV 24 ) IS NULL )
----
47
64
75

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT - 28 / - col2 + col0 FROM tab2 AS cor0 WHERE ( NOT ( + - 23 / 24 ) IS NULL )
----
47
64
75

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

query I rowsort
SELECT DISTINCT + + 78 AS col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT + 91 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT MIN ( col2 ) FROM tab1 cor0
----
59

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

query I rowsort
SELECT ALL - 77 + col0 FROM tab2 AS cor0
----
-13
-2
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT + + 66 * 75 + COUNT( * ) col2 FROM tab2 AS cor0
----
4953

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1681
SELECT + + 66 * 75 + COUNT ( * ) col2 FROM tab2 AS cor0
----
4953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 - + col0 - + col0 * - + col1 col2 FROM tab1 AS cor0
----
4322
458
855

query I rowsort
SELECT 30 + 59 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL 87 + MIN( DISTINCT + + col1 ) AS col0 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL 87 + MIN ( DISTINCT + + col1 ) AS col0 FROM tab0
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT 10 + SUM( ALL + CAST( NULL AS SIGNED ) ) + 62 - + MAX( + 89 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT 10 + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + 62 - + MAX ( + 89 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT ALL + col2 DIV - + 71 + + 84 FROM tab0
----
83
84
84

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + col2 / - + 71 + + 84 FROM tab0
----
83
84
84

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

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

query I rowsort
SELECT 28 + + col0 AS col0 FROM tab0
----
115
125
43

query I rowsort
SELECT DISTINCT 74 * + 10 FROM tab0
----
740

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT + 95 DIV - 39 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1692
SELECT + 95 / - 39 FROM tab0 AS cor0
----
-2
-2
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, ( 89 ) * col2 + col1 FROM tab0 cor0
----
15
4264
87
911
97
8812

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT - col0 * - 6 + - + col1 + 97 - col2 DIV - col2 FROM tab0
----
107
599
679

skipif mysql # not compatible
query I rowsort label-1695
SELECT - col0 * - 6 + - + col1 + 97 - col2 / - col2 FROM tab0
----
107
599
679

query II rowsort
SELECT - + col1 + - col2 AS col0, - 15 AS col0 FROM tab2 AS cor0
----
-117
-15
-125
-15
-74
-15

query II rowsort
SELECT col1 * ( + 88 ) + - 65 + - col2, + col2 AS col0 FROM tab2 AS cor0
----
4400
23
5773
58
6671
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - 19 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1698
SELECT - 19 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT - + COUNT( DISTINCT + 42 ) col0 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT DISTINCT + + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 40 * - col0 + - col0 + - 7 AS col2 FROM tab0 AS cor0
----
-3574
-3984
-622

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL COUNT( * ) * - + ( - - 98 ) AS col1 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL COUNT ( * ) * - + ( - - 98 ) AS col1 FROM tab2
----
-294

query I rowsort
SELECT DISTINCT - col2 * - - col2 * + + col2 FROM tab1
----
-205379
-314432
-884736

query I rowsort
SELECT ALL AVG ( ALL col0 ) AS col2 FROM tab0 WHERE + ( col2 ) * + col0 IN ( - + col1 * - + ( + 6 ) )
----
NULL

query II rowsort
SELECT ALL + col1 AS col2, + 7 * 85 FROM tab2
----
51
595
67
595
77
595

onlyif mysql # DIV for integer division: 
query II rowsort label-1707
SELECT - + 11 AS col0, col1 DIV + col2 + + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-11
53
-11
68
-11
78

skipif mysql # not compatible
query II rowsort label-1707
SELECT - + 11 AS col0, col1 / + col2 + + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-11
53
-11
68
-11
78

query II rowsort
SELECT DISTINCT - col1, + ( 23 ) AS col2 FROM tab0 AS cor0
----
-1
23
-21
23
-81
23

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

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

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

query I rowsort
SELECT ALL 83 * - 79 FROM tab1 cor0 WHERE NULL IS NULL
----
-6557
-6557
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL + MIN( ALL 44 ) FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + MIN ( ALL 44 ) FROM tab1 cor0
----
44

query I rowsort
SELECT DISTINCT + col0 + + 62 AS col1 FROM tab2 AS cor0
----
108
126
137

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 = NULL
----

query I rowsort
SELECT ALL + 86 + col0 + - 2 AS col2 FROM tab2 AS cor0
----
130
148
159

query I rowsort
SELECT DISTINCT - 11 + ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL = col2
----

query III rowsort
SELECT * FROM tab0 WHERE - ( ( - ( 25 ) ) ) IN ( - - col1 * 65 )
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE col0 = NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( + col0 / - CAST( - + col2 AS SIGNED ) ) <> ( col1 * - col2 + - + ( 20 ) ) )
----

skipif mysql # not compatible
query I rowsort label-1722
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( + col0 / - CAST ( - + col2 AS INTEGER ) ) <> ( col1 * - col2 + - + ( 20 ) ) )
----

query I rowsort
SELECT + col2 + + + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 19 col1 FROM tab2
----
21
39
4

query I rowsort
SELECT - col1 + + 81 + + col2 + - + 1 FROM tab0
----
178
46
69

query I rowsort
SELECT DISTINCT - col0 * - col2 * - + col1 FROM tab0
----
-18270
-57105
-9603

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

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

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

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

query I rowsort
SELECT ALL + + 93 * - 61 + - col2 FROM tab1 AS cor0
----
-5732
-5741
-5769

query I rowsort
SELECT DISTINCT - col0 * + 87 * col1 FROM tab0
----
-105705
-158949
-8439

query I rowsort
SELECT ALL + col2 * - 30 AS col0 FROM tab0
----
-1410
-2970
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT CAST( 86 AS SIGNED ) * + + col2 col1 FROM tab0
----
4042
8514
860

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1733
SELECT CAST ( 86 AS INTEGER ) * + + col2 col1 FROM tab0
----
4042
8514
860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1734
SELECT DISTINCT MIN( DISTINCT col1 ) DIV + COUNT( 32 ) col0 FROM tab2
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1734
SELECT DISTINCT MIN ( DISTINCT col1 ) / + COUNT ( 32 ) col0 FROM tab2
----
17

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL - 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-1736
SELECT ALL - COUNT ( + - col0 ) col2 FROM tab2 AS cor0
----
-3

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + + col0 + + col1 = + 42
----

query I rowsort
SELECT + 43 * - col2 - + - 96 AS col0 FROM tab2 AS cor0
----
-1624
-2398
-893

query I rowsort
SELECT ALL - col1 + - + ( + col0 ) * col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT + - 43 FROM tab2 AS cor0 WHERE NOT + col0 + - ( + 17 ) < - + col0
----
-43
-43
-43

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-23
-40
-58

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

query II rowsort
SELECT ALL - + 9 * + col2 / - col2 * - col2, col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - ( - 85 )
----

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

skipif mysql # not compatible
query I rowsort label-1747
SELECT + MIN ( ALL + 52 ) FROM tab2 cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT - col0 + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT - col0 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT ( + - 86 ) * 91 + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-7667
-7679
-7682

query I rowsort
SELECT - - col1 * col2 + col2 - 91 AS col2 FROM tab2 AS cor0
----
1105
3029
3853

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL 93 + - - col1 FROM tab0 AS cor0
----
114
174
94

query II rowsort
SELECT 28 + - col1 * + col2, + col0 * col1 AS col2 FROM tab0 cor0
----
-182
1827
-3779
1215
-71
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1755
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + - col1 + + CAST( + + 70 AS SIGNED ) <= + col0 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-1755
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + - col1 + + CAST ( + + 70 AS INTEGER ) <= + col0 + + col0 )
----

query I rowsort
SELECT ALL - 64 FROM tab2 cor0 WHERE - 93 + 49 + + - 22 IS NULL
----

query I rowsort
SELECT - + 86 AS col1 FROM tab1 WHERE NULL IS NULL
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + 32 * + ( - - col2 ) + + + col0 * col0 * + col0 FROM tab1
----
135723
616013
755747

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

query I rowsort
SELECT DISTINCT + col1 * + - 37 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 2 * - + ( + col2 ) FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT + + 16 FROM tab0 AS cor0 WHERE NOT + 62 * + + col2 <> - - col2 * + col0
----

query II rowsort
SELECT - col2 AS col1, col1 * - col1 - col0 * - col2 AS col1 FROM tab0
----
-10
429
-47
-5856
-99
9602

query I rowsort
SELECT ALL + ( - col1 ) * - 60 + + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
3014
3945
4556

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1766
SELECT + CAST( NULL AS SIGNED ) AS col1, + 59 + col2 - - 9 AS col2 FROM tab0 AS cor0
----
NULL
115
NULL
167
NULL
78

skipif mysql # not compatible
query II rowsort label-1766
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 59 + col2 - - 9 AS col2 FROM tab0 AS cor0
----
NULL
115
NULL
167
NULL
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1767
SELECT COUNT( - CAST( + col2 AS DECIMAL ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1767
SELECT COUNT ( - CAST ( + col2 AS REAL ) ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT ALL + CAST( + 28 AS SIGNED ) AS col1 FROM tab1 cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + CAST ( + 28 AS INTEGER ) AS col1 FROM tab1 cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT DISTINCT CAST( - 98 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE + col0 < + col1 + + col1
----
-98

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT CAST ( - 98 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE + col0 < + col1 + + col1
----
-98

query I rowsort
SELECT 31 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND ( + ( 69 ) + - 31 )
----
31

query I rowsort
SELECT + col1 * - - ( - col0 ) * 85 + 38 + + col1 AS col0 FROM tab1 AS cor0
----
-36082
-363460
-60638

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + MIN( ALL + col0 ) * + 78 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1772
SELECT + MIN ( ALL + col0 ) * + 78 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1170

query I rowsort
SELECT - col1 * - 49 AS col0 FROM tab1
----
2303
245
686

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL + 40 * COUNT( * ) AS col1 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + 40 * COUNT ( * ) AS col1 FROM tab1
----
120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1775
SELECT ALL + 34 DIV - col2 + + CAST( - 36 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - 80 + + col0 IS NULL
----
-36
-36
-39

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL + 34 / - col2 + + CAST ( - 36 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - 80 + + col0 IS NULL
----
-36
-36
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-1776
SELECT ALL col1, col0 DIV col0 FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-1776
SELECT ALL col1, col0 / col0 FROM tab2
----
51
1
67
1
77
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1777
SELECT CAST( + 91 AS SIGNED ), + col2 AS col2 FROM tab0
----
91
10
91
47
91
99

skipif mysql # not compatible
query II rowsort label-1777
SELECT CAST ( + 91 AS INTEGER ), + col2 AS col2 FROM tab0
----
91
10
91
47
91
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT col2 DIV + - 35 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1779
SELECT col2 / + - 35 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT ( - - 42 ) * + + col1 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT MAX( 70 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-1781
SELECT MAX ( 70 ) FROM tab1
----
70

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT ALL - ( + - 77 ) + 14 * + + col0 FROM tab0 AS cor0
----
1295
1435
287

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

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

query I rowsort
SELECT col2 + - + ( 48 ) FROM tab1
----
11
20
48

query I rowsort
SELECT - 67 * + - col2 * + col1 FROM tab0 AS cor0
----
14070
255069
6633

query I rowsort
SELECT DISTINCT ( + 27 ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1790
SELECT ALL + 70 * + + col0 col2, - CAST( + 49 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3570
-49
5950
-49
6370
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1790
SELECT ALL + 70 * + + col0 col2, - CAST ( + 49 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3570
-49
5950
-49
6370
-49

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

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

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

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

query I rowsort
SELECT col0 + - + 60 - - + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
37
81
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1796
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN - col1 AND ( + - CAST( col2 AS SIGNED ) + - - 53 + + col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1796
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN - col1 AND ( + - CAST ( col2 AS INTEGER ) + - - 53 + + col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT ALL ( col2 ) DIV - col1 - - col0 + + col2 + - 89 DIV + 39 + - col0 AS col0 FROM tab2 cor0
----
21
38
56

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL ( col2 ) / - col1 - - col0 + + col2 + - 89 / + 39 + - col0 AS col0 FROM tab2 cor0
----
21
38
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL + + CAST( NULL AS SIGNED ) / + col2 + - + ( - 10 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + + CAST ( NULL AS INTEGER ) / + col2 + - + ( - 10 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1800
SELECT + SUM ( - - col2 ) FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ALL col1 * - 82 - + + ( + + col2 ) DIV + 43 AS col0 FROM tab1
----
-1150
-3855
-411

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL col1 * - 82 - + + ( + + col2 ) / + 43 AS col0 FROM tab1
----
-1150
-3855
-411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 21 col2 FROM tab0
----
-1827
-2037
-315

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT ALL 18 - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL 18 - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 63 * - + col2 * 58 / col2 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1809
SELECT ALL - 84 AS col1, + col0 DIV + col1 FROM tab2 AS cor0
----
-84
0
-84
0
-84
1

skipif mysql # not compatible
query II rowsort label-1809
SELECT ALL - 84 AS col1, + col0 / + col1 FROM tab2 AS cor0
----
-84
0
-84
0
-84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + COUNT( - + col1 ) * 22 AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-1810
SELECT + COUNT ( - + col1 ) * 22 AS col2 FROM tab0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1811
SELECT ALL * FROM tab1 WHERE NOT + - col2 > col0 + + + 47 / col2 + - col2 + 43 * col2 + - CAST( col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1811
SELECT ALL * FROM tab1 WHERE NOT + - col2 > col0 + + + 47 / col2 + - col2 + 43 * col2 + - CAST ( col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT 74 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 23 * col0 * + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1814
SELECT COUNT( DISTINCT + 77 ), - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1814
SELECT COUNT ( DISTINCT + 77 ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1815
SELECT ALL SUM ( + col1 ) col0 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT - col0 DIV + ( col2 ) + + 46 * col1 * - col0 + + - col0 * col2 * 37 AS col1 FROM tab2
----
-147064
-321409
-392101

skipif mysql # not compatible
query I rowsort label-1816
SELECT - col0 / + ( col2 ) + + 46 * col1 * - col0 + + - col0 * col2 * 37 AS col1 FROM tab2
----
-147064
-321409
-392101

query II rowsort
SELECT col0, - 69 * - 45 - - - 64 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + COUNT( col2 ) FROM tab2 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT + COUNT ( col2 ) FROM tab2 WHERE NOT NULL <= NULL
----
0

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

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

query I rowsort
SELECT ALL - - ( 7 ) FROM tab0 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT - MIN( - 34 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1822
SELECT - MIN ( - 34 ) FROM tab2
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - - SUM( - ( - ( + - col1 ) ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1825
SELECT - - SUM ( - ( - ( + - col1 ) ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-106

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

query I rowsort
SELECT DISTINCT - - ( + + col2 ) * - col0 FROM tab0 AS cor0
----
-705
-870
-9603

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT - col1 DIV col0 - - col2 + + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-1829
SELECT - col1 / col0 - - col2 + + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1830
SELECT DISTINCT + + col2 / + + col2 + col0 + - col2 + ( col1 ) / - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1831
SELECT CAST( + col0 AS SIGNED ) + + + col1 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-1831
SELECT CAST ( + col0 AS INTEGER ) + + + col1 FROM tab0 AS cor0
----
108
96
98

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

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

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

query I rowsort
SELECT ALL 68 + ( 30 ) FROM tab1
----
98
98
98

query I rowsort
SELECT DISTINCT - col1 - + + col0 * + - 93 * + 26 FROM tab2
----
111177
154675
181283

query I rowsort
SELECT + col1 FROM tab0 WHERE - + ( col0 ) * + - 93 + - 13 - - 50 * - - col0 + - 40 > NULL
----

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

query I rowsort
SELECT DISTINCT + 79 - - col0 FROM tab2
----
125
143
154

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

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

query I rowsort
SELECT - - ( + col1 ) * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 85 IS NULL
----
210
3807
99

query II rowsort
SELECT 18 * col0, col0 FROM tab1 AS cor0
----
1530
85
1638
91
918
51

query I rowsort
SELECT DISTINCT + 42 * - 12 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-504

query I rowsort
SELECT DISTINCT 86 * - 38 AS col0 FROM tab0
----
-3268

query I rowsort
SELECT 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 38 col2 FROM tab1 AS cor0
----
-1938
-3230
-3458

query I rowsort
SELECT ALL col2 + - + 29 + + 4 FROM tab2 cor0
----
-2
15
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - + col2 AND - col2 * 40 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT ALL + col0 DIV - + col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + col0 / - + col1 FROM tab0
----
-4
-97
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 * 36 - col1 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 - 26 * - - ( - + 69 ) col0 FROM tab1
----
1873

query I rowsort
SELECT DISTINCT - ( + + 65 ) AS col2 FROM tab0 AS cor0
----
-65

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

skipif mysql # not compatible
query III rowsort label-1856
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ( + 82 ) - - COUNT( * ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-1857
SELECT ( + 82 ) - - COUNT ( * ) FROM tab0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT DISTINCT + col0 + - CAST( + 77 AS SIGNED ) + 81 AS col1 FROM tab2
----
50
68
79

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT + col0 + - CAST ( + 77 AS INTEGER ) + 81 AS col1 FROM tab2
----
50
68
79

query I rowsort
SELECT ALL - col0 * + ( + - col2 ) AS col0 FROM tab1
----
4896
5015
6188

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

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

query II rowsort
SELECT ALL - col1 AS col1, col2 * - col2 FROM tab2
----
-51
-529
-67
-3364
-77
-1600

query I rowsort
SELECT ALL 50 * + - col0 AS col0 FROM tab0
----
-4350
-4850
-750

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

query I rowsort
SELECT - 84 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-84
-84
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL COUNT( * ) * + 59 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL COUNT ( * ) * + 59 FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - ( - 72 ) * + COUNT( DISTINCT + + col1 ) * - 78 AS col2 FROM tab1 AS cor0
----
-16848

skipif mysql # not compatible
query I rowsort label-1867
SELECT - ( - 72 ) * + COUNT ( DISTINCT + + col1 ) * - 78 AS col2 FROM tab1 AS cor0
----
-16848

query I rowsort
SELECT ALL 84 FROM tab0 AS cor0 WHERE + 56 IS NULL
----

query I rowsort
SELECT + col0 + - - col2 * - + col2 AS col1 FROM tab0 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 59 * - col2 - + ( + + 8 ) + - col0 * col0 IS NOT NULL
----

query I rowsort
SELECT + ( - 11 ) AS col1 FROM tab1 WHERE NOT - col0 + - + col2 IN ( - col1 )
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - SUM( - - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT - SUM ( - - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

query II rowsort
SELECT ALL - ( + col0 ) AS col1, 63 * 95 FROM tab1 AS cor0
----
-51
5985
-85
5985
-91
5985

query II rowsort
SELECT + 94 * - - col0, 56 AS col0 FROM tab2 AS cor0
----
4324
56
6016
56
7050
56

query I rowsort
SELECT - col0 * - col1 * + col0 AS col1 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1877
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * 43 * + col0 NOT BETWEEN NULL AND - + CAST( NULL AS SIGNED ) / - col2
----

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

query I rowsort
SELECT ALL col2 * - - col1 * - - col0 + 86 FROM tab2
----
197206
291536
54044

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 * + + col2 AS col2 FROM tab1
----
-59
295
-68
3196
-96
1344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - 97 col2 FROM tab1
----
148
182
188

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

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT + col2 / + col2 AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT DISTINCT + CAST( + CAST( - + col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + CAST ( + CAST ( - + col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-15
-87
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL 41 - + - SUM( + col0 ) FROM tab1
----
268

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL 41 - + - SUM ( + col0 ) FROM tab1
----
268

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + 73 - - col0 FROM tab0
----
160
170
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT - CAST( NULL AS SIGNED ) + 59 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT - CAST ( NULL AS INTEGER ) + 59 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 * + - 99 - + - ( + 25 ) FROM tab2 AS cor0
----
5272

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 36, - col1 )
----

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - - 73 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab1, tab2 AS cor0 WHERE NOT - 88 <> 21 / 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1894
SELECT ALL * FROM tab2 WHERE col1 * + - ( + col1 ) + + CAST( NULL AS SIGNED ) - + col1 * + col1 + - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1894
SELECT ALL * FROM tab2 WHERE col1 * + - ( + col1 ) + + CAST ( NULL AS INTEGER ) - + col1 * + col1 + - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - ( 83 ) FROM tab0
----
-3901
-8217
-830

query I rowsort
SELECT col2 * 8 AS col0 FROM tab1
----
472
544
768

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

query I rowsort
SELECT + col2 + - - 77 AS col0 FROM tab2 cor0
----
100
117
135

query I rowsort
SELECT col1 + + 28 AS col0 FROM tab0 AS cor0
----
109
29
49

query I rowsort
SELECT col1 + - 41 FROM tab1 AS cor0
----
-27
-36
6

query II rowsort
SELECT DISTINCT + col0, ( + 99 ) FROM tab0 cor0
----
15
99
87
99
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT + SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1902
SELECT + SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL ( - SUM( + 80 ) ) * AVG ( + col1 ) col0 FROM tab2 AS cor0 WHERE col0 IN ( - ( + col0 ) * + col2 / CAST( NULL AS SIGNED ), - col2 / col0 + col0 / - - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1903
SELECT ALL ( - SUM ( + 80 ) ) * AVG ( + col1 ) col0 FROM tab2 AS cor0 WHERE col0 IN ( - ( + col0 ) * + col2 / CAST ( NULL AS INTEGER ), - col2 / col0 + col0 / - - col1 )
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / - col1 + - 79 + - + 91 * - 68 / col1 + - - 29 * - + col2 BETWEEN + col2 / col0 * - 9 AND - col0
----

query I rowsort
SELECT + 12 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
12
12
12

query I rowsort
SELECT DISTINCT + 1 + + col0 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT 13 * 76 * + + COUNT( * ) FROM tab0
----
2964

skipif mysql # not compatible
query I rowsort label-1909
SELECT 13 * 76 * + + COUNT ( * ) FROM tab0
----
2964

query I rowsort
SELECT col0 * + ( + col0 ) * col2 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT ALL + 61 * - - 33 * 20 AS col0 FROM tab0
----
40260
40260
40260

query I rowsort
SELECT - col2 + + 56 + 12 * + + col0 AS col1 FROM tab0 AS cor0
----
1090
1121
189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

skipif mysql # not compatible
query I rowsort label-1915
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT + 3 AS col0 FROM tab2 AS cor0 WHERE NOT col1 <> - 53 / - 93
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - - 20 NOT BETWEEN - col0 * - col1 / - - col1 * + + 1 - 2 - + 91 * 74 AND + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT - 89 * - col1 NOT BETWEEN - 82 AND + + col1
----

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

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

query I rowsort
SELECT - 3 * - + 58 AS col2 FROM tab2
----
174
174
174

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

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

query I rowsort
SELECT + 41 * - 11 + - 33 * - 46 FROM tab0 WHERE NOT NULL >= + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 62 AND - 97
----

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

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

query II rowsort
SELECT ALL - 8 / - 10 + - col1, + col0 FROM tab0 WHERE NOT col0 * ( 60 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - 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-1928
SELECT - COUNT ( col0 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 * - + col2 * - ( col2 ) * + - col2 * + col2 + + - col1 AS col0 FROM tab1 cor0
----
1004924625
1189085170
60586800

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

skipif mysql # not compatible
query I rowsort label-1930
SELECT + + 29 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * col0 + ( + 12 ) * - 72 + 2 col2 FROM tab2 AS cor0
----
-487
-542
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT - 2 + - SUM( DISTINCT - col2 ) FROM tab1
----
221

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT - 2 + - SUM ( DISTINCT - col2 ) FROM tab1
----
221

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

query I rowsort
SELECT - ( col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - 36 * 4 * 44 + col2 + - col0 + - col2 AS col0, col2 AS col1 FROM tab0
----
-6351
47
-6423
10
-6433
99

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

skipif mysql # not compatible
query I rowsort label-1936
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1939
SELECT DISTINCT * FROM tab2 WHERE NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1939
SELECT DISTINCT * FROM tab2 WHERE NULL <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL - 7 - - COUNT( * ) + + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - 7 - - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL - 1 DIV + 42 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - 1 / + 42 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1942
SELECT - MIN ( DISTINCT 42 ) FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT SUM( DISTINCT + + 11 ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1943
SELECT SUM ( DISTINCT + + 11 ) AS col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT ALL + ( - col2 ) + 97 + 12 FROM tab2 AS cor0
----
51
69
86

query I rowsort
SELECT ALL + - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + - col0 = ( 31 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT SUM( - ( 39 ) ) FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1949
SELECT SUM ( - ( 39 ) ) FROM tab2 AS cor0
----
-117

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

query I rowsort
SELECT col1 * - - 91 AS col1 FROM tab1 AS cor0
----
1274
4277
455

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

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + 59 - - + 17 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - - 23 / + 52 - 34
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL MAX( + - 3 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL MAX ( + - 3 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT ALL - COUNT( * ) col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1957
SELECT ALL - COUNT ( * ) col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col2 + - 5 / - col2 IN ( + 73 * + - col0, col2 * - + 31 )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL + MAX( + + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + MAX ( + + col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL col1 * - 96 + + + 90 * + 45 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 98 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT + 89 DIV - - 45 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1963
SELECT + 89 / - - 45 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND - col0
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT ALL + 92 + - 80 * - - col2 FROM tab1 cor0
----
-4628
-5348
-7588

query I rowsort
SELECT DISTINCT - - col1 + ( - - 29 ) * 80 AS col2 FROM tab0 AS cor0
----
2321
2341
2401

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 AS cor0 WHERE col1 <= + 20
----

query I rowsort
SELECT ALL ( - - col1 ) + - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT + 32 * - ( - CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-1504
-3168
-320

skipif mysql # not compatible
query I rowsort label-1970
SELECT + 32 * - ( - CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-1504
-3168
-320

query I rowsort
SELECT DISTINCT 73 + col2 AS col1 FROM tab2
----
113
131
96

query I rowsort
SELECT DISTINCT col2 * + 33 * + col2 - - ( - col0 ) FROM tab1
----
114788
152501
304077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col0 col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL 27 * + 38 FROM tab0
----
1026
1026
1026

query I rowsort
SELECT DISTINCT + col0 * - col1 + 61 AS col0 FROM tab1
----
-364
-4216
-653

query I rowsort
SELECT - col1 + + 54 AS col2 FROM tab1
----
40
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT DISTINCT - COUNT( * ) - 32 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT - COUNT ( * ) - 32 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT ALL + - col1 * + - 4 * - col0 + 7 * + 9 AS col0 FROM tab1 AS cor0
----
-1637
-17045
-2793

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL COUNT( - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL COUNT ( - + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + + col2 ) + - - ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT + 78 DIV + 5 AS col2 FROM tab1 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-1981
SELECT + 78 / + 5 AS col2 FROM tab1 AS cor0
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT BETWEEN col2 / 84 AND ( + - ( + - ( - + 52 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 40 col2 FROM tab0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1984
SELECT ALL + 62 DIV SUM( ALL col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + 62 / SUM ( ALL col2 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1986
SELECT ALL + col0 AS col1, - CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-1986
SELECT ALL + col0 AS col1, - CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1987
SELECT ALL + COUNT( * ), 90 + 51 AS col1 FROM tab1 AS cor0
----
3
141

skipif mysql # not compatible
query II rowsort label-1987
SELECT ALL + COUNT ( * ), 90 + 51 AS col1 FROM tab1 AS cor0
----
3
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1988
SELECT ALL + col0 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1988
SELECT ALL + col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT + - 91 AS col0, - COUNT( * ) * - MAX( col0 ) + + 62 + + 2 - 0 FROM tab0 AS cor0
----
-91
355

skipif mysql # not compatible
query II rowsort label-1989
SELECT + - 91 AS col0, - COUNT ( * ) * - MAX ( col0 ) + + 62 + + 2 - 0 FROM tab0 AS cor0
----
-91
355

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT + MIN( 28 ) * - - ( 89 ) FROM tab2 AS cor0
----
2492

skipif mysql # not compatible
query I rowsort label-1990
SELECT + MIN ( 28 ) * - - ( 89 ) FROM tab2 AS cor0
----
2492

query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> 66 + - ( col0 ) * - 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col2 FROM tab2 cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1993
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1993
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1994
SELECT DISTINCT - 40 * COUNT( * ) AS col2, 2 * - 53 AS col1 FROM tab1
----
-120
-106

skipif mysql # not compatible
query II rowsort label-1994
SELECT DISTINCT - 40 * COUNT ( * ) AS col2, 2 * - 53 AS col1 FROM tab1
----
-120
-106

query I rowsort
SELECT - 67 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL 49 + + - COUNT( * ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL 49 + + - COUNT ( * ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE + - 45 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT - 9 + + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - 9 + + COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT ALL + CAST( - 82 AS SIGNED ) + 77 AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - ( + col2 ) * + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + CAST ( - 82 AS INTEGER ) + 77 AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - ( + col2 ) * + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT + + MIN( + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT + + MIN ( + + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL - 79 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - 79 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT col2 + 9 FROM tab1 AS cor0
----
105
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT col2 * - ( CAST( NULL AS SIGNED ) ) * col2 / + col1 * + - col0 + 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT col2 * - ( CAST ( NULL AS INTEGER ) ) * col2 / + col1 * + - col0 + 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT - 31 * - col2 - - 21 * - + col2 * col1 + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-4079
-78409
991

skipif mysql # not compatible
query I rowsort label-2004
SELECT - 31 * - col2 - - 21 * - + col2 * col1 + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-4079
-78409
991

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2005
SELECT col0 * - CAST( NULL AS SIGNED ) / col2 + + + CAST( NULL AS SIGNED ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2005
SELECT col0 * - CAST ( NULL AS INTEGER ) / col2 + + + CAST ( NULL AS INTEGER ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2006
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) + + + COUNT( * ) AS col2, + COUNT( * ) col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2006
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + COUNT ( * ) AS col2, + COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT col1 - - col1 + col2 * 69 AS col1 FROM tab1
----
4081
4786
6652

query I rowsort
SELECT + col1 * + - 16 AS col0 FROM tab0 AS cor0
----
-1296
-16
-336

query I rowsort
SELECT DISTINCT - 28 * + 64 FROM tab1
----
-1792

query I rowsort
SELECT DISTINCT - col2 * - ( - 13 ) * + col0 - 8 AS col1 FROM tab0
----
-11318
-124847
-9173

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 29 + ( - + 67 ) * + - 76 * - 4 IS NULL
----

query I rowsort
SELECT ALL 59 - - 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to e8b0720b8386c308e7f43eb0f4e6aee1

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab2, tab2 AS cor0
----
-40

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
90

query I rowsort
SELECT 0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - + SUM( - - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2016
SELECT - + SUM ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL - ( + CAST( 91 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - ( + CAST ( 91 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2018
SELECT ALL col0 AS col1, col2 DIV + col1 + + CAST( + col1 AS SIGNED ) * + - 28 AS col2 FROM tab2 AS cor0
----
46
-1428
64
-2156
75
-1876

skipif mysql # not compatible
query II rowsort label-2018
SELECT ALL col0 AS col1, col2 / + col1 + + CAST ( + col1 AS INTEGER ) * + - 28 AS col2 FROM tab2 AS cor0
----
46
-1428
64
-2156
75
-1876

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + + COUNT( * ) * 96 AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + + COUNT ( * ) * 96 AS col2 FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - CAST( ( col0 ) AS SIGNED ) = + col0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2020
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - CAST ( ( col0 ) AS INTEGER ) = + col0
----
-23
-40
-58

query I rowsort
SELECT ALL + + 46 * - col0 AS col1 FROM tab0 AS cor0
----
-4002
-4462
-690

query I rowsort
SELECT ALL 92 * - col2 FROM tab1 cor0
----
-5428
-6256
-8832

query I rowsort
SELECT ALL 0 * + - 74 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT ALL + col2, col2 * + 83 FROM tab1
----
59
4897
68
5644
96
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + 8 * - ( COUNT( * ) ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-2025
SELECT + 8 * - ( COUNT ( * ) ) FROM tab1
----
-24

query II rowsort
SELECT DISTINCT + 88, col0 FROM tab0
----
88
15
88
87
88
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 BETWEEN ( + col1 ) / + 52 + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - col0 col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT COUNT( * ) * - COUNT( * ) * 46 FROM tab2 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-2029
SELECT COUNT ( * ) * - COUNT ( * ) * 46 FROM tab2 AS cor0
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE - 56 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - 56 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2031
SELECT - + COUNT( * ) / + 75 + - + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT - + COUNT ( * ) / + 75 + - + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 + col1 - - 12 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2034
SELECT + ( col0 ) * + - CAST( col2 AS SIGNED ) * - col2 FROM tab2 cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-2034
SELECT + ( col0 ) * + - CAST ( col2 AS INTEGER ) * - col2 FROM tab2 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT 79 + + + col1 AS col1 FROM tab1
----
126
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT MAX( ALL + col0 ) - - - ( 61 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2036
SELECT MAX ( ALL + col0 ) - - - ( 61 ) FROM tab0
----
36

query I rowsort
SELECT - 12 * - ( col0 ) + + - ( - col2 ) FROM tab0
----
1054
1263
227

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT ALL + col1 DIV - col1 + - col0 AS col0 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + col1 / - col1 + - col0 AS col0 FROM tab0
----
-16
-88
-98

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + col2 = NULL
----

query I rowsort
SELECT DISTINCT - col0 * 16 FROM tab2 AS cor0
----
-1024
-1200
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - COUNT( * ) * 82 + - 55 + - 21 * - - 45 FROM tab1 AS cor0
----
-1246

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - COUNT ( * ) * 82 + - 55 + - 21 * - - 45 FROM tab1 AS cor0
----
-1246

query II rowsort
SELECT DISTINCT - col1 AS col1, - 14 AS col0 FROM tab1 cor0
----
-14
-14
-47
-14
-5
-14

query II rowsort
SELECT col1 AS col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT - 94 DIV + 21 + + ( + 16 ) FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-2044
SELECT - 94 / + 21 + + ( + 16 ) FROM tab2
----
12
12
12

query I rowsort
SELECT col1 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT - 51 DIV - col1 - + col1 AS col2 FROM tab1
----
-11
-46
5

skipif mysql # not compatible
query I rowsort label-2046
SELECT - 51 / - col1 - + col1 AS col2 FROM tab1
----
-11
-46
5

query I rowsort
SELECT DISTINCT + col1 * 57 + - 31 AS col2 FROM tab0 WHERE 30 / 42 >= ( + 93 * ( col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > - col2 * col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - 82 + - col2 * col1 >= - 90
----

query III rowsort
SELECT * FROM tab2 WHERE + 40 + + col1 * col0 > 82 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ( - MAX( DISTINCT 57 ) ) col0 FROM tab0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2051
SELECT ( - MAX ( DISTINCT 57 ) ) col0 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col1 + col2 )
----

query I rowsort
SELECT 53 - + 68 FROM tab2 WHERE NOT 82 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + COUNT( * ) * 69 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + COUNT ( * ) * 69 FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT + COUNT( + col2 ) AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT + COUNT ( + col2 ) AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT - col0 * - col0 - - col0 AS col1 FROM tab0
----
240
7656
9506

query III rowsort
SELECT * FROM tab0 WHERE NOT 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + col0 - - col2 AS col1 FROM tab0
----
272
7579
9508

query I rowsort
SELECT ALL 88 FROM tab2 WHERE col0 * - col1 + col2 IS NULL
----

query I rowsort
SELECT - 10 * + ( 19 ) AS col0 FROM tab0
----
-190
-190
-190

query I rowsort
SELECT + 26 * - col0 AS col2 FROM tab1
----
-1326
-2210
-2366

query I rowsort
SELECT - 99 * col0 FROM tab0
----
-1485
-8613
-9603

query I rowsort
SELECT ALL - col0 + 32 AS col0 FROM tab1
----
-19
-53
-59

query I rowsort
SELECT - col1 + - col0 * - 35 AS col0 FROM tab1
----
1771
2970
3138

query I rowsort
SELECT 70 AS col2 FROM tab0 WHERE col2 = col2
----
70
70
70

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 BETWEEN 78 AND ( 73 * + col2 + + 79 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * 91 + 54 * + 74 NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= ( 76 )
----
64
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT 29 * - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT 29 * - col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT COUNT( * ) * 94 AS col0 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( * ) * 94 AS col0 FROM tab0 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = ( col0 )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - 69
----

query III rowsort
SELECT * FROM tab0 WHERE + 31 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * ( 74 ) FROM tab1
----
1036
3478
370

query I rowsort
SELECT DISTINCT 1 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * + 10 + - 13 AS col1 FROM tab1 AS cor0
----
577
667
947

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT col0 + - col2 DIV + 67 AS col1 FROM tab1 AS cor0
----
50
85
90

skipif mysql # not compatible
query I rowsort label-2079
SELECT col0 + - col2 / + 67 AS col1 FROM tab1 AS cor0
----
50
85
90

query I rowsort
SELECT + col0 + col2 * 97 AS col2 FROM tab0 AS cor0
----
1057
4574
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT - COUNT( * ) + - 47 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2082
SELECT - COUNT ( * ) + - 47 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT + 51 + COUNT( DISTINCT + col1 ) DIV + 65 AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2083
SELECT + 51 + COUNT ( DISTINCT + col1 ) / + 65 AS col0 FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= - col1
----

query I rowsort
SELECT 87 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT + - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2086
SELECT + - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2087
SELECT DISTINCT - 89 DIV 27 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - 89 / 27 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 >= 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 75 - - col0 AS col0 FROM tab2
----
121
139
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2090
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT + SUM( DISTINCT 62 ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2091
SELECT + SUM ( DISTINCT 62 ) AS col0 FROM tab1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col1 FROM tab1 WHERE NOT + 46 * col2 IS NULL
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2093
SELECT * FROM tab2 WHERE NOT - col2 > - 37 / + 83 - - CAST( - col2 - col0 * - col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2093
SELECT * FROM tab2 WHERE NOT - col2 > - 37 / + 83 - - CAST ( - col2 - col0 * - col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( 81 ) AS col0 FROM tab0 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN 98 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + 93 ) * - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 60 ) IN ( - 88 - col2 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT + col2 / CAST( NULL AS SIGNED ) + + 99 AS col0 FROM tab1 WHERE NOT - - col0 <> ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-2100
SELECT + col2 / CAST ( NULL AS INTEGER ) + + 99 AS col0 FROM tab1 WHERE NOT - - col0 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT + MAX( + + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + MAX ( + + col0 ) AS col2 FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + col2 * - 84 + 52
----

query II rowsort
SELECT + col2 AS col0, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT col2 * + + col2 * + + 13 + - 71 FROM tab1 AS cor0
----
119737
45182
60041

query I rowsort
SELECT - ( - ( - col0 ) ) AS col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 57 + - - 16 * - - 94 AS col2 FROM tab0 AS cor0
----
1561

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT + COUNT( * ) * - ( - 40 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + COUNT ( * ) * - ( - 40 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
117

query I rowsort
SELECT DISTINCT - col2 * - - col2 * + + 21 AS col2 FROM tab0 cor0
----
-205821
-2100
-46389

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - 72 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL + MAX( + ( - 81 ) ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + MAX ( + ( - 81 ) ) FROM tab1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - col1 * - + 87 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - col1 * - + 87 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL + ( + COUNT( * ) ) + - 73 AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + ( + COUNT ( * ) ) + - 73 AS col0 FROM tab0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT + col0 * - 69 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
179469
498525
571389

skipif mysql # not compatible
query I rowsort label-2114
SELECT + col0 * - 69 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
179469
498525
571389

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL SUM( + col2 ) * + 91 FROM tab2 AS cor0
----
11011

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL SUM ( + col2 ) * + 91 FROM tab2 AS cor0
----
11011

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 27 + - col2 * 58 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 > col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 72 + - col1, 1 col2 FROM tab1 AS cor0
----
25
1
58
1
67
1

query I rowsort
SELECT col0 * + col0 + + 25 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + COUNT( * ) * COUNT( * ) * + - 88 + 36 FROM tab0
----
-756

skipif mysql # not compatible
query I rowsort label-2121
SELECT + COUNT ( * ) * COUNT ( * ) * + - 88 + 36 FROM tab0
----
-756

query I rowsort
SELECT DISTINCT + 32 * + - col1 + 33 * - col0 + col2 * col0 FROM tab0
----
-2382
-2673
6370

query III rowsort
SELECT ALL * FROM tab1 WHERE 76 <= + col1
----

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-68

query II rowsort
SELECT col2 AS col0, 88 AS col1 FROM tab1 AS cor0
----
59
88
68
88
96
88

query II rowsort
SELECT col1 AS col1, col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 71 IS NULL
----

query II rowsort
SELECT ALL + + col2, col2 * - + col2 FROM tab2 AS cor0
----
23
-529
40
-1600
58
-3364

query I rowsort
SELECT + col2 * 42 AS col1 FROM tab1 AS cor0
----
2478
2856
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT MAX( 43 ) AS col2 FROM tab1, tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2130
SELECT MAX ( 43 ) AS col2 FROM tab1, tab0 AS cor0
----
43

query I rowsort
SELECT - col2 * col1 * col1 FROM tab2
----
-237160
-260362
-59823

query II rowsort
SELECT + col2 AS col0, col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2133
SELECT ALL + 23 AS col2, + COUNT( * ) FROM tab0
----
23
3

skipif mysql # not compatible
query II rowsort label-2133
SELECT ALL + 23 AS col2, + COUNT ( * ) FROM tab0
----
23
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 7 FROM tab0
----
NULL

query II rowsort
SELECT + 75, + col1 AS col1 FROM tab1
----
75
14
75
47
75
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 / + col1 + col2 - + col0 ) BETWEEN + 69 + col0 AND 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 19 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT + MIN( + col1 ) FROM tab0 WHERE ( NOT ( - col1 ) > ( 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT + MIN ( + col1 ) FROM tab0 WHERE ( NOT ( - col1 ) > ( 49 ) )
----
1

query I rowsort
SELECT ALL - + col2 * - col2 + + col1 FROM tab0 cor0
----
121
2290
9802

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 + - col2 AND + 75
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2141
SELECT DISTINCT - col2 DIV - col1 * + ( - col1 ), col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-2141
SELECT DISTINCT - col2 / - col1 * + ( - col1 ), col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2142
SELECT ALL + COUNT( * ) AS col1, + CAST( NULL AS DECIMAL ) * 30 AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2142
SELECT ALL + COUNT ( * ) AS col1, + CAST ( NULL AS REAL ) * 30 AS col0 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT + - 20 FROM tab0 cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + col2 + ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT DISTINCT MAX( - 46 ) col2, + 40 AS col1 FROM tab2
----
-46
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2145
SELECT DISTINCT MAX ( - 46 ) col2, + 40 AS col1 FROM tab2
----
-46
40

query I rowsort
SELECT DISTINCT 42 * + 39 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT + - MAX( - 87 ) FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + - MAX ( - 87 ) FROM tab1 cor0
----
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - col1 / col1
----

query I rowsort
SELECT - col1 / - col0 FROM tab0 AS cor0 WHERE NOT - col2 + + ( + col0 ) + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL ( + + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL ( + + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 16 - - + 16 + + col1 col0 FROM tab0 cor0
----
1393
33
373

query II rowsort
SELECT DISTINCT col0 + col1, + col1 FROM tab2 AS cor0
----
141
77
142
67
97
51

query I rowsort
SELECT ALL + 39 * col2 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - COUNT( * ) * + SUM( + - col2 ) * - ( - MIN( ALL + + col2 ) ) - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT - COUNT ( * ) * + SUM ( + - col2 ) * - ( - MIN ( ALL + + col2 ) ) - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 20 * 63 + 48 AS col1 FROM tab0 AS cor0
----
1308
1308
1308

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT 25 + + - COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2156
SELECT 25 + + - COUNT ( * ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT 45 + + 35 - + 52 + + + COUNT( * ) * - 96 AS col1 FROM tab0
----
-260

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT 45 + + 35 - + 52 + + + COUNT ( * ) * - 96 AS col1 FROM tab0
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT - CAST( - 81 AS SIGNED ) + col2 * + 89 FROM tab0
----
4264
8892
971

skipif mysql # not compatible
query I rowsort label-2158
SELECT - CAST ( - 81 AS INTEGER ) + col2 * + 89 FROM tab0
----
4264
8892
971

query I rowsort
SELECT + col1 + - 71 - + col1 FROM tab1
----
-71
-71
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2160
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT + CAST ( NULL AS REAL ) + + COUNT ( * ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 - - 73 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 66 + - + col2 + col0 - + - col1 + ( - col2 ) * + + col2 FROM tab1
----
-3384
-4488
-9181

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - col0 * - 57 FROM tab1
----
2907
4845
5187

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - - col2 ) + - col1 + col2 IN ( - + 47 + - - col0 + 96 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT + + SUM( ALL + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2167
SELECT + + SUM ( ALL + - col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT - - col0 AS col2, + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 86 * + ( + + col1 ) - 58 col2 FROM tab0 cor0
----
-144
-1864
-7024

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL + COUNT( * ) + - - 21 FROM tab1 WHERE + ( + - 57 ) IS NULL
----
21

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + COUNT ( * ) + - - 21 FROM tab1 WHERE + ( + - 57 ) IS NULL
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2171
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( col2 AS DECIMAL ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2171
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( col2 AS REAL ) + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - col0 - + - 3 FROM tab0 AS cor0
----
-74
35
5

query I rowsort
SELECT + - 85 * - + 13 * - + col0 FROM tab2 AS cor0
----
-50830
-70720
-82875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2174
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2174
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - 7 AS col2 FROM tab2 AS cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2176
SELECT COUNT( * ) DIV - COUNT( * ) + - SUM( - CAST( + - 6 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2176
SELECT COUNT ( * ) / - COUNT ( * ) + - SUM ( - CAST ( + - 6 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT - - col0 * - 99 FROM tab0 AS cor0
----
-1485
-8613
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 * + 37 FROM tab1 AS cor0
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL - MIN( ALL + 33 ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - MIN ( ALL + 33 ) AS col1 FROM tab1 AS cor0
----
-33

query II rowsort
SELECT ALL + 22 * + col1, + ( + col0 ) AS col2 FROM tab2 AS cor0
----
1122
46
1474
75
1694
64

query I rowsort
SELECT - ( - + col2 ) * - - col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( - 8 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 14 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( + col0 * 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - COUNT( * ) * - 45 AS col1 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-2187
SELECT - COUNT ( * ) * - 45 AS col1 FROM tab0
----
135

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * - + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 * col2 * 56 + - - 39 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2189
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 * col2 * 56 + - - 39 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( col1 ) - col0 - + ( - + 19 ) - + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( NOT 20 / - col0 = NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT DISTINCT ( + CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT ( + CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT SUM( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT SUM ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL COUNT( * ) + + + COUNT( * ) + - 82 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + - 82 FROM tab0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT AVG ( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT ALL - + SUM( - + col2 ), + 65 AS col0 FROM tab2 AS cor0
----
121
65

skipif mysql # not compatible
query II rowsort label-2196
SELECT ALL - + SUM ( - + col2 ), + 65 AS col0 FROM tab2 AS cor0
----
121
65

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

query II rowsort
SELECT + - col1, 44 AS col0 FROM tab1 AS cor0
----
-14
44
-47
44
-5
44

query I rowsort
SELECT ALL + - col2 + col2 + - + col2 + col1 FROM tab0 cor0
----
-98
11
34

query II rowsort
SELECT DISTINCT - col2, + col2 AS col1 FROM tab0 cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL < - col1 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-2201
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < - col1 * - col0
----
0

query I rowsort
SELECT ALL + - col2 + col1 - col0 * + 54 FROM tab0 AS cor0
----
-4687
-5336
-776

query II rowsort
SELECT ALL - 92 + + - col2 AS col1, + col2 FROM tab0
----
-102
10
-139
47
-191
99

query II rowsort
SELECT ALL - col1 + - col2 AS col1, - col1 AS col0 FROM tab2
----
-117
-77
-125
-67
-74
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT + col2 col1, - 48 FROM tab0 WHERE ( ( - 54 ) * + CAST( NULL AS SIGNED ) * 32 + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2205
SELECT + col2 col1, - 48 FROM tab0 WHERE ( ( - 54 ) * + CAST ( NULL AS INTEGER ) * 32 + - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT COUNT( * ) + 63 - + - COUNT( ALL col2 ) * 10 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2207
SELECT COUNT ( * ) + 63 - + - COUNT ( ALL col2 ) * 10 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + COUNT( ALL + ( - + col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2208
SELECT + COUNT ( ALL + ( - + col1 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2209
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query II rowsort
SELECT ALL + col0 + + - col2 + + + col2 AS col2, col1 * - col2 AS col1 FROM tab1
----
51
-1344
85
-295
91
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT COUNT( * ), + SUM( 5 ) AS col2 FROM tab0
----
3
15

skipif mysql # not compatible
query II rowsort label-2211
SELECT COUNT ( * ), + SUM ( 5 ) AS col2 FROM tab0
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - MAX( ALL ( col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2212
SELECT - MAX ( ALL ( col2 ) ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT ALL + - 65 - - col2 AS col0 FROM tab1 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + - 65 - - col2 AS col0 FROM tab1 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL - col1 AS col2, col0 FROM tab0 cor0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 13
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <> - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - SUM( + col1 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - SUM ( + col1 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-309

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT ALL + + COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2218
SELECT ALL + + COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
0

query I rowsort
SELECT ALL - col1 + + 76 FROM tab0 AS cor0 WHERE NOT ( col1 IS NULL )
----
-5
55
75

query I rowsort
SELECT ALL col1 * ( + col1 ) FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT ALL - col0 DIV + ( col0 ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL - col0 / + ( col0 ) AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT ALL - 26 DIV - + 96 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL - 26 / - + 96 * - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2223
SELECT DISTINCT - col0 * 92 / - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT - col0 * 92 / - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2224
SELECT DISTINCT * FROM tab0 WHERE NULL <= - + CAST( NULL AS SIGNED ) * ( + 2 )
----

skipif mysql # not compatible
query III rowsort label-2224
SELECT DISTINCT * FROM tab0 WHERE NULL <= - + CAST ( NULL AS INTEGER ) * ( + 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2225
SELECT - - 33 + + CAST( NULL AS SIGNED ) - - + col1 AS col0 FROM tab1 WHERE NOT + col0 * + + ( + col1 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT - - 33 + + CAST ( NULL AS INTEGER ) - - + col1 AS col0 FROM tab1 WHERE NOT + col0 * + + ( + col1 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab2 cor0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2227
SELECT + + COUNT( * ) DIV - 48 + MIN( col2 ) * 22 AS col1 FROM tab2 AS cor0
----
506

skipif mysql # not compatible
query I rowsort label-2227
SELECT + + COUNT ( * ) / - 48 + MIN ( col2 ) * 22 AS col1 FROM tab2 AS cor0
----
506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2228
SELECT DISTINCT COUNT( * ) * + COUNT( CAST( NULL AS SIGNED ) ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-2228
SELECT DISTINCT COUNT ( * ) * + COUNT ( CAST ( NULL AS INTEGER ) ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT - + COUNT( * ) + - SUM( ALL - + col2 ) FROM tab1 cor0
----
220

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT - + COUNT ( * ) + - SUM ( ALL - + col2 ) FROM tab1 cor0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT - + 81 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT - + 81 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2231
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IN ( - col0 + - + ( - col2 ), + CAST( NULL AS SIGNED ) * - 15 + 98 )
----

skipif mysql # not compatible
query III rowsort label-2231
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IN ( - col0 + - + ( - col2 ), + CAST ( NULL AS INTEGER ) * - 15 + 98 )
----

query I rowsort
SELECT - col0 + + col0 + - - col2 AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT ALL - + CAST( NULL AS SIGNED ) + + 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 + - ( - col1 ) * + - 16 FROM tab0 AS cor0
----
-1223
-263
57

query I rowsort
SELECT DISTINCT - 31 + - + col0 FROM tab2
----
-106
-77
-95

query I rowsort
SELECT DISTINCT - col0 + - - 11 FROM tab1
----
-40
-74
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL ( + ( - + COUNT( * ) ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL ( + ( - + COUNT ( * ) ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + COUNT( ALL + + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2238
SELECT + COUNT ( ALL + + col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT ALL + 55 / - - CAST( NULL AS SIGNED ) - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + 55 / - - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 AS col0, + col0 col0 FROM tab0
----
17
15
17
87
17
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 * + col1 FROM tab2 cor0 WHERE NOT ( - col2 * col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - 64 = + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - 64 = + - col1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col0 + 93
----

query I rowsort
SELECT DISTINCT + 65 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL COUNT( * ) FROM tab0 WHERE 56 * - col2 + + + col1 * col0 * col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL COUNT ( * ) FROM tab0 WHERE 56 * - col2 + + + col1 * col0 * col1 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT - MIN( + + 28 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2248
SELECT - MIN ( + + 28 ) FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT COUNT( * ) * + - 4 AS col2 FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2249
SELECT COUNT ( * ) * + - 4 AS col2 FROM tab0 cor0
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2250
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 29 + - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 29 + - + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT DISTINCT + 70 AS col0, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
70
0

skipif mysql # not compatible
query II rowsort label-2251
SELECT DISTINCT + 70 AS col0, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
70
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - + ( 28 ) * + 33 * - 83 + 28 + + - col0 * col1 col0, - 5 + + 8 * + col1, col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to 1984d5cd1831daa4fd2dc77094ec708c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col2 FROM tab1 cor0
----
66
66
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - 63 + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 2 + + ( + col2 ) + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - 34 * - + 12 IS NOT NULL
----

query I rowsort
SELECT 46 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT 85 + + ( + 73 ) * + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 96 / + col2 BETWEEN NULL AND 19
----
85

skipif mysql # not compatible
query I rowsort label-2258
SELECT 85 + + ( + 73 ) * + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 96 / + col2 BETWEEN NULL AND 19
----
85

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) = 77
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2260
SELECT + CAST( NULL AS DECIMAL ) / - col0 * + 89 + + - 44 / - 53 * col1 + - 26 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT + CAST ( NULL AS REAL ) / - col0 * + 89 + + - 44 / - 53 * col1 + - 26 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT + COUNT( * ) * - COUNT( * ) AS col2, + COUNT( * ) + 88 AS col2 FROM tab0
----
-9
91

skipif mysql # not compatible
query II rowsort label-2261
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, + COUNT ( * ) + 88 AS col2 FROM tab0
----
-9
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 * - - col0 AS col1, + col2 col0 FROM tab1 AS cor0
----
-2601
96
-7225
59
-8281
68

query I rowsort
SELECT DISTINCT + col2 * + 33 * + 14 + col2 FROM tab1 cor0
----
27317
31484
44448

query I rowsort
SELECT DISTINCT 30 + - 48 + - col1 + + col2 * + 2 * 43 AS col2 FROM tab0 AS cor0
----
3943
821
8495

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT ALL 77 DIV col2 + + ( - 60 ) FROM tab0
----
-53
-59
-60

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL 77 / col2 + + ( - 60 ) FROM tab0
----
-53
-59
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT ( col0 ) - - - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT ( col0 ) - - - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2267
SELECT * FROM tab2 WHERE - CAST( + - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2267
SELECT * FROM tab2 WHERE - CAST ( + - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + - col1 FROM tab1 WHERE - + col1 * + - col2 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT + col1 + + col2 * col1 + + - col1 * + - col2, - 94 AS col1 FROM tab0
----
199
-94
441
-94
7695
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col1 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT 8 DIV 47 DIV col2 + + + col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2271
SELECT 8 / 47 / col2 + + + col1 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT col0 + + + 98 + + + ( - + 18 ) FROM tab2
----
126
144
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + COUNT( * ) + - COUNT( * ) * - - SUM( col1 ) AS col1 FROM tab0
----
-306

skipif mysql # not compatible
query I rowsort label-2273
SELECT + COUNT ( * ) + - COUNT ( * ) * - - SUM ( col1 ) AS col1 FROM tab0
----
-306

query I rowsort
SELECT ALL ( - 50 ) + + col1 AS col0 FROM tab2 WHERE - col1 IS NOT NULL OR ( - 23 ) IS NOT NULL
----
1
17
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + 74 col2 FROM tab0
----
170
170
170

query I rowsort
SELECT ALL + col1 - 96 + + + col1 FROM tab0
----
-54
-94
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * ( col0 ) + + - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, 85 + + col2 * - 21 FROM tab0
----
15
-902
87
-125
97
-1994

query II rowsort
SELECT ALL + + col0, 8 FROM tab2 AS cor0
----
46
8
64
8
75
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2281
SELECT ALL - 0 * CAST( NULL AS SIGNED ), - 2 + - col0 * + col2 * - + col1 * col1 AS col2 FROM tab1 AS cor0
----
NULL
125373
NULL
13669290
NULL
959614

skipif mysql # not compatible
query II rowsort label-2281
SELECT ALL - 0 * CAST ( NULL AS INTEGER ), - 2 + - col0 * + col2 * - + col1 * col1 AS col2 FROM tab1 AS cor0
----
NULL
125373
NULL
13669290
NULL
959614

query I rowsort
SELECT DISTINCT col2 + + + 72 - 29 + col2 FROM tab0
----
137
241
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 27 ) * 98 col0 FROM tab1
----
2646
2646
2646

query II rowsort
SELECT col0 * - - col1 AS col2, + ( - 49 ) FROM tab2
----
2346
-49
4928
-49
5025
-49

query I rowsort
SELECT - col1 * col0 * - ( - col0 ) * - col0 * + 27 + - 13 + + col0 * + + 84 FROM tab0
----
24650306
373378496
7382372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT DISTINCT ( - CAST( + col1 AS SIGNED ) ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT ( - CAST ( + col1 AS INTEGER ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT COUNT( * ) + - 50 + - MIN( + 93 ) * - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
235

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT COUNT ( * ) + - 50 + - MIN ( + 93 ) * - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
235

query II rowsort
SELECT col0 + + ( + col0 ) AS col0, + col1 FROM tab0 AS cor0
----
174
21
194
1
30
81

query I rowsort
SELECT + 16 + + 83 FROM tab1 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT + COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT + - 19 * - + COUNT( * ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + - 19 * - + COUNT ( * ) FROM tab0 AS cor0
----
57

query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 / - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT + col1 DIV - 23 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2293
SELECT + col1 / - 23 FROM tab0
----
-3
0
0

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= ( NULL )
----

query II rowsort
SELECT ALL - col0 - col2 * + col0 + col1, col0 AS col0 FROM tab2
----
-1053
46
-2547
64
-4358
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT SUM( DISTINCT 71 ) AS col2 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-2296
SELECT SUM ( DISTINCT 71 ) AS col2 FROM tab0
----
71

query I rowsort
SELECT ALL 78 * + 64 FROM tab1
----
4992
4992
4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2298
SELECT ALL - + COUNT( * ) * - ( 24 ) DIV - + 88 * 50 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - + COUNT ( * ) * - ( 24 ) / - + 88 * 50 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 - col2 AS col1 FROM tab1 WHERE - col2 NOT IN ( 17 + + col2 / + col0 * + + col2 )
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2300
SELECT CAST( col2 AS SIGNED ) DIV - + col2 col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2300
SELECT CAST ( col2 AS INTEGER ) / - + col2 col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col2 * - + col0 * + - 95 AS col0 FROM tab1
----
-465120
-476425
-587860

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT - + MAX( - + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT - + MAX ( - + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2303
SELECT + - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT ( COUNT( DISTINCT - col1 ) ) + - - 48 AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT ( COUNT ( DISTINCT - col1 ) ) + - - 48 AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT ALL + 9 + + - 9 DIV 80 FROM tab1 cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + 9 + + - 9 / 80 FROM tab1 cor0
----
9
9
9

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE NOT 64 IS NULL
----
15
87
97

query I rowsort
SELECT - col2 * + 78 * - + col2 AS col0 FROM tab2
----
124800
262392
41262

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT col1 <= col0 + col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT ALL - 89 col1, COUNT( * ) + 58 col2 FROM tab1
----
-89
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2310
SELECT ALL - 89 col1, COUNT ( * ) + 58 col2 FROM tab1
----
-89
61

query II rowsort
SELECT DISTINCT 98 * - col1 AS col1, col2 AS col1 FROM tab1
----
-1372
96
-4606
68
-490
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - MIN( - + 18 ) * + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2312
SELECT - MIN ( - + 18 ) * + COUNT ( * ) FROM tab1
----
54

query II rowsort
SELECT DISTINCT 2 AS col1, 68 FROM tab1
----
2
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL - MIN( DISTINCT - + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL - MIN ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT col0 + - ( + ( - + col0 ) ) FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2316
SELECT DISTINCT + + MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 7 + - ( ( + + 10 ) ) * + ( + 18 ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - - col0 + + ( col1 ) col2 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT DISTINCT 69 - + COUNT( * ) * + COUNT( ALL + 8 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT 69 - + COUNT ( * ) * + COUNT ( ALL + 8 ) FROM tab0
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2320
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT + - col1 NOT IN ( - - CAST( NULL AS DECIMAL ), col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-2320
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT + - col1 NOT IN ( - - CAST ( NULL AS REAL ), col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT DISTINCT + 97 + + + 12 + - 88 * CAST( ( - col1 ) AS SIGNED ) + col1 * col2 AS col2 FROM tab2
----
5770
9891
9965

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT + 97 + + + 12 + - 88 * CAST ( ( - col1 ) AS INTEGER ) + col1 * col2 AS col2 FROM tab2
----
5770
9891
9965

query I rowsort
SELECT - col0 FROM tab2 WHERE col0 * - - 54 * + col1 IS NULL
----

query II rowsort
SELECT ALL col1, - col0 + + 69 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + 13 * + col1 IS NULL
----
51
23
67
-6
77
5

query I rowsort
SELECT DISTINCT + 87 * - + col0 AS col2 FROM tab1
----
-4437
-7395
-7917

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 24
----

query I rowsort
SELECT DISTINCT + col2 * + + ( - - col1 ) AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT MAX( DISTINCT - + 61 ) FROM tab1 WHERE NOT ( - 33 ) IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT MAX ( DISTINCT - + 61 ) FROM tab1 WHERE NOT ( - 33 ) IS NULL
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2328
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - col2 * - + 88 * + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
103224
271040
341968

query I rowsort
SELECT ALL + + col0 + + col0 + - col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + - col1 )
----

query I rowsort
SELECT + + 43 FROM tab2 WHERE NULL BETWEEN NULL AND - - 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT + col1 DIV col1 + - - col1 + + col2 AS col1 FROM tab1
----
111
116
65

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + col1 / col1 + - - col1 + + col2 AS col1 FROM tab1
----
111
116
65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + - col0
----

query II rowsort
SELECT DISTINCT + col1 AS col2, 23 AS col2 FROM tab2
----
51
23
67
23
77
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT DISTINCT - 85 DIV + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT - 85 / + col0 FROM tab2
----
-1

query I rowsort
SELECT 63 FROM tab1 WHERE + col0 + + - 5 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT ALL CAST( + 14 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL CAST ( + 14 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT 51 * + - col2 * - - col2 * col0 + - + col0 DIV 31 FROM tab2 AS cor0
----
-1241035
-12867302
-5222402

skipif mysql # not compatible
query I rowsort label-2339
SELECT 51 * + - col2 * - - col2 * col0 + - + col0 / 31 FROM tab2 AS cor0
----
-1241035
-12867302
-5222402

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL + COUNT( * ) + + 85 AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + COUNT ( * ) + + 85 AS col1 FROM tab1 AS cor0
----
88

query I rowsort
SELECT col0 - + 29 FROM tab1
----
22
56
62

query I rowsort
SELECT ALL col1 - + + col2 + - + col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 - col1 - + col2 * col0 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT + - col0 + - col1 DIV - + col0 FROM tab0 AS cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-2344
SELECT + - col0 + - col1 / - + col0 FROM tab0 AS cor0
----
-10
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE NOT col1 + ( 16 ) + col1 = + col1 * col0 * - col2 + + ( + CAST( 75 AS SIGNED ) ) + - col0 + - col0 + + col2 + - col0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE NOT col1 + ( 16 ) + col1 = + col1 * col0 * - col2 + + ( + CAST ( 75 AS INTEGER ) ) + - col0 + - col0 + + col2 + - col0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 59, + col1 col1 FROM tab0 AS cor0
----
-59
1
-59
21
-59
81

query I rowsort
SELECT ALL - 68 FROM tab1 cor0 WHERE NOT ( col0 ) IS NULL
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab0 WHERE NOT - col2 IS NULL
----
10
47
99

query I rowsort
SELECT ALL - + 83 FROM tab1 WHERE + - col1 IS NOT NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT - COUNT( DISTINCT - col2 ) * - 46 AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2350
SELECT - COUNT ( DISTINCT - col2 ) * - 46 AS col2 FROM tab2 AS cor0
----
138

query I rowsort
SELECT DISTINCT - col2 * - - 36 AS col2 FROM tab0 AS cor0
----
-1692
-3564
-360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 59 col0 FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2353
SELECT ALL + COUNT( * ) DIV - + ( 14 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + COUNT ( * ) / - + ( 14 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col0 + col1 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL - MAX( - 36 ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - MAX ( - 36 ) AS col1 FROM tab2
----
36

query I rowsort
SELECT ALL ( + 0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + + 20 * 20 * col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
1958400
2006000
2475200

query I rowsort
SELECT DISTINCT - 54 + ( + - col0 ) - - col0 + col0 AS col2 FROM tab0 AS cor0
----
-39
33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT COUNT( 14 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2359
SELECT COUNT ( 14 ) AS col2 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL col2 AS col1, - col2 * + 69 FROM tab2 cor0
----
23
-1587
40
-2760
58
-4002

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 27 * col0 + - col0 AS col2 FROM tab2
----
1196
1664
1950

query I rowsort
SELECT DISTINCT - 25 + + 65 - + 6 AS col2 FROM tab1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT - 42 + + + col0 DIV col0 + - 86 FROM tab0
----
-127
-127
-127

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 42 + + + col0 / col0 + - 86 FROM tab0
----
-127
-127
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 3 ) + col1 col0 FROM tab2
----
54
70
80

query I rowsort
SELECT ALL 57 - col1 * - col1 FROM tab0
----
498
58
6618

query I rowsort
SELECT ALL - 56 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * col1 col0 FROM tab0 cor0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL - + MIN( DISTINCT 6 ) + + 51 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - + MIN ( DISTINCT 6 ) + + 51 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ( + COUNT( * ) ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2370
SELECT ( + COUNT ( * ) ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT ALL - ( + COUNT( * ) ) * + - COUNT( * ) * COUNT( * ) + + 28 * + - CAST( NULL AS SIGNED ) * 65 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2371
SELECT ALL - ( + COUNT ( * ) ) * + - COUNT ( * ) * COUNT ( * ) + + 28 * + - CAST ( NULL AS INTEGER ) * 65 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 21 col2 FROM tab0
----
1827
2037
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT MIN( ALL + + CAST( - ( - + col0 ) AS SIGNED ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2373
SELECT MIN ( ALL + + CAST ( - ( - + col0 ) AS INTEGER ) ) FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 43 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT + MIN( ALL + 34 ) * - 54 FROM tab1 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT + MIN ( ALL + 34 ) * - 54 FROM tab1 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT + COUNT( * ) * + 57 col2 FROM tab2
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2376
SELECT + COUNT ( * ) * + 57 col2 FROM tab2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 24 * + 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 24 * + 56 IS NOT NULL
----
0

query I rowsort
SELECT 84 - - col2 + - 34 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 + + - col0 * - - 92 AND - - col0 * - 45 / - col2 + + col1 + - col1 + - 89
----

query I rowsort
SELECT ALL + + ( - col0 ) * - - col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT 13, col0 FROM tab1
----
13
51
13
85
13
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT - MAX( + 18 ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - MAX ( + 18 ) AS col2 FROM tab1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - 13 + 97 FROM tab2
----
-51
84
-67
84
-77
84

query II rowsort
SELECT + - ( - - 52 ) AS col0, + 33 FROM tab2 AS cor0
----
-52
33
-52
33
-52
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 95 AS col1, + 32 col1 FROM tab2 AS cor0
----
95
32

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT + col0 * + 16 FROM tab0 AS cor0
----
1392
1552
240

query I rowsort
SELECT 71 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + + col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT - MAX( 38 ) AS col2 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-2389
SELECT - MAX ( 38 ) AS col2 FROM tab0
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2390
SELECT - CAST( + - col0 AS SIGNED ) DIV ( 62 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2390
SELECT - CAST ( + - col0 AS INTEGER ) / ( 62 ) FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 NOT BETWEEN + - 25 + 65 AND 52
----
46
51
23
75
67
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col0 NOT BETWEEN + 65 AND - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + 49 ) + - 54 col0 FROM tab1 AS cor0
----
-103
-103
-103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT + - 32 + + MAX( DISTINCT 23 ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2395
SELECT + - 32 + + MAX ( DISTINCT 23 ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT ( - col0 ) DIV - 8 + + - col0 + col2 * 10 AS col0 FROM tab0 AS cor0
----
23
456
905

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT ( - col0 ) / - 8 + + - col0 + col2 * 10 AS col0 FROM tab0 AS cor0
----
23
456
905

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * 21 AS col1 FROM tab0 WHERE - col1 * - 6 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * 21 AS col1 FROM tab0 WHERE - col1 * - 6 + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL 1 + COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL 1 + COUNT ( * ) AS col2 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT 73 * + COUNT( * ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT 73 * + COUNT ( * ) FROM tab1
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT - + col2 * - ( + col2 ) * - 87 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE col1 <= 90 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT - + col2 * - ( + col2 ) * - 87 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE col1 <= 90 + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT - + 93 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT - + 93 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-279

query I rowsort
SELECT ALL ( 57 ) * + col2 AS col2 FROM tab1 AS cor0
----
3363
3876
5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT 59 - - col1 * - CAST( - ( col2 ) AS SIGNED ) * col1 + + col2 AS col2 FROM tab0 AS cor0
----
257
308473
4479

skipif mysql # not compatible
query I rowsort label-2403
SELECT 59 - - col1 * - CAST ( - ( col2 ) AS INTEGER ) * col1 + + col2 AS col2 FROM tab0 AS cor0
----
257
308473
4479

query III rowsort
SELECT * FROM tab1 WHERE col1 * + + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT ALL CAST( - ( - col2 ) AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL CAST ( - ( - col2 ) AS INTEGER ) FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col0 + 63 * - col2 * + + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT COUNT( + 16 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2407
SELECT COUNT ( + 16 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT DISTINCT SUM( - col1 ), - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-103
0

skipif mysql # not compatible
query II rowsort label-2408
SELECT DISTINCT SUM ( - col1 ), - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-103
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + - 97 * + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
-4947

skipif mysql # not compatible
query I rowsort label-2409
SELECT + - 97 * + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
-4947

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT ALL + + 64 DIV + - col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL + + 64 / + - col0 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 * + col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2412
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2412
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2413
SELECT DISTINCT col1, + CAST( NULL AS DECIMAL ) + col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2413
SELECT DISTINCT col1, + CAST ( NULL AS REAL ) + col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab1
----
-49

query I rowsort
SELECT DISTINCT - 35 - + col0 AS col1 FROM tab0 WHERE + - col0 + - ( - 21 ) IS NOT NULL
----
-122
-132
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT SUM( ALL + ( - 68 ) ), - 40 AS col1 FROM tab0
----
-204
-40

skipif mysql # not compatible
query II rowsort label-2416
SELECT SUM ( ALL + ( - 68 ) ), - 40 AS col1 FROM tab0
----
-204
-40

query I rowsort
SELECT ( - ( + col1 ) ) / + 3 FROM tab2 WHERE NOT NULL >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2418
SELECT DISTINCT - - 78 AS col0, CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
78
-46
78
-64
78
-75

skipif mysql # not compatible
query II rowsort label-2418
SELECT DISTINCT - - 78 AS col0, CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
78
-46
78
-64
78
-75

query I rowsort
SELECT 89 AS col1 FROM tab0 cor0 WHERE NOT + col0 - - col2 IS NULL
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL - 28 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - 28 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
84

query II rowsort
SELECT + + 26, + col1 FROM tab2 AS cor0
----
26
51
26
67
26
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT ALL col2 DIV + ( - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL col2 / + ( - col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 99 + - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL + 4 * - COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL + 4 * - COUNT ( * ) FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + COUNT( * ) + + 42 col2 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2426
SELECT + COUNT ( * ) + + 42 col2 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT MAX( + 91 ) + + - COUNT( * ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2427
SELECT MAX ( + 91 ) + + - COUNT ( * ) FROM tab2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT DISTINCT - col1 DIV + + col1 - - col2 col2 FROM tab0
----
46
9
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2428
SELECT DISTINCT - col1 / + + col1 - - col2 col2 FROM tab0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL 83 - + 17 * + COUNT( * ) + 54 + - 24 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL 83 - + 17 * + COUNT ( * ) + 54 + - 24 FROM tab2
----
62

query I rowsort
SELECT + 62 + col2 FROM tab2
----
102
120
85

query I rowsort
SELECT + 52 AS col2 FROM tab0 WHERE - col0 + - col2 * - col1 < 43
----
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT + - ( + - ( CAST( NULL AS SIGNED ) ) ) * CAST( + col1 AS SIGNED ) / - + col1 + col1 - + col1 * + 80 * + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT + - ( + - ( CAST ( NULL AS INTEGER ) ) ) * CAST ( + col1 AS INTEGER ) / - + col1 + col1 - + col1 * + 80 * + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2435
SELECT - col2 DIV - col1, col2 FROM tab2 cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-2435
SELECT - col2 / - col1, col2 FROM tab2 cor0
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2436
SELECT DISTINCT col1 / - - CAST( NULL AS SIGNED ) * - - col0 AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2436
SELECT DISTINCT col1 / - - CAST ( NULL AS INTEGER ) * - - col0 AS col2, + col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2437
SELECT DISTINCT - CAST( - COUNT( DISTINCT - - 77 ) AS SIGNED ), + COUNT( - + col1 ) AS col2 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-2437
SELECT DISTINCT - CAST ( - COUNT ( DISTINCT - - 77 ) AS INTEGER ), + COUNT ( - + col1 ) AS col2 FROM tab1 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + - MAX( + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2438
SELECT + - MAX ( + col1 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + SUM( ALL - 96 ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2440
SELECT + SUM ( ALL - 96 ) FROM tab1 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - - SUM( - 61 ) FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2441
SELECT - - SUM ( - 61 ) FROM tab0 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT SUM( - 19 ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT SUM ( - 19 ) AS col0 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT - col2 * - col0 * - + col1 AS col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT MIN( ALL - 56 ) col1 FROM tab0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2444
SELECT DISTINCT MIN ( ALL - 56 ) col1 FROM tab0
----
-56

query II rowsort
SELECT - col2 + - 75, col1 AS col2 FROM tab1
----
-134
5
-143
47
-171
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT DISTINCT col0 DIV - + 85 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT col0 / - + 85 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2448
SELECT DISTINCT + col1 * - CAST( NULL AS DECIMAL ) * + col0 FROM tab0 WHERE 44 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + col1 * - CAST ( NULL AS REAL ) * + col0 FROM tab0 WHERE 44 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - col0 ) ) col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * - ( - col2 ) AS col0 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2452
SELECT ALL - COUNT( * ) / - ( + - CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - COUNT ( * ) / - ( + - CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + ( 96 ) FROM tab0
----
96
96
96

query III rowsort
SELECT * FROM tab2 WHERE + 89 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT ALL SUM( + 63 ) AS col2, + COUNT( * ) FROM tab1, tab0 AS cor0
----
567
9

skipif mysql # not compatible
query II rowsort label-2455
SELECT ALL SUM ( + 63 ) AS col2, + COUNT ( * ) FROM tab1, tab0 AS cor0
----
567
9

query I rowsort
SELECT ALL ( col2 ) * + col0 * - col1 + + - 2 + ( - col1 ) + col1 FROM tab2
----
-197122
-291452
-53960

query I rowsort
SELECT ALL - 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 45 * - + col1 * - - 95 * - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 45 * - + col1 * - - 95 * - col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + + 7 FROM tab2 AS cor0
----
-39
-57
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT ALL - - 54 + + 52 * + MAX( + 89 ) FROM tab1 AS cor0
----
4682

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - - 54 + + 52 * + MAX ( + 89 ) FROM tab1 AS cor0
----
4682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT - - ( CAST( - col2 AS SIGNED ) ) + - + 66 FROM tab0 AS cor0
----
-113
-165
-76

skipif mysql # not compatible
query I rowsort label-2461
SELECT - - ( CAST ( - col2 AS INTEGER ) ) + - + 66 FROM tab0 AS cor0
----
-113
-165
-76

query I rowsort
SELECT + ( - 12 ) + + col0 + - + col2 AS col2 FROM tab2 cor0
----
11
12
5

query I rowsort
SELECT - 28 * + + 81 * - ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE 60 NOT BETWEEN + col2 / col2 * ( col2 ) + - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT + col2 DIV - + 62 + + - 23 + col2 FROM tab1
----
36
44
72

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + col2 / - + 62 + + - 23 + col2 FROM tab1
----
36
44
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 * + + col2 + 66 + - + col2 col0 FROM tab2
----
123226
225396
27022

query III rowsort
SELECT * FROM tab1 WHERE - col1 <= 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - 33 - + col0 AS col2 FROM tab1
----
-1734
-2890
-3094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT - + 1 + - + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE col1 * - + 2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT - + 1 + - + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE col1 * - + 2 IS NULL
----
NULL

query II rowsort
SELECT ALL - col2 + col0 AS col2, 77 FROM tab1
----
-45
77
23
77
26
77

query I rowsort
SELECT ALL - col0 * 79 - - col1 FROM tab0
----
-1104
-6852
-7662

query I rowsort
SELECT + 80 - - + 24 AS col2 FROM tab1
----
104
104
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT - COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2472
SELECT - COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT - 9 DIV - + col0 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 15 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2473
SELECT - 9 / - + col0 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 15 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2474
SELECT CAST( NULL AS SIGNED ) * - + col0 AS col2, + ( + + col2 ) AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2474
SELECT CAST ( NULL AS INTEGER ) * - + col0 AS col2, + ( + + col2 ) AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2475
SELECT ALL - 59 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - 59 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + + MAX( - + 11 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-2476
SELECT + + MAX ( - + 11 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2477
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 > + + col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2477
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 > + + col1 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 80 + + col0 AS col2 FROM tab2
----
126
144
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT - 51 * COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-2479
SELECT - 51 * COUNT ( * ) FROM tab2
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT ALL MIN( ALL col0 ) DIV 94 * - - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL MIN ( ALL col0 ) / 94 * - - COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2481
SELECT - 53 DIV ( - + col2 ), col0 * col0 AS col1 FROM tab1
----
0
2601
0
7225
0
8281

skipif mysql # not compatible
query II rowsort label-2481
SELECT - 53 / ( - + col2 ), col0 * col0 AS col1 FROM tab1
----
0
2601
0
7225
0
8281

query I rowsort
SELECT ALL - ( + 56 ) FROM tab2
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT + col0 DIV + + col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2483
SELECT + col0 / + + col1 AS col1 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT ALL + + CAST( + col1 AS SIGNED ) + - 45 AS col1 FROM tab1 AS cor0
----
-31
-40
2

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL + + CAST ( + col1 AS INTEGER ) + - 45 AS col1 FROM tab1 AS cor0
----
-31
-40
2

query I rowsort
SELECT DISTINCT + 14 FROM tab0 WHERE + col2 + 23 * col0 IS NOT NULL
----
14

query I rowsort
SELECT col1 - 12 AS col0 FROM tab2
----
39
55
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL - CAST( NULL AS SIGNED ) * + 8 + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - CAST ( NULL AS INTEGER ) * + 8 + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 22 * - 97 - - col1 FROM tab2 WHERE + ( - col2 ) * - 54 NOT BETWEEN + col1 * - 24 AND - col2
----
-2057
-2067
-2083

query I rowsort
SELECT 63 * + 55 FROM tab1
----
3465
3465
3465

query I rowsort
SELECT - 17 * ( 14 ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 / - col0 + - 23 * - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT + col1 * + CAST( NULL AS SIGNED ) + col2 * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT + col1 * + CAST ( NULL AS INTEGER ) + col2 * - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT ALL - col0 + 91 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - col0 + 91 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 + 86 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + 18 NOT IN ( + 16 * 89 + - 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT ALL + 51 DIV + col1 AS col1 FROM tab0
----
0
2
51

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + 51 / + col1 AS col1 FROM tab0
----
0
2
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT + CAST( + 84 AS SIGNED ) FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2497
SELECT + CAST ( + 84 AS INTEGER ) FROM tab0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - SUM( - col2 ) FROM tab1 WHERE NOT - col1 - 37 IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - SUM ( - col2 ) FROM tab1 WHERE NOT - col1 - 37 IS NULL
----
223

query I rowsort
SELECT ALL + col0 * - 85 AS col1 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - ( MAX( DISTINCT + col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2500
SELECT - ( MAX ( DISTINCT + col2 ) ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL COUNT( ALL ( 1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL COUNT ( ALL ( 1 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 * col1 - 88 * + col0 FROM tab0
----
-105
-5829
-8439

query I rowsort
SELECT ALL + 81 * 30 FROM tab2
----
2430
2430
2430

query I rowsort
SELECT col0 - - ( + col1 ) * + ( - col2 + - col0 ) AS col0 FROM tab2
----
-3473
-7944
-8836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT CAST( NULL AS SIGNED ) / 51 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT CAST ( NULL AS INTEGER ) / 51 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col2 ) * 64 FROM tab1
----
3776
4352
6144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2507
SELECT ALL col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL col0 * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2508
SELECT 15 DIV COUNT( - 0 ) AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-2508
SELECT 15 / COUNT ( - 0 ) AS col0 FROM tab0
----
5

query III rowsort
SELECT * FROM tab0 WHERE 92 * - 41 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2510
SELECT ALL - col1 - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE ( + col1 ) NOT BETWEEN NULL AND + col2
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL - col1 - CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE ( + col1 ) NOT BETWEEN NULL AND + col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL + col2 DIV col0 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2511
SELECT ALL + col2 / col0 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * - 71 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT DISTINCT col1 * + 14 FROM tab2
----
1078
714
938

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - 13 * COUNT( * ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 13 * COUNT ( * ) FROM tab1
----
-39

query I rowsort
SELECT ALL 72 * 16 + + 19 FROM tab2
----
1171
1171
1171

query I rowsort
SELECT ALL - col2 + col1 FROM tab0 WHERE NOT - 60 NOT IN ( col2 )
----

query I rowsort
SELECT + col2 - 21 FROM tab0 WHERE NOT 7 NOT IN ( col0 / - 94 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * 93 - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + ( 32 ) FROM tab1 cor0
----
32
32
32

query I rowsort
SELECT col0 + col1 FROM tab2 AS cor0 WHERE NOT ( - col0 * 87 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT ALL - col0 * - CAST( - ( - 7 ) * col2 AS SIGNED ) AS col0 FROM tab0
----
4935
6090
67221

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - col0 * - CAST ( - ( - 7 ) * col2 AS INTEGER ) AS col0 FROM tab0
----
4935
6090
67221

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT DISTINCT col2 DIV 24 FROM tab1
----
2
4

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT col2 / 24 FROM tab1
----
2
4

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE + col2 + + col0 * - col2 IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 45 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 - col2 * 14 FROM tab2 WHERE NOT + col1 IS NULL
----
-373
-637
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT + ( - MAX( DISTINCT col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2527
SELECT + ( - MAX ( DISTINCT col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL - CAST( 9 AS SIGNED ) col0 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2529
SELECT ALL - CAST ( 9 AS INTEGER ) col0 FROM tab1 AS cor0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 41 IN ( + col0 / - 58 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col1 * - col2 ) = ( + col2 * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2531
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col1 * - col2 ) = ( + col2 * col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL COUNT( * ) * - 78 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL COUNT ( * ) * - 78 FROM tab0 AS cor0
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT ALL col2 DIV - 96 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL col2 / - 96 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( col2 ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT - - COUNT( ALL col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2536
SELECT - - COUNT ( ALL col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 77 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT DISTINCT + 98 DIV COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT + 98 / COUNT ( * ) FROM tab1 AS cor0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT + MAX( col0 ) * MIN( CAST( + col0 AS SIGNED ) * col0 ) FROM tab2 AS cor0
----
158700

skipif mysql # not compatible
query I rowsort label-2539
SELECT + MAX ( col0 ) * MIN ( CAST ( + col0 AS INTEGER ) * col0 ) FROM tab2 AS cor0
----
158700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( 57 + + 39 * + 25 ) col0 FROM tab1 cor0
----
941
947
981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col0 col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - 3 + - ( + col0 ) AS col1 FROM tab1
----
-54
-88
-94

query I rowsort
SELECT ALL + col2 + + 39 FROM tab1
----
107
135
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT CAST( - col1 AS SIGNED ) + + col2 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2544
SELECT CAST ( - col1 AS INTEGER ) + + col2 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2545
SELECT - 95 + col1 + - col1 DIV - CAST( - col0 * col1 + col2 AS SIGNED ) * - 86 FROM tab2
----
-18
-28
-44

skipif mysql # not compatible
query I rowsort label-2545
SELECT - 95 + col1 + - col1 / - CAST ( - col0 * col1 + col2 AS INTEGER ) * - 86 FROM tab2
----
-18
-28
-44

query I rowsort
SELECT + 43 + col2 + col0 FROM tab0
----
105
140
239

query III rowsort
SELECT * FROM tab2 WHERE NULL = - col2 * + 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 97 <= CAST( NULL AS SIGNED ) * ( - col2 ) - - col0
----

skipif mysql # not compatible
query I rowsort label-2548
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 97 <= CAST ( NULL AS INTEGER ) * ( - col2 ) - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col1 FROM tab2 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT - - MAX( ALL + - 19 ) * + MIN( - col2 * col0 + + col0 ) FROM tab1 AS cor0
----
115843

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT - - MAX ( ALL + - 19 ) * + MIN ( - col2 * col0 + + col0 ) FROM tab1 AS cor0
----
115843

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( col2 ) + + - col2 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN ( - col0 * - col1 ) AND - col2 / 59 + 17 * 70
----

query I rowsort
SELECT DISTINCT col2 * ( - col1 ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + col0 + + col2 + + - 87 FROM tab0
----
-25
10
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT - + col2 + + 72 * - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT - + col2 + + 72 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + + 64 * col2 + col0 FROM tab1 AS cor0
----
3802
4375
6099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT CAST( NULL AS SIGNED ) + - ( - col1 ) + 51 FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2559
SELECT CAST ( NULL AS INTEGER ) + - ( - col1 ) + 51 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col0 + + - col2 FROM tab0 cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49, col0 col1 FROM tab1 AS cor0
----
49
51
49
85
49
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2562
SELECT + COUNT( * ) DIV COUNT( + col2 ) col1 FROM tab2 AS cor0 WHERE CAST( col2 AS SIGNED ) * col2 >= col1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2562
SELECT + COUNT ( * ) / COUNT ( + col2 ) col1 FROM tab2 AS cor0 WHERE CAST ( col2 AS INTEGER ) * col2 >= col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2563
SELECT + + COUNT( * ) * + - ( - - SUM( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT + + COUNT ( * ) * + - ( - - SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL - - MIN( + col1 ) + - - SUM( DISTINCT CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL - - MIN ( + col1 ) + - - SUM ( DISTINCT CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-155

query I rowsort
SELECT + 93 AS col2 FROM tab0 WHERE - 98 IS NOT NULL
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * AVG ( col2 ) col0 FROM tab2 WHERE 97 IN ( col2 * col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 29 IS NULL
----

query I rowsort
SELECT ALL - col0 + - 83 AS col0 FROM tab2 WHERE ( + col1 ) IS NULL
----

query II rowsort
SELECT ( - col2 ), col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - col2 * col2 * col0 + + 83 * col2 col0 FROM tab1 AS cor0
----
-1474528
-19771204
-6572256

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT 92 DIV 97 col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2572
SELECT 92 / 97 col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 82 + col1 - + ( - col1 ) * ( col0 ) > + 83
----

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT 11 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col2 * + 61 AS col1 FROM tab2
----
1403
2440
3538

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * 15 * + ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 78 + - col2 > + + 2
----
51
14
96

query I rowsort
SELECT - 39 * + 63 AS col0 FROM tab0
----
-2457
-2457
-2457

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 / + 10 >= col0 * col1 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 42 / col0 FROM tab2 cor0 WHERE NULL IN ( col0 * + + col2 * + + 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * + 29 + + ( + 84 ) col0 FROM tab1 AS cor0
----
-2497
-2497
-2497

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT COUNT( - 52 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2582
SELECT COUNT ( - 52 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 19 * - ( - + col0 ) + col1 FROM tab1 AS cor0
----
1620
1776
983

query I rowsort
SELECT ALL - - 58 + + + col1 FROM tab0 AS cor0
----
139
59
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col2 * - col1 / + - 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + 3 FROM tab2
----
-46
3
-64
3
-75
3

query II rowsort
SELECT col2, 60 AS col0 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
59
60
68
60
96
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT - MIN( DISTINCT 7 ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - MIN ( DISTINCT 7 ) AS col2 FROM tab0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 92 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + col0 * - col1 AS col0 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT col1 * - + col1 * - + 50 FROM tab1
----
110450
1250
9800

query I rowsort
SELECT DISTINCT 72 * + 9 * - col0 FROM tab1
----
-33048
-55080
-58968

query I rowsort
SELECT 13 + - + col2 AS col0 FROM tab2
----
-10
-27
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + - col2
----

query I rowsort
SELECT col2 + col0 + - 75 FROM tab1
----
69
72
84

query II rowsort
SELECT ALL - col1 * + col0 + + + ( - col2 ), 20 AS col1 FROM tab1 AS cor0
----
-4345
20
-484
20
-810
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * - col0 col2 FROM tab2 AS cor0
----
-2990
-4160
-4875

query I rowsort
SELECT DISTINCT 78 + - + 6 FROM tab0 cor0
----
72

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 86 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + 26 ) >= NULL
----

query I rowsort
SELECT ( + 29 ) AS col2 FROM tab0 WHERE NULL >= + col2 + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2602
SELECT DISTINCT col2 DIV col0 col1, + col0 AS col2 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2602
SELECT DISTINCT col2 / col0 col1, + col0 AS col2 FROM tab2
----
0
46
0
64
0
75

query II rowsort
SELECT DISTINCT col0 AS col0, col0 * - col2 FROM tab2 WHERE - - 41 * col2 >= ( NULL )
----

query I rowsort
SELECT + col0 * 13 - - col2 AS col1 FROM tab2 cor0
----
1033
621
872

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <= + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + - col0 + - + 47 FROM tab2 AS cor0
----
-111
-122
-93

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * + 67 / + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT ALL + col1 DIV - - 83 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + col1 / - - 83 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT - COUNT( DISTINCT + + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2610
SELECT - COUNT ( DISTINCT + + col0 ) FROM tab0
----
-3

query I rowsort
SELECT 97 * - - col2 * + 42 FROM tab0
----
191478
403326
40740

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2612
SELECT ALL + col1 col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2612
SELECT ALL + col1 col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2613
SELECT DISTINCT col0 AS col2, + col1 DIV - - 53 FROM tab0
----
15
1
87
0
97
0

skipif mysql # not compatible
query II rowsort label-2613
SELECT DISTINCT col0 AS col2, + col1 / - - 53 FROM tab0
----
15
1
87
0
97
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT - col2 BETWEEN + + col1 AND ( col1 )
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT - 77 DIV - + 61 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2615
SELECT - 77 / - + 61 FROM tab1
----
1
1
1

query II rowsort
SELECT ALL - 54 AS col2, col2 AS col0 FROM tab0 WHERE + 90 IN ( + + col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT SUM( - 96 ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT SUM ( - 96 ) FROM tab2 AS cor0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT 94 DIV + + 46 AS col2 FROM tab0 AS cor0 WHERE NOT + 62 IS NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2618
SELECT 94 / + + 46 AS col2 FROM tab0 AS cor0 WHERE NOT + 62 IS NULL
----
2
2
2

query II rowsort
SELECT ALL + col2, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - 78 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2621
SELECT - MIN( - + col0 ), 88 AS col2 FROM tab2
----
75
88

skipif mysql # not compatible
query II rowsort label-2621
SELECT - MIN ( - + col0 ), 88 AS col2 FROM tab2
----
75
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 68 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 68 FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2623
SELECT DISTINCT 12 * + AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT 12 * + AVG ( ALL CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 52 * + - col0 col2 FROM tab0 cor0
----
-36660
-45240
-499356

query I rowsort
SELECT ALL ( + ( - - 38 ) ) FROM tab0 cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT COUNT( * ) + + COUNT( * ) - + COUNT( * ) * - - ( + 22 ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2626
SELECT COUNT ( * ) + + COUNT ( * ) - + COUNT ( * ) * - - ( + 22 ) AS col0 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT 62 * + 43 + - 45 FROM tab2 cor0
----
2621
2621
2621

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT 23 + + - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-2628
SELECT 23 + + - col2 / col0 AS col0 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT col1 + + + 18 - col0 FROM tab0 AS cor0
----
-48
-78
84

query I rowsort
SELECT col2 + col1 - 49 * - col2 FROM tab1
----
2955
3447
4814

query I rowsort
SELECT ALL + col1 * 85 + col1 FROM tab2
----
4386
5762
6622

query I rowsort
SELECT DISTINCT col1 + + col2 * - + 83 FROM tab2
----
-1858
-3243
-4747

query I rowsort
SELECT ALL - col2 * col1 * + col2 AS col2 FROM tab1 WHERE NOT NULL = 1
----

query I rowsort
SELECT DISTINCT 15 + + col1 * - 36 FROM tab1 WHERE col0 >= ( + col2 + + col2 / col1 * - col0 )
----
-165
-1677
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL MAX( + 74 ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL MAX ( + 74 ) FROM tab2
----
74

query I rowsort
SELECT ALL col2 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query III rowsort label-2637
SELECT ALL col1, 55 DIV - - col2, - 79 + + 32 AS col1 FROM tab0 AS cor0
----
9 values hashing to d0f564d95f9ad6da48ccd1a45736cdf4

skipif mysql # not compatible
query III rowsort label-2637
SELECT ALL col1, 55 / - - col2, - 79 + + 32 AS col1 FROM tab0 AS cor0
----
9 values hashing to d0f564d95f9ad6da48ccd1a45736cdf4

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT + 38 * ( + ( + col1 ) ) * + col2 DIV col2 + 33 FROM tab0 AS cor0
----
3111
71
831

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + 38 * ( + ( + col1 ) ) * + col2 / col2 + 33 FROM tab0 AS cor0
----
3111
71
831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT + - col1 * + - col2 - - - ( + - 44 ) * - + col1 AS col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2639
SELECT + - col1 * + - col2 - - - ( + - 44 ) * - + col1 AS col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - + ( 92 ) * col1 - - ( col2 ) * + - col2 * + + col0 AS col1 FROM tab2 AS cor0
----
-109484
-258464
-29026

query I rowsort
SELECT DISTINCT col2 * - - col0 + 23 + - 58 FROM tab0
----
670
835
9568

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT COUNT( - 81 ) - - 77 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT COUNT ( - 81 ) - - 77 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT MAX( ALL + - 46 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + ( 45 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT MAX ( ALL + - 46 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + ( 45 ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 87 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2644
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, 13 + + - col0 col1 FROM tab2 AS cor0
----
51
-33
67
-62
77
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2647
SELECT + col2 AS col1, - 88 DIV + col0 FROM tab1 AS cor0
----
59
-1
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-2647
SELECT + col2 AS col1, - 88 / + col0 FROM tab1 AS cor0
----
59
-1
68
0
96
-1

query II rowsort
SELECT + col0 AS col1, + 7 - - 69 FROM tab2 AS cor0
----
46
76
64
76
75
76

query I rowsort
SELECT - - 93 * - - col0 FROM tab2 AS cor0
----
4278
5952
6975

query I rowsort
SELECT 48 * - - 70 AS col1 FROM tab2 AS cor0
----
3360
3360
3360

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 * - + col1, 38 AS col2 FROM tab2 AS cor0
----
1173
38
3080
38
3886
38

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 + + 40 AS col1 FROM tab2 AS cor0
----
46
63
64
80
75
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2654
SELECT ALL * FROM tab0 WHERE + CAST( ( 12 ) AS SIGNED ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2654
SELECT ALL * FROM tab0 WHERE + CAST ( ( 12 ) AS INTEGER ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2655
SELECT ALL + COUNT( * ) DIV - SUM( DISTINCT - ( + col1 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + COUNT ( * ) / - SUM ( DISTINCT - ( + col1 ) ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 90 col2 FROM tab0
----
1890
7290
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * + col0 * col0 + - col0 col1 FROM tab1 AS cor0
----
-31263
-86785
-99463

query I rowsort
SELECT ALL + col0 * + 15 - 51 FROM tab0 cor0
----
1254
1404
174

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL - COUNT( * ) * + - COUNT( * ) + - 26 AS col0 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) + - 26 AS col0 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT + col1 * + 17 * - - col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 56 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT + 97 DIV - - col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2663
SELECT + 97 / - - col2 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT DISTINCT + + 75 AS col0 FROM tab1 AS cor0
----
75

query II rowsort
SELECT ALL - 70 AS col0, col2 AS col0 FROM tab0 cor0
----
-70
10
-70
47
-70
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT - - COUNT( + col2 ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT - - COUNT ( + col2 ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col1, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
97

query I rowsort
SELECT ALL - - col1 + + col0 - + col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT DISTINCT + 6 / + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 84 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + 6 / + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 84 AND - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 / - + 84 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2672
SELECT * FROM tab1 WHERE ( col1 * - 32 + + CAST( NULL AS SIGNED ) + + 52 + + + col2 ) NOT BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2672
SELECT * FROM tab1 WHERE ( col1 * - 32 + + CAST ( NULL AS INTEGER ) + + 52 + + + col2 ) NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN + col2 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT + col0 - 83 FROM tab0
----
-68
14
4

query I rowsort
SELECT + 14 - - - col1 FROM tab2
----
-37
-53
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 14 col1 FROM tab1
----
37
71
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT + COUNT( * ) * COUNT( * ) + - CAST( 80 AS SIGNED ) AS col0 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-2677
SELECT + COUNT ( * ) * COUNT ( * ) + - CAST ( 80 AS INTEGER ) AS col0 FROM tab0
----
-71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = - 12
----

query I rowsort
SELECT - 98 + - - col2 * + - col0 FROM tab1
----
-4994
-5113
-6286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - ( 21 ) col2 FROM tab0
----
-20
0
60

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN + 42 AND + 58 - + 68 * + 76
----

query I rowsort
SELECT - ( + col2 ) + + 32 + 17 FROM tab2
----
-9
26
9

query I rowsort
SELECT col0 * + + col0 FROM tab2 WHERE - + col1 IS NULL
----

query I rowsort
SELECT 88 * col1 + + - 3 FROM tab1
----
1229
4133
437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col2 FROM tab0
----
69
69
69

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + - col0 * - + col0 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + - COUNT( * ) * + + MAX( + 58 ) * - COUNT( * ) + + - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT + - COUNT ( * ) * + + MAX ( + 58 ) * - COUNT ( * ) + + - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL - ( - col0 ) * + col2 / ( - 36 ) / + col1 + + col1 FROM tab1 WHERE - + col2 > 60 * + + ( col0 ) + + col0 + - 89 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT ALL - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col1, 59 FROM tab0 AS cor0
----
1
59
21
59
81
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2692
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 77 <= col0 + - col2 + col2
----

skipif mysql # not compatible
query III rowsort label-2692
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 77 <= col0 + - col2 + col2
----

query I rowsort
SELECT + col0 * - + 97 AS col0 FROM tab2 cor0
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL - ( - + COUNT( * ) ) * - 90 AS col0 FROM tab1 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL - ( - + COUNT ( * ) ) * - 90 AS col0 FROM tab1 cor0
----
-270

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 30 BETWEEN + col1 AND - + 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - 86 + - col0 + + + 59 * col2 AS col0 FROM tab0 AS cor0
----
-1284
-2770
-357

query I rowsort
SELECT - col1 * col1 * + col1 AS col1 FROM tab0 AS cor0
----
-1
-531441
-9261

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 67
----

query I rowsort
SELECT ( + + col1 ) * - + col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2700
SELECT DISTINCT COUNT( * ) * + ( ( - + 32 ) ) AS col2, - 82 * + ( - CAST( NULL AS SIGNED ) ) * + 17 FROM tab1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT COUNT ( * ) * + ( ( - + 32 ) ) AS col2, - 82 * + ( - CAST ( NULL AS INTEGER ) ) * + 17 FROM tab1
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - 71 * COUNT( * ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 71 * COUNT ( * ) FROM tab1
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 14, + 15 col1 FROM tab1
----
14
15
14
15
14
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT DISTINCT + COUNT( * ), - COUNT( * ) AS col2 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2703
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT ALL col2 DIV - col1 AS col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL col2 / - col1 AS col0 FROM tab0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2705
SELECT ALL - 83 AS col0, + COUNT( col2 ) AS col2 FROM tab2
----
-83
3

skipif mysql # not compatible
query II rowsort label-2705
SELECT ALL - 83 AS col0, + COUNT ( col2 ) AS col2 FROM tab2
----
-83
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2706
SELECT DISTINCT 0 AS col2, COUNT( * ) + + + 33 FROM tab1 cor0
----
0
36

skipif mysql # not compatible
query II rowsort label-2706
SELECT DISTINCT 0 AS col2, COUNT ( * ) + + + 33 FROM tab1 cor0
----
0
36

query I rowsort
SELECT ALL + + 78 * - + 33 * col1 FROM tab2 AS cor0
----
-131274
-172458
-198198

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT ALL - col1 DIV col0 * - col2 AS col1 FROM tab0
----
0
0
235

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - col1 / col0 * - col2 AS col1 FROM tab0
----
0
0
235

query I rowsort
SELECT - 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT ALL - col2 + 3 + 65 + col0 AS col2 FROM tab2 AS cor0
----
85
91
92

query I rowsort
SELECT + + 12 + + - 51 + 29 * - col1 AS col2 FROM tab0 AS cor0
----
-2388
-648
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2712
SELECT - + CAST( NULL AS SIGNED ) * + + COUNT( * ) + - 54 + SUM( DISTINCT - + 28 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT - + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - 54 + SUM ( DISTINCT - + 28 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ) + col1, + 67 col0 FROM tab2 AS cor0
----
102
67
134
67
154
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT - + CAST( + 65 AS SIGNED ) + 91 FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2714
SELECT - + CAST ( + 65 AS INTEGER ) + 91 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2715
SELECT + ( - col0 ) + + col2 + col2 * - col1 AS col1, 3 * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
-1196
NULL
-3104
NULL
-3903
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2715
SELECT + ( - col0 ) + + col2 + col2 * - col1 AS col1, 3 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
-1196
NULL
-3104
NULL
-3903
NULL

query I rowsort
SELECT - col2 + ( - + 26 ) FROM tab2 AS cor0
----
-49
-66
-84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 60 / + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 1 NOT BETWEEN - + col2 AND + - 5 + 73 * + col2 * + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT + col0 DIV + + 34 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2719
SELECT + col0 / + + 34 FROM tab1
----
1
2
2

query I rowsort
SELECT ALL - col2 - - 48 FROM tab0
----
-51
1
38

query I rowsort
SELECT ALL 77 - + 16 AS col1 FROM tab2
----
61
61
61

query I rowsort
SELECT ALL + 88 - - col0 FROM tab2
----
134
152
163

query I rowsort
SELECT DISTINCT 17 - + col0 FROM tab1 AS cor0
----
-34
-68
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT CAST( NULL AS SIGNED ) - + col0 - ( 97 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT CAST ( NULL AS INTEGER ) - + col0 - ( 97 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL - AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL - AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2727
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 89 ) < CAST( NULL AS DECIMAL ) * - - 86 - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 89 ) < CAST ( NULL AS REAL ) * - - 86 - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - - SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2728
SELECT - - SUM ( - col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT DISTINCT + - CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT + - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT + 33 DIV col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 33 / col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
2

query I rowsort
SELECT DISTINCT + 54 * col0 FROM tab0
----
4698
5238
810

query I rowsort
SELECT - ( 61 ) AS col0 FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT 4 DIV - - COUNT( * ) col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2734
SELECT 4 / - - COUNT ( * ) col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + 73 * + - col0 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT - COUNT( + 7 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2736
SELECT - COUNT ( + 7 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT ALL col0 + + CAST( - 36 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
10
28
39

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL col0 + + CAST ( - 36 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
10
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 92 + + col0 col0 FROM tab0 cor0
----
188
190
200

query I rowsort
SELECT col0 + - col1 + 50 * + ( + col0 ) AS col0 FROM tab1
----
2587
4330
4594

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT COUNT( * ) AS col0 FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2741
SELECT COUNT ( * ) AS col0 FROM tab2, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2742
SELECT + MAX( ALL col1 ) AS col2, COUNT( * ) FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-2742
SELECT + MAX ( ALL col1 ) AS col2, COUNT ( * ) FROM tab1
----
47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - MAX( + + 17 ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2743
SELECT - MAX ( + + 17 ) FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT MAX( DISTINCT 72 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2744
SELECT MAX ( DISTINCT 72 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT - - col0 DIV - col0 + - - 62 AS col1 FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2745
SELECT - - col0 / - col0 + - - 62 AS col1 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL SUM( + 70 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL SUM ( + 70 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 > ( - col2 * + 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT COUNT( + 7 ) - + - 71 AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT COUNT ( + 7 ) - + - 71 AS col2 FROM tab2
----
74

query I rowsort
SELECT DISTINCT + 4 * 23 * + col0 - + col0 * - 21 AS col2 FROM tab1
----
10283
5763
9605

query I rowsort
SELECT + col0 * + col2 + + ( - - col0 ) * 72 * col2 AS col2 FROM tab1
----
357408
366095
451724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT DISTINCT - 95 - - + col0 - + col2 * + - CAST( - + 24 AS SIGNED ) col0 FROM tab0
----
-1208
-2374
-248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT DISTINCT - 95 - - + col0 - + col2 * + - CAST ( - + 24 AS INTEGER ) col0 FROM tab0
----
-1208
-2374
-248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT col0 + - ( + 24 ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT col0 + - ( + 24 ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + + 57 ) - 33 + 32 * - col1 * + 49 AS col2 FROM tab2 AS cor0
----
-105146
-120826
-80058

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN + 91 - col1 AND - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( + col1 ) >= NULL ) )
----

query I rowsort
SELECT col2 + - + col0 FROM tab1 WHERE NOT 51 IS NULL
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT COUNT( * ) col1, - 59 AS col0 FROM tab1
----
3
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2757
SELECT COUNT ( * ) col1, - 59 AS col0 FROM tab1
----
3
-59

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= - 18
----

query I rowsort
SELECT ALL - 81 * - col1 FROM tab2 AS cor0
----
4131
5427
6237

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE col0 = + col1 * col1 + col1 / - 48 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT ALL CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) + + 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + + 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT - 31 DIV - + col1 col2 FROM tab1
----
0
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2762
SELECT - 31 / - + col1 col2 FROM tab1
----
0
2
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 22 = - + ( - 55 ) * - col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + ( + 73 ) + - col2 AS col1 FROM tab2
----
90
96
97

query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab2 WHERE NOT ( + col2 ) <= ( NULL )
----

query I rowsort
SELECT ALL 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + 45 + - - col0 AS col1 FROM tab1
----
130
136
96

query I rowsort
SELECT DISTINCT - 14 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-14

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT NULL <> + + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col1 * + ( + col1 ) * + ( + col0 ) + col2 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT - 13 + - col0 DIV - + ( + 8 ) FROM tab1 AS cor0
----
-2
-3
-7

skipif mysql # not compatible
query I rowsort label-2774
SELECT - 13 + - col0 / - + ( + 8 ) FROM tab1 AS cor0
----
-2
-3
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT + - SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT + - SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT col0 - - ( - + 8 ) FROM tab0
----
7
79
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2777
SELECT ALL + 6 - - + CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2777
SELECT ALL + 6 - - + CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + 37 AS col2 FROM tab1
----
-23
-32
10

query I rowsort
SELECT DISTINCT + col1 * - 40 FROM tab0
----
-3240
-40
-840

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 46 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col2 FROM tab2
----
20

query I rowsort
SELECT + - col0 FROM tab0 cor0 WHERE NOT - 71 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT + COUNT( DISTINCT 63 ) col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2783
SELECT + COUNT ( DISTINCT 63 ) col1 FROM tab1 cor0
----
1

query II rowsort
SELECT 95 AS col0, 91 AS col2 FROM tab2 AS cor0 WHERE NOT + 67 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL + MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - + COUNT( - 69 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2787
SELECT - + COUNT ( - 69 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT - SUM( - col2 ) AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
121
3

skipif mysql # not compatible
query II rowsort label-2788
SELECT - SUM ( - col2 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
121
3

query I rowsort
SELECT DISTINCT 27 / + col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + 98 * - 12 AND NULL
----

query I rowsort
SELECT ALL + ( col1 ) + + ( + + col0 ) AS col2 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + col0 + + - ( col0 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2792
SELECT CAST( NULL AS DECIMAL ) * + - CAST( NULL AS SIGNED ) * + + col0 * 9 * + 56 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT CAST ( NULL AS REAL ) * + - CAST ( NULL AS INTEGER ) * + + col0 * 9 * + 56 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT CAST( + 40 AS SIGNED ) * 16 * + col2 AS col1 FROM tab1
----
37760
43520
61440

skipif mysql # not compatible
query I rowsort label-2793
SELECT CAST ( + 40 AS INTEGER ) * 16 * + col2 AS col1 FROM tab1
----
37760
43520
61440

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 NOT IN ( col2 + - col1, - col1, - col2 * + 63 * + 35 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT MIN( - - col0 ) * - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
414

skipif mysql # not compatible
query I rowsort label-2795
SELECT MIN ( - - col0 ) * - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
414

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT + col0 DIV - + 68 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT + col0 / - + 68 FROM tab1
----
-1
-1
0

query II rowsort
SELECT col1 AS col0, 49 FROM tab2
----
51
49
67
49
77
49

query I rowsort
SELECT DISTINCT - + col1 + + 2 FROM tab1 AS cor0
----
-12
-3
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT DISTINCT 47 AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
47
3

skipif mysql # not compatible
query II rowsort label-2799
SELECT DISTINCT 47 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
47
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT DISTINCT + ( - CAST( CAST( 65 AS SIGNED ) AS SIGNED ) ) + - 96 + + MIN( + - col0 ) FROM tab2 AS cor0
----
-236

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT + ( - CAST ( CAST ( 65 AS INTEGER ) AS INTEGER ) ) + - 96 + + MIN ( + - col0 ) FROM tab2 AS cor0
----
-236

query I rowsort
SELECT ALL 99 - - 20 + 71 * - col2 FROM tab0 AS cor0
----
-3218
-591
-6910

query I rowsort
SELECT DISTINCT - col1 * + - col2 + col2 AS col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT + 91 + + col0 * ( + - col1 ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab1 cor0
----
14

query I rowsort
SELECT ALL col1 * - 73 * - - col1 AS col0 FROM tab2 AS cor0
----
-189873
-327697
-432817

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT - + MAX( col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT - + MAX ( col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT DISTINCT ( + 59 ) * + + col1 AS col0 FROM tab2 WHERE + CAST( 71 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT ( + 59 ) * + + col1 AS col0 FROM tab2 WHERE + CAST ( 71 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2808
SELECT COUNT( * ) DIV 24 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT COUNT ( * ) / 24 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL MAX( ALL - col0 ) * - - MIN( col0 ) AS col0 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL MAX ( ALL - col0 ) * - - MIN ( col0 ) AS col0 FROM tab0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + ( col2 ) + + + col0 <> + col1
----
-3

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + ( col2 ) + + + col0 <> + col1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2811
SELECT ALL 79 DIV col1 * + - col2 AS col1, + 9 AS col0 FROM tab2
----
-23
9
-40
9
-58
9

skipif mysql # not compatible
query II rowsort label-2811
SELECT ALL 79 / col1 * + - col2 AS col1, + 9 AS col0 FROM tab2
----
-23
9
-40
9
-58
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 76 * - 72 * + - col1 + - 95 > - + ( + + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT ALL + 50 DIV + + col1 * - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL + 50 / + + col1 * - + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 64 * + + 42 FROM tab1 AS cor0
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL - + 76 * - COUNT( * ) FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - + 76 * - COUNT ( * ) FROM tab0 AS cor0
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2816
SELECT CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL - 36 AS col0, + 68 FROM tab1 AS cor0
----
-36
68
-36
68
-36
68

query II rowsort
SELECT DISTINCT + col1 + col0, + col0 * + + col2 + + - 37 AS col2 FROM tab1 AS cor0
----
138
6151
65
4859
90
4978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT DISTINCT CAST( + - CAST( + - col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT CAST ( + - CAST ( + - col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT + 70 DIV col2 + 42 col1 FROM tab1 AS cor0
----
42
43
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2820
SELECT + 70 / col2 + 42 col1 FROM tab1 AS cor0
----
42
43
43

query I rowsort
SELECT 32 AS col1 FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT col2 + + 10 AS col1 FROM tab2 AS cor0
----
33
50
68

query I rowsort
SELECT - + 14 + col2 - + - col2 FROM tab0 AS cor0
----
184
6
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> - col0 + + - 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT DISTINCT col0 DIV - 43 AS col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT col0 / - 43 AS col2 FROM tab0
----
-2
0

query I rowsort
SELECT col1 + + - 98 * + col1 AS col1 FROM tab0
----
-2037
-7857
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN 99 * - - 22 * + - col1 + - - ( col0 ) - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + - 46 AS col2 FROM tab0 cor0
----
-46

query I rowsort
SELECT DISTINCT + 5 * + - col0 + + col2 FROM tab1 AS cor0
----
-159
-366
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + SUM( DISTINCT 1 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2830
SELECT + SUM ( DISTINCT 1 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE - col0 < + + col1 + - col1 / - col2
----
3

skipif mysql # not compatible
query I rowsort label-2831
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE - col0 < + + col1 + - col1 / - col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT - COUNT( * ) + + 65 col2 FROM tab2
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2832
SELECT DISTINCT - COUNT ( * ) + + 65 col2 FROM tab2
----
62

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND - col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - 32 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL + MAX( + + col2 ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + MAX ( + + col2 ) AS col1 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT - MAX( DISTINCT - - col2 ) - COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) - COUNT ( * ) FROM tab1 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT - col0 DIV 85 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT - col0 / 85 AS col2 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT - 66 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 66 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-13
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2839
SELECT * FROM tab2 cor0 WHERE NOT col2 * col2 BETWEEN - 42 AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2839
SELECT * FROM tab2 cor0 WHERE NOT col2 * col2 BETWEEN - 42 AND + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL MIN( + 18 ) AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL MIN ( + 18 ) AS col1 FROM tab1
----
18

query I rowsort
SELECT + ( - 52 ) * 81 FROM tab1
----
-4212
-4212
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - MAX( DISTINCT col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2842
SELECT - MAX ( DISTINCT col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2843
SELECT ALL ( - CAST( col0 AS SIGNED ) ) DIV - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL ( - CAST ( col0 AS INTEGER ) ) / - col2 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - col0 + + col1 col2 FROM tab0
----
-3459
-3879
-519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT DISTINCT ( col1 ) / col2 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT ( col1 ) / col2 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT + 86 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT + 86 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2847
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED ) * + col1 - - col2
----

skipif mysql # not compatible
query III rowsort label-2847
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER ) * + col1 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT + CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2848
SELECT + CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NULL ) > - col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2850
SELECT + 35 * col1 * + CAST( NULL AS DECIMAL ) / CAST( + 27 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT + 35 * col1 * + CAST ( NULL AS REAL ) / CAST ( + 27 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL - 16 + - COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL - 16 + - COUNT ( * ) FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2852
SELECT DISTINCT 49 AS col2, + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
49
3

skipif mysql # not compatible
query II rowsort label-2852
SELECT DISTINCT 49 AS col2, + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
49
3

query I rowsort
SELECT DISTINCT + ( - + 68 ) AS col0 FROM tab1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2854
SELECT CAST( NULL AS DECIMAL ) * + + ( - MAX( + 88 ) ) * + ( 67 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT CAST ( NULL AS REAL ) * + + ( - MAX ( + 88 ) ) * + ( 67 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 + - col1 col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 34 + - 86 AS col0 FROM tab1
----
-120
-120
-120

query I rowsort
SELECT + 59 * 20 + 0 AS col1 FROM tab0
----
1180
1180
1180

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col1 * + 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT 49 + - COUNT( * ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT 49 + - COUNT ( * ) AS col0 FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT - MIN( + - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - MIN ( + - col0 ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT - 17 * - col1 * col1 + + CAST( - col2 AS SIGNED ) FROM tab0
----
-82
111490
7487

skipif mysql # not compatible
query I rowsort label-2861
SELECT - 17 * - col1 * col1 + + CAST ( - col2 AS INTEGER ) FROM tab0
----
-82
111490
7487

query II rowsort
SELECT ALL - 14 AS col0, - col0 * + col1 + + - col1 FROM tab0 AS cor0
----
-14
-1296
-14
-1848
-14
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL MAX( col0 ) - - 98 AS col1 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL MAX ( col0 ) - - 98 AS col1 FROM tab1
----
189

query I rowsort
SELECT - 82 - ( + + col1 ) FROM tab0
----
-103
-163
-83

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0 WHERE NOT ( - + col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 + - - col2 AND - 97
----

query I rowsort
SELECT ALL - 38 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT + SUM( DISTINCT - - col0 ) * COUNT( * ) * + + 71 * - ( - 34 ) - - - COUNT( + col1 ) FROM tab0
----
1441155

skipif mysql # not compatible
query I rowsort label-2869
SELECT + SUM ( DISTINCT - - col0 ) * COUNT ( * ) * + + 71 * - ( - 34 ) - - - COUNT ( + col1 ) FROM tab0
----
1441155

query I rowsort
SELECT + 28 FROM tab2 WHERE NOT NULL < col0
----

query II rowsort
SELECT DISTINCT + + col0, ( - ( + - col0 ) ) FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2872
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + col1 * 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2872
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + col1 * 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ( - + SUM( DISTINCT + + ( - + col0 ) ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2873
SELECT ( - + SUM ( DISTINCT + + ( - + col0 ) ) ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL - 96 AS col2 FROM tab1 WHERE NOT - 77 NOT IN ( - + col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + ( col0 ) AND 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 42 + + - 72 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT - 77 * col0 + ( + col0 ) DIV + + col2 col0 FROM tab0 cor0
----
-1155
-6691
-7469

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2878
SELECT - 77 * col0 + ( + col0 ) / + + col2 col0 FROM tab0 cor0
----
-1155
-6691
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT ALL + - col1 * - CAST( NULL AS SIGNED ) - + col2 * + + 10 + + + 38 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + - col1 * - CAST ( NULL AS INTEGER ) - + col2 * + + 10 + + + 38 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 FROM tab2 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + - col2 + - + ( col0 ) FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT - col0 * - - col0 * + - col1 + + col1 + 51 * + - col0 * 79 + + ( 16 ) - + col1 DIV + col0 * - - col0 DIV + + 45 FROM tab2
----
-77352
57628
74783

skipif mysql # not compatible
query I rowsort label-2882
SELECT - col0 * - - col0 * + - col1 + + col1 + 51 * + - col0 * 79 + + ( 16 ) - + col1 / + col0 * - - col0 / + + 45 FROM tab2
----
-77352
57628
74783

query I rowsort
SELECT ALL + 17 + col0 AS col2 FROM tab0
----
104
114
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + 87 - - + ( col1 ) * + col1 col1, - col2 AS col0 FROM tab2
----
2734
-23
4651
-58
6080
-40

query I rowsort
SELECT DISTINCT + col2 - - 52 FROM tab1
----
111
120
148

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL - COUNT( * ) * - 23 AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - COUNT ( * ) * - 23 AS col2 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT DISTINCT 48 + + CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
115
125
99

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT 48 + + CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
115
125
99

query II rowsort
SELECT + col2 AS col2, col2 / + col1 + + + 99 * + 28 / - col1 FROM tab0 WHERE col0 + col0 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 8 col1 FROM tab2
----
15
32
50

query II rowsort
SELECT ALL 61, col0 FROM tab1
----
61
51
61
85
61
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2892
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - - MIN( DISTINCT 77 ) FROM tab1 cor0 WHERE NOT + ( col0 ) / + 97 * + + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT - - MIN ( DISTINCT 77 ) FROM tab1 cor0 WHERE NOT + ( col0 ) / + 97 * + + col1 <> NULL
----
NULL

query II rowsort
SELECT - 19 AS col2, - col1 + + col2 FROM tab2 AS cor0
----
-19
-28
-19
-37
-19
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT ALL CAST( NULL AS SIGNED ) + + + 44 FROM tab1 cor0 WHERE NOT NULL = - col1
----

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL CAST ( NULL AS INTEGER ) + + + 44 FROM tab1 cor0 WHERE NOT NULL = - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 15 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL COUNT( 27 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL COUNT ( 27 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2898
SELECT DISTINCT - + col0 + + - 6 FROM tab1 WHERE NOT + - col0 BETWEEN + CAST( - + 39 AS DECIMAL ) AND 25
----
-57
-91
-97

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT - + col0 + + - 6 FROM tab1 WHERE NOT + - col0 BETWEEN + CAST ( - + 39 AS REAL ) AND 25
----
-57
-91
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT 30 * + 90 FROM tab1
----
2700
2700
2700

query II rowsort
SELECT ( - 9 ), + col1 AS col0 FROM tab0
----
-9
1
-9
21
-9
81

query II rowsort
SELECT ( - + 99 ) AS col1, col2 * + col1 FROM tab0 AS cor0
----
-99
210
-99
3807
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT 58 + - COUNT( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT 58 + - COUNT ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT + + 6 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + col2 - - 59 * + col2 IS NULL
----
6
6
6

query I rowsort
SELECT ALL + col2 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT DISTINCT - - 43 * + col2 AS col2, + col0 FROM tab2 AS cor0
----
1720
64
2494
75
989
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - ( + COUNT( * ) ) + - MAX( DISTINCT col2 ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2907
SELECT - ( + COUNT ( * ) ) + - MAX ( DISTINCT col2 ) FROM tab2
----
-61

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - col1 ) BETWEEN NULL AND + 21
----

query I rowsort
SELECT ALL - col0 * + ( + - col2 ) AS col2 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT - col1 * - 51 * - - 46 * + 9 AS col0, col1 * - col0 AS col2 FROM tab2 AS cor0
----
1076814
-2346
1414638
-5025
1625778
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL + 77 + + + COUNT( * ) FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + 77 + + + COUNT ( * ) FROM tab0 cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT ALL - ( - 44 ) + + CAST( NULL AS SIGNED ) * - 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - ( - 44 ) + + CAST ( NULL AS INTEGER ) * - 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT ( + - 11 ) DIV + 25 - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2913
SELECT ( + - 11 ) / + 25 - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT COUNT( * ) - 12 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2914
SELECT COUNT ( * ) - 12 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT - 57 * - col0 + - - CAST( col0 AS SIGNED ) * + col2 FROM tab1
----
11375
7803
9860

skipif mysql # not compatible
query I rowsort label-2915
SELECT - 57 * - col0 + - - CAST ( col0 AS INTEGER ) * + col2 FROM tab1
----
11375
7803
9860

query I rowsort
SELECT ( ( + 35 ) ) * - col2 + - 22 * col2 * - - 55 FROM tab0
----
-123255
-12450
-58515

query I rowsort
SELECT + col0 + 42 * + + ( + + 52 ) FROM tab0
----
2199
2271
2281

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT + SUM( - col0 ) - + 93 FROM tab2
----
-278

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT + SUM ( - col0 ) - + 93 FROM tab2
----
-278

query I rowsort
SELECT col0 + col1 * col1 AS col0 FROM tab0
----
528
6576
98

query I rowsort
SELECT - 42 + - col0 AS col1 FROM tab1
----
-127
-133
-93

query I rowsort
SELECT DISTINCT 69 * - - col0 - + col0 AS col1 FROM tab2
----
3128
4352
5100

query II rowsort
SELECT col2, col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2923
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2923
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT - MIN( ALL + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT - MIN ( ALL + col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT ALL + COUNT( * ) DIV - 32 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + COUNT ( * ) / - 32 FROM tab0 cor0
----
0

query II rowsort
SELECT DISTINCT + col2, + col1 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + 48 AND - col2 * - col1 * + 26 * - - col1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT + COUNT( DISTINCT + ( + + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + COUNT ( DISTINCT + ( + + col1 ) ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2928
SELECT ALL col0, + col2 DIV - 37 AS col2 FROM tab0
----
15
-1
87
0
97
-2

skipif mysql # not compatible
query II rowsort label-2928
SELECT ALL col0, + col2 / - 37 AS col2 FROM tab0
----
15
-1
87
0
97
-2

query I rowsort
SELECT ALL + 54 * 4 FROM tab0
----
216
216
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col2, - col0 col1 FROM tab2
----
1173
-46
3080
-64
3886
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col2 FROM tab1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT MIN( DISTINCT 29 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT MIN ( DISTINCT 29 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT col0 * + CAST( col0 AS SIGNED ) col1 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2933
SELECT col0 * + CAST ( col0 AS INTEGER ) col1 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT ALL * FROM tab0 WHERE + 23 * - - col0 + col2 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 69 * + + 89 FROM tab0
----
6141
6141
6141

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT + 37 * + - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 37 * + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 * col1 / col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 * col1 / col2 < NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + - 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - 77 + - - MIN( - + 96 ) AS col2 FROM tab1 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-2940
SELECT - 77 + - - MIN ( - + 96 ) AS col2 FROM tab1 AS cor0
----
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 + - 60 col0 FROM tab2 AS cor0
----
32
68
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 87 + - col1 + - 38 + - 19 col1 FROM tab0 AS cor0
----
-1443
-7647
-8497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT DISTINCT - col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL + - COUNT( * ) + + + ( + - 50 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + - COUNT ( * ) + + + ( + - 50 ) FROM tab0 AS cor0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * 71, + 87 col1 FROM tab0 AS cor0
----
1065
87
6177
87
6887
87

query I rowsort
SELECT DISTINCT - 53 FROM tab0 AS cor0 WHERE + 52 IS NULL
----

query I rowsort
SELECT DISTINCT - ( 99 ) FROM tab1 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT DISTINCT + 21 + - + ( + CAST( NULL AS SIGNED ) ) - - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT + 21 + - + ( + CAST ( NULL AS INTEGER ) ) - - col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - ( + + ( col2 ) ) - - - 23 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT + - COUNT( DISTINCT 93 ) FROM tab0 WHERE - - 69 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2950
SELECT + - COUNT ( DISTINCT 93 ) FROM tab0 WHERE - - 69 IS NOT NULL
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT ALL col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT + - CAST( - col0 AS SIGNED ) * - + col2 * col0 FROM tab1 cor0
----
-249696
-426275
-563108

skipif mysql # not compatible
query I rowsort label-2952
SELECT + - CAST ( - col0 AS INTEGER ) * - + col2 * col0 FROM tab1 cor0
----
-249696
-426275
-563108

query II rowsort
SELECT ALL + - col2, col0 * 57 + + 70 AS col0 FROM tab0 AS cor0
----
-10
5029
-47
925
-99
5599

query I rowsort
SELECT - - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 WHERE + 47 >= + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( 85 ) BETWEEN ( NULL ) AND - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT - ( MAX( ALL - col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT - ( MAX ( ALL - col1 ) ) AS col0 FROM tab0
----
1

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL < ( + ( - 53 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT COUNT( * ) + 25 * + 75 AS col0 FROM tab0 WHERE ( - ( 54 ) ) NOT BETWEEN 43 AND ( NULL )
----
1878

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT COUNT ( * ) + 25 * + 75 AS col0 FROM tab0 WHERE ( - ( 54 ) ) NOT BETWEEN 43 AND ( NULL )
----
1878

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 68 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL - CAST( NULL AS SIGNED ) + MAX( col2 ) / - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - CAST ( NULL AS INTEGER ) + MAX ( col2 ) / - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT DISTINCT + MIN( col0 ) + COUNT( - 41 ) col1 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2962
SELECT DISTINCT + MIN ( col0 ) + COUNT ( - 41 ) col1 FROM tab1
----
54

query I rowsort
SELECT ALL 12 + col2 FROM tab2 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT + col0 * - col2 - col1 AS col0 FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT DISTINCT + col2 * col2 + col0 AS col0 FROM tab1
----
3566
4715
9267

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * 87 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 30 FROM tab0 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT 91 FROM tab2 WHERE ( 8 ) * - 20 IS NOT NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL 58 + - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL > NULL
----
58

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL 58 + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL > NULL
----
58

query I rowsort
SELECT + 23 + + 78 FROM tab0 AS cor0
----
101
101
101

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL col1 DIV - col1 + 84 FROM tab1 cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL col1 / - col1 + 84 FROM tab1 cor0
----
83
83
83

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 6 - + col1 < NULL
----

query I rowsort
SELECT ALL 53 * col1 + col2 FROM tab2
----
2726
3609
4121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT + ( 71 ) DIV COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2976
SELECT + ( 71 ) / COUNT ( * ) FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT SUM( - col2 ) col2 FROM tab2 cor0 WHERE NOT NULL > col1 + 8 * - 93
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2978
SELECT DISTINCT SUM ( - col2 ) col2 FROM tab2 cor0 WHERE NOT NULL > col1 + 8 * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + COUNT( * ) + + 78 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + COUNT ( * ) + + 78 FROM tab1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - + 18 col2 FROM tab0
----
-3
-63
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT + COUNT( * ) * ( + COUNT( * ) ) FROM tab1 WHERE NOT col2 * col1 NOT BETWEEN ( - 15 ) AND 0
----
0

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab1 WHERE NOT col2 * col1 NOT BETWEEN ( - 15 ) AND 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2982
SELECT col1 + col2 FROM tab1 WHERE col1 / CAST( col1 AS DECIMAL ) NOT IN ( col2 + 91 / + col0 )
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2982
SELECT col1 + col2 FROM tab1 WHERE col1 / CAST ( col1 AS REAL ) NOT IN ( col2 + 91 / + col0 )
----
110
115
64

query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + ( - MIN( - 90 ) ) + + 64 AS col0 FROM tab0
----
154

skipif mysql # not compatible
query I rowsort label-2984
SELECT + ( - MIN ( - 90 ) ) + + 64 AS col0 FROM tab0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ( COUNT( * ) ) + COUNT( ALL - col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2985
SELECT ( COUNT ( * ) ) + COUNT ( ALL - col1 ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - 17 * - col2 col2 FROM tab0
----
1684
191
880

query I rowsort
SELECT + 27 + col1 * + 16 AS col2 FROM tab0
----
1323
363
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - COUNT( * ) * 59 AS col2 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - COUNT ( * ) * 59 AS col2 FROM tab0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL > CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + col0
----

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL > CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + 79 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 1 col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL + col2 * col2 * col2 AS col2 FROM tab1 cor0
----
205379
314432
884736

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT DISTINCT 81 DIV - 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT 81 / - 98 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT - + MIN( ALL + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT - + MIN ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 65 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
65

query I rowsort
SELECT ALL + - col2 * - - 67 * - col0 FROM tab0 AS cor0
----
47235
58290
643401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 * 56 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 / + col0 col1 FROM tab2 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT ALL - + 4 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-44
-62

query II rowsort
SELECT ALL + 72, - 14 AS col2 FROM tab2 AS cor0
----
72
-14
72
-14
72
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 12 > NULL
----

query I rowsort
SELECT DISTINCT col0 * ( col1 ) + + 59 * + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
156
3066
5994

query I rowsort
SELECT DISTINCT 62 - col1 AS col1 FROM tab0 cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT col2 DIV col1 * - + 71 + - 89 AS col2 FROM tab0 AS cor0
----
-7118
-89

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT col2 / col1 * - + 71 + - 89 AS col2 FROM tab0 AS cor0
----
-7118
-89

query I rowsort
SELECT col2 + + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3007
SELECT * FROM tab1 WHERE NOT - 52 = ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3007
SELECT * FROM tab1 WHERE NOT - 52 = ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT - col2 + + col0 DIV + col2 AS col1 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-3008
SELECT - col2 + + col0 / + col2 AS col1 FROM tab2
----
-21
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT COUNT( * ) + + SUM( - col0 ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-3009
SELECT COUNT ( * ) + + SUM ( - col0 ) FROM tab2
----
-182

query I rowsort
SELECT ALL 71 FROM tab2 WHERE NOT ( - 85 * + 70 + 0 ) IS NULL
----
71
71
71

query III rowsort
SELECT * FROM tab1 WHERE + - 54 / col1 * ( + 41 ) IN ( ( + 30 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT - COUNT( * ) * - + COUNT( * ) + + + 79 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-3012
SELECT - COUNT ( * ) * - + COUNT ( * ) + + + 79 FROM tab2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3013
SELECT * FROM tab2 WHERE - + col0 * CAST( col0 AS SIGNED ) + - col2 * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3013
SELECT * FROM tab2 WHERE - + col0 * CAST ( col0 AS INTEGER ) + - col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL ( ( - 0 ) ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + ( - 79 ) FROM tab2
----
-1817
-3160
-4582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT ALL - col0 / 71 * + + col1 - - - 40 + col2 + + 53 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - col0 / 71 * + + col1 - - - 40 + col2 + + 53 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT - MIN( DISTINCT - 46 ) AS col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - MIN ( DISTINCT - 46 ) AS col2 FROM tab1 AS cor0
----
46

query II rowsort
SELECT + col0 * - - col1 AS col2, col2 * - 58 AS col2 FROM tab0 cor0
----
1215
-2726
1827
-580
97
-5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT ALL CAST( NULL AS SIGNED ) * + + 68 * + + 42 * col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL CAST ( NULL AS INTEGER ) * + + 68 * + + 42 * col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + MIN( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL = - 50 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT + MIN ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL = - 50 * - 64
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 + - - 10 + + col0 * 10 * - col0 + col0 FROM tab2 AS cor0
----
-21633
-42486
-59529

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + 87 - - + COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 87 - - + COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 + + col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT col2 + - 98 FROM tab2 cor0
----
-40
-58
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3025
SELECT 16 DIV + COUNT( * ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3025
SELECT 16 / + COUNT ( * ) FROM tab1 cor0
----
5

query II rowsort
SELECT ALL - + col0 * + col2 + + + 31, col1 FROM tab0 AS cor0
----
-674
81
-839
21
-9572
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3027
SELECT + col0 DIV - col1 col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3027
SELECT + col0 / - col1 col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 86 * + + col2 FROM tab1 AS cor0
----
-5074
-5848
-8256

query I rowsort
SELECT - 28 * + col1 FROM tab0 AS cor0
----
-2268
-28
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT - + COUNT( * ) * + + 86 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-3030
SELECT - + COUNT ( * ) * + + 86 FROM tab1 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 73 >= - - col1
----
-1

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 73 >= - - col1
----
-1

query I rowsort
SELECT - col2 * + - 50 AS col0 FROM tab0 AS cor0
----
2350
4950
500

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col1 ) IN ( 31 + - - 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + - ( + ( + col1 ) ) = col2 * col0 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( + col2 ) + 16 + 55 + 5 * + 97 * - 17 ) BETWEEN - col2 AND - col1 * + col0 - + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL - col2 + 13 AS col1 FROM tab0 cor0 WHERE ( - col1 ) * - CAST( NULL AS SIGNED ) * 32 NOT BETWEEN - - col0 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - col2 + 13 AS col1 FROM tab0 cor0 WHERE ( - col1 ) * - CAST ( NULL AS INTEGER ) * 32 NOT BETWEEN - - col0 AND ( col0 )
----

query II rowsort
SELECT - + 50 AS col1, + col0 FROM tab2 AS cor0
----
-50
46
-50
64
-50
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT - MAX( ALL + 34 ) AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - MAX ( ALL + 34 ) AS col2 FROM tab2 AS cor0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 53 col1 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT 21 * 49 + + 29 FROM tab0 AS cor0
----
1058
1058
1058

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 31 + - - col0 + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col2 * - 16 * - col2 * - - 44 - - col2 ) < ( 61 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL + MAX( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + MAX ( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT DISTINCT SUM( - 73 ) col0, ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( + + 23 ) AND NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3045
SELECT DISTINCT SUM ( - 73 ) col0, ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( + + 23 ) AND NULL
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3046
SELECT ALL SUM( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 WHERE ( NOT - ( - 77 ) <= + 33 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL SUM ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 WHERE ( NOT - ( - 77 ) <= + 33 * - col0 )
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT + SUM( - col2 ) + - + 5 FROM tab0 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT + SUM ( - col2 ) + - + 5 FROM tab0 AS cor0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ( + - COUNT( * ) ) col1 FROM tab2 AS cor0 WHERE NOT - col0 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3049
SELECT ( + - COUNT ( * ) ) col1 FROM tab2 AS cor0 WHERE NOT - col0 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT 0 + - COUNT( * ) DIV COUNT( * ) + + + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT 0 + - COUNT ( * ) / COUNT ( * ) + + + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 - + + col2 + - 67 ) NOT IN ( + col0 * col2 * - + 74 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3053
SELECT + CAST( NULL AS DECIMAL ) AS col1, - col2 + col1 AS col0 FROM tab2
----
NULL
28
NULL
37
NULL
9

skipif mysql # not compatible
query II rowsort label-3053
SELECT + CAST ( NULL AS REAL ) AS col1, - col2 + col1 AS col0 FROM tab2
----
NULL
28
NULL
37
NULL
9

query II rowsort
SELECT col2 * 51 + - - col2 AS col2, col2 AS col2 FROM tab0
----
2444
47
5148
99
520
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3055
SELECT ALL COUNT( * ) DIV + 65 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL COUNT ( * ) / + 65 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + + 91 + - col0 AS col2 FROM tab2 AS cor0
----
67
68
74

query I rowsort
SELECT ALL - 29 * + col2 - - 42 AS col0 FROM tab1
----
-1669
-1930
-2742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - 87 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - 87 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - + - 4 FROM tab1 AS cor0
----
-55
-64
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab0 AS cor0 WHERE NOT 79 IS NULL
----
53
53
53

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT ALL - col1 DIV + 61, col0 AS col2 FROM tab2 AS cor0
----
-1
64
-1
75
0
46

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL - col1 / + 61, col0 AS col2 FROM tab2 AS cor0
----
-1
64
-1
75
0
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT DISTINCT + 84 DIV col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + 84 / col0 FROM tab2 cor0
----
1

query I rowsort
SELECT - ( - col1 ) * - 25 FROM tab2 cor0
----
-1275
-1675
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT + MIN( + + 13 ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3064
SELECT + MIN ( + + 13 ) AS col2 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT - COUNT( + col0 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3065
SELECT DISTINCT - COUNT ( + col0 ) col2 FROM tab0
----
-3

query I rowsort
SELECT 80 * - col0 FROM tab1
----
-4080
-6800
-7280

query II rowsort
SELECT - col2, 15 AS col0 FROM tab0
----
-10
15
-47
15
-99
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT DISTINCT col2 + - 71 DIV + 11 AS col2 FROM tab1 WHERE + col2 <> 4 + + col0
----
53
62
90

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT col2 + - 71 / + 11 AS col2 FROM tab1 WHERE + col2 <> 4 + + col0
----
53
62
90

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * - 87 <= - col1 + - + 73 - col1 * 23 * + + 19 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( ALL - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( ALL - col0 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col0 AS col2, + col1 * col0 FROM tab0
----
-15
1215
-87
1827
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL - COUNT( col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL - COUNT ( col1 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( col0 ) - - - 64 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT + - ( - COUNT( * ) ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3074
SELECT + - ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT + + AVG ( ALL - - CAST( NULL AS SIGNED ) ) + 62 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3075
SELECT + + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) + 62 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - - col2 * col0 + + + col1 + 3 FROM tab0 AS cor0
----
-10491
-75666
-931487

query I rowsort
SELECT DISTINCT - 41 + + - col1 AS col2 FROM tab2
----
-108
-118
-92

query II rowsort
SELECT - ( - col0 ), col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT DISTINCT + COUNT( * ), 16 AS col1 FROM tab1, tab0 AS cor0
----
9
16

skipif mysql # not compatible
query II rowsort label-3079
SELECT DISTINCT + COUNT ( * ), 16 AS col1 FROM tab1, tab0 AS cor0
----
9
16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + - 46 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 + - + col0, col2 FROM tab0 AS cor0
----
-66
10
-96
99
66
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT - 8 * + col2 - + + ( + col2 ) DIV + col0 FROM tab2 AS cor0
----
-184
-320
-464

skipif mysql # not compatible
query I rowsort label-3082
SELECT - 8 * + col2 - + + ( + col2 ) / + col0 FROM tab2 AS cor0
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + 33 - - - 88 * - + COUNT( - 23 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3083
SELECT + 33 - - - 88 * - + COUNT ( - 23 ) FROM tab0 AS cor0
----
297

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3084
SELECT - + ( + CAST( NULL AS DECIMAL ) ) - + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - + ( + CAST ( NULL AS REAL ) ) - + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL + MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT ALL + col1 + - col1 AS col0, col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + + 23 col1 FROM tab1
----
36
45
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 21 ) col2 FROM tab2 AS cor0
----
-21

query II rowsort
SELECT ALL - 74, col1 AS col0 FROM tab1 AS cor0
----
-74
14
-74
47
-74
5

query I rowsort
SELECT + - col2 * + - 22 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
-15463
-19130
-211167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT DISTINCT + 16 / - ( ( - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + 16 / - ( ( - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT + ( - + ( - COUNT( ALL col2 ) ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT + ( - + ( - COUNT ( ALL col2 ) ) ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT + + col1 * col2 * col2 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT ALL col1 * 24 * + 36 * + - CAST( + col2 AS SIGNED ) col0 FROM tab0
----
-181440
-3289248
-85536

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3094
SELECT ALL col1 * 24 * + 36 * + - CAST ( + col2 AS INTEGER ) col0 FROM tab0
----
-181440
-3289248
-85536

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 < - ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 3 >= NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT col2 * + col0 * + - col0 <= NULL
----

query I rowsort
SELECT ALL - col1 * - - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ( - 37 ) AS col2 FROM tab1
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT ALL - CAST( - 31 AS SIGNED ) FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - CAST ( - 31 AS INTEGER ) FROM tab2 AS cor0
----
31
31
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + col2 * - + col1, - 84, - col2, - + col2 + - 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( ( NOT ( + - 4 ) IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT - 71 + COUNT( - col0 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-3103
SELECT - 71 + COUNT ( - col0 ) FROM tab1
----
-68

query I rowsort
SELECT + 37 * - + 73 FROM tab1
----
-2701
-2701
-2701

query I rowsort
SELECT ALL + 31 + - col2 AS col2 FROM tab0 AS cor0
----
-16
-68
21

query II rowsort
SELECT - - col0 AS col2, col2 + - + col0 AS col0 FROM tab2 cor0
----
46
-23
64
-24
75
-17

query I rowsort
SELECT ALL - - 85 AS col1 FROM tab0 cor0
----
85
85
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col0 ) * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT DISTINCT + CAST( - - ( - 57 ) AS SIGNED ) + 81 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + CAST ( - - ( - 57 ) AS INTEGER ) + 81 AS col2 FROM tab0
----
24

query I rowsort
SELECT col2 + + 71 - + col2 FROM tab1
----
71
71
71

query I rowsort
SELECT DISTINCT - col1 * + ( + - 76 ) + + - col2 AS col2 FROM tab2
----
3853
5034
5812

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3112
SELECT col0 + - + ( - CAST( + - 32 AS SIGNED ) ), col2 FROM tab1
----
19
96
53
59
59
68

skipif mysql # not compatible
query II rowsort label-3112
SELECT col0 + - + ( - CAST ( + - 32 AS INTEGER ) ), col2 FROM tab1
----
19
96
53
59
59
68

query I rowsort
SELECT + col0 + 58 AS col2 FROM tab1
----
109
143
149

query I rowsort
SELECT DISTINCT - 79 - - 10 AS col2 FROM tab0
----
-69

query I rowsort
SELECT + + 2 AS col2 FROM tab2 WHERE + 64 - + col0 IS NOT NULL
----
2
2
2

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, col0, - 85, - + col1 )
----

query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab0 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL - - 90 + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
275

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - - 90 + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3119
SELECT ALL + 23, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
NULL
23
NULL
23
NULL

skipif mysql # not compatible
query II rowsort label-3119
SELECT ALL + 23, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
NULL
23
NULL
23
NULL

query I rowsort
SELECT DISTINCT - 96 - + - col1 - - + col2 AS col1 FROM tab1
----
-32
14
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT ALL col0 * - col0 DIV col0 * 14 FROM tab1
----
-1190
-1274
-714

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL col0 * - col0 / col0 * 14 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT + 55 + + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
113
78
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - + - col1 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT + SUM( DISTINCT col0 ) / + MAX( ALL + 33 ) + + + COUNT( * ) * + 57 * + 85 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT + SUM ( DISTINCT col0 ) / + MAX ( ALL + 33 ) + + + COUNT ( * ) * + 57 * + 85 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 / + - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 / + - col0 = NULL
----
0

query I rowsort
SELECT + 37 * + 25 * 19 FROM tab1 AS cor0
----
17575
17575
17575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * col0 col1 FROM tab2
----
3450
4800
5625

query I rowsort
SELECT 3 * + 12 * - - col1 FROM tab2
----
1836
2412
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + COUNT( * ) * + 0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3129
SELECT + COUNT ( * ) * + 0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 80 col1 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3131
SELECT 8, + 9 + - col2 * - - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-3131
SELECT 8, + 9 + - col2 * - - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
8
NULL
8
NULL
8
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( ( + 75 / - col0 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL ( + - COUNT( * ) ) * + + 1 AS col0, + 65 col1 FROM tab1
----
-3
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3133
SELECT ALL ( + - COUNT ( * ) ) * + + 1 AS col0, + 65 col1 FROM tab1
----
-3
65

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * - col0 * - - col1 + + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 27 = NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3136
SELECT + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT + col1 * - - col2 - - - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 53 * - 98 + + 86, 1 * + col0 AS col2 FROM tab2 AS cor0
----
-5108
46
-5108
64
-5108
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT MAX( DISTINCT ( 88 ) ) + - COUNT( * ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT MAX ( DISTINCT ( 88 ) ) + - COUNT ( * ) FROM tab0
----
85

query I rowsort
SELECT 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + 34 + - 35 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - col1 / - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL SUM( + col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL SUM ( + col0 ) AS col1 FROM tab2 cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col2 NOT IN ( col1, + col1, col1 )
----

query I rowsort
SELECT + col1 + col2 - - - 58 FROM tab1 AS cor0
----
52
57
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col1 + - col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 66 + - - col1 * - col2 AS col1 FROM tab0 AS cor0
----
-165
-276
-3873

query I rowsort
SELECT - + ( - + col1 ) + - col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + COUNT( + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3149
SELECT + COUNT ( + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL - 1 + - + 18 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + + col0 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - 1 + - + 18 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + + col0 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + 24 AS col1 FROM tab2 AS cor0
----
70
88
99

query I rowsort
SELECT - col2 + - 39 + - + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-183
-186
-198

query II rowsort
SELECT 56 AS col0, col2 + + col0 FROM tab0
----
56
196
56
62
56
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 50 + + - 71 + - + 82 + + col1 * + col0 + - col0 * col1 IS NULL
----

query I rowsort
SELECT ALL + 46 + - + col0 FROM tab1
----
-39
-45
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT COUNT( * ), COUNT( + 18 ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3156
SELECT COUNT ( * ), COUNT ( + 18 ) AS col2 FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + col2 col2 FROM tab0
----
-98
11
34

query III rowsort
SELECT * FROM tab1 WHERE - 28 * + + 81 * - - col0 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT COUNT( * ) * + ( - - 62 ) - + ( 93 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT COUNT ( * ) * + ( - - 62 ) - + ( 93 ) FROM tab2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT col0 col2 FROM tab1 WHERE + col0 - CAST( NULL AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3160
SELECT col0 col2 FROM tab1 WHERE + col0 - CAST ( NULL AS INTEGER ) IS NULL
----
51
85
91

query I rowsort
SELECT ALL col0 * - - col2 - - col0 AS col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT - 74 * - + 33 FROM tab0 AS cor0
----
2442
2442
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - MAX( ALL - - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - MAX ( ALL - - col2 ) FROM tab2
----
-58

query I rowsort
SELECT ALL - 71 AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - - COUNT( * ) col1 FROM tab2 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-3165
SELECT ALL - - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 82 col0, 41 FROM tab1 AS cor0
----
82
41
82
41
82
41

query I rowsort
SELECT col1 * 38 AS col2 FROM tab0 cor0
----
3078
38
798

query I rowsort
SELECT DISTINCT + 61 * ( - col0 ) FROM tab0 AS cor0
----
-5307
-5917
-915

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3169
SELECT + - CAST( NULL AS SIGNED ), 8 DIV - 6 AS col0 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-3169
SELECT + - CAST ( NULL AS INTEGER ), 8 / - 6 AS col0 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT ALL MIN( - col1 ) * + MIN( DISTINCT col0 ) col2, + 5 AS col0 FROM tab0 AS cor0
----
-1215
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3170
SELECT ALL MIN ( - col1 ) * + MIN ( DISTINCT col0 ) col2, + 5 AS col0 FROM tab0 AS cor0
----
-1215
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT - col1 * - col0 * + CAST( NULL AS SIGNED ) + + 29 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT - col1 * - col0 * + CAST ( NULL AS INTEGER ) + + 29 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 50 * - col2 AS col1 FROM tab0 AS cor0
----
-2350
-4950
-500

query I rowsort
SELECT - ( - - col2 ) * + + col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 - - col2 AS col1, + col1 col0 FROM tab2 WHERE NOT 66 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 76 FROM tab0
----
1596
6156
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT 72 * MIN( ALL - + 68 ) FROM tab0
----
-4896

skipif mysql # not compatible
query I rowsort label-3177
SELECT 72 * MIN ( ALL - + 68 ) FROM tab0
----
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT - ( + CAST( NULL AS SIGNED ) ) / AVG ( DISTINCT col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT - ( + CAST ( NULL AS INTEGER ) ) / AVG ( DISTINCT col1 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * 49 col1 FROM tab1
----
1029
1029
1029

onlyif mysql # aggregate syntax: 
query III rowsort label-3180
SELECT MIN( ALL col2 ) AS col2, COUNT( * ) AS col2, + 47 FROM tab0
----
10
3
47

skipif mysql # not compatible
query III rowsort label-3180
SELECT MIN ( ALL col2 ) AS col2, COUNT ( * ) AS col2, + 47 FROM tab0
----
10
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + COUNT( * ) + - 30 AS col1 FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3181
SELECT + COUNT ( * ) + - 30 AS col1 FROM tab0 cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT ALL - + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3183
SELECT DISTINCT + COUNT( * ) AS col2, + 58 * COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
522

skipif mysql # not compatible
query II rowsort label-3183
SELECT DISTINCT + COUNT ( * ) AS col2, + 58 * COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
522

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT + col2 DIV + + 73 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3184
SELECT + col2 / + + 73 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT COUNT( + 64 ) * 50 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-3185
SELECT COUNT ( + 64 ) * 50 FROM tab1
----
150

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 33 BETWEEN NULL AND + + col2
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 * col0 col0 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - col1 <= 32
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - MAX( + 99 ) - - COUNT( ( - 91 ) ) AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3190
SELECT - MAX ( + 99 ) - - COUNT ( ( - 91 ) ) AS col1 FROM tab2 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT DISTINCT - col1 DIV 54 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - col1 / 54 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 25 + + col1 FROM tab0 AS cor0
----
106
26
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 col2 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT - col2 + - col1 * col1 FROM tab2
----
-2624
-4547
-5969

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0 * col0 AS col1, + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL 49 - + + SUM( DISTINCT 34 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL 49 - + + SUM ( DISTINCT 34 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT + 57 * + 63 * - col1 + + col2 AS col0 FROM tab2
----
-183118
-240539
-276467

query I rowsort
SELECT ALL - col2 - - col2 * 78 FROM tab2
----
1771
3080
4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 <> col2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 83 - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col1 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT CAST( NULL AS SIGNED ) * + col2 / col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3204
SELECT CAST ( NULL AS INTEGER ) * + col2 / col2 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3205
SELECT + 69, - COUNT( * ) AS col1 FROM tab0
----
69
-3

skipif mysql # not compatible
query II rowsort label-3205
SELECT + 69, - COUNT ( * ) AS col1 FROM tab0
----
69
-3

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE - 55 BETWEEN NULL AND col1 + - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT - ( MAX( 45 ) ) col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3207
SELECT DISTINCT - ( MAX ( 45 ) ) col2 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT ALL + CAST( 1 AS SIGNED ) + 53 AS col1 FROM tab2 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL + CAST ( 1 AS INTEGER ) + 53 AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT col0 * 76 + - col2 FROM tab1 AS cor0
----
3780
6401
6848

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT ALL col1, + ( col2 ) FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - 83 + + 2 AS col0 FROM tab1
----
-81
-81
-81

query I rowsort
SELECT - col1 + 32 - - col1 * + 70 * + - 98 AS col1 FROM tab2
----
-349879
-459655
-528265

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT + COUNT( * ) * + + COUNT( DISTINCT - + col2 ) col0, ( - COUNT( * ) ) AS col2 FROM tab0 WHERE NOT col1 + 11 < - - col1 * - col1
----
9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3215
SELECT + COUNT ( * ) * + + COUNT ( DISTINCT - + col2 ) col0, ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT col1 + 11 < - - col1 * - col1
----
9
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - col2 ) + + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - ( - 43 ) / - 5 - - col0 AND NULL
----

query I rowsort
SELECT ALL - 1 * + - col2 AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 33 = NULL
----

query II rowsort
SELECT + col2 AS col1, + 95 FROM tab0 AS cor0
----
10
95
47
95
99
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT DISTINCT - COUNT( * ) + + + 51 + COUNT( + + 5 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3221
SELECT DISTINCT - COUNT ( * ) + + + 51 + COUNT ( + + 5 ) col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL 20 + + 41 * + col0 FROM tab0 AS cor0
----
3587
3997
635

query II rowsort
SELECT DISTINCT col2 * + col0 * - + 14 * + 39 - - col1 AS col2, - col0 + col1 AS col0 FROM tab1
----
-2673202
-37
-2738185
-80
-3378601
-44

query II rowsort
SELECT ALL + 41 * - col0, col2 AS col2 FROM tab0
----
-3567
10
-3977
99
-615
47

query I rowsort
SELECT + 58 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3226
SELECT ALL + 21 * COUNT( * ) DIV 26 * ( + COUNT( * ) ) - + 14 AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + 21 * COUNT ( * ) / 26 * ( + COUNT ( * ) ) - + 14 AS col0 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT ALL + CAST( + - CAST( - - col2 AS SIGNED ) AS SIGNED ) * - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + CAST ( + - CAST ( - - col2 AS INTEGER ) AS INTEGER ) * - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT 1 + - + 14 + + col1 * 65 DIV 35 + - col1 * + col2 DIV - col2 AS col2 FROM tab2 cor0
----
132
178
207

skipif mysql # not compatible
query I rowsort label-3228
SELECT 1 + - + 14 + + col1 * 65 / 35 + - col1 * + col2 / - col2 AS col2 FROM tab2 cor0
----
132
178
207

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 74 + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - + col1 * + 14 AS col0, - 7 AS col2 FROM tab1 AS cor0
----
-196
-7
-658
-7
-70
-7

query I rowsort
SELECT DISTINCT 8 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-39
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT DISTINCT col1 DIV + 25 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT col1 / + 25 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT + ( - 6 ) + + ( - 48 ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT MAX( ALL 81 ) + 94 col1 FROM tab1 AS cor0
----
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3234
SELECT DISTINCT MAX ( ALL 81 ) + 94 col1 FROM tab1 AS cor0
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3235
SELECT ALL - SUM( + - col1 ) DIV 29 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - SUM ( + - col1 ) / 29 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 WHERE + - ( + - col2 ) / col1 + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 72 + + - 16 AS col2 FROM tab0
----
56
56
56

query I rowsort
SELECT ALL + 95 * + - 36 FROM tab1
----
-3420
-3420
-3420

query I rowsort
SELECT - 46 * - 67 FROM tab1
----
3082
3082
3082

query II rowsort
SELECT DISTINCT col1 AS col2, 69 + + col0 + - col2 AS col0 FROM tab0
----
1
67
21
146
81
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 30, - 88 col2 FROM tab2 AS cor0
----
30
-88
30
-88
30
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3242
SELECT - + ( + 86 ) * + - COUNT( DISTINCT 23 ) AS col2, 10 * - + 95 FROM tab2 AS cor0
----
86
-950

skipif mysql # not compatible
query II rowsort label-3242
SELECT - + ( + 86 ) * + - COUNT ( DISTINCT 23 ) AS col2, 10 * - + 95 FROM tab2 AS cor0
----
86
-950

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 99, - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 <> - 87 )
----

query II rowsort
SELECT ALL - 93 * + ( - col2 ), 94 AS col2 FROM tab2 AS cor0
----
2139
94
3720
94
5394
94

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( col1 ) > 57
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3247
SELECT 19 DIV - + COUNT( * ) AS col1, COUNT( * ) DIV 63 FROM tab2
----
-6
0

skipif mysql # not compatible
query II rowsort label-3247
SELECT 19 / - + COUNT ( * ) AS col1, COUNT ( * ) / 63 FROM tab2
----
-6
0

query II rowsort
SELECT ALL - 52, col0 - 4 FROM tab0 AS cor0 WHERE 63 * + col2 BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 70 * + 38 AS col1 FROM tab1 cor0
----
-2660
-2660
-2660

query I rowsort
SELECT ALL - - ( + col0 ) + + ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 38 > + 78 + - 84
----
0
0
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + 19 * + - COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-3253
SELECT + 19 * + - COUNT ( * ) FROM tab0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + 85 + COUNT( * ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-3254
SELECT + 85 + COUNT ( * ) AS col1 FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL 64 * - 24 * SUM( DISTINCT + col0 ) AS col2 FROM tab2
----
-284160

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL 64 * - 24 * SUM ( DISTINCT + col0 ) AS col2 FROM tab2
----
-284160

query I rowsort
SELECT ALL - 2 + - col0 AS col2 FROM tab1
----
-53
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT 50 + + MIN( DISTINCT + + 85 ) * + 42 FROM tab0 AS cor0
----
3620

skipif mysql # not compatible
query I rowsort label-3257
SELECT 50 + + MIN ( DISTINCT + + 85 ) * + 42 FROM tab0 AS cor0
----
3620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT DISTINCT CAST( 39 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 91 * + 77 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT CAST ( 39 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 91 * + 77 IS NULL
----
39

query I rowsort
SELECT + col1 + + 50 FROM tab1 AS cor0
----
55
64
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3260
SELECT COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT DISTINCT col0 DIV 27 * - col2 + col0 - + col0 FROM tab1 AS cor0
----
-177
-204
-96

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT col0 / 27 * - col2 + col0 - + col0 FROM tab1 AS cor0
----
-177
-204
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + col2 NOT BETWEEN NULL AND + ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT ALL COUNT( - col1 ) AS col2, 65 AS col1 FROM tab2
----
3
65

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL COUNT ( - col1 ) AS col2, 65 AS col1 FROM tab2
----
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT DISTINCT + 35 * + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
315

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + 35 * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - MAX( + - 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-3267
SELECT - MAX ( + - 5 ) FROM tab2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3268
SELECT * FROM tab1 WHERE NOT NULL > ( - 79 ) OR NOT CAST( + 46 AS SIGNED ) + + col2 BETWEEN NULL AND - 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3268
SELECT * FROM tab1 WHERE NOT NULL > ( - 79 ) OR NOT CAST ( + 46 AS INTEGER ) + + col2 BETWEEN NULL AND - 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 1 * - col1 AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL + COUNT( * ) FROM tab2 WHERE - 6 > col0 * - 30
----
3

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - 6 > col0 * - 30
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3271
SELECT ALL SUM( ALL - col0 ) DIV + + 57 - + 27 DIV - CAST( MIN( - col1 ) AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL SUM ( ALL - col0 ) / + + 57 - + 27 / - CAST ( MIN ( - col1 ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 82 + + 64 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 82 + + 64 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - - 75 AS col2 FROM tab1
----
-3825
-6375
-6825

query II rowsort
SELECT - - 7, 89 + ( - - 47 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 9105a4b230677d8d797eddab2da7f9c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 AS cor0 WHERE ( + col1 ) < NULL
----

query I rowsort
SELECT ALL - col1 + + + 81 - - col1 FROM tab0 AS cor0
----
81
81
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 91 * 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 66 + + col2 AS col0 FROM tab2 AS cor0
----
106
124
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT ALL 29 + COUNT( * ) DIV - MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL 29 + COUNT ( * ) / - MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT + 72 + + + 50 * - col0 AS col2 FROM tab1 AS cor0
----
-2478
-4178
-4478

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT col2 DIV + col2 + - col1 + - - 57 * col0 DIV - 18 FROM tab1 AS cor0
----
-174
-273
-334

skipif mysql # not compatible
query I rowsort label-3282
SELECT col2 / + col2 + - col1 + - - 57 * col0 / - 18 FROM tab1 AS cor0
----
-174
-273
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT - - MIN( 64 ) * 64 + + + 83 AS col0 FROM tab2 AS cor0
----
4179

skipif mysql # not compatible
query I rowsort label-3283
SELECT - - MIN ( 64 ) * 64 + + + 83 AS col0 FROM tab2 AS cor0
----
4179

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT 8 + + MIN( + 14 ) AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT 8 + + MIN ( + 14 ) AS col2 FROM tab0
----
22

query II rowsort
SELECT + 95 + col1 AS col2, + col1 AS col1 FROM tab0
----
116
21
176
81
96
1

query I rowsort
SELECT - 96 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT 77 + + 18 FROM tab2
----
95
95
95

query I rowsort
SELECT ALL 95 - 95 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + - 76 AS col1 FROM tab0
----
3572
7524
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT - col1 + + + CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0 WHERE 17 - + col2 - + col1 >= - CAST( NULL AS SIGNED ) + - 49
----

skipif mysql # not compatible
query I rowsort label-3290
SELECT - col1 + + + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0 WHERE 17 - + col2 - + col1 >= - CAST ( NULL AS INTEGER ) + - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + - 27 - + COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3291
SELECT + - 27 - + COUNT ( * ) FROM tab0 AS cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0, 47 * - col1, + col2, + col2, + 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT - + col1 * - + col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT - + col1 * - + col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3294
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) + - col1 / 23 * + - CAST( NULL AS DECIMAL ) + - - col1 < col1 + 82 * + col2 * col2
----

skipif mysql # not compatible
query III rowsort label-3294
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) + - col1 / 23 * + - CAST ( NULL AS REAL ) + - - col1 < col1 + 82 * + col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 42 col1, col0 * + + 16 AS col1 FROM tab0 AS cor0
----
-42
1392
-42
1552
-42
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT DISTINCT + 22 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + 22 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT CAST( NULL AS SIGNED ) / - ( - + MIN( col2 ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT CAST ( NULL AS INTEGER ) / - ( - + MIN ( col2 ) ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT 57 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT 57 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT - ( ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3299
SELECT - ( ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 * + + ( + - 10 ) + - + col1 col1 FROM tab2 AS cor0
----
15923
33573
5239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NOT ( + 80 IS NULL )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT + col1 * + + col1 + + 48 * - col2 * + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT 61 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3302
SELECT + col1 * + + col1 + + 48 * - col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT 61 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT ALL 86 DIV + - col1 AS col0 FROM tab0
----
-1
-4
-86

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL 86 / + - col1 AS col0 FROM tab0
----
-1
-4
-86

query I rowsort
SELECT - ( ( - + 97 ) ) FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + 8 * + ( - - 75 ) AS col2 FROM tab0 AS cor0
----
600

query I rowsort
SELECT ALL - col2 * - - 37 FROM tab2 cor0
----
-1480
-2146
-851

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT DISTINCT col2 DIV + + col2 + - 84 + - 25 AS col0 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT col2 / + + col2 + - 84 + - 25 AS col0 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT ALL + + col2 * - 74 FROM tab2 AS cor0
----
-1702
-2960
-4292

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + 3 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3311
SELECT + 5 DIV + col1, - col2 AS col0 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-3311
SELECT + 5 / + col1, - col2 AS col0 FROM tab2
----
0
-23
0
-40
0
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 AND + col1
----
46
51
23
64
77
40

query I rowsort
SELECT ALL + + col0 + - - col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT - 94 + + ( - COUNT( * ) ) + + CAST( ( - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - 94 + + ( - COUNT ( * ) ) + + CAST ( ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT - - col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - 54 FROM tab0 WHERE NULL = + 90
----

query I rowsort
SELECT DISTINCT ( - col2 ) + 67 + + col1 FROM tab1
----
-15
13
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT + CAST( NULL AS SIGNED ) * - col0 / - + 81 + - ( col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + CAST ( NULL AS INTEGER ) * - col0 / - + 81 + - ( col2 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 - col0 AS col2 FROM tab0
----
-28
-38
44

query I rowsort
SELECT 54 + - col2 AS col0 FROM tab1
----
-14
-42
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT - COUNT( * ) * 18 + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > - 62 + - 40
----
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT - COUNT ( * ) * 18 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > - 62 + - 40
----
0

query I rowsort
SELECT DISTINCT - col1 - 64 FROM tab0
----
-145
-65
-85

query I rowsort
SELECT + col2 * - - 72 - - 66 FROM tab0
----
3450
7194
786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3324
SELECT - 64 DIV + MAX( + col1 ) - - - ( + + CAST( + + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-3324
SELECT - 64 / + MAX ( + col1 ) - - - ( + + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab1
----
-4

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - + ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 11 col1 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col1 * + 66 - - 32
----
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col1 * + 66 - - 32
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - 81, + col2, - col1, - 48 + - 39, + + col0 )
----

query I rowsort
SELECT DISTINCT + + ( + - col0 ) AS col1 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT + col2 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT + 10 * - col0 DIV col0 AS col2 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-3333
SELECT + 10 * - col0 / col0 AS col2 FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT DISTINCT col2 * + - col1 * - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT col2 * + - col1 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + + 59 * - - col2 FROM tab1 AS cor0
----
17405
188564
79296

query I rowsort
SELECT ALL + 71 + col0 * + col2 + + col2 FROM tab0 cor0
----
823
951
9773

query I rowsort
SELECT ALL - 3 * col2 + - col0 + - + col0 AS col0 FROM tab2 AS cor0
----
-161
-248
-324

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / + col1 BETWEEN col2 * 55 AND 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT 25 AS col2, COUNT( * ) * + 1 FROM tab1
----
25
3

skipif mysql # not compatible
query II rowsort label-3339
SELECT 25 AS col2, COUNT ( * ) * + 1 FROM tab1
----
25
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL - SUM( + CAST( + 13 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-117

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - SUM ( + CAST ( + 13 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-117

query I rowsort
SELECT col2 + 57 FROM tab1 cor0
----
116
125
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL 17 * - + MIN( + col0 ) FROM tab2 AS cor0
----
-782

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL 17 * - + MIN ( + col0 ) FROM tab2 AS cor0
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + COUNT( DISTINCT - 32 ) + - COUNT( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3343
SELECT + COUNT ( DISTINCT - 32 ) + - COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL - + col1 + + + 69 FROM tab0 AS cor0
----
-12
48
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT ALL + col1 DIV + - 96 + + col1 col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT ALL + col1 / + - 96 + + col1 col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - 73 - - - col1 * - - 24 AS col0 FROM tab1
----
-1201
-193
-409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE + 88 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL ( + col0 ) + + col2 * + col0 FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + 64 AS col2 FROM tab2 WHERE NOT ( NOT 74 NOT IN ( - col0 + + - col1 * 41 ) )
----
576

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + 64 AS col2 FROM tab2 WHERE NOT ( NOT 74 NOT IN ( - col0 + + - col1 * 41 ) )
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL - COUNT( * ) - - ( - - 46 ) AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - COUNT ( * ) - - ( - - 46 ) AS col1 FROM tab2 AS cor0
----
43

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - ( - + col1 ) * + col1
----

query I rowsort
SELECT - col2 - - 59 * 30 + + ( + col0 ) FROM tab1 cor0
----
1725
1793
1796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT + col1 - - col0 + - + 46 * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + 7 + 62 + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT + col1 - - col0 + - + 46 * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + 7 + 62 + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 * - - col1 FROM tab0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT - MIN( + + 61 ) * - 55 AS col1 FROM tab2 AS cor0 WHERE + 21 * - col1 - - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT - MIN ( + + 61 ) * - 55 AS col1 FROM tab2 AS cor0 WHERE + 21 * - col1 - - - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3356
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - 46 - + 62 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3356
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - 46 - + 62 IS NULL
----

query II rowsort
SELECT - col1, col1 * col2 AS col2 FROM tab1 AS cor0
----
-14
1344
-47
3196
-5
295

query II rowsort
SELECT + 93 AS col2, col1 AS col2 FROM tab1 AS cor0
----
93
14
93
47
93
5

query I rowsort
SELECT + ( - col2 ) - + col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 * + - 73 FROM tab0 cor0
----
-16425
-552537
-686857

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3361
SELECT COUNT( ALL + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3361
SELECT COUNT ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT 14 DIV col2 * - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT 14 / col2 * - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT MAX( - - 4 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT MAX ( - - 4 ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT + 39 + + 81 + - + col1 AS col1 FROM tab0 AS cor0
----
119
39
99

query I rowsort
SELECT 8 + col0 AS col2 FROM tab1 AS cor0
----
59
93
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT 91 DIV col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3367
SELECT 91 / col0 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT MIN( DISTINCT - - col1 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3368
SELECT MIN ( DISTINCT - - col1 ) AS col1 FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT ALL + + col1 * col1 DIV - + 11 col2 FROM tab1 AS cor0
----
-17
-2
-200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3369
SELECT ALL + + col1 * col1 / - + 11 col2 FROM tab1 AS cor0
----
-17
-2
-200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 14 <= + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT - SUM( DISTINCT col1 ) + 28 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - SUM ( DISTINCT col1 ) + 28 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT ALL 56 + col2 FROM tab2 AS cor0
----
114
79
96

query I rowsort
SELECT ALL + col0 + + - col1 AS col1 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT - 97 * + 24 + - 94 * - col2 FROM tab1
----
3218
4064
6696

query I rowsort
SELECT + col0 + - 93 + + + col2 * - col2 * 14 AS col0 FROM tab0
----
-137210
-1406
-31004

query I rowsort
SELECT - ( - col2 ) + col2 - + - col1 FROM tab0
----
175
199
41

query I rowsort
SELECT - col2 + - - col0 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT 54 + + ( + col0 ) AS col0 FROM tab2
----
100
118
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN + CAST( + + col2 AS SIGNED ) + - 83 + - 2 * - 30 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN + CAST ( + + col2 AS INTEGER ) + - 83 + - 2 * - 30 AND NULL
----

query I rowsort
SELECT col1 * - ( - 30 ) AS col1 FROM tab0 cor0
----
2430
30
630

query II rowsort
SELECT 74 * + col0, col1 AS col1 FROM tab1
----
3774
14
6290
5
6734
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3385
SELECT * FROM tab0 WHERE NOT 72 + + ( + col1 ) + - + CAST( col0 AS SIGNED ) + + 47 <> - ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-3385
SELECT * FROM tab0 WHERE NOT 72 + + ( + col1 ) + - + CAST ( col0 AS INTEGER ) + + 47 <> - ( - col0 )
----

query I rowsort
SELECT DISTINCT + ( + ( + 19 ) ) AS col2 FROM tab1 cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT DISTINCT - CAST( - ( + col1 ) AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT - CAST ( - ( + col1 ) AS INTEGER ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - 43 AS col2 FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT DISTINCT - CAST( - ( + 15 ) AS SIGNED ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - CAST ( - ( + 15 ) AS INTEGER ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT - + 22 * + col0 FROM tab0 AS cor0
----
-1914
-2134
-330

query I rowsort
SELECT ALL - - col1 + + col1 AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
162
2
42

query I rowsort
SELECT - 84 + col1 + + - 61 + + + col2 AS col1 FROM tab1
----
-30
-35
-81

query I rowsort
SELECT ALL 31 AS col1 FROM tab2 WHERE NOT - col0 IN ( - + col2 )
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT - col0 + + CAST( NULL AS SIGNED ) + - col0 / 97 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT - col0 + + CAST ( NULL AS INTEGER ) + - col0 / 97 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 * + col0 * - + 81 AS col0 FROM tab2
----
-186300
-259200
-303750

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + col1 > + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col1 * ( + 55 ) - col0 * - - 72 * - col0 = - - 95 + col1 )
----

query I rowsort
SELECT - col0 * + + col1 AS col1 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + ( SUM( - 61 ) ) AS col1 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + ( SUM ( - 61 ) ) AS col1 FROM tab0
----
-183

query I rowsort
SELECT ALL 18 * + col1 FROM tab2 cor0
----
1206
1386
918

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT + - 50 col1, + COUNT( * ) FROM tab2 AS cor0
----
-50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3402
SELECT + - 50 col1, + COUNT ( * ) FROM tab2 AS cor0
----
-50
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 99 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL 74 * + col0 FROM tab1
----
3774
6290
6734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT ( - CAST( NULL AS SIGNED ) ) + col2 col0 FROM tab0 WHERE NOT col1 + col1 IN ( 87 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3405
SELECT ( - CAST ( NULL AS INTEGER ) ) + col2 col0 FROM tab0 WHERE NOT col1 + col1 IN ( 87 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 12 FROM tab1
----
1020
1092
612

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT COUNT( * ) * COUNT( DISTINCT + col2 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3409
SELECT COUNT ( * ) * COUNT ( DISTINCT + col2 ) FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT DISTINCT CAST( NULL AS SIGNED ) - COUNT( * ) / COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT CAST ( NULL AS INTEGER ) - COUNT ( * ) / COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT 3 * col2 AS col0 FROM tab1
----
177
204
288

query I rowsort
SELECT 41 * + 40 AS col0 FROM tab2
----
1640
1640
1640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT + col2 * - col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT ALL COUNT( * ) DIV 31 + - 9 DIV COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL COUNT ( * ) / 31 + - 9 / COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - col2 + - 90 FROM tab0 WHERE col2 IS NOT NULL
----
-100
-137
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3416
SELECT COUNT( * ) DIV + COUNT( * ) col0 FROM tab0 WHERE NOT + 87 IS NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3416
SELECT COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 WHERE NOT + 87 IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT COUNT( + col2 ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3417
SELECT COUNT ( + col2 ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL COUNT( col2 ) * 5 AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL COUNT ( col2 ) * 5 AS col2 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 94 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT ALL - ( + col1 ) DIV ( 18 ) AS col1 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - ( + col1 ) / ( 18 ) AS col1 FROM tab1
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL + SUM( ALL CAST( NULL AS SIGNED ) ) / 7 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3423
SELECT ALL + SUM ( ALL CAST ( NULL AS INTEGER ) ) / 7 col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 6 * col2 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
-354
-408
-576

query I rowsort
SELECT + 25 + 25 * 16 FROM tab2
----
425
425
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT DISTINCT - CAST( col2 AS SIGNED ) - + 74 * col2 FROM tab0
----
-3525
-7425
-750

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - CAST ( col2 AS INTEGER ) - + 74 * col2 FROM tab0
----
-3525
-7425
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT DISTINCT - COUNT( * ) DIV + 72 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - COUNT ( * ) / + 72 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT 49 DIV 90 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT 49 / 90 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 86 - col0 * - 0 FROM tab1
----
86
86
86

query I rowsort
SELECT - col0 - ( - ( + col1 ) ) FROM tab1
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col2 FROM tab2 WHERE NULL IN ( + 9 )
----

query I rowsort
SELECT 71 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 74 * col0 AS col2 FROM tab1
----
3774
6290
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col1 FROM tab0
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT ALL 34 DIV col0 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL 34 / col0 AS col1 FROM tab0
----
0
0
2

query III rowsort
SELECT * FROM tab2 WHERE NOT 89 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - MAX( + 61 ) FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3438
SELECT - MAX ( + 61 ) FROM tab1 AS cor0
----
-61

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT + SUM( ALL 67 ) col0 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3440
SELECT DISTINCT + SUM ( ALL 67 ) col0 FROM tab0 AS cor0
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + + col1 col1 FROM tab0 AS cor0
----
115
175
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT - MIN( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3442
SELECT - MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3443
SELECT DISTINCT - + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 + - 12 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 10 * + col1 FROM tab1 AS cor0
----
-140
-470
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT DISTINCT 79 * + col2 DIV + col2 AS col1 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT 79 * + col2 / + col2 AS col1 FROM tab1
----
79

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * + 85 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT col2 * - + 36 FROM tab0
----
-1692
-3564
-360

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( 2 ) * col0 = ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - ( + COUNT( * ) ) * - COUNT( * ) + 45 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3451
SELECT - ( + COUNT ( * ) ) * - COUNT ( * ) + 45 FROM tab2
----
54

query I rowsort
SELECT DISTINCT - - ( 40 ) AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT col1 + - + 16 FROM tab2 AS cor0
----
35
51
61

query I rowsort
SELECT + 48 * 65 + col0 AS col1 FROM tab0 AS cor0
----
3135
3207
3217

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( ( col0 ) ) AND NULL BETWEEN NULL AND + ( 41 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT COUNT( * ) + + ( 76 ) * 66 FROM tab0, tab2 AS cor0
----
5025

skipif mysql # not compatible
query I rowsort label-3457
SELECT COUNT ( * ) + + ( 76 ) * 66 FROM tab0, tab2 AS cor0
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL + ( 89 ) - - COUNT( DISTINCT + col2 ) + COUNT( * ) col2 FROM tab0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3458
SELECT ALL + ( 89 ) - - COUNT ( DISTINCT + col2 ) + COUNT ( * ) col2 FROM tab0
----
95

query I rowsort
SELECT - 99 * + ( - + 38 ) FROM tab0
----
3762
3762
3762

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT - ( + col1 ) DIV - - col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3460
SELECT - ( + col1 ) / - - col1 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - - 98 * col0 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col2, - col2 + + 39 FROM tab2 AS cor0
----
-23
16
-40
-1
-58
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 AS col1, + 63 * - - col1 col1 FROM tab0 AS cor0
----
49
1323
49
5103
49
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT + col2 + + col2 DIV - 32 col1 FROM tab1 AS cor0 WHERE - 36 <= + col0
----
58
66
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3465
SELECT DISTINCT + col2 + + col2 / - 32 col1 FROM tab1 AS cor0 WHERE - 36 <= + col0
----
58
66
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 + col1 col0 FROM tab1 AS cor0
----
46
55
88

query I rowsort
SELECT ALL - col2 + - col0 + - + col0 + col2 AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT ( + COUNT( + + col2 ) ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT ( + COUNT ( + + col2 ) ) * - COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT + 88 NOT IN ( ( + col1 ) - - 54 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col1 FROM tab1 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 71 * - col2 * - - col1 FROM tab0
----
-14910
-270297
-7029

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT + MIN( - 86 ) AS col2 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + MIN ( - 86 ) AS col2 FROM tab2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - COUNT( * ) * ( + + MIN( DISTINCT 18 ) ) AS col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3474
SELECT - COUNT ( * ) * ( + + MIN ( DISTINCT 18 ) ) AS col2 FROM tab0 AS cor0
----
-54

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - - col2 AND ( col0 )
----

query I rowsort
SELECT ALL + 3 AS col2 FROM tab2 cor0
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 37 + 32 + - - col1 * + 16 * ( ( - col2 ) ) FROM tab0 AS cor0
----
-1589
-3365
-60917

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 18 * - ( col0 ) ) < NULL
----

query I rowsort
SELECT ALL + ( 83 ) + + + col0 AS col1 FROM tab1 AS cor0
----
134
168
174

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 32 ) NOT IN ( + col2 / - 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT DISTINCT - col0 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - col0 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT 53 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT 53 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - col2 = - col2
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT 50 + col2 FROM tab0
----
149
60
97

query II rowsort
SELECT DISTINCT 74 AS col1, + col2 AS col2 FROM tab1
----
74
59
74
68
74
96

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab0 WHERE NOT + col0 >= + - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 + + ( - - 13 ) AS col1 FROM tab1
----
-46
-55
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT + COUNT( DISTINCT - col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3491
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) col0 FROM tab0
----
3

query II rowsort
SELECT - 64, 90 AS col1 FROM tab0 cor0
----
-64
90
-64
90
-64
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col1 FROM tab2 AS cor0 WHERE col2 * - 55 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 15 ) / + 64 + - 0 > 42
----

query I rowsort
SELECT + 15 AS col1 FROM tab1 AS cor0 WHERE - col2 < NULL
----

query I rowsort
SELECT ALL + ( - 70 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT - 87 - + - col1 FROM tab0 cor0
----
-6
-66
-86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - 41 + - 59 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL + 72 - - COUNT( * ) + + MIN( 9 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + 72 - - COUNT ( * ) + + MIN ( 9 ) FROM tab2 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT - - 32 * - + col1 * - - 66 * - 81 + + - col1 DIV - col2 - 33 AS col2 FROM tab0 AS cor0
----
13856800
171039
3592481

skipif mysql # not compatible
query I rowsort label-3500
SELECT - - 32 * - + col1 * - - 66 * - 81 + + - col1 / - col2 - 33 AS col2 FROM tab0 AS cor0
----
13856800
171039
3592481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT DISTINCT + 49 AS col1 FROM tab2 AS cor0 WHERE - CAST( - col2 AS SIGNED ) + - col1 IN ( + col1 / - col1 + + col1 + col0 )
----

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + 49 AS col1 FROM tab2 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) + - col1 IN ( + col1 / - col1 + + col1 + col0 )
----

query I rowsort
SELECT 61 * + col1 * - 63 AS col0 FROM tab2 AS cor0
----
-195993
-257481
-295911

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT CAST( NULL AS SIGNED ) * 52 * 73 - + - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT CAST ( NULL AS INTEGER ) * 52 * 73 - + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 49 * 4 AS col1 FROM tab1
----
-196

query I rowsort
SELECT DISTINCT 24 FROM tab0 WHERE - 35 + + 10 IS NOT NULL
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT MAX( ALL + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3508
SELECT MAX ( ALL + col1 ) AS col2 FROM tab2
----
77

query II rowsort
SELECT + col0, 57 AS col2 FROM tab1
----
51
57
85
57
91
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT + SUM( ALL CAST( + 79 AS SIGNED ) ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3510
SELECT + SUM ( ALL CAST ( + 79 AS INTEGER ) ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL + + COUNT( * ) FROM tab2 cor0 WHERE 75 + + col1 + + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + + COUNT ( * ) FROM tab2 cor0 WHERE 75 + + col1 + + + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + 87 AS col2 FROM tab0 AS cor0 WHERE NOT ( 18 * - + col1 - - + col2 ) IN ( 16 * + + 38 / - col1 )
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3515
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + ( + col0 ) NOT IN ( - col0, col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT MAX( + col2 ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3517
SELECT MAX ( + col2 ) AS col0 FROM tab1 cor0
----
96

query I rowsort
SELECT ALL + col2 + + col1 + + + col1 + 50 AS col2 FROM tab0 AS cor0
----
102
151
259

query II rowsort
SELECT ALL - col1 + + 76 AS col0, 12 FROM tab1 cor0
----
29
12
62
12
71
12

query I rowsort
SELECT DISTINCT + col0 * + + 91 * - col2 FROM tab0 WHERE - + col1 NOT IN ( col1 - - + ( col0 ), - col2 )
----
-64155
-79170
-873873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT col0 + - 4 + + ( col0 ) * 14 * + CAST( + col1 AS SIGNED ) FROM tab2
----
32886
69052
70421

skipif mysql # not compatible
query I rowsort label-3521
SELECT col0 + - 4 + + ( col0 ) * 14 * + CAST ( + col1 AS INTEGER ) FROM tab2
----
32886
69052
70421

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL COUNT( + 83 ) * 54 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL COUNT ( + 83 ) * 54 FROM tab0
----
162

query I rowsort
SELECT + 55 + ( - col2 ) AS col2 FROM tab1
----
-13
-4
-41

query I rowsort
SELECT - 43 * + col2 + + ( col1 ) FROM tab0 AS cor0
----
-1940
-409
-4256

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT DISTINCT - col2 DIV - 21 - - col2 AS col2 FROM tab0
----
10
103
49

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT - col2 / - 21 - - col2 AS col2 FROM tab0
----
10
103
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - MAX( DISTINCT 73 ) AS col2 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-3526
SELECT - MAX ( DISTINCT 73 ) AS col2 FROM tab1
----
-73

query III rowsort
SELECT * FROM tab2 WHERE + + 6 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 <= ( - 39 )
----

query I rowsort
SELECT 67 * 8 AS col1 FROM tab0 AS cor0
----
536
536
536

query I rowsort
SELECT DISTINCT 6 * col2 AS col0 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT DISTINCT - ( 39 ) FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT SUM( DISTINCT + - 69 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT SUM ( DISTINCT + - 69 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - - 34 * + - col1 - + 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - ( - 36 ) col1 FROM tab0
----
3132
3492
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col2 FROM tab1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3536
SELECT * FROM tab2 WHERE NOT - - ( col0 ) * - 81 * - 18 * - col0 * + 10 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3536
SELECT * FROM tab2 WHERE NOT - - ( col0 ) * - 81 * - 18 * - col0 * + 10 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3537
SELECT - col2 DIV - col1, + 92 AS col0 FROM tab1
----
1
92
11
92
6
92

skipif mysql # not compatible
query II rowsort label-3537
SELECT - col2 / - col1, + 92 AS col0 FROM tab1
----
1
92
11
92
6
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL 3 / - + col0 * col2 / + col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL 3 / - + col0 * col2 / + col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= col0
----

query I rowsort
SELECT ( + col2 ) FROM tab1 AS cor0 WHERE col1 * + col1 NOT IN ( - col0 / - ( + 38 ) + col2 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3541
SELECT + COUNT( * ) + CAST( + - ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3541
SELECT + COUNT ( * ) + CAST ( + - ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 49 * + col1 - - col0 * col2
----

query I rowsort
SELECT + 59 + - + col1 + - col2 FROM tab1 AS cor0
----
-5
-51
-56

query II rowsort
SELECT ALL col2 * - col0 + - col1, col2 FROM tab0 cor0
----
-786
47
-891
10
-9604
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT 84 * + MIN( - - col0 ) FROM tab2
----
3864

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT 84 * + MIN ( - - col0 ) FROM tab2
----
3864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3547
SELECT DISTINCT + 65 DIV - COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT + 65 / - COUNT ( * ) FROM tab1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3548
SELECT + col2 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 56 IS NULL
----

query I rowsort
SELECT ALL - + col0 * - col2 * + 40 AS col1 FROM tab2 cor0
----
102400
174000
42320

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NULL AND NOT 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL COUNT( * ) * + 95 AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL COUNT ( * ) * + 95 AS col2 FROM tab2 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT col1 * CAST( + - col0 AS SIGNED ) * col2 + - 24 + + + 73 - - col2 - - col1 + 93 FROM tab1
----
-24869
-290579
-68292

skipif mysql # not compatible
query I rowsort label-3553
SELECT col1 * CAST ( + - col0 AS INTEGER ) * col2 + - 24 + + + 73 - - col2 - - col1 + 93 FROM tab1
----
-24869
-290579
-68292

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT - - COUNT( * ) * + 19 + 24 * 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
435

skipif mysql # not compatible
query I rowsort label-3554
SELECT - - COUNT ( * ) * + 19 + 24 * 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3555
SELECT ALL COUNT( * ) DIV 7 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3555
SELECT ALL COUNT ( * ) / 7 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 7 - 23 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT CAST( - ( + - 20 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3558
SELECT CAST ( - ( + - 20 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT DISTINCT - + CAST( ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - + CAST ( ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + + 8 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT ALL + + MIN( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + + MIN ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + - 7 ) AS col2 FROM tab2 AS cor0
----
-7
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 * col2 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + 85 - - - col2 FROM tab2 AS cor0
----
-1978
-3440
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + COUNT( + 56 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3565
SELECT + COUNT ( + 56 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ( + - ( - 82 ) ) FROM tab1
----
82
82
82

query II rowsort
SELECT col2, + col2 * - 57 AS col1 FROM tab1
----
59
-3363
68
-3876
96
-5472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3568
SELECT + - CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT + - CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT + + col2 AS col1, + 48 AS col1 FROM tab0 AS cor0
----
10
48
47
48
99
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT col0 FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3570
SELECT col0 FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) IS NULL
----
15
87
97

query I rowsort
SELECT - col1 + - ( 62 ) FROM tab0 cor0
----
-143
-63
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3572
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE + + 10 + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( ( ( - 39 ) ) + + - col0 + + + col0 * + 44, - 34 + + col1, + col2, 40 )
----

query I rowsort
SELECT ALL col1 + + col1 * - - col1 FROM tab2 AS cor0
----
2652
4556
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT - 5 DIV - ( - col0 ) - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3576
SELECT - 5 / - ( - col0 ) - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - 33 + 18 AS col1 FROM tab0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= 89 + 24
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3580
SELECT DISTINCT col1 - col0 + 83 DIV + 10 AS col1, 36 + + - col1 FROM tab1
----
-29
22
-36
-11
-72
31

skipif mysql # not compatible
query II rowsort label-3580
SELECT DISTINCT col1 - col0 + 83 / + 10 AS col1, 36 + + - col1 FROM tab1
----
-29
22
-36
-11
-72
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + + col2
----

query I rowsort
SELECT 11 + - - 74 FROM tab0
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT ALL + 4 - + + MIN( ALL + CAST( 60 AS SIGNED ) ) - MIN( + col2 ) + - - MAX( ALL - col2 ) col2 FROM tab0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3583
SELECT ALL + 4 - + + MIN ( ALL + CAST ( 60 AS INTEGER ) ) - MIN ( + col2 ) + - - MAX ( ALL - col2 ) col2 FROM tab0
----
-76

query I rowsort
SELECT - 81 + - + 80 AS col2 FROM tab2
----
-161
-161
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - SUM( + col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT - SUM ( + col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( - col1 ) + + + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 43 * 79 * - + col1 FROM tab2 AS cor0
----
-173247
-227599
-261569

query I rowsort
SELECT DISTINCT + 12 + 9 * - col1 AS col1 FROM tab2 AS cor0
----
-447
-591
-681

query II rowsort
SELECT - col2 AS col1, col1 * - 20 + + col2 FROM tab2 AS cor0
----
-23
-997
-40
-1500
-58
-1282

query I rowsort
SELECT - - 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3591
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3592
SELECT DISTINCT - 81 DIV col1 + + - 73 AS col0 FROM tab0 AS cor0
----
-154
-74
-76

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - 81 / col1 + + - 73 AS col0 FROM tab0 AS cor0
----
-154
-74
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col0 FROM tab0 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col0 * - - col2 * - - 75 FROM tab2 AS cor0
----
192000
326250
79350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 * - + col2 col1 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT col1 * - 97 FROM tab2
----
-4947
-6499
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT col0 DIV + - 57 col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT col0 / + - 57 col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT DISTINCT 39 / + - col2 * - - 96 / - - 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-3599
SELECT DISTINCT 39 / + - col2 * - - 96 / - - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + - col1 / + - col1 BETWEEN ( + 30 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3601
SELECT CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3601
SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2
----
NULL
3

query II rowsort
SELECT 18 * + 42 * - col2 AS col2, - 14 FROM tab0
----
-35532
-14
-74844
-14
-7560
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - MIN( DISTINCT - + 70 ) * + + COUNT( - - 8 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-3603
SELECT - MIN ( DISTINCT - + 70 ) * + + COUNT ( - - 8 ) FROM tab1
----
210

query I rowsort
SELECT - + 13 AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-3605
SELECT col0, 97 DIV col1 col2 FROM tab0
----
15
1
87
4
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3605
SELECT col0, 97 / col1 col2 FROM tab0
----
15
1
87
4
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 91 col0, + 1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3608
SELECT + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + 33 + + col2 AS col2 FROM tab0 cor0
----
133
161
64

query I rowsort
SELECT DISTINCT + 69 + - col0 + + - 79 FROM tab0 AS cor0
----
-107
-25
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 27 - - - col1 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL + col2 DIV + ( + + 5 ) FROM tab2
----
11
4
8

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + col2 / + ( + + 5 ) FROM tab2
----
11
4
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 75 + - 65 AS col2 FROM tab2 AS cor0
----
10
10
10

query II rowsort
SELECT ALL - 5 AS col2, + 58 FROM tab2 AS cor0
----
-5
58
-5
58
-5
58

query I rowsort
SELECT DISTINCT - - col2 + - col2 * + - 45 * 1 FROM tab2 AS cor0
----
1058
1840
2668

query I rowsort
SELECT ALL - col1 - 47 AS col2 FROM tab0 AS cor0
----
-128
-48
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL ( + - 58 ) + COUNT( * ) * COUNT( * ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL ( + - 58 ) + COUNT ( * ) * COUNT ( * ) FROM tab0
----
-49

query I rowsort
SELECT DISTINCT 79 - - col2 + - 99 AS col1 FROM tab0
----
-10
27
79

query II rowsort
SELECT + + ( + 16 ) * - col2, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 71 - + col1 FROM tab2
----
-6
20
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL + ( + + 59 ) * MAX( DISTINCT - 61 ) - - 68 col0 FROM tab2
----
-3531

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3622
SELECT ALL + ( + + 59 ) * MAX ( DISTINCT - 61 ) - - 68 col0 FROM tab2
----
-3531

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL MAX( - col1 ) - + 26 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL MAX ( - col1 ) - + 26 FROM tab1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT - 64 - - ( + - 90 ) DIV - 82 FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-3624
SELECT - 64 - - ( + - 90 ) / - 82 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT ALL col2 - + ( - 91 ) + + + col0 FROM tab0 AS cor0
----
153
188
287

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT DISTINCT + + col2 * col2 * 37 DIV col0 + + - col1 * col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-18228
-51657
-5865

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT + + col2 * col2 * 37 / col0 + + - col1 * col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-18228
-51657
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT - ( - - COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3627
SELECT - ( - - COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - 66 AS col0 FROM tab1
----
14
-66
47
-66
5
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT + SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE col2 < + - 20 / + 21
----

query II rowsort
SELECT ALL + col1 AS col0, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query II rowsort
SELECT ALL + - col2 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, 99 AS col1 FROM tab1 AS cor0
----
-59
99
-68
99
-96
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 30 = NULL
----

query I rowsort
SELECT DISTINCT + col0 * 7 FROM tab0 AS cor0
----
105
609
679

query I rowsort
SELECT ALL - 61 + + ( + + 36 ) FROM tab1 AS cor0
----
-25
-25
-25

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 45 NOT IN ( - - col0, + col0, col0 + col1 )
----

query I rowsort
SELECT DISTINCT + + 48 * - col2 AS col0 FROM tab0 cor0
----
-2256
-4752
-480

query I rowsort
SELECT ALL - col2 * - col1 * - + 82 * + + col0 FROM tab2
----
-16163840
-23898900
-4424556

query II rowsort
SELECT DISTINCT col0 * 27, col0 FROM tab2
----
1242
46
1728
64
2025
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT col1 DIV - - col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3641
SELECT col1 / - - col0 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL + col0 + - col0 + - + 45 FROM tab1 AS cor0
----
-45
-45
-45

query II rowsort
SELECT + 85 + + + col1, - col1 AS col2 FROM tab1 AS cor0
----
132
-47
90
-5
99
-14

query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 + + 77 AS col2 FROM tab2 AS cor0
----
19
37
54

query I rowsort
SELECT ALL + col1 + - - col2 * - col2 AS col0 FROM tab0
----
-2128
-79
-9800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 13 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + MAX( + 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3648
SELECT + MAX ( + 38 ) FROM tab0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + 10 col1 FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 IS NOT NULL ) )
----
-61
-77
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT - COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT - COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT DISTINCT - + col2 + - col1 DIV - + col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - + col2 + - col1 / - + col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col1 + + col1 AS col2 FROM tab1 AS cor0 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT + COUNT( * ) + 79 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT + COUNT ( * ) + 79 FROM tab0 AS cor0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT ALL - ( + col0 ) + - col0 DIV 75 col1 FROM tab0 AS cor0
----
-15
-88
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT ALL - ( + col0 ) + - col0 / 75 col1 FROM tab0 AS cor0
----
-15
-88
-98

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE - col2 * + - 11 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT ALL - ( col2 ) AS col2 FROM tab1 WHERE ( + col2 / - + 70 ) BETWEEN 64 * + 57 AND - + CAST( - + 92 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - ( col2 ) AS col2 FROM tab1 WHERE ( + col2 / - + 70 ) BETWEEN 64 * + 57 AND - + CAST ( - + 92 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 85 * col2 - - col2 col0 FROM tab0
----
59972
73960
816354

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE - + col1 IS NOT NULL
----
51
67
77

query II rowsort
SELECT + 18 AS col1, 29 FROM tab2
----
18
29
18
29
18
29

query I rowsort
SELECT - ( - 92 ) FROM tab2
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + MIN( ALL + ( - 71 ) ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-3661
SELECT + MIN ( ALL + ( - 71 ) ) FROM tab0
----
-71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * - ( + + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT ALL + + 97 DIV + 51 + - 10 * - 35 FROM tab0 AS cor0
----
351
351
351

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + + 97 / + 51 + - 10 * - 35 FROM tab0 AS cor0
----
351
351
351

query I rowsort
SELECT ALL + 24 * - col1 + col1 * col1 FROM tab2 AS cor0
----
1377
2881
4081

query I rowsort
SELECT DISTINCT + + 68 FROM tab1 cor0
----
68

query I rowsort
SELECT DISTINCT + col2 * - col1 * col0 + + - col0 * - + 61 * + col0 AS col2 FROM tab2 AS cor0
----
51675
52736
75118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT - CAST( NULL AS SIGNED ) + - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 41 * ( 10 ) + - col1 FROM tab1
----
363
396
405

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - COUNT( * ) + 69 * - 24 FROM tab2
----
-1659

skipif mysql # not compatible
query I rowsort label-3669
SELECT - COUNT ( * ) + 69 * - 24 FROM tab2
----
-1659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT - CAST( - 83 AS SIGNED ) + - col0 - 6 AS col1 FROM tab2
----
13
2
31

skipif mysql # not compatible
query I rowsort label-3670
SELECT - CAST ( - 83 AS INTEGER ) + - col0 - 6 AS col1 FROM tab2
----
13
2
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 33 - col1 col0 FROM tab2
----
-51
-84
-67
-100
-77
-110

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 10 BETWEEN 41 AND 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT DISTINCT + 59, + COUNT( * ) col1 FROM tab2
----
59
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3673
SELECT DISTINCT + 59, + COUNT ( * ) col1 FROM tab2
----
59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT 2 * + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3674
SELECT 2 * + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT + 26 * + COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + 26 * + COUNT ( * ) FROM tab0
----
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( ( NULL ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3677
SELECT ALL - col1 + - - col0 - - - ( CAST( NULL AS DECIMAL ) ) col2 FROM tab2 AS cor0 WHERE NOT ( NOT col0 BETWEEN CAST( NULL AS DECIMAL ) AND NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3677
SELECT ALL - col1 + - - col0 - - - ( CAST ( NULL AS REAL ) ) col2 FROM tab2 AS cor0 WHERE NOT ( NOT col0 BETWEEN CAST ( NULL AS REAL ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT NULL < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3678
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT NULL < NULL )
----
0

query II rowsort
SELECT - 68 AS col1, col1 + - col0 FROM tab2 AS cor0
----
-68
-8
-68
13
-68
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT SUM( ALL - 45 ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3680
SELECT SUM ( ALL - 45 ) FROM tab1 AS cor0
----
-135

query I rowsort
SELECT - 99 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL + - 7 * + col2 AS col0 FROM tab1 AS cor0
----
-413
-476
-672

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 < + - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3685
SELECT COUNT( * ) DIV 43 + - 26 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3685
SELECT COUNT ( * ) / 43 + - 26 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT ALL ( + ( - + 78 ) ) * - + col1 - 33 AS col0 FROM tab1
----
1059
357
3633

query II rowsort
SELECT - col0, - col0 FROM tab2 WHERE NOT NULL <= col0 + - col0 - - 98
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3688
SELECT - + 35 + - - ( - col0 ) - + - col0 * + col2 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3688
SELECT - + 35 + - - ( - col0 ) - + - col0 * + col2 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) NOT BETWEEN + col0 AND NULL
----

query II rowsort
SELECT DISTINCT col2, col0 + 13 AS col2 FROM tab0
----
10
100
47
28
99
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ( + + SUM( DISTINCT + + col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3690
SELECT ( + + SUM ( DISTINCT + + col2 ) ) FROM tab0
----
156

query II rowsort
SELECT ALL + + 67 AS col1, col1 AS col1 FROM tab0 AS cor0
----
67
1
67
21
67
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + SUM( + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3692
SELECT + SUM ( + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 39 col0 FROM tab1 AS cor0
----
20
29
57

query II rowsort
SELECT - 20 AS col2, + ( + + col2 ) + col0 * + + ( - + ( + col1 ) ) + 60 FROM tab2 AS cor0
----
-20
-2263
-20
-4828
-20
-4907

query I rowsort
SELECT ALL col0 * 31 AS col0 FROM tab2 AS cor0 WHERE ( - 50 IS NULL )
----

query I rowsort
SELECT ALL - 46 + - + 45 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE ( NOT NULL NOT BETWEEN 62 * - 50 AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT - + col2 * - + col0 * - + 2 + - - 22 FROM tab0 cor0
----
-1388
-1718
-19184

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3699
SELECT DISTINCT - col0 AS col1, - col1 + ( - - 44 ) col1 FROM tab2 WHERE - col2 NOT IN ( 23 * 84 + col1 * - CAST( NULL AS DECIMAL ), + col2, col0, + col2, - 93 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3699
SELECT DISTINCT - col0 AS col1, - col1 + ( - - 44 ) col1 FROM tab2 WHERE - col2 NOT IN ( 23 * 84 + col1 * - CAST ( NULL AS REAL ), + col2, col0, + col2, - 93 )
----

query II rowsort
SELECT DISTINCT - col0 + - + col2, col0 AS col2 FROM tab1
----
-144
85
-147
51
-159
91

query I rowsort
SELECT ALL + ( - - 34 ) AS col1 FROM tab0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT DISTINCT - col2 * + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT - col2 * + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT - col2 + + + 35 + + col0, col0 AS col0 FROM tab0
----
112
87
3
15
33
97

query I rowsort
SELECT 79 + col2 FROM tab0
----
126
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL - + COUNT( - 56 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3705
SELECT ALL - + COUNT ( - 56 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3706
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3706
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 90 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3708
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query III rowsort label-3708
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) = - col2
----

query II rowsort
SELECT - col0 AS col1, col0 AS col2 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL + col1 * + - 77 AS col0 FROM tab1
----
-1078
-3619
-385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT col1 - + 33 FROM tab2
----
18
34
44

query I rowsort
SELECT col0 - + + 62 AS col2 FROM tab0
----
-47
25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT DISTINCT - MAX( + - 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT - MAX ( + - 62 ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT col1 - - 24 FROM tab1 AS cor0
----
29
38
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT 75 DIV 35 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT 75 / 35 FROM tab1 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / + col0 * - 55 IS NOT NULL
----

query I rowsort
SELECT + 46 + + 13 * + 17 - col2 * - col2 AS col2 FROM tab1 AS cor0
----
3748
4891
9483

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT COUNT( * ) * - 23 - - MIN( DISTINCT + 36 ) col1 FROM tab0 cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3719
SELECT DISTINCT COUNT ( * ) * - 23 - - MIN ( DISTINCT + 36 ) col1 FROM tab0 cor0
----
-33

query II rowsort
SELECT ALL col0, 75 AS col2 FROM tab2 cor0
----
46
75
64
75
75
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col0 / - + 32
----

query I rowsort
SELECT ALL + 59 * col1 AS col1 FROM tab0
----
1239
4779
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + 28 * - + MIN( DISTINCT + col1 ) FROM tab1
----
-140

skipif mysql # not compatible
query I rowsort label-3723
SELECT + 28 * - + MIN ( DISTINCT + col1 ) FROM tab1
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT ALL 80 DIV - ( - 46 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL 80 / - ( - 46 ) FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - 94 * COUNT( * ) * - - COUNT( DISTINCT + 92 ) * - 32 AS col2 FROM tab1
----
9024

skipif mysql # not compatible
query I rowsort label-3725
SELECT - 94 * COUNT ( * ) * - - COUNT ( DISTINCT + 92 ) * - 32 AS col2 FROM tab1
----
9024

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3726
SELECT CAST( NULL AS DECIMAL ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT CAST ( NULL AS REAL ) / + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3727
SELECT ( MAX( DISTINCT + ( - 33 ) ) ) AS col0, - 37 AS col0 FROM tab2
----
-33
-37

skipif mysql # not compatible
query II rowsort label-3727
SELECT ( MAX ( DISTINCT + ( - 33 ) ) ) AS col0, - 37 AS col0 FROM tab2
----
-33
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT MAX( ALL + + col1 ) * + - 11 + + - COUNT( * ) FROM tab1
----
-520

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT MAX ( ALL + + col1 ) * + - 11 + + - COUNT ( * ) FROM tab1
----
-520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3729
SELECT * FROM tab0 WHERE NOT col2 * + + 37 BETWEEN NULL AND - CAST( NULL AS SIGNED ) + - 14
----

skipif mysql # not compatible
query III rowsort label-3729
SELECT * FROM tab0 WHERE NOT col2 * + + 37 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT COUNT( * ) - + 30 FROM tab0 WHERE NULL IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT COUNT ( * ) - + 30 FROM tab0 WHERE NULL IS NULL
----
-27

query I rowsort
SELECT + 13 - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38
-72
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL - - COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL - - COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * - 10 FROM tab1 AS cor0 WHERE NOT + 69 BETWEEN NULL AND col2 * - col0
----
-590
-680
-960

query I rowsort
SELECT + col1 * + + 68 AS col1 FROM tab2 AS cor0
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT ALL - COUNT( * ), + 61 AS col2 FROM tab2
----
-3
61

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL - COUNT ( * ), + 61 AS col2 FROM tab2
----
-3
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT ALL + col0 AS col0, + col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL SUM( - - 56 ) * - MIN( ALL 73 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-36792

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL SUM ( - - 56 ) * - MIN ( ALL 73 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-36792

query II rowsort
SELECT ALL - - col1, - col2 * + + 82 AS col0 FROM tab1 AS cor0
----
14
-7872
47
-5576
5
-4838

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT - - col2 * - - ( + col0 ) + + - 21 DIV + 52 * - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3740
SELECT - - col2 * - - ( + col0 ) + + - 21 / + 52 * - col2 / col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL col1 + ( 53 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1168
-2043
-3007

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3742
SELECT DISTINCT 58 DIV CAST( + 88 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT 58 / CAST ( + 88 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + 58 * + ( col1 ) + - + 45 AS col2 FROM tab2 AS cor0
----
2913
3841
4421

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 * - - 95 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + COUNT( ALL + 76 ) AS col0 FROM tab0 AS cor0 WHERE + 12 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3745
SELECT + COUNT ( ALL + 76 ) AS col0 FROM tab0 AS cor0 WHERE + 12 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + col2 + + col2 + + 38 FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3747
SELECT DISTINCT - 95 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3747
SELECT DISTINCT - 95 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-95
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col2 * col1 + + col2 * 87 - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col2 * col1 + + col2 * 87 - col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col1 * + + 25 * + col1 + + ( - 38 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + col1 + - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3751
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - CAST( + col1 AS DECIMAL ) * - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - CAST ( + col1 AS REAL ) * - col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT COUNT( * ), + 46 col2 FROM tab2
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3752
SELECT COUNT ( * ), + 46 col2 FROM tab2
----
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT COUNT( * ) * 16 AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT COUNT ( * ) * 16 AS col2 FROM tab1
----
48

query II rowsort
SELECT ALL + - ( - - 76 ) AS col2, 51 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-76
51
-76
51
-76
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, 21 AS col0 FROM tab1 AS cor0
----
51
21
85
21
91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT MAX( ALL + + col1 ) * 28 * 82 + 28 FROM tab2 AS cor0
----
176820

skipif mysql # not compatible
query I rowsort label-3756
SELECT MAX ( ALL + + col1 ) * 28 * 82 + 28 FROM tab2 AS cor0
----
176820

query I rowsort
SELECT col0 * - + 36 FROM tab0
----
-3132
-3492
-540

query II rowsort
SELECT 19 * - - col2, 16 AS col1 FROM tab1 AS cor0
----
1121
16
1292
16
1824
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT + col0 * - CAST( - - col1 AS SIGNED ) + + col1 + - col0 AS col2 FROM tab1 cor0
----
-4321
-505
-751

skipif mysql # not compatible
query I rowsort label-3759
SELECT + col0 * - CAST ( - - col1 AS INTEGER ) + + col1 + - col0 AS col2 FROM tab1 cor0
----
-4321
-505
-751

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT + - COUNT( + - 3 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3760
SELECT DISTINCT + - COUNT ( + - 3 ) col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3761
SELECT DISTINCT 5 * - COUNT( CAST( + - 66 AS SIGNED ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT 5 * - COUNT ( CAST ( + - 66 AS INTEGER ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - - col0 * 90 * - col2 FROM tab2 WHERE NOT - 4 IS NULL
----
-230400
-391500
-95220

query I rowsort
SELECT DISTINCT - ( 78 ) * - 33 FROM tab1
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL + COUNT( * ) * - + 68 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + COUNT ( * ) * - + 68 FROM tab2
----
-204

query II rowsort
SELECT DISTINCT + 37, + col1 AS col0 FROM tab1
----
37
14
37
47
37
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT + 78 + + ( CAST( - + 29 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 7 + - 63 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 78 + + ( CAST ( - + 29 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 7 + - 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + + col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + + col0 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 57 * + 30 + + + 38 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 7c45ca01779fbc6bd6de8d9ff6b2d0e1

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT 8 DIV - col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT 8 / - col1 FROM tab0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - ( - MAX( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3771
SELECT - ( - MAX ( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-3772
SELECT - col2 DIV + + 63 + - + col0 * - 88 AS col0, - col0 FROM tab2 AS cor0
----
4048
-46
5632
-64
6600
-75

skipif mysql # not compatible
query II rowsort label-3772
SELECT - col2 / + + 63 + - + col0 * - 88 AS col0, - col0 FROM tab2 AS cor0
----
4048
-46
5632
-64
6600
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 - ( + col0 ) col0 FROM tab1 AS cor0 WHERE 75 + + 89 <> - col2 * - col0 / col2
----
-32
-38
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3775
SELECT ALL + col2 + col1 + + 6 DIV 35 * - CAST( 13 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + col2 + col1 + + 6 / 35 * - CAST ( 13 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - + 87 + + 80 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + col0 + 34 * + + 37 FROM tab2
----
1304
1322
1333

query I rowsort
SELECT 94 + + 87 * - 49 FROM tab0
----
-4169
-4169
-4169

query I rowsort
SELECT + 17 + - - col0 * + 2 FROM tab1
----
119
187
199

query I rowsort
SELECT DISTINCT - 4 + + col1 FROM tab0
----
-3
17
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 62 * col2 + col1 - - 90 col1 FROM tab2
----
191127
241089
72867

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 64, 70, - col0, - 47 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col0, + col2 + - col2 AS col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL - SUM( + - 64 ) AS col0 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - SUM ( + - 64 ) AS col0 FROM tab2 AS cor0
----
192

query I rowsort
SELECT DISTINCT 69 * 50 AS col1 FROM tab1 AS cor0
----
3450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - + 51 DIV + 95 AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - + 51 / + 95 AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 7 * + - col1 AS col1 FROM tab0 cor0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT + COUNT( DISTINCT - 65 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3790
SELECT + COUNT ( DISTINCT - 65 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col0 * 28 AS col0 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # DIV for integer division: 
query II rowsort label-3792
SELECT ALL + 70 * + + col0 col2, + 42 DIV - 40 AS col2 FROM tab2
----
3220
-1
4480
-1
5250
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3792
SELECT ALL + 70 * + + col0 col2, + 42 / - 40 AS col2 FROM tab2
----
3220
-1
4480
-1
5250
-1

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col1 * col0 * - 1 * - 38 AS col2 FROM tab1
----
16150
162526
27132

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT - COUNT( - + col1 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT - COUNT ( - + col1 ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col0 * + - col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT ALL + + col0 + + col0 DIV - - col0 AS col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + + col0 + + col0 / - - col0 AS col2 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col2 * - col0 + + col1 / - + 99 AND + col0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 0 col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT ALL - 58 * + - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - 58 * + - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 - + col0 FROM tab0 AS cor0
----
15
-96
87
-108
97
-98

query I rowsort
SELECT ALL + - col2 / + col0 AS col2 FROM tab2 AS cor0 WHERE 17 = - + 10
----

query I rowsort
SELECT ALL + 89 * 97 AS col2 FROM tab0 cor0
----
8633
8633
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + 80 + - MAX( ALL + + 86 ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + 80 + - MAX ( ALL + + 86 ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col1 + + col1 + + + 56 + 97 + + - col1 - ( + 48 ) AS col2 FROM tab2 AS cor0
----
156
172
182

query III rowsort
SELECT * FROM tab1 WHERE + 3 + - col1 > col0
----

query I rowsort
SELECT ALL + - 54 AS col2 FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT + col0 DIV - 7 - - col1 AS col2 FROM tab2 AS cor0
----
45
57
68

skipif mysql # not compatible
query I rowsort label-3808
SELECT + col0 / - 7 - - col1 AS col2 FROM tab2 AS cor0
----
45
57
68

query I rowsort
SELECT - col2 - - 91 FROM tab1 AS cor0
----
-5
23
32

query I rowsort
SELECT ALL + - col0 * - 15 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT + col2 AS col2, col0 * + col0 - + ( col0 ) FROM tab2 cor0
----
23
2070
40
4032
58
5550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 AS col0, 52 col0 FROM tab1
----
-65
52
-65
52
-65
52

query II rowsort
SELECT DISTINCT - col0 AS col1, - col1 AS col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT col0 * + + 31 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT + ( - 74 ) AS col2 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab2 cor0 WHERE ( NOT - col1 IS NULL )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT + + COUNT( * ) + + 87 * - + 69 FROM tab2 AS cor0
----
-6000

skipif mysql # not compatible
query I rowsort label-3821
SELECT + + COUNT ( * ) + + 87 * - + 69 FROM tab2 AS cor0
----
-6000

query I rowsort
SELECT ALL 31 + + - col0 FROM tab1 AS cor0
----
-20
-54
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - - col1 - + ( - + 92 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col2 col1 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3825
SELECT + - COUNT( * ) DIV + COUNT( * ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3825
SELECT + - COUNT ( * ) / + COUNT ( * ) col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT - - 26 * - - COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - - 26 * - - COUNT ( * ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT - col0 - - - 23 FROM tab0 AS cor0
----
-110
-120
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL - 58 + COUNT( * ) + 26 * - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL - 58 + COUNT ( * ) + 26 * - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
23

query I rowsort
SELECT 46 + + + col2 AS col1 FROM tab0
----
145
56
93

query III rowsort
SELECT * FROM tab2 WHERE + + col1 < + - col0
----

query I rowsort
SELECT DISTINCT + 77 + - 78 AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT col0 + + ( + col0 ) * + col0 * + 1 + - CAST( NULL AS SIGNED ) + + + 27 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT col0 + + ( + col0 ) * + col0 * + 1 + - CAST ( NULL AS INTEGER ) + + + 27 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - 51 - SUM( + col0 ) * + + 29 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - 51 - SUM ( + col0 ) * + + 29 FROM tab2
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - col2 BETWEEN + + col1 * + col2 * + + ( + + col2 ) + + col0 * + col2 AND + - col0
----

query I rowsort
SELECT DISTINCT 55 - col2 AS col1 FROM tab1
----
-13
-4
-41

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) * - - 48 AS col1 FROM tab2 AS cor0
----
1104
1920
2784

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT DISTINCT 9, MIN( - + col2 ) col0 FROM tab0 cor0
----
9
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3838
SELECT DISTINCT 9, MIN ( - + col2 ) col0 FROM tab0 cor0
----
9
-99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 * - 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 14 FROM tab1 WHERE + 10 NOT BETWEEN ( col0 ) AND col0
----
14
14
14

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * ( + 90 * - col2 ) <> 72 * ( - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ( - COUNT( * ) ) AS col0 FROM tab0 WHERE NOT ( 13 * - 22 ) < ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT ( - COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT ( 13 * - 22 ) < ( col0 )
----
0

query I rowsort
SELECT DISTINCT col1 + col1 * 68 AS col2 FROM tab0
----
1449
5589
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT + COUNT( + col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3845
SELECT DISTINCT + COUNT ( + col1 ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL col0 * 69 + col1 * + col2 AS col0 FROM tab1
----
4863
6160
9475

query I rowsort
SELECT - 88 FROM tab0 WHERE + 2 BETWEEN ( - 15 ) AND col0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * 6 NOT IN ( - 80 * + col2 )
----

query I rowsort
SELECT - col0 + col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + col1 / - 1 AS col1 FROM tab1 WHERE 60 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 23 * col2 )
----

query I rowsort
SELECT ALL 15 AS col1 FROM tab0 WHERE - col2 * + ( 33 * 51 ) IS NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 WHERE NULL <= - col1 * 69
----

query I rowsort
SELECT DISTINCT - col1 - - col2 * 22 FROM tab0
----
199
2177
953

query I rowsort
SELECT DISTINCT - 78 + ( + col0 ) AS col1 FROM tab2
----
-14
-3
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT - CAST( 51 AS SIGNED ) AS col1 FROM tab2
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-3857
SELECT - CAST ( 51 AS INTEGER ) AS col1 FROM tab2
----
-51
-51
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col2 AND col0
----

query I rowsort
SELECT DISTINCT 68 + + 23 FROM tab1
----
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col2 / 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT DISTINCT col0 * + col1 + + col2 * - ( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
1661
1817
3328

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT col0 * + col1 + + col2 * - ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
1661
1817
3328

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE + col2 + col1 * + ( + ( - col2 ) ) NOT BETWEEN ( col2 * 28 ) AND NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT + COUNT( * ) * 12 FROM tab2 cor0 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT + COUNT ( * ) * 12 FROM tab2 cor0 WHERE ( col2 ) IS NULL
----
0

query I rowsort
SELECT ALL 65 AS col0 FROM tab1 cor0
----
65
65
65

query I rowsort
SELECT 17 + col2 * + 13 FROM tab2 AS cor0 WHERE NULL IS NULL
----
316
537
771

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT - col1 DIV - col0 AS col2 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3866
SELECT - col1 / - col0 AS col2 FROM tab0 cor0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + col2 + + 98 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3868
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + col2 + + 98 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT 44 FROM ( tab1 AS cor0 CROSS JOIN tab2 ) WHERE NOT + 9 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < col0 * - 59
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * 84 ) NOT BETWEEN ( + col1 ) AND col2 + col1
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - 2 > - ( col0 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT - 45 DIV 46 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT - 45 / 46 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NULL IN ( col1 + + col1 * 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL - 11 + - COUNT( * ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - 11 + - COUNT ( * ) FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT COUNT( + col2 ) * 17 AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3877
SELECT COUNT ( + col2 ) * 17 AS col2 FROM tab1 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 * 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT - - COUNT( * ) + - MIN( ( - col0 ) ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - - COUNT ( * ) + - MIN ( ( - col0 ) ) FROM tab2 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 50 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 72 - + col0 FROM tab1 AS cor0
----
-123
-157
-163

query I rowsort
SELECT DISTINCT 98 + + col1 - col0 * 14 FROM tab2
----
-495
-721
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 9 col2 FROM tab0
----
106
24
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT + CAST( NULL AS SIGNED ) * AVG ( - col1 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + 21 AND ( col2 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT + CAST ( NULL AS INTEGER ) * AVG ( - col1 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + 21 AND ( col2 * col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT + + 81 DIV - col2 AS col1 FROM tab2 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3885
SELECT + + 81 / - col2 AS col1 FROM tab2 cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) >= 21
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) >= 21
----
0

query I rowsort
SELECT ALL - 37 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query II rowsort
SELECT - col1, 5 AS col2 FROM tab2
----
-51
5
-67
5
-77
5

query I rowsort
SELECT + 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query II rowsort
SELECT - 10 AS col0, col1 * + ( - col1 ) FROM tab0 AS cor0
----
-10
-1
-10
-441
-10
-6561

query II rowsort
SELECT 50, col1 FROM tab1 AS cor0
----
50
14
50
47
50
5

query I rowsort
SELECT - - col2 * - 46 FROM tab0 cor0 WHERE NOT 65 IS NULL
----
-2162
-4554
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL + SUM( + col0 ) + - 5 col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3893
SELECT ALL + SUM ( + col0 ) + - 5 col2 FROM tab2 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3894
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST( - col1 AS SIGNED ) - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3894
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( - col1 AS INTEGER ) - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + MAX( + 74 ) AS col2 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3895
SELECT + MAX ( + 74 ) AS col2 FROM tab0 AS cor0
----
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 1 * - - 47 + + 35
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3898
SELECT DISTINCT + CAST( + 78 AS SIGNED ) col0, 22 AS col0 FROM tab0
----
78
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3898
SELECT DISTINCT + CAST ( + 78 AS INTEGER ) col0, 22 AS col0 FROM tab0
----
78
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT ALL MAX( ALL CAST( + col1 AS SIGNED ) ) + + 60 FROM tab1
----
107

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL MAX ( ALL CAST ( + col1 AS INTEGER ) ) + + 60 FROM tab1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT 69 - 61 DIV col1 FROM tab0 WHERE NOT ( - + col0 ) BETWEEN 55 * col0 + ( - col1 ) AND ( + 83 )
----
67
69
8

skipif mysql # not compatible
query I rowsort label-3900
SELECT 69 - 61 / col1 FROM tab0 WHERE NOT ( - + col0 ) BETWEEN 55 * col0 + ( - col1 ) AND ( + 83 )
----
67
69
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * + col2 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3902
SELECT DISTINCT + col1 DIV + 31 AS col0, - 68 FROM tab1
----
0
-68
1
-68

skipif mysql # not compatible
query II rowsort label-3902
SELECT DISTINCT + col1 / + 31 AS col0, - 68 FROM tab1
----
0
-68
1
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL 72 * + SUM( DISTINCT + col2 ) FROM tab2
----
8712

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL 72 * + SUM ( DISTINCT + col2 ) FROM tab2
----
8712

query III rowsort
SELECT * FROM tab0 WHERE ( + 38 ) NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT + 25 + - col2 * CAST( + 56 AS SIGNED ) AS col2 FROM tab2
----
-1263
-2215
-3223

skipif mysql # not compatible
query I rowsort label-3905
SELECT + 25 + - col2 * CAST ( + 56 AS INTEGER ) AS col2 FROM tab2
----
-1263
-2215
-3223

query I rowsort
SELECT - + col1 + - 85 FROM tab2 cor0
----
-136
-152
-162

query I rowsort
SELECT + + col2 * - col1 + + col2 + + - 64 AS col2 FROM tab0 AS cor0
----
-264
-3824
-64

query I rowsort
SELECT col0 + - + col1 + + - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT + ( + col2 ) * - ( + + 45 ) + col0 AS col0 FROM tab2 AS cor0
----
-1736
-2535
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL - MIN( + 98 ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - MIN ( + 98 ) FROM tab2 AS cor0
----
-98

query I rowsort
SELECT + 79 FROM tab2 AS cor0 WHERE ( ( col1 ) * - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT DISTINCT 63 + CAST( NULL AS SIGNED ) * + 65 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT 63 + CAST ( NULL AS INTEGER ) * + 65 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - - col1 * + - 19 + + col1 AS col0 FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT col0 - - 25 FROM tab1
----
110
116
76

query I rowsort
SELECT - 8 * + col2 + - 85 + 31 / + col2 + col0 AS col1 FROM tab2 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL - COUNT( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - COUNT ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL col2 + - 76 FROM tab1 AS cor0 WHERE - - col1 * + CAST( NULL AS SIGNED ) IS NOT NULL AND col0 * 66 >= ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL col2 + - 76 FROM tab1 AS cor0 WHERE - - col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL AND col0 * 66 >= ( + col2 )
----

query I rowsort
SELECT - 80 FROM tab2 WHERE NOT col0 * + col2 + + col1 NOT BETWEEN - - 59 AND NULL
----

query I rowsort
SELECT ALL col1 * - ( + 93 ) FROM tab0
----
-1953
-7533
-93

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT DISTINCT 61, COUNT( * ) AS col0 FROM tab2
----
61
3

skipif mysql # not compatible
query II rowsort label-3921
SELECT DISTINCT 61, COUNT ( * ) AS col0 FROM tab2
----
61
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT DISTINCT + MIN( + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT + MIN ( + col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL 63 * - MAX( + + col2 ) col0 FROM tab1
----
-6048

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3923
SELECT ALL 63 * - MAX ( + + col2 ) col0 FROM tab1
----
-6048

query II rowsort
SELECT DISTINCT 62 AS col2, + ( - 7 ) AS col0 FROM tab0
----
62
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3925
SELECT - CAST( NULL AS SIGNED ) AS col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3925
SELECT - CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 70 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT - + COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + CAST( - 98 AS SIGNED ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3927
SELECT - + COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + CAST ( - 98 AS INTEGER ) IS NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT + COUNT( * ) AS col1, 36 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
108

skipif mysql # not compatible
query II rowsort label-3929
SELECT + COUNT ( * ) AS col1, 36 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
108

query I rowsort
SELECT col1 * + + col1 * + col1 FROM tab2
----
132651
300763
456533

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT SUM( ALL + + ( + 67 ) ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-3931
SELECT SUM ( ALL + + ( + 67 ) ) FROM tab1
----
201

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + - ( - col2 ), col0 + col2 )
----

query I rowsort
SELECT - + 36 AS col0 FROM tab1 WHERE NOT 32 BETWEEN + 52 AND - 53
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - col2 * 72 * - - col0 AS col0 FROM tab0
----
-50760
-62640
-691416

query I rowsort
SELECT 15 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT 70 * - 88 FROM tab1
----
-6160
-6160
-6160

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 41 NOT IN ( - 22 * - col2, 18 * ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3938
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 92 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + - 57 FROM tab2 AS cor0
----
-11
18
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 94 col2 FROM tab1 cor0
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT - 68 + col0 DIV col2 AS col1 FROM tab1
----
-67
-67
-68

skipif mysql # not compatible
query I rowsort label-3942
SELECT - 68 + col0 / col2 AS col1 FROM tab1
----
-67
-67
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT ALL col2 DIV + - 84 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL col2 / + - 84 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - ( 85 ) AS col2 FROM tab2
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + COUNT( * ) * ( + COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3945
SELECT + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT + ( 31 ) AS col0 FROM tab1
----
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + 95 / - col2
----

query I rowsort
SELECT + - col0 - + + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + MAX( ALL 74 ) * - COUNT( * ) + 2 * + 24 * - + COUNT( * ) * + SUM( ALL + col2 ) + - COUNT( * ) AS col0 FROM tab1 cor0
----
-32337

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + MAX ( ALL 74 ) * - COUNT ( * ) + 2 * + 24 * - + COUNT ( * ) * + SUM ( ALL + col2 ) + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-32337

query I rowsort
SELECT DISTINCT - col2 - + col0 * 26 AS col0 FROM tab1
----
-1422
-2269
-2434

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT - + SUM( ALL + - 50 ) * - COUNT( * ) + + - MAX( col2 ) + - 66 FROM tab0 WHERE + - col2 IS NOT NULL
----
-615

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT - + SUM ( ALL + - 50 ) * - COUNT ( * ) + + - MAX ( col2 ) + - 66 FROM tab0 WHERE + - col2 IS NOT NULL
----
-615

query I rowsort
SELECT - - 25 + - col1 * col2 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-1319
-270
-3171

query II rowsort
SELECT DISTINCT + ( col2 ), col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT + MIN( DISTINCT 19 ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + MIN ( DISTINCT 19 ) AS col2 FROM tab1 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT - + ( CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - + ( CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 * col0 - col1 FROM tab2 AS cor0 WHERE NOT NULL <> - 85
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 + + - col1 * - + ( 10 ) + - col0 + + 23 ) NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 * + + col0, - col2 + 60 AS col2 FROM tab1 AS cor0
----
4896
-36
5015
1
6188
-8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3959
SELECT ALL + col2 * + + CAST( NULL AS SIGNED ), col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3959
SELECT ALL + col2 * + + CAST ( NULL AS INTEGER ), col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT CAST( NULL AS SIGNED ) * - 37 / col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT CAST ( NULL AS INTEGER ) * - 37 / col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 / 77 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + ( - + col1 ) * + + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3963
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0, 91 * - + 70 + - col0 FROM tab0 AS cor0
----
NULL
-6385
NULL
-6457
NULL
-6467

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, 91 * - + 70 + - col0 FROM tab0 AS cor0
----
NULL
-6385
NULL
-6457
NULL
-6467

query I rowsort
SELECT DISTINCT - + 23 * col1 + 19 AS col1 FROM tab0 AS cor0
----
-1844
-4
-464

query I rowsort
SELECT + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT col2 * + + col1 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT col2 * + + col1 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT 51 * + 72 FROM tab2 AS cor0
----
3672
3672
3672

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT + col2 + + + CAST( NULL AS SIGNED ) * ( - col0 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3970
SELECT DISTINCT + col2 + + + CAST ( NULL AS INTEGER ) * ( - col0 ) col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT 36 + + COUNT( * ) col1 FROM tab1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3972
SELECT 36 + + COUNT ( * ) col1 FROM tab1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 78 + col0 col0, col1 FROM tab0
----
-63
81
19
1
9
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - SUM( + col2 ) + + 34 AS col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - SUM ( + col2 ) + + 34 AS col1 FROM tab1 AS cor0
----
-189

query I rowsort
SELECT - + col2 + - col2 * col1 FROM tab1 AS cor0
----
-1440
-3264
-354

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 - + + 95 - + col1 NOT BETWEEN NULL AND 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT + - 18 * + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3977
SELECT + - 18 * + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 77 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 / col2 + col1 AS col0 FROM tab2 cor0 WHERE + 26 IS NULL
----

query II rowsort
SELECT ALL col2, col0 * ( - col1 ) FROM tab2 cor0
----
23
-2346
40
-4928
58
-5025

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT 89 * - + col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT DISTINCT - COUNT( - + 99 ) * - SUM( DISTINCT col2 ), 55 * AVG ( col0 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 12 <= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT - COUNT ( - + 99 ) * - SUM ( DISTINCT col2 ), 55 * AVG ( col0 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 12 <= NULL
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT DISTINCT + - 37 DIV + + col0 FROM tab0 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + - 37 / + + col0 FROM tab0 cor0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - MAX( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL = + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT - MAX ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL = + 18 )
----
NULL

query II rowsort
SELECT - col1 * + - col0 AS col0, col1 FROM tab2
----
2346
51
4928
77
5025
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3986
SELECT + 30 AS col0, CAST( - COUNT( * ) AS SIGNED ) DIV + 72 + - 35 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----
30
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3986
SELECT + 30 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) / + 72 + - 35 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----
30
-35

query I rowsort
SELECT - col2 * - - 62 FROM tab0
----
-2914
-6138
-620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3988
SELECT CAST( + - col0 AS SIGNED ) AS col2, + 71 FROM tab1
----
-51
71
-85
71
-91
71

skipif mysql # not compatible
query II rowsort label-3988
SELECT CAST ( + - col0 AS INTEGER ) AS col2, + 71 FROM tab1
----
-51
71
-85
71
-91
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 < - - col2 * - col1
----
3

skipif mysql # not compatible
query I rowsort label-3989
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 < - - col2 * - col1
----
3

query I rowsort
SELECT ALL + col1 * - - col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 57 FROM tab1 WHERE NOT NULL <> - col0 + + col0
----

query I rowsort
SELECT ALL + + 3 AS col2 FROM tab0 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col1 ) BETWEEN + col2 AND 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT ( + col0 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3994
SELECT ( + col0 ) / col1 AS col0 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3995
SELECT DISTINCT 4 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 4 - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - ( + - col2 ) * col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT + + 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query II rowsort
SELECT ALL + + ( + col1 ) * - - 2 / - - ( - 59 ) + - + col0 AS col1, 10 FROM tab2 AS cor0 WHERE NOT + col2 + - + col0 BETWEEN ( NULL ) AND 89
----

query I rowsort
SELECT ALL - + col1 * + + 24 FROM tab1 AS cor0
----
-1128
-120
-336

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * - 84 + + + col2 + + col0 + + + ( 83 ) / col1 IS NULL
----

query II rowsort
SELECT ALL - + ( + col1 ) * - col1 AS col0, - 15 FROM tab1 AS cor0
----
196
-15
2209
-15
25
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT + col1 * + + ( CAST( - col2 AS SIGNED ) ) + - col2 AS col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

skipif mysql # not compatible
query I rowsort label-4003
SELECT + col1 * + + ( CAST ( - col2 AS INTEGER ) ) + - col2 AS col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4004
SELECT ALL - - CAST( - 20 AS SIGNED ) DIV - col1 + + col2 FROM tab0 AS cor0
----
10
119
47

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - - CAST ( - 20 AS INTEGER ) / - col1 + + col2 FROM tab0 AS cor0
----
10
119
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT DISTINCT + col0 * - + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + col0 * - + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + - 81 AS col0 FROM tab1 AS cor0
----
-140
-149
-177

query I rowsort
SELECT DISTINCT + 32 + - 84 AS col0 FROM tab2 AS cor0
----
-52

query II rowsort
SELECT DISTINCT col0, 16 AS col0 FROM tab0
----
15
16
87
16
97
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * - col0 col0 FROM tab2
----
-3082
-4288
-5025

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - - 43 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + 51 ) + - col1 + 41 IN ( + - 13 - col0 * + + 12, + col1 * + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + 51 ) + - col1 + 41 IN ( + - 13 - col0 * + + 12, + col1 * + col1 )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4012
SELECT ALL CAST( NULL AS DECIMAL ) + + col2 * - ( - col2 ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4012
SELECT ALL CAST ( NULL AS REAL ) + + col2 * - ( - col2 ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - 97 - col0 AS col0 FROM tab2 AS cor0
----
-143
-161
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT MAX( + col1 ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4014
SELECT MAX ( + col1 ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
80

query I rowsort
SELECT - col0 + - ( - 96 ) AS col2 FROM tab2 cor0
----
21
32
50

query I rowsort
SELECT DISTINCT - col2 + col2 + 35 AS col0 FROM tab0 AS cor0
----
35

query II rowsort
SELECT col2 * + col2 + - - col2 + + col1 * - col2 * - - 30 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-113158
58
-34638
23
-90760
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT - COUNT( * ) - - ( + 82 ) AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - COUNT ( * ) - - ( + 82 ) AS col2 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ( col1 ) + 85 * - ( col0 ) FROM tab2 AS cor0
----
-3859
-5363
-6308

query I rowsort
SELECT DISTINCT + col0 * + 68 AS col1 FROM tab0
----
1020
5916
6596

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col2 <> col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 43 BETWEEN + 8 - 67 AND ( ( - 55 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT - MIN( DISTINCT - col0 ) DIV - 87 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4024
SELECT - MIN ( DISTINCT - col0 ) / - 87 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 59 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 * + + col0 + col2 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4027
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - MAX( - 93 ) AS col2 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4028
SELECT - MAX ( - 93 ) AS col2 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + 31 * + - 80 * - COUNT( * ) FROM tab2 AS cor0
----
7440

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 31 * + - 80 * - COUNT ( * ) FROM tab2 AS cor0
----
7440

query II rowsort
SELECT col1 * - 68 AS col0, col0 AS col2 FROM tab1 AS cor0
----
-3196
91
-340
85
-952
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - + col0 BETWEEN + ( 54 ) AND NULL ) )
----

query II rowsort
SELECT 92, col0 FROM tab2
----
92
46
92
64
92
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT COUNT( * ) DIV 26 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT COUNT ( * ) / 26 AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 27 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + 21 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT DISTINCT - col1, + col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL - + 60 + 41 AS col0 FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT ALL - 71 col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-71
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4039
SELECT ALL - 71 col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-71
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + - 17 >= + 53
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4042
SELECT - COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + ( + SUM( DISTINCT col1 ) ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4043
SELECT + ( + SUM ( DISTINCT col1 ) ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL 17 + - col2 FROM tab1 AS cor0
----
-42
-51
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT MAX( ALL - col0 ) + COUNT( * ) AS col1 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT MAX ( ALL - col0 ) + COUNT ( * ) AS col1 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT col1 * col0 * col1 * + 33 AS col0 FROM tab1
----
329868
6633627
70125

query I rowsort
SELECT DISTINCT - 62 - col2 FROM tab0
----
-109
-161
-72

query I rowsort
SELECT + col0 + - 24 FROM tab1
----
27
61
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 - - 95 - - col0 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + + col1 / 98 NOT BETWEEN 86 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - - 92 AS col2 FROM tab0
----
107
179
189

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT + col1 + + col2 DIV + col0 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4052
SELECT + col1 + + col2 / + col0 AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT + 63 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-4053
SELECT + 63 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-189

query I rowsort
SELECT DISTINCT col0 + - + col1 - + 58 * - + 99 * + 93 * + col0 AS col0 FROM tab2 AS cor0
----
24564271
34176371
40050458

query II rowsort
SELECT DISTINCT col2 AS col0, + 28 + + col2 * - 72 * + col1 FROM tab0 AS cor0
----
10
-15092
47
-274076
99
-7100

query I rowsort
SELECT ALL col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT ALL - 84 DIV col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - 84 / col0 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT DISTINCT + 90 DIV - + 48 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + 90 / - + 48 AS col0 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 * - 60 FROM tab2 AS cor0
----
-1380
-2400
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL + + SUM( DISTINCT + + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL + + SUM ( DISTINCT + + col2 ) AS col2 FROM tab0 cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT - 0 * - col2 - + col0 * + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 0 * - col2 - + col0 * + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT ALL + - 91 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + - 91 / + col0 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ( - 2 ) AS col0, col1 * - - col1 * + 18 FROM tab1
----
-2
3528
-2
39762
-2
450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4067
SELECT ALL col2 DIV - - CAST( + 54 AS SIGNED ) AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL col2 / - - CAST ( + 54 AS INTEGER ) AS col2 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 46 / - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col2 FROM tab1 cor0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT DISTINCT + col2 DIV 49 + 47 + col0 col0 FROM tab0 AS cor0
----
134
146
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4070
SELECT DISTINCT + col2 / 49 + 47 + col0 col0 FROM tab0 AS cor0
----
134
146
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4071
SELECT - - 77 * AVG ( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT - - 77 * AVG ( ALL CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + - - 31 FROM tab0 AS cor0
----
118
128
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 / - 4 - - col0 ) NOT BETWEEN NULL AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL + MAX( DISTINCT 38 ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + MAX ( DISTINCT 38 ) FROM tab1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT - col2 DIV + col1 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4075
SELECT - col2 / + col1 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-1
-11
-6

query I rowsort
SELECT - col1 * col1 FROM tab1 AS cor0 WHERE 84 IS NULL
----

query II rowsort
SELECT + ( + col0 ) + - 89 AS col2, col1 FROM tab1 AS cor0
----
-38
14
-4
5
2
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4078
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + + CAST( 12 AS SIGNED ) <> + col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-4078
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + + CAST ( 12 AS INTEGER ) <> + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT MIN( DISTINCT + + 33 ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4079
SELECT MIN ( DISTINCT + + 33 ) AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT ALL + col1 DIV ( + 76 ) + + col1 AS col1 FROM tab0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + col1 / ( + 76 ) + + col1 AS col1 FROM tab0
----
1
21
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + - SUM( col2 ) FROM tab2 WHERE - col0 = - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT + - SUM ( col2 ) FROM tab2 WHERE - col0 = - - col0
----
NULL

query I rowsort
SELECT DISTINCT + 60 + - - col2 * - col1 AS col2 FROM tab0
----
-150
-3747
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - ( - 64 ) * col2 col2 FROM tab2
----
1421
2483
3645

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - 54 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT DISTINCT - MAX( ALL CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - MAX ( ALL CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT - col1 * - + col2 DIV - col2 - - col2 + ( col1 ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4088
SELECT - col1 * - + col2 / - col2 - - col2 + ( col1 ) FROM tab1
----
59
68
96

query I rowsort
SELECT + - 87 * col1 AS col2 FROM tab2 AS cor0
----
-4437
-5829
-6699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 34 ) col0 FROM tab2 AS cor0
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 * col2 + + 16 col2 FROM tab0 AS cor0
----
1567
3283
346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT CAST( - MAX( DISTINCT col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4092
SELECT CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT + 57 AS col1, col1 FROM tab2 AS cor0
----
57
51
57
67
57
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + col0 - + 15 / + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( - 67 ) AS col0 FROM tab0 AS cor0
----
67

query II rowsort
SELECT ALL - col0, - 23 AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-23
-75
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - 42 * COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
378

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - 42 * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
378

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 = - ( + 63 ) * - col1 - - col2 + - col2
----

query I rowsort
SELECT ALL - col1 + + col1 + + - 84 + 88 * - col1 AS col1 FROM tab0
----
-172
-1932
-7212

query I rowsort
SELECT DISTINCT 75 * - - col0 AS col0 FROM tab2
----
3450
4800
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT + 27 * + + CAST( col1 AS SIGNED ) * - col2 FROM tab2
----
-104922
-31671
-83160

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + 27 * + + CAST ( col1 AS INTEGER ) * - col2 FROM tab2
----
-104922
-31671
-83160

query I rowsort
SELECT DISTINCT col1 * - + ( col1 ) FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - 54 NOT BETWEEN ( NULL ) AND - 51 + + + col0 * - col1 / + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4104
SELECT ALL - 0 DIV - col0, - col2 AS col0 FROM tab0
----
0
-10
0
-47
0
-99

skipif mysql # not compatible
query II rowsort label-4104
SELECT ALL - 0 / - col0, - col2 AS col0 FROM tab0
----
0
-10
0
-47
0
-99

query I rowsort
SELECT col1 * 63 + 90 FROM tab1
----
3051
405
972

query I rowsort
SELECT - 53 + ( - 10 ) FROM tab1 cor0
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT ALL col0 DIV + + 65 + - - col2 AS col0 FROM tab0 AS cor0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL col0 / + + 65 + - - col2 AS col0 FROM tab0 AS cor0
----
100
11
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 NOT BETWEEN NULL AND col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4109
SELECT - COUNT( * ) DIV - ( CAST( - + MAX( DISTINCT - col1 ) AS SIGNED ) ) - - 24 AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4109
SELECT - COUNT ( * ) / - ( CAST ( - + MAX ( DISTINCT - col1 ) AS INTEGER ) ) - - 24 AS col0 FROM tab2 AS cor0
----
24

query I rowsort
SELECT + 78 - + col2 FROM tab0 AS cor0
----
-21
31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT ALL + ( - - MAX( - + col2 ) ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT ALL + ( - - MAX ( - + col2 ) ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-4112
SELECT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col2 FROM tab1 AS cor0
----
4

query I rowsort
SELECT - 74 + + - col1 + + col1 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT - - col0 + + + ( - - col0 ) DIV + 29 FROM tab0 WHERE NULL IS NULL
----
100
15
90

skipif mysql # not compatible
query I rowsort label-4115
SELECT - - col0 + + + ( - - col0 ) / + 29 FROM tab0 WHERE NULL IS NULL
----
100
15
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT 32 - - COUNT( * ) AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT 32 - - COUNT ( * ) AS col2 FROM tab0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 - + + col0 col1 FROM tab0
----
-37
-47
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT DISTINCT col1 * + col1 + - - ( - - col0 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT col1 * + col1 + - - ( - - col0 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 78 - + col2 FROM tab2
----
20
38
55

query I rowsort
SELECT ALL - col2 - - 90 + col2 AS col2 FROM tab0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - MIN( - - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - MIN ( - - col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT + 45 * - col1 FROM tab1
----
-2115
-225
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 23 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 87 ) + + col0 + + 1 col0 FROM tab0 AS cor0
----
103
175
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL + + COUNT( * ) * 54 * - COUNT( * ) FROM tab0 cor0
----
-486

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + + COUNT ( * ) * 54 * - COUNT ( * ) FROM tab0 cor0
----
-486

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT col0 + - - 96 + - - col1 + col1 DIV - col1 FROM tab0 AS cor0
----
191
193
203

skipif mysql # not compatible
query I rowsort label-4126
SELECT col0 + - - 96 + - - col1 + col1 / - col1 FROM tab0 AS cor0
----
191
193
203

query I rowsort
SELECT ALL col2 * col2 + 29 AS col0 FROM tab1 AS cor0
----
3510
4653
9245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT ALL - - CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT ( - - MAX( + - col0 ) ), + 53 * 49 AS col2 FROM tab0
----
-15
2597

skipif mysql # not compatible
query II rowsort label-4130
SELECT ( - - MAX ( + - col0 ) ), + 53 * 49 AS col2 FROM tab0
----
-15
2597

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + COUNT( * ) * + 49 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-4131
SELECT + COUNT ( * ) * + 49 FROM tab2
----
147

query II rowsort
SELECT - 72, + col0 AS col2 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
-72
15
-72
87
-72
97

query I rowsort
SELECT - - col0 - + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + COUNT( DISTINCT + ( - 58 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4134
SELECT + COUNT ( DISTINCT + ( - 58 ) ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= - - col1 + + - 86 * - - col2
----

query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab0, tab0 AS cor0
----
97

query I rowsort
SELECT ALL - 92 + col1 AS col1 FROM tab0 AS cor0
----
-11
-71
-91

query I rowsort
SELECT - col0 + - 33 - - 19 * - col2 FROM tab1 AS cor0
----
-1239
-1416
-1908

query I rowsort
SELECT DISTINCT 56 + + + col1 - - + col1 FROM tab1
----
150
66
84

query I rowsort
SELECT ALL - 55 * + col2 AS col1 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4141
SELECT DISTINCT + 57 col1, 41 DIV + COUNT( * ) FROM tab2 AS cor0
----
57
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4141
SELECT DISTINCT + 57 col1, 41 / + COUNT ( * ) FROM tab2 AS cor0
----
57
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

query II rowsort
SELECT col1 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4145
SELECT - + col1 DIV - col0 AS col1, - col1 + - + col2 + - col2 FROM tab2 AS cor0
----
0
-183
1
-157
1
-97

skipif mysql # not compatible
query II rowsort label-4145
SELECT - + col1 / - col0 AS col1, - col1 + - + col2 + - col2 FROM tab2 AS cor0
----
0
-183
1
-157
1
-97

query I rowsort
SELECT ALL 35 + - - col1 AS col2 FROM tab0 AS cor0
----
116
36
56

query I rowsort
SELECT - col1 * col0 - 7 AS col0 FROM tab2 AS cor0
----
-2353
-4935
-5032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4148
SELECT - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 18 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT ALL + 27 + + 14 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT - col1 * - 32 + - - col0 * + + 26 FROM tab1 AS cor0
----
1774
2370
3870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4153
SELECT + + CAST( NULL AS SIGNED ), col2 * - + 89 * + col1 * + - col0 * + CAST( NULL AS SIGNED ) * - 89 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4153
SELECT + + CAST ( NULL AS INTEGER ), col2 * - + 89 * + col1 * + - col0 * + CAST ( NULL AS INTEGER ) * - 89 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - 33 + - + 63 FROM tab0 AS cor0
----
-96
-96
-96

query II rowsort
SELECT col1, col0 - + col0 * - - col1 FROM tab2 cor0
----
51
-2300
67
-4950
77
-4864

query I rowsort
SELECT DISTINCT + - 12 + col0 FROM tab0 cor0
----
3
75
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 37 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 15 + col1 AS col2 FROM tab2 cor0
----
66
82
92

query I rowsort
SELECT - 81 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-81
-81
-81

query I rowsort
SELECT col1 + - 13 * + + 88 AS col2 FROM tab1
----
-1097
-1130
-1139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4161
SELECT + COUNT( * ) DIV + COUNT( * ) + - 93 + 36 + 82 + COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-4161
SELECT + COUNT ( * ) / + COUNT ( * ) + - 93 + 36 + 82 + COUNT ( * ) FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT ALL MIN( col0 ) AS col0, - COUNT( * ) FROM tab2
----
46
-3

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL MIN ( col0 ) AS col0, - COUNT ( * ) FROM tab2
----
46
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT col2 + + 30 DIV 65 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4163
SELECT col2 + + 30 / 65 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE ( col1 + - col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4164
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( col1 + - col1 IS NOT NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - + ( COUNT( * ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4165
SELECT - + ( COUNT ( * ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT - - col1 + - col2 + + col1 * - col0 FROM tab2 cor0
----
-2318
-4891
-5016

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 96 * + - 19 + - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT 37, + col2 AS col2 FROM tab0
----
37
10
37
47
37
99

query I rowsort
SELECT DISTINCT + col1 * - col0 * col1 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col2 + - col2 + col0 + + col0 + col1 * - ( - - col0 ) NOT BETWEEN - col0 AND - col1 + col2
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( ALL - col0 ) * + + 80 AS col2 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( ALL - col0 ) * + + 80 AS col2 FROM tab0 AS cor0
----
240

query II rowsort
SELECT ALL col2, 51 AS col2 FROM tab0 AS cor0
----
10
51
47
51
99
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT DISTINCT - - COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4176
SELECT DISTINCT - - COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT col1 * + 24 FROM tab1 cor0
----
1128
120
336

onlyif mysql # DIV for integer division: 
query II rowsort label-4178
SELECT - - col1 col1, - col1 DIV + 32 FROM tab0 AS cor0
----
1
0
21
0
81
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4178
SELECT - - col1 col1, - col1 / + 32 FROM tab0 AS cor0
----
1
0
21
0
81
-2

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 + 54 + ( + col0 ) * col0 FROM tab2 cor0
----
2272
4304
5813

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL COUNT( - + ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE col1 * col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL COUNT ( - + ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE col1 * col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col0 + col2 + + 42 FROM tab0 AS cor0
----
104
139
238

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 37 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4185
SELECT - col2, - col2 DIV + - 64 AS col2 FROM tab2
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-4185
SELECT - col2, - col2 / + - 64 AS col2 FROM tab2
----
-23
0
-40
0
-58
0

query II rowsort
SELECT col1, + 40 * 27 + + col2 AS col0 FROM tab2
----
51
1103
67
1138
77
1120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col0 * - col1 col1 FROM tab0
----
15
-1215
87
-1827
97
-97

query I rowsort
SELECT ALL col0 * + - 57 AS col2 FROM tab1
----
-2907
-4845
-5187

query I rowsort
SELECT DISTINCT col2 + + + col0 + 18 * + col2 FROM tab1
----
1206
1383
1875

query III rowsort
SELECT * FROM tab2 WHERE + - col2 + + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4192
SELECT ALL + - COUNT( * ) + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + - COUNT ( * ) + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4193
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - col2 * - + ( col0 ) + + - col2 ) IS NULL AND ( col2 * + 20 <= CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) - + col1 )
----

skipif mysql # not compatible
query III rowsort label-4193
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - col2 * - + ( col0 ) + + - col2 ) IS NULL AND ( col2 * + 20 <= CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) - + col1 )
----

query I rowsort
SELECT - col2 * 36 - - col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT + col0 + CAST( + 64 AS SIGNED ) FROM tab2 AS cor0
----
110
128
139

skipif mysql # not compatible
query I rowsort label-4195
SELECT + col0 + CAST ( + 64 AS INTEGER ) FROM tab2 AS cor0
----
110
128
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT DISTINCT - - col2 + + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - - col2 + + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 1 * + 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT - CAST( NULL AS SIGNED ) * + - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT - CAST ( NULL AS INTEGER ) * + - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 29 * - col1 - - col1 AS col1, col0 + + 72 FROM tab2 AS cor0 WHERE NOT col1 / col1 / col1 IS NULL
----
-1428
118
-1876
147
-2156
136

query I rowsort
SELECT DISTINCT ( + + col0 ) * - col0 AS col0 FROM tab2 cor0
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 84 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4202
SELECT ALL - ( + + ( + MAX( DISTINCT col1 ) ) ), COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) + + - SUM( - + col0 ) AS col2 FROM tab0 AS cor0
----
-81
199

skipif mysql # not compatible
query II rowsort label-4202
SELECT ALL - ( + + ( + MAX ( DISTINCT col1 ) ) ), COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) + + - SUM ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-81
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT - - SUM( DISTINCT + 19 ) col0 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4203
SELECT DISTINCT - - SUM ( DISTINCT + 19 ) col0 FROM tab1 AS cor0
----
19

query I rowsort
SELECT DISTINCT + col0 * - 35 AS col1 FROM tab0 AS cor0
----
-3045
-3395
-525

query I rowsort
SELECT col2 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT DISTINCT - 62 * + CAST( + ( + + AVG ( DISTINCT - 73 ) ) AS SIGNED ) AS col2 FROM tab0
----
4526

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - 62 * + CAST ( + ( + + AVG ( DISTINCT - 73 ) ) AS INTEGER ) AS col2 FROM tab0
----
4526

query I rowsort
SELECT ALL col2 * col0 * col2 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT * FROM tab2 WHERE NOT + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT COUNT( DISTINCT - col2 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT COUNT ( DISTINCT - col2 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4210
SELECT - + CAST( + MAX( ALL col2 ) AS SIGNED ) + 73 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4210
SELECT - + CAST ( + MAX ( ALL col2 ) AS INTEGER ) + 73 FROM tab1 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 BETWEEN NULL AND col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - COUNT( * ) * - - 78 + - COUNT( * ) + + 5 + 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-670

skipif mysql # not compatible
query I rowsort label-4212
SELECT - COUNT ( * ) * - - 78 + - COUNT ( * ) + + 5 + 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-670

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT + col1 DIV - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT + col1 / - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + + col1 + + + col0 + 37 - col2 FROM tab1 AS cor0
----
107
6
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + col1 + col2 * - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT ALL - 53 * + CAST( NULL AS SIGNED ) + col1 + 84 * - 88 * - - 80 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - 53 * + CAST ( NULL AS INTEGER ) + col1 + 84 * - 88 * - - 80 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL MAX( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51

query I rowsort
SELECT 60 + + - col2 + col0 FROM tab2 AS cor0
----
77
83
84

query I rowsort
SELECT DISTINCT - 60 - + + col2 AS col1 FROM tab1 AS cor0
----
-119
-128
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col2 col0 FROM tab0
----
100
451
6608

query I rowsort
SELECT DISTINCT col0 * + 19 + - + col1 AS col1 FROM tab0
----
1632
1842
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT - CAST( col0 AS SIGNED ) + + + col2 AS col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-4222
SELECT - CAST ( col0 AS INTEGER ) + + + col2 AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT col0 + - CAST( NULL AS SIGNED ) - - 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT col0 + - CAST ( NULL AS INTEGER ) - - 15 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 76
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 84 >= NULL
----

query II rowsort
SELECT - col2 - - 51 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-17
68
-45
96
-8
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT + COUNT( * ) * + - 75 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + COUNT ( * ) * + - 75 FROM tab0
----
-225

query I rowsort
SELECT ALL ( 70 ) AS col1 FROM tab1
----
70
70
70

query II rowsort
SELECT - col2 AS col1, 25 * - col2 - + 39 FROM tab1 cor0
----
-59
-1514
-68
-1739
-96
-2439

query I rowsort
SELECT ALL + ( - col1 ) * + - col1 + col0 AS col0 FROM tab2 cor0
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL + + COUNT( * ) * - + MAX( - - 35 ) AS col0 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + + COUNT ( * ) * - + MAX ( - - 35 ) AS col0 FROM tab1 AS cor0
----
-105

query II rowsort
SELECT DISTINCT 34 AS col2, col0 AS col0 FROM tab1 cor0
----
34
51
34
85
34
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 <= - col2 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4234
SELECT ALL + COUNT( ALL - 64 ) * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + COUNT ( ALL - 64 ) * + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4235
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ), + ( - - 50 ) AS col1 FROM tab2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-4235
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ), + ( - - 50 ) AS col1 FROM tab2
----
NULL
50

query I rowsort
SELECT DISTINCT + col0 * ( + col2 ) * ( - - 89 ) FROM tab2
----
227840
387150
94162

query I rowsort
SELECT ALL 31 * + + 82 * col0 FROM tab1
----
129642
216070
231322

query I rowsort
SELECT - ( + + 58 ) FROM tab0
----
-58
-58
-58

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 / + + 91 + col2 ) <> 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL COUNT( - 67 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL COUNT ( - 67 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4241
SELECT DISTINCT 58 AS col0, - ( - + COUNT( * ) ) AS col0 FROM tab0
----
58
3

skipif mysql # not compatible
query II rowsort label-4241
SELECT DISTINCT 58 AS col0, - ( - + COUNT ( * ) ) AS col0 FROM tab0
----
58
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT - COUNT( - 20 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4242
SELECT - COUNT ( - 20 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4243
SELECT DISTINCT + ( - 15 ) + CAST( + AVG ( col2 ) AS SIGNED ) col2, + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
59
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4243
SELECT DISTINCT + ( - 15 ) + CAST ( + AVG ( col2 ) AS INTEGER ) col2, + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
59
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT + 62 DIV - + col0 col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4244
SELECT + 62 / - + col0 col2 FROM tab2 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col1 + 95
----

query I rowsort
SELECT ALL - col1 + - col1 + col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL + 88 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + 88 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT ALL - 19 AS col2, COUNT( * ) AS col0 FROM tab2 cor0 WHERE + ( - col2 ) * ( + col1 ) + col1 * - - 59 < NULL
----
-19
0

skipif mysql # not compatible
query II rowsort label-4248
SELECT ALL - 19 AS col2, COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + ( - col2 ) * ( + col1 ) + col1 * - - 59 < NULL
----
-19
0

query I rowsort
SELECT ALL 42 + col0 + + - 44 AS col0 FROM tab2 AS cor0
----
44
62
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4250
SELECT ALL - 61 DIV - - col2 - 34 FROM tab1
----
-34
-34
-35

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - 61 / - - col2 - 34 FROM tab1
----
-34
-34
-35

query I rowsort
SELECT DISTINCT + ( - col1 ) + + 67 + col2 FROM tab2
----
30
39
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL col1 * CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - col1 + col2 FROM tab1
----
113
178
89

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4255
SELECT DISTINCT col0 * - 93 * + col1 - - CAST( NULL AS SIGNED ) / + col0 - col2 col1, + 88 AS col2 FROM tab1 AS cor0
----
NULL
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4255
SELECT DISTINCT col0 * - 93 * + col1 - - CAST ( NULL AS INTEGER ) / + col0 - col2 col1, + 88 AS col2 FROM tab1 AS cor0
----
NULL
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4256
SELECT DISTINCT - 37 DIV 79 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - 37 / 79 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + ( + 95 ) + + col1 + - - col2 + 16 FROM tab1 AS cor0
----
-15
31
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 - - ( - 41 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-18
17

query II rowsort
SELECT DISTINCT - col0 * ( + + col1 ), col1 AS col1 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < + 35
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - 29 = + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 * - col2 + - 44 + + col1 AS col1, + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * + 16 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19, 92 col1 FROM tab1
----
19
92
19
92
19
92

query I rowsort
SELECT + col2 * + + col0 AS col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL + + 27 AS col0 FROM tab0 WHERE NOT - + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + 10 * - COUNT( * ) * - COUNT( * ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4268
SELECT + 10 * - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT + 95 DIV + 86 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 95 / + 86 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - + 84 * - 12 - COUNT( * ) FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
1005

skipif mysql # not compatible
query I rowsort label-4270
SELECT - + 84 * - 12 - COUNT ( * ) FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
1005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT + 2 + - + 21 + + CAST( NULL AS SIGNED ) + + - col1 - 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT + 2 + - + 21 + + CAST ( NULL AS INTEGER ) + + - col1 - 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT DISTINCT - ( + col0 ) + col1 + - 39 DIV - col2 FROM tab2 cor0
----
-8
13
6

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - ( + col0 ) + col1 + - 39 / - col2 FROM tab2 cor0
----
-8
13
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT COUNT( * ) + MIN( ALL CAST( col0 AS SIGNED ) ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4273
SELECT COUNT ( * ) + MIN ( ALL CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1
----
54

query I rowsort
SELECT ALL + col0 * + 14 FROM tab1
----
1190
1274
714

query I rowsort
SELECT DISTINCT col2 * + ( col1 ) FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) NOT IN ( col2 / + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 88 * - col1 FROM tab0
----
-1848
-7128
-88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 30 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + + col1 * col2 AS col2 FROM tab2
----
1219
3144
3961

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col0 ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 IN ( + col0 + 41 )
----
3

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 IN ( + col0 + 41 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL + SUM( ALL 96 ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + SUM ( ALL 96 ) FROM tab0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT DISTINCT - 23 * - COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - 23 * - COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT 41 + COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT 41 + COUNT ( * ) FROM tab1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT MIN( ALL - CAST( - col2 AS SIGNED ) ) * MAX( DISTINCT + col2 + + col2 ) AS col0 FROM tab0
----
1980

skipif mysql # not compatible
query I rowsort label-4285
SELECT MIN ( ALL - CAST ( - col2 AS INTEGER ) ) * MAX ( DISTINCT + col2 + + col2 ) AS col0 FROM tab0
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT DISTINCT + CAST( SUM( ALL - col1 ) AS SIGNED ) + - ( + CAST( + 74 AS SIGNED ) ) col2 FROM tab1 WHERE col0 + + col1 = + col2 * 3 - - col0 / - 47
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4286
SELECT DISTINCT + CAST ( SUM ( ALL - col1 ) AS INTEGER ) + - ( + CAST ( + 74 AS INTEGER ) ) col2 FROM tab1 WHERE col0 + + col1 = + col2 * 3 - - col0 / - 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4287
SELECT COUNT( * ) + COUNT( - col2 ) DIV + ( + ( - COUNT( * ) ) ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4287
SELECT COUNT ( * ) + COUNT ( - col2 ) / + ( + ( - COUNT ( * ) ) ) AS col2 FROM tab1
----
2

query I rowsort
SELECT - 2 * 41 FROM tab2
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + COUNT( DISTINCT + col0 ) FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT + COUNT ( DISTINCT + col0 ) FROM tab0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT 92 * + col2 AS col0 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT 30 * 90 FROM tab2
----
2700
2700
2700

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) <= col2 / + 57 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL col0 * - col2 + - col1 FROM tab2
----
-1109
-2637
-4417

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - COUNT( DISTINCT - 19 ) * MAX( ALL - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4295
SELECT - COUNT ( DISTINCT - 19 ) * MAX ( ALL - col2 ) FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT DISTINCT + col2 DIV + 72 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + col2 / + 72 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT col0 - - col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT ALL - col0 DIV - 87 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - col0 / - 87 AS col2 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT ALL 45 DIV + col2 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 45 / + col2 AS col1 FROM tab0
----
0
0
4

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col1 ) BETWEEN + col2 * + col1 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT DISTINCT MAX( DISTINCT ( col2 ) ) DIV 87 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT MAX ( DISTINCT ( col2 ) ) / 87 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + COUNT( * ) * - 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
-783

skipif mysql # not compatible
query I rowsort label-4305
SELECT + COUNT ( * ) * - 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + 14 * + COUNT( col0 ) FROM tab0 WHERE NOT 62 + col2 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 14 * + COUNT ( col0 ) FROM tab0 WHERE NOT 62 + col2 <> col1
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + col2 / 67 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + - 16 AS col0 FROM tab2 cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT ALL 75 * MIN( ALL - CAST( NULL AS SIGNED ) ) + - MIN( 19 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL 75 * MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - MIN ( 19 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT - col1 + 28 FROM tab2 AS cor0
----
-23
-39
-49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - ( col1 ) + - col1 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT 43 * - - COUNT( * ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-4312
SELECT 43 * - - COUNT ( * ) AS col1 FROM tab2
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT + col2 DIV + + 50 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4313
SELECT + col2 / + + 50 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT col0 * 27 AS col1 FROM tab0
----
2349
2619
405

query I rowsort
SELECT 64 AS col0 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4316
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( col2 ) AND ( + 95 * CAST( + 12 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4316
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( col2 ) AND ( + 95 * CAST ( + 12 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT - col1 >= + 22 * CAST( NULL AS SIGNED ) + 61
----

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT - col1 >= + 22 * CAST ( NULL AS INTEGER ) + 61
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE ( + ( - ( + col1 ) ) + 44 ) NOT IN ( 76 + col2 )
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 13 IS NULL
----

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE ( - 43 / + 34 ) NOT IN ( col0 + - col1 * + ( + col1 ) )
----
51
67
77

query I rowsort
SELECT DISTINCT - + col0 + + col0 + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + ( + MIN( ALL - col2 ) ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4322
SELECT + ( + MIN ( ALL - col2 ) ) col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL - col2 + + 18 + ( CAST( NULL AS SIGNED ) + col0 * + 16 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - col2 + + 18 + ( CAST ( NULL AS INTEGER ) + col0 * + 16 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( 83 ) * 91 FROM tab1
----
445627
513604
725088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 13 ) col0 FROM tab2 cor0
----
13
13
13

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - col0 NOT IN ( + 11 * + col1 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 37 / - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4327
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 37 / - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL + SUM( + 94 ) * 29 FROM tab1 AS cor0 WHERE NOT ( - 59 * + col0 ) IS NULL
----
8178

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + SUM ( + 94 ) * 29 FROM tab1 AS cor0 WHERE NOT ( - 59 * + col0 ) IS NULL
----
8178

query II rowsort
SELECT + col0 AS col2, 49 AS col2 FROM tab1 cor0
----
51
49
85
49
91
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT - col1 * + - CAST( 54 AS SIGNED ) + col2 * + 12 FROM tab2 AS cor0
----
3030
4314
4638

skipif mysql # not compatible
query I rowsort label-4330
SELECT - col1 * + - CAST ( 54 AS INTEGER ) + col2 * + 12 FROM tab2 AS cor0
----
3030
4314
4638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * + + col0 col1 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + 41 + COUNT( * ) FROM tab0 AS cor0 WHERE - ( - + col1 ) BETWEEN ( NULL ) AND col0
----
41

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + 41 + COUNT ( * ) FROM tab0 AS cor0 WHERE - ( - + col1 ) BETWEEN ( NULL ) AND col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + + COUNT( * ) * - + MAX( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4333
SELECT + + COUNT ( * ) * - + MAX ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT ALL - + 61 * col2 + - + col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT col1 + CAST( - 15 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
36
52
62

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT col1 + CAST ( - 15 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
36
52
62

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( - 63 ) = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * + - 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT col0 - + CAST( + 77 AS SIGNED ) FROM tab2
----
-13
-2
-31

skipif mysql # not compatible
query I rowsort label-4338
SELECT col0 - + CAST ( + 77 AS INTEGER ) FROM tab2
----
-13
-2
-31

query I rowsort
SELECT DISTINCT col2 + - 83 AS col2 FROM tab1
----
-15
-24
13

query III rowsort
SELECT * FROM tab1 WHERE + col1 >= + col1 AND NOT col2 - col2 NOT IN ( col1 )
----

query I rowsort
SELECT ALL col1 * + - 83 AS col0 FROM tab1
----
-1162
-3901
-415

query I rowsort
SELECT DISTINCT + col1 * - 28 FROM tab1
----
-1316
-140
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL - COUNT( + - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - COUNT ( + - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT COUNT( ALL - ( - 34 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4345
SELECT COUNT ( ALL - ( - 34 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - 47 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4346
SELECT - 47 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
141

query I rowsort
SELECT ALL - col1 * + 7 AS col1 FROM tab1
----
-329
-35
-98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT ( - col1 * - ( - ( ( + col1 ) ) ) ) < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT DISTINCT - CAST( + 82 AS SIGNED ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - CAST ( + 82 AS INTEGER ) FROM tab0
----
-82

query I rowsort
SELECT ALL + col2 * - ( + ( + + col1 ) ) AS col0 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col2, - 76 AS col1 FROM tab0 AS cor0
----
1
-76
21
-76
81
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-4352
SELECT DISTINCT + + ( - col0 ) DIV + col2, 9 AS col2 FROM tab1 AS cor0
----
-1
9
0
9

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT + + ( - col0 ) / + col2, 9 AS col2 FROM tab1 AS cor0
----
-1
9
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT - COUNT( * ) * 43 FROM tab1 AS cor0 WHERE 65 * + col2 * + - col1 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - COUNT ( * ) * 43 FROM tab1 AS cor0 WHERE 65 * + col2 * + - col1 * col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT + CAST( - + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4354
SELECT + CAST ( - + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 WHERE NOT col0 * + + col1 - col1 + + - 5 * 79 IS NULL
----
9
9
9

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
59
68
96

query II rowsort
SELECT ALL 98 + 4 * col0, col0 FROM tab1 cor0
----
302
51
438
85
462
91

query II rowsort
SELECT DISTINCT - col2 * col1 + col2, col2 FROM tab1 AS cor0
----
-1248
96
-236
59
-3128
68

query I rowsort
SELECT ALL - - 8 AS col0 FROM tab0 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL 60 + - 90 + - ( + COUNT( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL 60 + - 90 + - ( + COUNT ( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4361
SELECT ALL + 51 + MAX( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) <> 60 + + - 51 + - - col1 * + col1 * 99 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + 51 + MAX ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) <> 60 + + - 51 + - - col1 * + col1 * 99 + col0
----
NULL

query II rowsort
SELECT ALL - 2, 94 AS col1 FROM tab1
----
-2
94
-2
94
-2
94

query II rowsort
SELECT ALL 55 AS col1, - col2 AS col0 FROM tab1
----
55
-59
55
-68
55
-96

query I rowsort
SELECT - 69 + col2 + col2 AS col0 FROM tab1
----
123
49
67

query I rowsort
SELECT col2 + + + col1 + - col2 * - col0 FROM tab0
----
833
901
9703

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE col0 + - col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT MAX( ALL - ( - - 82 ) ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT MAX ( ALL - ( - - 82 ) ) FROM tab1 AS cor0
----
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN + col1 + + 92 AND + col0
----

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN + col1 + + 92 AND + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4371
SELECT ALL 81 + col1 DIV + col2 AS col2, + col0 + - - col2 + + col0 * + - col0 - + 18 * + col2 FROM tab1
----
81
-4182
81
-8143
81
-9346

skipif mysql # not compatible
query II rowsort label-4371
SELECT ALL 81 + col1 / + col2 AS col2, + col0 + - - col2 + + col0 * + - col0 - + 18 * + col2 FROM tab1
----
81
-4182
81
-8143
81
-9346

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ( + COUNT( ALL - + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4372
SELECT ( + COUNT ( ALL - + col0 ) ) FROM tab2
----
3

query I rowsort
SELECT - 53 - + - col0 * - 67 + + 82 AS col2 FROM tab1
----
-3388
-5666
-6068

query I rowsort
SELECT + col1 - 88 FROM tab0
----
-67
-7
-87

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col0 - + 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - 12 + + ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4376
SELECT - 12 + + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT 68 + + col2 AS col0 FROM tab2 AS cor0 WHERE ( + - CAST( NULL AS SIGNED ) IS NULL )
----
108
126
91

skipif mysql # not compatible
query I rowsort label-4377
SELECT 68 + + col2 AS col0 FROM tab2 AS cor0 WHERE ( + - CAST ( NULL AS INTEGER ) IS NULL )
----
108
126
91

query I rowsort
SELECT - 84 + - 86 + + col0 * - 34 + + col1 * - + col2 FROM tab1 AS cor0
----
-3248
-3355
-6460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4379
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 9 + ( 33 ) + + 51 AS col0 FROM tab0 AS cor0
----
75

query II rowsort
SELECT col2, 19 FROM tab2
----
23
19
40
19
58
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 FROM tab1 WHERE col2 - col1 + - ( - + col2 ) NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 FROM tab1 WHERE col2 - col1 + - ( - + col2 ) NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT MAX( 79 ) * - COUNT( * ) AS col0 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT MAX ( 79 ) * - COUNT ( * ) AS col0 FROM tab0
----
-237

query I rowsort
SELECT + 91 FROM tab2 WHERE NOT + col1 IS NULL
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT ALL MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - + 33 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 33 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT DISTINCT 75 DIV - - COUNT( * ) AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT 75 / - - COUNT ( * ) AS col2 FROM tab2
----
25

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL = col2 * + 0 * + 66
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 * - ( - - col2 ) <> 91 + + - col2
----

query II rowsort
SELECT DISTINCT + - col2, + 48 * + 73 AS col2 FROM tab0 cor0
----
-10
3504
-47
3504
-99
3504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT + + CAST( + - 58 AS SIGNED ) FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-4390
SELECT + + CAST ( + - 58 AS INTEGER ) FROM tab2 AS cor0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 51 * - + col1 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - 17 + + - col0 AS col1 FROM tab0 AS cor0
----
-17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 32 <> ( - col2 + - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT COUNT( + 71 ) + - 92 AS col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4394
SELECT COUNT ( + 71 ) + - 92 AS col1 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 69 + - - 78 IN ( 76 )
----

query I rowsort
SELECT ALL + ( + col0 ) + - - col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 82 * + - col2 FROM tab1
----
-4838
-5576
-7872

query III rowsort
SELECT * FROM tab1 WHERE - 74 > NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE + - col2 * col0 + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4400
SELECT * FROM tab1 WHERE + + col0 NOT BETWEEN - 48 * + col2 * + - col2 * col0 + + + col2 AND + CAST( NULL AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4400
SELECT * FROM tab1 WHERE + + col0 NOT BETWEEN - 48 * + col2 * + - col2 * col0 + + + col2 AND + CAST ( NULL AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, col1 * + - col2 AS col0 FROM tab2
----
23
-1173
40
-3080
58
-3886

query I rowsort
SELECT - 91 + - col2 * - col1 FROM tab2 WHERE NULL NOT IN ( 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT 30 * + + ( MAX( DISTINCT 82 ) ) AS col1 FROM tab2
----
2460

skipif mysql # not compatible
query I rowsort label-4403
SELECT 30 * + + ( MAX ( DISTINCT 82 ) ) AS col1 FROM tab2
----
2460

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 AS col2 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT ALL - 81 AS col2, COUNT( * ) * + - 92 FROM tab1
----
-81
-276

skipif mysql # not compatible
query II rowsort label-4405
SELECT ALL - 81 AS col2, COUNT ( * ) * + - 92 FROM tab1
----
-81
-276

query I rowsort
SELECT 68 FROM tab1 AS cor0 WHERE ( ( 32 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4407
SELECT * FROM tab0 AS cor0 WHERE ( NOT + CAST( - + CAST( + + col1 AS SIGNED ) AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4407
SELECT * FROM tab0 AS cor0 WHERE ( NOT + CAST ( - + CAST ( + + col1 AS INTEGER ) AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT SUM( ALL - ( + - col1 ) ) + - + SUM( - + col2 ) col0 FROM tab2 AS cor0
----
316

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4408
SELECT SUM ( ALL - ( + - col1 ) ) + - + SUM ( - + col2 ) col0 FROM tab2 AS cor0
----
316

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < - 25 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT - + MIN( col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT - + MIN ( col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT COUNT( * ) + 80 AS col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4411
SELECT COUNT ( * ) + 80 AS col0 FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT ( col2 ) - ( col1 ) FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT CAST( - + CAST( col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 WHERE ( NULL ) >= ( - col1 * 79 )
----

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT CAST ( - + CAST ( col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 WHERE ( NULL ) >= ( - col1 * 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT DISTINCT - col2 - - - CAST( NULL AS SIGNED ) * - + 10 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT - col2 - - - CAST ( NULL AS INTEGER ) * - + 10 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4416
SELECT DISTINCT col1, col1 - + col1 * - 63 / - col0 - - col1 - - CAST( NULL AS SIGNED ) * + col1 - + 76 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4416
SELECT DISTINCT col1, col1 - + col1 * - 63 / - col0 - - col1 - - CAST ( NULL AS INTEGER ) * + col1 - + 76 AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT - - col2 AS col1, + 32 + + 96 AS col0 FROM tab0 cor0
----
10
128
47
128
99
128

query I rowsort
SELECT col2 * + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT - ( + 85 ) FROM tab2 AS cor0
----
-85

query I rowsort
SELECT + + 19 + + col0 - + ( + col0 ) * - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query II rowsort
SELECT 75 AS col2, ( col2 ) FROM tab0 AS cor0
----
75
10
75
47
75
99

query I rowsort
SELECT col0 * - - 63 * + col2 AS col2 FROM tab1
----
308448
315945
389844

query II rowsort
SELECT DISTINCT - col0 * + - col2 AS col2, - 15 AS col0 FROM tab2
----
1058
-15
2560
-15
4350
-15

query I rowsort
SELECT ALL - 81 * + col2 FROM tab1 WHERE NULL IS NULL
----
-4779
-5508
-7776

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT MIN( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT MIN ( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
23

query II rowsort
SELECT DISTINCT - - col2 * + 48 AS col0, col2 * col2 AS col2 FROM tab2 AS cor0
----
1104
529
1920
1600
2784
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + + COUNT( * ) * + 1 * + + 53 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-4427
SELECT + + COUNT ( * ) * + 1 * + + 53 FROM tab2 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT - MAX( - 20 ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - MAX ( - 20 ) AS col1 FROM tab1
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 11, col0 col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-11
15
-11
87
-11
97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 46 + + - ( 5 ) ) >= NULL AND col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - + 68 FROM tab0
----
-3196
-6732
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT - col2 FROM tab1 AS cor0 WHERE - col0 + CAST( - - col0 AS SIGNED ) < - 72
----

skipif mysql # not compatible
query I rowsort label-4432
SELECT - col2 FROM tab1 AS cor0 WHERE - col0 + CAST ( - - col0 AS INTEGER ) < - 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 2 ) col0 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4434
SELECT - 43 DIV col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 43 / col0 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4435
SELECT MIN( ( col1 ) ) DIV - + MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4435
SELECT MIN ( ( col1 ) ) / - + MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL + MAX( - ( - 19 ) ) col1 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4436
SELECT ALL + MAX ( - ( - 19 ) ) col1 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4437
SELECT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4438
SELECT DISTINCT + col0 + - CAST( - col2 AS SIGNED ) AS col1, 56 FROM tab1 cor0
----
144
56
147
56
159
56

skipif mysql # not compatible
query II rowsort label-4438
SELECT DISTINCT + col0 + - CAST ( - col2 AS INTEGER ) AS col1, 56 FROM tab1 cor0
----
144
56
147
56
159
56

query II rowsort
SELECT 41 AS col0, col2 AS col1 FROM tab1 AS cor0
----
41
59
41
68
41
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( + - ( + col0 ) ) AND + 36
----
91
47
68

query I rowsort
SELECT - col0 - - col0 + + + col2 AS col2 FROM tab1 WHERE - + col1 IS NULL
----

query I rowsort
SELECT + col0 + + + 85 AS col0 FROM tab1
----
136
170
176

query I rowsort
SELECT + col0 * + 9 + + col0 AS col1 FROM tab1
----
510
850
910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4444
SELECT - col1 / + CAST( NULL AS SIGNED ) + + col0 / 48 AS col0, col0 + - 78 AS col1 FROM tab0
----
NULL
-63
NULL
19
NULL
9

skipif mysql # not compatible
query II rowsort label-4444
SELECT - col1 / + CAST ( NULL AS INTEGER ) + + col0 / 48 AS col0, col0 + - 78 AS col1 FROM tab0
----
NULL
-63
NULL
19
NULL
9

query I rowsort
SELECT ALL + 16 * - 75 * - col0 - 22 + - col2 * - 80 FROM tab0
----
105178
124298
21738

query I rowsort
SELECT + 41 + + ( col0 ) FROM tab2
----
105
116
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + MAX( - 93 ) + + MAX( DISTINCT + col1 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4447
SELECT + MAX ( - 93 ) + + MAX ( DISTINCT + col1 ) FROM tab1
----
-46

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-59
-68
-96

query I rowsort
SELECT AVG ( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE + col0 BETWEEN - col2 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT DISTINCT - ( - 75 ) + 2 * + col0 + CAST( 81 + col2 AS SIGNED ) / + col1 FROM tab0 AS cor0 WHERE col2 IN ( col2 / + + col1 * + col1 * + col1 * 7 + 63 * col0 - + + 5 )
----

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - ( - 75 ) + 2 * + col0 + CAST ( 81 + col2 AS INTEGER ) / + col1 FROM tab0 AS cor0 WHERE col2 IN ( col2 / + + col1 * + col1 * + col1 * 7 + 63 * col0 - + + 5 )
----

query I rowsort
SELECT - 62 - + 79 FROM tab2
----
-141
-141
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL CAST( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL CAST ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - 33 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT DISTINCT + 94 * - CAST( + 15 AS SIGNED ) FROM tab2 cor0 WHERE NOT ( 73 ) IS NULL
----
-1410

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT + 94 * - CAST ( + 15 AS INTEGER ) FROM tab2 cor0 WHERE NOT ( 73 ) IS NULL
----
-1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT + CAST( + + MAX( col2 ) AS SIGNED ) * 0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CAST ( + + MAX ( col2 ) AS INTEGER ) * 0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT ALL - COUNT( * ) DIV + 61 * - - 17 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - COUNT ( * ) / + 61 * - - 17 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( NULL ) AND col1 / col0 + - + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT MAX( ALL - 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-4459
SELECT MAX ( ALL - 25 ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT DISTINCT + 78 AS col2, SUM( - - 20 ) + + ( - COUNT( * ) ) - - COUNT( * ) * - 78 AS col0 FROM tab1
----
78
-177

skipif mysql # not compatible
query II rowsort label-4460
SELECT DISTINCT + 78 AS col2, SUM ( - - 20 ) + + ( - COUNT ( * ) ) - - COUNT ( * ) * - 78 AS col0 FROM tab1
----
78
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT COUNT( * ) * - 78 AS col1 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-4461
SELECT COUNT ( * ) * - 78 AS col1 FROM tab1
----
-234

query I rowsort
SELECT DISTINCT + + 88 * + col0 + + + col0 AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
4539
7565
8099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT - + COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT - + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 91 col1, + col2 AS col2 FROM tab0 AS cor0
----
91
10
91
47
91
99

query I rowsort
SELECT DISTINCT + + col0 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT + 56 * col1 FROM tab1 AS cor0
----
2632
280
784

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT - MIN( ALL + - 14 ) FROM tab0 AS cor0 WHERE NULL < col2 / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT - MIN ( ALL + - 14 ) FROM tab0 AS cor0 WHERE NULL < col2 / - col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4468
SELECT + 0 DIV + - 66 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT + 0 / + - 66 * COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL 13 * COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL 13 * COUNT ( * ) FROM tab2
----
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col1 + - 24
----

query I rowsort
SELECT DISTINCT 37 * - col1 FROM tab2 cor0
----
-1887
-2479
-2849

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 51 * 46 - - 79 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 * + - col1 IS NOT NULL
----

query II rowsort
SELECT + 28 AS col1, - 53 + - col0 FROM tab1
----
28
-104
28
-138
28
-144

query I rowsort
SELECT + col1 - - + 94 AS col1 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 85 * + 62 FROM tab2
----
5270

query I rowsort
SELECT ALL - 87 + + + ( - col1 ) FROM tab0
----
-108
-168
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4478
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 1 - - - col1 + + - col1 * + col2 * + CAST( + col0 AS DECIMAL ) + col2 * + col1 + - 65 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 1 - - - col1 + + - col1 * + col2 * + CAST ( + col0 AS REAL ) + col2 * + col1 + - 65 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 * + 59 AS col2 FROM tab2
----
-1357
-2360
-3422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) * + 62 col1 FROM tab0 AS cor0
----
-1302
-5022
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT DISTINCT col1 + CAST( - - ( - col2 ) AS SIGNED ) * + - 15 AS col0 FROM tab0 AS cor0
----
1486
171
786

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT col1 + CAST ( - - ( - col2 ) AS INTEGER ) * + - 15 AS col0 FROM tab0 AS cor0
----
1486
171
786

query II rowsort
SELECT + ( - 48 ) + - + 75 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
-123
51
-123
85
-123
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT COUNT( * ) + + MIN( ALL + 93 ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4483
SELECT COUNT ( * ) + + MIN ( ALL + 93 ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT MIN( - 32 ) AS col1 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT MIN ( - 32 ) AS col1 FROM tab1
----
-32

query I rowsort
SELECT + col1 * - 72 FROM tab1 AS cor0
----
-1008
-3384
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT ALL + col0 DIV + col0 + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + col0 / + col0 + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT DISTINCT - 59 * col0 FROM tab0 AS cor0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - ( + COUNT( DISTINCT - + col2 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT - ( + COUNT ( DISTINCT - + col2 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4490
SELECT ALL CAST( - 61 AS SIGNED ) DIV - ( - + col0 ) AS col0, col2 AS col1 FROM tab0 AS cor0
----
-4
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL CAST ( - 61 AS INTEGER ) / - ( - + col0 ) AS col0, col2 AS col1 FROM tab0 AS cor0
----
-4
47
0
10
0
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - 53 ) * 4 + + 80 + - + 76 IS NOT NULL
----

query II rowsort
SELECT - + col0 * + col1, col1 FROM tab0 cor0
----
-1215
81
-1827
21
-97
1

query I rowsort
SELECT col2 * 4 AS col0 FROM tab1 AS cor0
----
236
272
384

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - SUM( ALL + - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - SUM ( ALL + - col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 >= - - 59 - - col1 + - col1 * col0 * - 60
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT - COUNT( * ) AS col2, COUNT( * ) + 29 - - 96 FROM tab0
----
-3
128

skipif mysql # not compatible
query II rowsort label-4496
SELECT - COUNT ( * ) AS col2, COUNT ( * ) + 29 - - 96 FROM tab0
----
-3
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT - SUM( DISTINCT + col0 ) FROM tab0 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT - SUM ( DISTINCT + col0 ) FROM tab0 WHERE NOT NULL < col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT DISTINCT - CAST( + COUNT( ALL + - 16 ) AS SIGNED ) FROM tab1 WHERE NOT NULL IN ( + - 0 + + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT - CAST ( + COUNT ( ALL + - 16 ) AS INTEGER ) FROM tab1 WHERE NOT NULL IN ( + - 0 + + - col0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT DISTINCT - 95 AS col0, 95 + + COUNT( * ) AS col1 FROM tab2
----
-95
98

skipif mysql # not compatible
query II rowsort label-4499
SELECT DISTINCT - 95 AS col0, 95 + + COUNT ( * ) AS col1 FROM tab2
----
-95
98

query I rowsort
SELECT DISTINCT - ( + col0 ) * 30 AS col2 FROM tab2 WHERE - 7 IS NULL
----

query I rowsort
SELECT - ( - - col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4502
SELECT + ( + + 22 ) - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab2 cor0 WHERE + ( + col0 ) IS NOT NULL AND - 79 / - col0 + - 28 BETWEEN - 95 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + ( + + 22 ) - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + ( + col0 ) IS NOT NULL AND - 79 / - col0 + - 28 BETWEEN - 95 AND + col0
----
NULL

query I rowsort
SELECT + col0 * 37 + - col0 + + + col2 + - col1 AS col0 FROM tab0 AS cor0
----
3121
3590
506

query I rowsort
SELECT + ( - + col0 ) + - + col1 * - 69 * + col0 AS col1 FROM tab1 cor0
----
29240
295022
49215

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( + 56 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT + COUNT( * ) col1, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4506
SELECT + COUNT ( * ) col1, - COUNT ( * ) FROM tab0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT + 41 DIV - col1 FROM tab0 AS cor0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT + 41 / - col1 FROM tab0 AS cor0
----
-1
-41
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 10, 48 col0 FROM tab2 AS cor0
----
10
48
10
48
10
48

query II rowsort
SELECT ALL + - 13, col0 FROM tab2 AS cor0
----
-13
46
-13
64
-13
75

query I rowsort
SELECT DISTINCT - 27 + - col0 FROM tab2 AS cor0
----
-102
-73
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + + col1 * col0 * + col2 col2 FROM tab0 AS cor0
----
18268
57103
9601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( + col2 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 - + 72 * 20 AS col1 FROM tab2 AS cor0
----
-1463
-1480
-1498

query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) * + 67 FROM tab2
----
-3082
-4288
-5025

query I rowsort
SELECT - 49 + + 64 * + ( + col0 ) FROM tab1
----
3215
5391
5775

query I rowsort
SELECT ALL col1 * - col1 * + ( - col0 ) AS col1 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT col2 * + 20 * + + col2 AS col0 FROM tab0
----
196020
2000
44180

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT - 58 - + COUNT( * ) AS col0 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - 58 - + COUNT ( * ) AS col0 FROM tab1
----
-61

query I rowsort
SELECT 90 * + 61 * - 15 + - 57 AS col1 FROM tab0 cor0
----
-82407
-82407
-82407

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - 64 * col2 AS col2 FROM tab0 AS cor0
----
-3008
-6336
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT DISTINCT 50 DIV + ( - 34 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT 50 / + ( - 34 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - 73 * col2 FROM tab0
----
-3431
-7227
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL + ( + - ( - - CAST( COUNT( * ) AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + ( + - ( - - CAST ( COUNT ( * ) AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4525
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + 97 * col1 / col1 / 42 col0 FROM tab2 AS cor0 WHERE NOT + 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - 42 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + ( - col0 ) FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT + 99 * + col2 AS col2 FROM tab1 cor0
----
5841
6732
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT 34 DIV + - col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT 34 / + - col0 FROM tab0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4531
SELECT ALL col1 DIV - col1 col2, 42 FROM tab2
----
-1
42
-1
42
-1
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4531
SELECT ALL col1 / - col1 col2, 42 FROM tab2
----
-1
42
-1
42
-1
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - col0, + 14 col0 FROM tab2
----
-17
14
-23
14
-24
14

query I rowsort
SELECT ALL col1 + 31 FROM tab1 AS cor0
----
36
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + MIN( ( - 11 ) ) FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4534
SELECT + MIN ( ( - 11 ) ) FROM tab1 cor0
----
-11

query I rowsort
SELECT - 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT - col2 / + - CAST( NULL AS SIGNED ) + - - col1 col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4536
SELECT DISTINCT - col2 / + - CAST ( NULL AS INTEGER ) + - - col1 col1 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT ALL - - col2 DIV 76 + + col0 + - 94 FROM tab2 AS cor0
----
-19
-30
-48

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL - - col2 / 76 + + col0 + - 94 FROM tab2 AS cor0
----
-19
-30
-48

query I rowsort
SELECT DISTINCT 96 + - - col0 AS col1 FROM tab1 AS cor0
----
147
181
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT col2 * - - CAST( - + 29 AS SIGNED ) FROM tab2 AS cor0
----
-1160
-1682
-667

skipif mysql # not compatible
query I rowsort label-4539
SELECT col2 * - - CAST ( - + 29 AS INTEGER ) FROM tab2 AS cor0
----
-1160
-1682
-667

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL >= 69
----

query II rowsort
SELECT 40, + col2 * - col1 AS col0 FROM tab0
----
40
-210
40
-3807
40
-99

query I rowsort
SELECT ALL - col2 + + 26 * - - 30 AS col1 FROM tab0
----
681
733
770

query I rowsort
SELECT col1 - + 8 * col1 FROM tab2
----
-357
-469
-539

query I rowsort
SELECT - 76 FROM tab2 WHERE NULL IS NULL
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT col0 - - - 76 + + + CAST( - col0 AS SIGNED ) * + + 55 * - ( - col1 ) * + + col2 * + + 64 AS col1 FROM tab0
----
-201009661
-33802539
-64310389

skipif mysql # not compatible
query I rowsort label-4545
SELECT col0 - - - 76 + + + CAST ( - col0 AS INTEGER ) * + + 55 * - ( - col1 ) * + + col2 * + + 64 AS col1 FROM tab0
----
-201009661
-33802539
-64310389

query I rowsort
SELECT DISTINCT - 86 - + 49 FROM tab1
----
-135

query III rowsort
SELECT * FROM tab1 WHERE - 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4548
SELECT - col1 - col1 * - ( + col0 ) + + + col0 + col1 * + col0 AS col0, + col0 AS col0 FROM tab2 WHERE - col0 + + col0 + + col1 / + col2 + CAST( NULL AS SIGNED ) * + col1 IN ( + col0, 46, - col1, + col0 )
----

skipif mysql # not compatible
query II rowsort label-4548
SELECT - col1 - col1 * - ( + col0 ) + + + col0 + col1 * + col0 AS col0, + col0 AS col0 FROM tab2 WHERE - col0 + + col0 + + col1 / + col2 + CAST ( NULL AS INTEGER ) * + col1 IN ( + col0, 46, - col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT MAX( ALL col2 ) + - 6 AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4549
SELECT MAX ( ALL col2 ) + - 6 AS col0 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT MIN( ALL col1 ) * + 47 AS col0 FROM tab0 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4550
SELECT MIN ( ALL col1 ) * + 47 AS col0 FROM tab0 cor0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT ALL - - COUNT( * ) AS col0, + 35 FROM tab1 AS cor0
----
3
35

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL - - COUNT ( * ) AS col0, + 35 FROM tab1 AS cor0
----
3
35

query II rowsort
SELECT ALL - 45, col2 FROM tab0 AS cor0
----
-45
10
-45
47
-45
99

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT col0 * - CAST( - 51 AS SIGNED ) FROM tab1 cor0
----
2601
4335
4641

skipif mysql # not compatible
query I rowsort label-4554
SELECT col0 * - CAST ( - 51 AS INTEGER ) FROM tab1 cor0
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - ( - ( - - 34 ) ) * MAX( 15 ) + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
510

skipif mysql # not compatible
query I rowsort label-4555
SELECT - ( - ( - - 34 ) ) * MAX ( 15 ) + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
510

query II rowsort
SELECT DISTINCT + 26 * - + col2, + col2 AS col1 FROM tab1 AS cor0
----
-1534
59
-1768
68
-2496
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL + 76 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL + 76 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-228

query I rowsort
SELECT DISTINCT + 81 * + - col2 * + 27 * col0 FROM tab0
----
-1541835
-1902690
-21001761

query I rowsort
SELECT DISTINCT + col0 * + 26 * - - col2 AS col0 FROM tab0
----
18330
22620
249678

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) * - 22 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) * - 22 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 84 * - col0 + 56 col2 FROM tab1 AS cor0
----
411320
421316
519848

query I rowsort
SELECT - + 35 * - + ( + col1 ) FROM tab0 cor0
----
2835
35
735

query I rowsort
SELECT ALL - col1 * + + ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT 63 * + col2 FROM tab0 AS cor0
----
2961
6237
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4566
SELECT + COUNT( * ) * + COUNT( * ) DIV 71 * + - 76 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT + COUNT ( * ) * + COUNT ( * ) / 71 * + - 76 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4567
SELECT DISTINCT + col1 * col2 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
query II rowsort label-4567
SELECT DISTINCT + col1 * col2 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1173
NULL
3080
NULL
3886
NULL

query I rowsort
SELECT ALL - 52 * + + col0 AS col1 FROM tab2
----
-2392
-3328
-3900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4569
SELECT * FROM tab1 WHERE NOT + col0 > + col1 * + + CAST( NULL AS SIGNED ) + - col2 + + 14 * - + 25 * + col2 + col0 * + col2 * col2
----

skipif mysql # not compatible
query III rowsort label-4569
SELECT * FROM tab1 WHERE NOT + col0 > + col1 * + + CAST ( NULL AS INTEGER ) + - col2 + + 14 * - + 25 * + col2 + col0 * + col2 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT DISTINCT col1 DIV 3 FROM tab1
----
1
15
4

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT col1 / 3 FROM tab1
----
1
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT - SUM( DISTINCT - - 38 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT - SUM ( DISTINCT - - 38 ) FROM tab0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT - 58 DIV col0 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - 58 / col0 AS col2 FROM tab1
----
-1
0

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - - col2 + col0 IS NOT NULL
----

query I rowsort
SELECT 44 + - - col0 AS col0 FROM tab1
----
129
135
95

query I rowsort
SELECT 78 + 57 * col0 FROM tab2 AS cor0
----
2700
3726
4353

query I rowsort
SELECT + col1 + + - 63 FROM tab0 AS cor0
----
-42
-62
18

query I rowsort
SELECT ALL - 41 + - - 25 AS col2 FROM tab2 AS cor0
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) + - col0 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4579
SELECT ALL col2 + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL col2 + + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT + + COUNT( * ) - + + MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4581
SELECT + + COUNT ( * ) - + + MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT 80 + + 60 FROM tab1 AS cor0 WHERE NULL > col2 * - + 24
----

query I rowsort
SELECT - col2 + + + col0 + + col0 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL COUNT( * ) + - 85 AS col2 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL COUNT ( * ) + - 85 AS col2 FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - + 59 * COUNT( DISTINCT col0 ) + - - COUNT( * ) AS col2 FROM tab1 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4585
SELECT - + 59 * COUNT ( DISTINCT col0 ) + - - COUNT ( * ) AS col2 FROM tab1 cor0
----
-174

query I rowsort
SELECT - col2 + - 39 - + + col0 * col0 FROM tab0 cor0
----
-311
-7618
-9547

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + - 92 + + - COUNT( * ) col2 FROM tab2 cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4587
SELECT ALL + - 92 + + - COUNT ( * ) col2 FROM tab2 cor0
----
-95

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT ( NOT + 91 IS NOT NULL )
----
-51
-85
-91

query II rowsort
SELECT - col1, col2 AS col2 FROM tab0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT ALL + 81, - 51 * - col0 * + - col1 AS col1, + col0 AS col2 FROM tab2 WHERE + col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - MIN( - 34 ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-4591
SELECT - MIN ( - 34 ) AS col1 FROM tab0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4592
SELECT * FROM tab2 WHERE NOT - col2 + CAST( col1 AS SIGNED ) - - col2 * + col2 * - 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4592
SELECT * FROM tab2 WHERE NOT - col2 + CAST ( col1 AS INTEGER ) - - col2 * + col2 * - 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT + - MIN( ALL + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT + - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4594
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( - 91 AS DECIMAL ) = - + col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-4594
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( - 91 AS REAL ) = - + col2 + - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-4595
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NULL BETWEEN NULL AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query IIIIII rowsort label-4595
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NULL BETWEEN NULL AND + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4596
SELECT COUNT( * ), + COUNT( * ) col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4596
SELECT COUNT ( * ), + COUNT ( * ) col0 FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT - col2 DIV - 38 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4597
SELECT - col2 / - 38 FROM tab0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / - ( + 80 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 53 ) AS col1 FROM tab1
----
53
53
53

query I rowsort
SELECT DISTINCT - + ( + + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT - COUNT( * ) * - 14 AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - COUNT ( * ) * - 14 AS col1 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, col1 - + 59 * - + col0 + + col1 FROM tab0 AS cor0
----
10
5175
47
1047
99
5725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( - + 35 ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + - + ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - MIN( + 43 ) AS col1 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-4606
SELECT - MIN ( + 43 ) AS col1 FROM tab1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + COUNT( * ) + + 71 AS col0 FROM tab1 WHERE NULL IS NULL
----
74

skipif mysql # not compatible
query I rowsort label-4607
SELECT + COUNT ( * ) + + 71 AS col0 FROM tab1 WHERE NULL IS NULL
----
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT + col0 DIV - - 29 AS col2 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-4609
SELECT + col0 / - - 29 AS col2 FROM tab0
----
0
3
3

query I rowsort
SELECT ALL - 41 * col2 AS col2 FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT + col2 - + - col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - 86 + - MIN( + col2 ) * + 91 AS col1 FROM tab0 AS cor0
----
-996

skipif mysql # not compatible
query I rowsort label-4612
SELECT - 86 + - MIN ( + col2 ) * + 91 AS col1 FROM tab0 AS cor0
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + - MAX( - 30 ) FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + - MAX ( - 30 ) FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT 52 * COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-4614
SELECT 52 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
159

query I rowsort
SELECT 31 * + + col2 + + - col0 FROM tab1
----
1744
2017
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT + ( COUNT( * ) ) * - COUNT( * ) FROM tab0, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4616
SELECT + ( COUNT ( * ) ) * - COUNT ( * ) FROM tab0, tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT ( - col1 ) * + - col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT ALL - 0 DIV col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4618
SELECT ALL - 0 / col0 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT - - CAST( + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4619
SELECT - - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - 54 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT + + CAST( - 33 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-4621
SELECT + + CAST ( - 33 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT COUNT( * ) * COUNT( DISTINCT + - col2 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( * ) * COUNT ( DISTINCT + - col2 ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4623
SELECT ALL * FROM tab0 WHERE + - col1 + + + col0 * + - CAST( NULL AS SIGNED ) + + + col0 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4623
SELECT ALL * FROM tab0 WHERE + - col1 + + + col0 * + - CAST ( NULL AS INTEGER ) + + + col0 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col0 FROM tab2
----
-86

query I rowsort
SELECT ALL + - 64 AS col0 FROM tab0 AS cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 9 col2 FROM tab1 AS cor0
----
126
423
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4627
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4627
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL 90 AS col0 FROM tab0 WHERE NOT - CAST( - col1 AS SIGNED ) * - 11 * 15 + - + 20 < ( col2 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL 90 AS col0 FROM tab0 WHERE NOT - CAST ( - col1 AS INTEGER ) * - 11 * 15 + - + 20 < ( col2 + + col2 )
----

query I rowsort
SELECT + 59 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query II rowsort
SELECT ALL - col2 / - col1 + + - col1 AS col0, 30 - + - col0 - - 26 + - col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + - SUM( ALL - col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + - SUM ( ALL - col2 ) AS col2 FROM tab1 cor0
----
223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + col0 * + 33 + + - col2 + - - col1 * - col2 + col0
----

query I rowsort
SELECT ALL - col0 + 24 FROM tab2 AS cor0
----
-22
-40
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4634
SELECT ALL ( + 7 ) + + MIN( + + ( - 25 ) ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL ( + 7 ) + + MIN ( + + ( - 25 ) ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - col0 + 58 FROM tab1
----
-27
-33
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4636
SELECT ALL - 36 AS col2, COUNT( * ) * ( - COUNT( * ) ) AS col1 FROM tab0
----
-36
-9

skipif mysql # not compatible
query II rowsort label-4636
SELECT ALL - 36 AS col2, COUNT ( * ) * ( - COUNT ( * ) ) AS col1 FROM tab0
----
-36
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + - col2 col1 FROM tab0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT - 18 DIV - ( - 58 ) + - + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4638
SELECT - 18 / - ( - 58 ) + - + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT + col1 FROM tab1 WHERE ( NOT col2 / + ( - - CAST( - - 20 AS SIGNED ) ) IS NULL )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4639
SELECT + col1 FROM tab1 WHERE ( NOT col2 / + ( - - CAST ( - - 20 AS INTEGER ) ) IS NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT COUNT( ALL + + col1 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT COUNT ( ALL + + col1 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT + - MIN( - - col1 ) + + + 70 FROM tab1 cor0
----
65

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + - MIN ( - - col1 ) + + + 70 FROM tab1 cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT ALL + 53 + 31 FROM tab2
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT DISTINCT col2 DIV col2 + + col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT col2 / col2 + + col1 FROM tab1
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + 97 - - COUNT( * ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 97 - - COUNT ( * ) AS col1 FROM tab0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT ALL - MAX( + col2 ) * - COUNT( * ) * - + CAST( 72 AS SIGNED ) AS col0 FROM tab1
----
-20736

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - MAX ( + col2 ) * - COUNT ( * ) * - + CAST ( 72 AS INTEGER ) AS col0 FROM tab1
----
-20736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 / col2 + - col2 AND col1
----

query II rowsort
SELECT 19 + col0, 90 * + + col1 + + ( + col1 ) AS col0 FROM tab2 cor0
----
65
4641
83
7007
94
6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + - col2 * - 83 / - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT + CAST( + + 65 AS SIGNED ) AS col2 FROM tab1
----
65
65
65

skipif mysql # not compatible
query I rowsort label-4653
SELECT + CAST ( + + 65 AS INTEGER ) AS col2 FROM tab1
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL - 80 * - COUNT( * ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - 80 * - COUNT ( * ) FROM tab1
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT 35 DIV + 10 col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4655
SELECT 35 / + 10 col1 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + ( - COUNT( * ) ) * - 57 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-4656
SELECT + ( - COUNT ( * ) ) * - 57 FROM tab1
----
171

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / 75 * - 62 > 73 * - 35
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT CAST( SUM( + - col0 ) AS SIGNED ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4658
SELECT CAST ( SUM ( + - col0 ) AS INTEGER ) FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 90 col0, - 97 col0 FROM tab1 AS cor0
----
90
-97

query I rowsort
SELECT col1 * + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - 75 ) FROM tab1
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( col1 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL ( - MAX( ALL 82 ) ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL ( - MAX ( ALL 82 ) ) FROM tab2 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 43 + + col1 * - 84 col0 FROM tab1
----
-1123
-3923
-404

query I rowsort
SELECT - col2 * + col2 * - - col0 AS col1 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT ALL ( + 23 ) * + + col1 AS col0 FROM tab0
----
1863
23
483

query I rowsort
SELECT DISTINCT 55 * - 33 * - ( + 52 ) * + - 82 + - col0 FROM tab2
----
-7739206
-7739224
-7739235

query I rowsort
SELECT col1 + 95 * 37 + + 59 * + + col2 AS col0 FROM tab2 AS cor0 WHERE ( col0 - + - 99 >= NULL )
----

query I rowsort
SELECT - - col2 + - col0 - + col2 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - + 23 + - - col1 * + col1 FROM tab1 AS cor0 WHERE 32 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT NULL BETWEEN ( NULL ) AND + col2 * - col1 - - col2 ) ) OR + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col0, - 14 AS col1 FROM tab1 AS cor0
----
51
-14
85
-14
91
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT ALL CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL + - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 26 <= NULL
----

query II rowsort
SELECT ALL + col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT - + ( + MIN( ALL 69 ) ) col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT DISTINCT - + ( + MIN ( ALL 69 ) ) col0 FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + - SUM( - col2 ) * + COUNT( * ) FROM tab1 cor0
----
669

skipif mysql # not compatible
query I rowsort label-4678
SELECT + - SUM ( - col2 ) * + COUNT ( * ) FROM tab1 cor0
----
669

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN + + 95 AND + 64 - + col0
----

query II rowsort
SELECT DISTINCT col0 AS col0, + col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + 73 * + MAX( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( + 8 * + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT + 73 * + MAX ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( + 8 * + 46 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col2, col1 + + col0 AS col0 FROM tab1 AS cor0
----
-59
90
-68
138
-96
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col0 AS col2 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col0 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT ( - 86 ) FROM tab1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT DISTINCT MIN( + col2 ) DIV - + 79 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT MIN ( + col2 ) / - + 79 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 21 NOT BETWEEN NULL AND + + 48 )
----

query I rowsort
SELECT 89 * + col1 AS col2 FROM tab2
----
4539
5963
6853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT + - col1 * + - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT + - col1 * + - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL + COUNT( ALL + - 73 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + COUNT ( ALL + - 73 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 1 + + col1 + + col0 AS col2, 63 col1 FROM tab0 cor0
----
109
63
97
63
99
63

query I rowsort
SELECT DISTINCT - + 24 + - + col2 AS col1 FROM tab1 AS cor0
----
-120
-83
-92

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 78 <> - 27
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT - col1 DIV - 2 FROM tab1
----
2
23
7

skipif mysql # not compatible
query I rowsort label-4694
SELECT - col1 / - 2 FROM tab1
----
2
23
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + + COUNT( - + 96 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + + COUNT ( - + 96 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 11 + - + col0 AS col2 FROM tab0 AS cor0
----
-4
-76
-86

query I rowsort
SELECT ALL 84 + + 75 AS col2 FROM tab0 AS cor0
----
159
159
159

query I rowsort
SELECT ALL - ( - 34 ) + + 8 AS col2 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - COUNT( * ) + 70 AS col0 FROM tab1 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - COUNT ( * ) + 70 AS col0 FROM tab1 cor0
----
67

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 * 62 AS col2 FROM tab1
----
-1056
1357
1972

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN - 54 AND - - 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4702
SELECT ALL - col0 + col1 + + col2 * ( + + 2 ) * + CAST( NULL AS SIGNED ) * - col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL - col0 + col1 + + col2 * ( + + 2 ) * + CAST ( NULL AS INTEGER ) * - col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col1 * + col2 + - 43 ) AND NULL
----

query I rowsort
SELECT - 82 * - 89 + - col2 FROM tab2
----
7240
7258
7275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4705
SELECT DISTINCT - 14 DIV - - col2 - - CAST( + + col2 AS SIGNED ) + + - col0 AS col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT - 14 / - - col2 - - CAST ( + + col2 AS INTEGER ) + + - col0 AS col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT - 69 + + + COUNT( * ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - 69 + + + COUNT ( * ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT + COUNT( DISTINCT - col1 ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4707
SELECT + COUNT ( DISTINCT - col1 ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * 74 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 50 * + + 97 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-4850

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 < - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT - - COUNT( DISTINCT - col2 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - - COUNT ( DISTINCT - col2 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT ALL + 61 AS col0 FROM tab2 AS cor0 WHERE NOT + 6 * ( - col2 ) BETWEEN - col1 + - + col1 / col0 AND + - 3
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - MAX( DISTINCT - + col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4714
SELECT - MAX ( DISTINCT - + col2 ) col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4716
SELECT DISTINCT - col2 * + col2 * + col1 * + 87, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-10718400
NULL
-19608756
NULL
-2347173
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT DISTINCT - col2 * + col2 * + col1 * + 87, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-10718400
NULL
-19608756
NULL
-2347173
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4717
SELECT ALL + col1 * - col0 * + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + col1 * - col0 * + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) * + 58 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) * + 58 FROM tab2
----
174

query II rowsort
SELECT DISTINCT col1 AS col0, 82 AS col1 FROM tab0
----
1
82
21
82
81
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT + col1 DIV + + 70 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4721
SELECT + col1 / + + 70 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT DISTINCT col0 DIV + 5 AS col0 FROM tab1
----
10
17
18

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT col0 / + 5 AS col0 FROM tab1
----
10
17
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT COUNT( * ) * 16 * - ( - SUM( ALL - + 53 ) ) FROM tab1
----
-7632

skipif mysql # not compatible
query I rowsort label-4723
SELECT COUNT ( * ) * 16 * - ( - SUM ( ALL - + 53 ) ) FROM tab1
----
-7632

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT - - 35 + COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - - 35 + COUNT ( * ) FROM tab0 AS cor0
----
38

query II rowsort
SELECT col2 AS col1, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + 4 BETWEEN + ( + 6 ) AND col1 + + col0
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + 64 + - + col2 AS col0 FROM tab2 cor0
----
24
41
6

query I rowsort
SELECT + 55 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + - ( - + col2 ) FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT ALL - 35 DIV 40 + - col1 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL - 35 / 40 + - col1 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 6 + col1 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL - - 1 + + CAST( NULL AS SIGNED ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - - 1 + + CAST ( NULL AS INTEGER ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - col1 * - 40 + + col1 FROM tab0 AS cor0
----
-3879
-48519
-73059

query I rowsort
SELECT - ( - - 13 ) AS col2 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL COUNT( * ) + 69 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL COUNT ( * ) + 69 FROM tab1
----
72

query II rowsort
SELECT col0, + ( + ( + 34 ) ) * col2 + + 73 FROM tab1
----
51
3337
85
2079
91
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT SUM( ALL col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT SUM ( ALL col1 ) AS col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT + col0 + - + col0 + - CAST( NULL AS SIGNED ) + + 16 / + + 71 * ( + - 5 ) AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT + col0 + - + col0 + - CAST ( NULL AS INTEGER ) + + 16 / + + 71 * ( + - 5 ) AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 39 IS NULL
----

query I rowsort
SELECT + - col2 + - col1 + col1 + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 IN ( 79, - 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + MIN( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT 67 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT + MIN ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT 67 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * col2 > col2
----

query III rowsort
SELECT * FROM tab1 WHERE 74 >= NULL
----

query I rowsort
SELECT + 38 * col0 - - col0 AS col0 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 34 AS col1 FROM tab1 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT + CAST( NULL AS SIGNED ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT + CAST ( NULL AS INTEGER ) - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 11 + + ( col0 ) FROM tab2
----
57
75
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT DISTINCT 4 DIV 66 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT 4 / 66 FROM tab1 WHERE NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN ( + col1 * - 15 + 51 * - 24 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 98 ) AND - ( 41 ) * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col1 + col0 * + col0 col1 FROM tab2
----
10650
4462
9024

query I rowsort
SELECT - 89 + - ( + col2 ) FROM tab2 WHERE NOT col0 + col0 * ( + col1 + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT DISTINCT SUM( DISTINCT col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT ( CAST( AVG ( + ( + col1 ) ) AS SIGNED ) ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4756
SELECT ( CAST ( AVG ( + ( + col1 ) ) AS INTEGER ) ) FROM tab1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 64 col0 FROM tab0
----
5568
6208
960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 9 > ( 52 * 22 - ( 76 + + col1 ) * + 61 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE + 45 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL 85 + + 24 * col0 AS col2 FROM tab2 cor0
----
1189
1621
1885

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NULL <> ( 29 * 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - SUM( DISTINCT 14 ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4762
SELECT - SUM ( DISTINCT 14 ) FROM tab0 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 56 col2 FROM tab1
----
-115
-124
-152

query I rowsort
SELECT - 39 - 9 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + col1 * 77 FROM tab0 AS cor0
----
1617
6237
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT + 49 + - COUNT( * ) col0 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4766
SELECT + 49 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
46

query I rowsort
SELECT - col1 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-100
-231
-3888

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + col0 - - col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + ( 24 ) = ( 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - ( 55 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + col2 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT MAX( ALL 30 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT MAX ( ALL 30 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT IN ( + 9 * + ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL 72 - - + SUM( DISTINCT 22 ) + COUNT( * ) col0 FROM tab2
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4774
SELECT ALL 72 - - + SUM ( DISTINCT 22 ) + COUNT ( * ) col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT 0 + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4775
SELECT 0 + COUNT ( * ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL - 91 + - col2 AS col1 FROM tab2
----
-114
-131
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NULL IN ( + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IN ( + 75 )
----
0

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 WHERE NOT - 9 <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT - MIN( ALL col2 ) AS col2 FROM tab0 WHERE - 43 + col1 IN ( - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - MIN ( ALL col2 ) AS col2 FROM tab0 WHERE - 43 + col1 IN ( - 34 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( ( + col2 ) ) ) * col1 col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + 18 * + 78 AS col1 FROM tab2
----
1404
1404
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL + MIN( col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL + MIN ( col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT ALL col2 + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL col2 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT - + ( + 77 ) * - 12 AS col0 FROM tab2 AS cor0
----
924
924
924

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
53

query I rowsort
SELECT ALL 6 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col2, + col2 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT col0, - col2 AS col1 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT 43 * + - COUNT( * ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT 43 * + - COUNT ( * ) FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL - SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT - + SUM( ALL - 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT - + SUM ( ALL - 33 ) FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 50 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 69 )
----

query II rowsort
SELECT + 52 AS col2, + 19 * + col1 AS col1 FROM tab0 AS cor0
----
52
1539
52
19
52
399

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT DISTINCT - 70 + + + col0 + - - col2 DIV + 31 col2 FROM tab0 cor0
----
-54
17
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4798
SELECT DISTINCT - 70 + + + col0 + - - col2 / + 31 col2 FROM tab0 cor0
----
-54
17
30

query II rowsort
SELECT ALL col2 AS col2, - 71 FROM tab2 AS cor0
----
23
-71
40
-71
58
-71

query II rowsort
SELECT + - col2, - 27 * col2 - col0 AS col1 FROM tab0 AS cor0
----
-10
-357
-47
-1284
-99
-2770

query I rowsort
SELECT ALL col2 + + + col0 - - 0 AS col1 FROM tab2
----
104
133
69

query II rowsort
SELECT DISTINCT ( + 82 ) AS col1, col0 AS col2 FROM tab1
----
82
51
82
85
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - SUM( ALL - + 78 ) col1 FROM tab2
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4803
SELECT - SUM ( ALL - + 78 ) col1 FROM tab2
----
234

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( NULL ) <= + 2
----

query I rowsort
SELECT - col0 * - + 62 * + col2 AS col0 FROM tab1
----
303552
310930
383656

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT col2 DIV + - ( - 67 ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4806
SELECT col2 / + - ( - 67 ) col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( - col0 ) * 88 * + col2 FROM tab0
----
-62040
-76560
-845064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT ALL - 59 * - col1 AS col2 FROM tab2 WHERE NOT - + col1 + - - CAST( NULL AS SIGNED ) * 20 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 59 * - col1 AS col2 FROM tab2 WHERE NOT - + col1 + - - CAST ( NULL AS INTEGER ) * 20 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4809
SELECT 48 DIV - col1 col1, col0 * col0 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
-2
-658503
-48
-912673
0
-3375

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4809
SELECT 48 / - col1 col1, col0 * col0 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
-2
-658503
-48
-912673
0
-3375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4810
SELECT + CAST( + 52 AS SIGNED ) * - COUNT( DISTINCT + + col2 ) FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-4810
SELECT + CAST ( + 52 AS INTEGER ) * - COUNT ( DISTINCT + + col2 ) FROM tab1
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col2 FROM tab1 WHERE NOT - 60 * - col0 <> 73
----

query I rowsort
SELECT - 48 + + 57 AS col2 FROM tab1 cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT - + CAST( - col2 AS SIGNED ) + - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4813
SELECT - + CAST ( - col2 AS INTEGER ) + - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + ( 46 ) * col1 + - 29 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT + 5 * SUM( + col0 ) AS col2 FROM tab1 AS cor0
----
1135

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + 5 * SUM ( + col0 ) AS col2 FROM tab1 AS cor0
----
1135

query I rowsort
SELECT DISTINCT - 15 + + ( + col2 ) FROM tab0 cor0
----
-5
32
84

query I rowsort
SELECT - 18 * + col2 AS col1 FROM tab0 AS cor0
----
-1782
-180
-846

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4818
SELECT col0 * + col0 + - + CAST( NULL AS DECIMAL ) AS col0, col2 + - - 73 FROM tab0 AS cor0
----
NULL
120
NULL
172
NULL
83

skipif mysql # not compatible
query II rowsort label-4818
SELECT col0 * + col0 + - + CAST ( NULL AS REAL ) AS col0, col2 + - - 73 FROM tab0 AS cor0
----
NULL
120
NULL
172
NULL
83

query I rowsort
SELECT ALL - ( - 7 ) + col0 + col1 FROM tab2 AS cor0
----
104
148
149

query I rowsort
SELECT + col2 / + - col0 * 40 + + col1 FROM tab1 AS cor0 WHERE 99 - + + 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL col1 + + - 20 + - col0 - + + col0 * - + ( CAST( NULL AS SIGNED ) ) + - col0 * - 27 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL col1 + + - 20 + - col0 - + + col0 * - + ( CAST ( NULL AS INTEGER ) ) + - col0 * - 27 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( + 56 * - - col1 - - - col0 + 73 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4823
SELECT ALL * FROM tab1 WHERE ( col0 > ( + CAST( + - 65 AS SIGNED ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4823
SELECT ALL * FROM tab1 WHERE ( col0 > ( + CAST ( + - 65 AS INTEGER ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 32 IN ( 11 + + 92 + + ( + 93 ) )
----

query I rowsort
SELECT DISTINCT - col1 / + ( 1 ) FROM tab0 WHERE ( NOT ( ( 38 ) ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 95 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT ALL 54 DIV - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL 54 / - col0 FROM tab0
----
-3
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4828
SELECT * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) + - - 50 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4828
SELECT * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) + - - 50 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 57 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4830
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4830
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT ALL + CAST( + + 39 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + CAST ( + + 39 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( 52 ) * - 0 ) IN ( + 88 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( col0 ) col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT + 2 + - col2 FROM tab2 AS cor0
----
-21
-38
-56

query II rowsort
SELECT DISTINCT - - col2 + + col2 AS col1, col2 FROM tab1 AS cor0
----
118
59
136
68
192
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 21 > + 14
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * - + 43 AND - - col0 * - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + col1 NOT IN ( - ( + - col1 ) + - 16 + - - col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4841
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col2 + - 89 FROM tab1
----
NULL
-21
NULL
-30
NULL
7

skipif mysql # not compatible
query II rowsort label-4841
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col2 + - 89 FROM tab1
----
NULL
-21
NULL
-30
NULL
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * 79 col1 FROM tab0
----
2133

onlyif mysql # DIV for integer division: 
query II rowsort label-4843
SELECT ALL col0, - 68 DIV - + col0 AS col2 FROM tab0
----
15
4
87
0
97
0

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL col0, - 68 / - + col0 AS col2 FROM tab0
----
15
4
87
0
97
0

query II rowsort
SELECT DISTINCT col1, + 30 AS col2 FROM tab2
----
51
30
67
30
77
30

query I rowsort
SELECT DISTINCT + col1 * - + col0 * col0 * + - col0 FROM tab2
----
20185088
28265625
4964136

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + ( COUNT( * ) ) + + 38 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + ( COUNT ( * ) ) + + 38 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL + 60 - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-27
-37
45

query I rowsort
SELECT 53 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * + col0 IS NULL
----

query I rowsort
SELECT - - col1 + - + 0 - + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-18
-27
-66

query I rowsort
SELECT DISTINCT - ( - 44 ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 cor0 WHERE NOT 54 NOT IN ( - 63 * + col2 )
----

query I rowsort
SELECT - + 29 + 61 * col0 AS col2 FROM tab0 AS cor0
----
5278
5888
886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ALL COUNT( - 24 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL COUNT ( - 24 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col0 / - col1 / - + 67
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 97 * + col1 > - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4859
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> + col2
----

skipif mysql # not compatible
query III rowsort label-4859
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT + ( + 5 ) * + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT + ( + 5 ) * + COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT 53 - - 70 + col1 + + - 55 * + col0 FROM tab2 WHERE NOT NULL IN ( col1, - col0 ) OR NOT + 81 * - col1 IS NULL
----
-2356
-3320
-3935

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 27 + - + 69 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - 88 * col1 + col2 FROM tab0 AS cor0
----
-1838
-7081
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT ALL col2 DIV + 26 + - - col1 FROM tab2 AS cor0
----
51
69
78

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL col2 / + 26 + - - col1 FROM tab2 AS cor0
----
51
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col2 < + col2
----
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 < + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT ALL + col2 DIV + 46 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL + col2 / + 46 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT CAST( + 90 AS SIGNED ) AS col0 FROM tab2
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4868
SELECT CAST ( + 90 AS INTEGER ) AS col0 FROM tab2
----
90
90
90

query I rowsort
SELECT 32 * col1 FROM tab0
----
2592
32
672

onlyif mysql # aggregate syntax: 
query II rowsort label-4870
SELECT ALL + 51 + 58 * COUNT( * ) col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
225
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4870
SELECT ALL + 51 + 58 * COUNT ( * ) col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
225
-3

query I rowsort
SELECT + col0 + + 67 * + + col0 * - + col0 + col2 FROM tab1
----
-174120
-483931
-554668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL - CAST( + 63 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - CAST ( + 63 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4873
SELECT + 72 AS col2, - col0 FROM tab2 AS cor0 WHERE NOT NULL > + CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4873
SELECT + 72 AS col2, - col0 FROM tab2 AS cor0 WHERE NOT NULL > + CAST ( - + col0 AS INTEGER )
----

query I rowsort
SELECT + - col2 * - + col2 AS col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = ( + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT - 63 DIV + 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT - 63 / + 89 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 16 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT SUM( DISTINCT + 99 ) AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4878
SELECT SUM ( DISTINCT + 99 ) AS col2 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT - 32 * - col2 * col1 FROM tab2
----
124352
37536
98560

query I rowsort
SELECT + 7 * + 27 AS col1 FROM tab1
----
189
189
189

query I rowsort
SELECT DISTINCT col2 * 79 * + - col2 AS col2 FROM tab0
----
-174511
-774279
-7900

query I rowsort
SELECT ALL + 28 + + ( - 62 ) FROM tab2 WHERE NULL IS NULL
----
-34
-34
-34

query II rowsort
SELECT DISTINCT + col2 * + col1 AS col1, + col0 FROM tab2
----
1173
46
3080
64
3886
75

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0, tab0 cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0, tab0 cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT - - ( 97 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * + 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4890
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + 88 - SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - + CAST ( NULL AS REAL ) + 88 - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL + - col0 + - col2 + + 3 DIV + - col1 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + - col0 + - col2 + + 3 / + - col1 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT 40 + COUNT( * ) AS col2 FROM tab0 cor0
----
43

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT 40 + COUNT ( * ) AS col2 FROM tab0 cor0
----
43

query I rowsort
SELECT - 34 + + - col2 FROM tab2
----
-57
-74
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col0 AND ( col1 * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL CAST( NULL AS SIGNED ) * 61 - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL CAST ( NULL AS INTEGER ) * 61 - - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - MAX( - - ( + ( + col1 ) ) ) + + - MIN( - + col2 ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4896
SELECT - MAX ( - - ( + ( + col1 ) ) ) + + - MIN ( - + col2 ) AS col0 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT MIN( 27 ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT MIN ( 27 ) AS col1 FROM tab1
----
27

query I rowsort
SELECT col0 * + - 80 * - col1 FROM tab1
----
34000
342160
57120

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT + + 80 + - ( + 64 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4900
SELECT DISTINCT - CAST( NULL AS SIGNED ), SUM( ALL - + 4 ) col2 FROM tab1 AS cor0
----
NULL
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4900
SELECT DISTINCT - CAST ( NULL AS INTEGER ), SUM ( ALL - + 4 ) col2 FROM tab1 AS cor0
----
NULL
-12

query I rowsort
SELECT ALL - col2 * - col1 + + ( - 64 ) FROM tab2 AS cor0
----
1109
3016
3822

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 89 * + - 92 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( 30 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT + + 75 + - - MAX( ALL - col0 ) + 44 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + + 75 + - - MAX ( ALL - col0 ) + 44 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
156

query I rowsort
SELECT + col0 - - col1 + - col2 FROM tab1
----
-31
31
70

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + 39 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL OR 42 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT + ( + 8 ) * col1 AS col1, - col1 AS col0 FROM tab1
----
112
-14
376
-47
40
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col1 FROM tab1
----
-83
-83
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col1 > + col1
----

query I rowsort
SELECT DISTINCT + 42 + + AVG ( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT - - col0 * col1 / + + col2 * - col2 * - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT - - col0 * col1 / + + col2 * - col2 * - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL COUNT( DISTINCT - 51 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL COUNT ( DISTINCT - 51 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4914
SELECT - CAST( NULL AS SIGNED ) AS col1, col0 * col1 col2 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4914
SELECT - CAST ( NULL AS INTEGER ) AS col1, col0 * col1 col2 FROM tab0
----
NULL
1215
NULL
1827
NULL
97

query II rowsort
SELECT + col2 AS col2, 1 AS col1 FROM tab1
----
59
1
68
1
96
1

query I rowsort
SELECT DISTINCT + col1 * + + col1 AS col0 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL COUNT( * ) + + 59 AS col0 FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL COUNT ( * ) + + 59 AS col0 FROM tab1 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 52 ) col0 FROM tab0 AS cor0 WHERE - 56 IS NOT NULL
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT - - col0 * + - CAST( NULL AS SIGNED ) + + col1 - + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT - - col0 * + - CAST ( NULL AS INTEGER ) + + col1 - + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4920
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + CAST( + col2 AS DECIMAL ) AND + - col0
----

skipif mysql # not compatible
query I rowsort label-4920
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + CAST ( + col2 AS REAL ) AND + - col0
----

query I rowsort
SELECT + + ( col2 ) + - 76 + - + 50 * - 13 FROM tab1 AS cor0
----
633
642
670

query I rowsort
SELECT ALL ( + 68 ) + - col0 FROM tab2 cor0
----
-7
22
4

query I rowsort
SELECT + + 76 AS col1 FROM tab1 cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + MIN( DISTINCT col2 ) + - + 83 AS col2 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + MIN ( DISTINCT col2 ) + - + 83 AS col2 FROM tab0 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT DISTINCT 91 * CAST( - + 72 AS SIGNED ) AS col0 FROM tab0 WHERE 63 < 85 - - + col1
----
-6552

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT 91 * CAST ( - + 72 AS INTEGER ) AS col0 FROM tab0 WHERE 63 < 85 - - + col1
----
-6552

query II rowsort
SELECT - 61 AS col2, + 83 + + + 15 + + + col2 FROM tab2
----
-61
121
-61
138
-61
156

query I rowsort
SELECT ALL - 76 + + - col2 AS col1 FROM tab2
----
-116
-134
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 31 >= + + col1 + - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 32 <> NULL
----

query I rowsort
SELECT DISTINCT + 43 - + 51 FROM tab1
----
-8

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN + col2 - - - 89 AND + - 10
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT col0 - + 91 * - col2 * + col0 * - 95 + + col0 * CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4932
SELECT col0 - + 91 * - col2 * + col0 * - 95 + + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - COUNT( ALL + - 85 ) * 73 + + 4 AS col2 FROM tab2 AS cor0
----
-215

skipif mysql # not compatible
query I rowsort label-4933
SELECT - COUNT ( ALL + - 85 ) * 73 + + 4 AS col2 FROM tab2 AS cor0
----
-215

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - + col0 + ( + col1 ) DIV col1 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-4934
SELECT - + col0 + ( + col1 ) / col1 AS col2 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4935
SELECT * FROM tab2 AS cor0 WHERE - 1 / + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4935
SELECT * FROM tab2 AS cor0 WHERE - 1 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + col0 AS col0 FROM tab2
----
-46
46
-64
64
-75
75

query II rowsort
SELECT ALL col0, - ( + - col2 ) AS col0 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL - 57 FROM tab0 WHERE ( ( col1 ) ) >= col0
----
-57

query I rowsort
SELECT - ( 65 ) AS col2 FROM tab1
----
-65
-65
-65

query I rowsort
SELECT col2 * - 5 FROM tab0 WHERE NOT ( - - 68 ) = col2 * - + col0
----
-235
-495
-50

query I rowsort
SELECT DISTINCT col0 * + col0 + - 98 FROM tab1 AS cor0
----
2503
7127
8183

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 - - col0 NOT BETWEEN + 62 AND NULL
----

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab0 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT 22 * + COUNT( + col0 ) + COUNT( col1 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4945
SELECT 22 * + COUNT ( + col0 ) + COUNT ( col1 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT ( col1 ) FROM tab0 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 - - - col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4948
SELECT + COUNT( * ), SUM( - col2 ) * SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
3
14641

skipif mysql # not compatible
query II rowsort label-4948
SELECT + COUNT ( * ), SUM ( - col2 ) * SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
3
14641

query I rowsort
SELECT ALL col0 + + col2 * - col2 + + 86 FROM tab0 AS cor0
----
-2108
-9618
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 51 * - col1 * + 63 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 51 * - col1 * + 63 + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL - ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL - ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT - col0 * + CAST( NULL AS SIGNED ) * col1 * - 1 AS col2 FROM tab0 WHERE NULL < - - col0
----

skipif mysql # not compatible
query I rowsort label-4952
SELECT - col0 * + CAST ( NULL AS INTEGER ) * col1 * - 1 AS col2 FROM tab0 WHERE NULL < - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT - 4 DIV + - col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4953
SELECT - 4 / + - col0 + + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) - - - col2 col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL MAX( 22 ) * + COUNT( * ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL MAX ( 22 ) * + COUNT ( * ) AS col2 FROM tab2
----
66

query I rowsort
SELECT DISTINCT col2 * + col0 - + col1 FROM tab0
----
624
849
9602

query I rowsort
SELECT - 54 * - col2 AS col2 FROM tab1
----
3186
3672
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4959
SELECT ALL + 77 - - COUNT( * ) AS col2, - CAST( + 65 AS SIGNED ) + - ( ( + COUNT( - - col2 ) ) ) FROM tab2
----
80
-68

skipif mysql # not compatible
query II rowsort label-4959
SELECT ALL + 77 - - COUNT ( * ) AS col2, - CAST ( + 65 AS INTEGER ) + - ( ( + COUNT ( - - col2 ) ) ) FROM tab2
----
80
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT DISTINCT 72 + - 18 * - + CAST( NULL AS SIGNED ) * + + col2 / - - 7 + - col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT 72 + - 18 * - + CAST ( NULL AS INTEGER ) * + + col2 / - - 7 + - col0 AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT DISTINCT 26 DIV - col2 * + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT 26 / - col2 * + col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT + 88 DIV + 87 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + 88 / + 87 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - ( MAX( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - ( MAX ( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + 70 * - - col2
----

query II rowsort
SELECT DISTINCT + col2 * 70, col2 AS col2 FROM tab2 AS cor0
----
1610
23
2800
40
4060
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT ALL - 5 DIV + 23 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 5 / + 23 FROM tab1
----
0
0
0

query I rowsort
SELECT 41 * col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT ALL col2, - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query II rowsort
SELECT DISTINCT + - 86 AS col0, col2 + ( col2 ) + + col2 FROM tab0 AS cor0
----
-86
141
-86
297
-86
30

query I rowsort
SELECT col0 * - + 49 - + 43 * + col0 AS col1 FROM tab1 AS cor0
----
-4692
-7820
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col1 + + 95 + + col0 * + CAST( NULL AS SIGNED ) * - col2 + col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col1 + + 95 + + col0 * + CAST ( NULL AS INTEGER ) * - col2 + col1 IS NULL
----
51
85
91

query I rowsort
SELECT 33 * + 86 AS col2 FROM tab2
----
2838
2838
2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT col0 * + - 91 AS col2 FROM tab2
----
-4186
-5824
-6825

query II rowsort
SELECT 7, - col1 AS col0 FROM tab1
----
7
-14
7
-47
7
-5

query I rowsort
SELECT - col0 * + 73 * col1 FROM tab0
----
-133371
-7081
-88695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT ALL 56 DIV + MAX( + - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL 56 / + MAX ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4978
SELECT + 1 * 97 * - + 26 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT + 1 * 97 * - + 26 / - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + + col2, 23 FROM tab0 AS cor0
----
10
23
47
23
99
23

query I rowsort
SELECT + col2 * col1 + col1 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT + 39 DIV + col0 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4981
SELECT + 39 / + col0 + + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT COUNT( * ) * - 76 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-684

skipif mysql # not compatible
query I rowsort label-4982
SELECT COUNT ( * ) * - 76 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-684

query II rowsort
SELECT 27 + - col1 * + 74 AS col2, - col1 FROM tab0
----
-1527
-21
-47
-1
-5967
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT ( col1 ) + 96 + - 3 DIV 13 + col1 DIV col2 * + - 57 + - + col1 * - ( - + col0 ) AS col0 FROM tab1
----
-324
-4134
-604

skipif mysql # not compatible
query I rowsort label-4984
SELECT ( col1 ) + 96 + - 3 / 13 + col1 / col2 * + - 57 + - + col1 * - ( - + col0 ) AS col0 FROM tab1
----
-324
-4134
-604

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT + - 2 DIV + + 32 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT + - 2 / + + 32 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( - 97 ) FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT 32 - 61 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT 70 - ( col2 ) FROM tab2
----
12
30
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT + COUNT( * ) - + + COUNT( * ) * - - 93, 7 AS col1 FROM tab1
----
-276
7

skipif mysql # not compatible
query II rowsort label-4990
SELECT + COUNT ( * ) - + + COUNT ( * ) * - - 93, 7 AS col1 FROM tab1
----
-276
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL + 49 + + 9 * ( + COUNT( * ) ) col0 FROM tab2
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4991
SELECT ALL + 49 + + 9 * ( + COUNT ( * ) ) col0 FROM tab2
----
76

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL AND NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 36 + + ( col0 ) + + - col1 AS col1 FROM tab1
----
116
73
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT - MIN( DISTINCT - col1 ) - - 36, 80 AS col0 FROM tab2
----
113
80

skipif mysql # not compatible
query II rowsort label-4994
SELECT - MIN ( DISTINCT - col1 ) - - 36, 80 AS col0 FROM tab2
----
113
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4995
SELECT ALL col1 - + 47 DIV CAST( - col1 AS SIGNED ) col1 FROM tab1
----
14
17
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4995
SELECT ALL col1 - + 47 / CAST ( - col1 AS INTEGER ) col1 FROM tab1
----
14
17
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4996
SELECT * FROM tab1 WHERE NULL >= 82 * CAST( + ( + + 45 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4996
SELECT * FROM tab1 WHERE NULL >= 82 * CAST ( + ( + + 45 ) AS INTEGER )
----

query I rowsort
SELECT + col1 + col1 * - + 5 AS col1 FROM tab2
----
-204
-268
-308

query I rowsort
SELECT ALL 70 * - col2 AS col0 FROM tab2
----
-1610
-2800
-4060

query I rowsort
SELECT + col0 * - col1 * - col2 FROM tab0 cor0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - ( 81 ) FROM tab0 cor0
----
-81

query II rowsort
SELECT + col0 AS col2, + col1 - - 16 FROM tab1 cor0
----
51
30
85
21
91
63

query I rowsort
SELECT DISTINCT + col1 * + - 86 AS col2 FROM tab0 AS cor0
----
-1806
-6966
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT 18 DIV - 43 * - col2 * - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT 18 / - 43 * - col2 * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 71 * 94 FROM tab2
----
6674

query II rowsort
SELECT ALL - col2 * + + col1 AS col1, 39 + - col2 AS col1 FROM tab2
----
-1173
16
-3080
-1
-3886
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT - MAX( 18 ) col1 FROM tab2
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5006
SELECT DISTINCT - MAX ( 18 ) col1 FROM tab2
----
-18

query I rowsort
SELECT DISTINCT - + col2 + - col2 + - col0 * - - col0 FROM tab1 AS cor0
----
-2793
-7343
-8417

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + + MAX( + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5008
SELECT + + MAX ( + col0 ) FROM tab2 cor0
----
75

query II rowsort
SELECT ALL + 54 * col1 AS col2, col0 FROM tab2 AS cor0
----
2754
46
3618
75
4158
64

query I rowsort
SELECT - 39 * - - col0 FROM tab1 AS cor0
----
-1989
-3315
-3549

query I rowsort
SELECT DISTINCT + col0 + + 68 + 61 FROM tab0 AS cor0
----
144
216
226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT DISTINCT + 24 DIV - MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT + 24 / - MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT ALL - col2 + + col1 + + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - col2 + + col1 + + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5014
SELECT ALL AVG ( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL AVG ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT + col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + - 90 ) + 27 AS col1, ( col2 ) * + - col0 col1 FROM tab2 AS cor0
----
-63
-1058
-63
-2560
-63
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + SUM( - col0 ) + + COUNT( * ) * + + 94 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5017
SELECT + SUM ( - col0 ) + + COUNT ( * ) * + + 94 FROM tab1 AS cor0
----
55

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 BETWEEN + col2 AND - 13 OR NOT - 89 NOT BETWEEN NULL AND - 85
----

query I rowsort
SELECT + - 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query II rowsort
SELECT ALL + 25 AS col2, - 53 FROM tab1 AS cor0
----
25
-53
25
-53
25
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5021
SELECT - col1 + 70 DIV - - CAST( - col1 AS SIGNED ), col1 * - ( - - 70 ) * - 61 + col1 + - col1 * - + 41 + - - col2 - col1 AS col2 FROM tab2 AS cor0
----
-52
219884
-68
288895
-77
331987

skipif mysql # not compatible
query II rowsort label-5021
SELECT - col1 + 70 / - - CAST ( - col1 AS INTEGER ), col1 * - ( - - 70 ) * - 61 + col1 + - col1 * - + 41 + - - col2 - col1 AS col2 FROM tab2 AS cor0
----
-52
219884
-68
288895
-77
331987

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + 93 ) IS NULL )
----

query I rowsort
SELECT - + col1 + - - 40 FROM tab1 AS cor0
----
-7
26
35

query I rowsort
SELECT - 99 * + 47 + col1 AS col0 FROM tab1 cor0
----
-4606
-4639
-4648

query I rowsort
SELECT - 50 + - - 63 AS col0 FROM tab0 AS cor0
----
13
13
13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 * - col2 ) >= - col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT ALL COUNT( * ) col1, 62 FROM tab2 AS cor0
----
3
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5028
SELECT ALL COUNT ( * ) col1, 62 FROM tab2 AS cor0
----
3
62

query II rowsort
SELECT DISTINCT + col2 AS col1, + 31 + + 67 FROM tab2 AS cor0
----
23
98
40
98
58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - 41 + COUNT( * ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - 41 + COUNT ( * ) FROM tab1 AS cor0
----
-38

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + 35 * 40 + - col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + col0 - col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT - + col1 AS col2 FROM tab0 WHERE - 77 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT MIN( - 8 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5034
SELECT MIN ( - 8 ) FROM tab1
----
-8

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col0, col1, + - col1, + col2 )
----

query I rowsort
SELECT col0 * ( + + col2 ) AS col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - 6
----

query I rowsort
SELECT DISTINCT 22 + - 50 AS col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
-28

query I rowsort
SELECT - col1 + 27 + + 21 FROM tab1 AS cor0
----
1
34
43

query I rowsort
SELECT ALL - 36 + + 58 AS col2 FROM tab1 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 37 col2 FROM tab1 AS cor0
----
-1739
-185
-518

query I rowsort
SELECT + ( - 24 ) * - col0 FROM tab1
----
1224
2040
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL 71 * COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
639

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 71 * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
639

query II rowsort
SELECT DISTINCT col1 + + + col2 AS col1, 2 FROM tab1
----
110
2
115
2
64
2

query I rowsort
SELECT ALL 53 * - 47 FROM tab2
----
-2491
-2491
-2491

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 + 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 11 * col1 + col2 FROM tab2 AS cor0
----
-538
-679
-807

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ( - COUNT( * ) ) + COUNT( * ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5048
SELECT ( - COUNT ( * ) ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT + col2 + col0 - + ( - + CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) ) + + 78 * 69 FROM tab2 AS cor0
----
5405
5422
5440

skipif mysql # not compatible
query I rowsort label-5049
SELECT + col2 + col0 - + ( - + CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) ) + + 78 * 69 FROM tab2 AS cor0
----
5405
5422
5440

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5050
SELECT ALL CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-5050
SELECT ALL CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 53 + + col0 FROM tab0 AS cor0
----
140
150
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT - 74 / - + 11 + - ( + col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 74 / - + 11 + - ( + col2 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5053
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) < col2
----

skipif mysql # not compatible
query III rowsort label-5053
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) < col2
----

query I rowsort
SELECT ALL + + 24 + + - col2 FROM tab2 AS cor0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT + - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL < + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5056
SELECT ALL MIN( DISTINCT col1 ) - - + COUNT( DISTINCT CAST( - col2 AS DECIMAL ) ) col0 FROM tab0 cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5056
SELECT ALL MIN ( DISTINCT col1 ) - - + COUNT ( DISTINCT CAST ( - col2 AS REAL ) ) col0 FROM tab0 cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 74 ) + - 54 * - col0 + - col1 * + 70 col0 FROM tab0 AS cor0
----
-4934
3154
5094

query I rowsort
SELECT - + 62 - - 22 AS col2 FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL - COUNT( DISTINCT + + 60 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - COUNT ( DISTINCT + + 60 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col1 * + + 32 FROM tab1 AS cor0
----
1504
160
448

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT 89 AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-5061
SELECT 89 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
89
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT + 23 DIV + ( + 3 ) AS col1 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-5062
SELECT + 23 / + ( + 3 ) AS col1 FROM tab0
----
7
7
7

query II rowsort
SELECT DISTINCT 30, + col0 FROM tab2
----
30
46
30
64
30
75

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT - ( + - col0 ) = - 15
----
-46
-64
-75

query I rowsort
SELECT 3 * + col0 AS col2 FROM tab1
----
153
255
273

query II rowsort
SELECT ALL - col0 AS col0, 27 FROM tab1 cor0
----
-51
27
-85
27
-91
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 AS cor0 WHERE NOT + col1 * - col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT 99 AS col0, COUNT( * ) FROM tab1 AS cor0
----
99
3

skipif mysql # not compatible
query II rowsort label-5068
SELECT 99 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
99
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 87, - col0 col2 FROM tab1 AS cor0
----
-87
-51
-87
-85
-87
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL ( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT + + COUNT( * ) DIV - 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT + + COUNT ( * ) / - 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 71 BETWEEN - + col2 AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 58 + - col1 AS col1 FROM tab0 AS cor0
----
-139
-59
-79

query I rowsort
SELECT 9 AS col2 FROM tab0 cor0
----
9
9
9

query III rowsort
SELECT - + 85 + 79 AS col1, ( - ( - + col0 ) ), + 92 AS col2 FROM tab0 AS cor0
----
9 values hashing to fa04cc7b13eb8ed8e011e4fb3482c44c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= - 87
----

query I rowsort
SELECT 94 + - 50 AS col0 FROM tab1
----
44
44
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - + col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * - 14 AS col0 FROM tab1 AS cor0
----
-1344
-826
-952

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5081
SELECT col2, - col2 - 42 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5081
SELECT col2, - col2 - 42 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT + - ( COUNT( * ) ) * + MAX( DISTINCT + 75 ) AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + - ( COUNT ( * ) ) * + MAX ( DISTINCT + 75 ) AS col1 FROM tab2 AS cor0
----
-225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - col0 ) * + col1 * col2 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + 49 * - - COUNT( * ) AS col1 FROM tab2 cor0
----
147

skipif mysql # not compatible
query I rowsort label-5085
SELECT + 49 * - - COUNT ( * ) AS col1 FROM tab2 cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT COUNT( * ) + 29 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT COUNT ( * ) + 29 FROM tab1
----
32

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + COUNT( DISTINCT - + 71 ) * 27 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5088
SELECT + COUNT ( DISTINCT - + 71 ) * 27 FROM tab1 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT ALL + col1 DIV + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + col1 / + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT DISTINCT - col0 DIV - col1 + - col1 + col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT - col0 / - col1 + - col1 + col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - MIN( ALL + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT COUNT( * ) * + 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-5093
SELECT COUNT ( * ) * + 41 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT DISTINCT - ( + COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 16 = + col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 18 AS col2, 76 * col0 AS col1 FROM tab2 AS cor0
----
18
3496
18
4864
18
5700

query I rowsort
SELECT DISTINCT + 5 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT - col1 DIV + 56 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT - col1 / + 56 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 66 AS col0 FROM tab0 WHERE - + col2 = + col1
----

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 66 AS col0 FROM tab0 WHERE - + col2 = + col1
----

query I rowsort
SELECT 10 + 28 - - + col0 AS col0 FROM tab0
----
125
135
53

query I rowsort
SELECT ALL - col1 * + + col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL - + MAX( + CAST( NULL AS SIGNED ) ) + MAX( DISTINCT - ( - - col0 ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - + MAX ( + CAST ( NULL AS INTEGER ) ) + MAX ( DISTINCT - ( - - col0 ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 + - 35 - 57 * col1 FROM tab1 AS cor0
----
-235
-2623
-782

query I rowsort
SELECT - 88 * + 90 * + col1 + - + col1 + - ( col2 ) AS col2 FROM tab2 AS cor0
----
-403994
-530765
-609957

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + 38 * col2 > col0
----

query I rowsort
SELECT ALL col2 + - - col1 - col2 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - ( - 0 ) + + - 2 FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5109
SELECT DISTINCT 59 + 83 AS col0, CAST( + col1 AS SIGNED ) + + 46 AS col2 FROM tab1
----
142
51
142
60
142
93

skipif mysql # not compatible
query II rowsort label-5109
SELECT DISTINCT 59 + 83 AS col0, CAST ( + col1 AS INTEGER ) + + 46 AS col2 FROM tab1
----
142
51
142
60
142
93

query I rowsort
SELECT DISTINCT + col1 * - 57 - col0 AS col0 FROM tab0
----
-1284
-154
-4632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 5 col1 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT - 6 - + col0 FROM tab2
----
-52
-70
-81

query I rowsort
SELECT ALL + col0 - + 77 * + - 41 FROM tab2
----
3203
3221
3232

query I rowsort
SELECT ALL - ( + col0 ) + - ( 13 ) + + col0 AS col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
-13
-13
-13

query I rowsort
SELECT + 22 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
1209
455
803

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL + + COUNT( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + + COUNT ( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----
0

query I rowsort
SELECT ALL 13 + - 5 AS col1 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT - - 68 + 88 AS col1 FROM tab2 AS cor0
----
156
156
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT DISTINCT - col1 * - col0 - col0 DIV - col1 FROM tab0 AS cor0
----
1215
1831
194

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - col1 * - col0 - col0 / - col1 FROM tab0 AS cor0
----
1215
1831
194

query I rowsort
SELECT + 87 * + 83 + - 88 AS col2 FROM tab1 AS cor0
----
7133
7133
7133

query I rowsort
SELECT + 94 + - 66 FROM tab0 AS cor0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - - col2 + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5123
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5123
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab1 AS cor0 WHERE + col0 = + 60 - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - 78 col2 FROM tab2 AS cor0
----
46
-78
64
-78
75
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT - MAX( + 94 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT - MAX ( + 94 ) FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - MIN( DISTINCT - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5127
SELECT - MIN ( DISTINCT - col0 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT + + 44 * + MIN( + col2 ) FROM tab0 AS cor0
----
440

skipif mysql # not compatible
query I rowsort label-5128
SELECT + + 44 * + MIN ( + col2 ) FROM tab0 AS cor0
----
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5129
SELECT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL - col1 * + - col2 + - 68 FROM tab1 AS cor0
----
1276
227
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT + COUNT( * ) * + + 98 AS col1 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5131
SELECT + COUNT ( * ) * + + 98 AS col1 FROM tab0 AS cor0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, - col0 + col1 FROM tab2 AS cor0
----
-51
5
-67
-8
-77
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5133
SELECT 55 / + CAST( NULL AS SIGNED ) AS col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5133
SELECT 55 / + CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL ( + SUM( 28 ) ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL ( + SUM ( 28 ) ) AS col2 FROM tab1
----
84

query I rowsort
SELECT DISTINCT 51 * col2 AS col0 FROM tab0
----
2397
5049
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL 83 FROM tab1 WHERE CAST( NULL AS SIGNED ) * - - ( - col2 ) >= - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 83 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - - ( - col2 ) >= - ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT ALL + 82 DIV - col1 col2 FROM tab0 AS cor0
----
-1
-3
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5137
SELECT ALL + 82 / - col1 col2 FROM tab0 AS cor0
----
-1
-3
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + COUNT( + - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5138
SELECT + COUNT ( + - col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT - ( 71 ) FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT col2 - - + col1 IS NOT NULL
----

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE ( ( NOT 42 IS NULL ) )
----
-23
-40
-58

query I rowsort
SELECT ALL - 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5143
SELECT ( + - CAST( NULL AS DECIMAL ) ) * + - col0 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ( + - CAST ( NULL AS REAL ) ) * + - col0 * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 90 * - - col1 FROM tab0
----
1890
7290
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT + ( - - 33 ) DIV 67 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT + ( - - 33 ) / 67 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + COUNT( * ) + + MAX( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5146
SELECT + COUNT ( * ) + + MAX ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT 44 DIV 63 + + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT 44 / 63 + + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 1 + col2 <= NULL
----

query I rowsort
SELECT - col1 + - - col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT col1 * - col0 - + col1 + - + col1 FROM tab0 AS cor0
----
-1377
-1869
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT + col1 + col0 DIV + + col1 FROM tab0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + col1 + col0 / + + col1 FROM tab0
----
25
81
98

query I rowsort
SELECT - ( - col2 ) FROM tab1 WHERE col1 IS NULL AND ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col0 + + - 64 NOT IN ( col1 + col0 + ( 65 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL + ( CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + ( CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT MAX( ALL + + 62 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5156
SELECT DISTINCT MAX ( ALL + + 62 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5157
SELECT DISTINCT + col1 DIV - - col2 AS col2, - col1 col1 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5157
SELECT DISTINCT + col1 / - - col2 AS col2, - col1 col1 FROM tab1
----
0
-14
0
-47
0
-5

query I rowsort
SELECT ALL + - 52 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT + - MAX( - 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5159
SELECT + - MAX ( - 89 ) FROM tab0 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT DISTINCT + col1 DIV 49 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + col1 / 49 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 67 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 67 FROM tab1
----
NULL

query I rowsort
SELECT + col0 * - + ( - + col0 ) AS col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5163
SELECT 72 DIV + SUM( DISTINCT + col0 ) * + + COUNT( * ) DIV + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT 72 / + SUM ( DISTINCT + col0 ) * + + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL MAX( ALL + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL MAX ( ALL + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - 21 * - col0 FROM tab0
----
1827
2037
315

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE col2 + - 85 IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * 53 BETWEEN NULL AND + col1 / 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - ( col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT 86 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT 86 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 72 + + 48 FROM tab1
----
120

query I rowsort
SELECT DISTINCT + col2 + 22 * ( + ( - ( + col0 ) ) ) AS col0 FROM tab1 WHERE NULL >= 72
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= ( - col2 * - col0 )
----

query I rowsort
SELECT col1 + 11 AS col0 FROM tab2 WHERE ( + 51 ) IS NOT NULL
----
62
78
88

query I rowsort
SELECT - ( - 4 ) + 58 AS col0 FROM tab2
----
62
62
62

query I rowsort
SELECT ALL + 4 FROM tab2 WHERE NOT col2 + 87 * + 98 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * - ( 70 * col2 ) col1 FROM tab1
----
342720
351050
433160

query I rowsort
SELECT + ( 7 ) + 11 FROM tab1
----
18
18
18

query I rowsort
SELECT - col1 * + ( col2 ) + 37 AS col0 FROM tab0
----
-173
-3770
-62

query I rowsort
SELECT DISTINCT col1 * 31 AS col0 FROM tab2
----
1581
2077
2387

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 / + col2 + 20 <> col0 * - col1
----

query I rowsort
SELECT DISTINCT - 89 * - 38 FROM tab1
----
3382

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT + 84 DIV - col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5182
SELECT + 84 / - col0 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT - 0 DIV - col1 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5183
SELECT - 0 / - col1 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5184
SELECT + COUNT( * ) DIV 80 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT + COUNT ( * ) / 80 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( + 31 * col2 ) NOT BETWEEN col2 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT - col2 DIV + ( - col2 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5186
SELECT - col2 / + ( - col2 ) FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 46 + + col1 AS col0 FROM tab1
----
51
60
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT + 73 DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 73 / col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5189
SELECT - MIN( CAST( NULL AS SIGNED ) ) / - MIN( ALL + col2 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5189
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) / - MIN ( ALL + col2 ) col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT ALL 18 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL 18 / + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 8 FROM tab1 WHERE ( NULL ) IS NULL
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT ALL - 45 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - 45 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT + COUNT( ALL col1 ) * + 26 AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5193
SELECT + COUNT ( ALL col1 ) * + 26 AS col1 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - ( + 5 ) + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-5194
SELECT - ( + 5 ) + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT - 71 DIV - 70 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5195
SELECT - 71 / - 70 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT SUM( col2 ) * + 36 AS col2 FROM tab1
----
8028

skipif mysql # not compatible
query I rowsort label-5196
SELECT SUM ( col2 ) * + 36 AS col2 FROM tab1
----
8028

query I rowsort
SELECT + 66 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
66
66
66

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > col1 * col1
----

query I rowsort
SELECT col2 * + 6 FROM tab2 AS cor0
----
138
240
348

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 * 15 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - ( + 31 ) AND - col0
----

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE ( 64 * col2 ) <> + ( col0 )
----
14
47
5

query I rowsort
SELECT ALL - + 42 * - 63 FROM tab0 AS cor0
----
2646
2646
2646

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT DISTINCT col2 DIV + 39 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT col2 / + 39 AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - 43 * + col2 + - ( 15 ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col0 FROM tab2
----
11

query I rowsort
SELECT ALL 43 * col0 AS col0 FROM tab2
----
1978
2752
3225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5208
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5208
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 7 FROM tab1 WHERE - col2 IS NOT NULL
----
-52
-61
-89

query I rowsort
SELECT - col1 * + ( 32 ) + col1 AS col2 FROM tab0
----
-2511
-31
-651

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + ( - 86 / 18 ) IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT 16 <= ( col1 ) * 46 - 49
----
1

query I rowsort
SELECT col1 + + 20 AS col2 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - - COUNT( * ) * + SUM( DISTINCT col1 ) + 28 AS col0 FROM tab2 AS cor0
----
613

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - - COUNT ( * ) * + SUM ( DISTINCT col1 ) + 28 AS col0 FROM tab2 AS cor0
----
613

query I rowsort
SELECT DISTINCT - ( 4 ) + - col1 AS col1 FROM tab1 AS cor0
----
-18
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT + - 89 + + SUM( ALL - 68 ) * + ( 84 ) AS col0 FROM tab0 AS cor0
----
-17225

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + - 89 + + SUM ( ALL - 68 ) * + ( 84 ) AS col0 FROM tab0 AS cor0
----
-17225

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < ( - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - SUM( + col2 ) col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5219
SELECT - SUM ( + col2 ) col1 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT - col0 AS col2, 88 FROM tab1
----
-51
88
-85
88
-91
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE ( ( col0 ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE ( ( col0 ) IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT DISTINCT 72 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT 72 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL 64 - + col2 FROM tab0
----
-35
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL COUNT( * ) FROM tab1, tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + 1 + + 70 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL COUNT ( * ) FROM tab1, tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + 1 + + 70 ) AND NULL
----
0

query I rowsort
SELECT + 7 + - 13 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL MAX( ALL col0 ) * - 67 AS col1 FROM tab0 AS cor0
----
-6499

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL MAX ( ALL col0 ) * - 67 AS col1 FROM tab0 AS cor0
----
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT - ( - COUNT( * ) ) * COUNT( - col2 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - ( - COUNT ( * ) ) * COUNT ( - col2 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ( - + col0 ) + + + col1 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( 33 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL 96 + + MIN( DISTINCT col0 ) * - CAST( + 8 * - COUNT( * ) - COUNT( * ) * MAX( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL 96 + + MIN ( DISTINCT col0 ) * - CAST ( + 8 * - COUNT ( * ) - COUNT ( * ) * MAX ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0 WHERE NOT 2 < ( - + col0 )
----
95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col0 = NULL
----

query I rowsort
SELECT ALL 95 - - 74 AS col0 FROM tab1
----
169
169
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5235
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0 WHERE - - col0 > ( - - 91 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0 WHERE - - col0 > ( - - 91 / col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT - ( + + SUM( ALL + 58 ) ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-5236
SELECT - ( + + SUM ( ALL + 58 ) ) FROM tab2
----
-174

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) <> col1 * - col1
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT col2 - - 19, col1 FROM tab0
----
118
1
29
21
66
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT DISTINCT - COUNT( * ) * 52 AS col0 FROM tab2 WHERE NOT 34 IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT - COUNT ( * ) * 52 AS col0 FROM tab2 WHERE NOT 34 IS NULL
----
-156

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE ( + 63 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL col0 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT CAST( + ( + col0 ) AS SIGNED ) < + col0 )
----

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL col0 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT CAST ( + ( + col0 ) AS INTEGER ) < + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 90 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col1 + + col0 col0 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT COUNT( * ) * - 14 FROM tab2 cor0 WHERE NOT ( - col2 * col1 IS NULL )
----
-42

skipif mysql # not compatible
query I rowsort label-5245
SELECT COUNT ( * ) * - 14 FROM tab2 cor0 WHERE NOT ( - col2 * col1 IS NULL )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT ALL 92 * - ( col0 * col1 ) + + col0 col1 FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) <> col0 + + 39 * col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5246
SELECT ALL 92 * - ( col0 * col1 ) + + col0 col1 FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) <> col0 + + 39 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col0 ), - col1 col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + - col0 ) NOT IN ( col0 * + 35 + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5249
SELECT COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL ( + - col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col0 + col0 NOT IN ( + 19 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - - col2, + 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT DISTINCT col2 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 44 AND + CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT col2 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 44 AND + CAST ( + + col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - ( - - col1 ) / - ( + col2 ) + + col2 AND col0 + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5256
SELECT * FROM tab2 WHERE NOT + + col2 + - col0 NOT IN ( + CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5256
SELECT * FROM tab2 WHERE NOT + + col2 + - col0 NOT IN ( + CAST ( + + col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, 21 col1 FROM tab0
----
15
21
87
21
97
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT + 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-5258
SELECT + col1 / + - col1 col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT CAST( 53 AS SIGNED ) col2 FROM tab2
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5259
SELECT DISTINCT CAST ( 53 AS INTEGER ) col2 FROM tab2
----
53

query I rowsort
SELECT DISTINCT + col2 * + 88 FROM tab1
----
5192
5984
8448

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + + col2 + - + col2 + - - col2 + col0 >= + col1 * + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5262
SELECT DISTINCT CAST( 65 AS SIGNED ) * - + COUNT( * ) col1 FROM tab1
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5262
SELECT DISTINCT CAST ( 65 AS INTEGER ) * - + COUNT ( * ) col1 FROM tab1
----
-195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - col0 > + ( - col1 )
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT MAX( ALL + - 14 ) * - 89 FROM tab2
----
1246

skipif mysql # not compatible
query I rowsort label-5264
SELECT MAX ( ALL + - 14 ) * - 89 FROM tab2
----
1246

query I rowsort
SELECT DISTINCT - col1 * - + 8 AS col1 FROM tab1
----
112
376
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + - col1 NOT BETWEEN 54 AND ( - col1 * col2 + 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5267
SELECT ALL - CAST( col2 AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( 11 )
----

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - CAST ( col2 AS REAL ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( 11 )
----

query I rowsort
SELECT DISTINCT 19 + + 12 FROM tab0 AS cor0
----
31

query I rowsort
SELECT - 52 + col1 * 99 FROM tab2 AS cor0 WHERE NULL NOT IN ( 98 * 80 - + 45 * col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 26 * + 53 - - col2 FROM tab1
----
1437
1446
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - + COUNT( * ) * - 39 + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
360

skipif mysql # not compatible
query I rowsort label-5272
SELECT - + COUNT ( * ) * - 39 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
360

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <= - col1
----

query I rowsort
SELECT ALL + col2 * 81 * col0 AS col1 FROM tab1 AS cor0
----
396576
406215
501228

query I rowsort
SELECT - + 88 * col2 * + - 81 + + 19 FROM tab1 AS cor0
----
420571
484723
684307

query I rowsort
SELECT - - col1 - - 1 AS col0 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT DISTINCT 96 FROM tab1 cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 15 - 4 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT + col1 + + col2 - 90 + - 76 FROM tab1 AS cor0
----
-102
-51
-56

query I rowsort
SELECT + - ( col1 ) - col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT + col2 * + col2 - - ( col2 ) FROM tab2 AS cor0
----
1640
3422
552

query III rowsort
SELECT * FROM tab2 WHERE ( 52 * - col1 + - 71 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - 60 * MIN( DISTINCT col0 ) FROM tab2 WHERE NOT NULL >= + col0 - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT - 60 * MIN ( DISTINCT col0 ) FROM tab2 WHERE NOT NULL >= + col0 - + 20
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5284
SELECT 86 DIV + COUNT( * ) AS col2 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5284
SELECT 86 / + COUNT ( * ) AS col2 FROM tab0
----
28

query I rowsort
SELECT DISTINCT + col1 * + + col1 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT + col1 * - 57 AS col1 FROM tab2
----
-2907
-3819
-4389

query I rowsort
SELECT ALL + col1 * - + col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5288
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + CAST( - - 49 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5288
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + CAST ( - - 49 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT - 34, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-34
3

skipif mysql # not compatible
query II rowsort label-5289
SELECT - 34, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-34
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5290
SELECT DISTINCT - 74 DIV - ( + 74 ), - col0 + + ( + ( - - 92 ) ) * 53 AS col2 FROM tab1 AS cor0
----
1
4785
1
4791
1
4825

skipif mysql # not compatible
query II rowsort label-5290
SELECT DISTINCT - 74 / - ( + 74 ), - col0 + + ( + ( - - 92 ) ) * 53 AS col2 FROM tab1 AS cor0
----
1
4785
1
4791
1
4825

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - + MIN( ALL col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5291
SELECT DISTINCT - + MIN ( ALL col0 ) col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - - col0 * - 81 FROM tab0 AS cor0
----
-1215
-7047
-7857

query I rowsort
SELECT DISTINCT - col2 * col2 * - + col1 FROM tab0 WHERE + col1 + - col0 <> ( - col2 )
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-5294
SELECT - + 10 * 52, MIN( 44 ) col2 FROM tab1 AS cor0
----
-520
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5294
SELECT - + 10 * 52, MIN ( 44 ) col2 FROM tab1 AS cor0
----
-520
44

query I rowsort
SELECT DISTINCT + col0 + + 85 + + col2 AS col0 FROM tab1 AS cor0
----
229
232
244

query I rowsort
SELECT DISTINCT 70 + 40 * + + col1 AS col2 FROM tab0 AS cor0
----
110
3310
910

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT col1 * - - col0 DIV col0 + + 70 - - col0 * 3 * col1 * - - col2 * col1 * + 82 + + col0 * + 89 FROM tab0 AS cor0
----
1137875716
2371042
94390654

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT col1 * - - col0 / col0 + + 70 - - col0 * 3 * col1 * - - col2 * col1 * + 82 + + col0 * + 89 FROM tab0 AS cor0
----
1137875716
2371042
94390654

query I rowsort
SELECT ALL col1 + col1 * + + col0 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT + - COUNT( * ) FROM tab0 WHERE NULL < + 95 - - col1
----
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT + - COUNT ( * ) FROM tab0 WHERE NULL < + 95 - - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - 36 * - col1 AS col2, 87 + - col1 col2 FROM tab1
----
1739
40
185
82
518
73

query I rowsort
SELECT ALL + + 42 FROM tab0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 24 * - + col1 AS col2 FROM tab2
----
1224
1608
1848

query I rowsort
SELECT 85 + + 23 FROM tab0
----
108
108
108

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 = + + 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT DISTINCT - CAST( + 21 AS SIGNED ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - CAST ( + 21 AS INTEGER ) FROM tab2
----
-21

query I rowsort
SELECT ALL - 1 + col2 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL 42 * + 97 + - MIN( - + col1 ) FROM tab2 AS cor0
----
4151

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL 42 * + 97 + - MIN ( - + col1 ) FROM tab2 AS cor0
----
4151

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT DISTINCT 88 DIV - + col0 + col1 FROM tab0
----
1
20
76

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT 88 / - + col0 + col1 FROM tab0
----
1
20
76

query I rowsort
SELECT ALL col2 - 85 * col1 AS col1 FROM tab2
----
-4312
-5637
-6505

query I rowsort
SELECT DISTINCT 83 - - 48 + + col1 AS col0 FROM tab1
----
136
145
178

query I rowsort
SELECT col1 + + 69 AS col0 FROM tab1
----
116
74
83

query II rowsort
SELECT - col2 + - 27 AS col1, + col1 + col2 FROM tab0
----
-126
100
-37
31
-74
128

onlyif mysql # DIV for integer division: 
query II rowsort label-5313
SELECT ALL + + col2 AS col2, col0 DIV + - col1 FROM tab2 AS cor0
----
23
0
40
0
58
-1

skipif mysql # not compatible
query II rowsort label-5313
SELECT ALL + + col2 AS col2, col0 / + - col1 FROM tab2 AS cor0
----
23
0
40
0
58
-1

query I rowsort
SELECT ALL + ( + 84 ) + - + col2 FROM tab1 AS cor0
----
-12
16
25

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 * col1 <= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - COUNT( * ) * 63 + + - 82 FROM tab1 AS cor0
----
-271

skipif mysql # not compatible
query I rowsort label-5316
SELECT - COUNT ( * ) * 63 + + - 82 FROM tab1 AS cor0
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - - COUNT( * ) * - 83 * - COUNT( * ) FROM tab0 cor0
----
747

skipif mysql # not compatible
query I rowsort label-5317
SELECT - - COUNT ( * ) * - 83 * - COUNT ( * ) FROM tab0 cor0
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT COUNT( DISTINCT + 3 ) * 87 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5318
SELECT COUNT ( DISTINCT + 3 ) * 87 FROM tab2 AS cor0
----
87

query II rowsort
SELECT + 41 AS col1, - col1 + + col1 FROM tab1 AS cor0
----
41
0
41
0
41
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT ALL col1 * col1 DIV - 94 AS col1 FROM tab1
----
-2
-23
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL col1 * col1 / - 94 AS col1 FROM tab1
----
-2
-23
0

query I rowsort
SELECT ALL - col2 * 12 AS col1 FROM tab1
----
-1152
-708
-816

query I rowsort
SELECT 58 AS col1 FROM tab2 WHERE NOT NULL < ( - + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5323
SELECT DISTINCT 1 DIV + col2 AS col2, - col1 + - + 62 AS col2 FROM tab2
----
0
-113
0
-129
0
-139

skipif mysql # not compatible
query II rowsort label-5323
SELECT DISTINCT 1 / + col2 AS col2, - col1 + - + 62 AS col2 FROM tab2
----
0
-113
0
-129
0
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * ( col2 ), col2 col2 FROM tab2
----
1600
40
3364
58
529
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL - SUM( - + ( - col0 ) ) * - 51 FROM tab2
----
9435

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL - SUM ( - + ( - col0 ) ) * - 51 FROM tab2
----
9435

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT MIN( ALL - 80 ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5326
SELECT MIN ( ALL - 80 ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT 52 DIV + + col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5327
SELECT 52 / + + col0 AS col1 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5328
SELECT DISTINCT - COUNT( * ) * + 46 FROM tab0 AS cor0 WHERE NULL IN ( 44 * CAST( NULL AS SIGNED ) * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - COUNT ( * ) * + 46 FROM tab0 AS cor0 WHERE NULL IN ( 44 * CAST ( NULL AS INTEGER ) * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - COUNT( col2 ) + + + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> col0 * 90
----
0

skipif mysql # not compatible
query I rowsort label-5329
SELECT - COUNT ( col2 ) + + + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> col0 * 90
----
0

query I rowsort
SELECT ALL + - 59 + + 88 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL - 34 + - + col0 FROM tab1 AS cor0
----
-119
-125
-85

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 / + - col2 NOT BETWEEN + col2 * col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT - COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 * ( col0 ) * + ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5333
SELECT - COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1 * ( col0 ) * + ( col1 )
----
0

query I rowsort
SELECT col1 * - - 85 AS col1 FROM tab1
----
1190
3995
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT + SUM( + CAST( + + col0 AS SIGNED ) ) FROM tab0 WHERE - + 20 * - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT + SUM ( + CAST ( + + col0 AS INTEGER ) ) FROM tab0 WHERE - + 20 * - - col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col0 FROM tab0
----
13
13
13

query II rowsort
SELECT DISTINCT - - 53 + - 72 * + col1 * 19 AS col0, - col2 AS col0 FROM tab1 cor0
----
-19099
-96
-64243
-68
-6787
-59

query I rowsort
SELECT - 53 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
1265
2184
3149

query I rowsort
SELECT DISTINCT - 24 * - col1 + col2 + + + 38 FROM tab0 AS cor0
----
161
2029
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT - MAX( ALL ( + 30 ) ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT - MAX ( ALL ( + 30 ) ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

query II rowsort
SELECT ALL + 60 + col0, col0 FROM tab2 AS cor0
----
106
46
124
64
135
75

query I rowsort
SELECT ALL - 24 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= 33
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT ALL 18, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
18
-3

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL 18, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
18
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT + 21 DIV col1 FROM tab0 AS cor0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-5346
SELECT + 21 / col1 FROM tab0 AS cor0
----
0
1
21

query I rowsort
SELECT 47 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <> NULL
----

query I rowsort
SELECT + 25 * - - 1 FROM tab2 cor0
----
25
25
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT MAX( + + col0 ) * COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT MAX ( + + col0 ) * COUNT ( * ) FROM tab2
----
225

query I rowsort
SELECT ALL + col2 * - ( + col2 ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT + + MIN( - col1 ) FROM tab0 WHERE NOT - col2 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT + + MIN ( - col1 ) FROM tab0 WHERE NOT - col2 + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT MAX( + - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT MAX ( + - col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT ALL col1 FROM tab0 WHERE + 41 + + - 21 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + 68 AS col2 FROM tab2
----
-23
68
-40
68
-58
68

query I rowsort
SELECT col0 * - 50 FROM tab2 AS cor0
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + + ( + MIN( DISTINCT + + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5357
SELECT + + ( + MIN ( DISTINCT + + col0 ) ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + 67 FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

query I rowsort
SELECT ( - 91 ) AS col0 FROM tab2 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT + 20 + CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
107
117
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5360
SELECT + 20 + CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
107
117
35

query I rowsort
SELECT + 61 FROM tab0 AS cor0 WHERE NULL < - col0 / - col1 * + col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT ALL - 56 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - 56 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + 71 col0, - col2 FROM tab1 AS cor0
----
130
-59
139
-68
167
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 44 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - SUM( DISTINCT col1 ) AS col2 FROM tab1 WHERE + + 0 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-5365
SELECT - SUM ( DISTINCT col1 ) AS col2 FROM tab1 WHERE + + 0 IS NOT NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - MAX( ALL + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - MAX ( ALL + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + col2 * 30 + + + col1 AS col0, col2 AS col2 FROM tab0
----
1491
47
2971
99
321
10

query I rowsort
SELECT DISTINCT 69 - + col1 FROM tab2
----
-8
18
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5369
SELECT ALL + COUNT( * ) AS col0, 99 AS col1 FROM tab1
----
3
99

skipif mysql # not compatible
query II rowsort label-5369
SELECT ALL + COUNT ( * ) AS col0, 99 AS col1 FROM tab1
----
3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT + COUNT( * ) * - 97 * COUNT( * ) FROM tab0
----
-873

skipif mysql # not compatible
query I rowsort label-5370
SELECT + COUNT ( * ) * - 97 * COUNT ( * ) FROM tab0
----
-873

query I rowsort
SELECT DISTINCT + + 99 * col0 + + col1 + + - col1 AS col0 FROM tab1 AS cor0
----
5049
8415
9009

query I rowsort
SELECT col0 - - col2 * + col1 + + ( + 11 ) * col0 + + 72 FROM tab0
----
1326
1335
4059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 24 col2 FROM tab0
----
-2088
-2328
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT - 44 - col0 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 84 + - CAST( NULL AS SIGNED ) / - col0 + + 30 + 45 + + CAST( - col1 AS SIGNED ) + + col1 > - - col0
----

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 44 - col0 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 84 + - CAST ( NULL AS INTEGER ) / - col0 + + 30 + 45 + + CAST ( - col1 AS INTEGER ) + + col1 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT - + ( - SUM( ALL + + col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5375
SELECT - + ( - SUM ( ALL + + col1 ) ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + + 11 AS col2 FROM tab1 AS cor0
----
11

query I rowsort
SELECT + - 86 * - col2 * 86 FROM tab1 AS cor0
----
436364
502928
710016

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( - col2 ) > ( NULL )
----

query I rowsort
SELECT col1 * + + 69 AS col2 FROM tab0 AS cor0
----
1449
5589
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 35 )
----

query I rowsort
SELECT DISTINCT - col2 * + + 14 * + col0 FROM tab2 cor0
----
-14812
-35840
-60900

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL - MIN( col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - MIN ( col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT DISTINCT COUNT( - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT COUNT ( - col0 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5384
SELECT DISTINCT + col1 FROM tab1 WHERE col2 BETWEEN - 56 AND - col0 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT + col1 FROM tab1 WHERE col2 BETWEEN - 56 AND - col0 + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - MIN( + - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5385
SELECT - MIN ( + - col1 ) AS col0 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col1 FROM tab0
----
-45
-45
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 <= + + col2 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 53 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL col2 + col2 - + CAST( - + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
177
204
288

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL col2 + col2 - + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
177
204
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE - + ( + 31 ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - - 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + - 50 * - COUNT( * ) + - + 49 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
401

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + - 50 * - COUNT ( * ) + - + 49 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
401

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5395
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 21, - 53, + CAST( NULL AS SIGNED ) + - - col2 * + - col0 * + - col0, col2 + + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5395
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 21, - 53, + CAST ( NULL AS INTEGER ) + - - col2 * + - col0 * + - col0, col2 + + - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT 54 * col2 / + + 43 / - + 79 AS col2, + col2 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT CAST( NULL AS SIGNED ) * - 70 col0 FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND ( - 37 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT CAST ( NULL AS INTEGER ) * - 70 col0 FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND ( - 37 )
----

query I rowsort
SELECT DISTINCT col0 + + - 22 AS col2 FROM tab1 AS cor0
----
29
63
69

query I rowsort
SELECT DISTINCT + col1 + + - col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5400
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT - + 65 * + - COUNT( * ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5401
SELECT - + 65 * + - COUNT ( * ) FROM tab2 AS cor0
----
195

query II rowsort
SELECT - + 56, col2 FROM tab1 AS cor0
----
-56
59
-56
68
-56
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT DISTINCT + - col1 + + - col2 DIV 41 FROM tab0 AS cor0
----
-21
-3
-82

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + - col1 + + - col2 / 41 FROM tab0 AS cor0
----
-21
-3
-82

query I rowsort
SELECT DISTINCT 67 - col2 - - col0 AS col2 FROM tab1
----
22
90
93

query I rowsort
SELECT col0 FROM tab1 WHERE + - 83 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL AND - col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 51 * - - 84 FROM tab0
----
201348
424116
42840

query I rowsort
SELECT - col1 * 27 - + col2 * + col0 + + col1 AS col1 FROM tab2
----
-2384
-4562
-6092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT DISTINCT - 74 - + - 33 * - ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) - - 61 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - 74 - + - 33 * - ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) - - 61 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 * - col0 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 * - col0 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ( + COUNT( DISTINCT - - ( + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5411
SELECT ( + COUNT ( DISTINCT - - ( + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + - 48 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5414
SELECT - col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5414
SELECT - col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - - col0 BETWEEN NULL AND + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5416
SELECT + CAST( NULL AS SIGNED ) * - 27 * - + COUNT( DISTINCT + - CAST( - 25 AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT + CAST ( NULL AS INTEGER ) * - 27 * - + COUNT ( DISTINCT + - CAST ( - 25 AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 77 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = - col2 / - - col0
----

query II rowsort
SELECT ALL col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT DISTINCT + 10 DIV - col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 10 / - col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - 99 * col1 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + 70 * + MIN( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-4060

skipif mysql # not compatible
query I rowsort label-5421
SELECT + 70 * + MIN ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-4060

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( 96, col0 + + col2 + col2 * col2 * + col2, - col1 + - - 60 * ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - - COUNT( * ) * - 28 AS col0 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5423
SELECT - - COUNT ( * ) * - 28 AS col0 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL ( + col1 ) + + col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5426
SELECT MIN( + 16 ) FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT MIN ( + 16 ) FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 84 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-84

query I rowsort
SELECT col2 * + - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT + COUNT( * ) * + COUNT( DISTINCT col0 ) * + - 56 + + 72 FROM tab2 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + COUNT ( * ) * + COUNT ( DISTINCT col0 ) * + - 56 + + 72 FROM tab2 AS cor0
----
-432

query I rowsort
SELECT DISTINCT + 70 + - 3 FROM tab1 AS cor0
----
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - + col1 BETWEEN NULL AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 + - - col1 col2 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT - col0 IS NOT NULL ) )
----

query I rowsort
SELECT 92 + col2 AS col1 FROM tab1 AS cor0
----
151
160
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + 30 col2 FROM tab0 cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - - MAX( DISTINCT - + ( + + 18 ) ) + - + 22 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5436
SELECT - - MAX ( DISTINCT - + ( + + 18 ) ) + - + 22 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + col2 * + - col2 + + 85 * - 69 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 * + - col2 + + 85 * - 69 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5438
SELECT ALL + col0 + - 22 * - + col1 * - CAST( + col2 AS SIGNED ) * + col0 * CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + col0 + - 22 * - + col1 * - CAST ( + col2 AS INTEGER ) * + col0 * CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * 39 + col0 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * 39 + col0 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 - + col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL col2 + - 36 FROM tab1
----
23
32
60

query III rowsort
SELECT * FROM tab0 WHERE + col1 + - 8 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 44 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + - COUNT( * ) FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT + - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 59 * - + col0 * - + col2 * + 87 FROM tab0
----
3618765
4465710
49292199

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT ALL + ( + + col1 ) DIV - 87 + 94 FROM tab2 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL + ( + + col1 ) / - 87 + 94 FROM tab2 AS cor0
----
94
94
94

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 69 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 88 col2 FROM tab2 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + + SUM( DISTINCT - 52 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-52

skipif mysql # not compatible
query I rowsort label-5451
SELECT + + SUM ( DISTINCT - 52 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT - 83 DIV - + ( - 36 ) AS col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5452
SELECT - 83 / - + ( - 36 ) AS col0 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - MIN( DISTINCT 78 ) + + 48 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * 69 + - + col1 IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-5453
SELECT - MIN ( DISTINCT 78 ) + + 48 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 * 69 + - + col1 IS NULL
----
66

query I rowsort
SELECT ALL 86 AS col1 FROM tab1 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL + MIN( ALL 4 ) * 92 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
365

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL + MIN ( ALL 4 ) * 92 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
365

query I rowsort
SELECT + + 99 * + + col0 AS col1 FROM tab0 AS cor0
----
1485
8613
9603

query I rowsort
SELECT + 44 * - - col2 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT DISTINCT + ( - 3 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + col0 * + 39 AS col2 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col1 col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT col2 DIV - - col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5462
SELECT col2 / - - col0 AS col0 FROM tab1
----
0
0
1

query II rowsort
SELECT col0 AS col2, 77 AS col2 FROM tab0
----
15
77
87
77
97
77

query I rowsort
SELECT ALL ( - + 76 ) FROM tab2
----
-76
-76
-76

query I rowsort
SELECT DISTINCT - 33 + col0 AS col2 FROM tab1 AS cor0
----
18
52
58

query I rowsort
SELECT DISTINCT - 94 + 35 FROM tab2 AS cor0
----
-59

query II rowsort
SELECT + 9 + 32 + + col1, col2 AS col2 FROM tab1 AS cor0
----
46
59
55
96
88
68

query I rowsort
SELECT DISTINCT - - col0 * - 51 + - col0 + 81 FROM tab2 cor0
----
-2311
-3247
-3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - 36 + - 49 + - 35 + col2 col1 FROM tab2 AS cor0
----
1811
1828
1846

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT COUNT( * ) + 91 col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5470
SELECT COUNT ( * ) + 91 col1 FROM tab2 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 + + 40 AS col2 FROM tab1 AS cor0 WHERE 86 * + + 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 * + col2 - + col0 * - col2 + 88 * CAST( NULL AS SIGNED ) * - - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 * + col2 - + col0 * - col2 + 88 * CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - + col1 AS col1, col0 * + 27 AS col1 FROM tab1 AS cor0 WHERE NOT - 61 + col1 IS NULL
----
-14
1377
-47
2457
-5
2295

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT - - col2 DIV + - col0 - 27 FROM tab2 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-5475
SELECT - - col2 / + - col0 - 27 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - col0 + - 70 FROM tab2 AS cor0
----
-116
-134
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT - col1 - col1 DIV col1 - - 60 * + + col0 * - + 4 FROM tab1
----
-12255
-20406
-21888

skipif mysql # not compatible
query I rowsort label-5477
SELECT - col1 - col1 / col1 - - 60 * + + col0 * - + 4 FROM tab1
----
-12255
-20406
-21888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT DISTINCT 64 * + CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT 64 * + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5479
SELECT + col1 DIV + col0 - - - col2 col2 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5479
SELECT + col1 / + col0 - - - col2 col2 FROM tab2
----
-22
-39
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT ALL - COUNT( * ) - ( CAST( + MIN( ALL - + col2 ) AS SIGNED ) ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - COUNT ( * ) - ( CAST ( + MIN ( ALL - + col2 ) AS INTEGER ) ) AS col0 FROM tab1
----
93

query I rowsort
SELECT 21 + + col1 FROM tab0
----
102
22
42

query I rowsort
SELECT 28 * - 69 AS col2 FROM tab1
----
-1932
-1932
-1932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 col2 FROM tab0 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17, + col1 col0 FROM tab2
----
17
51
17
67
17
77

query I rowsort
SELECT ( - 25 ) FROM tab2
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT - 75 AS col1 FROM tab0 WHERE CAST( - col0 AS SIGNED ) IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - 75 AS col1 FROM tab0 WHERE CAST ( - col0 AS INTEGER ) IS NOT NULL
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT + 2 * - - COUNT( * ) * - + ( + COUNT( * ) ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + 2 * - - COUNT ( * ) * - + ( + COUNT ( * ) ) FROM tab1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT ALL 46 DIV - + 22 AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL 46 / - + 22 AS col1 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col2 ) * + - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT - MAX( 80 ) FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5490
SELECT - MAX ( 80 ) FROM tab2 cor0
----
-80

query I rowsort
SELECT 32 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 36 col0 FROM tab1 AS cor0
----
-2124
-2448
-3456

query II rowsort
SELECT - + col0 AS col1, + col0 * + 66 FROM tab2 AS cor0
----
-46
3036
-64
4224
-75
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL + 56 * - - 62 + SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
3593

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + 56 * - - 62 + SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3593

query II rowsort
SELECT - + col1, - col2 AS col1 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT DISTINCT 65 FROM tab2 WHERE NOT NULL <= + ( + 42 )
----

query I rowsort
SELECT ALL + col2 * - - col0 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT DISTINCT col1 DIV 6 * + ( - 97 ) AS col2 FROM tab2
----
-1067
-1164
-776

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT col1 / 6 * + ( - 97 ) AS col2 FROM tab2
----
-1067
-1164
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 + - col0 col0 FROM tab0 WHERE + col1 + + + col1 + 94 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT + col2 * - col1 + col0 DIV - 48 - 56 + + col0 FROM tab1
----
-1350
-267
-3162

skipif mysql # not compatible
query I rowsort label-5500
SELECT + col2 * - col1 + col0 / - 48 - 56 + + col0 FROM tab1
----
-1350
-267
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT COUNT( * ) + - 11 + + 87 * COUNT( * ) FROM tab0
----
253

skipif mysql # not compatible
query I rowsort label-5501
SELECT COUNT ( * ) + - 11 + + 87 * COUNT ( * ) FROM tab0
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT COUNT( * ) + + 70 col1 FROM tab1
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5502
SELECT COUNT ( * ) + + 70 col1 FROM tab1
----
73

query I rowsort
SELECT + col1 * col1 * + 92 + - col1 FROM tab1
----
18018
203181
2295

query II rowsort
SELECT - + ( - 80 ), + col2 FROM tab0 AS cor0
----
80
10
80
47
80
99

query I rowsort
SELECT + col1 * - 17 FROM tab0 AS cor0
----
-1377
-17
-357

query II rowsort
SELECT - - ( - col0 ) AS col0, 78 FROM tab2 AS cor0
----
-46
78
-64
78
-75
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - 13 ) + + - col0 + col0 col0 FROM tab2 WHERE ( NOT ( NULL ) >= + 22 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5508
SELECT ALL - col1 AS col0, - 0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
query II rowsort label-5508
SELECT ALL - col1 AS col0, - 0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

query I rowsort
SELECT - col1 + col0 - - col0 + - 79 FROM tab1 AS cor0
----
56
86
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT col0 DIV + 22 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-5510
SELECT col0 / + 22 FROM tab0
----
0
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL + MAX( ALL 8 ) col2 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5511
SELECT ALL + MAX ( ALL 8 ) col2 FROM tab1
----
8

query I rowsort
SELECT ALL - - col0 * 22 AS col2 FROM tab0 AS cor0
----
1914
2134
330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5513
SELECT DISTINCT 62 * ( + col0 ) - + CAST( NULL AS SIGNED ) AS col0, + 20 AS col2 FROM tab1 AS cor0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-5513
SELECT DISTINCT 62 * ( + col0 ) - + CAST ( NULL AS INTEGER ) AS col0, + 20 AS col2 FROM tab1 AS cor0
----
NULL
20

query I rowsort
SELECT 20 * col1 + col0 * + col1 * + col0 + - col2 AS col2 FROM tab0
----
159359
19798
9330

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT + MIN( + - 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + MIN ( + - 4 ) FROM tab2 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, col0 AS col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT DISTINCT + col0 + - col0 DIV - 96 + - + col0 + - col0 + - 18 * - 19 FROM tab2 AS cor0
----
267
278
296

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT + col0 + - col0 / - 96 + - + col0 + - col0 + - 18 * - 19 FROM tab2 AS cor0
----
267
278
296

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - ( + col0 ) * - col1 + col2 AS col2, col1 col0 FROM tab0 AS cor0
----
18280
21
57152
81
9702
1

query I rowsort
SELECT DISTINCT - + 8 AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5521
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + + col1 * + col1 AS col2 FROM tab2
----
2652
4556
6006

query III rowsort
SELECT ALL + 14, + col0 * - col2, - 55 * - - 9 AS col2 FROM tab1 WHERE NOT ( NOT ( NULL ) NOT IN ( + + col1, col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT 63 * - COUNT( * ) AS col2 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-5524
SELECT 63 * - COUNT ( * ) AS col2 FROM tab2
----
-189

query I rowsort
SELECT ALL ( + 95 ) FROM tab0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5526
SELECT * FROM tab0 WHERE col0 * - 96 + + - col1 + + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5526
SELECT * FROM tab0 WHERE col0 * - 96 + + - col1 + + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT + 41 DIV + + SUM( ALL + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5527
SELECT + 41 / + + SUM ( ALL + col1 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT ALL + ( CAST( - col1 AS SIGNED ) ) * col2 + - - 36 + + col0 + - ( + col1 ) FROM tab0 cor0
----
-108
-3837
33

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL + ( CAST ( - col1 AS INTEGER ) ) * col2 + - - 36 + + col0 + - ( + col1 ) FROM tab0 cor0
----
-108
-3837
33

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL <> 39
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 60 + + col1 >= - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 > + 88
----
97
1
99

query II rowsort
SELECT ALL + + 38 - + 59, + col1 AS col0 FROM tab2 AS cor0
----
-21
51
-21
67
-21
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5533
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) > 58
----

skipif mysql # not compatible
query III rowsort label-5533
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) > 58
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 >= 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query II rowsort
SELECT - 68 AS col2, + col0 * - col1 * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT + col2 DIV - ( + + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + col2 / - ( + + col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + 79 * + ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5538
SELECT + 79 * + ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT + col1 * 31 DIV - 42 AS col1 FROM tab2
----
-37
-49
-56

skipif mysql # not compatible
query I rowsort label-5539
SELECT + col1 * 31 / - 42 AS col1 FROM tab2
----
-37
-49
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5540
SELECT ALL 73 col1, - 70 * + - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
73
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5540
SELECT ALL 73 col1, - 70 * + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
73
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT - + ( + SUM( + + col0 ) ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5541
SELECT - + ( + SUM ( + + col0 ) ) AS col2 FROM tab1 cor0
----
-227

onlyif mysql # DIV for integer division: 
query II rowsort label-5542
SELECT col2, + col1 DIV + - col2 * - col0 * col2 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-5542
SELECT col2, + col1 / + - col2 * - col0 * col2 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT DISTINCT + 71 * + 86 FROM tab0 AS cor0
----
6106

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
59

query I rowsort
SELECT 69 + col1 AS col0 FROM tab2 cor0
----
120
136
146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5547
SELECT ALL - 98 * - col2 + + CAST( NULL AS DECIMAL ) - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL - 98 * - col2 + + CAST ( NULL AS REAL ) - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT DISTINCT - ( + - COUNT( * ) ) * - - 25 * + 55 FROM tab0
----
4125

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT - ( + - COUNT ( * ) ) * - - 25 * + 55 FROM tab0
----
4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * col0 + - ( - col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * col0 + - ( - col1 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5550
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT DISTINCT 59 * - 94 FROM tab0
----
-5546

query I rowsort
SELECT DISTINCT + 80 * + ( col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
4094
6805
7327

query I rowsort
SELECT + col1 * + - col0 * col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT col2 col2 FROM tab1 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL )
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5554
SELECT col2 col2 FROM tab1 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
59
68
96

query I rowsort
SELECT ALL - - col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT 91 * + - col1 AS col1 FROM tab1
----
-1274
-4277
-455

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT ALL col2 DIV - + 52 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL col2 / - + 52 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 21 - + 47 col1 FROM tab2 AS cor0
----
23
-26
40
-26
58
-26

query II rowsort
SELECT ALL 19 AS col1, col2 AS col0 FROM tab0 AS cor0
----
19
10
19
47
19
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ( + MAX( 2 ) ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5560
SELECT ( + MAX ( 2 ) ) AS col1 FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - COUNT( DISTINCT 53 ) col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5561
SELECT - COUNT ( DISTINCT 53 ) col1 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 2 * + col0 col2 FROM tab0
----
-1410
-1740
-19206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT + CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT + CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 80 ) AS col2 FROM tab1
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT COUNT( ALL + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5565
SELECT COUNT ( ALL + col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL col1 * + ( - + col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL SUM( DISTINCT 94 ) AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL SUM ( DISTINCT 94 ) AS col2 FROM tab1
----
94

query I rowsort
SELECT DISTINCT + - 8 AS col0 FROM tab2 AS cor0
----
-8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 17 + + + 91 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) * - ( col0 ) * 92 + col2 col0 FROM tab0
----
-64813
-80030
-883377

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT DISTINCT CAST( 38 AS SIGNED ) + + - 62 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT DISTINCT CAST ( 38 AS INTEGER ) + + - 62 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, + 78 - 72 FROM tab2 AS cor0
----
51
6
67
6
77
6

query I rowsort
SELECT DISTINCT - 21 + - col1 + - 62 AS col1 FROM tab2 AS cor0
----
-134
-150
-160

query I rowsort
SELECT ALL - - 1 + + col0 FROM tab1 AS cor0
----
52
86
92

query II rowsort
SELECT DISTINCT col1 + + - 17 AS col0, - 97 AS col0 FROM tab1
----
-12
-97
-3
-97
30
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( + col0 ) col1 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT - CAST( - 61 AS SIGNED ) - + col0 AS col2 FROM tab0
----
-26
-36
46

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) - + col0 AS col2 FROM tab0
----
-26
-36
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - MIN( + - col0 ) - - COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5580
SELECT - MIN ( + - col0 ) - - COUNT ( * ) FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - 13 col0 FROM tab0
----
14
34
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 - 10 col1 FROM tab2
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT ALL 55 * - - ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 55 * - - ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + + 47 AS col2 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5585
SELECT + - CAST( NULL AS DECIMAL ) * - 10 * - - col0 * + col2 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT + - CAST ( NULL AS REAL ) * - 10 * - - col0 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( col0 ), + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL 70 * 24 AS col0 FROM tab0
----
1680
1680
1680

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN - 81 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT - - COUNT( * ), COUNT( * ) * - 90 AS col0 FROM tab2 AS cor0
----
3
-270

skipif mysql # not compatible
query II rowsort label-5589
SELECT - - COUNT ( * ), COUNT ( * ) * - 90 AS col0 FROM tab2 AS cor0
----
3
-270

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5590
SELECT DISTINCT col0 * + 70 FROM tab0 AS cor0 WHERE NOT + 26 BETWEEN - CAST( NULL AS DECIMAL ) AND - + col2
----
1050
6090
6790

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT col0 * + 70 FROM tab0 AS cor0 WHERE NOT + 26 BETWEEN - CAST ( NULL AS REAL ) AND - + col2
----
1050
6090
6790

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT - 31 DIV - 90 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT - 31 / - 90 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + - col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT - + CAST( NULL AS SIGNED ) / MIN( ALL - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT - + CAST ( NULL AS INTEGER ) / MIN ( ALL - col1 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT MIN( DISTINCT + - 73 ) * 92 AS col0 FROM tab0
----
-6716

skipif mysql # not compatible
query I rowsort label-5595
SELECT MIN ( DISTINCT + - 73 ) * 92 AS col0 FROM tab0
----
-6716

query I rowsort
SELECT - 46 FROM tab1 WHERE NOT col0 + + 26 > + + col2
----
-46

query I rowsort
SELECT ALL - 34 * 4 * - col1 FROM tab2
----
10472
6936
9112

query I rowsort
SELECT DISTINCT col1 * 69 FROM tab2
----
3519
4623
5313

onlyif mysql # DIV for integer division: 
query II rowsort label-5599
SELECT DISTINCT 61 DIV + 67, + col1 FROM tab0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-5599
SELECT DISTINCT 61 / + 67, + col1 FROM tab0
----
0
1
0
21
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 82, col2 + - col1 col1 FROM tab2 AS cor0
----
82
-28
82
-37
82
-9

query II rowsort
SELECT + + 59 AS col0, - 34 * - + col2 AS col0 FROM tab2 AS cor0
----
59
1360
59
1972
59
782

query I rowsort
SELECT DISTINCT - col1 + + 19 + col0 AS col2 FROM tab2 AS cor0
----
14
27
6

query I rowsort
SELECT - 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT ALL - 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL + - 41 AS col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL + - 7 + + col1 AS col0 FROM tab2 AS cor0
----
44
60
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT DISTINCT - - col1 * col1 DIV - - col0 + - col2 FROM tab1 AS cor0
----
-44
-59
-93

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT - - col1 * col1 / - - col0 + - col2 FROM tab1 AS cor0
----
-44
-59
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT + 53 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT + 53 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
56

query I rowsort
SELECT + 35 + - col2 + + 67 * + + 32 * col1 + - - 76 * col0 FROM tab2 cor0
----
112852
149325
169947

query I rowsort
SELECT ALL - + col0 + 56 + + - col1 FROM tab0 AS cor0
----
-40
-42
-52

query I rowsort
SELECT ALL - 1 + - col2 FROM tab1
----
-60
-69
-97

query I rowsort
SELECT ALL - col1 * + col2 + - 80 * - + col0 + + + 94 AS col0 FROM tab1 WHERE NULL IS NULL
----
2830
4178
6599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - col0 ) + + col1 col0 FROM tab2 WHERE - col0 < NULL
----

query I rowsort
SELECT DISTINCT col1 - + 87 + + - col2 * + - col2 FROM tab1
----
3399
4584
9143

query III rowsort
SELECT * FROM tab2 WHERE 33 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT - MIN( - - col1 ) * - - 57 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-5616
SELECT - MIN ( - - col1 ) * - - 57 FROM tab1
----
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, - col2 - + - 92 * + col1 col1 FROM tab0
----
15
7405
87
1922
97
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5618
SELECT DISTINCT 25 * - col0 - - + col1 AS col0, + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-1099
-46
-1523
-64
-1808
-75

skipif mysql # not compatible
query II rowsort label-5618
SELECT DISTINCT 25 * - col0 - - + col1 AS col0, + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-1099
-46
-1523
-64
-1808
-75

query I rowsort
SELECT + + 2 * - 51 FROM tab0 AS cor0
----
-102
-102
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5620
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * col0 - 76 <= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + 64
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 56 * col2 + + col0 ) > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 10 + col0 FROM tab2
----
56
74
85

query III rowsort
SELECT * FROM tab1 WHERE NOT - 75 + col2 BETWEEN NULL AND 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5626
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - CAST( NULL AS DECIMAL ) - col2 )
----

skipif mysql # not compatible
query III rowsort label-5626
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS REAL ) - col2 )
----

query I rowsort
SELECT col0 + + 10 FROM tab1 WHERE NOT ( col2 ) <= col0
----
61

query I rowsort
SELECT + col2 + - 41 AS col2 FROM tab2
----
-1
-18
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT COUNT( DISTINCT 68 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5629
SELECT COUNT ( DISTINCT 68 ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT SUM( + 70 ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-5630
SELECT SUM ( + 70 ) FROM tab0
----
210

query I rowsort
SELECT + 42 + 75 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col1 - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 - col0 * + 89 AS col0 FROM tab1
----
-4525
-7560
-8052

query I rowsort
SELECT + 18 + - 25 * col2 AS col2 FROM tab0
----
-1157
-232
-2457

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 IN ( col0 )
----

query I rowsort
SELECT DISTINCT - 9 * 10 - + col0 FROM tab2
----
-136
-154
-165

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 42 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE 46 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE 46 IS NULL
----

query I rowsort
SELECT ALL ( 41 ) AS col2 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL COUNT( * ) + 43 AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL COUNT ( * ) + 43 AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT DISTINCT 83 * SUM( DISTINCT col2 ) + CAST( NULL AS SIGNED ) / - AVG ( + 90 * - col0 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT 83 * SUM ( DISTINCT col2 ) + CAST ( NULL AS INTEGER ) / - AVG ( + 90 * - col0 ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT ALL + col2 DIV + 45 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + col2 / + 45 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT DISTINCT COUNT( * ) DIV - 59 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT COUNT ( * ) / - 59 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 61 * col2 + - col2 * - col2 FROM tab0 AS cor0
----
15840
5076
710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT - CAST( + col1 AS SIGNED ) + + 12 * - col0 FROM tab1
----
-1025
-1139
-626

skipif mysql # not compatible
query I rowsort label-5645
SELECT - CAST ( + col1 AS INTEGER ) + + 12 * - col0 FROM tab1
----
-1025
-1139
-626

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5646
SELECT * FROM tab2 WHERE ( - 20 * CAST( NULL AS SIGNED ) ) NOT BETWEEN col1 * - col0 AND ( - 15 )
----

skipif mysql # not compatible
query III rowsort label-5646
SELECT * FROM tab2 WHERE ( - 20 * CAST ( NULL AS INTEGER ) ) NOT BETWEEN col1 * - col0 AND ( - 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL SUM( DISTINCT 29 ) FROM tab0 WHERE NOT - col2 BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL SUM ( DISTINCT 29 ) FROM tab0 WHERE NOT - col2 BETWEEN ( NULL ) AND ( NULL )
----
NULL

query I rowsort
SELECT ALL + col2 + 24 FROM tab1 cor0
----
120
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT + MAX( 91 ) + + SUM( ALL + 55 ) FROM tab1 AS cor0
----
256

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT + MAX ( 91 ) + + SUM ( ALL + 55 ) FROM tab1 AS cor0
----
256

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL > col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 75 + - col2 < + 24 * - col1
----

query I rowsort
SELECT DISTINCT - col2 + + col1 * - col0 AS col2 FROM tab2 cor0
----
-2369
-4968
-5083

query I rowsort
SELECT - col1 - ( + col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1677
-3431
-580

query I rowsort
SELECT ( + 3 ) - - col2 * ( + 5 ) AS col2 FROM tab2
----
118
203
293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5655
SELECT ALL 62 + + - SUM( ALL CAST( + 12 AS SIGNED ) ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 62 + + - SUM ( ALL CAST ( + 12 AS INTEGER ) ) FROM tab0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT DISTINCT col2 + - col0 DIV col2 FROM tab0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT col2 + - col0 / col2 FROM tab0
----
2
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT DISTINCT - col2 - - + col1 * CAST( - col2 - 17 AS SIGNED ) FROM tab2
----
-2063
-4429
-5083

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT - col2 - - + col1 * CAST ( - col2 - 17 AS INTEGER ) FROM tab2
----
-2063
-4429
-5083

query I rowsort
SELECT DISTINCT 2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 89 - + 18 AS col0 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL - MIN( ALL - + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - MIN ( ALL - + col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 - - - ( - col0 ) FROM tab0
----
196
62
97

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE - ( - col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + - COUNT( * ) * 20 AS col2 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5664
SELECT + - COUNT ( * ) * 20 AS col2 FROM tab0 cor0
----
-60

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT + SUM( ALL + 8 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5666
SELECT + SUM ( ALL + 8 ) FROM tab2 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT + col2 DIV col2 * + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5667
SELECT + col2 / col2 * + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT CAST( + 23 AS SIGNED ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT CAST ( + 23 AS INTEGER ) FROM tab0
----
23

query I rowsort
SELECT ALL 60 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab0 AS cor0
----
74
74
74

query II rowsort
SELECT - 10 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-10
47
-10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT DISTINCT + + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL col2 * - col0 * - 47 FROM tab2 AS cor0
----
120320
204450
49726

query II rowsort
SELECT 13 AS col1, col1 AS col1 FROM tab1 AS cor0
----
13
14
13
47
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT - 52 AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-52
3

skipif mysql # not compatible
query II rowsort label-5675
SELECT - 52 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-52
3

query I rowsort
SELECT - - 42 * + - col2 + + col2 * col0 FROM tab1 AS cor0
----
2537
3332
864

query I rowsort
SELECT ALL - + 1 * - - col1 + + - col1 * + 17 FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT - - 12 * - ( - + 16 ) AS col2 FROM tab1 AS cor0
----
192
192
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col2 + - col1 NOT IN ( + 96 )
----

query I rowsort
SELECT 61 * + - col1 FROM tab1 cor0
----
-2867
-305
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND 91 - 83
----
0

skipif mysql # not compatible
query I rowsort label-5681
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND 91 - 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT + col0 + - CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5682
SELECT + col0 + - CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT DISTINCT - - MAX( - + col1 ) + + ( - CAST( + 48 AS SIGNED ) ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - - MAX ( - + col1 ) + + ( - CAST ( + 48 AS INTEGER ) ) FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT MAX( DISTINCT 70 ) + + 50 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
120

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT MAX ( DISTINCT 70 ) + + 50 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5685
SELECT AVG ( + CAST( NULL AS SIGNED ) ) AS col2, 43 + - 31 * - COUNT( * ) AS col0 FROM tab2
----
NULL
136

skipif mysql # not compatible
query II rowsort label-5685
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, 43 + - 31 * - COUNT ( * ) AS col0 FROM tab2
----
NULL
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL 51 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 + - col2 IS NOT NULL
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL 51 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 + - col2 IS NOT NULL
----
51
51
51

query I rowsort
SELECT ALL 93 / + col1 FROM tab1 AS cor0 WHERE NOT col2 / + - col2 - + 48 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL + + 68 + + SUM( DISTINCT col2 ) FROM tab1 cor0
----
291

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + + 68 + + SUM ( DISTINCT col2 ) FROM tab1 cor0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 87 + + col2 * - - col2 col0, - col0 + - ( col2 ) - col1 * 72 FROM tab0
----
187
-1609
2296
-5894
9888
-268

query I rowsort
SELECT DISTINCT + - ( + 64 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT DISTINCT COUNT( * ) * MIN( - col1 ) DIV COUNT( * ) - + 77 AS col0 FROM tab0
----
-158

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT COUNT ( * ) * MIN ( - col1 ) / COUNT ( * ) - + 77 AS col0 FROM tab0
----
-158

query I rowsort
SELECT DISTINCT 53 - - 34 AS col0 FROM tab2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT - col1 * col0 + 80 + - - col1 DIV - + ( col2 ) FROM tab1 AS cor0
----
-345
-4197
-634

skipif mysql # not compatible
query I rowsort label-5693
SELECT - col1 * col0 + 80 + - - col1 / - + ( col2 ) FROM tab1 AS cor0
----
-345
-4197
-634

query I rowsort
SELECT + col0 + + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + col2 col0 FROM tab2 AS cor0
----
27
44
62

query I rowsort
SELECT ALL - 66 AS col0 FROM tab1 cor0 WHERE NOT + col1 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5697
SELECT CAST( + col0 AS SIGNED ) + - ( 81 ) + + - col0 * - col1 FROM tab0 AS cor0
----
113
1149
1833

skipif mysql # not compatible
query I rowsort label-5697
SELECT CAST ( + col0 AS INTEGER ) + - ( 81 ) + + - col0 * - col1 FROM tab0 AS cor0
----
113
1149
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT 86 + + COUNT( DISTINCT + - col1 ) FROM tab1 cor0
----
89

skipif mysql # not compatible
query I rowsort label-5698
SELECT 86 + + COUNT ( DISTINCT + - col1 ) FROM tab1 cor0
----
89

query I rowsort
SELECT + 52 FROM tab1 AS cor0 WHERE + 47 NOT IN ( + 12 / 44 * + 28 )
----
52
52
52

query I rowsort
SELECT ALL + col0 + + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND 7 * + 20 - - col0
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL < + - col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab1 WHERE ( + CAST( + + col2 AS SIGNED ) ) NOT IN ( - col2 * + ( - col0 ) * 93 + col2 )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab1 WHERE ( + CAST ( + + col2 AS INTEGER ) ) NOT IN ( - col2 * + ( - col0 ) * 93 + col2 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT - COUNT( * ) * - - 19 FROM tab0, tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - COUNT ( * ) * - - 19 FROM tab0, tab0 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT MAX( - + 87 ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT MAX ( - + 87 ) AS col0 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT - MAX( ALL col2 ) col2 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5706
SELECT - MAX ( ALL col2 ) col2 FROM tab1
----
-96

query I rowsort
SELECT ALL - col1 * 1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND ( col2 * - 32 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5709
SELECT ALL + - CAST( - + 68 AS SIGNED ) FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + - CAST ( - + 68 AS INTEGER ) FROM tab0 AS cor0
----
68
68
68

query II rowsort
SELECT + - col2, - 17 AS col1 FROM tab0 cor0
----
-10
-17
-47
-17
-99
-17

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT DISTINCT - + col1 * + col1 + + - 82 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-449
-6562

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - + col1 * + col1 + + - 82 / col2 AS col2 FROM tab0 AS cor0
----
-1
-449
-6562

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col2 AND 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT + MIN( DISTINCT 62 ) FROM tab2 AS cor0 WHERE NOT 79 IS NULL
----
62

skipif mysql # not compatible
query I rowsort label-5714
SELECT + MIN ( DISTINCT 62 ) FROM tab2 AS cor0 WHERE NOT 79 IS NULL
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - SUM( 22 ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5715
SELECT - SUM ( 22 ) AS col2 FROM tab0 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 * + 30 * + 64 + + col0 BETWEEN ( col1 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5717
SELECT - col1 DIV + col0 col0, - 20 FROM tab1 AS cor0
----
0
-20
0
-20
0
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5717
SELECT - col1 / + col0 col0, - 20 FROM tab1 AS cor0
----
0
-20
0
-20
0
-20

query II rowsort
SELECT ALL 3, col2 FROM tab0
----
3
10
3
47
3
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - + col1 - - - 74 IS NULL
----

query I rowsort
SELECT - col0 * - 61 FROM tab1
----
3111
5185
5551

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - 96 / - + col2, + ( + - 44 ) + - 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT + - 39 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-5723
SELECT + - 39 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
117

query I rowsort
SELECT col2 + + + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT col2 * + col2 + + - col0 AS col1 FROM tab2
----
1536
3289
483

query I rowsort
SELECT + - 78 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col2 FROM tab2 WHERE - col2 > + 43
----

query I rowsort
SELECT ( col1 ) * col1 FROM tab2 WHERE ( - col1 = NULL )
----

query II rowsort
SELECT - 76 * 47 + + - 55 * col0, col0 FROM tab2 cor0
----
-6102
46
-7092
64
-7697
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT DISTINCT - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT ALL + col0 + - 25, + ( + col2 ) AS col0 FROM tab1 cor0
----
26
96
60
59
66
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT DISTINCT 60 * - - COUNT( * ) AS col0, - 47 FROM tab2 cor0
----
180
-47

skipif mysql # not compatible
query II rowsort label-5732
SELECT DISTINCT 60 * - - COUNT ( * ) AS col0, - 47 FROM tab2 cor0
----
180
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + COUNT( * ) - - 40 col0 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5733
SELECT + COUNT ( * ) - - 40 col0 FROM tab0 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col1 + - - 77 col1 FROM tab2 AS cor0
----
1250
3157
3963

query I rowsort
SELECT - ( 59 ) AS col1 FROM tab0
----
-59
-59
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5737
SELECT + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5737
SELECT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5738
SELECT ALL COUNT( * ) col2, - 6 FROM tab2 WHERE col2 IN ( + 11 )
----
0
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5738
SELECT ALL COUNT ( * ) col2, - 6 FROM tab2 WHERE col2 IN ( + 11 )
----
0
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT + 57 + - + col1 <= - + ( + + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 4 ) FROM tab1
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * 65 * + + col2 col1 FROM tab2
----
103155
179400
260130

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 92 + + 2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT 17 * 24 + - CAST( + col2 AS SIGNED ) + + + ( col0 ) * col2 + - col0 FROM tab2 AS cor0
----
1397
2864
4625

skipif mysql # not compatible
query I rowsort label-5744
SELECT 17 * 24 + - CAST ( + col2 AS INTEGER ) + + + ( col0 ) * col2 + - col0 FROM tab2 AS cor0
----
1397
2864
4625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 72 IS NULL
----

query II rowsort
SELECT col2, col1 + + - col2 FROM tab1
----
59
-54
68
-21
96
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT + COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT + COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT ALL CAST( 98 AS SIGNED ) * + col2 * + + ( + + col0 ) AS col2 FROM tab2
----
103684
250880
426300

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL CAST ( 98 AS INTEGER ) * + col2 * + + ( + + col0 ) AS col2 FROM tab2
----
103684
250880
426300

query I rowsort
SELECT + 62 FROM tab0 AS cor0 WHERE NOT col0 * - 34 * 8 + col1 NOT IN ( + + ( 54 ) * + - col0 + 5 )
----

query III rowsort
SELECT DISTINCT + col0, 62, + col1 FROM tab2 AS cor0
----
9 values hashing to 963e8c2942e9a104e2c021f1b3a4ea79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 AS col2, col2 + 44 * - + 3 col0 FROM tab1 AS cor0
----
23
-36
23
-64
23
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5752
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) + - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5752
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) + - - col2 IS NOT NULL
----

query I rowsort
SELECT - ( 7 ) FROM tab0 AS cor0
----
-7
-7
-7

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5755
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN ( + col0 ) AND CAST( NULL AS SIGNED ) + + 42 + - col2
----

skipif mysql # not compatible
query III rowsort label-5755
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN ( + col0 ) AND CAST ( NULL AS INTEGER ) + + 42 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5756
SELECT - - COUNT( + CAST( NULL AS DECIMAL ) ), 62 AS col1 FROM tab0 AS cor0
----
0
62

skipif mysql # not compatible
query II rowsort label-5756
SELECT - - COUNT ( + CAST ( NULL AS REAL ) ), 62 AS col1 FROM tab0 AS cor0
----
0
62

query I rowsort
SELECT ( - - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 BETWEEN - - 47 + + 78 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + COUNT( * ) + + MIN( ALL + col1 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5759
SELECT + COUNT ( * ) + + MIN ( ALL + col1 ) FROM tab0
----
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 + 49 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= - 19 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - MAX( - - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - MAX ( - - col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT col0 * 81 FROM tab1 AS cor0
----
4131
6885
7371

query I rowsort
SELECT + 56 * + + 85 FROM tab0 cor0
----
4760
4760
4760

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * ( col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 39 AS col0 FROM tab2 cor0
----
-39
-39
-39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 83 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL - - 71 * - ( + COUNT( * ) ) col1 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5770
SELECT ALL - - 71 * - ( + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-213

query I rowsort
SELECT DISTINCT - 40 * + + 45 FROM tab1 AS cor0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - - col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5773
SELECT ALL col0 DIV - 34 AS col2, col2 * col0 AS col2 FROM tab1
----
-1
4896
-2
5015
-2
6188

skipif mysql # not compatible
query II rowsort label-5773
SELECT ALL col0 / - 34 AS col2, col2 * col0 AS col2 FROM tab1
----
-1
4896
-2
5015
-2
6188

query I rowsort
SELECT DISTINCT + 38 FROM tab1 WHERE ( col1 * 93 * col2 ) BETWEEN ( NULL ) AND 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT MAX( - 35 ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5775
SELECT MAX ( - 35 ) FROM tab2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT 93 DIV 34 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT 93 / 34 FROM tab0
----
2

query I rowsort
SELECT DISTINCT - col2 - - - col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 23 AND 41
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab2, tab2 AS cor0
----
52

query I rowsort
SELECT 29 * - col0 AS col1 FROM tab0
----
-2523
-2813
-435

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT col1 * - col2 + + + ( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT col1 * - col2 + + + ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + COUNT( * ) + - + SUM( DISTINCT + 49 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5782
SELECT + COUNT ( * ) + - + SUM ( DISTINCT + 49 ) FROM tab2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5783
SELECT col0 + + col1 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT col0 + + col1 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + 57 + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-5784
SELECT + 57 + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
60

query I rowsort
SELECT ALL - - 39 AS col0 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL - + COUNT( * ) - - 60 FROM tab2 AS cor0 WHERE 4 / - col2 + + col1 <= + ( 93 )
----
57

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - + COUNT ( * ) - - 60 FROM tab2 AS cor0 WHERE 4 / - col2 + + col1 <= + ( 93 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + col2 - 57 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-5787
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col2 - 57 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL + MAX( DISTINCT + col1 ) + + 51 AS col2 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL + MAX ( DISTINCT + col1 ) + + 51 AS col2 FROM tab1 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 66 FROM tab1
----
14
66
47
66
5
66

query II rowsort
SELECT 90 AS col2, col0 + + + col0 FROM tab0
----
90
174
90
194
90
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT SUM( ALL 64 ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-5792
SELECT SUM ( ALL 64 ) FROM tab0
----
192

query I rowsort
SELECT ALL - col0 - - - 9 FROM tab1
----
-100
-60
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5794
SELECT DISTINCT + col0, ( - col1 ) + + col1 * + - CAST( - ( 36 ) AS SIGNED ) * + 1 FROM tab0
----
15
2835
87
735
97
35

skipif mysql # not compatible
query II rowsort label-5794
SELECT DISTINCT + col0, ( - col1 ) + + col1 * + - CAST ( - ( 36 ) AS INTEGER ) * + 1 FROM tab0
----
15
2835
87
735
97
35

query II rowsort
SELECT ALL col0, + 18 AS col2 FROM tab0
----
15
18
87
18
97
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT COUNT( * ) + - 2 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5796
SELECT COUNT ( * ) + - 2 AS col0 FROM tab1
----
1

query I rowsort
SELECT - 79 + + 49 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + - + col2 * - - 11 FROM tab2 cor0
----
-304
-517
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT - ( - 58 ) + + col2 DIV - col2 FROM tab0 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-5799
SELECT - ( - 58 ) + + col2 / - col2 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + 59 + 57 FROM tab2 AS cor0
----
116
116
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - - COUNT( * ) * ( + 62 ) + 47 FROM tab2 AS cor0
----
233

skipif mysql # not compatible
query I rowsort label-5802
SELECT - - COUNT ( * ) * ( + 62 ) + 47 FROM tab2 AS cor0
----
233

query I rowsort
SELECT + - 91 * + col2 FROM tab0 cor0
----
-4277
-9009
-910

query I rowsort
SELECT - 25 * - col1 - + 1 FROM tab1 AS cor0
----
1174
124
349

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 16 * - + ( - 88 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 * + col2 col1 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT ( NOT NULL >= + 89 )
----

query I rowsort
SELECT ALL + 84 + + 69 FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT COUNT( + + 64 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT COUNT ( + + 64 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL - COUNT( * ) * + + MAX( ALL - 58 ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - COUNT ( * ) * + + MAX ( ALL - 58 ) FROM tab0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT + ( - + COUNT( - 43 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5812
SELECT + ( - + COUNT ( - 43 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT + CAST( + - 14 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-5813
SELECT + CAST ( + - 14 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( - 65 ) AND 81 * + - col2 * 16 OR + col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT DISTINCT 77 * + COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT 77 * + COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
77

query II rowsort
SELECT + col2 * + col1, col0 AS col0 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5817
SELECT DISTINCT - - col1 + - col2 - - 33 * - CAST( NULL AS DECIMAL ) + + 53 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - - col1 + - col2 - - 33 * - CAST ( NULL AS REAL ) + + 53 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + 66 FROM tab1 AS cor0
----
-2
-30
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5820
SELECT + CAST( NULL AS DECIMAL ) + + - 63 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT + CAST ( NULL AS REAL ) + + - 63 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - col1 ) + + col0 AS col1 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT - col2 + 36 - + - col0 AS col0 FROM tab1 AS cor0
----
-9
59
62

query I rowsort
SELECT + - 14 + + col2 FROM tab2 AS cor0
----
26
44
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL col0 + CAST( + + col0 AS SIGNED ) FROM tab2 cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL col0 + CAST ( + + col0 AS INTEGER ) FROM tab2 cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5825
SELECT - - CAST( NULL AS SIGNED ) * - col1 * + col0 * - col1 + + + 87 FROM tab0 WHERE + 33 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5825
SELECT - - CAST ( NULL AS INTEGER ) * - col1 * + col0 * - col1 + + + 87 FROM tab0 WHERE + 33 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 10 * ( 83 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, - 28 * - 15 AS col0 FROM tab0
----
15
420
87
420
97
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT - SUM( - + 17 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5828
SELECT - SUM ( - + 17 ) FROM tab0
----
51

query I rowsort
SELECT 76 * - + col1 AS col0 FROM tab0
----
-1596
-6156
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT - 68 DIV + col1 FROM tab0
----
-3
-68
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 68 / + col1 FROM tab0
----
-3
-68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT + 63 - SUM( + 51 ) * + 14 AS col2 FROM tab1 AS cor0
----
-2079

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT + 63 - SUM ( + 51 ) * + 14 AS col2 FROM tab1 AS cor0
----
-2079

query I rowsort
SELECT DISTINCT - + col2 * + ( col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT + 0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT ALL + 4 AS col2, COUNT( * ) FROM tab1
----
4
3

skipif mysql # not compatible
query II rowsort label-5834
SELECT ALL + 4 AS col2, COUNT ( * ) FROM tab1
----
4
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5835
SELECT - CAST( + + AVG ( + col2 ) AS SIGNED ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-5835
SELECT - CAST ( + + AVG ( + col2 ) AS INTEGER ) FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ( + ( - MIN( DISTINCT col0 ) ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5836
SELECT ( + ( - MIN ( DISTINCT col0 ) ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + + SUM( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + + SUM ( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT + - col2 * + + col2 - - col2 AS col0 FROM tab1 AS cor0
----
-3422
-4556
-9120

query II rowsort
SELECT + - col0 AS col2, - ( - col0 ) AS col1 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL + 55 * col1 * - 2 * - col2 + - + 70 * + 44 - + - col0 AS col0 FROM tab2 AS cor0
----
125996
335784
424455

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL + + ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + + ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 30 <> - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5843
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 15 * CAST( - col1 AS SIGNED ) ) <= ( - 80 * + col0 )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-5843
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 15 * CAST ( - col1 AS INTEGER ) ) <= ( - 80 * + col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT 27 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT 98 * - MAX( + - col1 ) AS col0 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-5845
SELECT 98 * - MAX ( + - col1 ) AS col0 FROM tab0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
21
-47
81
-99
1

query II rowsort
SELECT - col1 AS col0, col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( ( col0 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT - 58 AS col2, - COUNT( * ) + - SUM( - - 26 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-58
-243

skipif mysql # not compatible
query II rowsort label-5849
SELECT - 58 AS col2, - COUNT ( * ) + - SUM ( - - 26 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-58
-243

query I rowsort
SELECT DISTINCT - + col2 * + 18 FROM tab0 cor0
----
-1782
-180
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - COUNT( * ) + COUNT( * ) + + COUNT( * ) * + + 55 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) * + + 55 FROM tab2 AS cor0
----
165

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 36 + + - 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col0 FROM tab0 cor0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE 94 * col2 + + 5 IS NULL
----

query I rowsort
SELECT ALL + + col0 + - 26 * + - 30 FROM tab0 AS cor0
----
795
867
877

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5857
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - CAST( NULL AS DECIMAL ) AND ( 74 ) * - col1 * - - 91
----

skipif mysql # not compatible
query III rowsort label-5857
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - CAST ( NULL AS REAL ) AND ( 74 ) * - col1 * - - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - - SUM( DISTINCT 98 ) col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5858
SELECT - - SUM ( DISTINCT 98 ) col0 FROM tab0 AS cor0
----
98

query I rowsort
SELECT ALL + + 20 * - col1 * - - col2 + 72 FROM tab0 AS cor0
----
-1908
-4128
-76068

query I rowsort
SELECT + col1 * + col2 - + - col0 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT ( + col0 ) - - col2 FROM tab1
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - + col0 col1 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT - 58 - - - MAX( + col2 ) FROM tab0
----
-157

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT - 58 - - - MAX ( + col2 ) FROM tab0
----
-157

query I rowsort
SELECT DISTINCT - col1 * 16 AS col2 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT + AVG ( col2 ) FROM tab2 AS cor0 WHERE col1 * - col1 BETWEEN - + col2 AND - col2 + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT ALL - + 17 * + 17 AS col0, + MAX( - - col1 ) AS col1 FROM tab1 cor0
----
-289
47

skipif mysql # not compatible
query II rowsort label-5866
SELECT ALL - + 17 * + 17 AS col0, + MAX ( - - col1 ) AS col1 FROM tab1 cor0
----
-289
47

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE 19 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 91 col1, 87 AS col0 FROM tab0 AS cor0
----
4277
87
9009
87
910
87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - 35
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT - 45 AS col0, COUNT( * ) AS col2 FROM tab2
----
-45
3

skipif mysql # not compatible
query II rowsort label-5870
SELECT - 45 AS col0, COUNT ( * ) AS col2 FROM tab2
----
-45
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( + col0, - 61 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 76 AS col1 FROM tab2 AS cor0
----
76

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT 64 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5874
SELECT 64 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT - COUNT( * ) * - COUNT( * ) + - 6 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5875
SELECT - COUNT ( * ) * - COUNT ( * ) + - 6 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + MIN( ALL + + 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5876
SELECT + MIN ( ALL + + 92 ) FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT COUNT( DISTINCT 68 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT COUNT ( DISTINCT 68 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col2 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT MIN( - 12 ) * ( + 40 ) FROM tab1
----
-480

skipif mysql # not compatible
query I rowsort label-5880
SELECT MIN ( - 12 ) * ( + 40 ) FROM tab1
----
-480

query I rowsort
SELECT DISTINCT ( - + 84 ) FROM tab1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5882
SELECT - COUNT( * ) FROM tab1 WHERE NOT - 52 / col2 * - CAST( NULL AS SIGNED ) * + - 30 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5882
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - 52 / col2 * - CAST ( NULL AS INTEGER ) * + - 30 IS NULL
----
0

query II rowsort
SELECT + col1 AS col2, 75 * + + col2 AS col0 FROM tab2
----
51
1725
67
4350
77
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL + MAX( DISTINCT col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + MAX ( DISTINCT col0 ) FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 73 AS col2, - 39, - col2 col2 FROM tab2
----
9 values hashing to 2e8344ef1a5d3ff4d5c3568a5493eac1

query II rowsort
SELECT DISTINCT + 44 AS col1, col1 * - 44 FROM tab0 WHERE NOT - - col2 * - + col0 * - - 82 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col2 FROM tab1
----
11
11
11

query II rowsort
SELECT + ( + - col0 ) AS col2, - col1 AS col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT ALL + ( - 53 ) FROM tab2 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT + COUNT( * ) + + + MIN( ALL + + col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT + COUNT ( * ) + + + MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, + 10 col1 FROM tab0 cor0
----
1
10
21
10
81
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT DISTINCT - col0 DIV + col2 + col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT - col0 / + col2 + col0 FROM tab1 AS cor0
----
51
84
90

query I rowsort
SELECT ALL + 55 + - 7 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT DISTINCT 95 - + - col2 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - 69 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL + col1 * + 73 AS col1 FROM tab2
----
3723
4891
5621

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT + col2 + col1 DIV + - col0 col1 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5898
SELECT + col2 + col1 / + - col0 col1 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < + 15
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5900
SELECT CAST( NULL AS DECIMAL ) * + MIN( - 89 ) + - - 60 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5900
SELECT CAST ( NULL AS REAL ) * + MIN ( - 89 ) + - - 60 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT - col2 + - 28 AS col2, col2 FROM tab2 AS cor0
----
-51
23
-68
40
-86
58

query I rowsort
SELECT ALL + + 45 * col0 + col2 AS col2 FROM tab0 AS cor0
----
3925
4464
722

query I rowsort
SELECT - 48 * col2 + + - 84 FROM tab2 AS cor0
----
-1188
-2004
-2868

query I rowsort
SELECT DISTINCT - 9 * ( + - col2 ) * + + col2 FROM tab0 AS cor0
----
19881
88209
900

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND + + ( col0 )
----

query I rowsort
SELECT - - 74 * + - col0 + + 96 AS col2 FROM tab1 cor0
----
-3678
-6194
-6638

query II rowsort
SELECT ALL - col1 + + col2, col0 FROM tab1 AS cor0
----
21
91
54
85
82
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5908
SELECT DISTINCT - col0 * + + col0 * - + CAST( NULL AS SIGNED ) * + col2 * - 10 + - col1 * - + col1 + - - col1 / + CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT - col0 * + + col0 * - + CAST ( NULL AS INTEGER ) * + col2 * - 10 + - col1 * - + col1 + - - col1 / + CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col2 - - + 12 AS col1 FROM tab0
----
-35
-87
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5910
SELECT ALL 16 - 0 DIV col1 * col1 AS col2 FROM tab0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 16 - 0 / col1 * col1 AS col2 FROM tab0
----
16
16
16

query I rowsort
SELECT DISTINCT - col1 - - + 86 AS col0 FROM tab2
----
19
35
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT ALL 74 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL 74 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 AS col0 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL - col0 - + col2 DIV - col1 FROM tab1
----
-45
-74
-90

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - col0 - + col2 / - col1 FROM tab1
----
-45
-74
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT ALL - 92 - COUNT( * ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - 92 - COUNT ( * ) FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT COUNT( - 15 ) col0 FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT COUNT ( - 15 ) col0 FROM tab1 WHERE NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT - 42 * - + ( + + 61 ) AS col1 FROM tab0
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT ALL - COUNT( * ) - - + SUM( ALL 43 ) AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - COUNT ( * ) - - + SUM ( ALL 43 ) AS col2 FROM tab1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT + COUNT( * ) - 2 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5919
SELECT + COUNT ( * ) - 2 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL - col0 * - 91 * 22 AS col1 FROM tab0 WHERE ( 50 ) <= ( + col0 * - col0 * 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5921
SELECT CAST( NULL AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5921
SELECT CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + + ( 48 ) * col1 FROM tab1
----
-106032
-1200
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT ALL + - 42 DIV col1 + 82 DIV 63 + 68 FROM tab2 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + - 42 / col1 + 82 / 63 + 68 FROM tab2 AS cor0
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT + col2 * - 85 + - - 64 * - 0 DIV + - col0 FROM tab2 AS cor0
----
-1955
-3400
-4930

skipif mysql # not compatible
query I rowsort label-5924
SELECT + col2 * - 85 + - - 64 * - 0 / + - col0 FROM tab2 AS cor0
----
-1955
-3400
-4930

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 20 * - col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - COUNT( * ) * + 50 FROM tab0 AS cor0 WHERE NOT + col2 IN ( + col2, + col0 * col2, + - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT - COUNT ( * ) * + 50 FROM tab0 AS cor0 WHERE NOT + col2 IN ( + col2, + col0 * col2, + - 5 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT 53 DIV 37 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5927
SELECT 53 / 37 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5928
SELECT CAST( - 94 AS SIGNED ) col2 FROM tab0
----
-94
-94
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5928
SELECT CAST ( - 94 AS INTEGER ) col2 FROM tab0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT DISTINCT ( 39 ) * - - COUNT( * ) AS col0 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT ( 39 ) * - - COUNT ( * ) AS col0 FROM tab0
----
117

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 84 * 93 * + 54 NOT BETWEEN col1 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 34 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT ALL + 19 DIV + col2 col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5932
SELECT ALL + 19 / + col2 col1 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT DISTINCT - col1 DIV + - col2 AS col2 FROM tab0 cor0 WHERE col2 + + - col1 + + col2 * col2 > + col1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - col1 / + - col2 AS col2 FROM tab0 cor0 WHERE col2 + + - col1 + + col2 * col2 > + col1
----
0
1
2

query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 * - + 19 + + - col2 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT ALL 48 DIV - 74 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL 48 / - 74 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5936
SELECT DISTINCT + + COUNT( * ) DIV - 38 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT + + COUNT ( * ) / - 38 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 74 + 23 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
51
85
91

query I rowsort
SELECT - col1 * + 0 + + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + col1 + + 29 FROM tab0 AS cor0
----
110
30
50

query I rowsort
SELECT col0 * - - 86 FROM tab2
----
3956
5504
6450

query I rowsort
SELECT DISTINCT col0 * - + 60 - + - 53 AS col0 FROM tab1 AS cor0
----
-3007
-5047
-5407

query I rowsort
SELECT DISTINCT + 87 + + col0 FROM tab0
----
102
174
184

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT 48 DIV - 61 + + ( + + 2 ) AS col0 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5945
SELECT 48 / - 61 + + ( + + 2 ) AS col0 FROM tab0
----
2
2
2

query I rowsort
SELECT DISTINCT - col1 * + + 63 AS col1 FROM tab1
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL COUNT( * ) * + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL COUNT ( * ) * + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5948
SELECT - 50 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5948
SELECT - 50 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab1 AS cor0 WHERE NOT NULL = - 64 * + - 15
----

query I rowsort
SELECT DISTINCT - 2 + + col1 + - + col2 FROM tab0 AS cor0
----
-100
32
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL - - 73 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL - - 73 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT DISTINCT + 72 + col0 DIV col1 FROM tab2 cor0
----
72
73

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT + 72 + col0 / col1 FROM tab2 cor0
----
72
73

query I rowsort
SELECT ALL col1 * col1 + + 41 AS col2 FROM tab1
----
2250
237
66

query I rowsort
SELECT DISTINCT - 64 + + col1 AS col1 FROM tab1
----
-17
-50
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( + + 6 ) = + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) + - col1 + - 89 NOT IN ( + col0 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 46 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT + + 88 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-5958
SELECT + + 88 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-264

query II rowsort
SELECT - col2 * - + col0, col0 + 4 - + col2 * - 75 AS col1 FROM tab2 AS cor0
----
1058
1775
2560
3068
4350
4429

query I rowsort
SELECT + col2 * - col1 + + 28 AS col2 FROM tab1 AS cor0
----
-1316
-267
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5961
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( CAST( 40 AS SIGNED ), 98 )
----

skipif mysql # not compatible
query IIIIII rowsort label-5961
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( CAST ( 40 AS INTEGER ), 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT 70 DIV col0 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5962
SELECT 70 / col0 AS col0 FROM tab0
----
0
0
4

query I rowsort
SELECT - - 45 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 75 + - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT + - MIN( + col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5965
SELECT + - MIN ( + col1 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT 17 DIV COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT 17 / COUNT ( * ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL MIN( ALL 49 ) AS col2 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL MIN ( ALL 49 ) AS col2 FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT - - col1 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 + + 73 * col0 AS col2 FROM tab2 AS cor0
----
3404
4736
5550

query II rowsort
SELECT + col2 - - col2, + col1 FROM tab0 AS cor0 WHERE NOT col1 / + col1 >= + col0
----
198
1
20
21
94
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT + MIN( ALL CAST( NULL AS SIGNED ) ) * + ( + 31 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT + MIN ( ALL CAST ( NULL AS INTEGER ) ) * + ( + 31 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * + + 68 FROM tab0 cor0
----
1020
5916
6596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT - 11 + ( COUNT( * ) ) DIV + SUM( + col2 ) * - + 49 FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5973
SELECT - 11 + ( COUNT ( * ) ) / + SUM ( + col2 ) * - + 49 FROM tab1 cor0
----
-11

query I rowsort
SELECT ALL - 75 * - - col1 FROM tab0
----
-1575
-6075
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 60 + col2 FROM tab2
----
100
118
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT ALL - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT ALL + - ( col0 ), col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ( + COUNT( * ) ) * + - ( - ( + - COUNT( * ) ) ) + - + AVG ( + 25 ) AS col1 FROM tab2 AS cor0 WHERE + 45 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ( + COUNT ( * ) ) * + - ( - ( + - COUNT ( * ) ) ) + - + AVG ( + 25 ) AS col1 FROM tab2 AS cor0 WHERE + 45 IS NULL
----
NULL

query I rowsort
SELECT + col2 * + col2 * - 69 AS col0 FROM tab0 AS cor0
----
-152421
-676269
-6900

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 55 NOT BETWEEN 55 AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + 0 - col0 AS col1 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + COUNT( DISTINCT + col0 ) * - COUNT( * ) + - MAX( col0 ) FROM tab0
----
-106

skipif mysql # not compatible
query I rowsort label-5983
SELECT + COUNT ( DISTINCT + col0 ) * - COUNT ( * ) + - MAX ( col0 ) FROM tab0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT CAST( + - col2 AS SIGNED ) * - 81 + + 78 FROM tab2
----
1941
3318
4776

skipif mysql # not compatible
query I rowsort label-5984
SELECT CAST ( + - col2 AS INTEGER ) * - 81 + + 78 FROM tab2
----
1941
3318
4776

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT - - ( col1 ) * CAST( NULL AS SIGNED ) * - col0 + - - col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT - - ( col1 ) * CAST ( NULL AS INTEGER ) * - col0 + - - col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT ALL - - 92 DIV + col2 + - 0 DIV ( + + col0 ) AS col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - - 92 / + col2 + - 0 / ( + + col0 ) AS col2 FROM tab2 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col0 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT + - AVG ( - ( - 52 ) ) * 34 + + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN 23 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT + - AVG ( - ( - 52 ) ) * 34 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN 23 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - col1 / col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT - col1 DIV + 55 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5991
SELECT - col1 / + 55 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 28 * + - 59 * - col2 col0 FROM tab0
----
1
163548
21
16520
81
77644

query II rowsort
SELECT - 76 AS col0, col0 * - 65 FROM tab2
----
-76
-2990
-76
-4160
-76
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL + MAX( - + 16 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + MAX ( - + 16 ) FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5995
SELECT ALL CAST( NULL AS SIGNED ) col0, 97 AS col1 FROM tab2 cor0
----
NULL
97
NULL
97
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5995
SELECT ALL CAST ( NULL AS INTEGER ) col0, 97 AS col1 FROM tab2 cor0
----
NULL
97
NULL
97
NULL
97

query I rowsort
SELECT DISTINCT 25 * 79 * - + col0 + + 41 - + col2 FROM tab1 AS cor0
----
-100780
-167893
-179752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5997
SELECT - - ( + + SUM( col2 ) ) + CAST( NULL AS SIGNED ) + + + 54 + + + COUNT( * ) * - + MIN( + - CAST( col0 AS SIGNED ) ) * - 86 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT - - ( + + SUM ( col2 ) ) + CAST ( NULL AS INTEGER ) + + + 54 + + + COUNT ( * ) * - + MIN ( + - CAST ( col0 AS INTEGER ) ) * - 86 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - ( + + SUM( - col1 ) ) + - 31 AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5998
SELECT - ( + + SUM ( - col1 ) ) + - 31 AS col1 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL + MIN( ALL ( ( + + 45 ) ) ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL + MIN ( ALL ( ( + + 45 ) ) ) FROM tab2 AS cor0
----
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= - col0 * 59 + 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 94 col0 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT + MIN( - 20 ) + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + MIN ( - 20 ) + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col1 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT ALL col0 DIV - col2 + - + 98 AS col0 FROM tab0 AS cor0
----
-106
-98
-98

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL col0 / - col2 + - + 98 AS col0 FROM tab0 AS cor0
----
-106
-98
-98

query I rowsort
SELECT DISTINCT 15 * - - col2 + + 86 FROM tab2
----
431
686
956

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT - col1 DIV 18 AS col2 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - col1 / 18 AS col2 FROM tab1
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col1 FROM tab2 WHERE + 38 + + + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6008
SELECT 57 DIV - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT 57 / - col2 FROM tab2
----
-1
-2
0

query II rowsort
SELECT ALL col0, + 55 FROM tab0
----
15
55
87
55
97
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT DISTINCT CAST( + 59 AS SIGNED ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT CAST ( + 59 AS INTEGER ) FROM tab2
----
59

query II rowsort
SELECT + 44, - col0 AS col1 FROM tab2
----
44
-46
44
-64
44
-75

query I rowsort
SELECT ALL + col1 + - col0 * - + ( ( - 68 ) ) AS col2 FROM tab1
----
-3454
-5775
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT + 38 + col1 + + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT + 38 + col1 + + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT 58 - + MIN( + col0 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT 58 - + MIN ( + col0 ) FROM tab0
----
43

query I rowsort
SELECT DISTINCT 46 * - + 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-1242

query I rowsort
SELECT DISTINCT + + col1 - col1 AS col1 FROM tab0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab2 AS cor0 WHERE + 93 + 46 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT - 91 DIV + col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6018
SELECT - 91 / + col2 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT 53 * + COUNT( * ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-6019
SELECT 53 * + COUNT ( * ) FROM tab0 AS cor0
----
159

query I rowsort
SELECT 11 FROM tab0 WHERE NOT - col1 IS NULL
----
11
11
11

query III rowsort
SELECT - 83, - col2 + + col1 AS col0, + col2 AS col1 FROM tab2
----
9 values hashing to a99a040fafcf357d7db00ce6f56fb93e

query III rowsort
SELECT DISTINCT col2 AS col2, - ( col1 ) AS col0, col1 AS col0 FROM tab0
----
9 values hashing to 6404aee99bf8a4cb22feb021fc6a7a96

query II rowsort
SELECT + col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE + col0 * + 95 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE + col0 * + 95 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT ALL SUM( DISTINCT - 67 ) AS col1 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL SUM ( DISTINCT - 67 ) AS col1 FROM tab1
----
-67

query II rowsort
SELECT ALL + 2 AS col2, - col1 AS col2 FROM tab1
----
2
-14
2
-47
2
-5

query I rowsort
SELECT ALL + + 37 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - COUNT( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6028
SELECT - COUNT ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT DISTINCT COUNT( * ) * + COUNT( * ) col1, 91 + + ( 33 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6030
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col1, 91 + + ( 33 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81
124

query I rowsort
SELECT ALL col0 * ( + 10 ) AS col2 FROM tab1 AS cor0
----
510
850
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT ALL CAST( NULL AS SIGNED ) + - - col1 * + col2 * + col2 * + col0 * + - ( - - 76 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL CAST ( NULL AS INTEGER ) + - - col1 * + col2 * + col2 * + col0 * + - ( - - 76 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = + col0
----

query I rowsort
SELECT - + 39 + - + 82 FROM tab0 AS cor0
----
-121
-121
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL COUNT( * ) + + MAX( ALL + 36 ) AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL COUNT ( * ) + + MAX ( ALL + 36 ) AS col1 FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT 33 + COUNT( * ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6036
SELECT 33 + COUNT ( * ) FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + col2 col0, + 80 col2 FROM tab2
----
117
80
125
80
74
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 98 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6039
SELECT + - COUNT( * ) * + MAX( CAST( NULL AS SIGNED ) ) col0, - COUNT( * ) * - COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6039
SELECT + - COUNT ( * ) * + MAX ( CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) * - COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
NULL
9

query I rowsort
SELECT DISTINCT + 42 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT + MIN( - + 83 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-83

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT + MIN ( - + 83 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-83

query I rowsort
SELECT ALL - col1 * 14 + + ( - 79 ) AS col1 FROM tab0
----
-1213
-373
-93

query II rowsort
SELECT DISTINCT + col1 AS col0, - 27 AS col1 FROM tab0 AS cor0
----
1
-27
21
-27
81
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6045
SELECT - col2, 58 / + col1 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6045
SELECT - col2, 58 / + col1 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT ( NOT col2 + - col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6047
SELECT DISTINCT + 15 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT + 15 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT - - COUNT( * ) AS col0, + 68 * - 72 + COUNT( * ) FROM tab1 cor0
----
3
-4893

skipif mysql # not compatible
query II rowsort label-6048
SELECT - - COUNT ( * ) AS col0, + 68 * - 72 + COUNT ( * ) FROM tab1 cor0
----
3
-4893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6049
SELECT ALL CAST( - - 59 AS SIGNED ) * - CAST( + 91 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL CAST ( - - 59 AS INTEGER ) * - CAST ( + 91 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT COUNT( + 55 ) DIV - + COUNT( + + 36 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6050
SELECT COUNT ( + 55 ) / - + COUNT ( + + 36 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL ( 88 ) * - MAX( DISTINCT ( + col2 ) ) FROM tab0
----
-8712

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL ( 88 ) * - MAX ( DISTINCT ( + col2 ) ) FROM tab0
----
-8712

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 WHERE NULL < + col2
----

query I rowsort
SELECT 33 AS col1 FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT + + 48 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query II rowsort
SELECT DISTINCT - col0 AS col0, - 11 AS col2 FROM tab2
----
-46
-11
-64
-11
-75
-11

query I rowsort
SELECT DISTINCT - col2 * + - 94 + + - 48 FROM tab1 AS cor0
----
5498
6344
8976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT DISTINCT col2 + + CAST( + col0 AS SIGNED ) - ( + col2 ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT col2 + + CAST ( + col0 AS INTEGER ) - ( + col2 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT CAST( - 58 AS SIGNED ) * 57 AS col1 FROM tab1
----
-3306
-3306
-3306

skipif mysql # not compatible
query I rowsort label-6058
SELECT CAST ( - 58 AS INTEGER ) * 57 AS col1 FROM tab1
----
-3306
-3306
-3306

query I rowsort
SELECT - ( - col1 ) - col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL COUNT( + 3 ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL COUNT ( + 3 ) + + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL COUNT( - 23 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL COUNT ( - 23 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 - col0 * + + col2 * - + col2 AS col1 FROM tab2
----
102440
24357
252358

query I rowsort
SELECT - 74 + + col2 AS col2 FROM tab1
----
-15
-6
22

query II rowsort
SELECT DISTINCT + col2 * - - col1, + col2 AS col2 FROM tab1
----
1344
96
295
59
3196
68

query I rowsort
SELECT DISTINCT + + col0 / 14 AS col1 FROM tab2 AS cor0 WHERE NOT ( - - col0 ) * - 60 + + col2 + col1 + + 62 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL - SUM( - col2 ) + - 73 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - SUM ( - col2 ) + - 73 FROM tab1 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - COUNT( * ) + + ( + 56 ) FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-6067
SELECT - COUNT ( * ) + + ( + 56 ) FROM tab1 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6068
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6069
SELECT ALL 41 * col1, + CAST( - 43 AS SIGNED ) DIV + col1 AS col0 FROM tab1 AS cor0
----
1927
0
205
-8
574
-3

skipif mysql # not compatible
query II rowsort label-6069
SELECT ALL 41 * col1, + CAST ( - 43 AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0
----
1927
0
205
-8
574
-3

query I rowsort
SELECT + 26 * - + 28 FROM tab2 AS cor0
----
-728
-728
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT - 29 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - 29 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-87

query II rowsort
SELECT - 32 * + 10, + 50 AS col2 FROM tab0 AS cor0
----
-320
50
-320
50
-320
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 66 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 NOT BETWEEN col2 + - col0 AND ( - ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT - COUNT( DISTINCT + - col1 ) * + + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6076
SELECT - COUNT ( DISTINCT + - col1 ) * + + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( - ( + col1 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL COUNT( - + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL COUNT ( - + col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - MAX( DISTINCT - col0 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-6080
SELECT - MAX ( DISTINCT - col0 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
138

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 * - 96 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 12 * col1 FROM tab1
----
168
564
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT - 86 DIV - 64 AS col0 FROM tab2 WHERE - col2 NOT IN ( 86 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6083
SELECT - 86 / - 64 AS col0 FROM tab2 WHERE - col2 NOT IN ( 86 )
----
1
1
1

query I rowsort
SELECT col1 * - ( col0 ) + col1 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT 97 FROM tab2 WHERE NOT col0 IS NULL
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT DISTINCT + COUNT( ALL - CAST( col2 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + COUNT ( ALL - CAST ( col2 AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( - col0 + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE + 12 IS NOT NULL
----
1
21
81

query I rowsort
SELECT col0 * - 80 FROM tab1
----
-4080
-6800
-7280

query I rowsort
SELECT DISTINCT 54 * - 95 FROM tab1
----
-5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT - ( CAST( NULL AS SIGNED ) ) + col1 * + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT - ( CAST ( NULL AS INTEGER ) ) + col1 * + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT - 16 * - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6092
SELECT - 16 * - COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT DISTINCT 60 + + col1 AS col1 FROM tab1
----
107
65
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6094
SELECT DISTINCT col2 * + col1 AS col2 FROM tab0 WHERE + 85 NOT IN ( + CAST( NULL AS DECIMAL ) * 64 )
----

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT col2 * + col1 AS col2 FROM tab0 WHERE + 85 NOT IN ( + CAST ( NULL AS REAL ) * 64 )
----

query I rowsort
SELECT + col0 / col0 AS col1 FROM tab0 WHERE ( 87 + - col2 * col2 ) > ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT 50 * + COUNT( * ) AS col2 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT 50 * + COUNT ( * ) AS col2 FROM tab0
----
150

query I rowsort
SELECT DISTINCT 97 - col0 FROM tab2 WHERE NOT NULL = ( 71 + col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ( + COUNT( * ) ) * + MIN( ALL + col2 + - col0 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-6098
SELECT ( + COUNT ( * ) ) * + MIN ( ALL + col2 + - col0 ) FROM tab0
----
-231

query I rowsort
SELECT + 79 * ( - col0 * col1 ) AS col1 FROM tab0
----
-144333
-7663
-95985

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0 + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col2 IN ( 38 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT DISTINCT 68 DIV - col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT 68 / - col1 FROM tab1
----
-1
-13
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6103
SELECT ALL - CAST( col1 AS SIGNED ) DIV col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - CAST ( col1 AS INTEGER ) / col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6104
SELECT ALL - 8 DIV MAX( ALL - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL - 8 / MAX ( ALL - col0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6105
SELECT ALL * FROM tab2 WHERE NOT col0 = col0 * - CAST( - col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6105
SELECT ALL * FROM tab2 WHERE NOT col0 = col0 * - CAST ( - col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 89 - 76 AS col2 FROM tab1 AS cor0
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT + COUNT( * ) DIV - 73 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT + COUNT ( * ) / - 73 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 66 + 69 AND NULL
----

query I rowsort
SELECT DISTINCT - 95 * col1 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT DISTINCT col2 * 32 FROM tab1 WHERE + col1 IS NOT NULL
----
1888
2176
3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT COUNT( * ) + - 91 * + 71 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + CAST( NULL AS SIGNED ) - col1 )
----
-6461

skipif mysql # not compatible
query I rowsort label-6111
SELECT COUNT ( * ) + - 91 * + 71 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + CAST ( NULL AS INTEGER ) - col1 )
----
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT - 35 + + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6112
SELECT - 35 + + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * 21 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 45 * - 51 FROM tab0 cor0
----
-2295

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - 11 AND 19 * + col1
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT + SUM( ALL 16 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT + SUM ( ALL 16 ) FROM tab2 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT - 63 DIV + col2 AS col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6118
SELECT - 63 / + col2 AS col0 FROM tab0
----
-1
-6
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= 50 * + col0
----

query I rowsort
SELECT + col0 * - col2 * 17 AS col0 FROM tab1
----
-105196
-83232
-85255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6121
SELECT ALL - CAST( - 30 AS SIGNED ) * - 79 FROM tab1
----
-2370
-2370
-2370

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - CAST ( - 30 AS INTEGER ) * - 79 FROM tab1
----
-2370
-2370
-2370

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL 8 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL 8 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 20 * + 81 FROM tab2
----
37260
64800
93960

query I rowsort
SELECT + 9 * + col1 AS col2 FROM tab0
----
189
729
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 0 = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT DISTINCT CAST( + col0 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0 WHERE NOT 83 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 59 + 53 * col1 IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND ( ( col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN 88 AND col2
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL > ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6134
SELECT + + MAX( CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 95 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT + + MAX ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 95 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( 5 * col2 )
----

query I rowsort
SELECT ALL + + 8 + col2 + + 39 + 80 FROM tab2 AS cor0
----
150
167
185

query I rowsort
SELECT DISTINCT 62 * col0 + - col2 FROM tab1 AS cor0
----
3066
5211
5574

query I rowsort
SELECT DISTINCT col2 + - 52 FROM tab1 AS cor0
----
16
44
7

query I rowsort
SELECT - col1 * + 75 + ( col2 ) FROM tab2
----
-3802
-4967
-5735

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT + 34 + COUNT( * ) AS col1 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6140
SELECT + 34 + COUNT ( * ) AS col1 FROM tab1
----
37

query I rowsort
SELECT + col0 * - 14 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT + COUNT( 70 ) - 24 DIV - 14 FROM tab1 WHERE - col0 BETWEEN + col1 * 11 AND 84
----
1

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT + COUNT ( 70 ) - 24 / - 14 FROM tab1 WHERE - col0 BETWEEN + col1 * 11 AND 84
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT DISTINCT + col1 - - CAST( NULL AS SIGNED ) - - col0 * col2 + ( col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT + col1 - - CAST ( NULL AS INTEGER ) - - col0 * col2 + ( col2 ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6146
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT - SUM( col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT - SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 61 > col1
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + + col2 + - + 13 >= col1
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 24 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT 82 * - - 61 + + COUNT( * ) + - COUNT( * ) col2 FROM tab0 AS cor0
----
5002

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6152
SELECT 82 * - - 61 + + COUNT ( * ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
5002

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT ( - col1 ) IN ( - 54 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL COUNT( ALL + ( 6 ) ) AS col0 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL COUNT ( ALL + ( 6 ) ) AS col0 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL - SUM( + - 6 ) AS col1 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - SUM ( + - 6 ) AS col1 FROM tab0 cor0
----
18

query I rowsort
SELECT ALL + 43 * - 65 AS col2 FROM tab2 AS cor0
----
-2795
-2795
-2795

query II rowsort
SELECT + col0 AS col1, + 63 FROM tab2 AS cor0
----
46
63
64
63
75
63

query I rowsort
SELECT + - ( - 35 ) AS col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT - - col0 * + - 33 FROM tab2 AS cor0
----
-1518
-2112
-2475

query I rowsort
SELECT - 67 * + ( + col1 ) AS col0 FROM tab0 cor0
----
-1407
-5427
-67

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 84 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL 72 * + COUNT( * ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL 72 * + COUNT ( * ) FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL - ( MIN( + + 38 ) ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL - ( MIN ( + + 38 ) ) FROM tab0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT DISTINCT COUNT( DISTINCT + col2 ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT COUNT ( DISTINCT + col2 ) / COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL + col0 * + col0 + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
2167
4173
5692

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL COUNT( ALL col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL COUNT ( ALL col0 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6168
SELECT + CAST( - - col0 AS SIGNED ) * col2 AS col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6168
SELECT + CAST ( - - col0 AS INTEGER ) * col2 AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT DISTINCT + col0 + + + col2 AS col0, col0 AS col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT ALL + col1 DIV col0 + - + col1 * - - 16 + - + ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-1244
-326
83

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + col1 / col0 + - + col1 * - - 16 + - + ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-1244
-326
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT + MIN( + 1 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6171
SELECT + MIN ( + 1 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT DISTINCT COUNT( + col1 ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT COUNT ( + col1 ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 46 AS col1 FROM tab0 AS cor0 WHERE NULL < col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL IS NULL ) OR + col2 > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6175
SELECT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) / col2 ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-6175
SELECT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) / col2 ) BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT - col2 + + col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT - col2 + + col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + + 11 + - COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6177
SELECT + + 11 + - COUNT ( * ) FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6178
SELECT - - COUNT( * ) * - 7 AS col2, + COUNT( * ) DIV - MIN( + col1 ) FROM tab2 AS cor0
----
-21
0

skipif mysql # not compatible
query II rowsort label-6178
SELECT - - COUNT ( * ) * - 7 AS col2, + COUNT ( * ) / - MIN ( + col1 ) FROM tab2 AS cor0
----
-21
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 75 * - - col0 + - col2 col2 FROM tab2 AS cor0
----
3478
4837
5634

query I rowsort
SELECT DISTINCT + col0 + - 39 - + 65 * + col0 * + col0 AS col0 FROM tab1
----
-169053
-469579
-538213

query I rowsort
SELECT ALL - 17 - 59 AS col1 FROM tab0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT DISTINCT - MAX( ALL - - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT - MAX ( ALL - - col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT + COUNT( ALL + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + COUNT ( ALL + col0 ) FROM tab2
----
3

query II rowsort
SELECT col2 AS col2, col0 * ( col0 ) * - - col1 AS col0 FROM tab1
----
59
36125
68
389207
96
36414

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6185
SELECT * FROM tab2 WHERE NOT + 44 >= + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6185
SELECT * FROM tab2 WHERE NOT + 44 >= + - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL + SUM( - - 75 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + SUM ( - - 75 ) FROM tab2 AS cor0
----
225

query I rowsort
SELECT ALL - 66 * - 61 AS col1 FROM tab1 AS cor0
----
4026
4026
4026

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT - ( - SUM( DISTINCT + 11 ) ) col0 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6188
SELECT - ( - SUM ( DISTINCT + 11 ) ) col0 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6189
SELECT DISTINCT + ( + 28 ) AS col1, + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
28
9

skipif mysql # not compatible
query II rowsort label-6189
SELECT DISTINCT + ( + 28 ) AS col1, + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
28
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - 96 + col0 <= ( + ( + col2 ) )
----

query I rowsort
SELECT ALL col0 * 23 * - col0 * - col1 - + 69 AS col0 FROM tab1 AS cor0
----
830806
837453
8951692

query I rowsort
SELECT ( - ( - - ( ( + - col2 ) ) ) ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - + col1 + - col1 + + col0 FROM tab0 AS cor0
----
-147
45
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 55 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6196
SELECT ALL - col2 + - col1 FROM tab1 AS cor0 WHERE NOT + col0 < ( + col0 * - - ( col1 ) + 36 + - - CAST( col2 AS SIGNED ) + + 87 )
----

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL - col2 + - col1 FROM tab1 AS cor0 WHERE NOT + col0 < ( + col0 * - - ( col1 ) + 36 + - - CAST ( col2 AS INTEGER ) + + 87 )
----

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) - + col0 * col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + col2 + + col1 + + - col1 * + col0 AS col2 FROM tab0
----
-1087
-1796
3

query I rowsort
SELECT 22 * + + col0 * + col0 * col0 FROM tab1
----
13510750
16578562
2918322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT col1 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT col1 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN NULL AND col1
----
75
67
58

query I rowsort
SELECT 63 * 15 AS col1 FROM tab1
----
945
945
945

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT - col1 DIV ( + 26 ) FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6203
SELECT - col1 / ( + 26 ) FROM tab0
----
-3
0
0

query I rowsort
SELECT 71 * + 93 FROM tab2
----
6603
6603
6603

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT col2 * col0 DIV + ( + + 91 ) AS col0 FROM tab0
----
105
7
9

skipif mysql # not compatible
query I rowsort label-6205
SELECT col2 * col0 / + ( + + 91 ) AS col0 FROM tab0
----
105
7
9

query I rowsort
SELECT ALL + + col2 * col2 + - + col0 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
-1586
-1771
-3264

query I rowsort
SELECT ALL + - 25 FROM tab0 cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - COUNT( DISTINCT - 1 ) + - 13 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6208
SELECT - COUNT ( DISTINCT - 1 ) + - 13 FROM tab1 AS cor0
----
-14

query I rowsort
SELECT DISTINCT - 22 * - col0 AS col0 FROM tab2 AS cor0
----
1012
1408
1650

query I rowsort
SELECT 93 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ( + + 26 ) FROM tab1
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 99 col2 FROM tab2 AS cor0 WHERE + 99 * + col2 / 26 BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 82 - - col2 FROM tab0 cor0
----
3901
8217
830

query I rowsort
SELECT + 48 - - col1 + + 78 * col1 * + + col0 AS col2 FROM tab1 AS cor0
----
33203
333701
55754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) - + - 71 AS col0 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) - + - 71 AS col0 FROM tab2 cor0
----
70

query II rowsort
SELECT DISTINCT ( col0 ) AS col2, + col2 FROM tab0 AS cor0 WHERE - 16 + + 77 - - 18 * - - col0 / - - 77 * - 56 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT - MAX( + 39 ) col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6217
SELECT - MAX ( + 39 ) col0 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - SUM( - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6218
SELECT - SUM ( - + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 57 AS col2 FROM tab1 WHERE + 17 IN ( + - 83, col2 + + ( 12 ) * col2 * + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + col2 + 30 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT col0 DIV - 31 AS col2 FROM tab0 WHERE NOT ( col2 * col2 ) = 29 - - - 51
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6222
SELECT col0 / - 31 AS col2 FROM tab0 WHERE NOT ( col2 * col2 ) = 29 - - - 51
----
-2
-3
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND - col2 - - - col2
----

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT ALL + 55 DIV + + col2 col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6225
SELECT ALL + 55 / + + col2 col1 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + + - col1 + + 44 / - - 76 FROM tab0 WHERE + col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + + - col1 + + 44 / - - 76 FROM tab0 WHERE + col2 <> NULL
----

query I rowsort
SELECT ( + 15 ) AS col0 FROM tab2 AS cor0
----
15
15
15

query II rowsort
SELECT ALL - - 18 AS col0, + ( 22 ) + + col1 FROM tab2 AS cor0
----
18
73
18
89
18
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 23 col1, col0 AS col2 FROM tab1 AS cor0
----
-23
51
-23
85
-23
91

query I rowsort
SELECT DISTINCT - 95 + - col0 + 3 - - 23 FROM tab0 AS cor0
----
-156
-166
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT col0 + 97 + col1 * + col1 * col0 * + CAST( NULL AS SIGNED ) * - col1 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-6231
SELECT col0 + 97 + col1 * + col1 * col0 * + CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + - MIN( ALL + col2 ) * + 40 + - 84 AS col1 FROM tab1 cor0
----
-2444

skipif mysql # not compatible
query I rowsort label-6232
SELECT + - MIN ( ALL + col2 ) * + 40 + - 84 AS col1 FROM tab1 cor0
----
-2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6233
SELECT ALL - - AVG ( + col0 ) * - + AVG ( 54 ) + ( - - MIN( - ( - - CAST( NULL AS SIGNED ) ) ) ) + + - MAX( ALL ( col1 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL - - AVG ( + col0 ) * - + AVG ( 54 ) + ( - - MIN ( - ( - - CAST ( NULL AS INTEGER ) ) ) ) + + - MAX ( ALL ( col1 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT DISTINCT + col2 * - col0 * - col1 + col0 DIV col1 FROM tab1
----
25092
290837
68547

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT + col2 * - col0 * - col1 + col0 / col1 FROM tab1
----
25092
290837
68547

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT 40 * - COUNT( * ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-6235
SELECT 40 * - COUNT ( * ) FROM tab0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - SUM( ALL col0 ) * + COUNT( * ) AS col1 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-6236
SELECT - SUM ( ALL col0 ) * + COUNT ( * ) AS col1 FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + + ( COUNT( ALL - 60 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6237
SELECT + + ( COUNT ( ALL - 60 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT DISTINCT 69 + col1 - + col0 DIV col0 * col2 FROM tab2 AS cor0
----
106
78
97

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT 69 + col1 - + col0 / col0 * col2 FROM tab2 AS cor0
----
106
78
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6239
SELECT DISTINCT * FROM tab1 WHERE col2 + + col1 * + col2 IN ( + col1 + - CAST( NULL AS SIGNED ) - + + col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6239
SELECT DISTINCT * FROM tab1 WHERE col2 + + col1 * + col2 IN ( + col1 + - CAST ( NULL AS INTEGER ) - + + col2 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL - MIN( + + col1 ) * COUNT( * ) FROM tab0 WHERE ( + 30 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - MIN ( + + col1 ) * COUNT ( * ) FROM tab0 WHERE ( + 30 IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT 26 + + ( + + 90 ) + - COUNT( * ) AS col0 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-6241
SELECT 26 + + ( + + 90 ) + - COUNT ( * ) AS col0 FROM tab0
----
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT ALL col2 * - col2 * - + 98 AS col2 FROM tab1 AS cor0
----
341138
453152
903168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6244
SELECT DISTINCT - - 25 / - - ( + CAST( NULL AS SIGNED ) ) col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6244
SELECT DISTINCT - - 25 / - - ( + CAST ( NULL AS INTEGER ) ) col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT ALL - CAST( - 74 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 < + col0
----

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - CAST ( - 74 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL SUM( ALL + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL SUM ( ALL + col1 ) FROM tab0 AS cor0
----
103

query II rowsort
SELECT ALL col1 * + col0, + ( + + col1 ) - - - col1 AS col0 FROM tab2
----
2346
0
4928
0
5025
0

query I rowsort
SELECT DISTINCT + 44 * col2 AS col1 FROM tab2
----
1012
1760
2552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT + CAST( NULL AS SIGNED ) / - 10 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT + CAST ( NULL AS INTEGER ) / - 10 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab1 WHERE ( - - col1 ) = - col2 * + - 85 + + col0
----

query I rowsort
SELECT - - col2 * - col2 + + + col0 * + col1 AS col2 FROM tab2 WHERE NOT col1 <= NULL
----

query II rowsort
SELECT col2 AS col0, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL + MAX( ALL col1 ) col1 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6253
SELECT ALL + MAX ( ALL col1 ) col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6254
SELECT 6 col1, COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0
----
6
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6254
SELECT 6 col1, COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0
----
6
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 25 * + col2, col1 + - col2 )
----

query II rowsort
SELECT DISTINCT + + 69 AS col0, col1 AS col1 FROM tab1 AS cor0
----
69
14
69
47
69
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, + 60 + + col1 FROM tab0 AS cor0
----
1
61
21
81
81
141

query I rowsort
SELECT - 65 * 75 + + col0 FROM tab0 AS cor0
----
-4778
-4788
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT ( + MAX( DISTINCT col0 ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT ( + MAX ( DISTINCT col0 ) ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL - col2 + - 15 AS col2 FROM tab2 AS cor0
----
-38
-55
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT - + 90 + CAST( - 8 AS SIGNED ) DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6261
SELECT DISTINCT - + 90 + CAST ( - 8 AS INTEGER ) / - COUNT ( * ) col1 FROM tab1 AS cor0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT DISTINCT 0 + col1 + + col2 + + col1 DIV col1 * 38 col1 FROM tab1 AS cor0
----
102
148
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6262
SELECT DISTINCT 0 + col1 + + col2 + + col1 / col1 * 38 col1 FROM tab1 AS cor0
----
102
148
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL - 27 * + CAST( NULL AS SIGNED ) + + col2 * CAST( - 31 AS SIGNED ) 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-6263
SELECT ALL - 27 * + CAST ( NULL AS INTEGER ) + + col2 * CAST ( - 31 AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + 77 + + + col1 AS col2 FROM tab2
----
105
114
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT DISTINCT 48 col1, - COUNT( * ) * + ( COUNT( * ) ) col2 FROM tab1
----
48
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6265
SELECT DISTINCT 48 col1, - COUNT ( * ) * + ( COUNT ( * ) ) col2 FROM tab1
----
48
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - 88 + - + MIN( - + 76 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6266
SELECT - 88 + - + MIN ( - + 76 ) FROM tab0
----
-12

query I rowsort
SELECT ALL - 84 * - - col2 FROM tab2
----
-1932
-3360
-4872

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 23 )
----

query I rowsort
SELECT ALL - - col1 + - 14 AS col0 FROM tab2 cor0
----
37
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT + + ( + COUNT( * ) ) + 27 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-6271
SELECT + + ( + COUNT ( * ) ) + 27 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
45

query I rowsort
SELECT - col1 + - + col2 - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + col1 * + col2 + - col2 FROM tab0 AS cor0
----
0
200
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT DISTINCT 75 * - COUNT( * ) FROM tab2 AS cor0 WHERE + 28 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT 75 * - COUNT ( * ) FROM tab2 AS cor0 WHERE + 28 <= NULL
----
0

query II rowsort
SELECT 60 * - 8 AS col0, col2 AS col1 FROM tab1 cor0
----
-480
59
-480
68
-480
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT + col2 * 20 DIV col1 * - - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-13152
-13924
-1904

skipif mysql # not compatible
query I rowsort label-6276
SELECT + col2 * 20 / col1 * - - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-13152
-13924
-1904

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + + 70 NOT BETWEEN - 90 AND ( 44 ) )
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * - ( col2 ) col0 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL - - ( - 9 ) * + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - - ( - 9 ) * + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT ( + 95 ) * + 98 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 / + col2 < ( NULL )
----

query I rowsort
SELECT ( 80 ) * col0 AS col2 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT ALL 95 * col0 AS col1 FROM tab1
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT ( + - MAX( ALL + 75 ) ) AS col0, - 43 * - + 29 col2 FROM tab2
----
-75
1247

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6283
SELECT ( + - MAX ( ALL + 75 ) ) AS col0, - 43 * - + 29 col2 FROM tab2
----
-75
1247

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT ALL + 78 DIV + - ( + col2 ) FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + 78 / + - ( + col2 ) FROM tab0
----
-1
-7
0

query I rowsort
SELECT DISTINCT 80 * - 61 FROM tab0
----
-4880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6287
SELECT 90 AS col0, - COUNT( DISTINCT - 62 ) * COUNT( * ) FROM tab0
----
90
-3

skipif mysql # not compatible
query II rowsort label-6287
SELECT 90 AS col0, - COUNT ( DISTINCT - 62 ) * COUNT ( * ) FROM tab0
----
90
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6288
SELECT DISTINCT + col2 DIV CAST( - + col0 AS SIGNED ) * + col2 * - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT + col2 / CAST ( - + col0 AS INTEGER ) * + col2 * - col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col2 * - + 37 AS col1 FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT DISTINCT + + col0 * col2 + - col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 71 - - 57 <> 88
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT DISTINCT + 17 DIV + - SUM( - - 26 ) FROM tab0 cor0 WHERE NOT ( + col0 ) * - col0 = + col0
----
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + 17 / + - SUM ( - - 26 ) FROM tab0 cor0 WHERE NOT ( + col0 ) * - col0 = + col0
----
0

query I rowsort
SELECT 55 + + + col0 FROM tab2 AS cor0
----
101
119
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT + - COUNT( ALL 48 ) FROM tab1 AS cor0 WHERE col2 > 56
----
-3

skipif mysql # not compatible
query I rowsort label-6294
SELECT + - COUNT ( ALL 48 ) FROM tab1 AS cor0 WHERE col2 > 56
----
-3

query I rowsort
SELECT + + 22 + - col1 + + + col1 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT DISTINCT + 83 + - 89 AS col2, + COUNT( * ) AS col2 FROM tab1
----
-6
3

skipif mysql # not compatible
query II rowsort label-6296
SELECT DISTINCT + 83 + - 89 AS col2, + COUNT ( * ) AS col2 FROM tab1
----
-6
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6297
SELECT ALL - MAX( - - 62 ) AS col2, - COUNT( * ) AS col2 FROM tab2
----
-62
-3

skipif mysql # not compatible
query II rowsort label-6297
SELECT ALL - MAX ( - - 62 ) AS col2, - COUNT ( * ) AS col2 FROM tab2
----
-62
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL + + COUNT( * ) - COUNT( * ) AS col2 FROM tab1 WHERE + + col0 / col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL + + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 WHERE + + col0 / col0 IS NULL
----
0

query I rowsort
SELECT ALL + 12 AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 24 * col1 AS col1 FROM tab1
----
1128
120
336

query I rowsort
SELECT col0 - - - col0 + + 33 + col2 FROM tab0 AS cor0
----
132
43
80

query I rowsort
SELECT + ( - 92 ) * 29 * 5 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 91c3e427db66b1d78a958b5a9416d960

query I rowsort
SELECT 0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + ( - - 69 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + - col1 * - - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT - 74 AS col1, - col1 * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) > NULL
----

query I rowsort
SELECT + 59 * + + col2 + + ( - - col0 ) AS col0 FROM tab1 AS cor0
----
3566
4103
5715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT - - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6308
SELECT - - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 53 NOT IN ( col2, 5 - - - col0 )
----

query I rowsort
SELECT DISTINCT - + 78 AS col2 FROM tab1 cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT col1 DIV - 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT col1 / - 73 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT ALL - 24 DIV - ( - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL - 24 / - ( - col2 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + MIN( ALL + - ( - col2 ) ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6314
SELECT + MIN ( ALL + - ( - col2 ) ) col0 FROM tab0
----
10

query II rowsort
SELECT col2 + - col0 * + + 71 AS col0, 35 + + 24 AS col1 FROM tab1
----
-3525
59
-5976
59
-6393
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + COUNT( - 2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6317
SELECT + COUNT ( - 2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 89 * + + col2 AS col0 FROM tab1 cor0
----
-5251
-6052
-8544

query I rowsort
SELECT DISTINCT - + 1 + + 66 + - 84 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6320
SELECT + - CAST( + + 16 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6320
SELECT + - CAST ( + + 16 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - COUNT( * ) - + 70 * - - 44 + COUNT( * ) FROM tab0 AS cor0
----
-3080

skipif mysql # not compatible
query I rowsort label-6321
SELECT - COUNT ( * ) - + 70 * - - 44 + COUNT ( * ) FROM tab0 AS cor0
----
-3080

query I rowsort
SELECT col0 - + 29 - col2 + + 99 * - 34 * - col0 + + 85 AS col1 FROM tab0
----
292975
326556
50514

query I rowsort
SELECT - col1 * col1 - + 48 AS col0 FROM tab1
----
-2257
-244
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6324
SELECT ALL 47 * COUNT( DISTINCT - 35 ) - - + 91 AS col0, - 5 AS col1 FROM tab1
----
138
-5

skipif mysql # not compatible
query II rowsort label-6324
SELECT ALL 47 * COUNT ( DISTINCT - 35 ) - - + 91 AS col0, - 5 AS col1 FROM tab1
----
138
-5

query I rowsort
SELECT - - col0 FROM tab2 WHERE 75 IS NULL
----

query I rowsort
SELECT DISTINCT - 49 + - 56 FROM tab1
----
-105

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT COUNT( * ) + - 62 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-6328
SELECT COUNT ( * ) + - 62 FROM tab2
----
-59

query I rowsort
SELECT - + 89 FROM tab1 WHERE + + col1 IS NOT NULL
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT DISTINCT + 22 - + + COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT + 22 - + + COUNT ( * ) FROM tab2
----
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6331
SELECT ALL - 89 - + + col2 + col1 * CAST( NULL AS SIGNED ), + 27 * + col0 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6331
SELECT ALL - 89 - + + col2 + col1 * CAST ( NULL AS INTEGER ), + 27 * + col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + - col1 + - - 49 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT 50 * - MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
-3750

skipif mysql # not compatible
query I rowsort label-6333
SELECT 50 * - MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - MIN( - col0 ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6334
SELECT - MIN ( - col0 ) col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL col2, + col1 * + + col0 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 42 / + - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT ( - SUM( ALL - col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT ( - SUM ( ALL - col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + 83 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-6338
SELECT + 83 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
74

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT - MAX( - + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6340
SELECT - MAX ( - + col1 ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT CAST( 44 AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif mysql # not compatible
query I rowsort label-6341
SELECT CAST ( 44 AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 26 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT + + ( COUNT( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6343
SELECT DISTINCT + + ( COUNT ( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + - MAX( - 86 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
86

skipif mysql # not compatible
query I rowsort label-6344
SELECT + - MAX ( - 86 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL - COUNT( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT - - 41 * col1 AS col1 FROM tab2 AS cor0
----
2091
2747
3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT + + col1 * - - col2 * col2 * - - CAST( NULL AS SIGNED ) / + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT + + col1 * - - col2 * col2 * - - CAST ( NULL AS INTEGER ) / + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6349
SELECT COUNT( * ) / + 84 * + + CAST( NULL AS SIGNED ) * + MIN( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT COUNT ( * ) / + 84 * + + CAST ( NULL AS INTEGER ) * + MIN ( + col2 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 + + col0 col0 FROM tab2 AS cor0
----
111
122
93

query I rowsort
SELECT ALL - ( - 40 ) FROM tab0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT col2 * col0 * 17 DIV + + col2 FROM tab1
----
1445
1547
867

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT col2 * col0 * 17 / + + col2 FROM tab1
----
1445
1547
867

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT SUM( - 59 ) AS col1 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT SUM ( - 59 ) AS col1 FROM tab2
----
-177

query I rowsort
SELECT 84 + - 99 FROM tab1
----
-15
-15
-15

query II rowsort
SELECT DISTINCT - 74, col2 AS col2 FROM tab1
----
-74
59
-74
68
-74
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6357
SELECT COUNT( * ) col0, + MAX( - + 58 ) FROM tab2
----
3
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6357
SELECT COUNT ( * ) col0, + MAX ( - + 58 ) FROM tab2
----
3
-58

query II rowsort
SELECT ALL - col1 + + - col0 + col2 AS col1, 99 * - + col2 AS col2 FROM tab1 AS cor0
----
-31
-5841
-70
-6732
31
-9504

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT DISTINCT COUNT( * ) * 5 col1, 2 FROM tab2
----
15
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6359
SELECT DISTINCT COUNT ( * ) * 5 col1, 2 FROM tab2
----
15
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT + 12 + - + col0 DIV + col0 FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 12 + - + col0 / + col0 FROM tab0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6362
SELECT ( ( + - col1 ) ) + 59 + col1 * col2 * - - col0 + + - col1 + - - ( + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT ( ( + - col1 ) ) + 59 + col1 * col2 * - - col0 + + - col1 + - - ( + - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 47 AS col0, + 38 FROM tab0 AS cor0 WHERE - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL COUNT( * ) + - + 89 FROM tab1 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL COUNT ( * ) + - + 89 FROM tab1 cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT - + MIN( 64 ) col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6365
SELECT - + MIN ( 64 ) col2 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + col1 - - 90 FROM tab1
----
104
137
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6367
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT col2 * - col1 NOT BETWEEN - - col1 * + + 57 AND 18 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6367
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT col2 * - col1 NOT BETWEEN - - col1 * + + 57 AND 18 - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - ( - - 71 ) AS col2 FROM tab1 AS cor0
----
-71
-71
-71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 29 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 41 AS col0, col0 * + + col0 AS col0 FROM tab1 AS cor0
----
-41
2601
-41
7225
-41
8281

query I rowsort
SELECT + - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6372
SELECT + COUNT( * ) DIV - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT + COUNT ( * ) / - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 - - col1 - - 46 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT DISTINCT SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + col2, - col1 AS col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT ALL - 27, col2 * - col0 AS col1 FROM tab1 AS cor0
----
-27
-4896
-27
-5015
-27
-6188

query I rowsort
SELECT ALL ( + 3 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
3
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 + + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6379
SELECT - COUNT( * ), - ( COUNT( * ) ) * + ( - + ( + 98 ) ) AS col2 FROM tab0 cor0
----
-3
294

skipif mysql # not compatible
query II rowsort label-6379
SELECT - COUNT ( * ), - ( COUNT ( * ) ) * + ( - + ( + 98 ) ) AS col2 FROM tab0 cor0
----
-3
294

query I rowsort
SELECT ALL + 55 + - 37 FROM tab2
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6381
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col2 * + CAST( - 64 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6381
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col2 * + CAST ( - 64 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT ALL + MIN( DISTINCT + 4 ), 2 AS col0 FROM tab0
----
4
2

skipif mysql # not compatible
query II rowsort label-6382
SELECT ALL + MIN ( DISTINCT + 4 ), 2 AS col0 FROM tab0
----
4
2

query I rowsort
SELECT ALL - ( 36 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - + col0 AND - - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT + - COUNT( * ) AS col0, + MAX( - ( + 47 ) ) col0 FROM tab2 AS cor0 WHERE 93 * 75 * + + col0 IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6385
SELECT + - COUNT ( * ) AS col0, + MAX ( - ( + 47 ) ) col0 FROM tab2 AS cor0 WHERE 93 * 75 * + + col0 IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6386
SELECT 35 - + 15 AS col1, MIN( ALL - 46 ) FROM tab2, tab2 AS cor0
----
20
-46

skipif mysql # not compatible
query II rowsort label-6386
SELECT 35 - + 15 AS col1, MIN ( ALL - 46 ) FROM tab2, tab2 AS cor0
----
20
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 42 * - 93 < + col2 * 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6388
SELECT * FROM tab1 cor0 WHERE CAST( - 30 AS SIGNED ) * + 51 * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6388
SELECT * FROM tab1 cor0 WHERE CAST ( - 30 AS INTEGER ) * + 51 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT + ( + 12 ) DIV col1 * col2 + - col2 - col2 AS col1 FROM tab0 AS cor0
----
-20
-94
990

skipif mysql # not compatible
query I rowsort label-6389
SELECT + ( + 12 ) / col1 * col2 + - col2 - col2 AS col1 FROM tab0 AS cor0
----
-20
-94
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( - ( + 72 ) ) col2 FROM tab2 AS cor0
----
118
136
147

query I rowsort
SELECT - col2 - + 23 * - col2 * - - col2 AS col2 FROM tab0 AS cor0
----
225324
2290
50760

query I rowsort
SELECT + col2 - - 71 * + col0 AS col1 FROM tab2 AS cor0
----
3289
4584
5383

query I rowsort
SELECT + 11 - + col1 - - col2 AS col1 FROM tab0 AS cor0
----
-23
0
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL - - COUNT( * ) + - 2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - - COUNT ( * ) + - 2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE - col2 >= - ( - - col0 )
----
-21

query I rowsort
SELECT ALL + col0 * col2 - + 31 AS col0 FROM tab0
----
674
839
9572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - 96 AS col1, + col1 col2 FROM tab2
----
-2208
51
-3840
77
-5568
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6398
SELECT ALL CAST( - 32 AS SIGNED ) DIV - - 35 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL CAST ( - 32 AS INTEGER ) / - - 35 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / + 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + 35 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 * - - 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6403
SELECT DISTINCT + - CAST( + 36 AS SIGNED ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + - CAST ( + 36 AS INTEGER ) FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + - 44 * + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-6404
SELECT + - 44 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-6405
SELECT DISTINCT MIN( - + col1 ) * COUNT( * ) + + COUNT( * ) * - MIN( DISTINCT + col0 ), - 50 * - + 43 AS col2 FROM tab0
----
-288
2150

skipif mysql # not compatible
query II rowsort label-6405
SELECT DISTINCT MIN ( - + col1 ) * COUNT ( * ) + + COUNT ( * ) * - MIN ( DISTINCT + col0 ), - 50 * - + 43 AS col2 FROM tab0
----
-288
2150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6406
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + 7 * 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6406
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + 7 * 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT + - MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT + - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6408
SELECT ALL 51 + - COUNT( * ), MAX( + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 10 >= + CAST( NULL AS SIGNED )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6408
SELECT ALL 51 + - COUNT ( * ), MAX ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 10 >= + CAST ( NULL AS INTEGER )
----
51
NULL

query I rowsort
SELECT DISTINCT - - col1 * 83 AS col2 FROM tab1 AS cor0
----
1162
3901
415

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 NOT BETWEEN - col2 AND col1
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 85, col0 + + 58 + - col1, + + col1, + col1 * 18 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col1 * ( col1 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 23 * + 8 - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 * - col0 + + ( + 69 ) col1 FROM tab0 AS cor0
----
-10506
-75621
-931422

query I rowsort
SELECT - col1 + - + col0 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT ( - + 68 ) * col2 * + + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT ( - + 68 ) * col2 * + + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 74 AS col0 FROM tab1 AS cor0
----
121
79
88

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( ( NOT - col0 < - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT + MIN( + 59 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6419
SELECT + MIN ( + 59 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ( + 27 ) AS col1 FROM tab1
----
27
27
27

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - + + ( + - 88 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col2 AS col0, 70 AS col2 FROM tab1 AS cor0
----
59
70
68
70
96
70

query I rowsort
SELECT DISTINCT - - col0 * + - 55 AS col1 FROM tab2 AS cor0
----
-2530
-3520
-4125

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 28 NOT BETWEEN - col0 * + col1 AND - ( + col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 34 BETWEEN NULL AND - 12 * - col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + COUNT( * ) + + + COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-6427
SELECT + COUNT ( * ) + + + COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27

query I rowsort
SELECT ALL + + 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT 91 FROM tab1 WHERE NOT + 73 IS NULL
----
91
91
91

query I rowsort
SELECT - 70 * 67 + - - col1 AS col2 FROM tab0
----
-4609
-4669
-4689

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - COUNT( * ) * 12 AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6431
SELECT - COUNT ( * ) * 12 AS col1 FROM tab0 AS cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( + col0 ) AS col1, 73 * - + col1 AS col1 FROM tab0 AS cor0 WHERE 75 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT - MAX( + - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6434
SELECT - MAX ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + col2 + col0 + - + 57 FROM tab2 AS cor0
----
12
47
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT DISTINCT - ( col2 ) DIV col2 + - col2 FROM tab1 cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT - ( col2 ) / col2 + - col2 FROM tab1 cor0
----
-60
-69
-97

query I rowsort
SELECT 71 * col1 * + 80 FROM tab0 AS cor0
----
119280
460080
5680

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + ( + MIN( DISTINCT ( col1 ) ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6439
SELECT + ( + MIN ( DISTINCT ( col1 ) ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 WHERE NULL < - col1
----
0

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL < - col1
----
0

query I rowsort
SELECT ALL - col1 + + - col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6442
SELECT + col1 + - ( - col1 ) * - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT + col1 + - ( - col1 ) * - - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 8 AS col0 FROM tab0 cor0 WHERE ( NOT ( - col1 * + col1 NOT BETWEEN col2 + + 50 + - 70 / col0 * + col2 AND ( ( - 45 ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6444
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-6444
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ( + SUM( DISTINCT + col1 ) ) FROM tab1 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ( + SUM ( DISTINCT + col1 ) ) FROM tab1 WHERE + col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6446
SELECT col1, col2 DIV + 74 AS col0 FROM tab1
----
14
1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-6446
SELECT col1, col2 / + 74 AS col0 FROM tab1
----
14
1
47
0
5
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6447
SELECT ALL - 78 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
8

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - 78 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
8

query I rowsort
SELECT + 88 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + - col2 * - 95 + + + ( + col0 )
----

query I rowsort
SELECT + - col2 * - col2 + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
3540
4692
9312

query I rowsort
SELECT + ( 62 ) AS col2 FROM tab0 AS cor0
----
62
62
62

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 BETWEEN NULL AND + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6452
SELECT DISTINCT + ( + col1 ) * CAST( - + col0 AS SIGNED ) col0, col1 + - + 59 FROM tab0 AS cor0
----
-1215
22
-1827
-38
-97
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6452
SELECT DISTINCT + ( + col1 ) * CAST ( - + col0 AS INTEGER ) col0, col1 + - + 59 FROM tab0 AS cor0
----
-1215
22
-1827
-38
-97
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col2 ) - - col0 AS col1, 88 + - col1 col0 FROM tab2 WHERE NOT ( NOT + col1 IS NOT NULL )
----
17
21
23
37
24
11

query II rowsort
SELECT - col2 * + - col2 AS col1, 83 AS col2 FROM tab1 AS cor0
----
3481
83
4624
83
9216
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 19 + - col0 - - col0 > NULL
----

query I rowsort
SELECT + + col1 + + col2 * col2 FROM tab1 AS cor0
----
3486
4671
9230

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT + 49 + + COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6457
SELECT + 49 + + COUNT ( * ) FROM tab2 AS cor0
----
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + 95 + - 75 * col0 AND ( - col0 - col1 )
----

query I rowsort
SELECT col2 + - col2 * - 39 AS col1 FROM tab2 AS cor0
----
1600
2320
920

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT 29 + + - MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT 29 + + - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6461
SELECT + - 32 + - + col2 + col0 * - col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT + - 32 + - + col2 + col0 * - col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 7 + 31 + - col2 * + 28 * + 57 AS col2 FROM tab1 AS cor0
----
-108504
-153192
-94140

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL MAX( - 79 ) AS col0 FROM tab0 AS cor0 WHERE ( 33 / + + 84 - - - 11 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL MAX ( - 79 ) AS col0 FROM tab0 AS cor0 WHERE ( 33 / + + 84 - - - 11 IS NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT - COUNT( * ) + - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT - COUNT ( * ) + - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 43 + + + col0 + - - col1 + - + col1 + - - col0 FROM tab0 cor0
----
217
237
73

query I rowsort
SELECT + 61 AS col1 FROM tab0 AS cor0 WHERE col1 IN ( + + col2, + col0, + 89 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( 41 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT DISTINCT - MAX( + - 47 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - MAX ( + - 47 ) AS col1 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE + 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT DISTINCT + col1 - + col0 * 32 + col2 + col1 DIV col1 AS col1 FROM tab1
----
-1521
-2655
-2796

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + col1 - + col0 * 32 + col2 + col1 / col1 AS col1 FROM tab1
----
-1521
-2655
-2796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 col2 FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT col2 DIV + + ( - col2 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6472
SELECT col2 / + + ( - col2 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - ( - + 80 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1120
-3760
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT - 42 + + COUNT( * ) + - + 34 * + 12 AS col2 FROM tab0 AS cor0
----
-447

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT - 42 + + COUNT ( * ) + - + 34 * + 12 AS col2 FROM tab0 AS cor0
----
-447

query I rowsort
SELECT + col1 - - col0 - + col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT + SUM( ALL - col0 ) * + COUNT( * ) + + 86 FROM tab2 AS cor0
----
-469

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT + SUM ( ALL - col0 ) * + COUNT ( * ) + + 86 FROM tab2 AS cor0
----
-469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) + - col0 col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT ALL col1 * - col2 + - col0 + - - 3 * + - col2 + + col1 * + + ( + - col0 ) * CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL NOT BETWEEN 75 AND - col1
----

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL col1 * - col2 + - col0 + - - 3 * + - col2 + + col1 * + + ( + - col0 ) * CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL NOT BETWEEN 75 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT MIN( + 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT MIN ( + 71 ) FROM tab1
----
71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + col0 ) <= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6482
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) * - ( - 78 ) AS col0 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) * - ( - 78 ) AS col0 FROM tab2 AS cor0
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT ALL - COUNT( * ) DIV - + 37 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - COUNT ( * ) / - + 37 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, 86 AS col0 FROM tab2 AS cor0
----
46
86
64
86
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT MAX( 21 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT MAX ( 21 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6486
SELECT DISTINCT - 47 col2, CAST( NULL AS SIGNED ), col1 FROM tab1
----
9 values hashing to f0098ca8bea1a28759534d4547eac945

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6486
SELECT DISTINCT - 47 col2, CAST ( NULL AS INTEGER ), col1 FROM tab1
----
9 values hashing to f0098ca8bea1a28759534d4547eac945

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT DISTINCT + MAX( DISTINCT - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT + MAX ( DISTINCT - col1 ) FROM tab0
----
-1

query II rowsort
SELECT ALL col0, col2 * + col1 + - col1 + 84 - - col2 + col0 AS col1 FROM tab0
----
15
3872
87
370
97
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT DISTINCT + CAST( + 95 AS SIGNED ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT + CAST ( + 95 AS INTEGER ) AS col0 FROM tab0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6490
SELECT - col2, CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-6490
SELECT - col2, CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col2, ( - 12 ) FROM tab0
----
32
-12
32
-12
32
-12

query II rowsort
SELECT 69 AS col0, col0 AS col2 FROM tab0
----
69
15
69
87
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT 75 + - COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT 75 + - COUNT ( * ) FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT - 62 + - COUNT( * ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-6494
SELECT - 62 + - COUNT ( * ) FROM tab0 AS cor0
----
-65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / + col1 + - col2 IS NULL
----

query II rowsort
SELECT DISTINCT 3 + + col2, 45 AS col2 FROM tab2 AS cor0
----
26
45
43
45
61
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6498
SELECT + + MAX( ALL + - col1 ) * - COUNT( ALL - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6498
SELECT + + MAX ( ALL + - col1 ) * - COUNT ( ALL - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 39 * - 3 - + 73 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT col2 - + 36 AS col0 FROM tab1
----
23
32
60

query I rowsort
SELECT col0 + + - 98 FROM tab2
----
-23
-34
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - - col0 * + 81 AS col1, 54 col2 FROM tab2 AS cor0
----
-190026
54
-399168
54
-407025
54

query III rowsort
SELECT ALL * FROM tab1 WHERE - 52 IN ( ( 69 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab2 WHERE 53 / col0 NOT BETWEEN + col0 AND col0 + + ( + 34 )
----
-97
-97
-97

query I rowsort
SELECT 31 AS col0 FROM tab1 WHERE NOT col2 BETWEEN 97 AND - col0 * col0 - ( col0 )
----
31
31
31

query I rowsort
SELECT + col1 FROM tab0 WHERE ( 17 ) > ( 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 * col1 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 * col1 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6508
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 8 - - 58 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT CAST ( NULL AS REAL ) * 8 - - 58 FROM tab2
----
NULL

query I rowsort
SELECT col0 + 35 AS col0 FROM tab1
----
120
126
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6510
SELECT DISTINCT ( - MAX( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT ( - MAX ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT 11 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 23 + 57 FROM tab0
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 10 - + 58 * + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT CAST( NULL AS SIGNED ) - - col2 / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT CAST ( NULL AS INTEGER ) - - col2 / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 + + ( + 77 ) * ( col1 * + 88 + + col0 ) FROM tab2
----
349647
463131
528280

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT 15 + col2 >= 71 / 39
----
0

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT 15 + col2 >= 71 / 39
----
0

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col2 - + col2 = ( + 99 )
----
-59
-68
-96

query I rowsort
SELECT + 17 * + 3 AS col1 FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT COUNT( * ) * + COUNT( * ) - - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6520
SELECT DISTINCT - COUNT( * ) DIV - 89 + 39 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
39

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT - COUNT ( * ) / - 89 + 39 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 71 BETWEEN 64 AND col1 * col1
----

query I rowsort
SELECT 28 - 38 FROM tab2
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6524
SELECT + MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT - MAX( + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6526
SELECT - MAX ( + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT ALL col2 + - CAST( + col2 + col0 * + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6527
SELECT ALL col2 + - CAST ( + col2 + col0 * + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT 54 * col0 AS col0 FROM tab1 cor0
----
2754
4590
4914

query I rowsort
SELECT col2 + col0 AS col0 FROM tab2 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6530
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( - col1 AS SIGNED ) NOT IN ( 72 )
----

skipif mysql # not compatible
query III rowsort label-6530
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( - col1 AS INTEGER ) NOT IN ( 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT 68 + COUNT( * ) AS col1 FROM tab0 WHERE NULL <= NULL
----
68

skipif mysql # not compatible
query I rowsort label-6531
SELECT 68 + COUNT ( * ) AS col1 FROM tab0 WHERE NULL <= NULL
----
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 82 * col2 - - col1 ) BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + col0 * - col1 <> 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT DISTINCT 10 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT 10 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 78 + col0 FROM tab1 AS cor0 WHERE - 23 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT + - 81 * ( 93 ) + - col2 DIV col1 FROM tab2 AS cor0
----
-7533
-7533
-7533

skipif mysql # not compatible
query I rowsort label-6536
SELECT + - 81 * ( 93 ) + - col2 / col1 FROM tab2 AS cor0
----
-7533
-7533
-7533

query I rowsort
SELECT - ( - 61 ) / col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + 22 * 91 FROM tab1 AS cor0
----
1955
1988
1997

query I rowsort
SELECT 7 * col0 + col1 FROM tab1 cor0
----
371
600
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT CAST( NULL AS SIGNED ) * + 30 + - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT CAST ( NULL AS INTEGER ) * + 30 + - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + col2 - ( col1 ) FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT - col0 DIV - 46 + 54 * col1 FROM tab1 AS cor0
----
2539
271
757

skipif mysql # not compatible
query I rowsort label-6543
SELECT - col0 / - 46 + 54 * col1 FROM tab1 AS cor0
----
2539
271
757

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT ALL + + col2 * col0 + - 35 DIV col1 AS col1 FROM tab0 cor0
----
705
869
9568

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + + col2 * col0 + - 35 / col1 AS col1 FROM tab0 cor0
----
705
869
9568

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <= - col0 * col2
----

query I rowsort
SELECT ALL + - 12 + col2 FROM tab2 AS cor0
----
11
28
46

query III rowsort
SELECT * FROM tab2 WHERE 55 * col1 + col0 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col0 FROM tab0 WHERE 79 NOT BETWEEN ( + col1 ) AND ( + 55 )
----
103

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col0 FROM tab0 WHERE 79 NOT BETWEEN ( + col1 ) AND ( + 55 )
----
103

query I rowsort
SELECT ALL + col0 + 64 AS col0 FROM tab0 WHERE - col1 + 43 IS NOT NULL
----
151
161
79

query I rowsort
SELECT DISTINCT col2 * col1 - + ( col1 ) AS col0 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT col1 - - - 62 + + ( 64 ) * - col0 FROM tab0
----
-5609
-6269
-941

query I rowsort
SELECT DISTINCT + col0 / col0 AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( + 2 - - col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT - ( 47 ) - col1 DIV + ( + col0 - + 55 ) FROM tab2
----
-42
-50
-55

skipif mysql # not compatible
query I rowsort label-6554
SELECT - ( 47 ) - col1 / + ( + col0 - + 55 ) FROM tab2
----
-42
-50
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT - COUNT( - col2 ) * 4 AS col1 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - COUNT ( - col2 ) * 4 AS col1 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT col0 - - col1 + col0 AS col1 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6557
SELECT ALL - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT DISTINCT + + col0 * col1 DIV - 10 FROM tab0 AS cor0
----
-121
-182
-9

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + + col0 * col1 / - 10 FROM tab0 AS cor0
----
-121
-182
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT ALL col1 * - + col2 DIV + col2 + + col2 * 38 AS col2 FROM tab2 AS cor0
----
1443
2137
823

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL col1 * - + col2 / + col2 + + col2 * 38 AS col2 FROM tab2 AS cor0
----
1443
2137
823

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 74 - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
27
60
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT - - MIN( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-6563
SELECT - - MIN ( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99

query I rowsort
SELECT - col2 * - - 43 FROM tab2
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT col2 * 4 AS col0 FROM tab1
----
236
272
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col1 * col1 col1 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 96 = NULL
----

query II rowsort
SELECT 88 * - col2, + col0 + + col0 AS col2 FROM tab0
----
-4136
30
-8712
194
-880
174

query I rowsort
SELECT ALL col2 + - 15 + + col0 * + 35 * ( + col1 ) AS col1 FROM tab0
----
3479
42557
63940

query I rowsort
SELECT ( 83 ) * - col1 * + col1 * + 17 - col0 FROM tab0
----
-1508
-622338
-9257586

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT ( NULL ) NOT IN ( - col2 ) )
----

query II rowsort
SELECT ALL + 89 + - - 7 AS col1, col1 FROM tab1 AS cor0
----
96
14
96
47
96
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT + COUNT( * ) + COUNT( * ) * - 21 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-60

skipif mysql # not compatible
query I rowsort label-6573
SELECT + COUNT ( * ) + COUNT ( * ) * - 21 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-60

query I rowsort
SELECT ALL - col2 + ( + col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 77 * 55 + - + col0 AS col2 FROM tab0 AS cor0
----
4138
4148
4220

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 18 <> + col0 * col1 * - col0 + - col0 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT ALL 31 DIV col2 * - col1 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6577
SELECT ALL 31 / col2 * - col1 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT col2 + 86 * col1 AS col0 FROM tab1 WHERE - 54 >= + CAST( + - 51 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6578
SELECT col2 + 86 * col1 AS col0 FROM tab1 WHERE - 54 >= + CAST ( + - 51 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col2 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT CAST( NULL AS SIGNED ) / ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( + col1 ) AND col2 * - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT CAST ( NULL AS INTEGER ) / ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( + col1 ) AND col2 * - + col1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 - + col2 = - col1 AND 63 + col1 IS NULL
----

query I rowsort
SELECT - col0 - 16 + + col1 FROM tab1 cor0
----
-53
-60
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT + col2 - - 84 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
47
56
75

skipif mysql # not compatible
query I rowsort label-6583
SELECT + col2 - - 84 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
47
56
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6585
SELECT DISTINCT + - col0 + 22 + - 10 DIV - + CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab1 cor0
----
-29
-63
-69

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT + - col0 + 22 + - 10 / - + CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab1 cor0
----
-29
-63
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + 77 - + + MIN( ALL col1 ) FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-6586
SELECT + 77 - + + MIN ( ALL col1 ) FROM tab1 cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) + - col1 col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT 71 + + col0 FROM tab2
----
117
135
146

query III rowsort
SELECT * FROM tab0 WHERE 28 IN ( 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT DISTINCT col1 * + CAST( col0 AS SIGNED ) * col0 + + - col2 + + - col1 + + col1 FROM tab0
----
158939
18178
9310

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT col1 * + CAST ( col0 AS INTEGER ) * col0 + + - col2 + + - col1 + + col1 FROM tab0
----
158939
18178
9310

query I rowsort
SELECT - ( + col0 ) + - col0 AS col2 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ALL - col2 - ( + col0 ) * - col0 FROM tab1
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - 5 + + COUNT( * ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 5 + + COUNT ( * ) FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL SUM( 9 ) col1 FROM tab0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6594
SELECT ALL SUM ( 9 ) col1 FROM tab0
----
27

query I rowsort
SELECT + 17 FROM tab1 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - SUM( 41 ) FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-6596
SELECT - SUM ( 41 ) FROM tab0
----
-123

query II rowsort
SELECT - col2, + 61 AS col1 FROM tab0 AS cor0
----
-10
61
-47
61
-99
61

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6598
SELECT - col1 + - + 14 * - col2 AS col1, + CAST( 48 AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6598
SELECT - col1 + - + 14 * - col2 AS col1, + CAST ( 48 AS REAL ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 6 AS col1 FROM tab1 AS cor0 WHERE NULL < - col0 * + col0 * - col0 + + 78
----

query I rowsort
SELECT ALL + - 83 + + ( + 11 ) AS col2 FROM tab1 cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT + - CAST( - - ( - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 col0 FROM tab2 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6603
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( CAST( - 36 AS SIGNED ) AS SIGNED ) + + + col1 NOT BETWEEN ( - col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6603
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( CAST ( - 36 AS INTEGER ) AS INTEGER ) + + + col1 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT - col1 * col2 * + col1 + - - 77 - - - col2 FROM tab2 AS cor0
----
-237123
-260343
-59769

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT - ( + MIN( + + col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6605
SELECT - ( + MIN ( + + col2 ) ) FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) + col2 col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + col1 + - - 65 * + 24 FROM tab2
----
1611
1627
1637

query I rowsort
SELECT + col0 FROM tab0 WHERE - 68 * - + ( - + 55 ) IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL col2 AS col1, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( col0 ) ) BETWEEN col0 + + col0 * + + col0 AND - + 88 + + col1 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6612
SELECT * FROM tab2 AS cor0 WHERE 26 * + CAST( NULL AS SIGNED ) >= + 0 + + + 54 * 29 + col2
----

skipif mysql # not compatible
query III rowsort label-6612
SELECT * FROM tab2 AS cor0 WHERE 26 * + CAST ( NULL AS INTEGER ) >= + 0 + + + 54 * 29 + col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) BETWEEN - col2 + + col0 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE + 7 IS NULL
----

query I rowsort
SELECT ALL - 80 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query II rowsort
SELECT col1 + 54, + col2 AS col1 FROM tab1
----
101
68
59
59
68
96

query I rowsort
SELECT - col2 + col2 * - 29 * - col1 FROM tab1 AS cor0
----
38880
8496
92616

query I rowsort
SELECT + col2 + + + 4 AS col1 FROM tab1 AS cor0
----
100
63
72

query II rowsort
SELECT ALL + col1 * col1 AS col2, 60 FROM tab1 AS cor0
----
196
60
2209
60
25
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL COUNT( * ) + + + 85 * + 96 FROM tab0 AS cor0
----
8163

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL COUNT ( * ) + + + 85 * + 96 FROM tab0 AS cor0
----
8163

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - - 73 * + 70 * + COUNT( ALL col2 ) FROM tab1 cor0
----
15330

skipif mysql # not compatible
query I rowsort label-6621
SELECT - - 73 * + 70 * + COUNT ( ALL col2 ) FROM tab1 cor0
----
15330

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
30

query I rowsort
SELECT DISTINCT + col0 + + 43 * + 59 FROM tab2 AS cor0
----
2583
2601
2612

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT DISTINCT ( + - 38 ) - - col1 - + col1 * - 14 * 15 + - 22 DIV + + col0 FROM tab0 AS cor0
----
17052
173
4393

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT ( + - 38 ) - - col1 - + col1 * - 14 * 15 + - 22 / + + col0 FROM tab0 AS cor0
----
17052
173
4393

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT ALL col0 DIV 47 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL col0 / 47 AS col0 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE 4 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6627
SELECT + MAX( ALL + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT + MAX ( ALL + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0
----
NULL

query II rowsort
SELECT - col0, col1 * - - col0 AS col0 FROM tab2
----
-46
2346
-64
4928
-75
5025

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6629
SELECT - + CAST( + col1 AS SIGNED ) + - ( - - CAST( NULL AS DECIMAL ) ) * + 98 + - col0 col2 FROM tab0 AS cor0 WHERE NOT col1 = + CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6629
SELECT - + CAST ( + col1 AS INTEGER ) + - ( - - CAST ( NULL AS REAL ) ) * + 98 + - col0 col2 FROM tab0 AS cor0 WHERE NOT col1 = + CAST ( NULL AS INTEGER ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT MAX( - col2 ) FROM tab1 AS cor0 WHERE NOT col1 - + col0 NOT BETWEEN col0 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT MAX ( - col2 ) FROM tab1 AS cor0 WHERE NOT col1 - + col0 NOT BETWEEN col0 AND col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6632
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-6632
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * + - col1 NOT BETWEEN - col1 * + col0 * ( + col1 ) * 68 + + 52 / col0 * - col2 * 31 AND ( + 85 )
----

query II rowsort
SELECT + col2 AS col1, + col1 + - - col1 FROM tab0 AS cor0
----
10
42
47
162
99
2

query I rowsort
SELECT DISTINCT - col2 / + + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL COUNT( ALL + col2 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6636
SELECT ALL COUNT ( ALL + col2 ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col1 + - 23 AS col0 FROM tab2 AS cor0
----
28
44
54

query II rowsort
SELECT DISTINCT col0, + 51 + col0 AS col1 FROM tab0 AS cor0
----
15
66
87
138
97
148

query I rowsort
SELECT DISTINCT 74 + 19 FROM tab0
----
93

query III rowsort
SELECT * FROM tab0 WHERE ( ( NOT + 39 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * + - ( + + 68 ) col2 FROM tab2
----
4692

query I rowsort
SELECT col1 * ( col1 ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
196
2209
25

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - 96 + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6644
SELECT - 79 DIV COUNT( * ) * - COUNT( * ) + + 50 FROM tab2 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-6644
SELECT - 79 / COUNT ( * ) * - COUNT ( * ) + + 50 FROM tab2 AS cor0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT - MIN( col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6645
SELECT - MIN ( col0 ) AS col2 FROM tab1
----
-51

query II rowsort
SELECT 19, 55 * - - col2 * + 68 AS col0 FROM tab0
----
19
175780
19
370260
19
37400

query I rowsort
SELECT ALL ( col0 ) * 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT DISTINCT - 70 DIV + - col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - 70 / + - col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL + col0 * + 39 * - 14 * + - 90 AS col2 FROM tab2 cor0
----
2260440
3144960
3685500

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - MIN( + + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL < + + col2 - + 50 - + col1 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT - MIN ( + + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL < + + col2 - + 50 - + col1 * col2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT + COUNT( CAST( col1 AS SIGNED ) ) * - 47 FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6652
SELECT + COUNT ( CAST ( col1 AS INTEGER ) ) * - 47 FROM tab1 cor0
----
-141

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, col2, 10 * + col2 - - col1 + + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT DISTINCT CAST( + - 22 AS SIGNED ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT CAST ( + - 22 AS INTEGER ) FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT DISTINCT + + ( COUNT( * ) ) DIV - MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT + + ( COUNT ( * ) ) / - MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0 AS col1, col1 - - - col0 AS col0 FROM tab2 AS cor0
----
46
5
64
13
75
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col1 FROM tab2
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6659
SELECT DISTINCT * FROM tab1 WHERE + - 94 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6659
SELECT DISTINCT * FROM tab1 WHERE + - 94 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6660
SELECT + CAST( col1 AS SIGNED ) AS col2, - ( + col2 ) FROM tab0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
query II rowsort label-6660
SELECT + CAST ( col1 AS INTEGER ) AS col2, - ( + col2 ) FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6661
SELECT ALL - MAX( DISTINCT - col2 ), + COUNT( * ) AS col2 FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-6661
SELECT ALL - MAX ( DISTINCT - col2 ), + COUNT ( * ) AS col2 FROM tab0
----
10
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT CAST( - SUM( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6662
SELECT CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL + - COUNT( 96 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + - COUNT ( 96 ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 - - + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 10 + - - 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT col2 * + CAST( + col1 AS SIGNED ) * col0 * + col1 * + - col1 col1 FROM tab0
----
-374665905
-8057070
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6667
SELECT col2 * + CAST ( + col1 AS INTEGER ) * col0 * + col1 * + - col1 col1 FROM tab0
----
-374665905
-8057070
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT DISTINCT - CAST( + 21 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - CAST ( + 21 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT DISTINCT - 27 + ( - - 89 ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
62
3

skipif mysql # not compatible
query II rowsort label-6669
SELECT DISTINCT - 27 + ( - - 89 ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
62
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT - MAX( - - ( + - col1 ) ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6670
SELECT - MAX ( - - ( + - col1 ) ) FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT CAST( col0 AS SIGNED ) * + col1 / - + 22 + + 44 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6671
SELECT CAST ( col0 AS INTEGER ) * + col1 / - + 22 + + 44 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 24 + 75 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT + col1 + - - 78 FROM tab2 AS cor0
----
129
145
155

query II rowsort
SELECT ALL - ( 8 ) + col0 * + col1 * + 9 AS col2, col0 AS col1 FROM tab2 AS cor0
----
21106
46
44344
64
45217
75

query I rowsort
SELECT DISTINCT + + 97 + + 97 FROM tab2 AS cor0
----
194

query I rowsort
SELECT ALL + 32 + col1 + - - col2 * + col0 - + 51 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
1090
2618
4398

query I rowsort
SELECT + 12 + + 71 + + col1 * col0 * - col0 + col1 FROM tab1 AS cor0
----
-36037
-36317
-389077

query I rowsort
SELECT - + 84 + col1 FROM tab0 cor0
----
-3
-63
-83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + + - 15 FROM tab1
----
-111
-74
-83

query I rowsort
SELECT 83 AS col1 FROM tab1 WHERE 12 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT DISTINCT col2 * - 97 * col1 AS col2 FROM tab1
----
-130368
-28615
-310012

onlyif mysql # aggregate syntax: 
query II rowsort label-6684
SELECT DISTINCT + 47 col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
47
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6684
SELECT DISTINCT + 47 col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
47
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT - COUNT( ALL + - 89 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6685
SELECT - COUNT ( ALL + - 89 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 81 + col0 FROM tab2
----
127
145
156

query I rowsort
SELECT - 63 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST( + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6688
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT - 14 * + COUNT( * ) AS col2 FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6689
SELECT - 14 * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT ALL + - COUNT( ALL - col0 ) DIV + + SUM( ALL col2 ) * + + 10 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + - COUNT ( ALL - col0 ) / + + SUM ( ALL col2 ) * + + 10 AS col2 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 91 col0 FROM tab0 AS cor0
----
1365
7917
8827

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + ( + ( + col1 ) ) / + 31 + + 25
----

query I rowsort
SELECT ( + 8 ) FROM tab1
----
8
8
8

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) > 86
----

query II rowsort
SELECT 35 AS col0, 71 + col2 FROM tab1
----
35
130
35
139
35
167

query I rowsort
SELECT DISTINCT - ( - 4 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT - MAX( ALL - col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - MAX ( ALL - col2 ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ( MIN( - 88 ) ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-6698
SELECT ( MIN ( - 88 ) ) FROM tab2
----
-88

query III rowsort
SELECT * FROM tab2 WHERE NOT - 21 * col1 <> col2 - + ( + + 78 ) / - 25
----

query I rowsort
SELECT DISTINCT col2 * + 31 AS col2 FROM tab2
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT - - ( + ( - ( MIN( - col1 ) ) ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6701
SELECT - - ( + ( - ( MIN ( - col1 ) ) ) ) FROM tab1 AS cor0
----
47

query II rowsort
SELECT ALL + + col2 AS col0, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT + col0 - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 31 + 33 IS NULL
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * col2 col2 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT 94 + - + 50 DIV + + col2 AS col1 FROM tab2
----
92
93
94

skipif mysql # not compatible
query I rowsort label-6705
SELECT 94 + - + 50 / + + col2 AS col1 FROM tab2
----
92
93
94

query II rowsort
SELECT col1 + + col2 AS col1, + col0 * col2 FROM tab0
----
100
9603
128
705
31
870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6707
SELECT 42 * + CAST( - CAST( + COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col1, + COUNT( * ) AS col2 FROM tab0
----
-126
3

skipif mysql # not compatible
query II rowsort label-6707
SELECT 42 * + CAST ( - CAST ( + COUNT ( * ) AS REAL ) AS INTEGER ) AS col1, + COUNT ( * ) AS col2 FROM tab0
----
-126
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + 60 NOT BETWEEN + - col2 AND + + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 13 * - 13 * col0 AS col0 FROM tab0 AS cor0 WHERE col0 + - col1 IS NOT NULL
----
-14703
-16393
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT + COUNT( * ) col2 FROM tab2 WHERE NULL <= + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6711
SELECT + COUNT ( * ) col2 FROM tab2 WHERE NULL <= + col2
----
0

query I rowsort
SELECT DISTINCT - 69 - col1 FROM tab1
----
-116
-74
-83

query I rowsort
SELECT + col0 + col1 + + col0 AS col0 FROM tab1
----
116
175
229

query I rowsort
SELECT + col1 + col1 * - col2 AS col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT ALL - col2 - 93 FROM tab0
----
-103
-140
-192

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 69 + + - col2 NOT IN ( - + 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT MIN( DISTINCT + col2 ) + + + 57 col2 FROM tab1
----
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6717
SELECT MIN ( DISTINCT + col2 ) + + + 57 col2 FROM tab1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL - MAX( ALL + col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL - MAX ( ALL + col0 ) AS col2 FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT ( + col2 ) + + CAST( - + col2 AS SIGNED ) * - col1 FROM tab1 cor0
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-6719
SELECT ( + col2 ) + + CAST ( - + col2 AS INTEGER ) * - col1 FROM tab1 cor0
----
1440
3264
354

query II rowsort
SELECT DISTINCT col1 + ( - - col0 ) AS col2, col1 * - col0 AS col2 FROM tab1 AS cor0
----
138
-4277
65
-714
90
-425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6721
SELECT - SUM( - col1 ) DIV - + 29 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6721
SELECT - SUM ( - col1 ) / - + 29 FROM tab1 cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6722
SELECT CAST( + + 52 AS SIGNED ) FROM tab1
----
52
52
52

skipif mysql # not compatible
query I rowsort label-6722
SELECT CAST ( + + 52 AS INTEGER ) FROM tab1
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT MAX( - + ( - + ( 93 ) ) ) col0 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6723
SELECT MAX ( - + ( - + ( 93 ) ) ) col0 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6724
SELECT 29, - COUNT( - 86 ) AS col1 FROM tab2
----
29
-3

skipif mysql # not compatible
query II rowsort label-6724
SELECT 29, - COUNT ( - 86 ) AS col1 FROM tab2
----
29
-3

query I rowsort
SELECT 96 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 + - - col0 + - - col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 + - - col0 + - - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6728
SELECT DISTINCT 23 col2, + MIN( + - ( + col2 ) ) FROM tab1 AS cor0
----
23
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6728
SELECT DISTINCT 23 col2, + MIN ( + - ( + col2 ) ) FROM tab1 AS cor0
----
23
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT + ( + + COUNT( - 16 ) ) FROM tab1 AS cor0 WHERE NULL <> ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT + ( + + COUNT ( - 16 ) ) FROM tab1 AS cor0 WHERE NULL <> ( + col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT col0 * col1 + + + col2 AS col1 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6732
SELECT DISTINCT 77 * CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT 77 * CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT - COUNT( * ) * + MIN( + 84 ) FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-6733
SELECT - COUNT ( * ) * + MIN ( + 84 ) FROM tab1 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT - - COUNT( * ) * + 18 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6734
SELECT - - COUNT ( * ) * + 18 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + 67 * + 61 * + ( col2 ) FROM tab2
----
163480
237046
94001

query I rowsort
SELECT ALL ( - 39 ) AS col1 FROM tab0
----
-39
-39
-39

query I rowsort
SELECT ALL - - 30 + 31 + - ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 28 NOT IN ( + - col0, 92 )
----

query I rowsort
SELECT DISTINCT - col0 + + + ( + - 77 ) AS col2 FROM tab0 AS cor0
----
-164
-174
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL ( + 12 ) + + + COUNT( * ) * MAX( DISTINCT 46 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL ( + 12 ) + + + COUNT ( * ) * MAX ( DISTINCT 46 ) FROM tab2
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT ALL 5 DIV - - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL 5 / - - col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT + MAX( + 13 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT + MAX ( + 13 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT 84 + + col1 FROM tab1 cor0
----
131
89
98

query I rowsort
SELECT - 55 + + + col0 AS col0 FROM tab1 AS cor0
----
-4
30
36

query I rowsort
SELECT DISTINCT + + col1 + - - 53 AS col2 FROM tab0 AS cor0
----
134
54
74

query I rowsort
SELECT DISTINCT - ( + 48 ) + - col2 AS col2 FROM tab2 AS cor0
----
-106
-71
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - - MIN( DISTINCT - col1 ) + MIN( ALL + col0 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6746
SELECT - - MIN ( DISTINCT - col1 ) + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT + 99 + + - 44 AS col1 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT - 30 + + + 53 - - COUNT( DISTINCT + + ( 53 ) ) * - COUNT( * ) + + - 15 col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6748
SELECT DISTINCT - 30 + + + 53 - - COUNT ( DISTINCT + + ( 53 ) ) * - COUNT ( * ) + + - 15 col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6749
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / - col2 * 35 = + CAST( - + 54 AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-6749
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / - col2 * 35 = + CAST ( - + 54 AS INTEGER ) * + col2
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT - ( - + col1 ) - + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT MAX( - - col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6751
SELECT MAX ( - - col1 ) AS col0 FROM tab1
----
47

query III rowsort
SELECT * FROM tab2 WHERE - 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6753
SELECT CAST( NULL AS SIGNED ) * - col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6753
SELECT CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 9 - - col1 AS col0 FROM tab0 AS cor0
----
-8
12
72

query I rowsort
SELECT DISTINCT 89 * - - 41 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 39 * - + col1 + + col2 FROM tab0 AS cor0
----
-3112
-809
60

query I rowsort
SELECT col0 - - + col0 * - - 99 AS col2 FROM tab2 AS cor0
----
4600
6400
7500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL CAST( - + ( - col0 ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT col0 * - col0 = - col2
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6758
SELECT ALL CAST ( - + ( - col0 ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT col0 * - col0 = - col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + MAX( + col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6759
SELECT + MAX ( + col2 ) col0 FROM tab0
----
99

query I rowsort
SELECT 84 * + col1 AS col1 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT + col1 * + 20 FROM tab2 AS cor0
----
1020
1340
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT COUNT( * ) * + ( + + 40 ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6762
SELECT COUNT ( * ) * + ( + + 40 ) FROM tab0 AS cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6763
SELECT * FROM tab0 AS cor0 WHERE NOT 13 = ( + - CAST( + 24 AS SIGNED ) + - + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6763
SELECT * FROM tab0 AS cor0 WHERE NOT 13 = ( + - CAST ( + 24 AS INTEGER ) + - + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT ALL col2 DIV 47 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL col2 / 47 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6765
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - SUM( + + ( + ( 5 ) ) ) AS col1 FROM tab2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - SUM ( + + ( + ( 5 ) ) ) AS col1 FROM tab2
----
NULL
-15

query II rowsort
SELECT ALL + col1 AS col0, + col2 * col0 AS col0 FROM tab1
----
14
4896
47
6188
5
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21, - col2 col2 FROM tab0
----
21
-10
21
-47
21
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6768
SELECT DISTINCT + 7 * CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT + 7 * CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 48 AS col0, - col0 AS col1 FROM tab2
----
-48
-46
-48
-64
-48
-75

query I rowsort
SELECT + + col0 AS col1 FROM tab2 WHERE NOT + 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * - - ( + 88 ) col0 FROM tab0
----
-5808
-5808
-5808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, + col2 - + - 66 col1 FROM tab0
----
1
165
21
76
81
113

query II rowsort
SELECT ALL - 30 AS col2, - 33 AS col1 FROM tab2
----
-30
-33
-30
-33
-30
-33

query II rowsort
SELECT DISTINCT - col0 AS col0, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT + - 35 DIV + 58 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6776
SELECT + - 35 / + 58 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - ( - 97 ) ) FROM tab1 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6778
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + col0 * + ( 94 ) AS col2 FROM tab2
----
4324
6016
7050

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL - COUNT( * ) * + COUNT( * ) * + COUNT( - 43 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * + COUNT ( - 43 ) FROM tab1 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 10 * 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + COUNT( DISTINCT + - col1 ) + + 7 AS col0 FROM tab2 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-6783
SELECT + COUNT ( DISTINCT + - col1 ) + + 7 AS col0 FROM tab2 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
10

query I rowsort
SELECT 44 + - - col2 AS col0 FROM tab2
----
102
67
84

query I rowsort
SELECT - col2 + + - col0 * + - 23 + + col1 + + - ( - - ( 23 ) ) * 34 + col0 * + 34 FROM tab2
----
1868
2903
3502

query I rowsort
SELECT DISTINCT col1 - 19 FROM tab0
----
-18
2
62

query I rowsort
SELECT + col0 + + 73 FROM tab0
----
160
170
88

query I rowsort
SELECT ALL col1 - + - 71 + + col0 * col0 * + + col1 AS col1 FROM tab2
----
108038
315540
377013

query I rowsort
SELECT DISTINCT - col2 - col1 * 80 + - col0 AS col0 FROM tab2
----
-4149
-5493
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT DISTINCT + SUM( DISTINCT - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT + SUM ( DISTINCT - col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL - 47 - - col1 AS col2 FROM tab2
----
20
30
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6792
SELECT ( + - COUNT( DISTINCT + - CAST( - + 82 AS SIGNED ) ) ) DIV COUNT( * ) + 50 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-6792
SELECT ( + - COUNT ( DISTINCT + - CAST ( - + 82 AS INTEGER ) ) ) / COUNT ( * ) + 50 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL - ( ( + 22 ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL - ( ( + 22 ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + 57 AS col0, col0 FROM tab0 cor0
----
57
15
57
87
57
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) col1 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL + COUNT( * ) + + SUM( - col0 ) FROM tab1 AS cor0 WHERE + ( ( + 27 ) ) + - col0 - + - ( + col2 ) + - col2 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + COUNT ( * ) + + SUM ( - col0 ) FROM tab1 AS cor0 WHERE + ( ( + 27 ) ) + - col0 - + - ( + col2 ) + - col2 * col2 IS NULL
----
NULL

query I rowsort
SELECT - col2 * - 44 FROM tab0 cor0
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT - 18 * SUM( DISTINCT + 86 ) * - + MAX( DISTINCT 85 ) col2 FROM tab2 AS cor0
----
131580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6799
SELECT DISTINCT - 18 * SUM ( DISTINCT + 86 ) * - + MAX ( DISTINCT 85 ) col2 FROM tab2 AS cor0
----
131580

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL - + ( + 77 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - + ( + 77 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT DISTINCT - 89 * CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT - 89 * CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col1 * - - col0 + + 70 FROM tab1 AS cor0
----
-355
-4207
-644

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6803
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6803
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT 46 * + col1 + + + 77 - + col0 FROM tab2
----
2377
3084
3555

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( - + 69 ) AS col1 FROM tab1
----
-69

query III rowsort
SELECT * FROM tab2 WHERE col0 * col1 * - col1 >= ( NULL )
----

query II rowsort
SELECT ALL col0 AS col0, col0 AS col0 FROM tab0 cor0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > col0
----
51
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6810
SELECT DISTINCT COUNT( * ) + - 53 DIV + - COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT COUNT ( * ) + - 53 / + - COUNT ( * ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT ( + - col0 ) FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 77 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT + CAST( NULL AS SIGNED ) + + 61 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT + CAST ( NULL AS INTEGER ) + + 61 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + + 64 * + col0 AS col0 FROM tab0 AS cor0
----
-14400
-484416
-602176

query I rowsort
SELECT + + ( - col2 ) + + 95 * + col2 + - + col0 * + + 31 + - + 8 FROM tab1 AS cor0
----
2903
3563
7435

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( + - ( - 29 ) IS NOT NULL )
----
14
47
5

query II rowsort
SELECT + + ( + + col2 ), - col2 AS col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-3

query I rowsort
SELECT + - ( - 71 ) FROM tab2 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT - 90 + - SUM( + - 88 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - 90 + - SUM ( + - 88 ) FROM tab1 AS cor0
----
174

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 68 + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( 5 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * - 73 IS NULL
----

query I rowsort
SELECT DISTINCT 7 * 32 - col2 FROM tab1
----
128
156
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT MIN( - col0 ) + + COUNT( * ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT MIN ( - col0 ) + + COUNT ( * ) AS col1 FROM tab1
----
-88

query I rowsort
SELECT + - col2 AS col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - ( - + MAX( DISTINCT col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - ( - + MAX ( DISTINCT col2 ) ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) <> + 11
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6829
SELECT + ( - + 57 ), - MIN( + col0 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-6829
SELECT + ( - + 57 ), - MIN ( + col0 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6830
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col2, + 39 FROM tab1 AS cor0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-6830
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col2, + 39 FROM tab1 AS cor0
----
NULL
39

query I rowsort
SELECT - 44 * 62 * 68 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-185504
-185504
-185504

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT - COUNT( DISTINCT - 97 ) * - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6832
SELECT - COUNT ( DISTINCT - 97 ) * - COUNT ( * ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 FROM tab1
----
-51
51
-85
85
-91
91

query II rowsort
SELECT 15 AS col1, 17 AS col1 FROM tab0
----
15
17
15
17
15
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL + - SUM( 43 ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL + - SUM ( 43 ) FROM tab1 AS cor0
----
-129

query II rowsort
SELECT - 15, + col0 FROM tab1 AS cor0
----
-15
51
-15
85
-15
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + 14 * - col1 + - col2 - - - 73 * - - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + 14 * - col1 + - col2 - - - 73 * - - col2 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 41 + + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + col1 + 58 + - 24 + + 61 FROM tab2 AS cor0
----
-1078
-2985
-3791

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT + SUM( + ( col1 ) ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6840
SELECT + SUM ( + ( col1 ) ) AS col1 FROM tab0
----
103

query I rowsort
SELECT - 29 * - + 50 FROM tab2
----
1450
1450
1450

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT col2 DIV + ( ( - 7 ) ) AS col1 FROM tab2
----
-3
-5
-8

skipif mysql # not compatible
query I rowsort label-6842
SELECT col2 / + ( ( - 7 ) ) AS col1 FROM tab2
----
-3
-5
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT - MAX( + ( + + col1 ) ) * - MAX( - CAST( - 10 AS SIGNED ) ) FROM tab0
----
810

skipif mysql # not compatible
query I rowsort label-6843
SELECT - MAX ( + ( + + col1 ) ) * - MAX ( - CAST ( - 10 AS INTEGER ) ) FROM tab0
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT - MIN( - 20 ) AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - MIN ( - 20 ) AS col2 FROM tab2
----
20

query I rowsort
SELECT DISTINCT + col2 * + - 68 FROM tab1
----
-4012
-4624
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT - COUNT( * ) * - 82 AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-6846
SELECT - COUNT ( * ) * - 82 AS col2 FROM tab0
----
246

query I rowsort
SELECT + col1 + ( + col2 ) AS col2 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 WHERE + + 44 IS NULL
----

query I rowsort
SELECT + col0 + 42 + - 17 AS col2 FROM tab0 cor0
----
112
122
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT 68 * + col2 * + + col1 AS col2 FROM tab2
----
209440
264248
79764

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT SUM( ALL + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6852
SELECT SUM ( ALL + col2 ) AS col1 FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6853
SELECT ( - CAST( NULL AS SIGNED ) ) * - - MIN( DISTINCT - + 34 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT ( - CAST ( NULL AS INTEGER ) ) * - - MIN ( DISTINCT - + 34 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - 11 - - - COUNT( * ) - + COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-6854
SELECT - 11 - - - COUNT ( * ) - + COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 39 col2 FROM tab2 AS cor0
----
-103
-114
-85

query I rowsort
SELECT DISTINCT + - 59 + - col1 * 30 AS col1 FROM tab0 AS cor0
----
-2489
-689
-89

query I rowsort
SELECT + - col1 - - + col0 + + col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + ( + 11 ) AS col0 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT - COUNT( - + col1 ) * + - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT - COUNT ( - + col1 ) * + - COUNT ( * ) FROM tab0
----
9

query II rowsort
SELECT ALL col2, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6862
SELECT + 98 AS col0, - ( + COUNT( * ) ) AS col2 FROM tab0
----
98
-3

skipif mysql # not compatible
query II rowsort label-6862
SELECT + 98 AS col0, - ( + COUNT ( * ) ) AS col2 FROM tab0
----
98
-3

query I rowsort
SELECT ALL - 16 AS col1 FROM tab1 WHERE ( NOT 29 IS NOT NULL )
----

query I rowsort
SELECT ALL - + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT - col0 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + + 40 AS col2 FROM tab0 AS cor0 WHERE NOT + 34 / + - col0 * + + col2 >= + col2
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT + - col0 AS col2 FROM tab0 WHERE NOT - ( - + col2 ) <> + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6867
SELECT + - col0 AS col2 FROM tab0 WHERE NOT - ( - + col2 ) <> + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + 44 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT + 22 * - + col0 + - + col2 + - - col0 FROM tab0 AS cor0
----
-1837
-2136
-362

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT DISTINCT + 90 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 81 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT + 90 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 81 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + COUNT( * ) + MIN( ALL + ( - + 32 ) ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6871
SELECT + COUNT ( * ) + MIN ( ALL + ( - + 32 ) ) FROM tab2 AS cor0
----
-29

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL ( - + COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6873
SELECT ALL ( - + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) FROM tab0 WHERE NOT - - 63 <= col1
----
-1
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col0 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6877
SELECT + col2, + CAST( + col2 AS SIGNED ) + col2 + + col2 + + + col0 * + col1 FROM tab2
----
23
2415
40
5048
58
5199

skipif mysql # not compatible
query II rowsort label-6877
SELECT + col2, + CAST ( + col2 AS INTEGER ) + col2 + + col2 + + + col0 * + col1 FROM tab2
----
23
2415
40
5048
58
5199

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL - MIN( 53 ) AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - MIN ( 53 ) AS col2 FROM tab1
----
-53

query II rowsort
SELECT - + 48, col1 FROM tab0 AS cor0
----
-48
1
-48
21
-48
81

query I rowsort
SELECT DISTINCT + ( - 92 ) + - + col2 * - + col2 FROM tab2 cor0
----
1508
3272
437

query I rowsort
SELECT 0 * col2 - + col0 + + 0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6882
SELECT DISTINCT + 74 * - SUM( - + 96 ) + + - MIN( + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT + 74 * - SUM ( - + 96 ) + + - MIN ( + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT 0 - + - 1 + CAST( + 16 AS SIGNED ) FROM tab0 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6883
SELECT 0 - + - 1 + CAST ( + 16 AS INTEGER ) FROM tab0 cor0
----
17
17
17

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE + 24 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6885
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + + 4 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6887
SELECT ALL * FROM tab1 WHERE - - CAST( 45 AS SIGNED ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6887
SELECT ALL * FROM tab1 WHERE - - CAST ( 45 AS INTEGER ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - - MIN( ALL 50 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
50

skipif mysql # not compatible
query I rowsort label-6888
SELECT - - MIN ( ALL 50 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT - 84 * - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT - 84 * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + + 7 * - - 80 + - + ( + col0 ) + col2 * + + ( 35 ) * - ( - - 38 ) NOT BETWEEN NULL AND + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 60 col2 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6892
SELECT - COUNT( * ) * - 42 DIV + + COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6892
SELECT - COUNT ( * ) * - 42 / + + COUNT ( * ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT + + 73 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT SUM( + 64 ) FROM tab1 AS cor0 WHERE NOT 44 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT SUM ( + 64 ) FROM tab1 AS cor0 WHERE NOT 44 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT 43 * + - col0 * col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 * + 11 AND - col1 * + 85 * - 58 + + - ( col2 ) - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6895
SELECT 43 * + - col0 * col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 * + 11 AND - col1 * + 85 * - 58 + + - ( col2 ) - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT col1 DIV + + col2 * - - 26 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6896
SELECT col1 / + + col2 * - - 26 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 23 * + 0 * - 49 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 * - 45 FROM tab2
----
1035
1800
2610

query I rowsort
SELECT ALL col2 * ( col2 ) AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT - ( - 8 ) * - - 19 FROM tab2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT 50 * - + COUNT( * ) AS col0 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT 50 * - + COUNT ( * ) AS col0 FROM tab2
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT col2 * - 27 + + col0 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT col2 * - 27 + + col0 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT - SUM( + + ( + - 18 ) ) FROM tab2 WHERE NOT + col2 IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-6903
SELECT - SUM ( + + ( + - 18 ) ) FROM tab2 WHERE NOT + col2 IS NULL
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT DISTINCT CAST( + - ( + + col0 ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT CAST ( + - ( + + col0 ) AS INTEGER ) FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col1, + col2 * + col2 * col1 col2 FROM tab1 AS cor0
----
51
129024
85
17405
91
217328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT - + CAST( NULL AS SIGNED ) * + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT - + CAST ( NULL AS INTEGER ) * + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 46 col0 FROM tab1 AS cor0
----
51
60
93

query I rowsort
SELECT + - 95 AS col1 FROM tab2 AS cor0 WHERE NULL > + col2
----

query II rowsort
SELECT ALL - col1 + - col2 AS col0, - col2 AS col2 FROM tab1
----
-110
-96
-115
-68
-64
-59

query I rowsort
SELECT ALL + col0 + - col1 * - + 5 AS col1 FROM tab1
----
110
121
326

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT ( col0 ) DIV 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT ( col0 ) / 89 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT - col2 * col0 + + col2 DIV + - col1 AS col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6912
SELECT - col2 * col0 + + col2 / + - col1 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT ( - 18 ) - - 97 FROM tab1
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6914
SELECT col1 * - + 94 + CAST( NULL AS DECIMAL ) + - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT col1 * - + 94 + CAST ( NULL AS REAL ) + - + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT ALL - CAST( NULL AS SIGNED ) + - - ( + 37 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * col1 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - CAST ( NULL AS INTEGER ) + - - ( + 37 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6916
SELECT DISTINCT + col2 + + col2 * - + col0 AS col1, col0 * - col2 * + col2 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-1035
NULL
-2520
NULL
-4292
NULL

skipif mysql # not compatible
query II rowsort label-6916
SELECT DISTINCT + col2 + + col2 * - + col0 AS col1, col0 * - col2 * + col2 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-1035
NULL
-2520
NULL
-4292
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6917
SELECT DISTINCT col1 - + col2 + + col2 AS col1, - 1 * - CAST( - 18 AS SIGNED ) FROM tab2
----
51
-18
67
-18
77
-18

skipif mysql # not compatible
query II rowsort label-6917
SELECT DISTINCT col1 - + col2 + + col2 AS col1, - 1 * - CAST ( - 18 AS INTEGER ) FROM tab2
----
51
-18
67
-18
77
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT COUNT( + + ( - 49 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT COUNT ( + + ( - 49 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - ( - + 85 ) FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6920
SELECT 95 DIV COUNT( * ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6920
SELECT 95 / COUNT ( * ) FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6921
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 BETWEEN CAST( + - col2 AS SIGNED ) AND - + col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6921
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 BETWEEN CAST ( + - col2 AS INTEGER ) AND - + col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT COUNT( * ) * COUNT( * ) * + + 93 FROM tab1 AS cor0
----
837

skipif mysql # not compatible
query I rowsort label-6923
SELECT COUNT ( * ) * COUNT ( * ) * + + 93 FROM tab1 AS cor0
----
837

query I rowsort
SELECT DISTINCT - 9 * 15 AS col0 FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT MAX( + 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT MAX ( + 79 ) FROM tab0
----
79

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( 90 )
----

query I rowsort
SELECT col0 * - 50 AS col0 FROM tab1
----
-2550
-4250
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL + MIN( DISTINCT + - col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6928
SELECT ALL + MIN ( DISTINCT + - col2 ) col0 FROM tab1
----
-96

query I rowsort
SELECT + col1 * - + 42 * col2 * - - ( - 22 ) FROM tab2 cor0
----
1083852
2845920
3590664

query I rowsort
SELECT - col1 * 38 + - - 66 AS col2 FROM tab0 AS cor0
----
-3012
-732
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT + CAST( + col2 AS SIGNED ) * ( - + col1 ) FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6931
SELECT + CAST ( + col2 AS INTEGER ) * ( - + col1 ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT + col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT + col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL + SUM( ALL + 35 ) + SUM( + + ( - 95 ) ) + + + 10 AS col2 FROM tab2 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + SUM ( ALL + 35 ) + SUM ( + + ( - 95 ) ) + + + 10 AS col2 FROM tab2 AS cor0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT - - 95 + - COUNT( * ) + + - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6934
SELECT - - 95 + - COUNT ( * ) + + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
83

query I rowsort
SELECT + 30 + + 44 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT DISTINCT col1 + + 10 + col1 * + - col2 * ( + - col0 ) + - + CAST( col0 AS SIGNED ) + - - 85 * - - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
19999
64066
9602

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT col1 + + 10 + col1 * + - col2 * ( + - col0 ) + - + CAST ( col0 AS INTEGER ) + - - 85 * - - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
19999
64066
9602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6937
SELECT DISTINCT 35 + + - col0 + col2, - 92 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
12
NULL
80
NULL
9
NULL

skipif mysql # not compatible
query II rowsort label-6937
SELECT DISTINCT 35 + + - col0 + col2, - 92 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
12
NULL
80
NULL
9
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + col0 + - + col0 * + col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL + SUM( ALL + col2 ) + + - 30 AS col0 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL + SUM ( ALL + col2 ) + + - 30 AS col0 FROM tab0 AS cor0
----
126

query I rowsort
SELECT DISTINCT + 51 + 96 - - + col1 FROM tab2 AS cor0
----
198
214
224

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL - ( + - 41 ) * COUNT( * ) * + COUNT( * ) - + COUNT( * ) col0 FROM tab1
----
366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6941
SELECT ALL - ( + - 41 ) * COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) col0 FROM tab1
----
366

query I rowsort
SELECT DISTINCT 78 + + 44 FROM tab2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT + MIN( col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + MIN ( col2 ) AS col1 FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 WHERE - + ( + ( - 50 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * col2 - - 68 * col0 - + col2 FROM tab0
----
4780
6116
6596

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col2 * + col2 / 9 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - 21 / - col1 IS NULL
----
14
47
5

query I rowsort
SELECT + col2 - 66 * 15 AS col2 FROM tab2 AS cor0
----
-932
-950
-967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT - - col2 / CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT - - col2 / CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT + COUNT( * ) - + 76 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6951
SELECT + COUNT ( * ) - + 76 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT + col0 - - 60 AS col2 FROM tab0 AS cor0
----
147
157
75

query I rowsort
SELECT DISTINCT + col0 * + col0 + + + col0 / - - col0 / + - 23 FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6954
SELECT DISTINCT - - COUNT( * ) AS col0, 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
8

skipif mysql # not compatible
query II rowsort label-6954
SELECT DISTINCT - - COUNT ( * ) AS col0, 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
8

query I rowsort
SELECT ALL + 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query II rowsort
SELECT col2 * - + 68, + col0 AS col0 FROM tab1
----
-4012
85
-4624
91
-6528
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 8 + + + col0 + + - 43 * + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT + + ( + COUNT( * ) ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT + + ( + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6959
SELECT DISTINCT col0 DIV - 51 AS col2, + col2 - - 68 AS col2 FROM tab2 AS cor0
----
-1
108
-1
126
0
91

skipif mysql # not compatible
query II rowsort label-6959
SELECT DISTINCT col0 / - 51 AS col2, + col2 - - 68 AS col2 FROM tab2 AS cor0
----
-1
108
-1
126
0
91

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + - col2 ) + - col2 < - col0
----

query II rowsort
SELECT ALL col1, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 72, - ( col2 ) col2 FROM tab1
----
72
-59
72
-68
72
-96

query I rowsort
SELECT 71 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + 64 / col1 NOT BETWEEN NULL AND col2
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT MIN( col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6966
SELECT 63 + COUNT( * ) / MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT 63 + COUNT ( * ) / MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - SUM( col1 ) * - MAX( DISTINCT - 77 ) + - 97 FROM tab2
----
-15112

skipif mysql # not compatible
query I rowsort label-6967
SELECT - SUM ( col1 ) * - MAX ( DISTINCT - 77 ) + - 97 FROM tab2
----
-15112

query I rowsort
SELECT DISTINCT + 84 + - 69 FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT col2 DIV 17 + - 47 FROM tab1
----
-42
-43
-44

skipif mysql # not compatible
query I rowsort label-6969
SELECT col2 / 17 + - 47 FROM tab1
----
-42
-43
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT 99 * - COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
-300

skipif mysql # not compatible
query I rowsort label-6970
SELECT 99 * - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
-300

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6972
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + 25 * 53 <= col2
----

skipif mysql # not compatible
query III rowsort label-6972
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + 25 * 53 <= col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> - col0 * col2
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( 12 ) * 16 AS col0 FROM tab2
----
192
192
192

query I rowsort
SELECT col1 + 79 AS col0 FROM tab2
----
130
146
156

query I rowsort
SELECT DISTINCT - 37 * col2 FROM tab1
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL + COUNT( ALL + 52 ) - MAX( - col1 + + col2 * col1 ) FROM tab0
----
-3723

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + COUNT ( ALL + 52 ) - MAX ( - col1 + + col2 * col1 ) FROM tab0
----
-3723

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL ( COUNT( * ) ) * + 48 FROM tab0 WHERE col1 / col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL ( COUNT ( * ) ) * + 48 FROM tab0 WHERE col1 / col0 IS NULL
----
0

query I rowsort
SELECT + 97 * col1 FROM tab1
----
1358
4559
485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 21 col0 FROM tab0
----
1827
2037
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT + col1 * ( + 18 / + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT + col1 * ( + 18 / + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 37 - 80 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6986
SELECT * FROM tab2 WHERE ( + 91 ) BETWEEN NULL AND + CAST( + col0 AS DECIMAL ) + col2
----

skipif mysql # not compatible
query III rowsort label-6986
SELECT * FROM tab2 WHERE ( + 91 ) BETWEEN NULL AND + CAST ( + col0 AS REAL ) + col2
----

query I rowsort
SELECT ALL col0 + 98 AS col1 FROM tab2
----
144
162
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6988
SELECT SUM( - CAST( - col1 AS SIGNED ) ) * - 34 FROM tab1
----
-2244

skipif mysql # not compatible
query I rowsort label-6988
SELECT SUM ( - CAST ( - col1 AS INTEGER ) ) * - 34 FROM tab1
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT ( + 61 ) + COUNT( * ) * + 58 FROM tab1 AS cor0
----
235

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT ( + 61 ) + COUNT ( * ) * + 58 FROM tab1 AS cor0
----
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 52 AS col2 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6992
SELECT * FROM tab2 cor0 WHERE NOT ( CAST( col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6992
SELECT * FROM tab2 cor0 WHERE NOT ( CAST ( col2 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT COUNT( * ) - - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6993
SELECT COUNT ( * ) - - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab1 cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 12 ) + col1 * - col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6996
SELECT - 8 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6996
SELECT - 8 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 25 * col0 + - 4 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2179
-2429
-379

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 73 ) AND + 81
----

query I rowsort
SELECT DISTINCT ( - col0 ) - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 + + 1 FROM tab0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL + ( COUNT( DISTINCT col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL + ( COUNT ( DISTINCT col1 ) ) FROM tab1
----
3

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 - - 4 * - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 + 64 AND ( + 52 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 34 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL - - COUNT( - - 40 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - - COUNT ( - - 40 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - col2 + + 86 AS col2 FROM tab0 AS cor0
----
-13
39
76

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT DISTINCT COUNT( * ) DIV + SUM( col2 ) + + MIN( DISTINCT - 1 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT COUNT ( * ) / + SUM ( col2 ) + + MIN ( DISTINCT - 1 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + 6 ) AS col1 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 84 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / - + col0 = 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + + col2 AND - 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT - 32, - col2 AS col0 FROM tab1 AS cor0
----
-32
-59
-32
-68
-32
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7016
SELECT + + CAST( NULL AS DECIMAL ) + - col2 + 48 - 71 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT + + CAST ( NULL AS REAL ) + - col2 + 48 - 71 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 53 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-1168
-2043
-3007

query I rowsort
SELECT ALL + + 71 + + 18 + - + 87 + col2 AS col0 FROM tab0 AS cor0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + - COUNT( * ) + - - 9 col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7019
SELECT + - COUNT ( * ) + - - 9 col1 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 + + 55 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL + 36 + - 93 - COUNT( * ) * 34 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + 36 + - 93 - COUNT ( * ) * 34 FROM tab2 AS cor0
----
-159

query I rowsort
SELECT + col0 * + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
107916
315392
376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab2 AS cor0 WHERE - 45 * + + 49 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT DISTINCT + ( col2 ) * - col1 + 9 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT + ( col2 ) * - col1 + 9 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( + col0 * + + col2 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + col1 + col0 - - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 65 >= - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 97 * - + col1 * + col1 FROM tab1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL - col0 - - + col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT + col0 - - ( - 23 ) AS col1 FROM tab2
----
23
41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT MAX( DISTINCT col0 ) * 67 AS col1 FROM tab2 WHERE + + 38 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7032
SELECT MAX ( DISTINCT col0 ) * 67 AS col1 FROM tab2 WHERE + + 38 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) + - 42 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) + - 42 FROM tab1
----
NULL

query I rowsort
SELECT + col0 / - col1 FROM tab0 WHERE NOT - 24 NOT IN ( 33 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL - 4 - 30 * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 8 + + + 14 + col2 * - col1 * col0 NOT BETWEEN + col0 AND - col0
----
-4

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - 4 - 30 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 8 + + + 14 + col2 * - col1 * col0 NOT BETWEEN + col0 AND - col0
----
-4

query II rowsort
SELECT ALL + 95 * - col0 AS col2, + 52 FROM tab0 AS cor0
----
-1425
52
-8265
52
-9215
52

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 + + + col2 + col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT DISTINCT COUNT( * ) DIV + + ( + + COUNT( DISTINCT 14 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT COUNT ( * ) / + + ( + + COUNT ( DISTINCT 14 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT 26 = - 79 + col0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT MIN( - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL <> - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL <> - 88 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 42 - - 99 / + 80 - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT SUM( 60 ) col0 FROM tab2
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7042
SELECT DISTINCT SUM ( 60 ) col0 FROM tab2
----
180

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col2 / - col1 + + 47 ) < + ( col2 ) + col2
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - SUM( DISTINCT + col1 ) - + 60 AS col2 FROM tab0 WHERE NOT + + 56 NOT BETWEEN + + 74 AND ( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT - SUM ( DISTINCT + col1 ) - + 60 AS col2 FROM tab0 WHERE NOT + + 56 NOT BETWEEN + + 74 AND ( - 84 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7045
SELECT ALL col2 * - - CAST( NULL AS DECIMAL ) + - 30 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL col2 * - - CAST ( NULL AS REAL ) + - 30 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( + + col2 AS SIGNED ) <= + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( + + col2 AS INTEGER ) <= + - col1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 91 / + + col2, 97 / + - col0 )
----

query I rowsort
SELECT ALL + + col1 * 59 FROM tab1 AS cor0
----
2773
295
826

query II rowsort
SELECT DISTINCT col1 + + - col0 AS col2, 63 AS col2 FROM tab0
----
-66
63
-96
63
66
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + 10 * - MIN( ALL + col2 ) AS col1 FROM tab1
----
-590

skipif mysql # not compatible
query I rowsort label-7050
SELECT + 10 * - MIN ( ALL + col2 ) AS col1 FROM tab1
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT DISTINCT COUNT( * ) * - 40 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT COUNT ( * ) * - 40 FROM tab1
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * col2 col2 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT ALL - col2 DIV 50 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - col2 / 50 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + 97 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT ALL col2 DIV - ( col1 ) AS col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL col2 / - ( col1 ) AS col1 FROM tab0
----
-99
0
0

query II rowsort
SELECT ALL 59 AS col2, col1 * - col0 FROM tab2
----
59
-2346
59
-4928
59
-5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 84 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + col1 * - 22 AS col2 FROM tab1 AS cor0
----
-25
-257
-943

query I rowsort
SELECT + 10 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
10
10
10

query I rowsort
SELECT ALL 58 + - col1 * - 48 AS col2 FROM tab1 AS cor0
----
2314
298
730

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT - - 78 - - col1 DIV - col0 + col2 col1 FROM tab0 AS cor0
----
120
177
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7061
SELECT - - 78 - - col1 / - col0 + col2 col1 FROM tab0 AS cor0
----
120
177
88

query I rowsort
SELECT + 68 - - + col1 AS col1 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + 39 - + COUNT( * ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7063
SELECT + 39 - + COUNT ( * ) FROM tab1 AS cor0
----
36

query II rowsort
SELECT + - 24 + col0 AS col2, 50 AS col1 FROM tab0 AS cor0
----
-9
50
63
50
73
50

query I rowsort
SELECT ALL 46 * + 8 + - col0 + - col1 + - 75 * + 5 + - col2 FROM tab2
----
-127
-188
-207

query I rowsort
SELECT col1 + 29 FROM tab0
----
110
30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL + SUM( - - 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + SUM ( - - 75 ) FROM tab0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT DISTINCT 83 * ( - - CAST( + + col2 AS SIGNED ) ) col1 FROM tab0
----
3901
8217
830

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7068
SELECT DISTINCT 83 * ( - - CAST ( + + col2 AS INTEGER ) ) col1 FROM tab0
----
3901
8217
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, + col1 + - col2 AS col1 FROM tab1
----
14
-82
47
-21
5
-54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT + 14 DIV 98 DIV MAX( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7071
SELECT + 14 / 98 / MAX ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * + + col1 * + col2 AS col1 FROM tab1 cor0
----
1475
150212
18816

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 * 52 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT - MIN( - 29 ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT - MIN ( - 29 ) FROM tab2 cor0
----
29

onlyif mysql # aggregate syntax: 
query III rowsort label-7075
SELECT ALL - COUNT( * ), - COUNT( * ), - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT 69 NOT IN ( + + 75 )
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7075
SELECT ALL - COUNT ( * ), - COUNT ( * ), - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 69 NOT IN ( + + 75 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL COUNT( * ) * 26 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL COUNT ( * ) * 26 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT - - MIN( ALL + col1 ) + - + 13 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT - - MIN ( ALL + col1 ) + - + 13 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + - 99 * 89 + - col2 AS col2 FROM tab0 AS cor0 WHERE + col1 * - + col1 + + ( - - col1 ) * + - col1 >= - 29
----
-8910

query I rowsort
SELECT + + 70 + 26 AS col1 FROM tab1 AS cor0
----
96
96
96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 > + + ( + col2 ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 66 = + - 85
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT DISTINCT + + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT - + CAST( COUNT( DISTINCT - col0 ) AS SIGNED ) DIV + MAX( DISTINCT col1 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - + CAST ( COUNT ( DISTINCT - col0 ) AS INTEGER ) / + MAX ( DISTINCT col1 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 + - 46 + + col1 * + - col2 AS col1 FROM tab0
----
-169
-3838
-48

query I rowsort
SELECT + ( - ( + - col2 ) ) + - col0 AS col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT - col1 * 30 AS col0 FROM tab0
----
-2430
-30
-630

query III rowsort
SELECT * FROM tab2 WHERE - 99 NOT IN ( - col2, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NULL IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7088
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IN ( - col0 )
----
0

query I rowsort
SELECT 66 * - - col2 FROM tab0
----
3102
6534
660

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + 21 + + 62 AS col2 FROM tab1 AS cor0
----
83
83
83

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * - col1 * + 7 * - - 74 - + 32 > NULL
----

query I rowsort
SELECT + 21 + - + col0 FROM tab2
----
-25
-43
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col1 col0 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE 99 NOT IN ( - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT - 59 * + col0 - + col0 * - col2 + - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - 59 * + col0 - + col0 * - col2 + - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + - 28 AS col0 FROM tab2 AS cor0
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + 51 * COUNT( * ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7098
SELECT + 51 * COUNT ( * ) FROM tab0 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT - + CAST( col2 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7099
SELECT - + CAST ( col2 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - 11 + - 3 AS col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL + + 28 + + 54 * - - col0 AS col0 FROM tab1 AS cor0
----
2782
4618
4942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7102
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT - 30 + col2 / + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7103
SELECT - 30 + col2 / + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 42 FROM tab1 WHERE - 8 BETWEEN NULL AND ( - - 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL COUNT( ALL 46 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL COUNT ( ALL 46 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 * + - 97 FROM tab1
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT MAX( ALL + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT MAX ( ALL + col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT 52 DIV col2 col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7109
SELECT 52 / col2 col2 FROM tab2
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7110
SELECT ALL - + CAST( + + COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col0, - 9 FROM tab2 cor0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-7110
SELECT ALL - + CAST ( + + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col0, - 9 FROM tab2 cor0
----
NULL
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) + - ( + col0 ) * col1 * col2 * col1 AS col2 FROM tab1 AS cor0
----
-125316
-13669224
-959520

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) + - ( + col0 ) * col1 * col2 * col1 AS col2 FROM tab1 AS cor0
----
-125316
-13669224
-959520

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - + SUM( DISTINCT col1 ) * - MIN( + - col1 ) * + 58 FROM tab1 AS cor0
----
-179916

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - + SUM ( DISTINCT col1 ) * - MIN ( + - col1 ) * + 58 FROM tab1 AS cor0
----
-179916

query I rowsort
SELECT ALL 28 + - + col1 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

query I rowsort
SELECT DISTINCT - 98 + - col2 * col2 FROM tab1 cor0
----
-3579
-4722
-9314

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7115
SELECT ALL 40 * - ( + - col0 ) + + col2 + - col2 * + CAST( NULL AS SIGNED ) * + 42 + col0 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7115
SELECT ALL 40 * - ( + - col0 ) + + col2 + - col2 * + CAST ( NULL AS INTEGER ) * + 42 + col0 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL - - 41 * + COUNT( - 5 ) AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - - 41 * + COUNT ( - 5 ) AS col2 FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT DISTINCT + COUNT( * ) + MAX( + + 13 ) - - SUM( - - col0 ) FROM tab0 cor0
----
215

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + COUNT ( * ) + MAX ( + + 13 ) - - SUM ( - - col0 ) FROM tab0 cor0
----
215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 47 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( ( 26 ) ) ) IN ( - col0, 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 82, + 85 )
----

query III rowsort
SELECT * FROM tab2 WHERE - + 74 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 * - col2, col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7124
SELECT * FROM tab1 WHERE CAST( - - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7124
SELECT * FROM tab1 WHERE CAST ( - - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT - col2 * - + ( + col1 ) + + - 61 DIV + col1 AS col2 FROM tab1
----
1340
283
3195

skipif mysql # not compatible
query I rowsort label-7125
SELECT - col2 * - + ( + col1 ) + + - 61 / + col1 AS col2 FROM tab1
----
1340
283
3195

query I rowsort
SELECT ALL 83 * + + col0 FROM tab2
----
3818
5312
6225

query I rowsort
SELECT ALL + 39 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT DISTINCT + ( - SUM( DISTINCT 52 ) ) AS col0 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT + ( - SUM ( DISTINCT 52 ) ) AS col0 FROM tab2
----
-52

query I rowsort
SELECT col1 * 6 + col1 FROM tab1
----
329
35
98

query I rowsort
SELECT ALL - col2 + - + col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7132
SELECT * FROM tab0 AS cor0 WHERE + col1 + + 75 IN ( col1, CAST( - col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7132
SELECT * FROM tab0 AS cor0 WHERE + col1 + + 75 IN ( col1, CAST ( - col1 AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 - + - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 33 ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + 98 - 33 FROM tab1
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT DISTINCT - 65 * - ( COUNT( * ) ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - 65 * - ( COUNT ( * ) ) FROM tab0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT - col1 DIV + col2 - - 1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT - col1 / + col2 - - 1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + - col1 + + col2 FROM tab2 AS cor0 WHERE NOT - 96 IS NULL
----
-28
-37
-9

query I rowsort
SELECT + ( - + 66 ) AS col2 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL - col2 * col0 * + 64 * - + col1 FROM tab0 AS cor0
----
1169280
3654720
614592

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT DISTINCT + 70 DIV - col0 + + ( + col2 ) FROM tab2 AS cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT + 70 / - col0 + + ( + col2 ) FROM tab2 AS cor0
----
22
39
58

query I rowsort
SELECT - - 3 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT - 13 * + MIN( DISTINCT + ( + 43 ) ) FROM tab1 AS cor0
----
-559

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 13 * + MIN ( DISTINCT + ( + 43 ) ) FROM tab1 AS cor0
----
-559

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * + col2 NOT IN ( + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + - 99 ) FROM tab2
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - MIN( + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7146
SELECT - MIN ( + col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT + ( + + col0 ) AS col2 FROM tab0 WHERE NOT 39 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7148
SELECT - col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7148
SELECT - col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT + ( - + 57 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 37 ) + col2 * - col0 IS NULL
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7150
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 1, - CAST( col0 AS SIGNED ), + 71 / col1 + col0 + - col1 * - col0 + + col1 * + - 15 - + + col0 )
----

skipif mysql # not compatible
query III rowsort label-7150
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 1, - CAST ( col0 AS INTEGER ), + 71 / col1 + col0 + - col1 * - col0 + + col1 * + - 15 - + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7151
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7151
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT col1 + CAST( - - 49 AS SIGNED ) * - + 59 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( + col0 )
----
-2844
-2877
-2886

skipif mysql # not compatible
query I rowsort label-7152
SELECT col1 + CAST ( - - 49 AS INTEGER ) * - + 59 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( + col0 )
----
-2844
-2877
-2886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 10 + 69 + + col0 + + - col1 AS col0 FROM tab2 AS cor0
----
66
74
87

query I rowsort
SELECT + col0 + 62 + col2 + - 38 + + + ( + + col0 ) AS col1 FROM tab1 AS cor0
----
222
253
274

query I rowsort
SELECT ALL col1 + - col0 + - col0 FROM tab0 AS cor0
----
-153
-193
51

query I rowsort
SELECT + col0 + - - col2 + + + 14 AS col1 FROM tab2 AS cor0
----
118
147
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT ALL + SUM( DISTINCT + + 46 ) FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL + SUM ( DISTINCT + + 46 ) FROM tab1 cor0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT 16 * + 23 * 60 + - 66 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
22058

skipif mysql # not compatible
query I rowsort label-7159
SELECT 16 * + 23 * 60 + - 66 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
22058

query I rowsort
SELECT ALL col0 + - col1 - + col1 FROM tab2 AS cor0
----
-56
-59
-90

query I rowsort
SELECT + 75 + + 47 FROM tab2 AS cor0
----
122
122
122

query II rowsort
SELECT + col1 + - 8 * 2, + 92 AS col1 FROM tab0 AS cor0
----
-15
92
5
92
65
92

query I rowsort
SELECT + 84 + - col0 FROM tab0 AS cor0
----
-13
-3
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7164
SELECT ALL + MIN( + col0 ) - 83, MIN( ALL + 63 ) AS col2 FROM tab2
----
-37
63

skipif mysql # not compatible
query II rowsort label-7164
SELECT ALL + MIN ( + col0 ) - 83, MIN ( ALL + 63 ) AS col2 FROM tab2
----
-37
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + ( COUNT( * ) ) * COUNT( * ) * 29 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-7165
SELECT + ( COUNT ( * ) ) * COUNT ( * ) * 29 FROM tab2
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, - col1 AS col0 FROM tab1
----
14
-14
47
-47
5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - ( - 22 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * - + 97 FROM tab0
----
2037
7857
97

query I rowsort
SELECT - 33 * 69 FROM tab0
----
-2277
-2277
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT ALL - + 64 AS col2, - col1 + + 76 AS col0 FROM tab0 cor0
----
-64
-5
-64
55
-64
75

query I rowsort
SELECT ALL + col2 + + 9 * + + col1 + + 11 FROM tab0 AS cor0
----
119
210
787

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT DISTINCT col2 + 23 + - col1 DIV + 30 FROM tab2 cor0
----
45
61
79

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT col2 + 23 + - col1 / + 30 FROM tab2 cor0
----
45
61
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT - + col1 * - 40 + + - col0 + + ( - 6 ) * 35 DIV - col2 FROM tab1 AS cor0
----
118
1792
511

skipif mysql # not compatible
query I rowsort label-7174
SELECT - + col1 * - 40 + + - col0 + + ( - 6 ) * 35 / - col2 FROM tab1 AS cor0
----
118
1792
511

query I rowsort
SELECT DISTINCT - col1 * - 44 * col2 * + - ( - - 19 ) * + col1 + - 31 + - - col1 + - + col2 FROM tab2 AS cor0
----
-198265754
-217662654
-50012031

query I rowsort
SELECT DISTINCT - 37 + + col2 AS col0 FROM tab0
----
-27
10
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 80 - + ( - - col2 ) + + - col0 * - col0 * + 5 + - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT 1 * + 98 DIV 42 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7178
SELECT 1 * + 98 / 42 AS col2 FROM tab2
----
2
2
2

query I rowsort
SELECT ALL + 50 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
50
50
50

query I rowsort
SELECT 30 * + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col2 ) * 27 * 85 AS col2 FROM tab2 AS cor0
----
133110
52785
91800

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7182
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----
0

query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab1 cor0 WHERE NOT + ( col1 ) BETWEEN NULL AND - 94
----
64

query I rowsort
SELECT + ( - 31 ) FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL - 59 * + + MIN( + col2 ) FROM tab0
----
-590

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - 59 * + + MIN ( + col2 ) FROM tab0
----
-590

onlyif mysql # DIV for integer division: 
query I rowsort label-7186
SELECT + 18 DIV + ( + - col2 ) * - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7186
SELECT + 18 / + ( + - col2 ) * - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT ALL + 51 DIV 89 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + 51 / 89 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7188
SELECT ALL + COUNT( ALL CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + COUNT ( ALL CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT + MAX( DISTINCT - col0 ) + - 56 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT + MAX ( DISTINCT - col0 ) + - 56 FROM tab0 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT ALL + CAST( NULL AS SIGNED ) + 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL + CAST ( NULL AS INTEGER ) + 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7191
SELECT + 12 + + + CAST( NULL AS SIGNED ), COUNT( * ) col2 FROM tab2 WHERE + 58 > + + CAST( - ( col0 ) AS SIGNED ) + col1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7191
SELECT + 12 + + + CAST ( NULL AS INTEGER ), COUNT ( * ) col2 FROM tab2 WHERE + 58 > + + CAST ( - ( col0 ) AS INTEGER ) + col1
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7192
SELECT MAX( ALL - - 17 ) * ( + - COUNT( * ) ) * COUNT( * ) DIV + 37 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-37

skipif mysql # not compatible
query I rowsort label-7192
SELECT MAX ( ALL - - 17 ) * ( + - COUNT ( * ) ) * COUNT ( * ) / + 37 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-37

query I rowsort
SELECT ALL - col1 + + 56 AS col2 FROM tab2
----
-11
-21
5

query II rowsort
SELECT DISTINCT + - col0, 64 * + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-2944
-64
-4096
-75
-4800

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT DISTINCT + - CAST( + - col0 AS SIGNED ) * col2 + 8 + ( - 7 ) AS col1 FROM tab1 cor0
----
4897
5016
6189

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT + - CAST ( + - col0 AS INTEGER ) * col2 + 8 + ( - 7 ) AS col1 FROM tab1 cor0
----
4897
5016
6189

query I rowsort
SELECT DISTINCT - + col2 + + ( - col2 ) FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7198
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - col0 - + - 76 FROM tab0 cor0
----
-11
-21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL SUM( 84 ) AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL SUM ( 84 ) AS col0 FROM tab1
----
252

query III rowsort
SELECT * FROM tab0 WHERE + col1 <> + col1 - - 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + ( + col1 ) + - col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col2 + + 71 AS col1 FROM tab0
----
-28
24
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7204
SELECT DISTINCT + 99 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT + 99 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL - MIN( DISTINCT - - 68 ) AS col0 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL - MIN ( DISTINCT - - 68 ) AS col0 FROM tab2 AS cor0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT - MIN( ALL + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col0, col1 * + 17 FROM tab0
----
15
1377
87
357
97
17

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + - col2 / + col1 IS NOT NULL ) OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, col1 * + col1 AS col2 FROM tab2
----
51
2601
67
4489
77
5929

query I rowsort
SELECT - 20 FROM tab0 WHERE NOT - 32 + + 94 IS NULL
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - + col1 * 81 AS col0 FROM tab1 AS cor0
----
-1134
-3807
-405

query I rowsort
SELECT + 60 * - 98 FROM tab2 AS cor0
----
-5880
-5880
-5880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 * + + col0 col0 FROM tab1 AS cor0
----
-1360
-1456
-816

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col0 * + - col2 + 66 + + col1 + + col2 * + 57 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT + col0 DIV + ( + col0 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7215
SELECT + col0 / + ( + col0 ) FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT DISTINCT 81 * col0 DIV col2 AS col0 FROM tab0
----
25
704
79

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT 81 * col0 / col2 AS col0 FROM tab0
----
25
704
79

query I rowsort
SELECT ALL - - col1 + - col1 + - 51 AS col2 FROM tab2 WHERE NULL IS NULL
----
-51
-51
-51

query I rowsort
SELECT DISTINCT 89 FROM tab1 WHERE ( - col2 IS NOT NULL )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL SUM( col0 ) * - COUNT( * ) AS col0 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL SUM ( col0 ) * - COUNT ( * ) AS col0 FROM tab2
----
-555

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7221
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV col0 FROM tab0 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / col0 FROM tab0 cor0
----
0
5

query I rowsort
SELECT ALL - 15 + + col2 FROM tab1 AS cor0
----
44
53
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab0 WHERE NOT + col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT 62 * + + SUM( - 57 ), 10 col1 FROM tab1
----
-10602
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7224
SELECT 62 * + + SUM ( - 57 ), 10 col1 FROM tab1
----
-10602
10

query I rowsort
SELECT DISTINCT 54 + 0 FROM tab1
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 62 - col0 / col0 * ( - + 8 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7227
SELECT DISTINCT - col0 DIV - 67 + 70 FROM tab0 cor0
----
70
71

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT - col0 / - 67 + 70 FROM tab0 cor0
----
70
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col2 col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - col0 + - 30 FROM tab2 AS cor0
----
-105
-76
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT MAX( 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7230
SELECT MAX ( 89 ) FROM tab2 AS cor0
----
89

query I rowsort
SELECT ALL 46 + - 34 AS col2 FROM tab0 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT + MAX( - + 19 ) + + 49 AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + MAX ( - + 19 ) + + 49 AS col2 FROM tab0 AS cor0
----
30

query II rowsort
SELECT DISTINCT col0 AS col2, 40 FROM tab1
----
51
40
85
40
91
40

query I rowsort
SELECT DISTINCT 55 - + 87 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7236
SELECT - 15 DIV 58 - - col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7236
SELECT - 15 / 58 - - col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7237
SELECT COUNT( * ) * - - COUNT( * ) col0 FROM tab1 AS cor0 WHERE + col1 + - + CAST( NULL AS SIGNED ) IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7237
SELECT COUNT ( * ) * - - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + col1 + - + CAST ( NULL AS INTEGER ) IS NULL
----
9

query I rowsort
SELECT + 1 - - - 92 * - 33 FROM tab2 cor0
----
3037
3037
3037

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT col2 DIV col1 - + + 97 * - col2 AS col0 FROM tab0 AS cor0
----
4559
970
9702

skipif mysql # not compatible
query I rowsort label-7239
SELECT col2 / col1 - + + 97 * - col2 AS col0 FROM tab0 AS cor0
----
4559
970
9702

query I rowsort
SELECT col0 * - 90 + - col0 AS col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT DISTINCT COUNT( + col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT COUNT ( + col2 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - + col0
----

query I rowsort
SELECT DISTINCT - col1 * - col0 + 45 AS col2 FROM tab1 AS cor0
----
4322
470
759

query I rowsort
SELECT 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL 17 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 43 )
----

query II rowsort
SELECT DISTINCT - col2 * + col1, - col2 * - 58 + + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-1344
5650
-295
3476
-3196
3965

query I rowsort
SELECT ALL + - col2 * - col1 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 65 * - - 29 FROM tab2
----
-1885

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL COUNT( * ) * 22 * 23 FROM tab1
----
1518

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL COUNT ( * ) * 22 * 23 FROM tab1
----
1518

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + 89 * col2 IS NULL
----
14
47
5

query II rowsort
SELECT ALL + 73 AS col2, - col0 * + + 64 AS col1 FROM tab0
----
73
-5568
73
-6208
73
-960

query I rowsort
SELECT DISTINCT + 38 * + + col2 FROM tab0
----
1786
3762
380

query II rowsort
SELECT ALL col0 AS col0, 69 AS col1 FROM tab2
----
46
69
64
69
75
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT ALL 46 DIV 8 col2 FROM tab2
----
5
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7254
SELECT ALL 46 / 8 col2 FROM tab2
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT DISTINCT + col2 + + col0 + + col2 - - - 69 DIV col0 FROM tab1
----
203
227
242

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT + col2 + + col0 + + col2 - - - 69 / col0 FROM tab1
----
203
227
242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, 26 FROM tab0
----
10
26
47
26
99
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT col1 DIV - ( 88 ) * col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT col1 / - ( 88 ) * col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT COUNT( * ) + 29 AS col1 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7258
SELECT COUNT ( * ) + 29 AS col1 FROM tab2 AS cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col0 + - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT + - 20 + - 39 + - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + - 20 + - 39 + - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - SUM( ALL - - 66 ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-7261
SELECT - SUM ( ALL - - 66 ) FROM tab0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 98 col0 FROM tab2
----
4508
6272
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + 26 + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-7263
SELECT + 26 + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT ( MIN( - 57 ) ) col1 FROM tab2
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7264
SELECT DISTINCT ( MIN ( - 57 ) ) col1 FROM tab2
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 58 col1 FROM tab1 AS cor0
----
-105
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT SUM( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - 25 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT SUM ( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - 25 ) <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT ALL - 76 DIV - COUNT( * ) - COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - 76 / - COUNT ( * ) - COUNT ( * ) FROM tab0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7268
SELECT col2 + - 23 DIV + col2 + + 87 FROM tab1
----
146
155
183

skipif mysql # not compatible
query I rowsort label-7268
SELECT col2 + - 23 / + col2 + + 87 FROM tab1
----
146
155
183

query I rowsort
SELECT ( - 65 ) + - col0 FROM tab1
----
-116
-150
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT MAX( ALL + 77 ) + - - COUNT( * ) * - 60 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT MAX ( ALL + 77 ) + - - COUNT ( * ) * - 60 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col2 FROM tab2 WHERE ( NULL ) = - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT + MAX( - ( + col0 ) ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT + MAX ( - ( + col0 ) ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + SUM( col1 ) AS col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-7273
SELECT + SUM ( col1 ) AS col1 FROM tab0 cor0
----
103

query II rowsort
SELECT ALL col0, + 74 AS col1 FROM tab0 AS cor0
----
15
74
87
74
97
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7275
SELECT 65 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
65
3

skipif mysql # not compatible
query II rowsort label-7275
SELECT 65 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
65
3

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 > + - col1
----

query I rowsort
SELECT DISTINCT + + col1 + - - col2 + + - 51 AS col1 FROM tab2 AS cor0
----
23
66
74

query I rowsort
SELECT + col1 * 59 + - - 31 AS col0 FROM tab0
----
1270
4810
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT DISTINCT + 66 * MAX( ALL - + col0 ) AS col2 FROM tab0
----
-990

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT + 66 * MAX ( ALL - + col0 ) AS col2 FROM tab0
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT + col1 + 67 * + + CAST( NULL AS SIGNED ) + - col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT + col1 + 67 * + + CAST ( NULL AS INTEGER ) + - col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( col2 ) * + 29 AS col2, - col1 FROM tab1 AS cor0
----
1711
-5
1972
-47
2784
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22 * col1 + - + 45 col1, - col2 * - 98 FROM tab2 AS cor0
----
-1167
2254
-1519
5684
-1739
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ALL - - COUNT( * ) + + 9 AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL - - COUNT ( * ) + + 9 AS col0 FROM tab1 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT col2 DIV + 74 col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7284
SELECT col2 / + 74 col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - + 13 + - col2 * ( + col2 ) FROM tab0 cor0
----
-113
-2222
-9814

query I rowsort
SELECT DISTINCT 65 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * + col0 * col0 AND ( 50 )
----

query I rowsort
SELECT ALL col1 + col0 + ( - - 96 ) FROM tab2 AS cor0
----
193
237
238

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT SUM( - + 80 ) FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7288
SELECT SUM ( - + 80 ) FROM tab0 AS cor0
----
-240

query I rowsort
SELECT ALL + col0 + 79 AS col0 FROM tab0 AS cor0
----
166
176
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT + col2 DIV + - col0 - - col2 AS col0 FROM tab1
----
59
68
95

skipif mysql # not compatible
query I rowsort label-7290
SELECT + col2 / + - col0 - - col2 AS col0 FROM tab1
----
59
68
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab1
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + - col0, col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - ( col2 ) > 81 + - 10
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT - COUNT( * ) * CAST( + - 87 AS SIGNED ) FROM tab0 cor0
----
261

skipif mysql # not compatible
query I rowsort label-7295
SELECT - COUNT ( * ) * CAST ( + - 87 AS INTEGER ) FROM tab0 cor0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT - 62 DIV 83 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT - 62 / 83 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-83

query I rowsort
SELECT 72 AS col0 FROM tab0 AS cor0 JOIN tab0 cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 5 + + + 48 * 94 AS col0 FROM tab1 AS cor0
----
4517

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT 47 * MIN( ALL + - 19 ) + 63 FROM tab0 AS cor0
----
-830

skipif mysql # not compatible
query I rowsort label-7301
SELECT 47 * MIN ( ALL + - 19 ) + 63 FROM tab0 AS cor0
----
-830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT DISTINCT col0 * - col1 + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * + - col2 AND + CAST( col2 AS SIGNED ) * + 44
----

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT col0 * - col1 + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * + - col2 AND + CAST ( col2 AS INTEGER ) * + 44
----

query I rowsort
SELECT - ( + - 78 ) FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + + 88 AS col0 FROM tab1 AS cor0
----
88
88
88

query II rowsort
SELECT + 2, + col0 * + col0 AS col1 FROM tab1 cor0
----
2
2601
2
7225
2
8281

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - + 90 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT - SUM( 76 ) + + 42 AS col0 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - SUM ( 76 ) + + 42 AS col0 FROM tab2 AS cor0
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT + ( ( + + col0 ) ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT ALL COUNT( * ) AS col0, + 60 * 53 AS col1 FROM tab0
----
3
3180

skipif mysql # not compatible
query II rowsort label-7311
SELECT ALL COUNT ( * ) AS col0, + 60 * 53 AS col1 FROM tab0
----
3
3180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT col0 * - col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT col0 * - col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL MIN( DISTINCT + 80 ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL MIN ( DISTINCT + 80 ) AS col2 FROM tab1
----
80

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 54 * + 24, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7315
SELECT DISTINCT - - col2 + - CAST( + - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - - col2 + - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT DISTINCT + 25 + + 84 FROM tab0 AS cor0
----
109

query I rowsort
SELECT - 22 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 59 - 70 * + 43 * - 26 * 37 FROM tab1
----
2889956
2891608
2892139

query I rowsort
SELECT DISTINCT col2 * - 6 - + 78 FROM tab0
----
-138
-360
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT COUNT( * ) * 9 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT COUNT ( * ) * 9 FROM tab2
----
27

query I rowsort
SELECT - 71 * 71 * col0 FROM tab1
----
-257091
-428485
-458731

onlyif mysql # aggregate syntax: 
query II rowsort label-7322
SELECT DISTINCT - MIN( + col1 ), COUNT( * ) AS col1 FROM tab0 cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-7322
SELECT DISTINCT - MIN ( + col1 ), COUNT ( * ) AS col1 FROM tab0 cor0
----
-1
3

query I rowsort
SELECT DISTINCT + 24 + 72 + col0 * 29 FROM tab0 AS cor0
----
2619
2909
531

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7324
SELECT ALL + 84 * ( + col2 ) * + CAST( NULL AS SIGNED ) - - 99 + col2 * - 30 AS col1, col2 AS col1 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7324
SELECT ALL + 84 * ( + col2 ) * + CAST ( NULL AS INTEGER ) - - 99 + col2 * - 30 AS col1, col2 AS col1 FROM tab0 cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col2 * - - 48 AS col1 FROM tab0 AS cor0
----
2256
4752
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + 78 + + ( - 88 ) col1 FROM tab1
----
14
-10
47
-10
5
-10

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT + 69 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT DISTINCT 90 * - COUNT( * ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT 90 * - COUNT ( * ) FROM tab0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT ALL + col1 DIV + + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + col1 / + + col0 AS col2 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7331
SELECT * FROM tab0 WHERE NOT NULL IN ( col0, + CAST( + - CAST( 40 AS SIGNED ) AS DECIMAL ) + + col0, - col0 )
----

skipif mysql # not compatible
query III rowsort label-7331
SELECT * FROM tab0 WHERE NOT NULL IN ( col0, + CAST ( + - CAST ( 40 AS INTEGER ) AS REAL ) + + col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT + ( + + col1 ) * - ( col0 ) + + 78 - CAST( + - 38 AS SIGNED ) FROM tab1 WHERE NOT + + 40 IS NULL
----
-309
-4161
-598

skipif mysql # not compatible
query I rowsort label-7332
SELECT + ( + + col1 ) * - ( col0 ) + + 78 - CAST ( + - 38 AS INTEGER ) FROM tab1 WHERE NOT + + 40 IS NULL
----
-309
-4161
-598

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT ALL col2 DIV - 12 FROM tab2
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL col2 / - 12 FROM tab2
----
-1
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT MIN( ALL - 55 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT MIN ( ALL - 55 ) FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT - COUNT( - col0 ) DIV - - COUNT( DISTINCT + + ( - ( col0 ) ) ) + 37 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7335
SELECT - COUNT ( - col0 ) / - - COUNT ( DISTINCT + + ( - ( col0 ) ) ) + 37 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL + MAX( + ( - - 65 ) ) AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + MAX ( + ( - - 65 ) ) AS col0 FROM tab1 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + + col1 AS col0, + col2 col0 FROM tab1
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT 6 * - col2 FROM tab2
----
-138
-240
-348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT + 85 + - col1 + - 36 + + CAST( NULL AS SIGNED ) * - - col1 + + 31 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT + 85 + - col1 + - 36 + + CAST ( NULL AS INTEGER ) * - - col1 + + 31 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT 90 + + ( 36 ) + - + col1 - + - col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
112
121
79

skipif mysql # not compatible
query I rowsort label-7340
SELECT 90 + + ( 36 ) + - + col1 - + - col1 / + col2 AS col1 FROM tab1 AS cor0
----
112
121
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - CAST( - - col0 AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - CAST ( - - col0 AS INTEGER ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT 7 * - col0 + - col2 + - col2 + col0 + col2 AS col2 FROM tab0 cor0
----
-137
-532
-681

query I rowsort
SELECT ALL - col0 + 73 FROM tab0 AS cor0
----
-14
-24
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT ALL CAST( 57 AS SIGNED ) FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL CAST ( 57 AS INTEGER ) FROM tab2 AS cor0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - ( - col0 )
----

query I rowsort
SELECT + + 53 + ( - 96 ) + - ( + + 40 ) AS col0 FROM tab1 AS cor0
----
-83
-83
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 8 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT COUNT( * ) + MIN( + col1 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7348
SELECT COUNT ( * ) + MIN ( + col1 ) AS col0 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT - MIN( - + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - MIN ( - + col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT ALL + + ( - col0 ) + - 64 AS col0 FROM tab1 WHERE NOT + + ( + 92 ) > - + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7351
SELECT - 49 DIV - col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7351
SELECT - 49 / - col0 AS col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - + 74 + + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - + 74 + + col2 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - 16 - COUNT( * ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7353
SELECT - 16 - COUNT ( * ) FROM tab0 AS cor0
----
-19

query I rowsort
SELECT ALL 87 + - - ( + - col2 ) FROM tab2 AS cor0
----
29
47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT + + COUNT( * ) + - 8 + - + 26 + - - COUNT( * ) col0 FROM tab1 cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7355
SELECT + + COUNT ( * ) + - 8 + - + 26 + - - COUNT ( * ) col0 FROM tab1 cor0
----
-28

query I rowsort
SELECT col2 + + col2 + + col2 AS col0 FROM tab0
----
141
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT - MIN( - ( col2 ) ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7357
SELECT DISTINCT - MIN ( - ( col2 ) ) col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - - MIN( ALL + ( - ( - 78 ) ) ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7358
SELECT - - MIN ( ALL + ( - ( - 78 ) ) ) FROM tab0 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT + 52 DIV + - 48 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7359
SELECT + 52 / + - 48 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col0 AS col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT - 91 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7361
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT - 91 >= NULL
----

query II rowsort
SELECT ALL col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - - col1 * + + col2 + - 86 FROM tab2 AS cor0
----
1087
2994
3800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7364
SELECT - + col1 * - 20 + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
105
294
987

skipif mysql # not compatible
query I rowsort label-7364
SELECT - + col1 * - 20 + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
105
294
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT DISTINCT - + CAST( MIN( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT - + CAST ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - ( - - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - - col2 AS col1, 86 FROM tab2 AS cor0
----
23
86
40
86
58
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + - SUM( col0 ) * + + ( - - 93 ) * - 68 AS col0 FROM tab1 AS cor0
----
1435548

skipif mysql # not compatible
query I rowsort label-7368
SELECT + - SUM ( col0 ) * + + ( - - 93 ) * - 68 AS col0 FROM tab1 AS cor0
----
1435548

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 19 + + 21 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * - - col0 + + - 29 * + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7371
SELECT COUNT( - CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-7371
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col2 FROM tab0
----
0
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT - 54 * - COUNT( * ) * + + 19 AS col2, COUNT( * ) AS col2 FROM tab1
----
3078
3

skipif mysql # not compatible
query II rowsort label-7372
SELECT - 54 * - COUNT ( * ) * + + 19 AS col2, COUNT ( * ) AS col2 FROM tab1
----
3078
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7373
SELECT - col2 * 50 AS col0, - col0 DIV - + 59 - + col0 FROM tab0
----
-2350
-15
-4950
-96
-500
-86

skipif mysql # not compatible
query II rowsort label-7373
SELECT - col2 * 50 AS col0, - col0 / - + 59 - + col0 FROM tab0
----
-2350
-15
-4950
-96
-500
-86

query I rowsort
SELECT ALL col2 * + + col2 * + col2 * + - col2 FROM tab2
----
-11316496
-2560000
-279841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * 41 col0, + 75 FROM tab1
----
2419
75
2788
75
3936
75

query I rowsort
SELECT - - col1 * + - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 * col2 col2, - col2 FROM tab1 AS cor0
----
4896
-96
5015
-59
6188
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 81 <> + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT COUNT( 0 ) + 82 AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-7379
SELECT COUNT ( 0 ) + 82 AS col1 FROM tab2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT 24 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7380
SELECT 24 / - col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 col2 FROM tab2 AS cor0 WHERE col1 + col1 <= + + col2 + - col1 - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT DISTINCT + col1 DIV + col0 * + + col0 + + + col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + col1 / + col0 * + + col0 + + + col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - + col0 * - - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL + MIN( ALL - col0 ) * - + CAST( COUNT( * ) AS SIGNED ) + + 29 AS col0 FROM tab0
----
320

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + MIN ( ALL - col0 ) * - + CAST ( COUNT ( * ) AS INTEGER ) + + 29 AS col0 FROM tab0
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 - - - col0 AS col2, + col1 AS col1 FROM tab2 WHERE 42 / - col0 BETWEEN col2 - - 34 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT 29 + col1 + col0 DIV + ( - col2 ) FROM tab1
----
33
43
75

skipif mysql # not compatible
query I rowsort label-7387
SELECT 29 + col1 + col0 / + ( - col2 ) FROM tab1
----
33
43
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT COUNT( * ) + - 84 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-7388
SELECT COUNT ( * ) + - 84 FROM tab1
----
-81

query II rowsort
SELECT + ( + col0 ) + + + col1 * + col0 AS col1, - col2 FROM tab2
----
2392
-23
4992
-40
5100
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 33 * col1 * + 22 * + - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + SUM( + - 31 ) + + 3 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-7391
SELECT + SUM ( + - 31 ) + + 3 FROM tab0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 60 * - col1 + - + col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7393
SELECT - ( - - COUNT( * ) ) * CAST( NULL AS DECIMAL ) + + COUNT( * ) * 46 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT - ( - - COUNT ( * ) ) * CAST ( NULL AS REAL ) + + COUNT ( * ) * 46 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 22 * - + col0 < NULL
----

query I rowsort
SELECT ALL 78 - - col2 FROM tab0
----
125
177
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT COUNT( ALL - - ( + + 18 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7397
SELECT COUNT ( ALL - - ( + + 18 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 + - col0 * + col1 FROM tab0 WHERE NOT + 21 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 64 <= - col1
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - col2 * + + 98 FROM tab1 AS cor0
----
-5782
-6664
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + - COUNT( - + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7402
SELECT + - COUNT ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT - MIN( DISTINCT + 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-7403
SELECT - MIN ( DISTINCT + 13 ) FROM tab0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT + 32 DIV + col1 AS col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-7404
SELECT + 32 / + col1 AS col1 FROM tab1
----
0
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7406
SELECT + COUNT( * ) AS col1, CAST( + MAX( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7406
SELECT + COUNT ( * ) AS col1, CAST ( + MAX ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab2
----
3
NULL

query I rowsort
SELECT ALL + + 77 AS col1 FROM tab0 WHERE + col2 NOT BETWEEN + col0 AND NULL
----
77

query I rowsort
SELECT DISTINCT - col1 * + col0 * 23 FROM tab0
----
-2231
-27945
-42021

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7409
SELECT ALL * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7409
SELECT ALL * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT SUM( DISTINCT 85 ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7410
SELECT SUM ( DISTINCT 85 ) AS col0 FROM tab2 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT - 58 / - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT - 58 / - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL - col2 * col1 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - col2 * col1 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT COUNT( * ) * 76 + - + 88 col1 FROM tab1 AS cor0
----
140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7414
SELECT DISTINCT COUNT ( * ) * 76 + - + 88 col1 FROM tab1 AS cor0
----
140

query I rowsort
SELECT col2 + - col0 + + 12 AS col0 FROM tab2 AS cor0
----
-11
-12
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL + + 41 + COUNT( * ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + + 41 + COUNT ( * ) FROM tab0 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT - col1 DIV + 58 + 35 AS col2 FROM tab2 cor0
----
34
34
35

skipif mysql # not compatible
query I rowsort label-7417
SELECT - col1 / + 58 + 35 AS col2 FROM tab2 cor0
----
34
34
35

query I rowsort
SELECT - - 13 * col2 AS col2 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT SUM( ALL 42 ) AS col1 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT SUM ( ALL 42 ) AS col1 FROM tab0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

query II rowsort
SELECT + col2 AS col2, 45 AS col2 FROM tab0
----
10
45
47
45
99
45

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + ( + COUNT( * ) ) - - + 42 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7423
SELECT + ( + COUNT ( * ) ) - - + 42 FROM tab2 AS cor0
----
45

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE + col2 + - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT - 27 + + CAST( - col2 AS SIGNED ) FROM tab1
----
-123
-86
-95

skipif mysql # not compatible
query I rowsort label-7425
SELECT - 27 + + CAST ( - col2 AS INTEGER ) FROM tab1
----
-123
-86
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7426
SELECT ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7426
SELECT ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

query I rowsort
SELECT 87 + - col2 FROM tab0
----
-12
40
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 2 * 81 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) IN ( - 70 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN ( 1 + - col1 ) AND NULL
----

query I rowsort
SELECT ALL - col0 + col0 * - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 + - 11
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 26 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( + col2 * - ( 97 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - 9 * + col0 )
----

query I rowsort
SELECT 19 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
19
19
19

query I rowsort
SELECT ALL - col0 + - ( 24 + + col0 ) AS col0 FROM tab1
----
-126
-194
-206

query I rowsort
SELECT DISTINCT 11 + - col0 AS col0 FROM tab2
----
-35
-53
-64

query I rowsort
SELECT + 2 * col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT - 7 DIV - col0 - - col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7440
SELECT - 7 / - col0 - - col0 AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - AVG ( ALL - col1 ) FROM tab2 WHERE NOT - 30 <> col2
----
NULL

query I rowsort
SELECT + 74 + - col0 AS col2 FROM tab1
----
-11
-17
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= ( - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - 63 + COUNT( * ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7445
SELECT - 63 + COUNT ( * ) FROM tab0
----
-60

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 69 AND - 50
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT + col1 * + 4 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 13 AS col1 FROM tab1 AS cor0
----
-104
-64
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IN ( 48 )
----
0

skipif mysql # not compatible
query I rowsort label-7449
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IN ( 48 )
----
0

query I rowsort
SELECT DISTINCT col1 * - 82 AS col1 FROM tab0 AS cor0 WHERE + col0 - + 6 IS NOT NULL
----
-1722
-6642
-82

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 24 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL - 29 + + COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - 29 + + COUNT ( * ) FROM tab0 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col2 * 69 > col1
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + + col1 ) IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE - 54 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - col2 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE + ( + 56 ) NOT IN ( - col1 / - col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL + MIN( col2 ) AS col0 FROM tab2 cor0 WHERE 59 BETWEEN col2 AND 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + MIN ( col2 ) AS col0 FROM tab2 cor0 WHERE 59 BETWEEN col2 AND 35
----
NULL

query I rowsort
SELECT ALL col0 + 5 FROM tab2 cor0
----
51
69
80

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT + 95 + 29 AS col2 FROM tab1 AS cor0
----
124

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 + col1 * + 20 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT DISTINCT - COUNT( * ) + 64 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - COUNT ( * ) + 64 FROM tab1 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT - CAST( col1 AS SIGNED ) * 6 AS col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
-126
-486
-6

skipif mysql # not compatible
query I rowsort label-7464
SELECT - CAST ( col1 AS INTEGER ) * 6 AS col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
-126
-486
-6

query I rowsort
SELECT ALL col2 + 72 AS col1 FROM tab0 AS cor0
----
119
171
82

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 NOT IN ( 35 - ( 93 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 * - 19 + 11 AS col0 FROM tab1 AS cor0
----
106
277
904

query I rowsort
SELECT DISTINCT + col1 * col2 AS col1 FROM tab2 WHERE col2 NOT IN ( col2 )
----

query I rowsort
SELECT 84 * + - 70 + - col1 * col0 AS col1 FROM tab1
----
-10157
-6305
-6594

query III rowsort
SELECT * FROM tab2 WHERE 43 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 71 IN ( 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT - ( - COUNT( * ) ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7472
SELECT - ( - COUNT ( * ) ) + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT 53 - - 60 + col1 * col0 FROM tab0
----
1328
1940
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 67 col2 FROM tab2 WHERE NOT col0 IS NULL
----
113
131
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col2 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT COUNT( * ) + - 38 AS col0 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-7477
SELECT COUNT ( * ) + - 38 AS col0 FROM tab0
----
-35

query I rowsort
SELECT ALL col2 * + - 90 * + col0 FROM tab2
----
-230400
-391500
-95220

query I rowsort
SELECT DISTINCT 39 * - + col1 FROM tab1 AS cor0
----
-1833
-195
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT - - SUM( ALL - col0 ) * + SUM( col2 ) FROM tab1 AS cor0
----
-50621

skipif mysql # not compatible
query I rowsort label-7480
SELECT - - SUM ( ALL - col0 ) * + SUM ( col2 ) FROM tab1 AS cor0
----
-50621

query I rowsort
SELECT 63 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, col1 * - col2 AS col2 FROM tab2
----
51
-1173
67
-3886
77
-3080

query I rowsort
SELECT ALL + 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 90 NOT BETWEEN ( + 84 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 47 * + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1974

query I rowsort
SELECT col0 * - 81 FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 AND ( - col2 - + ( - 2 + col1 ) * + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 43 + + col1 ) BETWEEN NULL AND - col0 * 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7488
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * col2 BETWEEN ( col1 * col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7488
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * col2 BETWEEN ( col1 * col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 55 <= ( NULL )
----

query I rowsort
SELECT 50 * - col2 AS col1 FROM tab0
----
-2350
-4950
-500

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) NOT IN ( + col2 )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - col2 / ( - col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT col1 AS col1 FROM tab0 cor0 WHERE ( - col2 - + col2 * - 32 * - col2 + col2 * + 72 ) NOT IN ( col0 * 64 + - CAST( col1 AS SIGNED ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7493
SELECT col1 AS col1 FROM tab0 cor0 WHERE ( - col2 - + col2 * - 32 * - col2 + col2 * + 72 ) NOT IN ( col0 * 64 + - CAST ( col1 AS INTEGER ) )
----
1
21
81

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE ( + ( + 52 ) ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT + MIN( ALL col2 ) + + SUM( 7 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT + MIN ( ALL col2 ) + + SUM ( 7 ) FROM tab1 AS cor0
----
80

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT COUNT( * ) + COUNT( * ) * 18 AS col1 FROM tab0 WHERE NOT col1 * + + col2 - col1 + - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * 18 AS col1 FROM tab0 WHERE NOT col1 * + + col2 - col1 + - col1 < NULL
----
0

query I rowsort
SELECT - - col0 * + col0 * + col0 - + col2 + - + col1 * col0 AS col1 FROM tab2 AS cor0
----
257176
416792
94967

query I rowsort
SELECT ALL - col0 * 28 * - 4 + - - 30 FROM tab0 AS cor0
----
10894
1710
9774

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL + + COUNT( * ) + + - 74 col0 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7500
SELECT ALL + + COUNT ( * ) + + - 74 col0 FROM tab2 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND ( 34 )
----

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND ( 34 )
----

query I rowsort
SELECT DISTINCT + - col1 + + - col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT ALL - + 50 + col0 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + 44 IS NOT NULL
----

query I rowsort
SELECT ALL + 59 + + 1 - + 10 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-450
-610
-710

query I rowsort
SELECT - + col2 / + col2 AS col2 FROM tab2 AS cor0 WHERE + col0 - + col1 IS NULL
----

query I rowsort
SELECT - 73 * col1 + col2 AS col1 FROM tab1 AS cor0 WHERE - col1 * - col0 / - ( col0 ) * col1 + col2 <= ( NULL )
----

query I rowsort
SELECT ALL + 62 * - ( + + col2 ) FROM tab2 WHERE - 2 IS NULL
----

query I rowsort
SELECT DISTINCT 62 * - col0 AS col1 FROM tab1
----
-3162
-5270
-5642

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 31 / + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT - + MIN( - - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT - + MIN ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7511
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT ( + ( + col2 ) ) BETWEEN NULL AND col0 OR col0 + + col0 NOT BETWEEN 13 * col1 + CAST( - 10 AS DECIMAL ) * 27 AND - col0 + 66
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7511
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT ( + ( + col2 ) ) BETWEEN NULL AND col0 OR col0 + + col0 NOT BETWEEN 13 * col1 + CAST ( - 10 AS REAL ) * 27 AND - col0 + 66
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / ( col2 ) + + 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 16, col0 FROM tab2 AS cor0 WHERE NOT ( - col1 * + 77 ) < NULL
----

query II rowsort
SELECT ALL 88 AS col0, - col2 AS col0 FROM tab2 AS cor0
----
88
-23
88
-40
88
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + col1 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + col0 * + + 33 AS col0 FROM tab2
----
143550
34914
84480

query I rowsort
SELECT - 69 * + - col0 FROM tab0
----
1035
6003
6693

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7520
SELECT ALL * FROM tab0 WHERE NOT NULL < + - col2 / - + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7520
SELECT ALL * FROM tab0 WHERE NOT NULL < + - col2 / - + CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT + col0 * - 6 AS col2 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT + col1 + - + 55 FROM tab2
----
-4
12
22

query II rowsort
SELECT ALL 48 AS col1, col0 AS col0 FROM tab0
----
48
15
48
87
48
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 93 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 56 * col1 + + col2 = NULL
----

query I rowsort
SELECT ALL + 70 + - 93 * - 86 FROM tab2 cor0
----
8068
8068
8068

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) + - COUNT( * ) AS col0, 69 AS col0 FROM tab1 AS cor0
----
6
69

skipif mysql # not compatible
query II rowsort label-7527
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) AS col0, 69 AS col0 FROM tab1 AS cor0
----
6
69

query I rowsort
SELECT ALL + 31 + + 37 AS col1 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT col0 * - - col0 AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + - 0 * + 92 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7531
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 49 < ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + + col0 + - 61 AS col1, - 1 * + + col0 + - - col0 FROM tab2 AS cor0
----
-15
0
14
0
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 + col2 + 31 col0 FROM tab2 AS cor0
----
-13
22
4

query III rowsort
SELECT * FROM tab1 WHERE col2 * col2 NOT IN ( - + 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + - 40 FROM tab2
----
24
35
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL COUNT( 93 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL COUNT ( 93 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 42, 72 AS col0 FROM tab1
----
42
72

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( + 73, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT CAST( + + col0 AS SIGNED ) col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7540
SELECT CAST ( + + col0 AS INTEGER ) col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT + COUNT( + 27 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7541
SELECT + COUNT ( + 27 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 29 * col0 FROM tab2
----
1334
1856
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - COUNT( ALL - 6 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7543
SELECT - COUNT ( ALL - 6 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col1 * - - col1 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT ALL + MAX( + + 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-7545
SELECT ALL + MAX ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90 col2, - ( col2 ) / - col1 + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT - col2 DIV + + col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7547
SELECT - col2 / + + col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL - - ( + + COUNT( * ) ) * - + COUNT( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - - ( + + COUNT ( * ) ) * - + COUNT ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT col0 * + - 82 FROM tab2 AS cor0
----
-3772
-5248
-6150

query II rowsort
SELECT 21 AS col2, ( - 35 ) FROM tab1 AS cor0
----
21
-35
21
-35
21
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT ALL 59 DIV - 27 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL 59 / - 27 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 >= - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * - - 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 17 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT ALL - + 72 * + + CAST( NULL AS SIGNED ) * + 3 + - - ( + + 81 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - + 72 * + + CAST ( NULL AS INTEGER ) * + 3 + - - ( + + 81 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT - COUNT( DISTINCT - + col0 ) * + 64 + 63 FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-7559
SELECT - COUNT ( DISTINCT - + col0 ) * + 64 + 63 FROM tab2 AS cor0
----
-129

query I rowsort
SELECT - col2 + + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 IN ( - 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7562
SELECT + ( COUNT( * ) ) + + MIN( + - 99 ) AS col1, + 81 AS col2 FROM tab2 cor0
----
-96
81

skipif mysql # not compatible
query II rowsort label-7562
SELECT + ( COUNT ( * ) ) + + MIN ( + - 99 ) AS col1, + 81 AS col2 FROM tab2 cor0
----
-96
81

query I rowsort
SELECT ALL - col0 + - col0 - + col1 AS col0 FROM tab1
----
-116
-175
-229

query I rowsort
SELECT DISTINCT + 95 * + - 50 * - + 31 AS col1 FROM tab0
----
147250

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT - ( + + SUM( - + 33 ) ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - ( + + SUM ( - + 33 ) ) AS col1 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7566
SELECT ALL col1 DIV - CAST( + col1 AS SIGNED ) col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7566
SELECT ALL col1 / - CAST ( + col1 AS INTEGER ) col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 13 + col1 FROM tab0
----
-12
68
8

query I rowsort
SELECT + + 92 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT COUNT( * ) FROM tab2 WHERE - - 12 + + - 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7569
SELECT COUNT ( * ) FROM tab2 WHERE - - 12 + + - 75 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL COUNT( * ) * + - 30 - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL COUNT ( * ) * + - 30 - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT MIN( ALL + col1 ) * + MIN( ALL - 78 ) FROM tab2 AS cor0
----
-3978

skipif mysql # not compatible
query I rowsort label-7572
SELECT MIN ( ALL + col1 ) * + MIN ( ALL - 78 ) FROM tab2 AS cor0
----
-3978

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - - MIN( + 94 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7573
SELECT - - MIN ( + 94 ) FROM tab1 AS cor0
----
94

query II rowsort
SELECT ALL + col0, - col1 * + col2 + + + 28 AS col1 FROM tab2 AS cor0
----
46
-1145
64
-3052
75
-3858

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - SUM( ALL - 34 ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7575
SELECT - SUM ( ALL - 34 ) FROM tab2 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT SUM( DISTINCT + 97 ) AS col2 FROM tab1 cor0
----
97

skipif mysql # not compatible
query I rowsort label-7576
SELECT SUM ( DISTINCT + 97 ) AS col2 FROM tab1 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL + - SUM( + + col0 ) col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7577
SELECT ALL + - SUM ( + + col0 ) col2 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT - MAX( DISTINCT - CAST( - col1 AS SIGNED ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - MAX ( DISTINCT - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT ALL + col2 * + CAST( - + col2 AS SIGNED ) col1 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7579
SELECT ALL + col2 * + CAST ( - + col2 AS INTEGER ) col1 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT 23 * col1 AS col2 FROM tab1
----
1081
115
322

query III rowsort
SELECT ALL * FROM tab0 WHERE + 56 * - 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL + MAX( DISTINCT - 84 ) AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + MAX ( DISTINCT - 84 ) AS col2 FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + MAX( DISTINCT 29 ) AS col1 FROM tab1 cor0
----
29

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + MAX ( DISTINCT 29 ) AS col1 FROM tab1 cor0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7584
SELECT CAST( - - 34 AS SIGNED ) DIV - COUNT( * ) + - 91 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-102

skipif mysql # not compatible
query I rowsort label-7584
SELECT CAST ( - - 34 AS INTEGER ) / - COUNT ( * ) + - 91 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-102

query I rowsort
SELECT ALL 3 * - 0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT SUM( - + col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT SUM ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL col1 + 19 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
4343
449
747

query I rowsort
SELECT DISTINCT - 6 + + col2 FROM tab0 cor0
----
4
41
93

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 + + col0 + + col0 FROM tab2
----
152
188
210

query I rowsort
SELECT 40 * - - col1 + + col2 AS col1 FROM tab2
----
2063
2738
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 12 col1 FROM tab2
----
58
76
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT DISTINCT 70, SUM( ALL + - col2 ) AS col2 FROM tab2
----
70
-121

skipif mysql # not compatible
query II rowsort label-7595
SELECT DISTINCT 70, SUM ( ALL + - col2 ) AS col2 FROM tab2
----
70
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL MIN( ALL + 10 ) + - + 89 AS col0 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL MIN ( ALL + 10 ) + - + 89 AS col0 FROM tab1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT CAST( + + col1 AS SIGNED ) + + - col2 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-7597
SELECT CAST ( + + col1 AS INTEGER ) + + - col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( col2 + 71 ) BETWEEN + col1 AND + col0 * + - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT COUNT( * ) * COUNT( ALL + - col2 ) * - COUNT( * ) * COUNT( * ) * - 60 - - 18 + + + COUNT( * ) FROM tab1 AS cor0
----
4881

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + - col2 ) * - COUNT ( * ) * COUNT ( * ) * - 60 - - 18 + + + COUNT ( * ) FROM tab1 AS cor0
----
4881

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 15 <= ( + 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT COUNT( * ) col0 FROM tab2 cor0 WHERE ( 19 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7601
SELECT COUNT ( * ) col0 FROM tab2 cor0 WHERE ( 19 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL - - 20 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1195
-1807
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT ALL ( + 82 ) + + + COUNT( * ) AS col1, 59 FROM tab2
----
85
59

skipif mysql # not compatible
query II rowsort label-7603
SELECT ALL ( + 82 ) + + + COUNT ( * ) AS col1, 59 FROM tab2
----
85
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT - MIN( ALL + 32 ) AS col2 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - MIN ( ALL + 32 ) AS col2 FROM tab1 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT ALL - col2 * + + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - col2 * + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT ALL + CAST( NULL AS SIGNED ) * - 43 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + CAST ( NULL AS INTEGER ) * - 43 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7607
SELECT ALL - COUNT( * ) DIV + + SUM( - + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - COUNT ( * ) / + + SUM ( - + col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT 0 / + + CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT 0 / + + CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * - 65 * col2 FROM tab2 AS cor0
----
-104000
-218660
-34385

query I rowsort
SELECT col1 + 80 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 76 * - 42 + - 67 AS col1 FROM tab1 AS cor0
----
3125
3125
3125

query II rowsort
SELECT DISTINCT - col0 AS col0, + ( + ( + col1 ) ) AS col0 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - MAX( - ( - ( + ( + + 54 ) ) ) ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-7613
SELECT - MAX ( - ( - ( + ( + + 54 ) ) ) ) FROM tab0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab2 WHERE ( - - 25 ) > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab2 WHERE ( - - 25 ) > ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT ( - 93 ) AS col1 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT DISTINCT + 77 * - 63 * - MIN( DISTINCT - col0 ) col1 FROM tab1
----
-441441

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7616
SELECT DISTINCT + 77 * - 63 * - MIN ( DISTINCT - col0 ) col1 FROM tab1
----
-441441

query II rowsort
SELECT col1, - col2 * - - col2 FROM tab0 cor0
----
1
-9801
21
-100
81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL - + COUNT( + 95 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - + COUNT ( + 95 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 79 * - COUNT( ALL col0 ) col0 FROM tab2
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7619
SELECT 79 * - COUNT ( ALL col0 ) col0 FROM tab2
----
-237

query I rowsort
SELECT ALL + 82 * - 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 79442435a08caa41e7e419cb2aa268e2

query I rowsort
SELECT + - ( + col2 ) + + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT col1 * col1 + + col1 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT + 38 + - + col1 AS col0 FROM tab2 AS cor0
----
-13
-29
-39

query I rowsort
SELECT + col1 + 57 * 12 FROM tab0 AS cor0
----
685
705
765

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7625
SELECT + - col1 + CAST( NULL AS DECIMAL ), col0 DIV col0 col0 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7625
SELECT + - col1 + CAST ( NULL AS REAL ), col0 / col0 col0 FROM tab2 AS cor0
----
NULL
1
NULL
1
NULL
1

query I rowsort
SELECT DISTINCT + col2 + - col0 + - - 91 FROM tab2 AS cor0
----
67
68
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 > - 68 + - 22 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + 54
----

query III rowsort
SELECT * FROM tab0 WHERE 70 = + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7630
SELECT DISTINCT col0 * - - CAST( NULL AS DECIMAL ) * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT col0 * - - CAST ( NULL AS REAL ) * + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT - 29 + - COUNT( * ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT - 29 + - COUNT ( * ) FROM tab0 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT - + col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT - + col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + 9 * + col0 * - ( - col1 ) FROM tab1
----
3825
38493
6426

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7635
SELECT DISTINCT col0 AS col2, - col1 * + CAST( NULL AS SIGNED ) * - ( - col2 ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7635
SELECT DISTINCT col0 AS col2, - col1 * + CAST ( NULL AS INTEGER ) * - ( - col2 ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL COUNT( * ) * + + 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL COUNT ( * ) * + + 9 FROM tab0
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + 4 * 69 * - - 28 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7638
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7638
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 10 <> - + 81
----

query I rowsort
SELECT - 86 * + - col2 * + col0 FROM tab0 AS cor0
----
60630
74820
825858

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( col1 ) * - - 53 - - 33 FROM tab2 AS cor0
----
2736
3584
4114

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT DISTINCT - ( - col1 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT - ( - col1 ) / - col1 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + - col2 * 63 FROM tab0 cor0
----
-2961
-6237
-630

query II rowsort
SELECT + 43 * col2 * 48 * - + 98, - col1 AS col0 FROM tab1 AS cor0
----
-11934048
-5
-13754496
-47
-19418112
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7646
SELECT ALL * FROM tab1 WHERE col2 * - - 47 - - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7646
SELECT ALL * FROM tab1 WHERE col2 * - - 47 - - CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 78 FROM tab0
----
-1638
-6318
-78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7649
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + - - 4 < + 24 + - CAST( 10 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7649
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + - - 4 < + 24 + - CAST ( 10 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - + 19 ) FROM tab0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + col1 col1 FROM tab2
----
2448
3216
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT 40 DIV - 83 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT 40 / - 83 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 * - col1 AND 13
----

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-7655
SELECT col1 DIV - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7655
SELECT col1 / - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT + CAST( 18 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7656
SELECT + CAST ( 18 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT - COUNT( * ) - 78 FROM tab1 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - COUNT ( * ) - 78 FROM tab1 cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT ALL col2 + CAST( + col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL col2 + CAST ( + col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL - ( COUNT( * ) ) FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - ( COUNT ( * ) ) FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 29 NOT IN ( - + col1, - col1, + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 43 AS col1 FROM tab1
----
2537
2924
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col2 FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
-98
11
34

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 76 * 25 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 1 ) FROM tab0 cor0
----
1

query II rowsort
SELECT DISTINCT + col0 AS col2, + 14 FROM tab2 AS cor0
----
46
14
64
14
75
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT + + ( - COUNT( * ) ) * + 14 + - 19 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7671
SELECT + + ( - COUNT ( * ) ) * + 14 + - 19 FROM tab0 AS cor0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT - col0 DIV ( - 10 ) AS col1 FROM tab1
----
5
8
9

skipif mysql # not compatible
query I rowsort label-7672
SELECT - col0 / ( - 10 ) AS col1 FROM tab1
----
5
8
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT ALL 40 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL 40 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT 68, - col2 AS col2 FROM tab0
----
68
-10
68
-47
68
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT DISTINCT - 24 DIV - col2 AS col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - 24 / - col2 AS col1 FROM tab0
----
0
2

query II rowsort
SELECT ALL 83, col0 FROM tab1
----
83
51
83
85
83
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT DISTINCT MIN( - col1 ) + - 66 + + COUNT( * ) col1 FROM tab2
----
-140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT DISTINCT MIN ( - col1 ) + - 66 + + COUNT ( * ) col1 FROM tab2
----
-140

query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab0 WHERE NOT + 12 IS NULL
----
1215
1827
97

query II rowsort
SELECT - col2, 71 AS col2 FROM tab0 AS cor0
----
-10
71
-47
71
-99
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7681
SELECT + 8, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7681
SELECT + 8, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
8
NULL
8
NULL
8
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - + 14 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bbee2081a1a4521b56dc3545d48257c7

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ALL + COUNT( * ) + + 94 + - COUNT( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + COUNT ( * ) + + 94 + - COUNT ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL MIN( DISTINCT - 19 ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL MIN ( DISTINCT - 19 ) FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - - MAX( 13 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7685
SELECT - - MAX ( 13 ) FROM tab0 AS cor0
----
13

query II rowsort
SELECT + col0 + + col2 + + 62, 72 / col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7687
SELECT CAST( + col0 AS SIGNED ) AS col1, ( - + col0 ) FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-7687
SELECT CAST ( + col0 AS INTEGER ) AS col1, ( - + col0 ) FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT ALL - col1 DIV + col2 + - + col0 col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7688
SELECT ALL - col1 / + col2 + - + col0 col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col2 * - 43 FROM tab0 AS cor0 WHERE 25 * - col2 IN ( + col0, + col2, - 47, 53, - - col0 / ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT 12 + - - ( - MAX( ALL 54 ) ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT 12 + - - ( - MAX ( ALL 54 ) ) FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL + 60 - MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + 60 - MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
106

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 28 IS NULL
----

query I rowsort
SELECT DISTINCT + 23 + + col2 FROM tab2
----
46
63
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT - col0 + - col0 + - 50 / + + 0 + - ( 4 ) FROM tab2 WHERE NULL IS NULL AND NOT ( NULL ) <> - 60 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-7694
SELECT - col0 + - col0 + - 50 / + + 0 + - ( 4 ) FROM tab2 WHERE NULL IS NULL AND NOT ( NULL ) <> - 60 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 64 - - - col0 AS col0 FROM tab0
----
-23
-33
49

query II rowsort
SELECT DISTINCT - ( + 56 ) - col1 AS col2, col2 + col1 AS col0 FROM tab2
----
-107
74
-123
125
-133
117

onlyif mysql # DIV for integer division: 
query II rowsort label-7697
SELECT col0 DIV + col2 - - - col0, col1 AS col2 FROM tab2
----
-44
51
-63
77
-74
67

skipif mysql # not compatible
query II rowsort label-7697
SELECT col0 / + col2 - - - col0, col1 AS col2 FROM tab2
----
-44
51
-63
77
-74
67

query I rowsort
SELECT DISTINCT + 79 - - col2 AS col0 FROM tab2 AS cor0
----
102
119
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT + CAST( NULL AS SIGNED ) - col2 + - - 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT + CAST ( NULL AS INTEGER ) - col2 + - - 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 29 + + col2 FROM tab1 AS cor0 WHERE NOT - 72 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7701
SELECT - col0 AS col0, - 27 + - + col2 DIV + ( 43 ) FROM tab0 AS cor0
----
-15
-28
-87
-27
-97
-29

skipif mysql # not compatible
query II rowsort label-7701
SELECT - col0 AS col0, - 27 + - + col2 / + ( 43 ) FROM tab0 AS cor0
----
-15
-28
-87
-27
-97
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT + col0 DIV + + 12 FROM tab1 AS cor0
----
4
7
7

skipif mysql # not compatible
query I rowsort label-7702
SELECT + col0 / + + 12 FROM tab1 AS cor0
----
4
7
7

query I rowsort
SELECT ALL - 51 * - col0 AS col0 FROM tab0 AS cor0
----
4437
4947
765

query I rowsort
SELECT DISTINCT + + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 26 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7705
SELECT ( 45 ) * CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - - 89 + + ( + - 67 ) * - - 61 NOT IN ( col0, - 82, 57 + + 53 )
----

skipif mysql # not compatible
query I rowsort label-7705
SELECT ( 45 ) * CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - - 89 + + ( + - 67 ) * - - 61 NOT IN ( col0, - 82, 57 + + 53 )
----

query I rowsort
SELECT DISTINCT AVG ( ALL + col0 ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT COUNT( ALL - col0 ) * + + 54 AS col1 FROM tab2 cor0
----
162

skipif mysql # not compatible
query I rowsort label-7707
SELECT COUNT ( ALL - col0 ) * + + 54 AS col1 FROM tab2 cor0
----
162

query I rowsort
SELECT ALL 96 AS col1 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - - 12 AS col0 FROM tab1 AS cor0 WHERE - 23 BETWEEN + col2 + - - 95 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 - ( + + 90 ) * col0 + + col1 col1 FROM tab1 AS cor0
----
-3232
-4947
-7350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - col1 - + col1
----

query I rowsort
SELECT + 16 * - ( ( - + col2 ) ) AS col1 FROM tab0
----
1584
160
752

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT SUM( ALL + + 31 ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7713
SELECT SUM ( ALL + + 31 ) AS col0 FROM tab1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT + col1 DIV 33 * - col2 * col2 AS col0 FROM tab2
----
-3200
-529
-6728

skipif mysql # not compatible
query I rowsort label-7714
SELECT + col1 / 33 * - col2 * col2 AS col0 FROM tab2
----
-3200
-529
-6728

query I rowsort
SELECT ALL - 95 * - col0 FROM tab1
----
4845
8075
8645

query I rowsort
SELECT ALL - ( - + col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT DISTINCT col1 DIV 50 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT col1 / 50 AS col2 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT DISTINCT - + CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 28 FROM tab1 cor0 WHERE NULL <> + 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT - + MIN( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE + 61 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT - + MIN ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE + 61 = NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 4 AS col1 FROM tab1 AS cor0
----
18
51
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col2 * + 33 col2 FROM tab1 cor0
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT - COUNT( * ) - + MIN( ALL + 55 ) + COUNT( * ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT - COUNT ( * ) - + MIN ( ALL + 55 ) + COUNT ( * ) AS col0 FROM tab2
----
-55

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( - col1, + 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT COUNT( * ) * - COUNT( * ) - MIN( ALL + - col0 ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) - MIN ( ALL + - col0 ) AS col2 FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT + 41 + + 9 + - - CAST( ( - col0 ) AS SIGNED ) + col0 FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-7727
SELECT + 41 + + 9 + - - CAST ( ( - col0 ) AS INTEGER ) + col0 FROM tab1
----
50
50
50

query II rowsort
SELECT - col1 * + ( + col0 ) AS col1, - col0 FROM tab0
----
-1215
-15
-1827
-87
-97
-97

query II rowsort
SELECT ALL ( - 11 ) AS col0, col2 * + col0 FROM tab0
----
-11
705
-11
870
-11
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT - - SUM( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL > - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT - - SUM ( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL > - 4
----
NULL

query I rowsort
SELECT ALL - - 50 AS col0 FROM tab0 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT - + MIN( - 57 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT - + MIN ( - 57 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
57

query I rowsort
SELECT 70 * + - col2 * - ( + + 4 ) * - ( col2 ) AS col0 FROM tab2
----
-148120
-448000
-941920

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + + 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7735
SELECT DISTINCT + CAST( NULL AS SIGNED ), 38 * col0 + 32 AS col1 FROM tab2
----
NULL
1780
NULL
2464
NULL
2882

skipif mysql # not compatible
query II rowsort label-7735
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 38 * col0 + 32 AS col1 FROM tab2
----
NULL
1780
NULL
2464
NULL
2882

query I rowsort
SELECT DISTINCT + + col0 / col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 + - 98 >= 62
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT - SUM( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN col2 + - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN col2 + - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT ( + - MIN( DISTINCT + ( - 4 ) ) ) + COUNT( * ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT ( + - MIN ( DISTINCT + ( - 4 ) ) ) + COUNT ( * ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + + 89 + + ( - - SUM( - col1 ) ) + 13 AS col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7740
SELECT + + 89 + + ( - - SUM ( - col1 ) ) + 13 AS col1 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 col0, 0 FROM tab1 AS cor0
----
56
0

query I rowsort
SELECT ALL - ( - col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT 82 * col2 FROM tab0 AS cor0
----
3854
8118
820

query I rowsort
SELECT - col1 + - + col2 AS col2 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL + ( + + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL + ( + + COUNT ( * ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE + + ( col1 ) <> + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < + 48 * - col0 * + 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT - col2 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT - col2 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7749
SELECT ALL + - 25 + MAX( CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + - 25 + MAX ( CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT COUNT( * ) + + 4 AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7750
SELECT COUNT ( * ) + + 4 AS col1 FROM tab2 AS cor0
----
7

query I rowsort
SELECT DISTINCT - col1 * - 66 * col2 - + - col1 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col2 - - 75 + - - col0 * + col1 AS col1 FROM tab1
----
4420
559
885

query I rowsort
SELECT - col1 * + - col0 * + col1 * 66 FROM tab2 AS cor0
----
22220550
25044096
7896636

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT - + col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7754
SELECT - + col2 / + col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7755
SELECT DISTINCT - COUNT( * ) * - + 90 + - + 53 + + COUNT( * ) * 32 col1, 21 + + 35 FROM tab1 AS cor0
----
313
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7755
SELECT DISTINCT - COUNT ( * ) * - + 90 + - + 53 + + COUNT ( * ) * 32 col1, 21 + + 35 FROM tab1 AS cor0
----
313
56

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 AS col2, + col0 * - col1 AS col0 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7758
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 59 * COUNT( * ) + - + 89 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 59 * COUNT ( * ) + - + 89 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT + + col0 DIV + 8 AS col2 FROM tab2 AS cor0
----
5
8
9

skipif mysql # not compatible
query I rowsort label-7759
SELECT + + col0 / + 8 AS col2 FROM tab2 AS cor0
----
5
8
9

query I rowsort
SELECT + + col0 * 67 + + col1 FROM tab1 AS cor0
----
3431
5700
6144

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND col0 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT MIN( ALL - col1 ) FROM tab0 WHERE NOT + + col1 + + - col0 IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-7762
SELECT MIN ( ALL - col1 ) FROM tab0 WHERE NOT + + col1 + + - col0 IS NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT - 39 * + MAX( DISTINCT col0 ) AS col1 FROM tab0
----
-3783

skipif mysql # not compatible
query I rowsort label-7763
SELECT - 39 * + MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
-3783

query III rowsort
SELECT * FROM tab2 WHERE NOT 68 >= NULL
----

query II rowsort
SELECT 82 AS col1, - 91 FROM tab2
----
82
-91
82
-91
82
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7766
SELECT - COUNT( * ) AS col2, + MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-3
96

skipif mysql # not compatible
query II rowsort label-7766
SELECT - COUNT ( * ) AS col2, + MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
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-7767
SELECT ALL + COUNT ( col1 ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 / - col2 / + - 51 - + + col1 + 96 - + ( + 5 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT COUNT( ALL - - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7770
SELECT COUNT ( ALL - - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT MIN( col2 ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-7771
SELECT MIN ( col2 ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7772
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 87 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - MIN( ALL + + 80 ) + + COUNT( * ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - MIN ( ALL + + 80 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-77

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ( - - 65 ) AS col0 FROM tab0
----
65
65
65

query I rowsort
SELECT + col0 + + + col2 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > 80
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 + - + 28 col1 FROM tab2
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT DISTINCT - 74 DIV + 38 + - - col2 + + col0 + - col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT - 74 / + 38 + - - col2 + + col0 + - col0 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT DISTINCT + col0 * + col2 + - - col2 + 14 FROM tab0 AS cor0
----
766
894
9716

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT ALL + col1 DIV - 70 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + col1 / - 70 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 64 * - 56 * 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1dd545ca2409bf26eab8ae76ddd465f0

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 * + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 30 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT col1 / - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7789
SELECT + - COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7789
SELECT + - COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT DISTINCT COUNT( * ) DIV - + MIN( 77 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7790
SELECT DISTINCT COUNT ( * ) / - + MIN ( 77 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT + 42 DIV - col0 * + + 94 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT + 42 / - col0 * + + 94 AS col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab2
----
42
42
42

query I rowsort
SELECT + ( 61 ) AS col1 FROM tab0
----
61
61
61

query II rowsort
SELECT + col1, + 6 AS col2 FROM tab0
----
1
6
21
6
81
6

query II rowsort
SELECT ALL + col1, 25 + + + ( + + col1 ) FROM tab2 cor0
----
51
76
67
92
77
102

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT + ( - col1 ) DIV 70 * + + ( + - col2 ) FROM tab2 cor0
----
0
0
40

skipif mysql # not compatible
query I rowsort label-7796
SELECT + ( - col1 ) / 70 * + + ( + - col2 ) FROM tab2 cor0
----
0
0
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab2
----
48
48
48

query II rowsort
SELECT + col0, 46 AS col1 FROM tab0
----
15
46
87
46
97
46

query I rowsort
SELECT - + 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col0 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 3 + col2 AS col2 FROM tab2 AS cor0
----
26
43
61

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE + 26 + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL + 84 + + col0 AS col2 FROM tab1 AS cor0
----
135
169
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT - - 63 + COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT - - 63 + COUNT ( * ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL col2 + + + 8 AS col0 FROM tab0 AS cor0
----
107
18
55

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - + 77 NOT BETWEEN NULL AND + + col2 * - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 + + 31 AS col1 FROM tab0 AS cor0
----
-56
-66
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - 28 col2 FROM tab1 AS cor0
----
51
-28
85
-28
91
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT - - col2 + + + ( col2 ) FROM tab2 WHERE - 25 * 26 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7811
SELECT - - col2 + + + ( col2 ) FROM tab2 WHERE - 25 * 26 = - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL 55 * - col0 * - + col1, - 9 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT 46 DIV 48 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT 46 / 48 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL - MIN( ALL + - col2 ) * - COUNT( * ) - 63 AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
-237

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - MIN ( ALL + - col2 ) * - COUNT ( * ) - 63 AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
-237

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ALL + col2 + col0 + - ( + col0 ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - col1 + 49 AS col1 FROM tab1 AS cor0
----
2
35
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + + + COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + + + COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT - - 83 + - 15 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT * FROM tab0 WHERE + + ( + col1 ) = NULL
----

query I rowsort
SELECT ALL + - 62 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT SUM( DISTINCT + - 98 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

skipif mysql # not compatible
query I rowsort label-7822
SELECT SUM ( DISTINCT + - 98 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-7823
SELECT 99, + 43 DIV 37 AS col1 FROM tab1 AS cor0
----
99
1
99
1
99
1

skipif mysql # not compatible
query II rowsort label-7823
SELECT 99, + 43 / 37 AS col1 FROM tab1 AS cor0
----
99
1
99
1
99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7824
SELECT DISTINCT COUNT( * ) * 95 DIV + 27 AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT COUNT ( * ) * 95 / + 27 AS col2 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT - - 90 * COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-7825
SELECT - - 90 * COUNT ( * ) FROM tab1 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL + - MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL + - MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + - SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7827
SELECT + - SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - 3 * - - ( col2 ) * - + col1 AS col2 FROM tab2 AS cor0
----
11658
3519
9240

query I rowsort
SELECT DISTINCT col1 * - ( + 79 ) FROM tab2 cor0
----
-4029
-5293
-6083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) * - + 38 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) * - + 38 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - + COUNT( ALL - + 16 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - + COUNT ( ALL - + 16 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - + col1 * - 19 col0 FROM tab0
----
-124659
-19
-8379

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7833
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - + col1 * - 19 col0 FROM tab0
----
-124659
-19
-8379

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 + - 18 / 30 * - col1 <= - + col0 / + 57 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT DISTINCT - - SUM( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( ( + 25 ) ) * + col1 FROM tab2
----
1275
1675
1925

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + - ( - col0 ) NOT BETWEEN NULL AND - - col2 * + col2 + - - col0
----

query I rowsort
SELECT ALL 79 * + col1 FROM tab2
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + + 48 * + MIN( ALL - col2 ) AS col1 FROM tab0 WHERE NOT - col1 + - 97 = - col2
----
-4752

skipif mysql # not compatible
query I rowsort label-7839
SELECT + + 48 * + MIN ( ALL - col2 ) AS col1 FROM tab0 WHERE NOT - col1 + - 97 = - col2
----
-4752

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT DISTINCT col2 * 19 DIV - col0 AS col2 FROM tab0
----
-19
-2
-59

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT col2 * 19 / - col0 AS col2 FROM tab0
----
-19
-2
-59

query I rowsort
SELECT + - 17 AS col0 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT + CAST( 62 AS SIGNED ) + - + 81 FROM tab1 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-7842
SELECT + CAST ( 62 AS INTEGER ) + - + 81 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT DISTINCT 3 / - 48 * CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT 3 / - 48 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 94 + 19 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + MAX( 14 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7845
SELECT + MAX ( 14 ) FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT - - 75 col1, - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
75
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7846
SELECT - - 75 col1, - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
75
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL + ( + + COUNT( ALL col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + ( + + COUNT ( ALL col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( 27 ) - - col2 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7848
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( 27 ) - - col2 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + 89 FROM tab2 AS cor0
----
112
129
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 + 76 + + - col2 + - 1 + - + 7 col0 FROM tab1 AS cor0
----
-17
-23
17

query I rowsort
SELECT ALL 5 * - col1 - + col2 AS col2 FROM tab0 cor0
----
-104
-115
-452

onlyif mysql # aggregate syntax: 
query II rowsort label-7852
SELECT + COUNT( DISTINCT - + col1 ) + - COUNT( * ) AS col0, ( + + 84 ) FROM tab2 AS cor0
----
0
84

skipif mysql # not compatible
query II rowsort label-7852
SELECT + COUNT ( DISTINCT - + col1 ) + - COUNT ( * ) AS col0, ( + + 84 ) FROM tab2 AS cor0
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT - 3 - - - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - 3 - - - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - 24 * + ( 43 ) + + + 79 AS col2 FROM tab0
----
-953
-953
-953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - col2 + + col0 * + 9 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - col2 + + col0 * + 9 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - - col1 AS col0 FROM tab1
----
10
28
94

query I rowsort
SELECT col1 + - 40 FROM tab0
----
-19
-39
41

query I rowsort
SELECT + col0 + col0 * - + col1 AS col0 FROM tab2
----
-2300
-4864
-4950

query II rowsort
SELECT DISTINCT + 94, col2 AS col0 FROM tab2
----
94
23
94
40
94
58

query I rowsort
SELECT DISTINCT + col0 * - 91 + - 9 FROM tab0 AS cor0
----
-1374
-7926
-8836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT DISTINCT + CAST( SUM( ALL + + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + CAST ( SUM ( ALL + + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 + + 10 col2, col0 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT + - 44 * + 61 * + col2 FROM tab1 AS cor0
----
-158356
-182512
-257664

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT + 2 * - + 31 AS col2, - COUNT( + col2 ) FROM tab2
----
-62
-3

skipif mysql # not compatible
query II rowsort label-7864
SELECT + 2 * - + 31 AS col2, - COUNT ( + col2 ) FROM tab2
----
-62
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT - + col2 * - - 78 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) < - + col0
----

skipif mysql # not compatible
query I rowsort label-7865
SELECT - + col2 * - - 78 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT DISTINCT + col1 col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7866
SELECT DISTINCT + col1 col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7867
SELECT DISTINCT + 93 * + col0, col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
4743
3
7905
17
8463
1

skipif mysql # not compatible
query II rowsort label-7867
SELECT DISTINCT + 93 * + col0, col0 / + col1 AS col1 FROM tab1 AS cor0
----
4743
3
7905
17
8463
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7868
SELECT + ( - - col1 ) DIV - ( - - ( 14 ) ), col2 FROM tab2 cor0
----
-3
23
-4
58
-5
40

skipif mysql # not compatible
query II rowsort label-7868
SELECT + ( - - col1 ) / - ( - - ( 14 ) ), col2 FROM tab2 cor0
----
-3
23
-4
58
-5
40

query I rowsort
SELECT ( + 9 ) AS col2 FROM tab0 AS cor0
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7870
SELECT + 81 * col2 DIV col0 FROM tab1 AS cor0
----
152
56
60

skipif mysql # not compatible
query I rowsort label-7870
SELECT + 81 * col2 / col0 FROM tab1 AS cor0
----
152
56
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * 84 col1 FROM tab1
----
5712
5712
5712

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7872
SELECT * FROM tab0 WHERE NOT col0 * - col1 - 61 + - CAST( NULL AS SIGNED ) * 92 - + 96 - col2 + - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7872
SELECT * FROM tab0 WHERE NOT col0 * - col1 - 61 + - CAST ( NULL AS INTEGER ) * 92 - + 96 - col2 + - - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7873
SELECT DISTINCT ( + COUNT( DISTINCT - 59 ) ) col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7873
SELECT DISTINCT ( + COUNT ( DISTINCT - 59 ) ) col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
1
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 86 NOT BETWEEN 44 AND col0
----
51
14
96
85
5
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - col1 * + + ( 26 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < col2 * + col2 * 47 * + 18 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT + + MIN( - 37 ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7877
SELECT + + MIN ( - 37 ) FROM tab1 AS cor0
----
-37

query I rowsort
SELECT + ( + 25 ) + - col0 AS col0 FROM tab0
----
-62
-72
10

query I rowsort
SELECT ALL col0 + + col2 FROM tab2 WHERE NOT col0 <> + 78
----

query I rowsort
SELECT col2 + 17 * - col1 AS col2 FROM tab0
----
-1330
-347
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT ALL - COUNT( - 0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL - COUNT ( - 0 ) FROM tab1
----
-3

query I rowsort
SELECT + 4 * 35 FROM tab1
----
140
140
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT DISTINCT + col2 + 38 col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) IN ( - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7883
SELECT DISTINCT + col2 + 38 col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - COUNT( * ) * - 17 AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7884
SELECT - COUNT ( * ) * - 17 AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + COUNT( * ) * ( + 74 ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-7885
SELECT + COUNT ( * ) * ( + 74 ) FROM tab0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT DISTINCT COUNT( * ) * - 2 AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT COUNT ( * ) * - 2 AS col0 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab1 WHERE + col0 <= NULL
----

query I rowsort
SELECT ALL + 59 + + col1 * + col2 FROM tab1
----
1403
3255
354

query I rowsort
SELECT + col2 * 39 AS col1 FROM tab1
----
2301
2652
3744

query III rowsort
SELECT * FROM tab1 WHERE 92 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col1 * + 92 AS col1 FROM tab1
----
1288
4324
460

query I rowsort
SELECT 14 * 7 FROM tab2
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT ALL ( - 77 ) DIV col2 + 3 AS col0 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL ( - 77 ) / col2 + 3 AS col0 FROM tab2
----
0
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT CAST( NULL AS SIGNED ) + + 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT CAST ( NULL AS INTEGER ) + + 61 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT CAST( col1 AS SIGNED ) + - col2 AS col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-7895
SELECT CAST ( col1 AS INTEGER ) + - col2 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT MAX( + 72 ) AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7896
SELECT MAX ( + 72 ) AS col1 FROM tab2
----
72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <= ( + col2 )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE + 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT - col1 DIV col1 AS col0 FROM tab0 WHERE ( col1 ) * - 77 NOT BETWEEN 73 AND - col2 + col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7900
SELECT - col1 / col1 AS col0 FROM tab0 WHERE ( col1 ) * - 77 NOT BETWEEN 73 AND - col2 + col2
----
-1
-1
-1

query I rowsort
SELECT ALL 88 * + col2 FROM tab1
----
5192
5984
8448

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE col2 IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + - col0 > - 92 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * + col2 col0 FROM tab0
----
2632
5544
560

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT ALL - 48 DIV col2 AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - 48 / col2 AS col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT + col0 * + col0 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
2601
7225
8281

query I rowsort
SELECT ALL + col1 - ( col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 57 * - 67 + ( 62 ) AS col0 FROM tab1 AS cor0
----
-3757
-3757
-3757

query I rowsort
SELECT - col2 * + col0 FROM tab2 AS cor0 WHERE col2 <= ( + 78 )
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + col2 + + 86 FROM tab0 AS cor0
----
133
185
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7911
SELECT DISTINCT SUM( ALL - col2 ) DIV + ( 56 + 69 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT SUM ( ALL - col2 ) / + ( 56 + 69 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL SUM( DISTINCT col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT col2 * + col2 AS col2 FROM tab0 WHERE - col2 >= + col2 / - col0 + - col2
----
100
2209
9801

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE 8 + + col1 IS NULL
----

query I rowsort
SELECT ALL - AVG ( + col2 ) FROM tab2 AS cor0 WHERE NOT 67 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL + MAX( 71 ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + MAX ( 71 ) FROM tab1 AS cor0
----
71

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - col0 * col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) BETWEEN col0 + + 80 AND ( - col1 * + 55 + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) BETWEEN col0 + + 80 AND ( - col1 * + 55 + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + + 48 * - COUNT( * ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-7921
SELECT + + 48 * - COUNT ( * ) FROM tab2 AS cor0
----
-144

query I rowsort
SELECT ALL + 74 FROM tab0 AS cor0 WHERE NOT - 14 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + 4 * - COUNT( ALL + col0 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7924
SELECT + 4 * - COUNT ( ALL + col0 ) FROM tab1
----
-12

query III rowsort
SELECT * FROM tab1 WHERE NOT 53 * col2 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT - CAST( - + 55 AS SIGNED ) FROM tab0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-7926
SELECT - CAST ( - + 55 AS INTEGER ) FROM tab0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT - col2 * col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT - col2 * col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7928
SELECT + CAST( - ( - 37 ) AS DECIMAL ) FROM tab1 WHERE NOT - col1 <= + ( 25 )
----

skipif mysql # not compatible
query I rowsort label-7928
SELECT + CAST ( - ( - 37 ) AS REAL ) FROM tab1 WHERE NOT - col1 <= + ( 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + MIN( + + 32 ) + COUNT( * ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7929
SELECT + MIN ( + + 32 ) + COUNT ( * ) FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT DISTINCT + + 30 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT + + 30 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( + 93 ) + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-612
-777
-9510

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL - + SUM( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL - + SUM ( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT CAST( NULL AS SIGNED ) * col1 / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT CAST ( NULL AS INTEGER ) * col1 / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7934
SELECT DISTINCT - 70 + + COUNT( * ) * - 57 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT - 70 + + COUNT ( * ) * - 57 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 31 ) col0 FROM tab1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7936
SELECT ALL * FROM tab0 WHERE NOT NULL = - - CAST( NULL AS SIGNED ) / col1 + 92 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7936
SELECT ALL * FROM tab0 WHERE NOT NULL = - - CAST ( NULL AS INTEGER ) / col1 + 92 * + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - 31, + col1 FROM tab0 AS cor0
----
-31
1
-31
21
-31
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT - - 61 * + + col1 * + - CAST( NULL AS SIGNED ) + + 59 * + 36 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - - 61 * + + col1 * + - CAST ( NULL AS INTEGER ) + + 59 * + 36 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - MIN( DISTINCT ( + col1 ) ) * + 16 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7939
SELECT - MIN ( DISTINCT ( + col1 ) ) * + 16 FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7940
SELECT ALL * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) < + col0 * + 99
----

skipif mysql # not compatible
query III rowsort label-7940
SELECT ALL * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) < + col0 * + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL + col2 + col2 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / + 8 IS NULL
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + col2 + col2 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + 8 IS NULL
----
118
136
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 84 AND 36 + col1 * col1
----

query I rowsort
SELECT + + col0 - - col2 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL col2 * + col1 + + CAST( NULL AS SIGNED ) + + 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL col2 * + col1 + + CAST ( NULL AS INTEGER ) + + 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 / - 54 * - ( - 46 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE ( ( col2 ) ) < ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 + - 64 col2 FROM tab2
----
1109
3016
3822

query I rowsort
SELECT 2 + - - ( col0 ) FROM tab1
----
53
87
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT DISTINCT col2 * - CAST( 71 AS SIGNED ) + + col2 FROM tab1
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT col2 * - CAST ( 71 AS INTEGER ) + + col2 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT - col2 - - col2 + + - 92 AS col1 FROM tab0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT + ( + - 47 ) * - 8 * 25 + - col2 + 77 DIV 27 FROM tab2
----
9344
9362
9379

skipif mysql # not compatible
query I rowsort label-7953
SELECT + ( + - 47 ) * - 8 * 25 + - col2 + 77 / 27 FROM tab2
----
9344
9362
9379

query I rowsort
SELECT 40 * + col2 FROM tab1 WHERE col0 = col1
----

query I rowsort
SELECT DISTINCT 90 * - col1 * + col1 * col0 FROM tab2
----
-10768140
-30300750
-34151040

query I rowsort
SELECT ALL - col2 * + ( - 58 ) AS col1 FROM tab1
----
3422
3944
5568

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) NOT BETWEEN NULL AND - 58 - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7958
SELECT DISTINCT COUNT( * ) * + + 60 - - COUNT( + 67 ) DIV - 24 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT COUNT ( * ) * + + 60 - - COUNT ( + 67 ) / - 24 FROM tab2
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT DISTINCT - 47 DIV + 50 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT - 47 / + 50 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT SUM( DISTINCT - 61 ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7960
SELECT SUM ( DISTINCT - 61 ) AS col1 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN - - col0 AND - col2 * 5 )
----

query I rowsort
SELECT + col0 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + + COUNT( * ) * + - 83 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-7963
SELECT + + COUNT ( * ) * + - 83 FROM tab2 AS cor0
----
-249

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 + + + 5 + - col0 ) <> ( - col1 * col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 40 IN ( + col1 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7966
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 20 / CAST( - col0 AS SIGNED ) * + col0 + col0 AND ( 81 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-7966
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 20 / CAST ( - col0 AS INTEGER ) * + col0 + col0 AND ( 81 * + col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col1 FROM tab0 cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT + CAST( - 31 AS SIGNED ) + col1 + - 33 AS col1 FROM tab0 AS cor0
----
-43
-63
17

skipif mysql # not compatible
query I rowsort label-7969
SELECT + CAST ( - 31 AS INTEGER ) + col1 + - 33 AS col1 FROM tab0 AS cor0
----
-43
-63
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT - + col1 DIV 13 FROM tab2 AS cor0
----
-3
-5
-5

skipif mysql # not compatible
query I rowsort label-7970
SELECT - + col1 / 13 FROM tab2 AS cor0
----
-3
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT COUNT( * ) * - - ( - 60 ) * COUNT( * ) FROM tab1 cor0
----
-540

skipif mysql # not compatible
query I rowsort label-7971
SELECT COUNT ( * ) * - - ( - 60 ) * COUNT ( * ) FROM tab1 cor0
----
-540

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 64 AS col1, + 16 AS col2 FROM tab1
----
64
16

query I rowsort
SELECT + col0 * - + col1 * + col2 AS col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL - col1 + + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7975
SELECT ALL - col1 + + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL - + 9 + + - COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL - + 9 + + - COUNT ( * ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT DISTINCT 46 FROM tab2 AS cor0 WHERE NOT - 8 * - + col1 IS NULL
----
46

query I rowsort
SELECT DISTINCT col2 + + + 73 AS col0 FROM tab0 AS cor0
----
120
172
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7980
SELECT ALL MIN( 5 ) FROM tab2 WHERE NOT col0 / - col0 * + CAST( - col0 AS DECIMAL ) + - col1 - col2 < - col1 / - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL MIN ( 5 ) FROM tab2 WHERE NOT col0 / - col0 * + CAST ( - col0 AS REAL ) + - col1 - col2 < - col1 / - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT MAX( DISTINCT - - col2 ) + - 44 + + 27 AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-7981
SELECT MAX ( DISTINCT - - col2 ) + - 44 + + 27 AS col2 FROM tab0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT + col2 + CAST( + ( - + col1 ) AS SIGNED ) FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-7982
SELECT + col2 + CAST ( + ( - + col1 ) AS INTEGER ) FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT - 92 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT DISTINCT + col1 * 78 + - - col0 + - col2 + col1 + + col1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + col1 * 78 + - - col0 + - col2 + col1 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT DISTINCT + CAST( + - MAX( 63 ) AS SIGNED ) * - - 31 FROM tab0 AS cor0
----
-1953

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT + CAST ( + - MAX ( 63 ) AS INTEGER ) * - - 31 FROM tab0 AS cor0
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT - COUNT( * ) + - + CAST( 40 AS SIGNED ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT - COUNT ( * ) + - + CAST ( 40 AS INTEGER ) FROM tab2 AS cor0
----
-43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 37 ) IS NULL
----

query I rowsort
SELECT - col2 * + ( + - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT col2 AS col1 FROM tab2 WHERE + col2 + + CAST( + col1 AS SIGNED ) / col2 + - + col0 + - col2 / col0 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7989
SELECT col2 AS col1 FROM tab2 WHERE + col2 + + CAST ( + col1 AS INTEGER ) / col2 + - + col0 + - col2 / col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL 4 FROM tab0 WHERE ( - + 79 ) IS NOT NULL
----
4
4
4

query I rowsort
SELECT - col2 - 21 * - col2 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL col1 * - + 17 * - col1 - - col0 AS col1 FROM tab1
----
3383
37644
510

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT - 20 * - COUNT( * ) AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT - 20 * - COUNT ( * ) AS col2 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL COUNT( * ) * - - ( 6 ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL COUNT ( * ) * - - ( 6 ) AS col2 FROM tab0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT DISTINCT col1 DIV + 83 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT col1 / + 83 AS col2 FROM tab2
----
0

query I rowsort
SELECT - - col1 * - 26 + + col0 AS col0 FROM tab2 AS cor0
----
-1280
-1667
-1938

query I rowsort
SELECT ALL + 76 * + + ( - + 38 ) FROM tab1 AS cor0
----
-2888
-2888
-2888

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) NOT IN ( - 55 )
----

query II rowsort
SELECT ALL + + col2, - col1 * - 40 AS col1 FROM tab2 AS cor0
----
23
2040
40
3080
58
2680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT + 59 DIV 42 * + + MAX( ALL + ( col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8000
SELECT + 59 / 42 * + + MAX ( ALL + ( col2 ) ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 82 / + 46 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + col1 col1 FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT + 89 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL > ( NULL )
----

query I rowsort
SELECT col1 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col1 + + col0, 88 * 44 AS col2 FROM tab1 cor0
----
138
3872
65
3872
90
3872

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 10 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col1 * 82 AND ( + + col0 ) AND NOT + - col1 * col2 IN ( - 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT 11 + 23 * COUNT( * ) col2 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT 11 + 23 * COUNT ( * ) col2 FROM tab0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8012
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col1 + - col1 * - col0 FROM tab1
----
430
4324
728

query I rowsort
SELECT ALL col2 * 32 + + - col1 - - col2 + - col1 + + 20 FROM tab1
----
1957
2170
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ( + + MIN( - col1 ) ) + - 97 col1 FROM tab0
----
-178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8015
SELECT ( + + MIN ( - col1 ) ) + - 97 col1 FROM tab0
----
-178

query I rowsort
SELECT DISTINCT ( + ( + 81 ) ) AS col0 FROM tab2
----
81

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NULL >= ( + ( + - 40 ) * + col1 / + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT + ( + + ( - MIN( - - col0 ) ) ) + 52 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + ( + + ( - MIN ( - - col0 ) ) ) + 52 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - 75 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-75

query I rowsort
SELECT ALL 91 - + ( - - 42 ) AS col0 FROM tab2
----
49
49
49

query II rowsort
SELECT + col1 AS col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT + + COUNT( * ) + + - COUNT( * ) col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8023
SELECT + + COUNT ( * ) + + - COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT + 99 + - col1 AS col0 FROM tab0 cor0
----
18
78
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT DISTINCT - CAST( 40 AS SIGNED ) + + 5 AS col1 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - CAST ( 40 AS INTEGER ) + + 5 AS col1 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT 59 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
59
3

skipif mysql # not compatible
query II rowsort label-8026
SELECT 59 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
59
3

query I rowsort
SELECT DISTINCT - col1 * - - 60 FROM tab0
----
-1260
-4860
-60

query I rowsort
SELECT DISTINCT + 31 * col0 FROM tab0
----
2697
3007
465

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + COUNT( * ) + + 80 AS col2 FROM tab1, tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-8029
SELECT + COUNT ( * ) + + 80 AS col2 FROM tab1, tab0 cor0
----
89

query I rowsort
SELECT + ( - col2 ) * - col2 * 57 AS col2 FROM tab2
----
191748
30153
91200

query I rowsort
SELECT ALL 78 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
78
78
78

query I rowsort
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT 37 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col0 * - col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT - col2 DIV + ( - col2 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8034
SELECT - col2 / + ( - col2 ) AS col0 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL - + 70, col0 * + + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-70
1215
-70
1827
-70
97

query I rowsort
SELECT ALL + - 47 + + col1 FROM tab2 AS cor0
----
20
30
4

query I rowsort
SELECT + 98 + + + col0 FROM tab0 AS cor0
----
113
185
195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 + col0 / + - col2 * + ( + col1 ) + + col2 + - + col1 > 87
----
15
81
47
87
21
10

query I rowsort
SELECT + col1 * - col0 + - - 34 * - ( 17 ) AS col1 FROM tab0 AS cor0
----
-1793
-2405
-675

query I rowsort
SELECT - col0 + + - 95 AS col1 FROM tab0 cor0
----
-110
-182
-192

query II rowsort
SELECT + 32, col2 AS col0 FROM tab1 cor0
----
32
59
32
68
32
96

query I rowsort
SELECT ( col1 ) * - - col2 - - - col0 * - col1 FROM tab2 AS cor0
----
3519
8008
8911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT DISTINCT col1 * + 83 / + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT col1 * + 83 / + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT + col2, col1 AS col1 FROM tab1 WHERE 37 IS NOT NULL
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN ( col1 ) AND col2 / - + col0
----

query I rowsort
SELECT ALL - - col0 * col0 + + 37 FROM tab1 AS cor0
----
2638
7262
8318

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT COUNT( * ) * COUNT( * ) - + + 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-8048
SELECT COUNT ( * ) * COUNT ( * ) - + + 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col0 * + 99 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT DISTINCT + - COUNT( 80 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + - COUNT ( 80 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + SUM( DISTINCT + col2 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-8051
SELECT + SUM ( DISTINCT + col2 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-363

query I rowsort
SELECT - ( + 67 ) AS col1 FROM tab0 cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8053
SELECT - CAST( NULL AS DECIMAL ) * 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT - CAST ( NULL AS REAL ) * 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col2 * + col1
----

query II rowsort
SELECT 96 AS col2, col2 * + 16 FROM tab1
----
96
1088
96
1536
96
944

query II rowsort
SELECT - col1, col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

query II rowsort
SELECT DISTINCT col2 AS col1, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT DISTINCT - COUNT( * ), + COUNT( * ) + + 45 AS col2 FROM tab2
----
-3
48

skipif mysql # not compatible
query II rowsort label-8058
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) + + 45 AS col2 FROM tab2
----
-3
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - MIN( 37 ) AS col2 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8060
SELECT - MIN ( 37 ) AS col2 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT + + col2 * + 91 FROM tab2 AS cor0
----
2093
3640
5278

query I rowsort
SELECT ( + - 76 ) FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL - - 78 * ( + 94 ) FROM tab0 AS cor0
----
7332
7332
7332

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL - MAX( - ( + - col1 ) ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - MAX ( - ( + - col1 ) ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8066
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - 10 ) + + + col2 + - col1 FROM tab1 cor0
----
31
64
92

query I rowsort
SELECT ALL + col2 + - + 52 AS col0 FROM tab0 cor0
----
-42
-5
47

query II rowsort
SELECT ALL 55 + - col0 AS col0, - 76 + + - col2 FROM tab2 AS cor0
----
-20
-134
-9
-116
9
-99

query I rowsort
SELECT - 79 * col0 * + + col1 + + - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-185357
-389352
-397033

query II rowsort
SELECT ALL col2 - - - col1 / col2, 23 FROM tab0 WHERE NOT NULL <> - ( col1 ) + - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * col2 * - 9 + - + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT col0 + CAST( 49 AS SIGNED ) + + 97 / - CAST( NULL AS SIGNED ) * + + col0 / - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT col0 + CAST ( 49 AS INTEGER ) + + 97 / - CAST ( NULL AS INTEGER ) * + + col0 / - col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + ( + - 21 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT ALL + + 73 * col1 - + 47 * CAST( NULL AS SIGNED ) / + col0 + + col2 * + 86 * + + col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + + 73 * col1 - + 47 * CAST ( NULL AS INTEGER ) / + col0 + + col2 * + 86 * + + col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col2 )
----

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE 86 * - ( + - col2 ) NOT BETWEEN + - col0 * 84 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - + col2 col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL 86 + - COUNT( + col1 ) AS col0 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL 86 + - COUNT ( + col1 ) AS col0 FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL SUM( + 13 ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL SUM ( + 13 ) AS col0 FROM tab0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT - col2 * + - col1 - - 84 + - col1 DIV + 55 FROM tab1
----
1428
3280
379

skipif mysql # not compatible
query I rowsort label-8081
SELECT - col2 * + - col1 - - 84 + - col1 / + 55 FROM tab1
----
1428
3280
379

query I rowsort
SELECT DISTINCT + + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT MIN( col2 ) * 38 AS col1 FROM tab1
----
2242

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT MIN ( col2 ) * 38 AS col1 FROM tab1
----
2242

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT + col1 DIV col2 * + + 93 AS col0 FROM tab0 AS cor0
----
0
186
93

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + col1 / col2 * + + 93 AS col0 FROM tab0 AS cor0
----
0
186
93

query I rowsort
SELECT DISTINCT + + col0 * 27 + - + 15 + 13 * - col2 FROM tab1 AS cor0
----
114
1513
1558

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 / 86 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE NOT ( NOT 78 IS NOT NULL )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT ALL 2 + - - col1 / CAST( - col1 AS SIGNED ) * col0 FROM tab2 WHERE ( col0 + - col1 * - col0 * - 15 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL 2 + - - col1 / CAST ( - col1 AS INTEGER ) * col0 FROM tab2 WHERE ( col0 + - col1 * - col0 * - 15 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL + ( ( - SUM( - col2 ) ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL + ( ( - SUM ( - col2 ) ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT DISTINCT - 84 AS col2, + COUNT( * ) + + 45 AS col1 FROM tab0
----
-84
48

skipif mysql # not compatible
query II rowsort label-8091
SELECT DISTINCT - 84 AS col2, + COUNT ( * ) + + 45 AS col1 FROM tab0
----
-84
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 87 col1, col1 AS col1 FROM tab2
----
87
51
87
67
87
77

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - col1 * + 54 + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT + MIN( ALL + - CAST( NULL AS SIGNED ) ) * 45 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * 45 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 87 * col1 AS col1 FROM tab2
----
4437
5829
6699

query III rowsort
SELECT * FROM tab2 WHERE - 56 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + + col1 ) col2 FROM tab0 AS cor0 WHERE col0 - + col2 / col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8097
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + + col1 ) col2 FROM tab0 AS cor0 WHERE col0 - + col2 / col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 * - - 92 )
----

query I rowsort
SELECT col0 + - + ( + - col1 ) FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT + - COUNT( - 78 ) + + - 44 AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8100
SELECT + - COUNT ( - 78 ) + + - 44 AS col0 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT col2 * 38 + - + col0 * - col2 + - col2 + + col2 * - col1, col2 AS col1 FROM tab1 AS cor0
----
5508
68
6903
59
7104
96

query I rowsort
SELECT 27 + - + col0 + 33 + col2 * col0 - - 75 AS col2 FROM tab0 AS cor0
----
825
918
9641

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + - 40 AS col1 FROM tab0 AS cor0
----
-30
59
7

query I rowsort
SELECT ALL - 62 + + - col2 FROM tab0 AS cor0
----
-109
-161
-72

query I rowsort
SELECT + 83 * - + col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT ALL - 98 * - - ( - 64 ) + 24 * 21 AS col0 FROM tab0 AS cor0
----
6776
6776
6776

query II rowsort
SELECT DISTINCT + col1 * + col1 AS col2, - col2 FROM tab0 AS cor0
----
1
-99
441
-10
6561
-47

query I rowsort
SELECT + col1 * + col2 * - - col2 + - - 12 * + col2 FROM tab1 AS cor0
----
130176
18113
218144

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE + 50 + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - col0 < - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8112
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8112
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - 49 * - 17 FROM tab0 AS cor0
----
833
833
833

query II rowsort
SELECT DISTINCT col0 * - col2 - - col2 AS col0, col2 AS col2 FROM tab0 AS cor0
----
-658
47
-860
10
-9504
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8116
SELECT ALL - 66 * + + 81 * COUNT( * ) AS col2, - COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab2 cor0
----
-16038
1

skipif mysql # not compatible
query II rowsort label-8116
SELECT ALL - 66 * + + 81 * COUNT ( * ) AS col2, - COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-16038
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( - - 91 ) ) col1 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + 45 / + + col2 * + col0 + - col2 + + 35, + col0, - - 77, col2 )
----

query I rowsort
SELECT - + col1 * 43 AS col1 FROM tab2 cor0
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - COUNT( * ) * - ( - 16 ) * - - 75 * + 82 AS col0 FROM tab1 AS cor0
----
-295200

skipif mysql # not compatible
query I rowsort label-8121
SELECT - COUNT ( * ) * - ( - 16 ) * - - 75 * + 82 AS col0 FROM tab1 AS cor0
----
-295200

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 = - + 32 * + - col1 * + - 94
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 = - + 32 * + - col1 * + - 94
----
0

query II rowsort
SELECT col0, + ( + - col1 ) AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL MIN( ALL + 3 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL MIN ( ALL + 3 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col2 * col2 * - + 31 AS col2 FROM tab1
----
-107911
-143344
-285696

query I rowsort
SELECT col1 * + 87 FROM tab1
----
1218
4089
435

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 99 / ( - 10 ) + col0 + - + 70 NOT BETWEEN + col2 * - 83 - + 15 + + col2 + col1 + + col1 / + ( - 6 ) * col0 AND - - 72
----

query I rowsort
SELECT ALL 35 + + col2 AS col0 FROM tab0 AS cor0
----
134
45
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + col1 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT - 16 + + 39 DIV 40 * col0 FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-8132
SELECT - 16 + + 39 / 40 * col0 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - - ( ( + col2 ) ) * + 60 + - + col2 * + col2 FROM tab0 cor0
----
-3861
500
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8134
SELECT ( + - CAST( NULL AS SIGNED ) ) * col1 + + ( + 94 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT ( + - CAST ( NULL AS INTEGER ) ) * col1 + + ( + 94 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 70 BETWEEN - 4 / 6 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8136
SELECT ALL + 15 * + 75 AS col1, - CAST( NULL AS SIGNED ) * MIN( DISTINCT - col2 ) col0 FROM tab2
----
1125
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8136
SELECT ALL + 15 * + 75 AS col1, - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - col2 ) col0 FROM tab2
----
1125
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT ALL - CAST( col1 AS SIGNED ) - - col0 + - col0 * 39 * + 92 FROM tab1
----
-182951
-304900
-326464

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - CAST ( col1 AS INTEGER ) - - col0 + - col0 * 39 * + 92 FROM tab1
----
-182951
-304900
-326464

query I rowsort
SELECT ALL col1 * - 98 FROM tab0
----
-2058
-7938
-98

query II rowsort
SELECT ALL + - col2 + 98 + + col2, col0 FROM tab1 WHERE + 69 * col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT ALL MAX( ALL + 60 ) DIV ( + MAX( 26 ) ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL MAX ( ALL + 60 ) / ( + MAX ( 26 ) ) AS col1 FROM tab0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT + CAST( NULL AS SIGNED ) * - 46 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT + CAST ( NULL AS INTEGER ) * - 46 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 19 + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8143
SELECT + CAST( NULL AS SIGNED ) * + MAX( ALL + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( ALL + col1 ) FROM tab2
----
NULL

query II rowsort
SELECT + col0 AS col2, + ( - 79 ) * - col2 FROM tab1 AS cor0
----
51
7584
85
4661
91
5372

query I rowsort
SELECT DISTINCT - AVG ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 42 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT + 57 * - col2 FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT ALL + 54 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 39 + + + 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT 69 DIV ( - 54 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-8149
SELECT 69 / ( - 54 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8151
SELECT DISTINCT + - SUM( ALL - col1 ) col2, 31 FROM tab2 AS cor0
----
195
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8151
SELECT DISTINCT + - SUM ( ALL - col1 ) col2, 31 FROM tab2 AS cor0
----
195
31

query I rowsort
SELECT + 37 * + 69 AS col1 FROM tab1 cor0
----
2553
2553
2553

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - 1 + + + col0 + 32
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT COUNT( * ) DIV + 60 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT COUNT ( * ) / + 60 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT col1 DIV - 82 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT col1 / - 82 FROM tab0
----
0
0
0

query I rowsort
SELECT - 64 * + 58 AS col2 FROM tab1
----
-3712
-3712
-3712

query II rowsort
SELECT col2 AS col1, + 27 * + col1 FROM tab0
----
10
567
47
2187
99
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT 73 DIV + 50 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8158
SELECT 73 / + 50 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT - + col2 AS col0, + 15 AS col0 FROM tab1 AS cor0
----
-59
15
-68
15
-96
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 96, col1 col0 FROM tab0 AS cor0
----
96
1
96
21
96
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8162
SELECT CAST( - CAST( + col0 AS DECIMAL ) AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8162
SELECT CAST ( - CAST ( + col0 AS REAL ) AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 69 * col0 FROM tab0
----
1035
6003
6693

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 < 29 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL - COUNT( * ) + + ( - 21 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL - COUNT ( * ) + + ( - 21 ) FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ALL + + 93 + - 87 * - col2 - - - 64 * + col1 FROM tab1 AS cor0
----
3001
4906
7549

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL - ( + ( MIN( DISTINCT + col2 ) ) ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL - ( + ( MIN ( DISTINCT + col2 ) ) ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + 81 - + col0 - + col1 AS col1 FROM tab1
----
4689
5370
7711

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL 56 - - 5 + - ( + COUNT( * ) ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL 56 - - 5 + - ( + COUNT ( * ) ) FROM tab0
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 48
----

query I rowsort
SELECT - col0 FROM tab1 WHERE col1 BETWEEN + + col2 AND + col1
----

query I rowsort
SELECT DISTINCT 54 - 94 AS col1 FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT + MAX( + 69 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + MAX ( + 69 ) AS col1 FROM tab1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8175
SELECT - 64 + + ( - CAST( + - COUNT( * ) AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8175
SELECT - 64 + + ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT ALL + CAST( - 92 AS SIGNED ) FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + CAST ( - 92 AS INTEGER ) FROM tab0 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 60, col1 col0 FROM tab0 AS cor0
----
-60
1
-60
21
-60
81

query II rowsort
SELECT 20, col0 AS col0 FROM tab2
----
20
46
20
64
20
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT ALL col1 DIV + 2 AS col0 FROM tab0
----
0
10
40

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL col1 / + 2 AS col0 FROM tab0
----
0
10
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + + COUNT( ALL - col1 ) * + - 0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT + + COUNT ( ALL - col1 ) * + - 0 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 IN ( - col0, - col1 + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + + col2 * - + col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8184
SELECT ALL - COUNT( * ) DIV - 77 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - COUNT ( * ) / - 77 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 16 + col1 col0 FROM tab2 WHERE NOT NULL <> + col0
----

query I rowsort
SELECT ALL - 53 * - col2 AS col0 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT - 41 * 15 + + + col1 AS col2 FROM tab1
----
-568
-601
-610

query I rowsort
SELECT col2 * - + 3 + col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT col0 + + 63 AS col2 FROM tab0
----
150
160
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8190
SELECT - 68 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT - 68 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT ALL + + 24 * col2 DIV col2 AS col0 FROM tab2 cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL + + 24 * col2 / col2 AS col0 FROM tab2 cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8192
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 * - + CAST( - col0 AS SIGNED ) * col2 - - col0 + - - 38 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8192
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 * - + CAST ( - col0 AS INTEGER ) * col2 - - col0 + - - 38 AND NULL
----

query I rowsort
SELECT ALL col0 + + ( + + 3 ) AS col0 FROM tab2
----
49
67
78

query I rowsort
SELECT col1 * ( - 0 ) FROM tab2 WHERE 17 < NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT - 88 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT DISTINCT - COUNT( + 21 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT - COUNT ( + 21 ) AS col2 FROM tab1
----
-3

query II rowsort
SELECT 12 AS col0, + 55 AS col0 FROM tab2
----
12
55
12
55
12
55

query I rowsort
SELECT + col1 * + - 35 - + 99 FROM tab2
----
-1884
-2444
-2794

query I rowsort
SELECT - + 64 - + col0 FROM tab1 AS cor0
----
-115
-149
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col0 FROM tab0 cor0 WHERE NOT ( col0 IS NOT NULL ) OR NOT 30 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col0 FROM tab0 cor0 WHERE NOT ( col0 IS NOT NULL ) OR NOT 30 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 8 - col2 < 7 / + ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - 39 < + col2
----

query II rowsort
SELECT DISTINCT 11 + - col2 AS col0, col0 * col1 AS col2 FROM tab0
----
-36
1215
-88
97
1
1827

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT + 37 DIV - col2 + + col0 AS col1 FROM tab2
----
45
64
75

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + 37 / - col2 + + col0 AS col1 FROM tab2
----
45
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + MAX( - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8205
SELECT + MAX ( - col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT col1 * - col1 * + 61 AS col1 FROM tab2
----
-158661
-273829
-361669

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT + COUNT( + ( + ( 17 ) ) ) AS col2, 61 FROM tab0
----
3
61

skipif mysql # not compatible
query II rowsort label-8207
SELECT + COUNT ( + ( + ( 17 ) ) ) AS col2, 61 FROM tab0
----
3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT 41 * MAX( - col2 ) AS col0 FROM tab2
----
-943

skipif mysql # not compatible
query I rowsort label-8208
SELECT 41 * MAX ( - col2 ) AS col0 FROM tab2
----
-943

query I rowsort
SELECT - 12 FROM tab2 AS cor0 WHERE NOT ( NOT col2 NOT BETWEEN + + col2 + 99 + + 54 AND NULL )
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col1 FROM tab2 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT - MAX( DISTINCT 49 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT - MAX ( DISTINCT 49 ) FROM tab1
----
-49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN 28 AND + col2 * + 44 * + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 84 + + 20 * - + col1 / - col0 NOT IN ( + 42 * col1, col1 + - col2 ) AND NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col1 col0 FROM tab0 cor0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT + 77 + 8 DIV col0 * - 91 FROM tab2 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-8216
SELECT + 77 + 8 / col0 * - 91 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL 47 * + CAST( + + 88 AS SIGNED ) + - col0 + + col0 - + - col0 AS col0 FROM tab2 AS cor0
----
4182
4200
4211

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL 47 * + CAST ( + + 88 AS INTEGER ) + - col0 + + col0 - + - col0 AS col0 FROM tab2 AS cor0
----
4182
4200
4211

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + - ( - MIN( ALL - 20 ) ) * 76 * - SUM( + col0 ) AS col2 FROM tab1 AS cor0
----
345040

skipif mysql # not compatible
query I rowsort label-8218
SELECT + - ( - MIN ( ALL - 20 ) ) * 76 * - SUM ( + col0 ) AS col2 FROM tab1 AS cor0
----
345040

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT ALL + col2 DIV - - 80 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + col2 / - - 80 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 63 - 25 + + col1 AS col2 FROM tab2 AS cor0
----
2924
4084
4767

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT ( - MAX( col2 ) ) * - + COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT ( - MAX ( col2 ) ) * - + COUNT ( * ) FROM tab1
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT - col0 DIV - ( - 85 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT - col0 / - ( - 85 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL + COUNT( - 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + COUNT ( - 3 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8224
SELECT DISTINCT + col1 + CAST( NULL AS DECIMAL ) + - + ( col0 ) FROM tab1 WHERE NOT + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + col1 + CAST ( NULL AS REAL ) + - + ( col0 ) FROM tab1 WHERE NOT + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL + ( - - col0 ) + 4 * - 43 AS col1 FROM tab0 AS cor0
----
-157
-75
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT - CAST( + 88 AS SIGNED ) AS col1 FROM tab0 cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-8226
SELECT - CAST ( + 88 AS INTEGER ) AS col1 FROM tab0 cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - + COUNT( DISTINCT - + 65 ) + 41 FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-8227
SELECT - + COUNT ( DISTINCT - + 65 ) + 41 FROM tab1 cor0
----
40

query I rowsort
SELECT + 95 + + 7 + 91 * - + col2 FROM tab0 AS cor0
----
-4175
-808
-8907

query I rowsort
SELECT col1 + - - col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT 10 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8231
SELECT 10 / + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL + + COUNT( * ) * - 2 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + + COUNT ( * ) * - 2 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN - ( + col2 ) AND + col1 * + 86 )
----

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN - ( + col2 ) AND + col1 * + 86 )
----

query I rowsort
SELECT DISTINCT 58 + + ( + 12 ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + + - 91 AS col0 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + + - 91 AS col0 FROM tab1 AS cor0
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8236
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT ( - + col2 * - col1 * - - ( 88 ) * - col1 + CAST( NULL AS SIGNED ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( - + col2 * - col1 * - - ( 88 ) * - col1 + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT - col0 + + - ( - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - col0 + + - ( - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT col1 - 97 AS col1, + col0 * - + col1 FROM tab1 AS cor0
----
-50
-4277
-83
-714
-92
-425

onlyif mysql # DIV for integer division: 
query III rowsort label-8239
SELECT ALL - 19 + + - col1, ( 1 ) - + col2 AS col1, - col1 DIV + + 38 AS col2 FROM tab2 AS cor0
----
9 values hashing to 47496c7f40796ae22b600a74f0d24b75

skipif mysql # not compatible
query III rowsort label-8239
SELECT ALL - 19 + + - col1, ( 1 ) - + col2 AS col1, - col1 / + + 38 AS col2 FROM tab2 AS cor0
----
9 values hashing to 47496c7f40796ae22b600a74f0d24b75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT ALL + col2 / ( - ( + - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + col2 / ( - ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE col1 > 49
----
-15

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 FROM tab2
----
-23
23
-40
40
-58
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - 62 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT MAX( ALL 31 ) * - COUNT( * ) AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-8244
SELECT MAX ( ALL 31 ) * - COUNT ( * ) AS col2 FROM tab1
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab2
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT ALL 67 AS col2, + COUNT( * ) FROM tab0
----
67
3

skipif mysql # not compatible
query II rowsort label-8246
SELECT ALL 67 AS col2, + COUNT ( * ) FROM tab0
----
67
3

query I rowsort
SELECT + 29 * + - col1 FROM tab0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT DISTINCT + 77 AS col2, MAX( - col0 ) FROM tab1
----
77
-51

skipif mysql # not compatible
query II rowsort label-8248
SELECT DISTINCT + 77 AS col2, MAX ( - col0 ) FROM tab1
----
77
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT - SUM( 97 ) FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT - SUM ( 97 ) FROM tab2 AS cor0
----
-291

query I rowsort
SELECT ALL - col2 * + ( - 88 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT 3 DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8251
SELECT 3 / COUNT ( * ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 > col1 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 AS col2 FROM tab2 cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT + - COUNT( * ) * - SUM( + 42 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3402

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + - COUNT ( * ) * - SUM ( + 42 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3402

query I rowsort
SELECT + + 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col0 FROM tab2 WHERE NOT - + 12 * + ( - col2 ) - 3 + - col2 + - ( - + col2 ) / col2 <= - col0 * - col0 / col2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT 25 * + + COUNT( * ) + - + 70 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8258
SELECT 25 * + + COUNT ( * ) + - + 70 FROM tab0 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col2 = + col0 * - 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL COUNT( ALL - col0 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL COUNT ( ALL - col0 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT 76 * + 36 AS col0 FROM tab2 AS cor0
----
2736
2736
2736

query I rowsort
SELECT - col2 + + - col0 AS col0 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - + 90 / + - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT col0 + - 65 DIV 25 * col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8264
SELECT col0 + - 65 / 25 * col0 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + MIN( ALL - + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + MIN ( ALL - + col2 ) FROM tab1
----
-96

query I rowsort
SELECT - col1 * 50 * + - col0 + + col0 AS col0 FROM tab2
----
117346
246464
251325

query II rowsort
SELECT ALL + 50 AS col1, - col2 FROM tab1
----
50
-59
50
-68
50
-96

query I rowsort
SELECT + col0 + - + col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 84 + - 15 FROM tab2
----
69
69
69

query I rowsort
SELECT 1 + - col1 AS col1 FROM tab0
----
-20
-80
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab0 WHERE NOT NULL < 97
----

query I rowsort
SELECT + col1 * + - 28 AS col1 FROM tab1 WHERE + - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8273
SELECT ALL col1 AS col0, + col0 FROM tab2 WHERE NOT + ( - col0 ) >= ( - ( + col0 ) + + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-8273
SELECT ALL col1 AS col0, + col0 FROM tab2 WHERE NOT + ( - col0 ) >= ( - ( + col0 ) + + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + 27 + + + 92 AS col1 FROM tab1
----
119
119
119

query II rowsort
SELECT - 5 + + + ( + col1 ) AS col2, col2 FROM tab2 AS cor0
----
46
23
62
58
72
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL - 30 + COUNT( * ) FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - 30 + COUNT ( * ) FROM tab0 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT + - COUNT( * ) * SUM( DISTINCT + + col2 ) - - COUNT( * ) FROM tab2 AS cor0
----
-360

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + - COUNT ( * ) * SUM ( DISTINCT + + col2 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL + - COUNT( ALL - ( + - col1 ) ) + + + 12 AS col0 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + - COUNT ( ALL - ( + - col1 ) ) + + + 12 AS col0 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + 78 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + 78 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + + 35 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - 5 - + col0 AS col0 FROM tab0
----
-102
-20
-92

query I rowsort
SELECT col2 - 44 FROM tab2
----
-21
-4
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 - col1 col2 FROM tab2
----
-7
19
3

query III rowsort
SELECT * FROM tab0 WHERE NULL = - ( + col0 ) * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT DISTINCT CAST( NULL AS SIGNED ) * 97 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 97 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT + - col2 * col2 / + + 45 + + 44 - + col0 + - + 74 * - col2 * + CAST( NULL AS SIGNED ) * 12 / col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8287
SELECT + - col2 * col2 / + + 45 + + 44 - + col0 + - + 74 * - col2 * + CAST ( NULL AS INTEGER ) * 12 / col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + - 79 IS NOT NULL AND - 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 47 AS col2, col2 FROM tab1 AS cor0
----
47
59
47
68
47
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT + col2 DIV + - col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT + col2 / + - col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL col1 + col0 * - col1 + + ( + 44 ) * - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-140
-2730
-4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL - - col0 / + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - - col0 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT ALL COUNT( * ), COUNT( 91 ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8293
SELECT ALL COUNT ( * ), COUNT ( 91 ) AS col0 FROM tab2 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT 85 DIV + 42 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8294
SELECT 85 / + 42 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8295
SELECT + ( - CAST( NULL AS SIGNED ) ), 5 - - 60 AS col0 FROM tab0
----
NULL
65
NULL
65
NULL
65

skipif mysql # not compatible
query II rowsort label-8295
SELECT + ( - CAST ( NULL AS INTEGER ) ), 5 - - 60 AS col0 FROM tab0
----
NULL
65
NULL
65
NULL
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT ALL - col0 DIV ( + col0 ) + - + 36 FROM tab0 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL - col0 / ( + col0 ) + - + 36 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - col0 + + 90 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 46 * col0 AS col1 FROM tab1 AS cor0
----
-2346
-3910
-4186

query I rowsort
SELECT ALL - + 29 * + - col2 + + 0 * - col2 + + + col2 AS col1 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT DISTINCT + col0 + + + 83 FROM tab1 AS cor0
----
134
168
174

query I rowsort
SELECT 12 + + col0 + + 10 + - col2 * + - col1 * - col2 + + + col2 FROM tab0 AS cor0
----
-178845
-1981
-9583

query I rowsort
SELECT - 12 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-12
-12
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 39 * - col0 AND NULL
----

query I rowsort
SELECT ALL - - 91 + - 68 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT - ( 78 ) FROM tab1 cor0
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col1 * 31 * col2 AS col1, 31 col2 FROM tab0
----
303831
31
5546799
31
65100
31

query I rowsort
SELECT ALL + 15 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT MAX( ALL - col2 ) AS col0, ( ( - SUM( DISTINCT + col2 ) ) ) AS col1 FROM tab1
----
-59
-223

skipif mysql # not compatible
query II rowsort label-8308
SELECT MAX ( ALL - col2 ) AS col0, ( ( - SUM ( DISTINCT + col2 ) ) ) AS col1 FROM tab1
----
-59
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * 4 AS col1, - 57 col1 FROM tab2
----
184
-57
256
-57
300
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL - MIN( - ( + - col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL - MIN ( - ( + - col0 ) ) FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * col1 + - 77 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8312
SELECT DISTINCT col0 - - CAST( col2 AS SIGNED ) DIV col0 - 19 FROM tab1
----
33
66
72

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT col0 - - CAST ( col2 AS INTEGER ) / col0 - 19 FROM tab1
----
33
66
72

query I rowsort
SELECT - 6 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8314
SELECT ALL - + 82 DIV MAX( - 2 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - + 82 / MAX ( - 2 ) FROM tab1 AS cor0
----
41

query I rowsort
SELECT - + col2 * - + 52 AS col0 FROM tab0 AS cor0
----
2444
5148
520

query I rowsort
SELECT DISTINCT 27 * col0 AS col2 FROM tab0 AS cor0
----
2349
2619
405

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL COUNT( - 78 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL COUNT ( - 78 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 18 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + 64 * - 72 col0 FROM tab1 AS cor0
----
271872
313344
442368

query I rowsort
SELECT DISTINCT - col1 * + 20 + col1 FROM tab0 cor0
----
-1539
-19
-399

query II rowsort
SELECT DISTINCT col2 AS col0, - 50 FROM tab2 WHERE 64 * + + ( + 90 ) IS NULL
----

query I rowsort
SELECT - 37 * - + col1 * + col1 FROM tab2
----
166093
219373
96237

query II rowsort
SELECT col0, - ( + - col0 ) FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT 68 * + 77 AS col0 FROM tab1
----
5236

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8326
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8326
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + ( + + col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) * + 26 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT ( + 65 ) + - CAST( NULL AS SIGNED ) + - + 81 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-8329
SELECT ( + 65 ) + - CAST ( NULL AS INTEGER ) + - + 81 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT col0 DIV - 19 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-8330
SELECT col0 / - 19 FROM tab0
----
-4
-5
0

query I rowsort
SELECT DISTINCT - col1 + - 39 * col0 AS col0 FROM tab2 AS cor0
----
-1845
-2573
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL + - COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT ALL MAX( col0 ) + - COUNT( * ) AS col0, - 78 AS col0 FROM tab1 AS cor0
----
88
-78

skipif mysql # not compatible
query II rowsort label-8333
SELECT ALL MAX ( col0 ) + - COUNT ( * ) AS col0, - 78 AS col0 FROM tab1 AS cor0
----
88
-78

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE col1 * + 14 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 + 40 AS col2 FROM tab1 AS cor0
----
-7
26
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 16 col0 FROM tab1 AS cor0
----
-11
-2
31

query I rowsort
SELECT ALL col0 + - 51 + col1 AS col2 FROM tab0 cor0
----
45
47
57

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 + - ( + - col2 ) col0 FROM tab1
----
124
87
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT - ( - COUNT( * ) ) * + - ( + COUNT( * ) ) * - SUM( col0 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT - ( - COUNT ( * ) ) * + - ( + COUNT ( * ) ) * - SUM ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT 63 AS col0, 95 FROM tab0
----
63
95

query I rowsort
SELECT col0 + + - 91 AS col1 FROM tab1
----
-40
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT + 26 + - + COUNT( ( + 8 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8343
SELECT + 26 + - + COUNT ( ( + 8 ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT 76 DIV - COUNT( * ) AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-8344
SELECT 76 / - COUNT ( * ) AS col2 FROM tab1
----
-25

query III rowsort
SELECT * FROM tab0 WHERE col0 = col2 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8346
SELECT DISTINCT 47 + - 38 DIV + ( 22 ) AS col1 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT 47 + - 38 / + ( 22 ) AS col1 FROM tab1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT MAX( DISTINCT - 39 ) col2 FROM tab2
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8347
SELECT MAX ( DISTINCT - 39 ) col2 FROM tab2
----
-39

query III rowsort
SELECT * FROM tab0 WHERE NOT - 88 + - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8349
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT MAX( DISTINCT 59 ) col2 FROM tab1 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8350
SELECT MAX ( DISTINCT 59 ) col2 FROM tab1 WHERE NULL IS NULL
----
59

query I rowsort
SELECT 74 AS col1 FROM tab2 WHERE NOT ( ( 67 ) / col0 + col1 / col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT - MAX( + 8 ) AS col1 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-8352
SELECT - MAX ( + 8 ) AS col1 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - SUM( 59 ) AS col0 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-8353
SELECT - SUM ( 59 ) AS col0 FROM tab2
----
-177

query I rowsort
SELECT ( 16 ) * + 57 + - 9 * - col2 AS col1 FROM tab0
----
1002
1335
1803

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8355
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + 78 / - 18 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8355
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + 78 / - 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT COUNT( * ) - MAX( + col2 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-8356
SELECT COUNT ( * ) - MAX ( + col2 ) FROM tab1
----
-93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 - + col2 ) > NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( col2 * col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT 12 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT 12 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) >= ( 2 )
----

query I rowsort
SELECT DISTINCT 3 + - col1 * - col2 AS col2 FROM tab0
----
102
213
3810

query I rowsort
SELECT 72 FROM tab0 WHERE NOT col1 * 95 > - 7
----

query I rowsort
SELECT - col2 + col0 * 39 FROM tab1
----
1893
3256
3481

query I rowsort
SELECT - col2 + ( + 88 ) FROM tab0
----
-11
41
78

query I rowsort
SELECT DISTINCT col1 * 82 - - ( col1 ) FROM tab1 WHERE - col1 * col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + - col0 col2 FROM tab2 AS cor0
----
-41
-59
-70

query I rowsort
SELECT DISTINCT col1 + + 77 FROM tab2 AS cor0
----
128
144
154

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) = col2 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT DISTINCT 50 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT 50 / col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) BETWEEN - col0 * + col2 AND 56 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT DISTINCT - col2 DIV ( + ( col2 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - col2 / ( + ( col2 ) ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col2 + ( col2 ) FROM tab1
----
118
136
192

query I rowsort
SELECT - + 55 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
2653
334
866

query I rowsort
SELECT + + ( 20 ) AS col0 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - + col0 + 72 AS col0 FROM tab1 AS cor0
----
-13
-19
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8376
SELECT * FROM tab1 AS cor0 WHERE 14 * + CAST( - col1 * col2 AS SIGNED ) = 55 + + 48 * 10
----

skipif mysql # not compatible
query III rowsort label-8376
SELECT * FROM tab1 AS cor0 WHERE 14 * + CAST ( - col1 * col2 AS INTEGER ) = 55 + + 48 * 10
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 10 ) IN ( ( + col2 ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT - MAX( DISTINCT 51 ) + 39 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - MAX ( DISTINCT 51 ) + 39 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - ( + col2 ) - 65 AS col1 FROM tab1 AS cor0
----
-124
-133
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL COUNT( * ) + + 44 AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL COUNT ( * ) + + 44 AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT + - 45 - SUM( + col2 ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + - 45 - SUM ( + col2 ) FROM tab0 AS cor0
----
-201

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 81 / 97 IN ( + col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL MAX( - col1 ) + - 95 AS col0 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL MAX ( - col1 ) + - 95 AS col0 FROM tab0
----
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 23 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT IN ( col2 + - 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT + 25 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT + 25 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + 40 * - col0 FROM tab1
----
2136
3459
3708

query I rowsort
SELECT ALL 42 * col2 + col1 FROM tab0 WHERE NOT col2 * - col1 IS NULL
----
2055
4159
441

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8389
SELECT col2 - - CAST( NULL AS DECIMAL ) + 43 / - 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT col2 - - CAST ( NULL AS REAL ) + 43 / - 13 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT + ( - 93 ) DIV COUNT( * ) + MIN( col0 - + ( - col0 ) DIV col2 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8391
SELECT + ( - 93 ) / COUNT ( * ) + MIN ( col0 - + ( - col0 ) / col2 ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - - MAX( ALL + col2 ) + MIN( ( - 19 ) ) FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-8392
SELECT - - MAX ( ALL + col2 ) + MIN ( ( - 19 ) ) FROM tab1 cor0
----
77

query I rowsort
SELECT + col2 + - + col1 - - col2 * 56 FROM tab1 AS cor0
----
3358
3829
5458

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8394
SELECT ALL col0 FROM tab0 cor0 WHERE NOT - 92 * - 24 - - 40 NOT BETWEEN + 92 * - col2 AND col0 * CAST( - 48 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL col0 FROM tab0 cor0 WHERE NOT - 92 * - 24 - - 40 NOT BETWEEN + 92 * - col2 AND col0 * CAST ( - 48 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col2 FROM tab2 AS cor0
----
-80
-80
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 NOT BETWEEN NULL AND + col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT DISTINCT COUNT( * ) AS col1, 75 AS col2 FROM tab2
----
3
75

skipif mysql # not compatible
query II rowsort label-8398
SELECT DISTINCT COUNT ( * ) AS col1, 75 AS col2 FROM tab2
----
3
75

query I rowsort
SELECT DISTINCT - + col2 * col1 FROM tab2 WHERE NULL = NULL
----

query II rowsort
SELECT col0, col0 * + col1 - - col2 FROM tab1
----
51
810
85
484
91
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT - - MAX( + col2 ) * - + 6 AS col0 FROM tab2 AS cor0
----
-348

skipif mysql # not compatible
query I rowsort label-8401
SELECT - - MAX ( + col2 ) * - + 6 AS col0 FROM tab2 AS cor0
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL COUNT( * ) * - COUNT( * ) col0 FROM tab2 cor0 WHERE NOT ( + col2 * + - 22 + + col1 ) IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8402
SELECT ALL COUNT ( * ) * - COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT ( + col2 * + - 22 + + col1 ) IS NULL
----
-9

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( + 72 * + 46 + + col0 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT SUM( col1 ) FROM tab0 AS cor0 WHERE NOT col2 <= - 32
----
103

skipif mysql # not compatible
query I rowsort label-8404
SELECT SUM ( col1 ) FROM tab0 AS cor0 WHERE NOT col2 <= - 32
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8405
SELECT + - COUNT( * ) DIV SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8405
SELECT + - COUNT ( * ) / SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT + 25 * + - 71 * + COUNT( * ) col1 FROM tab0 AS cor0
----
-5325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8406
SELECT DISTINCT + 25 * + - 71 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
-5325

query II rowsort
SELECT 90 AS col1, col2 AS col1 FROM tab2 AS cor0
----
90
23
90
40
90
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT MAX( DISTINCT - - col2 ) AS col0 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT MAX ( DISTINCT - - col2 ) AS col0 FROM tab2 cor0
----
58

query I rowsort
SELECT + ( col0 ) * - 62 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3162
-5270
-5642

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8410
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 13 * - CAST( NULL AS SIGNED ) + + 65 / - col2 )
----

skipif mysql # not compatible
query III rowsort label-8410
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 13 * - CAST ( NULL AS INTEGER ) + + 65 / - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT DISTINCT COUNT( ALL - - col1 ), - 59 col2 FROM tab1
----
3
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8411
SELECT DISTINCT COUNT ( ALL - - col1 ), - 59 col2 FROM tab1
----
3
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 49 / + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8413
SELECT * FROM tab0 WHERE NOT NULL = 47 + + + col2 + + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8413
SELECT * FROM tab0 WHERE NOT NULL = 47 + + + col2 + + CAST ( - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + 77 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + 77 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT - 80 DIV col2 * col0 + - - 68 + col1 AS col1 FROM tab1
----
-12
24
82

skipif mysql # not compatible
query I rowsort label-8415
SELECT - 80 / col2 * col0 + - - 68 + col1 AS col1 FROM tab1
----
-12
24
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT 54 + - 37 + - 54 DIV - col0 + + 51 FROM tab0 AS cor0
----
68
68
71

skipif mysql # not compatible
query I rowsort label-8416
SELECT 54 + - 37 + - 54 / - col0 + + 51 FROM tab0 AS cor0
----
68
68
71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8417
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8417
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT ALL - ( + - 12 ) + + col0 AS col0 FROM tab1 AS cor0
----
103
63
97

query I rowsort
SELECT DISTINCT + + 27 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
27

query I rowsort
SELECT + 96 * + ( 28 ) * col0 AS col1 FROM tab0
----
233856
260736
40320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + - 50 * - col0 + - col1 col2 FROM tab2
----
2189
3063
3623

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) <> NULL
----

query I rowsort
SELECT - + col2 - + - 31 AS col1 FROM tab2 AS cor0
----
-27
-9
8

query I rowsort
SELECT ALL + col2 + - - 98 AS col0 FROM tab2 cor0
----
121
138
156

query I rowsort
SELECT 69 + + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab1 AS cor0 WHERE col2 / + - col2 + - + col2 * - col0 * - col2 IS NOT NULL
----
94
94
94

query I rowsort
SELECT 31 + - col0 * + - 91 AS col2 FROM tab0 AS cor0
----
1396
7948
8858

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE - ( + ( 48 ) ) + 73 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 6 * + col1 + + + col2 * - 73 + + col0 FROM tab2
----
-1939
-3318
-4561

query I rowsort
SELECT 19 + - 65 FROM tab0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT + ( col1 ) DIV + col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8431
SELECT + ( col1 ) / + col2 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT + 11 - - - col0 * + - ( 81 ) + 91 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + 11 - - - col0 * + - ( 81 ) + 91 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 50 col0 FROM tab1
----
51
50
85
50
91
50

query I rowsort
SELECT ALL 66 - - 9 FROM tab2
----
75
75
75

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( + 34 * 8 + + 61 ) > NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 + - ( - col1 ) FROM tab1
----
-14
110
-47
115
-5
64

query I rowsort
SELECT - - col0 * - 13 AS col0 FROM tab2 AS cor0
----
-598
-832
-975

query I rowsort
SELECT ALL + col1 * col2 * col2 * col2 AS col2 FROM tab0 AS cor0
----
21000
8409663
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - - SUM( DISTINCT - 6 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8439
SELECT - - SUM ( DISTINCT - 6 ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT - - SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8440
SELECT - - SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT MIN( + 90 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT MIN ( + 90 ) FROM tab1
----
90

query I rowsort
SELECT - + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT DISTINCT col1 FROM tab2 WHERE - + CAST( + col1 AS SIGNED ) * - col0 * col2 * - - 57 - + 4 NOT BETWEEN + 15 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT col1 FROM tab2 WHERE - + CAST ( + col1 AS INTEGER ) * - col0 * col2 * - - 57 - + 4 NOT BETWEEN + 15 AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col2 NOT IN ( - col0 )
----
15
87
97

query II rowsort
SELECT - ( + + col1 ) AS col0, 28 FROM tab2
----
-51
28
-67
28
-77
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT - SUM( - 5 ) FROM tab0 WHERE NOT NULL >= + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT - SUM ( - 5 ) FROM tab0 WHERE NOT NULL >= + - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT - COUNT( DISTINCT + 46 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT - COUNT ( DISTINCT + 46 ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT - - COUNT( ALL + 4 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - - COUNT ( ALL + 4 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT IN ( + 79 / + + col2 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab2 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT + ( + MIN( 13 ) ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT + ( + MIN ( 13 ) ) AS col2 FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT - col1 FROM tab2 cor0 WHERE NOT ( + CAST( - 12 AS SIGNED ) ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8453
SELECT - col1 FROM tab2 cor0 WHERE NOT ( + CAST ( - 12 AS INTEGER ) ) IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 99 ) col2 FROM tab1 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT + MIN( + 0 ) * - - 90 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT + MIN ( + 0 ) * - - 90 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT col0 DIV + 15 FROM tab1
----
3
5
6

skipif mysql # not compatible
query I rowsort label-8456
SELECT col0 / + 15 FROM tab1
----
3
5
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT 97 DIV 10 AS col0 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8457
SELECT 97 / 10 AS col0 FROM tab2
----
9
9
9

query I rowsort
SELECT ALL + col0 + - 72 FROM tab2 WHERE NOT + 99 IS NULL
----
-26
-8
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8459
SELECT + COUNT( - CAST( 29 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8459
SELECT + COUNT ( - CAST ( 29 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL + CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 * ( - + 30 ) + - ( - col2 ) * - col0 FROM tab2 AS cor0
----
-1740
1552
50

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54

query I rowsort
SELECT ALL 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8464
SELECT - + COUNT( * ) * MAX( + - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT - + COUNT ( * ) * MAX ( + - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8465
SELECT - 77 DIV - 59 - + CAST( - 91 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif mysql # not compatible
query I rowsort label-8465
SELECT - 77 / - 59 - + CAST ( - 91 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + - 54 AS col1 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT + ( - 14 ) * - CAST( NULL AS SIGNED ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT + ( - 14 ) * - CAST ( NULL AS INTEGER ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 AS cor0 WHERE + 79 * 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL 53 * COUNT( * ) col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8469
SELECT ALL 53 * COUNT ( * ) col1 FROM tab0 AS cor0
----
159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8470
SELECT - - col2 - - 94 FROM tab1 cor0 WHERE - 62 BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8470
SELECT - - col2 - - 94 FROM tab1 cor0 WHERE - 62 BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT 64 * - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3712

skipif mysql # not compatible
query I rowsort label-8471
SELECT 64 * - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3712

query I rowsort
SELECT ALL col2 + + col1 + - - col1 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT 0 * + ( + 14 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 92 AS col1 FROM tab2 AS cor0 WHERE - 69 IS NOT NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT - COUNT( * ) + - SUM( col2 ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - COUNT ( * ) + - SUM ( col2 ) FROM tab1 AS cor0
----
-226

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + + - 48 / + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT DISTINCT - + COUNT( + col2 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - + COUNT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + col1 + - - col2 FROM tab2
----
157
183
97

query I rowsort
SELECT col1 / - + col1 FROM tab0 WHERE NOT - col2 * - + col1 > - 55
----

query I rowsort
SELECT ALL + 45 * + + 15 AS col1 FROM tab1
----
675
675
675

query I rowsort
SELECT ALL + ( 50 ) FROM tab0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT - MIN( ALL - col1 ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8483
SELECT - MIN ( ALL - col1 ) col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT + 75 DIV COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8484
SELECT + 75 / COUNT ( * ) FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT ALL 85 DIV - 11 + - col0 DIV col0 col1 FROM tab0 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8485
SELECT ALL 85 / - 11 + - col0 / col0 col1 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT + col2 * 1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col2 * 21 AS col1 FROM tab1 AS cor0
----
-1239
-1428
-2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - ( + col0 ) AS col1 FROM tab1
----
-51
-51
-85
-85
-91
-91

query II rowsort
SELECT col0 AS col2, - col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL - MAX( - col0 ) + - COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL - MAX ( - col0 ) + - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
12

query I rowsort
SELECT ALL - 39 + col2 + + - col0 AS col1 FROM tab2 AS cor0
----
-56
-62
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8492
SELECT - MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT 24, col1 + + col0 AS col2 FROM tab2 AS cor0
----
24
141
24
142
24
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT + + COUNT( - - CAST( col0 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8494
SELECT + + COUNT ( - - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT ALL - 85 * + 76 - - - CAST( NULL AS SIGNED ) 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-8495
SELECT ALL - 85 * + 76 - - - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 84 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - - col2 * 43 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + - col0 + - - col0 + + 0 * 4 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT ALL + col0 AS col2, - 44 FROM tab1 AS cor0
----
51
-44
85
-44
91
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8501
SELECT * FROM tab0 WHERE ( - CAST( NULL AS DECIMAL ) * - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8501
SELECT * FROM tab0 WHERE ( - CAST ( NULL AS REAL ) * - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + - 14 + 9 + - - 69 * + + col1 * + col0 * - 84 AS col1 FROM tab2 WHERE + col0 >= + col0 + - col2
----
-13597398
-28562653
-29124847

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8503
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0, 5 AS col2 FROM tab1
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-8503
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0, 5 AS col2 FROM tab1
----
NULL
5
NULL
5
NULL
5

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 * + CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 * + CAST ( NULL AS INTEGER ) AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT + COUNT( * ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) * + - COUNT( * ) * 20 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT + COUNT ( * ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * 20 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT 83 * COUNT( ALL col0 ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT 83 * COUNT ( ALL col0 ) FROM tab0
----
249

query II rowsort
SELECT ALL ( - col1 ) AS col2, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 = + col2 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 + - - col2 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT DISTINCT - col2 + 77 DIV - ( col2 ) + - + col1 FROM tab2 AS cor0
----
-118
-126
-77

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - col2 + 77 / - ( col2 ) + - + col1 FROM tab2 AS cor0
----
-118
-126
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8513
SELECT * FROM tab0 AS cor0 WHERE ( + - CAST( NULL AS SIGNED ) ) = - 8
----

skipif mysql # not compatible
query III rowsort label-8513
SELECT * FROM tab0 AS cor0 WHERE ( + - CAST ( NULL AS INTEGER ) ) = - 8
----

query I rowsort
SELECT ALL ( - 49 ) AS col2 FROM tab2 cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( + + 43 ) ) * + col2 col0 FROM tab0
----
2021
4257
430

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT col2 - + col1 - 46 FROM tab0
----
-57
-80
52

query I rowsort
SELECT col1 - - 25 FROM tab1
----
30
39
72

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 < - ( col2 )
----
-10
-47
-99

query I rowsort
SELECT - 77 * + 81 FROM tab2 AS cor0 WHERE + 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL - - MIN( DISTINCT + - col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - - MIN ( DISTINCT + - col2 ) AS col2 FROM tab0 cor0
----
-99

query II rowsort
SELECT DISTINCT + + 88 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
88
14
88
47
88
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT + MAX( - - 27 ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT + MAX ( - - 27 ) AS col0 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT DISTINCT + col1 DIV - 62 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8524
SELECT DISTINCT + col1 / - 62 col1 FROM tab1
----
0

query I rowsort
SELECT ALL - 43 * col0 AS col1 FROM tab1
----
-2193
-3655
-3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8526
SELECT DISTINCT COUNT( + + col0 ) + - + ( + 12 ) + 42 col1 FROM tab1 WHERE - - ( - CAST( - col2 AS SIGNED ) ) IS NOT NULL
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8526
SELECT DISTINCT COUNT ( + + col0 ) + - + ( + 12 ) + 42 col1 FROM tab1 WHERE - - ( - CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT ( - + ( - ( 61 ) ) ) col0, COUNT( * ) * - 63 AS col1 FROM tab0
----
61
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8527
SELECT ( - + ( - ( 61 ) ) ) col0, COUNT ( * ) * - 63 AS col1 FROM tab0
----
61
-189

onlyif mysql # DIV for integer division: 
query II rowsort label-8528
SELECT ( col2 ) col0, + 49 * - col1 DIV + - col1 + - 49 + col1 AS col2 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-8528
SELECT ( col2 ) col0, + 49 * - col1 / + - col1 + - 49 + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8529
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 35 AND + col2 * + CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8529
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 35 AND + col2 * + CAST ( + + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT - MIN( + + 84 ) FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8531
SELECT - MIN ( + + 84 ) FROM tab0 cor0
----
-84

query I rowsort
SELECT ALL col2 * + ( + 34 ) FROM tab1
----
2006
2312
3264

query I rowsort
SELECT 35 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT - + ( - MAX( ALL - - 88 ) ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - + ( - MAX ( ALL - - 88 ) ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT col0 * 93 * + col1 AS col2 FROM tab1 AS cor0
----
39525
397761
66402

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + + 48 + - col2 AS col0 FROM tab1 AS cor0
----
-11
-20
-48

query I rowsort
SELECT ALL - col2 + + col2 + + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + - 74 FROM tab0
----
-27
-64
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT + 26 * - AVG ( - col0 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 26 * - AVG ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT ALL MIN( ALL + + col0 ) DIV - COUNT( * ) - + 72 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL MIN ( ALL + + col0 ) / - COUNT ( * ) - + 72 FROM tab1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT ALL + 82 DIV + COUNT( ALL + col2 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + 82 / + COUNT ( ALL + col2 ) FROM tab1
----
27

query I rowsort
SELECT + col2 * - - col1 FROM tab0 WHERE + 1 IS NULL
----

query I rowsort
SELECT 31 + col2 / col2 AS col0 FROM tab0 WHERE ( - - col2 * 4 * + - col2 - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT + 34 + MIN( col0 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT + 34 + MIN ( col0 ) FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 26 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 26 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 60 - + 14 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
46
46
46

query I rowsort
SELECT - + 59 * col2 FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT - - CAST( 35 AS SIGNED ) FROM tab1 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-8551
SELECT - - CAST ( 35 AS INTEGER ) FROM tab1 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT COUNT( + + 55 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT COUNT ( + + 55 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 35 * - 78 + + - col0 FROM tab0 AS cor0
----
-2745
-2817
-2827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col1 * + + 7 AS col1 FROM tab1
----
329
35
98

query I rowsort
SELECT ALL - 66 + + + 75 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * - col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT - SUM( + + 43 ) FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8558
SELECT - SUM ( + + 43 ) FROM tab0 AS cor0
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col0 FROM tab1
----
7
7
7

query II rowsort
SELECT DISTINCT ( + col1 ), 34 FROM tab0
----
1
34
21
34
81
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 31 col0 FROM tab1 AS cor0
----
127
90
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 0 + 94 + - col0 * - 36 IS NULL
----

query I rowsort
SELECT + - col0 - + 27 AS col0 FROM tab0 AS cor0 WHERE + ( - - ( col1 ) ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col1 col2 FROM tab0 AS cor0 WHERE - col1 <= 59
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IN ( + + col2, + col0, - + col0 / 13 / - col2 * + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IN ( + + col2, + col0, - + col0 / 13 / - col2 * + col0 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL col0 + - col2 * - - CAST( NULL AS SIGNED ) + - - 36 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL col0 + - col2 * - - CAST ( NULL AS INTEGER ) + - - 36 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + COUNT( + 95 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8567
SELECT + COUNT ( + 95 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE - 61 IN ( col2 + + 10, col0 + - col2, + col1 * col0 * - ( - 33 ) * ( 0 ) )
----

query I rowsort
SELECT + col2 * + 90 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + col0 ) + - + col2 + 65 FROM tab0
----
142
33
63

query I rowsort
SELECT 22 * col2 + + 15 FROM tab2
----
1291
521
895

query I rowsort
SELECT DISTINCT - 72 * col0 - - - ( 67 ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - - 33, 75, - + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT MIN( + 79 ) AS col1 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8575
SELECT MIN ( + 79 ) AS col1 FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8576
SELECT ALL + ( - 86 ) * - - 64 + + - COUNT( * ) + + 45 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-5462
3

skipif mysql # not compatible
query II rowsort label-8576
SELECT ALL + ( - 86 ) * - - 64 + + - COUNT ( * ) + + 45 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-5462
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - ( - 18 ) - - - MAX( ALL + col1 ) col0 FROM tab1
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8577
SELECT ALL - ( - 18 ) - - - MAX ( ALL + col1 ) col0 FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT - - MIN( ALL + - col1 ) * + 30 FROM tab1 AS cor0
----
-1410

skipif mysql # not compatible
query I rowsort label-8578
SELECT - - MIN ( ALL + - col1 ) * + 30 FROM tab1 AS cor0
----
-1410

query I rowsort
SELECT + col2 * + col1 + col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT ALL + + 58, MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
58
99

skipif mysql # not compatible
query II rowsort label-8580
SELECT ALL + + 58, MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
58
99

query II rowsort
SELECT ( + col0 ) AS col2, + col2 * + col2 AS col2 FROM tab1 AS cor0
----
51
9216
85
3481
91
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT + COUNT( * ) * + 72 AS col1 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-8582
SELECT + COUNT ( * ) * + 72 AS col1 FROM tab1 AS cor0
----
216

query II rowsort
SELECT - 8 AS col0, col1 FROM tab2 AS cor0
----
-8
51
-8
67
-8
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8584
SELECT ALL CAST( - COUNT( * ) AS SIGNED ), - COUNT( * ) * + - 92 AS col0 FROM tab2 AS cor0
----
-3
276

skipif mysql # not compatible
query II rowsort label-8584
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ), - COUNT ( * ) * + - 92 AS col0 FROM tab2 AS cor0
----
-3
276

query I rowsort
SELECT - col1 * + col1 * col2 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT + ( COUNT( DISTINCT + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8586
SELECT + ( COUNT ( DISTINCT + col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT DISTINCT + MAX( - col2 ), + 94 AS col2 FROM tab0
----
-10
94

skipif mysql # not compatible
query II rowsort label-8587
SELECT DISTINCT + MAX ( - col2 ), + 94 AS col2 FROM tab0
----
-10
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT NULL > 38 * + col1 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8588
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT NULL > 38 * + col1 - - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL MAX( DISTINCT col2 ) * - - MIN( - 27 ) + - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-1566

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL MAX ( DISTINCT col2 ) * - - MIN ( - 27 ) + - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-1566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col1 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT MAX( ALL - - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT MAX ( ALL - - col2 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 64 + col0 col1 FROM tab1 AS cor0
----
115
149
155

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT ALL - + col0 * + 71 + col2 DIV col2 * - 35 + ( 17 ) FROM tab0 AS cor0
----
-1083
-6195
-6905

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - + col0 * + 71 + col2 / col2 * - 35 + ( 17 ) FROM tab0 AS cor0
----
-1083
-6195
-6905

query I rowsort
SELECT DISTINCT - - 48 AS col0 FROM tab2 AS cor0
----
48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + col1 * - 79
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - - col0 * + col0 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT 16 - 59 FROM tab2, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query II rowsort
SELECT ALL - col0 * + col1 * + 95 - - col2, 97 + col0 AS col1 FROM tab2
----
-222847
143
-468120
161
-477317
172

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8601
SELECT ALL + 31 * + + ( + 73 ) + + col1 AS col0 FROM tab2 WHERE NOT - + CAST( NULL AS DECIMAL ) IN ( + - CAST( 2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + 31 * + + ( + 73 ) + + col1 AS col0 FROM tab2 WHERE NOT - + CAST ( NULL AS REAL ) IN ( + - CAST ( 2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + + col0 >= - 45 + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT - MAX( 76 ) * - 86 FROM tab0 AS cor0
----
6536

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT - MAX ( 76 ) * - 86 FROM tab0 AS cor0
----
6536

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT + 89 + COUNT( * ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-8605
SELECT + 89 + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
92
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8606
SELECT ALL - + 30 + + COUNT( * ) AS col2, - 25 AS col0 FROM tab1 cor0
----
-27
-25

skipif mysql # not compatible
query II rowsort label-8606
SELECT ALL - + 30 + + COUNT ( * ) AS col2, - 25 AS col0 FROM tab1 cor0
----
-27
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8607
SELECT ALL 5 DIV + col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL 5 / + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8608
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - + CAST( NULL AS SIGNED ) * - 64 + - 43 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8608
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - + CAST ( NULL AS INTEGER ) * - 64 + - 43 IS NULL
----

query I rowsort
SELECT + - 4 * - 67 - - 37 + 14 FROM tab2 AS cor0
----
319
319
319

query I rowsort
SELECT + col2 * - - col2 AS col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT - - COUNT( + 43 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8611
SELECT - - COUNT ( + 43 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 * + - col0 + - col0 FROM tab0
----
15
-1230
87
-1914
97
-194

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 71 IS NOT NULL
----

query II rowsort
SELECT col2, - 17 FROM tab1
----
59
-17
68
-17
96
-17

query II rowsort
SELECT col0, + col2 * - 4 FROM tab1
----
51
-384
85
-236
91
-272

query I rowsort
SELECT DISTINCT + 4 * - col0 * - - col2 AS col0 FROM tab1
----
-19584
-20060
-24752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8617
SELECT CAST( NULL AS SIGNED ) col0, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8617
SELECT CAST ( NULL AS INTEGER ) col0, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT 60 + - - 26 FROM tab2
----
86
86
86

query II rowsort
SELECT DISTINCT - col2 AS col1, 72 + + 40 + + 7 AS col2 FROM tab0 AS cor0
----
-10
119
-47
119
-99
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT COUNT( * ) + + - COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8621
SELECT COUNT ( * ) + + - COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL col2, + col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT col2 - - - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - COUNT( * ) col2 FROM tab0 WHERE NOT 69 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8625
SELECT ALL - COUNT ( * ) col2 FROM tab0 WHERE NOT 69 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - - col1 + - - 45 AS col0 FROM tab0 AS cor0
----
126
46
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE - 9 * + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 22 + + 88 + - + 1 * col2 + col0 AS col0 FROM tab2 cor0
----
127
133
134

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * 44 + + 90 BETWEEN - + 37 AND - col1 - - col1
----

query II rowsort
SELECT ALL + ( + + col1 ) - + 92 AS col0, + 94 AS col0 FROM tab0
----
-11
94
-71
94
-91
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 15 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8634
SELECT 10 + - 4 + - - ( - CAST( + + 80 AS SIGNED ) ) - - 9 AS col1, - COUNT( * ) FROM tab2
----
-65
-3

skipif mysql # not compatible
query II rowsort label-8634
SELECT 10 + - 4 + - - ( - CAST ( + + 80 AS INTEGER ) ) - - 9 AS col1, - COUNT ( * ) FROM tab2
----
-65
-3

query I rowsort
SELECT DISTINCT col2 - 48 FROM tab2
----
-25
-8
10

query I rowsort
SELECT 18 + - 93 AS col1 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT col2 FROM tab1 WHERE - col0 * - col2 BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT - MAX( ALL - 45 ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - MAX ( ALL - 45 ) AS col1 FROM tab0
----
45

query I rowsort
SELECT ALL col1 * 68 FROM tab2
----
3468
4556
5236

query I rowsort
SELECT DISTINCT + col0 - - ( - col2 ) FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( NOT - 93 NOT BETWEEN - + col0 AND NULL ) )
----

query II rowsort
SELECT DISTINCT - ( - ( - + 18 ) ) + - + 66 AS col2, col0 FROM tab0 AS cor0
----
-84
15
-84
87
-84
97

query II rowsort
SELECT + col1 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 58 ) IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col2 * + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 55 * + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT AVG ( ALL + - 44 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 5 * - 97 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8648
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT 87 AS col2, COUNT( DISTINCT - 88 ) FROM tab2
----
87
1

skipif mysql # not compatible
query II rowsort label-8649
SELECT 87 AS col2, COUNT ( DISTINCT - 88 ) FROM tab2
----
87
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + + 89 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 24 + col1 - - + 32 * + - col1 * - + col0 + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT 48 + - COUNT( * ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT 48 + - COUNT ( * ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT ALL + 63 AS col2 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT + + col2 + + - 18 * + col1 AS col2 FROM tab0 AS cor0
----
-1411
-368
81

query I rowsort
SELECT DISTINCT 82 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
82

query II rowsort
SELECT + 66, + col0 AS col2 FROM tab0 AS cor0
----
66
15
66
87
66
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT + MIN( ALL + 59 ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8657
SELECT + MIN ( ALL + 59 ) FROM tab2 AS cor0
----
59

query I rowsort
SELECT - + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT col0 AS col2, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT + + MIN( DISTINCT - - col0 ) * + COUNT( ALL - col1 ) - 29 AS col1 FROM tab1 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + + MIN ( DISTINCT - - col0 ) * + COUNT ( ALL - col1 ) - 29 AS col1 FROM tab1 AS cor0
----
124

query I rowsort
SELECT DISTINCT + + col2 + - + col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL + COUNT( - - 78 ) - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + COUNT ( - - 78 ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - + col1 ) FROM tab1 WHERE - col0 * - + ( - col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT + 44 + CAST( + + col0 AS SIGNED ) col0 FROM tab0
----
131
141
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8664
SELECT DISTINCT + 44 + CAST ( + + col0 AS INTEGER ) col0 FROM tab0
----
131
141
59

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL 46 - MIN( DISTINCT - + col1 ) + COUNT( DISTINCT + - col2 ) + + - 45 * + 58 + 85 AS col1 FROM tab2
----
-2399

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL 46 - MIN ( DISTINCT - + col1 ) + COUNT ( DISTINCT + - col2 ) + + - 45 * + 58 + 85 AS col1 FROM tab2
----
-2399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col1, + col2 + + - 10 * - + col0 col0 FROM tab1 AS cor0
----
-51
606
-85
909
-91
978

query I rowsort
SELECT col2 * + + 0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - ( - ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8669
SELECT - ( - ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8670
SELECT ALL + + col1 * + CAST( NULL AS DECIMAL ) * col1 * + + 55 / + + col0 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + + col1 * + CAST ( NULL AS REAL ) * col1 * + + 55 / + + col0 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col1 FROM tab0 AS cor0
----
77

query II rowsort
SELECT DISTINCT col2 * - col1 * - col0, col1 FROM tab2 WHERE NOT - col2 + - col0 IS NULL
----
197120
77
291450
67
53958
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL COUNT( DISTINCT - col2 ) + + COUNT( * ) FROM tab1 WHERE NOT ( col2 ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL COUNT ( DISTINCT - col2 ) + + COUNT ( * ) FROM tab1 WHERE NOT ( col2 ) IS NULL
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8674
SELECT - col2 DIV + col0 + + col1 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-8674
SELECT - col2 / + col0 + + col1 FROM tab1
----
13
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL IN ( - 50, 10, + - col2 + - col1 + + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 71 >= ( - 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE col2 / 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL + SUM( ALL + - 92 ) col2 FROM tab1 WHERE NOT NULL BETWEEN + 83 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT ALL + SUM ( ALL + - 92 ) col2 FROM tab1 WHERE NOT NULL BETWEEN + 83 AND NULL
----
NULL

query I rowsort
SELECT - col2 * + - col0 + + col0 * - + 68 * + + ( col0 ) AS col1 FROM tab0 cor0
----
-14595
-513822
-630209

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 = + col2 + + + 52
----

query I rowsort
SELECT ALL + - 3 - - col1 * - - ( + 32 ) + - + col1 FROM tab2 AS cor0
----
1578
2074
2384

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE - col0 IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 73 BETWEEN NULL AND - + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT DISTINCT CAST( + - 42 AS SIGNED ) col0 FROM tab2
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8685
SELECT DISTINCT CAST ( + - 42 AS INTEGER ) col0 FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT ( - COUNT( ALL - col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT ( - COUNT ( ALL - col1 ) ) AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL + SUM( + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + SUM ( + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 12 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 12 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col2 * + col1 - + 8 * - + ( + col0 )
----

query I rowsort
SELECT DISTINCT - 14 * + col0 * + 98 AS col0 FROM tab1 AS cor0
----
-116620
-124852
-69972

query I rowsort
SELECT + ( + 8 ) FROM tab0
----
8
8
8

query I rowsort
SELECT col0 * + - col1 * + 78 AS col1 FROM tab2
----
-182988
-384384
-391950

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT ALL col1 + - 36 AS col1 FROM tab1 AS cor0
----
-22
-31
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab2 cor0
----
90
90
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 95 + - 36
----

query I rowsort
SELECT DISTINCT - col0 * + col1 + 25 + + col0 AS col2 FROM tab2 AS cor0
----
-2275
-4839
-4925

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT COUNT( ALL - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8699
SELECT COUNT ( ALL - col0 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col0 AND + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL + COUNT( * ) * - + 64 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL + COUNT ( * ) * - + 64 FROM tab1
----
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8702
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + CAST( NULL AS DECIMAL ) NOT BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8702
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + CAST ( NULL AS REAL ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - - col2 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT + COUNT( * ) DIV - MIN( DISTINCT + - 82 ) + 28 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8704
SELECT + COUNT ( * ) / - MIN ( DISTINCT + - 82 ) + 28 FROM tab1 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT - MIN( DISTINCT 49 ) + COUNT( DISTINCT + ( - col0 ) ) * - 36 AS col0, ( - COUNT( * ) ) FROM tab0 AS cor0
----
-157
-3

skipif mysql # not compatible
query II rowsort label-8705
SELECT - MIN ( DISTINCT 49 ) + COUNT ( DISTINCT + ( - col0 ) ) * - 36 AS col0, ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-157
-3

query I rowsort
SELECT ALL + col1 + + + 33 FROM tab2 AS cor0
----
100
110
84

query I rowsort
SELECT ALL + 9 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + 22 col1 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - COUNT( * ) * + - SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-8709
SELECT - COUNT ( * ) * + - SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ( ( + - MIN( + - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8710
SELECT ( ( + - MIN ( + - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 0 + col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 * + + 56 col2 FROM tab2 AS cor0
----
-172480
-217616
-65688

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT ALL + + 75 DIV + ( - 82 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + + 75 / + ( - 82 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8714
SELECT + - COUNT( * ) DIV - MIN( ALL + 28 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8714
SELECT + - COUNT ( * ) / - MIN ( ALL + 28 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8715
SELECT DISTINCT 20 DIV + 40, ( + + 81 ) * + col2 AS col1 FROM tab1 AS cor0
----
0
4779
0
5508
0
7776

skipif mysql # not compatible
query II rowsort label-8715
SELECT DISTINCT 20 / + 40, ( + + 81 ) * + col2 AS col1 FROM tab1 AS cor0
----
0
4779
0
5508
0
7776

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 4 + 38 = NULL
----

query I rowsort
SELECT ALL ( + - col2 ) AS col1 FROM tab0 WHERE + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL COUNT( DISTINCT + - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL COUNT ( DISTINCT + - col2 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col1, + col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + col1 * - 60 AS col2 FROM tab1
----
-51
-840
-85
-300
-91
-2820

query I rowsort
SELECT ALL - 61 AS col2 FROM tab0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT col2 * 6 AS col1 FROM tab0
----
282
594
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 70 NOT BETWEEN col0 * + 35 AND 37
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8724
SELECT + COUNT( * ), 30 AS col2 FROM tab2
----
3
30

skipif mysql # not compatible
query II rowsort label-8724
SELECT + COUNT ( * ), 30 AS col2 FROM tab2
----
3
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT - 58 DIV + col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT - 58 / + col0 FROM tab2
----
-1
0
0

query II rowsort
SELECT + - 34 AS col2, col0 FROM tab0 AS cor0
----
-34
15
-34
87
-34
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT MIN( - + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8727
SELECT MIN ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + - 73 + + 91 AS col0 FROM tab2 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 + - col0 col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query II rowsort
SELECT DISTINCT + col2, col2 AS col1 FROM tab1 cor0
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8731
SELECT 80, - col0 DIV + col0 + - col2 DIV - + col0 + 31 AS col2 FROM tab2 AS cor0
----
80
30
80
30
80
30

skipif mysql # not compatible
query II rowsort label-8731
SELECT 80, - col0 / + col0 + - col2 / - + col0 + 31 AS col2 FROM tab2 AS cor0
----
80
30
80
30
80
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col2 NOT BETWEEN - col0 / 89 AND NULL
----

query II rowsort
SELECT col1 AS col2, col0 FROM tab0 cor0
----
1
97
21
87
81
15

query I rowsort
SELECT - 43 * - ( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3741
4171
645

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + 63 < NULL
----

query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab1, tab2 AS cor0
----
-77

query I rowsort
SELECT 88 * 60 + + col1 FROM tab1
----
5285
5294
5327

query I rowsort
SELECT - col0 + - 43 FROM tab1
----
-128
-134
-94

query I rowsort
SELECT 93 + - col1 AS col1 FROM tab2
----
16
26
42

query I rowsort
SELECT ( - col2 ) + - col2 AS col0 FROM tab0
----
-198
-20
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col0 / + col0 + + ( - 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT col0 * + col2 - - CAST( + 35 AS SIGNED ) + - + col1 * + col2 FROM tab0 AS cor0
----
-3067
695
9539

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT col0 * + col2 - - CAST ( + 35 AS INTEGER ) + - + col1 * + col2 FROM tab0 AS cor0
----
-3067
695
9539

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT 67 - + COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT 67 - + COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - - COUNT( * ) * + 93 + - 44 col0 FROM tab2 cor0
----
235

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8745
SELECT - - COUNT ( * ) * + 93 + - 44 col0 FROM tab2 cor0
----
235

query I rowsort
SELECT ALL + + 29 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + COUNT( * ) + - + 93 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-8747
SELECT + COUNT ( * ) + - + 93 FROM tab2
----
-90

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN col1 AND col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + SUM( - 45 ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-8750
SELECT + SUM ( - 45 ) FROM tab0
----
-135

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 WHERE + 29 * + col0 >= 21 * + - 13 + col2 * - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT DISTINCT + MIN( DISTINCT - - col1 ) - + ( + + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * + + 30 * + - ( + 21 ) FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + MIN ( DISTINCT - - col1 ) - + ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * + + 30 * + - ( + 21 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 82 <> - - col0 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT DISTINCT + col0 DIV - ( + + col0 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + col0 / - ( + + col0 ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT + CAST( + - SUM( ALL col0 ) AS SIGNED ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + CAST ( + - SUM ( ALL col0 ) AS INTEGER ) FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + + SUM( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + + SUM ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT - col0 * - col1 * + 78 * - - col0 + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT + 82 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8757
SELECT - col0 * - col1 * + 78 * - - col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT MIN( ALL + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8758
SELECT MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT + + 27 + + + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT + + 27 + + + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
36

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 11 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE - 9 IS NULL
----

query I rowsort
SELECT DISTINCT + - 27 AS col0 FROM tab1 cor0
----
-27

query I rowsort
SELECT ALL 95 + col0 AS col0 FROM tab0 cor0
----
110
182
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL - 72 * - - MIN( DISTINCT + 73 ) AS col1 FROM tab1 AS cor0 WHERE 33 + col1 / - col1 > - ( + 30 )
----
-5256

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - 72 * - - MIN ( DISTINCT + 73 ) AS col1 FROM tab1 AS cor0 WHERE 33 + col1 / - col1 > - ( + 30 )
----
-5256

query I rowsort
SELECT DISTINCT - 54 + + col2 + + col2 FROM tab0 AS cor0
----
-34
144
40

query I rowsort
SELECT col2 * + - 79 FROM tab0 AS cor0
----
-3713
-7821
-790

query II rowsort
SELECT + + col1, 38 AS col0 FROM tab0 cor0
----
1
38
21
38
81
38

query I rowsort
SELECT ALL 90 + + 21 FROM tab1 AS cor0
----
111
111
111

query I rowsort
SELECT ALL - 18 * + col0 AS col1 FROM tab2
----
-1152
-1350
-828

query I rowsort
SELECT ALL col0 * - - 55 - - col1 AS col1 FROM tab0
----
4806
5336
906

query II rowsort
SELECT 57 AS col0, col1 FROM tab0
----
57
1
57
21
57
81

query I rowsort
SELECT ALL 69 - + 49 AS col2 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT ALL COUNT( * ) AS col0, 92 FROM tab1
----
3
92

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL COUNT ( * ) AS col0, 92 FROM tab1
----
3
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL AND NOT ( NULL < col1 / - col0 * + 51 )
----

query I rowsort
SELECT ( + 63 ) FROM tab2 WHERE ( 92 ) > NULL
----

query I rowsort
SELECT + - col1 + + - col2 FROM tab1 WHERE + col2 IS NOT NULL
----
-110
-115
-64

query I rowsort
SELECT ALL 66 * + 22 * + col0 AS col1 FROM tab2 AS cor0
----
108900
66792
92928

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 25 + - col1 FROM tab2 AS cor0
----
-26
-42
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT + - CAST( NULL AS SIGNED ) + + COUNT( + col1 ) AS col1 FROM tab0 AS cor0 WHERE + 11 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT + - CAST ( NULL AS INTEGER ) + + COUNT ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE + 11 * col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 14 + + 23 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL ( + - 46 ) AS col1 FROM tab2 WHERE NOT + - 90 <= col1
----

query I rowsort
SELECT DISTINCT + col0 * - ( + 24 ) AS col2 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * + + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 54 AS col0 FROM tab2 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + ( - MAX( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8786
SELECT + ( - MAX ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT DISTINCT - 16 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 - - col2 IN ( col0 * col2, + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT - 16 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 - - col2 IN ( col0 * col2, + col0 )
----
NULL

query I rowsort
SELECT ALL - col2 * - 39 AS col2 FROM tab2
----
1560
2262
897

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT + MIN( DISTINCT + + 12 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT + MIN ( DISTINCT + + 12 ) AS col1 FROM tab2
----
12

query I rowsort
SELECT + col1 * - - col2 FROM tab0 WHERE NOT ( NOT ( ( NOT ( + col0 ) IS NULL ) ) )
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT ALL + CAST( + 4 AS SIGNED ) * col1 AS col2 FROM tab0
----
324
4
84

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + CAST ( + 4 AS INTEGER ) * col1 AS col2 FROM tab0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - 45 * - COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-8792
SELECT - 45 * - COUNT ( * ) FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT 4 AS col0, 57 * + ( + COUNT( * ) ) AS col2 FROM tab2
----
4
171

skipif mysql # not compatible
query II rowsort label-8793
SELECT 4 AS col0, 57 * + ( + COUNT ( * ) ) AS col2 FROM tab2
----
4
171

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT DISTINCT + - 8 DIV + col1 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8794
SELECT DISTINCT + - 8 / + col1 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + + col0 / col2 AS col1 FROM tab0 WHERE ( 33 ) IN ( + col2 )
----

query I rowsort
SELECT 88 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT + COUNT( * ) * 97 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT + COUNT ( * ) * 97 FROM tab1
----
291

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 - - col1 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * + col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2208
3840
5568

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 79 >= NULL
----

query I rowsort
SELECT 29 * + col1 + col0 AS col1 FROM tab1
----
1454
230
457

query I rowsort
SELECT col1 * ( col0 ) + - col1 AS col0 FROM tab2
----
2295
4851
4958

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + 14 < col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT - col1 + + 93 AS col1 FROM tab1 WHERE NOT col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND 43
----

skipif mysql # not compatible
query I rowsort label-8805
SELECT - col1 + + 93 AS col1 FROM tab1 WHERE NOT col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND 43
----

query I rowsort
SELECT - 2 + + 85 AS col2 FROM tab1
----
83
83
83

query I rowsort
SELECT + 3 + col1 AS col0 FROM tab2
----
54
70
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8808
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + ( col2 ) - col2 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT ALL col2 - col2 * - col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND CAST( ( - 35 ) AS SIGNED ) * - ( 32 )
----

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL col2 - col2 * - col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND CAST ( ( - 35 ) AS INTEGER ) * - ( 32 )
----

query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN - ( 1 ) * 58 AND ( - 78 )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE + col2 * + col2 + - 63 * 19 > - ( ( + col1 ) )
----
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT ( 49 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT ( 49 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 * - col2 + + 13 * col0 FROM tab2
----
-208
-533
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT DISTINCT + col0 DIV - 49 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + col0 / - 49 FROM tab2
----
-1
0

query I rowsort
SELECT + 16 + col1 AS col1 FROM tab0
----
17
37
97

query I rowsort
SELECT DISTINCT 60 * - col2 FROM tab0 WHERE ( col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ( + COUNT( * ) ) col0 FROM tab0 WHERE col2 + - 50 / - col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8818
SELECT ( + COUNT ( * ) ) col0 FROM tab0 WHERE col2 + - 50 / - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT col2 + + col0 FROM tab1 WHERE - col0 * CAST( - 92 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT col2 + + col0 FROM tab1 WHERE - col0 * CAST ( - 92 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col1 * col0 IS NOT NULL
----

query I rowsort
SELECT 91 * + col0 AS col1 FROM tab1
----
4641
7735
8281

query I rowsort
SELECT + ( col1 ) * 41 FROM tab1
----
1927
205
574

query I rowsort
SELECT + col0 * 79 - col2 FROM tab0
----
1138
6863
7564

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT MIN( 67 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT MIN ( 67 ) FROM tab1
----
67

query I rowsort
SELECT ALL + 49 * 5 FROM tab0
----
245
245
245

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT MAX( + 13 ) * COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8828
SELECT MAX ( + 13 ) * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL + 24 * - COUNT( - col0 ) + 71 col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8829
SELECT ALL + 24 * - COUNT ( - col0 ) + 71 col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + 87 * 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-8831
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + ( col0 ) * col2 ) >= + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <> 25 / 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 16 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 72 * col0 + col0 * col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + 89 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) ) NOT IN ( - ( 12 ) + - col2 * - col0 )
----

query I rowsort
SELECT DISTINCT + - col1 * 91 AS col0 FROM tab2 cor0
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + COUNT( * ) * COUNT( * ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8839
SELECT + COUNT ( * ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT col2 DIV + 50 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8840
SELECT col2 / + 50 FROM tab2 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN + col0 AND 6
----

query I rowsort
SELECT ALL - col0 + + 71 AS col1 FROM tab0 WHERE NOT col1 * - col0 NOT IN ( - 29 )
----

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - SUM( ALL + 67 ) AS col1 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-8844
SELECT - SUM ( ALL + 67 ) AS col1 FROM tab2
----
-201

query I rowsort
SELECT - col2 - col1 FROM tab0 WHERE NOT - 14 + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 35 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT col1 + - 11 FROM tab1 AS cor0
----
-6
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL SUM( col0 ) AS col1 FROM tab0 AS cor0 WHERE - col2 - + col0 * + col0 < - 34 * 4
----
199

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL SUM ( col0 ) AS col1 FROM tab0 AS cor0 WHERE - col2 - + col0 * + col0 < - 34 * 4
----
199

query I rowsort
SELECT + - 66 + ( col2 ) * 94 AS col0 FROM tab1 AS cor0
----
5480
6326
8958

query I rowsort
SELECT ALL - 79 FROM tab1, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8854
SELECT ALL 83 + - CAST( + col2 AS SIGNED ) DIV col0 col0 FROM tab0 cor0
----
80
82
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8854
SELECT ALL 83 + - CAST ( + col2 AS INTEGER ) / col0 col0 FROM tab0 cor0
----
80
82
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT SUM( col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT COUNT( * ) AS col2, COUNT( DISTINCT 8 ) AS col1 FROM tab2 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-8856
SELECT COUNT ( * ) AS col2, COUNT ( DISTINCT 8 ) AS col1 FROM tab2 AS cor0
----
3
1

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( col0 * + col1 ) NOT BETWEEN ( NULL ) AND 93
----
23
40
58

query I rowsort
SELECT - ( - col1 ) * + col0 + + col0 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT DISTINCT - 73 + + col0 / + col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab1 cor0
----
10
10
10

query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT CAST( + 64 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-8862
SELECT CAST ( + 64 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
64
64
64

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN - col1 AND - col1
----

query I rowsort
SELECT DISTINCT col2 + + 70 * col1 AS col1 FROM tab1 AS cor0
----
1076
3358
409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + 35 col2 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT ALL + + ( + col1 ) + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL + + ( + col1 ) + col0 / - col1 AS col2 FROM tab0 AS cor0
----
-96
17
81

query I rowsort
SELECT ALL col0 - + col2 * + col0 AS col2 FROM tab0
----
-690
-783
-9506

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 92 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT - CAST( - - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) - - - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT - CAST ( - - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT COUNT( * ) AS col2 FROM tab2 WHERE ( + 42 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8870
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE ( + 42 ) IS NOT NULL
----
3

query I rowsort
SELECT - 74 - + + col2 FROM tab0
----
-121
-173
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT col2 + CAST( + 89 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
148
157
185

skipif mysql # not compatible
query I rowsort label-8872
SELECT col2 + CAST ( + 89 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
148
157
185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 > 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + MIN( - 2 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-8874
SELECT + MIN ( - 2 ) FROM tab0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8875
SELECT + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8875
SELECT + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT - - 41 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8876
SELECT - - 41 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 29 * - col2 AS col1 FROM tab1 AS cor0
----
-1711
-1972
-2784

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 BETWEEN + - col1 * - col1 + + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 87 * + + col0 AS col1 FROM tab1 AS cor0
----
4437
7395
7917

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT ALL + + col1 * col2 DIV + ( + col1 ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + + col1 * col2 / + ( + col1 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + + 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( - + col0 * + + 50 + - ( + 43 ) + 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT COUNT( - 76 ) AS col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8883
SELECT COUNT ( - 76 ) AS col2 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8884
SELECT ALL + col2 * 79 + ( col2 ) FROM tab0 WHERE NOT 81 > ( - + ( - CAST( NULL AS DECIMAL ) ) * - 51 )
----

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + col2 * 79 + ( col2 ) FROM tab0 WHERE NOT 81 > ( - + ( - CAST ( NULL AS REAL ) ) * - 51 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT - COUNT( + CAST( 29 AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8885
SELECT - COUNT ( + CAST ( 29 AS INTEGER ) ) FROM tab0
----
-3

query I rowsort
SELECT + 88 * - 4 FROM tab2
----
-352
-352
-352

query II rowsort
SELECT DISTINCT col2, 51 FROM tab0
----
10
51
47
51
99
51

query I rowsort
SELECT + 19 + + + col0 * - col0 FROM tab0
----
-206
-7550
-9390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8889
SELECT * FROM tab2 cor0 WHERE NOT ( col0 / col0 + CAST( NULL AS SIGNED ) + - ( 12 ) - - col2 * - col1 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8889
SELECT * FROM tab2 cor0 WHERE NOT ( col0 / col0 + CAST ( NULL AS INTEGER ) + - ( 12 ) - - col2 * - col1 ) = NULL
----

query I rowsort
SELECT + ( - col1 ) + - col1 AS col1 FROM tab0 cor0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 * - 38 * + col2 + + - 47 col0, + col1 * - col0 * + col1 FROM tab0 AS cor0
----
372391
-97
3753
-38367
83895
-98415

query I rowsort
SELECT 99 + col1 - col2 AS col2 FROM tab0 cor0
----
1
110
133

query I rowsort
SELECT ALL + - col0 * 10 + + col2 FROM tab2 AS cor0
----
-437
-600
-692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - col0 col1, - 18 * col1 FROM tab2 AS cor0
----
-141
-1386
-142
-1206
-97
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT ALL col0 DIV - 14 AS col1 FROM tab0 cor0
----
-1
-6
-6

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL col0 / - 14 AS col1 FROM tab0 cor0
----
-1
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 AS col0, 65 col2 FROM tab2 AS cor0
----
-51
65
-67
65
-77
65

query I rowsort
SELECT ALL col2 + + 67 AS col2 FROM tab0 AS cor0
----
114
166
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT ( - col0 ) DIV col2 * 65 FROM tab1
----
-65
-65
0

skipif mysql # not compatible
query I rowsort label-8898
SELECT ( - col0 ) / col2 * 65 FROM tab1
----
-65
-65
0

query I rowsort
SELECT DISTINCT + 24 FROM tab1 WHERE NOT - 25 <= 56
----

query I rowsort
SELECT + 52 * + 19 FROM tab0
----
988
988
988

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT ( 13 ) DIV + col1 * - ( col1 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT ( 13 ) / + col1 * - ( col1 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - - 99 + + + col2 + + col0 AND ( NULL )
----

query II rowsort
SELECT DISTINCT col0 + - col1, 84 AS col2 FROM tab0 AS cor0
----
-66
84
66
84
96
84

query II rowsort
SELECT ALL - col0 + col0 AS col0, col0 AS col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 12 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT ALL + col2 * - ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE 22 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + col2 * - ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE 22 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 3 + col0 AS col0 FROM tab1 AS cor0 WHERE + 90 * - 67 * col1 + + 38 NOT IN ( - col0 )
----
54
88
94

query III rowsort
SELECT * FROM tab2 WHERE col2 = - 47 OR - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT - ( COUNT( * ) ) col1 FROM tab2 WHERE NOT ( NULL ) IS NULL OR NULL <= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8909
SELECT DISTINCT - ( COUNT ( * ) ) col1 FROM tab2 WHERE NOT ( NULL ) IS NULL OR NULL <= ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 - - + col2 col1 FROM tab2
----
115
80
97

query II rowsort
SELECT ALL + col0 * - + col0 - - 12, - 97 * + + col0 AS col1 FROM tab1
----
-2589
-4947
-7213
-8245
-8269
-8827

query I rowsort
SELECT ( - + 59 ) FROM tab1
----
-59
-59
-59

query I rowsort
SELECT - 98 AS col2 FROM tab1 WHERE NOT col2 > + + 78 / - col1 + + + 53
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL + + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 56 ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 56 ) IS NULL
----
6

query I rowsort
SELECT ALL col2 * col0 * + col0 * + - col1 FROM tab2 AS cor0
----
-12615680
-21858750
-2482068

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT ( + + COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT ( + + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT col2 * - + 30 FROM tab2 cor0
----
-1200
-1740
-690

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * + + 95 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col2 FROM tab2 cor0
----
8

query I rowsort
SELECT - ( 38 ) * + col1 FROM tab0 AS cor0
----
-3078
-38
-798

query I rowsort
SELECT DISTINCT + - 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

query III rowsort
SELECT ALL * FROM tab2 WHERE 5 * + + col1 < + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 6 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL + MIN( + 83 ) AS col2 FROM tab0 AS cor0 WHERE - 69 IN ( col2, - 52 / + 13 * + col1 * - 24 - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL + MIN ( + 83 ) AS col2 FROM tab0 AS cor0 WHERE - 69 IN ( col2, - 52 / + 13 * + col1 * - 24 - - col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col1 FROM tab2 cor0
----
57
57
57

query II rowsort
SELECT ALL 8 + - 41 AS col2, ( + col1 ) + 33 FROM tab2 AS cor0
----
-33
100
-33
110
-33
84

query II rowsort
SELECT + col1 * + - col0 AS col2, - 48 FROM tab0 AS cor0
----
-1215
-48
-1827
-48
-97
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT MIN( + + col2 ) * + 62 AS col2 FROM tab1 AS cor0
----
3658

skipif mysql # not compatible
query I rowsort label-8930
SELECT MIN ( + + col2 ) * + 62 AS col2 FROM tab1 AS cor0
----
3658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT DISTINCT - 20 + CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT + col0 NOT IN ( + 5, + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8931
SELECT DISTINCT - 20 + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT + col0 NOT IN ( + 5, + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT DISTINCT AVG ( + - 26 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT AVG ( + - 26 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - 6 + - + col2 / - 90 IN ( ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, - 25 col1 FROM tab1
----
59
-25
68
-25
96
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT + COUNT( * ) * - 33 AS col2 FROM tab2 WHERE NOT ( col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + COUNT ( * ) * - 33 AS col2 FROM tab2 WHERE NOT ( col2 ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 73 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 73 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - + col2 * col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT ALL + col0 * + - col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT col0 + - + col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( - col1 ) + + col0 col0 FROM tab2 AS cor0
----
41
51
83

query I rowsort
SELECT + col1 * - - 99 + + 99 FROM tab1 AS cor0
----
1485
4752
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8942
SELECT 68 + + CAST( NULL AS SIGNED ) col0, - COUNT( * ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8942
SELECT 68 + + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) FROM tab0
----
NULL
-3

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + + col1 + - col0 * + + col0 + - + col2 * + col0 - - col1 ) = - 42
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * 1 - - col0 + - col1 * - col1 NOT BETWEEN - col0 - 4 AND - - col1 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 60 + - + col1 FROM tab2 cor0
----
-111
-127
-137

query I rowsort
SELECT - + ( col0 ) * + 76 * col1 AS col0 FROM tab2 AS cor0
----
-178296
-374528
-381900

query I rowsort
SELECT DISTINCT + col0 * - + 47 FROM tab2 cor0
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT - - col2 + 68 AS col2 FROM tab1 AS cor0
----
127
136
164

query I rowsort
SELECT + col2 * + ( - col1 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + - 21 * 85 FROM tab2 AS cor0
----
-1785
-1785
-1785

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + COUNT( DISTINCT + 31 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-8951
SELECT + COUNT ( DISTINCT + 31 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

query I rowsort
SELECT - - col0 * ( - col1 ) FROM tab2 AS cor0 WHERE NULL IN ( + col2, col1, + + 26 )
----

query I rowsort
SELECT + 9 - - col2 FROM tab1 AS cor0
----
105
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT + SUM( 26 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-8954
SELECT + SUM ( 26 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
78

query I rowsort
SELECT ALL 13 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
1288
151
692

query I rowsort
SELECT DISTINCT col0 + - col1 + col0 AS col1 FROM tab2 AS cor0
----
41
51
83

query I rowsort
SELECT DISTINCT col1 - - col1 - - 27 AS col0 FROM tab1
----
121
37
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT 36 - 49 - - col2 DIV - 24 FROM tab2
----
-13
-14
-15

skipif mysql # not compatible
query I rowsort label-8958
SELECT 36 - 49 - - col2 / - 24 FROM tab2
----
-13
-14
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col0 FROM tab1 WHERE NULL IS NULL
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT - 3 * MAX( - 7 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - 3 * MAX ( - 7 ) FROM tab1
----
21

query I rowsort
SELECT ALL + 34 * - col0 AS col2 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col1 * + 51 * - 30 BETWEEN NULL AND ( + col1 )
----
23
40
58

query I rowsort
SELECT DISTINCT - - col2 * - 86 FROM tab2 AS cor0
----
-1978
-3440
-4988

query II rowsort
SELECT + 72, col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 / - 37 + + + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL - 87 * + + COUNT( col0 ) - - 42 - - 53 * + 58 AS col2 FROM tab2 AS cor0
----
2855

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - 87 * + + COUNT ( col0 ) - - 42 - - 53 * + 58 AS col2 FROM tab2 AS cor0
----
2855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8966
SELECT - AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 1 * + + col0 FROM tab0
----
15
87
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 62 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8969
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + col0 BETWEEN - col0 AND + col2 * - 1 * CAST( + - col2 AS SIGNED ) * + - 10 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-8969
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + col0 BETWEEN - col0 AND + col2 * - 1 * CAST ( + - col2 AS INTEGER ) * + - 10 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + MIN( DISTINCT col2 ) * + 49 col1 FROM tab0 AS cor0
----
490

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8970
SELECT + MIN ( DISTINCT col2 ) * + 49 col1 FROM tab0 AS cor0
----
490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col2 * + 28 col2 FROM tab1 AS cor0
----
-51
2688
-85
1652
-91
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - + ( - - COUNT( DISTINCT col1 ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8972
SELECT - + ( - - COUNT ( DISTINCT col1 ) ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8973
SELECT + COUNT( * ), 65 AS col1 FROM tab0 AS cor0
----
3
65

skipif mysql # not compatible
query II rowsort label-8973
SELECT + COUNT ( * ), 65 AS col1 FROM tab0 AS cor0
----
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL SUM( col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL SUM ( col2 ) AS col0 FROM tab2 cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 + - - ( 11 ) col0 FROM tab2 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT 35 + + - MIN( - col0 ) FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-8976
SELECT 35 + + - MIN ( - col0 ) FROM tab2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT - CAST( col2 AS SIGNED ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 15 * + + 55
----

skipif mysql # not compatible
query I rowsort label-8977
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 15 * + + 55
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - + 96 col0 FROM tab1 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + + - col0 col2 FROM tab0
----
-13
-3
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + 39 + + COUNT( * ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8981
SELECT + 39 + + COUNT ( * ) AS col1 FROM tab2
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = + col1 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + + 89 * + ( col0 ) + - + col0 FROM tab2 cor0 WHERE col2 / - col1 IS NULL
----

query I rowsort
SELECT ALL + + 88 FROM tab0 cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL + 84 + - - COUNT( * ) FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + 84 + - - COUNT ( * ) FROM tab2 cor0
----
87

query II rowsort
SELECT col2, ( col1 ) FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT 25 AS col1, COUNT( * ) AS col0 FROM tab2
----
25
3

skipif mysql # not compatible
query II rowsort label-8989
SELECT 25 AS col1, COUNT ( * ) AS col0 FROM tab2
----
25
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT ALL + MAX( + CAST( - + 16 AS SIGNED ) ) AS col1 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + MAX ( + CAST ( - + 16 AS INTEGER ) ) AS col1 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query III rowsort label-8991
SELECT COUNT( * ), + 25 AS col0, - 63 AS col0 FROM tab0
----
3
25
-63

skipif mysql # not compatible
query III rowsort label-8991
SELECT COUNT ( * ), + 25 AS col0, - 63 AS col0 FROM tab0
----
3
25
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8992
SELECT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN - CAST( NULL AS DECIMAL ) * - col1 / + 8 AND ( - + 29 )
----

skipif mysql # not compatible
query III rowsort label-8992
SELECT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN - CAST ( NULL AS REAL ) * - col1 / + 8 AND ( - + 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8993
SELECT 81 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
81
NULL
81
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8993
SELECT 81 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
81
NULL
81
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col1, COUNT( * ) * - - ( + - SUM( ALL - col1 ) ) FROM tab1
----
-9
198

skipif mysql # not compatible
query II rowsort label-8994
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col1, COUNT ( * ) * - - ( + - SUM ( ALL - col1 ) ) FROM tab1
----
-9
198

query III rowsort
SELECT * FROM tab1 WHERE col2 * - 21 BETWEEN NULL AND - col1 AND NULL BETWEEN col2 AND + + 11 + + 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 col1, col1 FROM tab0
----
18
1
18
21
18
81

query I rowsort
SELECT ALL col1 * - 99 * + 81 FROM tab1
----
-112266
-376893
-40095

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + - 13 AND col1 * + - col0 * - 64 + + + col2 - - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT - MAX( 39 ) AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT - MAX ( 39 ) AS col1 FROM tab0
----
-39

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / - - col1 * - + ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9001
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) + + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9001
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) + + + col1 IS NULL
----

query II rowsort
SELECT DISTINCT - + 18, 65 AS col2 FROM tab0 AS cor0
----
-18
65

query I rowsort
SELECT DISTINCT - col0 * - 49 AS col2 FROM tab1 AS cor0
----
2499
4165
4459

query II rowsort
SELECT + 31 + - 84 AS col0, ( - col0 ) FROM tab0
----
-53
-15
-53
-87
-53
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9005
SELECT ALL + ( + + col1 ) DIV + 11 FROM tab1 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + ( + + col1 ) / + 11 FROM tab1 cor0
----
0
1
4

query I rowsort
SELECT DISTINCT 56 + + 83 + col2 * col1 FROM tab2 AS cor0
----
1312
3219
4025

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 BETWEEN + 37 + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * 4 * col0 * + - col2 FROM tab0 AS cor0
----
132540
34800
3802788

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 + - - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT col1 DIV - + 18 AS col2 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-9010
SELECT col1 / - + 18 AS col2 FROM tab2
----
-2
-3
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9011
SELECT DISTINCT col1 DIV 4 * + col1 * + 20 * - + col0 col0 FROM tab1
----
-42840
-8500
-940940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT DISTINCT col1 / 4 * + col1 * + 20 * - + col0 col0 FROM tab1
----
-42840
-8500
-940940

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT ALL - 78 DIV - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - 78 / - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col1 FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT CAST( - - 14 AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT CAST ( - - 14 AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + - col1 NOT BETWEEN NULL AND - ( - ( 4 ) )
----

query I rowsort
SELECT - col1 + - + 17 FROM tab1 cor0
----
-22
-31
-64

query I rowsort
SELECT + 15 + - - col2 FROM tab1 AS cor0
----
111
74
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 60 - ( + col0 ) col0 FROM tab1 AS cor0
----
-2911
-385
-891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL + col2 - col2 + - 11 * col2 + 27 + col1 * + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + col2 - col2 + - 11 * col2 + 27 + col1 * + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT DISTINCT MIN( + 86 ) * + COUNT( + + 69 ) * COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
6966

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT MIN ( + 86 ) * + COUNT ( + + 69 ) * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
6966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9021
SELECT + - ( - 85 ) DIV COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9021
SELECT + - ( - 85 ) / COUNT ( * ) FROM tab0 AS cor0
----
28

query I rowsort
SELECT - 90 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT 2 * - + 17 DIV - + 83 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9023
SELECT 2 * - + 17 / - + 83 AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 25 * - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 95 ) col0 FROM tab1 AS cor0
----
-95
-95
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 70 * - - col0 * - col2 * col0 + 83 - + col2 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 37 * - + col0 + - col1 col0 FROM tab1 WHERE NOT - col2 <> + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT ALL - 51 * CAST( - - ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL - 51 * CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0
----
-153

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT - col2 IN ( - col1 / 30, 63, + - col2 * col0, - 52 )
----
14
47
5

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT + col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT MAX( ALL + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT MAX ( ALL + col1 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT DISTINCT + 62 AS col0, COUNT( * ) FROM tab0
----
62
3

skipif mysql # not compatible
query II rowsort label-9035
SELECT DISTINCT + 62 AS col0, COUNT ( * ) FROM tab0
----
62
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL COUNT( - ( - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL COUNT ( - ( - col1 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT + MAX( 16 ) AS col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9037
SELECT + MAX ( 16 ) AS col1 FROM tab0 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT + - 7 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT + - 7 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 33 * - col2 AS col1 FROM tab1 AS cor0
----
-1947
-2244
-3168

query I rowsort
SELECT ALL col1 * 59 AS col2 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT + 12 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query II rowsort
SELECT col2, + 74 FROM tab2
----
23
74
40
74
58
74

onlyif mysql # DIV for integer division: 
query II rowsort label-9043
SELECT - 79 AS col1, + 16 DIV + 26 + 57 * - col0 * col2 * + 87 AS col2 FROM tab2
----
-79
-12695040
-79
-21571650
-79
-5246622

skipif mysql # not compatible
query II rowsort label-9043
SELECT - 79 AS col1, + 16 / + 26 + 57 * - col0 * col2 * + 87 AS col2 FROM tab2
----
-79
-12695040
-79
-21571650
-79
-5246622

query II rowsort
SELECT + col1, + col2 - + 71 + ( col0 ) FROM tab1 cor0
----
14
76
47
88
5
73

query II rowsort
SELECT - - 28 AS col1, col0 AS col2 FROM tab0 cor0
----
28
15
28
87
28
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9046
SELECT + col1 + + - 21 + + - CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT + col1 + + - 21 + + - CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - + col2 ) + 96 AS col1 FROM tab1 AS cor0
----
0
28
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL MIN( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9048
SELECT ALL MIN ( DISTINCT + col0 ) col1 FROM tab0 AS cor0
----
15

query II rowsort
SELECT col1 + - col2, - ( + 1 ) AS col2 FROM tab0
----
-98
-1
11
-1
34
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT - MIN( col2 ) + + + COUNT( * ) * 78 AS col2 FROM tab1
----
175

skipif mysql # not compatible
query I rowsort label-9050
SELECT - MIN ( col2 ) + + + COUNT ( * ) * 78 AS col2 FROM tab1
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL - COUNT( * ) + MIN( DISTINCT + 90 ) AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - COUNT ( * ) + MIN ( DISTINCT + 90 ) AS col2 FROM tab2
----
87

query I rowsort
SELECT col0 * - col1 * + col0 + col0 AS col1 FROM tab1
----
-36040
-36363
-389116

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT COUNT( * ) + + 69 - - + MIN( ALL + 14 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-9053
SELECT COUNT ( * ) + + 69 - - + MIN ( ALL + 14 ) FROM tab1
----
86

query I rowsort
SELECT + 0 * + col2 * - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT - - 74 * - SUM( col1 ) FROM tab0 WHERE NOT - 21 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - - 74 * - SUM ( col1 ) FROM tab0 WHERE NOT - 21 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 77 + col0 col2 FROM tab0 cor0
----
-62
10
20

query I rowsort
SELECT 34 * col0 - - + ( 94 ) + col2 FROM tab1
----
1924
3043
3256

query I rowsort
SELECT 7 * - 16 FROM tab2 AS cor0
----
-112
-112
-112

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( - + ( - + 12 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9060
SELECT DISTINCT - - COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT - - COUNT ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - - MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9061
SELECT - - MAX ( col1 ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT ( + 91 ), col0 * - col1 AS col2 FROM tab2
----
91
-2346
91
-4928
91
-5025

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 6 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL + ( + 92 ) AS col1 FROM tab2 WHERE + + CAST( - col2 AS SIGNED ) IS NOT NULL
----
92
92
92

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + ( + 92 ) AS col1 FROM tab2 WHERE + + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
92
92
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - + ( + - 96 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9066
SELECT + + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL COUNT( * ) * - 40 AS col0 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL COUNT ( * ) * - 40 AS col0 FROM tab0
----
-120

query I rowsort
SELECT ALL 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 19 col2 FROM tab0
----
1
19
21
19
81
19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 65
----

query I rowsort
SELECT DISTINCT col2 + + col0 * 80 FROM tab0 AS cor0 WHERE - col2 >= + - 68
----
1247
6970

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT - SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9073
SELECT - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT - + 95 + + + col1 FROM tab2 AS cor0
----
-18
-28
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 col0 FROM tab1
----
-59
-85
-68
-91
-96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9076
SELECT DISTINCT * FROM tab0 WHERE NOT + 25 <= col0 + - CAST( - CAST( + + col2 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9076
SELECT DISTINCT * FROM tab0 WHERE NOT + 25 <= col0 + - CAST ( - CAST ( + + col2 AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT + 57 * col1 AS col1 FROM tab1
----
2679
285
798

query I rowsort
SELECT + col1 - - + 4 AS col1 FROM tab1
----
18
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT ALL - 96 - col0 * col1 * CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
197024
291354
53862

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - 96 - col0 * col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
197024
291354
53862

query I rowsort
SELECT ALL + col2 * - + 25 * col0 FROM tab1
----
-122400
-125375
-154700

query I rowsort
SELECT DISTINCT - 57 + - col0 AS col2 FROM tab0
----
-144
-154
-72

query I rowsort
SELECT ALL ( + + 42 ) * - + 6 * - - 7 * - col0 AS col2 FROM tab1
----
149940
160524
89964

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT 93 + - ( COUNT( * ) ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9083
SELECT 93 + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - - ( + - COUNT( * ) ) + - + 3 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9084
SELECT - - ( + - COUNT ( * ) ) + - + 3 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 93 * col0 <= col0
----

query II rowsort
SELECT col0, + ( ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ( - - 84 ) FROM tab2 AS cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 82 * + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( + col1 ) * 21 FROM tab1 AS cor0
----
105
294
987

query I rowsort
SELECT 88 FROM tab1 AS cor0 WHERE NOT 44 * - col2 NOT IN ( col0, col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9091
SELECT ALL - col1 DIV col1, - ( col0 ) + + + 63 AS col1 FROM tab0 AS cor0
----
-1
-24
-1
-34
-1
48

skipif mysql # not compatible
query II rowsort label-9091
SELECT ALL - col1 / col1, - ( col0 ) + + + 63 AS col1 FROM tab0 AS cor0
----
-1
-24
-1
-34
-1
48

query I rowsort
SELECT - 99 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ALL - ( col0 ) AS col1, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 * + 19 AS col1 FROM tab0
----
10
1653
47
285
99
1843

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + col0 = + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT + SUM( ALL + 70 ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + SUM ( ALL + 70 ) FROM tab2
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT - col1 DIV col2 * + + col1 * col2 FROM tab0
----
-3807
-420
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT - col1 / col2 * + + col1 * col2 FROM tab0
----
-3807
-420
0

query I rowsort
SELECT DISTINCT ( + - 82 ) FROM tab0 AS cor0
----
-82

query I rowsort
SELECT 71 * 40 FROM tab2
----
2840
2840
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT COUNT( * ) * 61 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
549

skipif mysql # not compatible
query I rowsort label-9100
SELECT COUNT ( * ) * 61 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
549

query I rowsort
SELECT - 83 - + 43 FROM tab2 AS cor0
----
-126
-126
-126

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 = col2
----

query I rowsort
SELECT - + 88 + - col2 AS col1 FROM tab1 AS cor0
----
-147
-156
-184

query I rowsort
SELECT + 97 + - col0 AS col2 FROM tab2 AS cor0
----
22
33
51

query I rowsort
SELECT 84 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-3933
-753
-8219

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL 7 + - COUNT( * ) FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL 7 + - COUNT ( * ) FROM tab2 cor0
----
4

query I rowsort
SELECT DISTINCT - col2 + - + 31 FROM tab1 AS cor0
----
-127
-90
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT - + 40 + - + 26 DIV - 49 AS col2 FROM tab2 cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-9108
SELECT - + 40 + - + 26 / - 49 AS col2 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - col1 - + - col2 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - col2 * ( col2 ) AS col0 FROM tab1
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, + col1 col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + col1 - + ( - col1 ) + col0 AS col1 FROM tab1
----
185
79
95

query I rowsort
SELECT + ( - + 16 ) FROM tab0
----
-16
-16
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9114
SELECT DISTINCT COUNT( * ) AS col2, MAX( ALL - + 27 ) DIV + COUNT( * ) col2 FROM tab0
----
3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9114
SELECT DISTINCT COUNT ( * ) AS col2, MAX ( ALL - + 27 ) / + COUNT ( * ) col2 FROM tab0
----
3
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - + col1 col2 FROM tab2
----
-459
-603
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT col2 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-9116
SELECT col2 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 12 / - 86 - + AVG ( - 21 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 col1 FROM tab1 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT col1 DIV + + 12 AS col0 FROM tab2
----
4
5
6

skipif mysql # not compatible
query I rowsort label-9119
SELECT col1 / + + 12 AS col0 FROM tab2
----
4
5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT + MAX( + col0 ) * + 73 FROM tab1
----
6643

skipif mysql # not compatible
query I rowsort label-9120
SELECT + MAX ( + col0 ) * + 73 FROM tab1
----
6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT DISTINCT + col2 / - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT + col2 / - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL - - SUM( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - - SUM ( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT col0 + - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col0 * + - col2 / - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT DISTINCT + CAST( - + COUNT( - + 81 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + CAST ( - + COUNT ( - + 81 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9126
SELECT - 32 * - COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-9126
SELECT - 32 * - COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT CAST( NULL AS SIGNED ) / col1 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT CAST ( NULL AS INTEGER ) / col1 * col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 57 * - col1, + col0 AS col1 FROM tab0
----
-1197
87
-4617
15
-57
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT ALL + col2 DIV - col0 * - 74 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL + col2 / - col0 * - 74 * - col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT col2 DIV + 39 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9130
SELECT col2 / + 39 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL - col1 + 24 - - col1 * 4 AS col0 FROM tab1
----
165
39
66

query I rowsort
SELECT DISTINCT col1 + - - col2 - - - col2 AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT - 79 + + col2 - + - col0 * - col2 FROM tab2
----
-1114
-2599
-4371

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL COUNT( * ) - + 22 col2 FROM tab1
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9135
SELECT ALL COUNT ( * ) - + 22 col2 FROM tab1
----
-19

query I rowsort
SELECT + 46 + + + col1 AS col2 FROM tab2
----
113
123
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT + ( + SUM( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT + ( + SUM ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 73 AS col1 FROM tab2 cor0
----
73
73
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT COUNT( * ) * - ( SUM( DISTINCT + 27 ) ) * + - COUNT( * ) * - - 4 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
969

skipif mysql # not compatible
query I rowsort label-9140
SELECT COUNT ( * ) * - ( SUM ( DISTINCT + 27 ) ) * + - COUNT ( * ) * - - 4 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
969

query I rowsort
SELECT 71 - + + 89 FROM tab2
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IS NULL AND NOT NULL >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT ALL - col0 * 95 DIV - col1 AS col0 FROM tab1
----
1615
183
346

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - col0 * 95 / - col1 AS col0 FROM tab1
----
1615
183
346

query I rowsort
SELECT 96 * - - col1 FROM tab0
----
2016
7776
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 / + + col1 - + col0 / col1 <> col2 * - col2 + - 43 )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT + CAST( NULL AS SIGNED ) / ( COUNT( * ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT + CAST ( NULL AS INTEGER ) / ( COUNT ( * ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT + MIN( + 77 ) AS col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9147
SELECT + MIN ( + 77 ) AS col2 FROM tab1 AS cor0
----
77

query II rowsort
SELECT DISTINCT 56 * + + col0 * - ( - ( - - 23 ) ) AS col2, col0 AS col0 FROM tab2
----
59248
46
82432
64
96600
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT - - col1 FROM tab0 cor0 WHERE NOT col2 * + + col1 + + + CAST( + + ( col1 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9149
SELECT - - col1 FROM tab0 cor0 WHERE NOT col2 * + + col1 + + + CAST ( + + ( col1 ) AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - + col1 AS col2, + 31 AS col2 FROM tab1 AS cor0
----
-14
31
-47
31
-5
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT + COUNT( * ) * + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9151
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT DISTINCT + 88, ( col2 ) AS col0 FROM tab0 AS cor0
----
88
10
88
47
88
99

query I rowsort
SELECT DISTINCT - + col0 * - col2 * + col1 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT DISTINCT - MIN( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL + + 62 * CAST( NULL AS SIGNED ) - - col1 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-9155
SELECT ALL + + 62 * CAST ( NULL AS INTEGER ) - - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9156
SELECT - col0 + - ( - col2 ) + - + CAST( + + col2 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL <> - ( - - 3 )
----

skipif mysql # not compatible
query I rowsort label-9156
SELECT - col0 + - ( - col2 ) + - + CAST ( + + col2 AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL <> - ( - - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9157
SELECT DISTINCT * FROM tab2 WHERE NOT 93 + - - 27 * + col0 * + - CAST( CAST( - ( + - col2 ) AS SIGNED ) AS SIGNED ) + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9157
SELECT DISTINCT * FROM tab2 WHERE NOT 93 + - - 27 * + col0 * + - CAST ( CAST ( - ( + - col2 ) AS INTEGER ) AS INTEGER ) + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT 69 + + 9 DIV col2 FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-9158
SELECT 69 + + 9 / col2 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9159
SELECT DISTINCT COUNT( * ), SUM( + col1 ) * - COUNT( * ) + - COUNT( * ) + - 20 AS col2 FROM tab0
----
3
-332

skipif mysql # not compatible
query II rowsort label-9159
SELECT DISTINCT COUNT ( * ), SUM ( + col1 ) * - COUNT ( * ) + - COUNT ( * ) + - 20 AS col2 FROM tab0
----
3
-332

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + col0 * + 60
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT ALL + 84 AS col1, - 19 + + + COUNT( * ) AS col0 FROM tab2
----
84
-16

skipif mysql # not compatible
query II rowsort label-9161
SELECT ALL + 84 AS col1, - 19 + + + COUNT ( * ) AS col0 FROM tab2
----
84
-16

query I rowsort
SELECT DISTINCT 76 + 54 FROM tab2
----
130

query I rowsort
SELECT ALL col1 * 99 + 35 AS col1 FROM tab0 AS cor0
----
134
2114
8054

query I rowsort
SELECT ALL 67 AS col2 FROM tab1 cor0
----
67
67
67

query I rowsort
SELECT + col0 * + + col1 + col2 AS col0 FROM tab0
----
1262
1837
196

query I rowsort
SELECT ALL col1 + + col0 * - col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT - 86 + ( + - COUNT( * ) ) col1 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9167
SELECT DISTINCT - 86 + ( + - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT - 25 DIV + + col1 + + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9168
SELECT - 25 / + + col1 + + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL col0 * + col2 AS col0, 30 AS col0 FROM tab1 WHERE col2 - + + ( - - 88 ) / + 17 + + col1 + - col0 < col2
----
4896
30
5015
30
6188
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9170
SELECT ALL 7 AS col1, + COUNT( * ) FROM tab0
----
7
3

skipif mysql # not compatible
query II rowsort label-9170
SELECT ALL 7 AS col1, + COUNT ( * ) FROM tab0
----
7
3

query I rowsort
SELECT DISTINCT col2 * 5 FROM tab0
----
235
495
50

query II rowsort
SELECT DISTINCT - 58 AS col1, + 6 FROM tab2
----
-58
6

query I rowsort
SELECT ALL - - 83 AS col1 FROM tab2 WHERE + 82 + - + 1 IS NULL
----

query I rowsort
SELECT ALL + ( + 83 ) * + - 29 AS col2 FROM tab0 AS cor0
----
-2407
-2407
-2407

query II rowsort
SELECT col1 AS col0, col1 * - col0 AS col2 FROM tab0 cor0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT ALL + - col0 * + - 89 FROM tab0 AS cor0
----
1335
7743
8633

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + col2 / - - col1 IS NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NULL NOT IN ( - col2, + col0 / - col2 )
----

query I rowsort
SELECT - 66 FROM tab1 WHERE - 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT + col1 DIV + 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9180
SELECT + col1 / + 98 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - + col2 AS col1, 65 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 98 * - 71 + - + col2 * - + ( + col1 ) FROM tab2 AS cor0
----
-3072
-3878
-5785

query I rowsort
SELECT 81 + - - 4 FROM tab0 cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT + + 63 + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
122
131
159

skipif mysql # not compatible
query I rowsort label-9185
SELECT + + 63 + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
122
131
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - MAX( DISTINCT + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - MAX ( DISTINCT + col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9187
SELECT DISTINCT + + 14 * - 14 + + COUNT( ( - - 12 ) ) + COUNT( * ) DIV - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-188

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + + 14 * - 14 + + COUNT ( ( - - 12 ) ) + COUNT ( * ) / - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-188

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col1 AS col1, - 80 + - 76 AS col0 FROM tab2 AS cor0
----
51
-156
67
-156
77
-156

query II rowsort
SELECT ALL + col1 AS col2, col0 * + 76 AS col1 FROM tab0 AS cor0
----
1
7372
21
6612
81
1140

query I rowsort
SELECT - col2 - - - col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT SUM( ALL + col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9192
SELECT SUM ( ALL + col0 ) col0 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT 3 DIV - col1 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT 3 / - col1 FROM tab0 AS cor0
----
-3
0
0

query II rowsort
SELECT - + col2, + col1 * + col1 AS col1 FROM tab0 cor0
----
-10
441
-47
6561
-99
1

query II rowsort
SELECT col1 AS col2, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE + 13 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT ALL SUM( - col0 ) AS col1, + 68 + - 42 FROM tab0
----
-199
26

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL SUM ( - col0 ) AS col1, + 68 + - 42 FROM tab0
----
-199
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - + 97 ) + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT DISTINCT ( - - 77 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE 76 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0 WHERE 76 IS NULL
----
0

query II rowsort
SELECT ALL - 65, col1 FROM tab1
----
-65
14
-65
47
-65
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT DISTINCT - col2 + - col0 + + col2 * - + CAST( NULL AS SIGNED ) - col0 * - 76 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT - col2 + - col0 + + col2 * - + CAST ( NULL AS INTEGER ) - col0 * - 76 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col2, ( + 23 ) + - col2 AS col1 FROM tab2 AS cor0
----
23
0
40
-17
58
-35

query I rowsort
SELECT + + 47 AS col2 FROM tab0 AS cor0
----
47
47
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - col1 - - 20
----

query I rowsort
SELECT DISTINCT - - ( - - col2 ) + - + col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + - 88 AS col1 FROM tab2 cor0
----
-88
-88
-88

query I rowsort
SELECT + 1 + - + 60 + - col0 AS col1 FROM tab0
----
-146
-156
-74

query I rowsort
SELECT ALL - col2 * 63 + - + 85 AS col1 FROM tab1
----
-3802
-4369
-6133

query I rowsort
SELECT 41 * + + col2 AS col1 FROM tab2
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT COUNT( DISTINCT - 23 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9212
SELECT COUNT ( DISTINCT - 23 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 15 * col1 AS col2 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL + 41 + 37 + COUNT( - - 35 ) + + 31 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + 41 + 37 + COUNT ( - - 35 ) + + 31 FROM tab0 AS cor0
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 col0, col0 FROM tab2
----
56
46
56
64
56
75

query I rowsort
SELECT DISTINCT - col2 * - col0 * - col0 + col1 - 36 * col2 FROM tab0
----
-12186
-76029
-935054

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT COUNT( * ) * + - 28 - - - COUNT( * ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-9217
SELECT COUNT ( * ) * + - 28 - - - COUNT ( * ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT ALL - 81 * + col0 - + col2 FROM tab1
----
-4227
-6944
-7439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT DISTINCT - 93 - - col1 AS col2 FROM tab0
----
-12
-72
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) + + - 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-59

skipif mysql # not compatible
query I rowsort label-9221
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + - 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-9222
SELECT + col0, col1 DIV 94 AS col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-9222
SELECT + col0, col1 / 94 AS col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9223
SELECT + 7, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-9223
SELECT + 7, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7
3

query I rowsort
SELECT DISTINCT ( ( col2 ) ) FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT - 73 * + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT - 73 * + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + 46 AS col2, + col2 AS col0 FROM tab1
----
46
59
46
68
46
96

query II rowsort
SELECT - col1 AS col1, ( 25 ) FROM tab2
----
-51
25
-67
25
-77
25

query II rowsort
SELECT ALL col2, + 86 + - + 82 AS col1 FROM tab0
----
10
4
47
4
99
4

query I rowsort
SELECT DISTINCT - col2 * + + 76 AS col2 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL - COUNT( ALL + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - COUNT ( ALL + col0 ) FROM tab1
----
-3

query I rowsort
SELECT - + 4 FROM tab0 WHERE NOT col0 IN ( ( - 96 ), col2 )
----
-4
-4
-4

query I rowsort
SELECT - 9 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT 93 + col1 * - + col0 FROM tab0
----
-1122
-1734
-4

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 52 IS NOT NULL
----

query II rowsort
SELECT - col0 + - - 81, - col0 AS col1 FROM tab1 cor0
----
-10
-91
-4
-85
30
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, - 58 + - col2, - col2, 11 )
----

query I rowsort
SELECT ALL - - 90 AS col0 FROM tab1 cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9238
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - - col1 + col1 + + 14 + - CAST( NULL AS SIGNED ) NOT BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9238
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - - col1 + col1 + + 14 + - CAST ( NULL AS INTEGER ) NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col2 NOT BETWEEN + 6 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 0 * - col1 * 53 IN ( - + col1, col1 )
----

query II rowsort
SELECT DISTINCT 43 * col0, col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 27 + - + col0 col0, col0 + - col1 AS col2 FROM tab2 AS cor0
----
-102
8
-73
-5
-91
-13

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL MIN( + 51 ) - - COUNT( * ) + + MAX( - col0 ) + - ( - 52 ) * + COUNT( * ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL MIN ( + 51 ) - - COUNT ( * ) + + MAX ( - col0 ) + - ( - 52 ) * + COUNT ( * ) FROM tab0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT + 90 * - - 1 + + COUNT( * ) + 29 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + 90 * - - 1 + + COUNT ( * ) + 29 FROM tab2
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9246
SELECT MIN( + ( + col0 ) ) * - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 WHERE ( NOT NULL < - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT MIN ( + ( + col0 ) ) * - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE ( NOT NULL < - col2 )
----
NULL

query II rowsort
SELECT ALL 93 AS col2, 55 FROM tab1 WHERE NOT 87 IS NULL
----
93
55
93
55
93
55

query I rowsort
SELECT DISTINCT - 14 * 54 FROM tab0
----
-756

query III rowsort
SELECT * FROM tab0 WHERE + col2 <= col0
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - COUNT( * ) + + + COUNT( - - col2 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9250
SELECT - COUNT ( * ) + + + COUNT ( - - col2 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * - + col0 + - + col1 FROM tab0 AS cor0
----
-786
-891
-9604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9252
SELECT DISTINCT + 2 DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT + 2 / - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 40 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - MAX( + col0 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN + 55 + - col0 AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT - MAX ( + col0 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN + 55 + - col0 AND ( col0 )
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 91 AS col2 FROM tab0
----
4277
9009
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT DISTINCT - 25 DIV COUNT( ALL - col1 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT - 25 / COUNT ( ALL - col1 ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL 52 - ( COUNT( * ) ) FROM tab2 WHERE NOT ( 10 ) NOT BETWEEN + col2 AND ( col1 * - col0 )
----
52

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL 52 - ( COUNT ( * ) ) FROM tab2 WHERE NOT ( 10 ) NOT BETWEEN + col2 AND ( col1 * - col0 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ( 23 ) + + COUNT( * ) AS col0 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-9258
SELECT ( 23 ) + + COUNT ( * ) AS col0 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL MIN( ALL + 17 ) col0 FROM tab0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9259
SELECT ALL MIN ( ALL + 17 ) col0 FROM tab0
----
17

query I rowsort
SELECT col1 * 35 + col1 AS col1 FROM tab1
----
1692
180
504

query I rowsort
SELECT DISTINCT 94 - + col0 FROM tab1
----
3
43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL COUNT( DISTINCT col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL COUNT ( DISTINCT col1 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + col2 * 69 FROM tab2
----
1633
2824
4077

query I rowsort
SELECT col2 + + col1 FROM tab0 WHERE NOT NULL IN ( - col0 * col2 )
----

query I rowsort
SELECT + col1 + - 92 AS col2 FROM tab1
----
-45
-78
-87

query I rowsort
SELECT DISTINCT + 86 FROM tab2 WHERE col2 BETWEEN NULL AND - 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT + 73 + + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
113
131
96

skipif mysql # not compatible
query I rowsort label-9269
SELECT + 73 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
113
131
96

query I rowsort
SELECT - 63 + col0 FROM tab1
----
-12
22
28

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 WHERE NULL NOT IN ( + 97 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9272
SELECT COUNT( * ) - 52 DIV 61 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9272
SELECT COUNT ( * ) - 52 / 61 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL col1 FROM tab1 WHERE NOT ( col1 + + col1 * - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND + 48
----

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL col1 FROM tab1 WHERE NOT ( col1 + + col1 * - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT + CAST( + 91 AS SIGNED ) AS col0 FROM tab2
----
91
91
91

skipif mysql # not compatible
query I rowsort label-9274
SELECT + CAST ( + 91 AS INTEGER ) AS col0 FROM tab2
----
91
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9275
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9275
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST ( NULL AS REAL ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT 82 * COUNT( - col0 ) AS col0 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-9277
SELECT 82 * COUNT ( - col0 ) AS col0 FROM tab2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND 15
----
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND 15
----
0

query I rowsort
SELECT + 19 FROM tab2 AS cor0 WHERE NOT + 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - 70 * - MAX( col2 * - col0 ) AS col2 FROM tab0 AS cor0
----
-49350

skipif mysql # not compatible
query I rowsort label-9281
SELECT - 70 * - MAX ( col2 * - col0 ) AS col2 FROM tab0 AS cor0
----
-49350

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - MAX( + 78 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9282
SELECT - MAX ( + 78 ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT ALL col0 + col1 * + 29 AS col2 FROM tab1 AS cor0
----
1454
230
457

query III rowsort
SELECT * FROM tab0 WHERE 58 < - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL 63 * COUNT( * ) + - COUNT( 5 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
558

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL 63 * COUNT ( * ) + - COUNT ( 5 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
558

query I rowsort
SELECT DISTINCT + col1 * 97 AS col1 FROM tab2
----
4947
6499
7469

query I rowsort
SELECT DISTINCT + 90 FROM tab0 AS cor0 CROSS JOIN tab1
----
90

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 cor0 WHERE 54 >= - 30
----
-9

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 cor0 WHERE 54 >= - 30
----
-9

query I rowsort
SELECT - + 99 + col0 AS col2 FROM tab0 AS cor0
----
-12
-2
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT col1 + 44 DIV col2 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9292
SELECT col1 + 44 / col2 AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 3 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + col2 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL + MIN( + col1 ) + - SUM( ALL - 27 ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL + MIN ( + col1 ) + - SUM ( ALL - 27 ) FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - - COUNT( * ) * - 73 + - 51 FROM tab1 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-9296
SELECT - - COUNT ( * ) * - 73 + - 51 FROM tab1 cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + COUNT( + col2 ) FROM tab2 cor0 WHERE col1 * col0 - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9297
SELECT + COUNT ( + col2 ) FROM tab2 cor0 WHERE col1 * col0 - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT + CAST( - ( 8 ) AS SIGNED ) FROM tab0 AS cor0 WHERE - 27 - - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9298
SELECT + CAST ( - ( 8 ) AS INTEGER ) FROM tab0 AS cor0 WHERE - 27 - - col1 IS NULL
----

query I rowsort
SELECT ALL 9 AS col0 FROM tab0 AS cor0 WHERE - col0 >= ( ( 60 ) )
----

query I rowsort
SELECT DISTINCT - 86 + col1 AS col0 FROM tab0 AS cor0
----
-5
-65
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT ( - 90 ) - + COUNT( * ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT ( - 90 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9302
SELECT ALL + ( - COUNT( * ) ) DIV + 92 FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + ( - COUNT ( * ) ) / + 92 FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT COUNT( * ) FROM tab0 cor0 WHERE + col2 <= col0
----
1

skipif mysql # not compatible
query I rowsort label-9303
SELECT COUNT ( * ) FROM tab0 cor0 WHERE + col2 <= col0
----
1

query I rowsort
SELECT DISTINCT - + col0 + + ( + 39 ) AS col0 FROM tab1 AS cor0
----
-12
-46
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 30 - col2 col2 FROM tab1
----
-1626
-2609
-2798

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL + SUM( ALL - 42 ) FROM tab1 WHERE 9 BETWEEN col1 * col2 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + SUM ( ALL - 42 ) FROM tab1 WHERE 9 BETWEEN col1 * col2 AND col2
----
NULL

query I rowsort
SELECT ALL - col0 + + - col0 AS col1 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT + 21 * - COUNT( 57 ) AS col1 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT + 21 * - COUNT ( 57 ) AS col1 FROM tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT MIN( - + 13 ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-9309
SELECT MIN ( - + 13 ) FROM tab2
----
-13

query I rowsort
SELECT + col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab1 WHERE NOT + 4 IS NULL
----
2

query I rowsort
SELECT col0 * 74 AS col0 FROM tab2
----
3404
4736
5550

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 19 + ( col0 + ( 43 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 > 51 * 32
----

query I rowsort
SELECT DISTINCT col1 * - 8 AS col0 FROM tab2
----
-408
-536
-616

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + + col2 NOT IN ( + 50 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL - MAX( ALL - col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - MAX ( ALL - col0 ) AS col2 FROM tab1 cor0
----
51

query I rowsort
SELECT - col2 * - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + - col0 ) = col2
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT ALL ( CAST( - ( - 91 ) AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( col1 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL ( CAST ( - ( - 91 ) AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT ALL 35 * CAST( 52 AS SIGNED ) col0 FROM tab2 AS cor0
----
1820
1820
1820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9321
SELECT ALL 35 * CAST ( 52 AS INTEGER ) col0 FROM tab2 AS cor0
----
1820
1820
1820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, + col1 + - 39 + - col1 * - 99 FROM tab0 AS cor0
----
15
8061
87
2061
97
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT 51 * - CAST( NULL AS SIGNED ) + - ( 23 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT 51 * - CAST ( NULL AS INTEGER ) + - ( 23 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9325
SELECT DISTINCT + - col2, col1 DIV + 78 AS col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-9325
SELECT DISTINCT + - col2, col1 / + 78 AS col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 - col1 + + col2 < - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 21 * + + col0 FROM tab2 cor0
----
1344
1575
966

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 11 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL + SUM( - + 32 ) * - 5 * SUM( ALL + 70 ) AS col0 FROM tab0 cor0
----
100800

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + SUM ( - + 32 ) * - 5 * SUM ( ALL + 70 ) AS col0 FROM tab0 cor0
----
100800

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT DISTINCT - 14 * + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT - 14 * + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-126

query I rowsort
SELECT ALL - 3 * - col0 FROM tab0
----
261
291
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL col1 DIV - + col1 col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT ALL col1 / - + col1 col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 82 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> 64
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL + 47 + - SUM( DISTINCT col0 ) FROM tab0 WHERE ( col0 - + col2 ) <> - ( 50 )
----
-152

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL + 47 + - SUM ( DISTINCT col0 ) FROM tab0 WHERE ( col0 - + col2 ) <> - ( 50 )
----
-152

query I rowsort
SELECT - 99 AS col2 FROM tab0 WHERE NOT + col1 / + + col0 + - 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 + col1 + 19 * ( col0 ) FROM tab2
----
1410
1617
999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT DISTINCT + 63 * col2 AS col0 FROM tab2 WHERE - CAST( + 65 AS SIGNED ) * col0 NOT BETWEEN NULL AND ( col2 + 98 )
----

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT + 63 * col2 AS col0 FROM tab2 WHERE - CAST ( + 65 AS INTEGER ) * col0 NOT BETWEEN NULL AND ( col2 + 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * col1 col1 FROM tab1 AS cor0 WHERE ( col0 * + + col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 63 * - col2 + - 58 + - col1 FROM tab0 AS cor0
----
2822
551
6178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - ( + 68 ) * - 63 + col0 col0 FROM tab1 AS cor0
----
4428
4431
4443

query I rowsort
SELECT + 47 + - 39 * + col1 * - - col2 FROM tab2
----
-120073
-151507
-45700

query I rowsort
SELECT - col1 * + 2 + + + ( - - col1 ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + + 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <> + + 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT col2 + + col2 col1 FROM tab0 AS cor0 WHERE + 46 = ( - CAST( - 66 AS SIGNED ) * col1 + - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9350
SELECT col2 + + col2 col1 FROM tab0 AS cor0 WHERE + 46 = ( - CAST ( - 66 AS INTEGER ) * col1 + - col0 )
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE col1 / + col2 * + col2 < - + 82 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT + COUNT( * ) - - 55 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT + COUNT ( * ) - - 55 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 - + col1 col2 FROM tab2 AS cor0
----
-73
-89
-99

query I rowsort
SELECT 46 - - 97 FROM tab0 AS cor0
----
143
143
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT 8 * COUNT( * ) AS col2 FROM tab2 WHERE ( NOT ( ( NULL ) <> ( 76 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT 8 * COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT ( ( NULL ) <> ( 76 ) ) )
----
0

query I rowsort
SELECT 61 - - col2 + - 88 * - col0 * 92 FROM tab1
----
413053
688280
736865

query I rowsort
SELECT DISTINCT 85 - + 14 + - 61 AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9358
SELECT ALL * FROM tab2 WHERE NOT - - col0 BETWEEN + col2 / col2 * - CAST( NULL AS SIGNED ) + - col1 AND + 54 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9358
SELECT ALL * FROM tab2 WHERE NOT - - col0 BETWEEN + col2 / col2 * - CAST ( NULL AS INTEGER ) + - col1 AND + 54 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 AS col0, 27 AS col2 FROM tab1 AS cor0
----
59
27
68
27
96
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT 32 DIV - - 76 - + 78 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9360
SELECT 32 / - - 76 - + 78 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT COUNT( * ) * ( COUNT( * ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT COUNT ( * ) * ( COUNT ( * ) ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT + 12 FROM tab1 WHERE NOT - + col0 + - col1 + ( - 9 ) + + - 60 - - 90 / + 40 <= ( - 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT - - 79 * + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
3713
7821
790

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9363
SELECT - - 79 * + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9364
SELECT DISTINCT AVG ( ALL CAST( - - col1 AS DECIMAL ) ) * ( - 47 ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - - col1 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT AVG ( ALL CAST ( - - col1 AS REAL ) ) * ( - 47 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - - col1 ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT col2 * + 5 FROM tab2 AS cor0 WHERE NOT 58 - col2 BETWEEN - + 26 * col1 + col2 + + 1 AND ( CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query I rowsort label-9365
SELECT col2 * + 5 FROM tab2 AS cor0 WHERE NOT 58 - col2 BETWEEN - + 26 * col1 + col2 + + 1 AND ( CAST ( NULL AS INTEGER ) + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9366
SELECT COUNT( * ) * - 5 AS col1, 9 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-9366
SELECT COUNT ( * ) * - 5 AS col1, 9 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT - 40 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 59
----
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT - 40 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 59
----
0

query I rowsort
SELECT DISTINCT 60 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 58, 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT + MIN( - + 72 ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + MIN ( - + 72 ) AS col2 FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT + SUM( + - col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-9370
SELECT + SUM ( + - col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-309

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 6 - + col0 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9372
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( - col0 * CAST( + - col0 AS SIGNED ), col1 * - col2 + 85 )
----

skipif mysql # not compatible
query III rowsort label-9372
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( - col0 * CAST ( + - col0 AS INTEGER ), col1 * - col2 + 85 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 6 + col1, + 78 )
----

query I rowsort
SELECT DISTINCT + 60 * + col0 FROM tab1
----
3060
5100
5460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9375
SELECT DISTINCT + col0, - col1 - + + col1 + - + col0 + CAST( + col1 AS SIGNED ) FROM tab0
----
15
-96
87
-108
97
-98

skipif mysql # not compatible
query II rowsort label-9375
SELECT DISTINCT + col0, - col1 - + + col1 + - + col0 + CAST ( + col1 AS INTEGER ) FROM tab0
----
15
-96
87
-108
97
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT ALL 58 DIV col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL 58 / col0 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT DISTINCT - MAX( 92 ) AS col0 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - MAX ( 92 ) AS col0 FROM tab2
----
-92

query I rowsort
SELECT ALL ( 34 ) FROM tab1
----
34
34
34

query II rowsort
SELECT DISTINCT + col1, col1 * col2 FROM tab1
----
14
1344
47
3196
5
295

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT + CAST( NULL AS SIGNED ) + col1 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT + CAST ( NULL AS INTEGER ) + col1 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT - 63 DIV + - 78 + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9382
SELECT - 63 / + - 78 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + - col1
----

query I rowsort
SELECT - col2 + + 99 * - 89 AS col0 FROM tab0 cor0
----
-8821
-8858
-8910

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-9385
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9386
SELECT DISTINCT - col1 * 41 * - CAST( NULL AS SIGNED ), col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9386
SELECT DISTINCT - col1 * 41 * - CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT - CAST( - + col2 AS SIGNED ) * 61 * col2 AS col1 FROM tab2
----
205204
32269
97600

skipif mysql # not compatible
query I rowsort label-9387
SELECT - CAST ( - + col2 AS INTEGER ) * 61 * col2 AS col1 FROM tab2
----
205204
32269
97600

query I rowsort
SELECT ALL - col0 * - + 51 AS col2 FROM tab0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - 96 * + COUNT( * ) col1 FROM tab1
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9389
SELECT - 96 * + COUNT ( * ) col1 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL - - COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9390
SELECT ALL - - COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT - 27 * + + COUNT( * ) + + + 44 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9391
SELECT - 27 * + + COUNT ( * ) + + + 44 FROM tab2 AS cor0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) * 78 FROM tab0 AS cor0 WHERE NOT ( - col0 + 14 IN ( + col0 - + 40 / + col0 * + - 97 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 78 FROM tab0 AS cor0 WHERE NOT ( - col0 + 14 IN ( + col0 - + 40 / + col0 * + - 97 ) )
----
NULL

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + col2 * + + col0 + + - col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT DISTINCT - + ( + 4 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 35 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT - 1 * + + MIN( + 67 ) DIV - 87 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT - 1 * + + MIN ( + 67 ) / - 87 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + COUNT( * ) FROM tab1 WHERE + ( + 95 ) * + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9397
SELECT + COUNT ( * ) FROM tab1 WHERE + ( + 95 ) * + col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col2, COUNT( * ) * 50 * - COUNT( * ) FROM tab2
----
-77
-450

skipif mysql # not compatible
query II rowsort label-9398
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col2, COUNT ( * ) * 50 * - COUNT ( * ) FROM tab2
----
-77
-450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 4 + 1 ) IS NULL
----

query I rowsort
SELECT col1 + 91 FROM tab2 AS cor0 WHERE NULL IS NULL
----
142
158
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT - 69 * - COUNT( + + col1 ) + + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9401
SELECT - 69 * - COUNT ( + + col1 ) + + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 69 + - col0 col0 FROM tab1 AS cor0
----
-16
-22
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND col0
----

query I rowsort
SELECT DISTINCT - col1 + + col2 + + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
197
199
3773

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9406
SELECT - col2 * + + col2 - - 97 AS col1, - 41 + + - CAST( NULL AS SIGNED ) * 58 * + - ( - col1 ) col0 FROM tab2 AS cor0
----
-1503
NULL
-3267
NULL
-432
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9406
SELECT - col2 * + + col2 - - 97 AS col1, - 41 + + - CAST ( NULL AS INTEGER ) * 58 * + - ( - col1 ) col0 FROM tab2 AS cor0
----
-1503
NULL
-3267
NULL
-432
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 * - + ( + 70 ) AS col0 FROM tab0 AS cor0
----
-1460
-5623
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9408
SELECT - + col2 col1, + 42 / - col0 + col1 + - CAST( NULL AS SIGNED ) * + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9408
SELECT - + col2 col1, + 42 / - col0 + col1 + - CAST ( NULL AS INTEGER ) * + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL - COUNT( ALL + col2 ) AS col2 FROM tab1 WHERE col2 * 53 * + col2 - + + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - COUNT ( ALL + col2 ) AS col2 FROM tab1 WHERE col2 * 53 * + col2 - + + col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 59 * + col0 AS col1 FROM tab2
----
2714
3776
4425

query II rowsort
SELECT ALL col1 * + 24, + 0 + + + col1 AS col0 FROM tab2
----
1224
51
1608
67
1848
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 59 ) <= col0 + + + col2 - - 78
----

query II rowsort
SELECT ( - col2 ) AS col2, + 33 + + col0 AS col0 FROM tab1
----
-59
118
-68
124
-96
84

query I rowsort
SELECT ( - - col0 ) * - col2 + col2 - - + 36 FROM tab0 AS cor0
----
-622
-824
-9468

query I rowsort
SELECT DISTINCT 75 FROM tab0, tab0 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL 87 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
783

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 87 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
783

query I rowsort
SELECT + - 78 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query II rowsort
SELECT ALL - 89 AS col1, col0 FROM tab1
----
-89
51
-89
85
-89
91

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
17

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9421
SELECT - 7, col0 + + col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
NULL
-7
NULL
-7
NULL

skipif mysql # not compatible
query II rowsort label-9421
SELECT - 7, col0 + + col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
NULL
-7
NULL
-7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - MIN( DISTINCT - col1 ) col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9422
SELECT - MIN ( DISTINCT - col1 ) col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT - - 32 + - COUNT( * ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT - - 32 + - COUNT ( * ) FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL - MAX( ALL col2 ) + + - MIN( + 51 ) FROM tab2 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - MAX ( ALL col2 ) + + - MIN ( + 51 ) FROM tab2 AS cor0
----
-109

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab1 cor0
----
-19

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab2 WHERE NULL = + - 45
----

query II rowsort
SELECT ALL + col2 + - col1 * col1, 80 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND + col2
----

query II rowsort
SELECT - 51 + - + col2, col2 AS col0 FROM tab1
----
-110
59
-119
68
-147
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - 37 + - ( + col1 ) FROM tab2
----
23
-88
40
-114
58
-104

query I rowsort
SELECT + col0 + - ( + + col0 ) FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col1 AS col0, + col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT 24 + - - col1 FROM tab2
----
101
75
91

query I rowsort
SELECT - 84 * - 98 AS col2 FROM tab2
----
8232
8232
8232

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9435
SELECT col0 AS col1, + CAST( NULL AS SIGNED ) * + col0 + + + 0 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9435
SELECT col0 AS col1, + CAST ( NULL AS INTEGER ) * + col0 + + + 0 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9436
SELECT - 79 AS col1, - 21 * MIN( + - 41 ) + 68 AS col2 FROM tab2
----
-79
929

skipif mysql # not compatible
query II rowsort label-9436
SELECT - 79 AS col1, - 21 * MIN ( + - 41 ) + 68 AS col2 FROM tab2
----
-79
929

query II rowsort
SELECT DISTINCT col2 * + col1 * + + col0 + + 44 AS col1, col1 * + - col1 * 68 FROM tab0 AS cor0
----
18314
-29988
57149
-446148
9647
-68

query I rowsort
SELECT DISTINCT + 37 + col1 AS col0 FROM tab0 AS cor0
----
118
38
58

query I rowsort
SELECT DISTINCT 82 * - col0 - 66 * + + 43 * col2 + + + col2 AS col2 FROM tab1
----
-174353
-200378
-276534

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT - COUNT( col1 ) + + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - COUNT ( col1 ) + + + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT + col1 + col1 * + col1 + + col2 FROM tab2
----
2675
4614
6046

query I rowsort
SELECT DISTINCT - 54 * + 18 AS col2 FROM tab1
----
-972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) ) * + ( + COUNT( * ) ) + + 79 AS col2 FROM tab1 AS cor0 WHERE NOT + ( - 0 ) <= NULL
----
79

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) ) * + ( + COUNT ( * ) ) + + 79 AS col2 FROM tab1 AS cor0 WHERE NOT + ( - 0 ) <= NULL
----
79

query I rowsort
SELECT + col0 + + - 86 FROM tab2 cor0
----
-11
-22
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + col0 * + - col2 FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 3 * + 43 * 28 FROM tab1
----
3612

query I rowsort
SELECT ALL 42 * - + col0 FROM tab2
----
-1932
-2688
-3150

query I rowsort
SELECT ALL + col0 + - col1 FROM tab1 WHERE ( ( - - col2 ) ) IN ( - col2 * - + col1 + col1 * - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL - col2 / - ( - ( + CAST( NULL AS SIGNED ) ) ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9450
SELECT ALL - col2 / - ( - ( + CAST ( NULL AS INTEGER ) ) ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 * + col1 AS col1 FROM tab1
----
3243
345
966

query I rowsort
SELECT ( - 0 ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT DISTINCT - col2 DIV + - col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - col2 / + - col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + 50 col0 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT ALL - 92 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT DISTINCT 60 DIV + 38 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT 60 / + 38 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( 88 ) >= col0 / - + col2 * + col1 * ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( 88 ) >= col0 / - + col2 * + col1 * ( col1 ) )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 * - 79 AS col2 FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT DISTINCT - col2 * - 42 + - col0 FROM tab0 AS cor0
----
1959
333
4061

query I rowsort
SELECT 96 * - col1 FROM tab0
----
-2016
-7776
-96

query II rowsort
SELECT 13 AS col0, col2 + col0 - - 83 AS col1 FROM tab1
----
13
227
13
230
13
242

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT MAX( ALL - - col2 ) * + SUM( - + col0 ) FROM tab0
----
-19701

skipif mysql # not compatible
query I rowsort label-9464
SELECT MAX ( ALL - - col2 ) * + SUM ( - + col0 ) FROM tab0
----
-19701

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + ( col1 ) + - col0 * + + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9466
SELECT * FROM tab0 WHERE CAST( col0 AS SIGNED ) + col2 NOT BETWEEN - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9466
SELECT * FROM tab0 WHERE CAST ( col0 AS INTEGER ) + col2 NOT BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT ALL ( - 22 ) FROM tab2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL SUM( DISTINCT col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL SUM ( DISTINCT col1 ) AS col0 FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT 8 + CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9469
SELECT 8 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - + col2 + + + ( 17 ) AS col1, + col0 * - col0 FROM tab2 AS cor0
----
-23
-4096
-41
-5625
-6
-2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT ALL - ( col1 ) + - col0 + + col0 - - col2 * col0 / col1 * col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - ( col1 ) + - col0 + + col0 - - col2 * col0 / col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + + + 67, + col1 + + col2 * - - col2 )
----

query I rowsort
SELECT DISTINCT - col1 - 98 * + - col1 AS col0 FROM tab2
----
4947
6499
7469

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 68 * + 30 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + 56 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + 0 * col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + 70 + + col0 + + 16 AS col0 FROM tab0 AS cor0 WHERE NOT 54 IN ( + col1, - col0, + ( 94 ) + + col1 / + + col2 )
----
1573
183
5701

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + 82
----

query I rowsort
SELECT 80 * + col1 * - col2 * - col0 * - - col0 FROM tab2 AS cor0
----
1009254400
1748700000
198565440

query I rowsort
SELECT + 11 FROM tab0 AS cor0 WHERE NOT col0 > + + col2 * + - 88
----

query II rowsort
SELECT col1 AS col0, - col0 + + + ( + + col0 ) + - ( + - 96 ) AS col2 FROM tab1 AS cor0
----
14
96
47
96
5
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL - SUM( DISTINCT + 41 ) col0 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9482
SELECT ALL - SUM ( DISTINCT + 41 ) col0 FROM tab0 AS cor0
----
-41

query II rowsort
SELECT - - col0, - ( - ( col2 ) ) * - - ( - ( + 34 ) ) * + - col1 AS col1 FROM tab2 cor0
----
46
39882
64
104720
75
132124

query I rowsort
SELECT 61 * + 6 AS col0 FROM tab2 AS cor0
----
366
366
366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT + CAST( - col2 AS SIGNED ) * - + 1 + + ( - - col2 ) + - 15 * - + col1 AS col0 FROM tab1 AS cor0
----
193
402
841

skipif mysql # not compatible
query I rowsort label-9485
SELECT + CAST ( - col2 AS INTEGER ) * - + 1 + + ( - - col2 ) + - 15 * - + col1 AS col0 FROM tab1 AS cor0
----
193
402
841

onlyif mysql # DIV for integer division: 
query II rowsort label-9486
SELECT - 72 AS col0, + col1 DIV col1 * + 74 * - + 32 + - 29 FROM tab2 cor0
----
-72
-2397
-72
-2397
-72
-2397

skipif mysql # not compatible
query II rowsort label-9486
SELECT - 72 AS col0, + col1 / col1 * + 74 * - + 32 + - 29 FROM tab2 cor0
----
-72
-2397
-72
-2397
-72
-2397

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + - - 38 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 * + - col2 AS col0, + col1 AS col1 FROM tab0
----
210
21
3807
81
99
1

query I rowsort
SELECT ALL col2 * + - col2 * + + 38 FROM tab0
----
-372438
-3800
-83942

query I rowsort
SELECT DISTINCT col2 * - + 7 FROM tab2
----
-161
-280
-406

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9491
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9491
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ( - + 2 ) * col1 AS col0, ( - col0 ) AS col2 FROM tab1
----
-10
-85
-28
-51
-94
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT COUNT( + - ( + 48 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT COUNT ( + - ( + 48 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 * col2 * + - col1 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + - 77 * + SUM( - 80 ) + COUNT( * ) FROM tab1 AS cor0
----
18483

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + - 77 * + SUM ( - 80 ) + COUNT ( * ) FROM tab1 AS cor0
----
18483

query I rowsort
SELECT ALL + - 52 AS col0 FROM tab2 cor0 WHERE NOT ( NULL IS NOT NULL )
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-9497
SELECT ALL - + col2 DIV col2 AS col1, col2 * + col0 * + - col1 FROM tab2 cor0
----
-1
-197120
-1
-291450
-1
-53958

skipif mysql # not compatible
query II rowsort label-9497
SELECT ALL - + col2 / col2 AS col1, col2 * + col0 * + - col1 FROM tab2 cor0
----
-1
-197120
-1
-291450
-1
-53958

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT ALL 13 + 4 DIV + - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL 13 + 4 / + - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL MIN( col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - col1 + - ( ( - + col2 ) ) FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL 30 + 12 AS col0 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL AND NOT ( NULL ) > + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT col1 DIV + 62 + + 29 FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-9507
SELECT col1 / + 62 + + 29 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT 37 + + 32 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - COUNT( * ) + COUNT( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9509
SELECT - COUNT ( * ) + COUNT ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 < + ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + col2 ) + + col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT COUNT( * ) * - - 58 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-9512
SELECT COUNT ( * ) * - - 58 FROM tab0
----
174

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( + col1 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 58 + + + 2 FROM tab2
----
60

query I rowsort
SELECT col0 * 89 AS col0 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT col2 * + - col0 - - - col0 AS col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col0 + - col2 + - - ( + + col1 ) * + + col1, col2 + + 15 col1, col1 AS col0 FROM tab2 cor0
----
9 values hashing to a70eceac8db380fb0299657fe6d9edd8

query I rowsort
SELECT ALL + col0 * + col0 + - + col2 * - - col1 - - - col2 FROM tab1 AS cor0
----
1161
5017
6871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * - col0 - + + col0 col2 FROM tab0
----
3741
4171
645

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - + 83 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 6 ) col0 FROM tab2
----
-6
-6
-6

query I rowsort
SELECT col0 * + ( - + col2 ) * + 26 FROM tab1
----
-127296
-130390
-160888

query I rowsort
SELECT + 44 * - - col1 AS col2 FROM tab0
----
3564
44
924

query II rowsort
SELECT - - 51 AS col0, 51 FROM tab1 cor0
----
51
51
51
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9525
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9525
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT + - COUNT( + col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT + - COUNT ( + col1 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL + MIN( col2 ) * - + MIN( ALL + col0 ) - - COUNT( * ) FROM tab2
----
-1055

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL + MIN ( col2 ) * - + MIN ( ALL + col0 ) - - COUNT ( * ) FROM tab2
----
-1055

query I rowsort
SELECT DISTINCT 64 * - col1 FROM tab1
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + SUM( + 33 ) col1 FROM tab1
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT + SUM ( + 33 ) col1 FROM tab1
----
99

query I rowsort
SELECT + ( + - 65 ) FROM tab0
----
-65
-65
-65

query II rowsort
SELECT + 68 AS col1, col1 AS col2 FROM tab0
----
68
1
68
21
68
81

query II rowsort
SELECT ALL 80, col1 * 12 * - col2 AS col2 FROM tab0
----
80
-1188
80
-2520
80
-45684

query II rowsort
SELECT - 59, + 14 AS col1 FROM tab0
----
-59
14
-59
14
-59
14

query I rowsort
SELECT + + ( + 77 ) AS col1 FROM tab2 WHERE NOT NULL <= col2 * 24 / - ( - - 41 ) - + 31 + + col1 * ( + col2 )
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 + col0 AS col0 FROM tab2 AS cor0
----
101
74
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + col0 + + + ( - - col0 ) BETWEEN 23 * - col1 AND - col0 - + col0 + - ( - + col2 ) * col1 * 42 / 66 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 69 * - 46 + col1 + + - col0 + + col1 * + col0 FROM tab1 AS cor0
----
3519
3851
7407

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE 1 IN ( + + 5, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - 21 * + COUNT( DISTINCT + col0 ) + + 72 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9540
SELECT - 21 * + COUNT ( DISTINCT + col0 ) + + 72 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + 84 * + col0 * + - ( + 92 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + 84 * + col0 * + - ( + 92 ) < NULL
----
0

query I rowsort
SELECT ALL - col1 + 67 FROM tab0 AS cor0
----
-14
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9544
SELECT ALL - col1 - - CAST( - - col0 AS SIGNED ), col2 FROM tab1 AS cor0
----
37
96
44
68
80
59

skipif mysql # not compatible
query II rowsort label-9544
SELECT ALL - col1 - - CAST ( - - col0 AS INTEGER ), col2 FROM tab1 AS cor0
----
37
96
44
68
80
59

query I rowsort
SELECT + col0 - + - 6 FROM tab2
----
52
70
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9546
SELECT - 77 * col2 - 0 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 77 * col2 - 0 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col2, - col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
-23
-51
-40
-77
-58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, ( col0 ) FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT 3 - + 38 + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-9549
SELECT 3 - + 38 + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL MIN( ALL + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL MIN ( ALL + col0 ) AS col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT 55 * + + COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT 55 * + + COUNT ( * ) FROM tab0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT - MIN( - + 84 ) + - + COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
93

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - MIN ( - + 84 ) + - + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
93

query I rowsort
SELECT col0 + - - 94 + + + col0 FROM tab0 AS cor0
----
124
268
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + + COUNT( ALL + col2 ) + - COUNT( * ) + - - COUNT( ALL - - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + + COUNT ( ALL + col2 ) + - COUNT ( * ) + - - COUNT ( ALL - - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT DISTINCT + - col0 DIV col2 - + + col1 FROM tab0 AS cor0
----
-1
-29
-81

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + - col0 / col2 - + + col1 FROM tab0 AS cor0
----
-1
-29
-81

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT DISTINCT + col1 DIV + - 20 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + col1 / + - 20 FROM tab0
----
-1
-4
0

query I rowsort
SELECT + 88 * ( - + col1 ) FROM tab0 AS cor0
----
-1848
-7128
-88

query I rowsort
SELECT col1 * - col0 * + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + col0 col2 FROM tab0 AS cor0
----
-354
-6546
96

query II rowsort
SELECT + + 16 * - + 35 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-560
51
-560
67
-560
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + + col2 - + col0 * + 5 col2 FROM tab0
----
-295
-334
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT CAST( - 78 AS SIGNED ) + - col1 AS col2 FROM tab0
----
-159
-79
-99

skipif mysql # not compatible
query I rowsort label-9564
SELECT CAST ( - 78 AS INTEGER ) + - col1 AS col2 FROM tab0
----
-159
-79
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT + MIN( - 66 ) AS col0 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9565
SELECT + MIN ( - 66 ) AS col0 FROM tab0 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT CAST( + 25 AS SIGNED ) FROM tab2 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-9566
SELECT CAST ( + 25 AS INTEGER ) FROM tab2 AS cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9567
SELECT DISTINCT - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT DISTINCT + COUNT( * ), - ( COUNT( - + col1 ) ) col1 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9568
SELECT DISTINCT + COUNT ( * ), - ( COUNT ( - + col1 ) ) col1 FROM tab1 cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT DISTINCT col2 + - col1 * 72 + - col2 DIV + - 3 FROM tab1
----
-282
-3294
-880

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT col2 + - col1 * 72 + - col2 / + - 3 FROM tab1
----
-282
-3294
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT CAST( + col0 AS SIGNED ) - + - col1 AS col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9570
SELECT CAST ( + col0 AS INTEGER ) - + - col1 AS col2 FROM tab2
----
141
142
97

query II rowsort
SELECT ALL col1 + + + col1, col2 FROM tab0
----
162
47
2
99
42
10

query I rowsort
SELECT ALL - 76 + + - 0 + 19 AS col2 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - - 3 * - col0 + - 74 + - + col2 FROM tab2 AS cor0
----
-235
-306
-357

query II rowsort
SELECT col0 * col0 AS col1, + 84 + - col0 FROM tab1 AS cor0 WHERE col2 IN ( - col2 + + - ( + col0 ) )
----

query I rowsort
SELECT ALL 47 * + - ( - col0 ) - + - col0 AS col2 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT DISTINCT 65 + - 4 - col1 FROM tab1
----
14
47
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 - - col0 col0 FROM tab1
----
134
168
174

query I rowsort
SELECT 72 * + 2 FROM tab0
----
144
144
144

query I rowsort
SELECT 63 FROM tab2 WHERE - col1 * - - 32 + col1 / - - col2 >= - - col1
----

query I rowsort
SELECT + 30 - + col1 FROM tab2
----
-21
-37
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 83 * - col0 IS NULL
----

query I rowsort
SELECT - col1 - 60 + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + 42 - + 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT COUNT( DISTINCT + - 64 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT COUNT ( DISTINCT + - 64 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT ( - 16 ) * COUNT( DISTINCT 99 ) + COUNT( * ) AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT ( - 16 ) * COUNT ( DISTINCT 99 ) + COUNT ( * ) AS col1 FROM tab1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT + col0 DIV col2 * + ( col1 ) + + 70 AS col1 FROM tab2 AS cor0
----
137
147
172

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + col0 / col2 * + ( col1 ) + + 70 AS col1 FROM tab2 AS cor0
----
137
147
172

onlyif mysql # aggregate syntax: 
query II rowsort label-9587
SELECT ALL + COUNT( * ) AS col1, + 88 AS col1 FROM tab1 AS cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-9587
SELECT ALL + COUNT ( * ) AS col1, + 88 AS col1 FROM tab1 AS cor0
----
3
88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <> - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col0 AS col1, - col2 FROM tab1 cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT - col0 * + 74 * + col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 97 * - col1 + + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + 59 * - - COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9591
SELECT + 59 * - - COUNT ( * ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT - 88 + col2 AS col2 FROM tab0 AS cor0
----
-41
-78
11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - col2 - + 66 IS NULL
----

query I rowsort
SELECT 67 + 87 FROM tab2 AS cor0
----
154
154
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT + COUNT( ALL 34 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT + COUNT ( ALL 34 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9596
SELECT CAST( NULL AS SIGNED ) + + COUNT( + 56 ) + - - ( + - 58 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( + 56 ) + - - ( + - 58 ) FROM tab0
----
NULL

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 89 * col1 * ( + - 0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 60 + + 64 FROM tab0 AS cor0
----
4

query II rowsort
SELECT - 26 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-26
51
-26
67
-26
77

query I rowsort
SELECT DISTINCT - - 60 + + col1 FROM tab2 AS cor0
----
111
127
137

query I rowsort
SELECT - ( - - col0 ) - - - 66 AS col2 FROM tab0 AS cor0
----
-153
-163
-81

query I rowsort
SELECT 54 - - col0 FROM tab0
----
141
151
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + COUNT( * ) + + 32 col2 FROM tab2
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9604
SELECT + COUNT ( * ) + + 32 col2 FROM tab2
----
35

query I rowsort
SELECT ALL + col2 * + + col0 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT 24 * COUNT( * ) FROM tab0, tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9606
SELECT 24 * COUNT ( * ) FROM tab0, tab2 AS cor0
----
216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN + col2 AND - - 39 - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT + COUNT( + ( - 90 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9608
SELECT + COUNT ( + ( - 90 ) ) FROM tab2
----
3

query I rowsort
SELECT - ( - - 93 ) FROM tab1 cor0
----
-93
-93
-93

query II rowsort
SELECT col1 AS col2, - ( + 95 ) FROM tab0 AS cor0
----
1
-95
21
-95
81
-95

query I rowsort
SELECT + - ( + ( - col0 ) ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT + 29, + col1 FROM tab0 AS cor0
----
29
1
29
21
29
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9613
SELECT - COUNT( * ) AS col0, 84 AS col1 FROM tab1 AS cor0
----
-3
84

skipif mysql # not compatible
query II rowsort label-9613
SELECT - COUNT ( * ) AS col0, 84 AS col1 FROM tab1 AS cor0
----
-3
84

query I rowsort
SELECT DISTINCT 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
12

query I rowsort
SELECT ALL col0 * 20 * col0 FROM tab1
----
144500
165620
52020

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT ALL col2 DIV + 94 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL col2 / + 94 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT - - CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9617
SELECT - - CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9618
SELECT - MAX( col0 ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-9618
SELECT - MAX ( col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT 68 * - MAX( ALL - col0 ) AS col1 FROM tab2 cor0
----
3128

skipif mysql # not compatible
query I rowsort label-9619
SELECT 68 * - MAX ( ALL - col0 ) AS col1 FROM tab2 cor0
----
3128

query I rowsort
SELECT ALL 74 AS col0 FROM tab1 cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL 18 * + ( 84 ) * SUM( + + 57 ) * 12 FROM tab2 AS cor0
----
3102624

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL 18 * + ( 84 ) * SUM ( + + 57 ) * 12 FROM tab2 AS cor0
----
3102624

query I rowsort
SELECT - col1 + + ( + + col2 ) FROM tab1
----
21
54
82

query I rowsort
SELECT ALL col2 + + + 97 FROM tab2
----
120
137
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT ALL - 31 + + ( col2 ) + col1 * + col1 * col0 AS col2 FROM tab1 WHERE - col0 + + + col0 >= CAST( 93 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - 31 + + ( col2 ) + col1 * + col1 * col0 AS col2 FROM tab1 WHERE - col0 + + + col0 >= CAST ( 93 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 13 + - 73 + + ( - col1 ) FROM tab0 AS cor0
----
-141
-61
-81

query I rowsort
SELECT ALL + ( - col1 ) + - + col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT col1 * - col0 FROM tab1 WHERE NULL <> - + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT col0 + - col0 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-4845
-4930
-6097

skipif mysql # not compatible
query I rowsort label-9628
SELECT col0 + - col0 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL + 38 * + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
342

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + 38 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
342

query II rowsort
SELECT 25 * - 37 * ( - col2 ) + ( col1 ) * 11 AS col0, ( - col2 ) AS col1 FROM tab0
----
44366
-47
91586
-99
9481
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9631
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + col2 * - col2 - + CAST( NULL AS SIGNED ) + + col2, col2 + + col2 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
833
NULL
901
NULL
9703

skipif mysql # not compatible
query II rowsort label-9631
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + col2 * - col2 - + CAST ( NULL AS INTEGER ) + + col2, col2 + + col2 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
833
NULL
901
NULL
9703

query I rowsort
SELECT DISTINCT - 38 + - - 81 * + 61 AS col0 FROM tab0 AS cor0
----
4903

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT MIN( DISTINCT + - col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9633
SELECT MIN ( DISTINCT + - col1 ) col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL + col1 * 63 FROM tab0
----
1323
5103
63

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL SUM( DISTINCT + - col1 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL SUM ( DISTINCT + - col1 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-195

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9638
SELECT DISTINCT * FROM tab1 WHERE + - CAST( - col0 AS DECIMAL ) + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9638
SELECT DISTINCT * FROM tab1 WHERE + - CAST ( - col0 AS REAL ) + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9640
SELECT ALL + CAST( NULL AS DECIMAL ) * + col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + CAST ( NULL AS REAL ) * + col1 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - MIN( col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9641
SELECT - MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - ( - ( + - 13 ) ) * + 10 * col2 * + + col1 FROM tab2
----
-152490
-400400
-505180

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = ( 11 )
----

query I rowsort
SELECT col2 / - col1 FROM tab2 WHERE NOT - - 44 + + 98 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9645
SELECT * FROM tab1 WHERE NOT + ( - - CAST( NULL AS SIGNED ) ) IN ( 58, + CAST( NULL AS SIGNED ) + + 72 - col2 + ( - 75 ) - col2 * - - 67, - + 39 )
----

skipif mysql # not compatible
query III rowsort label-9645
SELECT * FROM tab1 WHERE NOT + ( - - CAST ( NULL AS INTEGER ) ) IN ( 58, + CAST ( NULL AS INTEGER ) + + 72 - col2 + ( - 75 ) - col2 * - - 67, - + 39 )
----

query I rowsort
SELECT - col2 * + + ( + col0 ) AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT - MIN( ALL + 7 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9647
SELECT - MIN ( ALL + 7 ) FROM tab0
----
-7

query I rowsort
SELECT + 7 * + 73 * col1 AS col0 FROM tab0 AS cor0
----
10731
41391
511

query I rowsort
SELECT DISTINCT - 25 * - col2 FROM tab2 cor0
----
1000
1450
575

query I rowsort
SELECT DISTINCT + - col1 + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-3
23
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + + COUNT( * ) * - COUNT( * ) + + - 92 FROM tab0 cor0
----
-101

skipif mysql # not compatible
query I rowsort label-9651
SELECT + + COUNT ( * ) * - COUNT ( * ) + + - 92 FROM tab0 cor0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL col0 * - CAST( NULL AS SIGNED ) * + col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) * + col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 92 * + + col1 * + 34 FROM tab1 AS cor0
----
147016
15640
43792

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT ( 39 ) DIV col0 col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9654
SELECT ( 39 ) / col0 col0 FROM tab0
----
0
0
2

query II rowsort
SELECT ALL 76 * - col1 AS col0, 1 AS col0 FROM tab2
----
-3876
1
-5092
1
-5852
1

query I rowsort
SELECT ALL ( - col0 ) + + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 55 * 35 FROM tab2
----
1925
1925
1925

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT + col2 + - - col2 DIV + col1 + col1 * - col2 FROM tab0
----
-200
-3760
99

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT + col2 + - - col2 / + col1 + col1 * - col2 FROM tab0
----
-200
-3760
99

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT + 94 * - col0 - + - 27 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-4297
-5989
-7023

query I rowsort
SELECT + 72 + + col2 * - col1 * + + 90 FROM tab2 AS cor0
----
-105498
-277128
-349668

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT COUNT( ALL + 48 ) + - + 22 AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9662
SELECT COUNT ( ALL + 48 ) + - + 22 AS col2 FROM tab0 AS cor0
----
-19

query II rowsort
SELECT ALL + + col0 + - col2, + col1 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

query I rowsort
SELECT ALL 26 * - col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query I rowsort
SELECT - col1 - 50 AS col1 FROM tab0 AS cor0
----
-131
-51
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT DISTINCT - + MIN( + + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT - + MIN ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT + - col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9667
SELECT + - col0 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT col0 * - 40 AS col0 FROM tab1 AS cor0
----
-2040
-3400
-3640

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 * + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT DISTINCT - CAST( - + 77 AS SIGNED ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT - CAST ( - + 77 AS INTEGER ) FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9671
SELECT ALL * FROM tab2 WHERE ( col0 * + CAST( NULL AS SIGNED ) * - col1 + + - col1 + col0 ) < ( 69 )
----

skipif mysql # not compatible
query III rowsort label-9671
SELECT ALL * FROM tab2 WHERE ( col0 * + CAST ( NULL AS INTEGER ) * - col1 + + - col1 + col0 ) < ( 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * col1 col1 FROM tab1
----
1222
130
364

query II rowsort
SELECT col2 * + col0 AS col2, col1 - col1 FROM tab2 cor0
----
1058
0
2560
0
4350
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <= - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9675
SELECT - - col0 DIV - ( + 86 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9675
SELECT - - col0 / - ( + 86 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT - 42 DIV - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 42 / - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( 38 ) AS col2 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT col0 + + - col0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9679
SELECT col2 + + 98 - 32 * + 40 * + - col1 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
18114
NULL
60326
NULL
6557
NULL

skipif mysql # not compatible
query II rowsort label-9679
SELECT col2 + + 98 - 32 * + 40 * + - col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
18114
NULL
60326
NULL
6557
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT col2 DIV - col0 + - ( - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
12
87
96

skipif mysql # not compatible
query I rowsort label-9680
SELECT col2 / - col0 + - ( - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
12
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL + - MIN( + + col2 ) + - MAX( - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL + - MIN ( + + col2 ) + - MAX ( - col2 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE 41 + - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT - 73 * + 18 * + + 90 FROM tab0
----
-118260
-118260
-118260

query I rowsort
SELECT + 39 * - - 68 AS col2 FROM tab0
----
2652
2652
2652

query II rowsort
SELECT - col2 AS col2, + 55 FROM tab1
----
-59
55
-68
55
-96
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT + + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9687
SELECT + + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 99 + + col0 NOT IN ( + + col2, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT - - 46 FROM tab2 AS cor0 WHERE + col1 * + col0 NOT IN ( col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9689
SELECT - - 46 FROM tab2 AS cor0 WHERE + col1 * + col0 NOT IN ( col2, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9690
SELECT col0 DIV - col2 AS col0, col2 AS col2 FROM tab0
----
-8
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-9690
SELECT col0 / - col2 AS col0, col2 AS col2 FROM tab0
----
-8
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT - 83 * - COUNT( * ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - 83 * - COUNT ( * ) AS col0 FROM tab2
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT ( 64 ) DIV - - col1 FROM tab0 cor0
----
0
3
64

skipif mysql # not compatible
query I rowsort label-9692
SELECT ( 64 ) / - - col1 FROM tab0 cor0
----
0
3
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT ALL - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - col2 + col2 * + col0 * 51 AND + - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9693
SELECT ALL - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - col2 + col2 * + col0 * 51 AND + - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT col1 * - 89 - - - 8 FROM tab0 AS cor0
----
-1877
-7217
-97

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE + ( + col0 ) * + - col0 + - 52 * - - col0 <> - - col0
----
46
64
75

query II rowsort
SELECT + col0 AS col2, + col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - MIN( - 65 ) col1 FROM tab0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9697
SELECT - MIN ( - 65 ) col1 FROM tab0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 col0, + col1 FROM tab2
----
7
51
7
67
7
77

query I rowsort
SELECT col2 * + 90 * + - col0 FROM tab2
----
-230400
-391500
-95220

query II rowsort
SELECT 28, 37 AS col1 FROM tab2
----
28
37
28
37
28
37

query I rowsort
SELECT DISTINCT ( - 47 ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9702
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT ALL - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / - - 53 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / - - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL 56 + - ( SUM( DISTINCT - col0 ) + + COUNT( * ) ) AS col0 FROM tab1
----
280

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL 56 + - ( SUM ( DISTINCT - col0 ) + + COUNT ( * ) ) AS col0 FROM tab1
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT COUNT( * ) + + MIN( - 91 ) AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT COUNT ( * ) + + MIN ( - 91 ) AS col1 FROM tab2
----
-88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col1 ) * col0 = - col0
----

query I rowsort
SELECT col0 + + 25 FROM tab1
----
110
116
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT - 24 DIV ( 52 ) + COUNT( * ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9708
SELECT - 24 / ( 52 ) + COUNT ( * ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT col1 * - 94 AS col1 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE ( col0 * + col2 ) NOT BETWEEN + col2 + + 15 / - ( - 57 ) AND ( col0 )
----
14
47
5

query I rowsort
SELECT + 76 + - col1 * - col1 AS col1 FROM tab2
----
2677
4565
6005

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - col1 ) IN ( + col0 + + col0 )
----

query I rowsort
SELECT ALL 58 * + col0 FROM tab1 WHERE NOT col0 * col1 BETWEEN - col0 / + 59 AND col2
----
2958
4930
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - SUM( 68 ) * - AVG ( + col1 * + col1 ) FROM tab2 WHERE NOT ( 50 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT - SUM ( 68 ) * - AVG ( + col1 * + col1 ) FROM tab2 WHERE NOT ( 50 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 1 * col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ( - ( - col1 ) ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT - ( + SUM( ALL - CAST( - 8 AS SIGNED ) ) ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-9718
SELECT - ( + SUM ( ALL - CAST ( - 8 AS INTEGER ) ) ) FROM tab2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT ALL col1 * col2 + col1 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) / col0 + col2 / + 57 IS NULL
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL col1 * col2 + col1 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) / col0 + col2 / + 57 IS NULL
----
1358
300
3243

query III rowsort
SELECT * FROM tab0 WHERE ( - ( 32 ) + 89 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col2 + + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + col0 FROM tab2 WHERE 52 IS NOT NULL
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9723
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) + 82 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9723
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - 25 * col0 AS col0 FROM tab0
----
-2185
-2524
-422

query I rowsort
SELECT ALL + 12 + col2 FROM tab2
----
35
52
70

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 86 - col1 ) NOT BETWEEN col2 + - 85 AND - 33 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 - 5 AS col0 FROM tab0
----
42
5
94

query I rowsort
SELECT 68 - - col2 * col1 AS col1 FROM tab2
----
1241
3148
3954

query I rowsort
SELECT + col1 * + ( - col1 ) + ( 71 ) FROM tab1
----
-125
-2138
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col0 + + 22 )
----

query I rowsort
SELECT ALL 88 - - col1 FROM tab1 AS cor0
----
102
135
93

query I rowsort
SELECT DISTINCT - 17 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-108
-68

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT col0 + - 2 AS col2 FROM tab2 WHERE NULL IS NULL
----
44
62
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT ALL + 95 DIV col2 AS col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + 95 / col2 AS col2 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) / + col1 IN ( - col1 + + col2 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9737
SELECT DISTINCT - - 46 DIV COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - - 46 / COUNT ( * ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT + 70 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT + ( + col1 ) DIV + col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9739
SELECT + ( + col1 ) / + col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 69 * ( 99 * - col1 ) + 32 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9740
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 69 * ( 99 * - col1 ) + 32 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 - col0 * col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT + ( - col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * - 70 AS col1 FROM tab0
----
-3290
-6930
-700

query I rowsort
SELECT 88 FROM tab1 WHERE NOT + col0 >= - col1 / col0
----

query I rowsort
SELECT ALL 62 * - 23 FROM tab1
----
-1426
-1426
-1426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT DISTINCT ( + 57 ) * COUNT( DISTINCT - CAST( - col2 AS SIGNED ) ) col0 FROM tab1
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9746
SELECT DISTINCT ( + 57 ) * COUNT ( DISTINCT - CAST ( - col2 AS INTEGER ) ) col0 FROM tab1
----
171

query I rowsort
SELECT ALL 89 * - 88 AS col0 FROM tab0
----
-7832
-7832
-7832

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL MIN( - 39 ) AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL MIN ( - 39 ) AS col0 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 AS col1 FROM tab0 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( * ) + - 71 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( * ) + - 71 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT 62 * + col1 FROM tab1
----
2914
310
868

query I rowsort
SELECT ALL ( col2 ) + col0 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + 17 AS col0 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT - SUM( 72 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-648

skipif mysql # not compatible
query I rowsort label-9756
SELECT - SUM ( 72 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-648

query I rowsort
SELECT - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL - SUM( DISTINCT 90 ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL - SUM ( DISTINCT 90 ) AS col1 FROM tab1
----
-90

query I rowsort
SELECT + 95 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT COUNT( * ) * 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
117

skipif mysql # not compatible
query I rowsort label-9760
SELECT COUNT ( * ) * 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT ALL - col1 DIV 56 + + 33 AS col2 FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - col1 / 56 + + 33 AS col2 FROM tab1
----
33
33
33

query I rowsort
SELECT - 54 + col0 + + + 99 AS col1 FROM tab0 AS cor0
----
132
142
60

query I rowsort
SELECT + + col0 * col0 + + col1 + + 57 * col1 FROM tab0 cor0
----
4923
8787
9467

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + col0 * + - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 93 ) = NULL
----

query I rowsort
SELECT col1 + + col0 + + + 68 AS col2 FROM tab2 AS cor0
----
165
209
210

query I rowsort
SELECT DISTINCT + 28 + - + col2 * - col1 * col1 AS col0 FROM tab2 AS cor0
----
237188
260390
59851

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 + + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9769
SELECT ALL - - 48 AS col0, - col2 + CAST( 90 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
48
-6
48
22
48
31

skipif mysql # not compatible
query II rowsort label-9769
SELECT ALL - - 48 AS col0, - col2 + CAST ( 90 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
48
-6
48
22
48
31

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN - col1 + - col0 AND ( col0 * - col1 )
----

query I rowsort
SELECT ALL col0 + + 6 FROM tab0 WHERE - - col0 + - + col2 / col0 IS NOT NULL
----
103
21
93

query I rowsort
SELECT 17 * - col2 FROM tab0
----
-1683
-170
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT COUNT( * ) * + - SUM( ALL + - col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-9773
SELECT COUNT ( * ) * + - SUM ( ALL + - col0 ) FROM tab0
----
597

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + MIN( DISTINCT - 99 ) AS col0 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + MIN ( DISTINCT - 99 ) AS col0 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = + 49
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT col0 IS NULL ) )
----

query I rowsort
SELECT DISTINCT + col0 * - 10 AS col0 FROM tab2 AS cor0
----
-460
-640
-750

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 24 + col1 IN ( + - 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + 78 ) AS col2 FROM tab0 cor0
----
-78
-78
-78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 56 + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9781
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9781
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) col2 FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 27 ) AS col0 FROM tab2 WHERE ( NULL IS NULL )
----
-27

query I rowsort
SELECT DISTINCT col0 * 11 AS col0 FROM tab0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT - COUNT( * ) * + 79 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-9785
SELECT - COUNT ( * ) * + 79 FROM tab2
----
-237

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9786
SELECT + col0 * - + CAST( + - col0 AS SIGNED ) DIV + col0 AS col0, ( - col2 ) * col1 FROM tab1
----
51
-1344
85
-295
91
-3196

skipif mysql # not compatible
query II rowsort label-9786
SELECT + col0 * - + CAST ( + - col0 AS INTEGER ) / + col0 AS col0, ( - col2 ) * col1 FROM tab1
----
51
-1344
85
-295
91
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT SUM( + + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9787
SELECT SUM ( + + col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT DISTINCT 17 * 87 * + col1 AS col0 FROM tab1
----
20706
69513
7395

query I rowsort
SELECT DISTINCT col2 + + 17 AS col1 FROM tab2
----
40
57
75

query I rowsort
SELECT ALL + 77 * + 70 * - + 20 * - 12 * + 8 * 7 FROM tab0
----
72441600
72441600
72441600

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 42 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col1 - col0 - + + col0 / - ( + - col1 ) NOT IN ( 7 + col2 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT 16 + 46 * + COUNT( * ) + - MAX( ALL 39 ) FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-9793
SELECT 16 + 46 * + COUNT ( * ) + - MAX ( ALL 39 ) FROM tab1 AS cor0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL + COUNT( * ) col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) / - + 80 <= - col1 + + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9794
SELECT ALL + COUNT ( * ) col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) / - + 80 <= - col1 + + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + + col0 + - + 19 col1 FROM tab1
----
125
128
140

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - + 46
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9797
SELECT DISTINCT - - CAST( COUNT( ALL - 52 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT - - CAST ( COUNT ( ALL - 52 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 47 col0 FROM tab1 AS cor0 WHERE NULL = 42
----

query I rowsort
SELECT ALL col1 + + - 65 * + col1 + - col0 FROM tab1 AS cor0
----
-3099
-405
-947

query II rowsort
SELECT + ( + - 67 ) AS col1, + col1 * col2 FROM tab0 cor0
----
-67
210
-67
3807
-67
99

query I rowsort
SELECT DISTINCT + + col2 + + 73 + 77 FROM tab0 AS cor0
----
160
197
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 79 col0 FROM tab1 WHERE NULL = + 9
----

query I rowsort
SELECT ALL + col1 - + + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT DISTINCT col1 * - col1 + - 31 DIV - 17 col2 FROM tab2
----
-2600
-4488
-5928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9805
SELECT DISTINCT col1 * - col1 + - 31 / - 17 col2 FROM tab2
----
-2600
-4488
-5928

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL - 13 * - + COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - 13 * - + COUNT ( * ) FROM tab0
----
39

query II rowsort
SELECT - col2 + - + col2 - - col2, 37 AS col1 FROM tab0
----
-10
37
-47
37
-99
37

query I rowsort
SELECT - ( - col1 ) FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 * + col0 + + col2 + + 85 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 - + 85 FROM tab2
----
-27
-45
-62

query II rowsort
SELECT DISTINCT col0 AS col0, + 30 FROM tab1
----
51
30
85
30
91
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT - 38 * - 55 * - 89 * + MIN( DISTINCT + col0 / 68 ) FROM tab0 WHERE NOT + - col0 + - col1 BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT - 38 * - 55 * - 89 * + MIN ( DISTINCT + col0 / 68 ) FROM tab0 WHERE NOT + - col0 + - col1 BETWEEN NULL AND - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT + - COUNT( * ) DIV - 9 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT + - COUNT ( * ) / - 9 AS col0 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT MIN( + 67 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT MIN ( + 67 ) FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 = - - col2 * + col1
----
3

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 = - - col2 * + col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9818
SELECT MIN( - 78 ) * MAX( ALL col2 ), 86 AS col1 FROM tab0 AS cor0
----
-7722
86

skipif mysql # not compatible
query II rowsort label-9818
SELECT MIN ( - 78 ) * MAX ( ALL col2 ), 86 AS col1 FROM tab0 AS cor0
----
-7722
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT ALL + col2 * + ( - + col1 ) DIV - col1 - col1 * - col2 FROM tab2 AS cor0
----
1196
3120
3944

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + col2 * + ( - + col1 ) / - col1 - col1 * - col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT - col1 * ( - - 57 ) + col1 + col1 + - + col1 FROM tab2 AS cor0
----
-2856
-3752
-4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT + + SUM( DISTINCT - col2 ) DIV + 71 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9821
SELECT + + SUM ( DISTINCT - col2 ) / + 71 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT + col2 * ( col2 ) + 61 FROM tab0 cor0
----
161
2270
9862

query I rowsort
SELECT DISTINCT + ( - 39 ) * - col1 + 14 FROM tab1 cor0
----
1847
209
560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT DISTINCT + col2 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + col2 * 88 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + col2 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + col2 * 88 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL CAST( col1 AS SIGNED ) * - + 76 col0 FROM tab0
----
-1596
-6156
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9826
SELECT ALL CAST ( col1 AS INTEGER ) * - + 76 col0 FROM tab0
----
-1596
-6156
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9827
SELECT + CAST( NULL AS DECIMAL ) + + SUM( - col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + CAST ( NULL AS REAL ) + + SUM ( - col2 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 16 * col1 FROM tab2
----
1072
1232
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT DISTINCT - col0 * + CAST( + ( - col0 ) AS SIGNED ) + - col0 FROM tab2 WHERE NOT ( col0 ) >= col1
----
2070
4032

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - col0 * + CAST ( + ( - col0 ) AS INTEGER ) + - col0 FROM tab2 WHERE NOT ( col0 ) >= col1
----
2070
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9830
SELECT AVG ( - CAST( NULL AS SIGNED ) ) + - MAX( - + ( col1 ) ) + - COUNT( * ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) + - MAX ( - + ( col1 ) ) + - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9831
SELECT * FROM tab0 WHERE + col0 * ( + CAST( NULL AS SIGNED ) ) * - 39 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9831
SELECT * FROM tab0 WHERE + col0 * ( + CAST ( NULL AS INTEGER ) ) * - 39 + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL CAST( - + col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL CAST ( - + col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 95 + - 29, 67 )
----

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

query I rowsort
SELECT - 53 - - col2 FROM tab2
----
-13
-30
5

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + - 10 IS NULL
----

query I rowsort
SELECT - ( - - col2 ) + 39 AS col1 FROM tab0
----
-60
-8
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT - + 17 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9839
SELECT - + 17 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT - col2 + col0 * 95 FROM tab1 AS cor0
----
4749
8016
8577

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT COUNT( - col0 ) * + - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT COUNT ( - col0 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9842
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 63 + - - ( col1 ) - - 12 - col2 FROM tab0 AS cor0
----
-149
-17
-40

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT ALL + CAST( NULL AS SIGNED ) + - 61 + - 45 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL + CAST ( NULL AS INTEGER ) + - 61 + - 45 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT 81 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT 81 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT + col1 + + + col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT 81 + - MIN( DISTINCT + col1 ) AS col0 FROM tab1 WHERE + 68 NOT BETWEEN + - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT 81 + - MIN ( DISTINCT + col1 ) AS col0 FROM tab1 WHERE + 68 NOT BETWEEN + - col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT COUNT( ALL col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9851
SELECT COUNT ( ALL col0 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT 73 - + COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT 73 - + COUNT ( * ) FROM tab2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT ALL + 16 DIV + 8 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + 16 / + 8 AS col0 FROM tab2
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 NOT BETWEEN - 42 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 19 * 30, 96 AS col0 FROM tab0
----
-570
96
-570
96
-570
96

query I rowsort
SELECT ALL - ( - + ( + col0 ) ) FROM tab1
----
51
85
91

query I rowsort
SELECT - col2 * - col2 * col2 * + - 55 + + 88 AS col2 FROM tab0 AS cor0
----
-53366357
-54912
-5710177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT DISTINCT + - 70 * + + ( + + 63 ) * col0 + col2 + + - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-383681
-427672
-66184

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + - 70 * + + ( + + 63 ) * col0 + col2 + + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-383681
-427672
-66184

query I rowsort
SELECT + 27 * 6 AS col2 FROM tab0 AS cor0
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - - ( + SUM( DISTINCT + 92 ) ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - - ( + SUM ( DISTINCT + 92 ) ) FROM tab1 AS cor0
----
92

query II rowsort
SELECT + col1, - 0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
0
21
0
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9862
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - col1 NOT BETWEEN ( + col0 / - CAST( NULL AS SIGNED ) + + col1 / - + col2 + + - col0 + - col0 ) AND ( - col0 * + - col2 + CAST( 92 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - col1 NOT BETWEEN ( + col0 / - CAST ( NULL AS INTEGER ) + + col1 / - + col2 + + - col0 + - col0 ) AND ( - col0 * + - col2 + CAST ( 92 AS REAL ) )
----
0

query I rowsort
SELECT ALL 82 - - 30 AS col2 FROM tab0 WHERE NOT + col1 + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 * ( + col0 ) col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> + 30
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9867
SELECT ALL + + col2 * + CAST( NULL AS DECIMAL ) / + col1 AS col1, col1 + + - 1 col0 FROM tab1 cor0
----
NULL
13
NULL
4
NULL
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9867
SELECT ALL + + col2 * + CAST ( NULL AS REAL ) / + col1 AS col1, col1 + + - 1 col0 FROM tab1 cor0
----
NULL
13
NULL
4
NULL
46

query I rowsort
SELECT DISTINCT 17 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
17

query I rowsort
SELECT DISTINCT + col2 * + 2 AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ALL 77 + - ( - col1 ) FROM tab1 AS cor0
----
124
82
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 44 IS NULL
----
-15
-87
-97

query II rowsort
SELECT col2, + col0 + - col2 * + - col2 FROM tab2 AS cor0
----
23
575
40
1664
58
3439

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT - + 41 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9874
SELECT - + 41 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT MAX( - 8 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT MAX ( - 8 ) FROM tab1
----
-8

query I rowsort
SELECT DISTINCT col1 + 77 - - 12 FROM tab2 AS cor0
----
140
156
166

query I rowsort
SELECT DISTINCT - col0 + + - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT + col1 * - + ( + col2 ) FROM tab1
----
-1344
-295
-3196

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT + 63 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL >= + 21 * col0
----

query I rowsort
SELECT DISTINCT + 45 * - + col2 AS col2 FROM tab2
----
-1035
-1800
-2610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - 49 ) col1 FROM tab1 AS cor0
----
2303
245
686

query I rowsort
SELECT col0 - + + col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ALL + 98 * - COUNT( * ) + - 5 * - 92 AS col0 FROM tab2 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL + 98 * - COUNT ( * ) + - 5 * - 92 AS col0 FROM tab2 AS cor0
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT DISTINCT ( col2 ) DIV col1 DIV + 96 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT ( col2 ) / col1 / + 96 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - ( - - 56 ) AS col2 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT - col1 * col0 > - ( 98 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + 54 >= - - col0
----
87
21
10
97
1
99

query II rowsort
SELECT 28 AS col2, - ( - col2 ) AS col1 FROM tab0
----
28
10
28
47
28
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col2 AS col0, 23, - + ( + + col2 ) col2 FROM tab0
----
9 values hashing to a3dbe38d43b0a79e633bab937bbeb6cd

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

query II rowsort
SELECT + col0 * + col0, col0 / + col1 FROM tab1 AS cor0 WHERE NOT 44 >= 98 * - col0 * 44
----

query I rowsort
SELECT + 20 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL - + col1 * col1 + + col2 FROM tab0 AS cor0
----
-431
-6514
98

query I rowsort
SELECT ALL - + ( + col0 ) * + col0 + - + col2 - + 96 + + col0 FROM tab0 cor0
----
-353
-7588
-9507

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL + - COUNT( * ) + - ( - + 83 ) + - - 30 AS col2 FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + - COUNT ( * ) + - ( - + 83 ) + - - 30 AS col2 FROM tab0 AS cor0
----
110

query II rowsort
SELECT - col2 + + - col0 AS col2, ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-104
40
-133
58
-69
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT - + 19 * - CAST( NULL AS SIGNED ) * + + 83 + + 94 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT - + 19 * - CAST ( NULL AS INTEGER ) * + + 83 + + 94 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 27 AS col1 FROM tab0 WHERE ( + col2 IS NOT NULL )
----
27
27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT SUM( ALL - + CAST( - col2 AS SIGNED ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9900
SELECT SUM ( ALL - + CAST ( - col2 AS INTEGER ) ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT - ( + col1 ) - 22 FROM tab2 AS cor0
----
-73
-89
-99

query I rowsort
SELECT - col2 + - 79 + + 56 FROM tab2
----
-46
-63
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-9903
SELECT DISTINCT + - 55 DIV + col1, + 58 * - + 17 AS col2 FROM tab0 AS cor0
----
-2
-986
-55
-986
0
-986

skipif mysql # not compatible
query II rowsort label-9903
SELECT DISTINCT + - 55 / + col1, + 58 * - + 17 AS col2 FROM tab0 AS cor0
----
-2
-986
-55
-986
0
-986

onlyif mysql # aggregate syntax: 
query II rowsort label-9904
SELECT DISTINCT MAX( ALL + + col2 ) AS col1, - ( - COUNT( * ) ) FROM tab2 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-9904
SELECT DISTINCT MAX ( ALL + + col2 ) AS col1, - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
58
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT DISTINCT + col2 / + 41 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - col2 - - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + col2 / + 41 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col2 - - - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT - SUM( ALL + col0 ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT - SUM ( ALL + col0 ) AS col2 FROM tab1 cor0
----
-227

query I rowsort
SELECT DISTINCT - - 36 AS col1 FROM tab2 AS cor0 WHERE 96 BETWEEN NULL AND - col0 * - col2 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL - - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL - - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 47 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL + MAX( + + col2 ) * + MAX( DISTINCT + col1 ) * + - 60 + + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 cor0
----
-267954

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL + MAX ( + + col2 ) * + MAX ( DISTINCT + col1 ) * + - 60 + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 cor0
----
-267954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9911
SELECT ALL - COUNT( * ) DIV - 48 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL - COUNT ( * ) / - 48 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL 29 + col0 * - + col2 FROM tab1 AS cor0
----
-4867
-4986
-6159

query I rowsort
SELECT DISTINCT - - 73 * - col2 FROM tab0 cor0
----
-3431
-7227
-730

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 90 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 + + ( + col2 ) col0 FROM tab0 AS cor0
----
112
23
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9917
SELECT - COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9917
SELECT - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT - + 82 FROM tab1 WHERE NOT NULL IN ( + col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT col1 / - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT col1 / - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT DISTINCT MIN( - col1 ) AS col2, + COUNT( * ) FROM tab0
----
-81
3

skipif mysql # not compatible
query II rowsort label-9920
SELECT DISTINCT MIN ( - col1 ) AS col2, + COUNT ( * ) FROM tab0
----
-81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT COUNT( ( + - col1 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT COUNT ( ( + - col1 ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 >= + col1
----

query I rowsort
SELECT ALL - 91 * - col1 + - col2 + + 51 - - 47 - 0 + col1 FROM tab2 AS cor0
----
4767
6204
7142

query II rowsort
SELECT col1, col1 FROM tab1 WHERE NOT + col1 - + - 61 + 58 * - col1 / col1 IS NULL
----
14
14
47
47
5
5

query II rowsort
SELECT ALL + 48 AS col0, - col1 * 71 * - + col0 AS col1 FROM tab2
----
48
166566
48
349888
48
356775

query I rowsort
SELECT col1 * - 81 * - + col2 FROM tab1
----
108864
23895
258876

query I rowsort
SELECT 90 * - + col0 + col2 AS col1 FROM tab1 AS cor0
----
-4494
-7591
-8122

query I rowsort
SELECT ALL - col0 + - + 0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 + + 59 + - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 + + 59 + - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col0, - 37 + + col0 + + 92 FROM tab0 AS cor0
----
10
142
47
70
99
152

query I rowsort
SELECT ALL 74 * 8 FROM tab1, tab2 AS cor0
----
9 values hashing to a41715cb877dde3a1afbbf26792310b2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + 84 AS col2, col1 col1 FROM tab0
----
3948
81
8316
1
840
21

query I rowsort
SELECT ALL 89 * col2 AS col1 FROM tab1
----
5251
6052
8544

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT + COUNT( ALL + col2 ) AS col2, - 10 FROM tab0
----
3
-10

skipif mysql # not compatible
query II rowsort label-9935
SELECT + COUNT ( ALL + col2 ) AS col2, - 10 FROM tab0
----
3
-10

query I rowsort
SELECT + 83 * - + 47 AS col2 FROM tab2 cor0
----
-3901
-3901
-3901

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL MAX( DISTINCT + ( + col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL MAX ( DISTINCT + ( + col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT + - 18 * + 98 AS col0 FROM tab1 AS cor0
----
-1764
-1764
-1764

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT DISTINCT - col0 DIV - - 73 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT - col0 / - - 73 AS col1 FROM tab2
----
-1
0

query I rowsort
SELECT + - col1 * + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + 20 + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9941
SELECT + 20 + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
26

query I rowsort
SELECT ALL - - 25 AS col1 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT col0 DIV col2 * + + 18 + col0 * - - col0 * + col2 * + col0 AS col1 FROM tab0 AS cor0
----
158625
6585174
90354627

skipif mysql # not compatible
query I rowsort label-9943
SELECT col0 / col2 * + + 18 + col0 * - - col0 * + col2 * + col0 AS col1 FROM tab0 AS cor0
----
158625
6585174
90354627

query I rowsort
SELECT ALL + col1 + - col2 + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT - - COUNT( * ) + + - 38 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT - - COUNT ( * ) + + - 38 FROM tab0 AS cor0
----
-35

query II rowsort
SELECT DISTINCT + col1 AS col0, col0 AS col2 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT ALL COUNT( * ) AS col1, - 75 AS col0 FROM tab1
----
3
-75

skipif mysql # not compatible
query II rowsort label-9947
SELECT ALL COUNT ( * ) AS col1, - 75 AS col0 FROM tab1
----
3
-75

query I rowsort
SELECT - + col1 * - col1 - + col0 - + col2 FROM tab0 WHERE NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9949
SELECT DISTINCT + CAST( + + 12 AS SIGNED ) AS col0, - 36 * col1 FROM tab0
----
12
-2916
12
-36
12
-756

skipif mysql # not compatible
query II rowsort label-9949
SELECT DISTINCT + CAST ( + + 12 AS INTEGER ) AS col0, - 36 * col1 FROM tab0
----
12
-2916
12
-36
12
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - 82 * - ( - + COUNT( * ) ) col0 FROM tab0
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9950
SELECT - 82 * - ( - + COUNT ( * ) ) col0 FROM tab0
----
-246

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT - col1 DIV 99 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9952
SELECT - col1 / 99 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 + - 75 AS col1 FROM tab0 AS cor0
----
-156
-76
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9954
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2 + + CAST( - col0 AS SIGNED ) * 90
----

skipif mysql # not compatible
query III rowsort label-9954
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2 + + CAST ( - col0 AS INTEGER ) * 90
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col2 IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 60 col2 FROM tab2 AS cor0
----
106
124
135

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT IN ( col1 * + + col2 - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT ALL + - 24 + 27 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + - 24 + 27 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 * + 62 * col0 FROM tab1 AS cor0
----
215016
358360
383656

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 IN ( - 51 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - - 30 AS col1 FROM tab0 AS cor0
----
-2610
-2910
-450

query I rowsort
SELECT + - 79 + - col2 + - 18 FROM tab2 AS cor0
----
-120
-137
-155

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( col2 - col0 - - 98 )
----

query I rowsort
SELECT - + col0 * 34 FROM tab2 cor0
----
-1564
-2176
-2550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 46 - - ( col2 ) * - col2 NOT BETWEEN - col2 * - 48 AND col1 * - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col0 * + + 24 * - col2 AS col2, - 77 FROM tab0 AS cor0
----
-16920
-77
-20880
-77
-230472
-77

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col1 + + col2 )
----

query I rowsort
SELECT col1 * + + 21 FROM tab1
----
105
294
987

query II rowsort
SELECT ALL col2, 28 * col2 FROM tab2
----
23
644
40
1120
58
1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT - MIN( + ( CAST( 17 AS SIGNED ) ) ) * 33 AS col0 FROM tab1 WHERE ( - - col1 * col0 ) NOT BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT - MIN ( + ( CAST ( 17 AS INTEGER ) ) ) * 33 AS col0 FROM tab1 WHERE ( - - col1 * col0 ) NOT BETWEEN col0 AND NULL
----
NULL

query II rowsort
SELECT ALL + col1 + + col2 * - col0 + + col1, col1 FROM tab0
----
-543
81
-828
21
-9601
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL ( + - col2 ) DIV + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL ( + - col2 ) / + col1 FROM tab0
----
-99
0
0

query I rowsort
SELECT ALL 51 * + - col0 + + col1 FROM tab2
----
-2295
-3187
-3758

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT DISTINCT + col0 DIV - col2 + + 74 + + col1 FROM tab0
----
155
75
87

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT + col0 / - col2 + + 74 + + col1 FROM tab0
----
155
75
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT ALL - col0 + col0 * - CAST( NULL AS SIGNED ) * - + 63 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - col0 + col0 * - CAST ( NULL AS INTEGER ) * - + 63 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 89 + + + col0 + + + 58 FROM tab1 AS cor0
----
198
232
238

query I rowsort
SELECT ALL + 88 + + 89 + col2 AS col1 FROM tab1 AS cor0
----
236
245
273

query I rowsort
SELECT 77 + + col2 * + - col1 FROM tab1 AS cor0
----
-1267
-218
-3119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - + col2 ) + ( + col2 ) * col2 * + col1 col0 FROM tab0 AS cor0
----
178976
2110
9900

query I rowsort
SELECT col2 + col2 * - col2 / - ( - col1 ) + 23 FROM tab0 AS cor0 WHERE NULL < - col0
----

query I rowsort
SELECT - col2 + + 59 FROM tab1 AS cor0
----
-37
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) FROM tab0 WHERE NOT ( + 46 * + col0 - col1 / + - col1 ) NOT IN ( col2 * 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT DISTINCT + MIN( col2 ) col0 FROM tab1 WHERE NOT - col2 IS NULL
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9985
SELECT DISTINCT + MIN ( col2 ) col0 FROM tab1 WHERE NOT - col2 IS NULL
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 AS cor0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT - col2 * col0 DIV col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9987
SELECT - col2 * col0 / col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 16 * - col1 AS col0, + 8 AS col1, - 59 col2 FROM tab2 AS cor0
----
9 values hashing to 25c15823178ab2dd283f7f82f0382cc2

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL + + ( - COUNT( col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL + + ( - COUNT ( col2 ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( - + 68 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT - COUNT( + - col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9991
SELECT - COUNT ( + - col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9992
SELECT DISTINCT 6, SUM( DISTINCT - col0 ) * ( + + MIN( + - 70 ) ) AS col1 FROM tab1
----
6
15890

skipif mysql # not compatible
query II rowsort label-9992
SELECT DISTINCT 6, SUM ( DISTINCT - col0 ) * ( + + MIN ( + - 70 ) ) AS col1 FROM tab1
----
6
15890

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT - 27 * - + COUNT( * ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9993
SELECT - 27 * - + COUNT ( * ) AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT 60 * col2 AS col0 FROM tab2 AS cor0
----
1380
2400
3480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9996
SELECT - COUNT( * ) + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT - COUNT ( * ) + - - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT - + 56 AS col1, col0 FROM tab0 AS cor0
----
-56
15
-56
87
-56
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9999
SELECT * FROM tab0 WHERE - + col0 + CAST( - col1 AS SIGNED ) / + col1 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9999
SELECT * FROM tab0 WHERE - + col0 + CAST ( - col1 AS INTEGER ) / + col1 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

