sqllogictest
Artifact Content
Not logged in

Artifact 8556b616758db8a939aa0daa778d91af79bf8b24:


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 + + +