sqllogictest
Artifact Content
Not logged in

Artifact 84bc3d8059b58898ae9405532f02faeebbf3242f:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE 68 + col2 <> NULL
----

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

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

query I rowsort
SELECT ALL + col2 / - col1 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3
SELECT - COUNT( * ) DIV + 47 FROM tab2 WHERE NOT col2 NOT IN ( - 30 + + CAST( col1 AS SIGNED ) * - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3
SELECT - COUNT ( * ) / + 47 FROM tab2 WHERE NOT col2 NOT IN ( - 30 + + CAST ( col1 AS INTEGER ) * - CAST ( NULL AS REAL ) )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT DISTINCT + col2 DIV - + 26 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + col2 / - + 26 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT 85 DIV - + COUNT( * ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-6
SELECT 85 / - + COUNT ( * ) FROM tab2
----
-28

query I rowsort
SELECT ALL - ( col1 ) - col1 / col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) <= NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9
SELECT + COUNT ( * ) * + 56 + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT 23 DIV - - MAX( - 71 ) * - MIN( DISTINCT col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-10
SELECT 23 / - - MAX ( - 71 ) * - MIN ( DISTINCT col0 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 86 - + col1 NOT IN ( col1 * - col2 + 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL MIN( + 49 ) AS col1 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL MIN ( + 49 ) AS col1 FROM tab1
----
49

query I rowsort
SELECT + 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

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

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE ( + col1 * - + col0 ) IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col1 FROM tab0 AS cor0 WHERE NOT 10 * col0 NOT IN ( + 88 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 2 BETWEEN 79 + - 13 AND NULL
----

query I rowsort
SELECT ALL 95 + col2 + 63 * col2 * 81 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - col2 + - - col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
2397
5005
5092

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-21
SELECT COUNT( ALL - + 6 ) + 30 - CAST( COUNT( - ( - col1 ) ) AS SIGNED ) * + 47 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-21
SELECT COUNT ( ALL - + 6 ) + 30 - CAST ( COUNT ( - ( - col1 ) ) AS INTEGER ) * + 47 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL MAX( col2 ) FROM tab0 WHERE NOT + 37 > ( + 93 )
----
99

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL MAX ( col2 ) FROM tab0 WHERE NOT + 37 > ( + 93 )
----
99

query I rowsort
SELECT + 68 * + col1 + + col2 AS col2 FROM tab2
----
3491
4614
5276

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

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + + 63 ) IN ( 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL + SUM( ALL 10 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL + SUM ( ALL 10 ) FROM tab1
----
30

query I rowsort
SELECT DISTINCT 15 * col2 AS col1 FROM tab0 WHERE + + col0 / + 45 IS NOT NULL
----
1485
150
705

query I rowsort
SELECT + + 16 AS col0 FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT 20 + + col2 AS col1 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT + 20 AS col0 FROM tab1 AS cor0 WHERE ( 29 ) <= - 16
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT + + SUM( DISTINCT + 77 ) FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-33
SELECT + + SUM ( DISTINCT + 77 ) FROM tab1 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT + col1 * - CAST( - 6 AS SIGNED ) * - col0 + - col1 FROM tab2 AS cor0
----
-14127
-29645
-30217

skipif mysql # not compatible
query I rowsort label-34
SELECT + col1 * - CAST ( - 6 AS INTEGER ) * - col0 + - col1 FROM tab2 AS cor0
----
-14127
-29645
-30217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) DIV COUNT( * ) col2 FROM tab2 AS cor0
----
-3

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

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

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

query I rowsort
SELECT ALL 46 * - col0 * col2 AS col1 FROM tab1 AS cor0
----
-225216
-230690
-284648

query I rowsort
SELECT DISTINCT col2 * - 26 + + + col0 AS col1 FROM tab2 AS cor0
----
-1433
-552
-976

onlyif mysql # DIV for integer division: 
query II rowsort label-40
SELECT col2 AS col2, - col1 DIV 51 FROM tab0
----
10
0
47
-1
99
0

skipif mysql # not compatible
query II rowsort label-40
SELECT col2 AS col2, - col1 / 51 FROM tab0
----
10
0
47
-1
99
0

onlyif mysql # DIV for integer division: 
query II rowsort label-41
SELECT DISTINCT col0 DIV - col0, + col2 AS col0 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-41
SELECT DISTINCT col0 / - col0, + col2 AS col0 FROM tab1
----
-1
59
-1
68
-1
96

query I rowsort
SELECT + col0 * col0 * 2 FROM tab0
----
15138
18818
450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-43
SELECT * FROM tab2 WHERE NOT ( NULL ) >= ( CAST( - col0 AS SIGNED ) / - + 70 )
----

skipif mysql # not compatible
query III rowsort label-43
SELECT * FROM tab2 WHERE NOT ( NULL ) >= ( CAST ( - col0 AS INTEGER ) / - + 70 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-44
SELECT - 65, 34 + - + col0 + - col2 DIV 27 AS col2 FROM tab1
----
-65
-20
-65
-53
-65
-59

skipif mysql # not compatible
query II rowsort label-44
SELECT - 65, 34 + - + col0 + - col2 / 27 AS col2 FROM tab1
----
-65
-20
-65
-53
-65
-59

query I rowsort
SELECT DISTINCT - + col2 * - 4 AS col0 FROM tab1 AS cor0
----
236
272
384

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * 77 < + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col2 * + col1 * + - 96 FROM tab0 AS cor0
----
20160
365472
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT ALL - + 87 DIV + col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL - + 87 / + col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-3

query II rowsort
SELECT ALL + 63, col2 FROM tab1 AS cor0
----
63
59
63
68
63
96

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-54
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 51, + col0 + - ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-54
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + 51, + col0 + - ( - CAST ( NULL AS INTEGER ) ) )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * col1 IN ( + 0 )
----

query I rowsort
SELECT ALL + ( - col0 ) * 48 + col1 + - - col2 FROM tab0
----
-4145
-4556
-592

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 35 <= + col0 + col1 OR NOT + col2 = col2
----

query II rowsort
SELECT - ( - col0 ) - + col2 AS col1, - col0 * col0 FROM tab0
----
-2
-9409
-32
-225
77
-7569

query I rowsort
SELECT - col2 + + 9 + + ( 46 ) FROM tab2
----
-3
15
32

query I rowsort
SELECT ( + col0 ) + - + col1 + - - col2 + + - col2 * + col0 + - + col0 AS col0 FROM tab0
----
-739
-881
-9505

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-65
SELECT - col1 + + - 89 + - CAST( NULL AS DECIMAL ) / + 88 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT - col1 + + - 89 + - CAST ( NULL AS REAL ) / + 88 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT MIN( + col0 ) * - 30 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-1380

skipif mysql # not compatible
query I rowsort label-66
SELECT MIN ( + col0 ) * - 30 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-1380

query I rowsort
SELECT ALL + 97 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

skipif mysql # not compatible
query I rowsort label-68
SELECT + - COUNT ( + 48 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT - MAX( ( + - col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT - MAX ( ( + - col1 ) ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT ALL - 34 DIV - + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-84
-97

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - 34 / - + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-84
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-71
SELECT DISTINCT + 16 DIV 77 FROM tab0 AS cor0 WHERE - ( - + 99 ) * - 88 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT + 16 / 77 FROM tab0 AS cor0 WHERE - ( - + 99 ) * - 88 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 63 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-75
SELECT * FROM tab2 AS cor0 WHERE NOT - 49 + col0 IN ( + + 80 * - CAST( NULL AS SIGNED ) * + - col0 - - - 94, - col2 )
----

skipif mysql # not compatible
query III rowsort label-75
SELECT * FROM tab2 AS cor0 WHERE NOT - 49 + col0 IN ( + + 80 * - CAST ( NULL AS INTEGER ) * + - col0 - - - 94, - col2 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + ( + 31 ) + + 96 * + ( + 99 ) col1 FROM tab0
----
-1
9535
-21
9535
-81
9535

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

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT 60 * - + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-540

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 93 * + + col2 = NULL
----

query I rowsort
SELECT ( - + 15 ) * + 22 FROM tab0 AS cor0
----
-330
-330
-330

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

skipif mysql # not compatible
query I rowsort label-84
SELECT - MIN ( DISTINCT - 45 ) FROM tab1 AS cor0
----
45

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

query II rowsort
SELECT DISTINCT - 12 AS col0, 25 + - 94 + col1 AS col0 FROM tab1
----
-12
-22
-12
-55
-12
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 32 BETWEEN + 97 AND + col2
----

query II rowsort
SELECT DISTINCT - 36 + + col2 AS col1, col2 + + col1 FROM tab2 AS cor0
----
-13
74
22
125
4
117

query I rowsort
SELECT ALL 1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT - - 17 + col1 FROM tab1 AS cor0
----
22
31
64

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

query I rowsort
SELECT + 89 + + col1 - + col2 * + - col0 AS col2 FROM tab2 AS cor0
----
1198
2726
4506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT + + CAST( - 52 AS SIGNED ) * + + COUNT( * ) + + 74 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-93
SELECT + + CAST ( - 52 AS INTEGER ) * + + COUNT ( * ) + + 74 FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + MAX( 71 ) col0 FROM tab2
----
71

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

query I rowsort
SELECT ALL + 71 * - + col2 * - col2 FROM tab1
----
247151
328304
654336

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT DISTINCT + MAX( DISTINCT 43 ) * COUNT( * ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT + MAX ( DISTINCT 43 ) * COUNT ( * ) FROM tab0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT ALL + + col1 DIV - - 20 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
4

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + + col1 / - - 20 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
4

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

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

query II rowsort
SELECT DISTINCT - + 90 AS col0, 79 * - ( + + ( - 65 ) ) * + - 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-90
-390260

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( 35, + 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 12 * + - 26 FROM tab1 AS cor0
----
-312
-312
-312

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT ( MIN( col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-104
SELECT ( MIN ( col2 ) ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-105
SELECT CAST( 94 AS SIGNED ) AS col2 FROM tab0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-105
SELECT CAST ( 94 AS INTEGER ) AS col2 FROM tab0
----
94
94
94

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT + MAX( 45 ) DIV ( - 22 ) + - - 81 col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-109
SELECT + MAX ( 45 ) / ( - 22 ) + - - 81 col0 FROM tab1 AS cor0
----
79

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 30 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-111
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - CAST( NULL AS SIGNED ) IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-111
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT - 42 DIV 47 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-112
SELECT - 42 / 47 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT ALL - CAST( 83 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-19
-37
-8

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - CAST ( 83 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-19
-37
-8

query I rowsort
SELECT - - 8 * - col1 AS col1 FROM tab1 AS cor0
----
-112
-376
-40

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 * col1 + + + 67 * + 44 + - 31 col2, col1 * 97 FROM tab2 AS cor0
----
5263
4947
7845
7469
7942
6499

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ( - COUNT( * ) ) - 47 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-123
SELECT ( - COUNT ( * ) ) - 47 FROM tab2
----
-50

query I rowsort
SELECT ALL - col0 - 55 * + col0 FROM tab1
----
-2856
-4760
-5096

query I rowsort
SELECT 60 + - 22 AS col0 FROM tab0
----
38
38
38

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT DISTINCT 61 DIV - + 83 * - 49 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT 61 / - + 83 * - 49 AS col1 FROM tab1
----
0

query I rowsort
SELECT - 91 FROM tab2 WHERE - + col2 BETWEEN col2 * - col1 + + + 63 + - - 15 AND ( NULL )
----

query I rowsort
SELECT - + col0 * 75 FROM tab1 WHERE 96 IS NOT NULL
----
-3825
-6375
-6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + + ( - 58 ) + + col1 * 46 col1 FROM tab1
----
181
2113
595

query II rowsort
SELECT ALL col1 AS col2, + 45 + col2 FROM tab0 AS cor0
----
1
144
21
55
81
92

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

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

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT COUNT( - - 89 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-136
SELECT COUNT ( - - 89 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab1 AS cor0
----
89

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

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

query II rowsort
SELECT col1, col0 * col0 AS col0 FROM tab1
----
14
2601
47
8281
5
7225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-142
SELECT ALL - col2 * - CAST( 64 AS SIGNED ) * - - col0 col2 FROM tab0
----
45120
55680
614592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-142
SELECT ALL - col2 * - CAST ( 64 AS INTEGER ) * - - col0 col2 FROM tab0
----
45120
55680
614592

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT 59 + - COUNT( * ) + + + MAX( + 20 ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-143
SELECT 59 + - COUNT ( * ) + + + MAX ( + 20 ) AS col2 FROM tab1
----
76

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

query I rowsort
SELECT 8 + - 57 + col1 AS col2 FROM tab2
----
18
2
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-146
SELECT ALL CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-146
SELECT ALL CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab1
----
NULL
3

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

query I rowsort
SELECT DISTINCT - col0 * + 56 * + 12 FROM tab0
----
-10080
-58464
-65184

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT - MAX( DISTINCT + 11 ) + + - SUM( - col0 ) col0 FROM tab2
----
174

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col0 + - - col1 * - + 63 col1 FROM tab2 AS cor0
----
-2155
-2291
129

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT + col2 DIV + 53 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-152
SELECT + col2 / + 53 FROM tab0 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT + MAX( DISTINCT col1 ) + + 8 AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT + MAX ( DISTINCT col1 ) + + 8 AS col0 FROM tab2 AS cor0
----
85

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

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

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

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

query II rowsort
SELECT DISTINCT + col1 + + - col2 AS col2, col0 + - 46 FROM tab2 AS cor0
----
28
0
37
18
9
29

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-159
SELECT - col1 + 71 AS col0, CAST( NULL AS SIGNED ) + + col1 + + + col0 AS col2 FROM tab1 cor0
----
24
NULL
57
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-159
SELECT - col1 + 71 AS col0, CAST ( NULL AS INTEGER ) + + col1 + + + col0 AS col2 FROM tab1 cor0
----
24
NULL
57
NULL
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT DISTINCT - COUNT( * ) + 66 AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - COUNT ( * ) + 66 AS col0 FROM tab1 AS cor0
----
63

query I rowsort
SELECT ALL - + 24 - col1 + + col0 FROM tab0 AS cor0
----
-90
42
72

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

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

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

query I rowsort
SELECT DISTINCT + 88 * - + col2 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT DISTINCT col2 - col0 + col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + col2 * - col2 * col0 AS col2 FROM tab1
----
-295885
-420784
-470016

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

query II rowsort
SELECT DISTINCT - ( + + col2 ) - - + col0 AS col1, col0 * + + col1 FROM tab0
----
-2
97
-32
1215
77
1827

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT 45 DIV - - col1 FROM tab0
----
0
2
45

skipif mysql # not compatible
query I rowsort label-169
SELECT 45 / - - col1 FROM tab0
----
0
2
45

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

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

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

query I rowsort
SELECT - 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

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

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT + - COUNT( * ) * 81 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-174
SELECT + - COUNT ( * ) * 81 FROM tab2 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-175
SELECT DISTINCT - + col2, - CAST( NULL AS SIGNED ) + - 21 col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-175
SELECT DISTINCT - + col2, - CAST ( NULL AS INTEGER ) + - 21 col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - - col2 ) * - col2 * - + col1 IN ( - + col1, 25, + 76, col0, col0, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 0 * - - 36 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + - MIN( ALL + + col0 ) FROM tab0 WHERE NOT + ( - col0 ) + col0 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-180
SELECT + - MIN ( ALL + + col0 ) FROM tab0 WHERE NOT + ( - col0 ) + col0 IS NULL
----
-15

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-181
SELECT col2 DIV + col0, + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-181
SELECT col2 / + col0, + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

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

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

query I rowsort
SELECT ALL - - 33 + col0 + + col2 FROM tab1 AS cor0
----
177
180
192

onlyif mysql # DIV for integer division: 
query II rowsort label-184
SELECT DISTINCT - col1 + - col2 AS col2, col1 DIV + ( - 10 ) FROM tab0 AS cor0
----
-100
0
-128
-8
-31
-2

skipif mysql # not compatible
query II rowsort label-184
SELECT DISTINCT - col1 + - col2 AS col2, col1 / + ( - 10 ) FROM tab0 AS cor0
----
-100
0
-128
-8
-31
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT ALL COUNT( * ) - - + 92 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL COUNT ( * ) - - + 92 FROM tab1
----
95

query I rowsort
SELECT - + col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT 84 DIV + col0 + + + col2 - + col0 FROM tab1 AS cor0
----
-23
-26
46

skipif mysql # not compatible
query I rowsort label-188
SELECT 84 / + col0 + + + col2 - + col0 FROM tab1 AS cor0
----
-23
-26
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT COUNT( * ) + + ( - + 30 ) + - 99 + 96 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-190
SELECT COUNT ( * ) + + ( - + 30 ) + - 99 + 96 FROM tab2
----
-30

query II rowsort
SELECT ALL - col1 * - col2 AS col2, - 91 * + - col1 FROM tab0
----
210
1911
3807
7371
99
91

query I rowsort
SELECT - 45 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-193
SELECT ALL col1 FROM tab0 WHERE NOT + ( col2 ) + - col1 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL col1 FROM tab0 WHERE NOT + ( col2 ) + - col1 = CAST ( NULL AS REAL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT DISTINCT + + 90 + - ( + - COUNT( + col0 ) ) AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + + 90 + - ( + - COUNT ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 <> 54
----

query I rowsort
SELECT DISTINCT 35 + - + col0 * - col1 FROM tab2 AS cor0
----
2381
4963
5060

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

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

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

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

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

query I rowsort
SELECT 41 + col2 * - col1 AS col2 FROM tab2
----
-1132
-3039
-3845

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE + + 51 + + 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL 40 + 11 + + ( AVG ( + - col2 ) ) / + + COUNT( * ) FROM tab2 WHERE NOT + 63 + + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL 40 + 11 + + ( AVG ( + - col2 ) ) / + + COUNT ( * ) FROM tab2 WHERE NOT + 63 + + - col1 IS NOT NULL
----
NULL

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

query II rowsort
SELECT DISTINCT - - 0, col0 FROM tab1 WHERE NOT - 98 IS NULL
----
0
51
0
85
0
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 56, + col2 + + col0 + + col1 * + 93 * - col0 col1 FROM tab0
----
-56
-112933
-56
-169814
-56
-8825

query I rowsort
SELECT 86 AS col2 FROM tab0 WHERE + - col0 + - 34 + - + 39 IS NOT NULL
----
86
86
86

query I rowsort
SELECT ALL col1 * - 26 AS col0 FROM tab2
----
-1326
-1742
-2002

query II rowsort
SELECT ALL col2 + + + col1 AS col1, - col0 FROM tab1
----
110
-51
115
-91
64
-85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-212
SELECT + col2 col1, 95 + col1 * + CAST( NULL AS SIGNED ) - + + 1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-212
SELECT + col2 col1, 95 + col1 * + CAST ( NULL AS INTEGER ) - + + 1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 85 NOT BETWEEN NULL AND 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT + ( COUNT( DISTINCT + 98 ) ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-214
SELECT + ( COUNT ( DISTINCT + 98 ) ) FROM tab2 cor0
----
1

query I rowsort
SELECT - 23 + + 16 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT - + 13 - - 33, + 26 * + - 41 AS col0 FROM tab1 AS cor0
----
20
-1066
20
-1066
20
-1066

query I rowsort
SELECT - col1 - - - 91 AS col2 FROM tab1
----
-105
-138
-96

query I rowsort
SELECT ALL 66 + col2 AS col1 FROM tab2
----
106
124
89

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 = - col2
----

query I rowsort
SELECT col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT - col2 + + - col2 + + 70 FROM tab1 AS cor0
----
-122
-48
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-223
SELECT - SUM( ALL + col2 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
-156
3

skipif mysql # not compatible
query II rowsort label-223
SELECT - SUM ( ALL + col2 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-156
3

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

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

query I rowsort
SELECT ALL + - col2 * + col0 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) >= 30
----
-1058
-2560
-4350

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

query I rowsort
SELECT col2 * + ( - - 59 ) * - col2 FROM tab0 AS cor0
----
-130331
-578259
-5900

query I rowsort
SELECT 72 * - + 21 AS col0 FROM tab0 AS cor0
----
-1512
-1512
-1512

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT DISTINCT + COUNT( 90 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT + COUNT ( 90 ) FROM tab2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT 41 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-235
SELECT 41 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
123

query II rowsort
SELECT col2 AS col0, col1 - + col0 FROM tab1 cor0
----
59
-80
68
-44
96
-37

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

query II rowsort
SELECT col2 AS col0, 90 AS col1 FROM tab1 AS cor0
----
59
90
68
90
96
90

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

query I rowsort
SELECT + ( - 16 ) FROM tab1 WHERE NOT NULL >= - 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-241
SELECT CAST( + 63 AS SIGNED ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
63
15
63
87
63
97

skipif mysql # not compatible
query II rowsort label-241
SELECT CAST ( + 63 AS INTEGER ) AS col1, col0 AS col2 FROM tab0 AS cor0
----
63
15
63
87
63
97

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

query I rowsort
SELECT DISTINCT col1 + - + 46 * - col1 * + + col0 * - + col0 FROM tab1 AS cor0
----
-1661745
-1675030
-17903475

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT + SUM ( + + col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT - + CAST( - - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-246
SELECT - + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-247
SELECT ALL - ( - + col1 ) * 23 * - CAST ( NULL AS INTEGER ) + + + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT + COUNT( DISTINCT - 66 ) * - 67 AS col0 FROM tab0, tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-248
SELECT + COUNT ( DISTINCT - 66 ) * - 67 AS col0 FROM tab0, tab2 AS cor0
----
-67

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

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

query I rowsort
SELECT + 38 + - ( col2 ) * - col1 AS col2 FROM tab0
----
137
248
3845

query I rowsort
SELECT col2 + + - col0 * + 71 + + col1 AS col2 FROM tab2
----
-3192
-4427
-5200

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 30 IS NULL
----

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

query I rowsort
SELECT ALL 58 - - - col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT - 4 * - ( col0 ) AS col1 FROM tab0
----
348
388
60

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND + + col0 * col2 + col2 * ( 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-258
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND + + col0 * col2 + col2 * ( 95 ) )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-261
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) * + 67 AS col2, col2 FROM tab1 WHERE col1 * col1 IS NOT NULL
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-261
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) * + 67 AS col2, col2 FROM tab1 WHERE col1 * col1 IS NOT NULL
----
NULL
59
NULL
68
NULL
96

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

query I rowsort
SELECT ALL + 65 * + col2 AS col1 FROM tab2 cor0
----
1495
2600
3770

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-264
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + + col1 AS col0, col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-264
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + + col1 AS col0, col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 50 IS NULL
----
1173
3080
3886

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

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

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

query I rowsort
SELECT + + ( + 69 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL - 92 * + col1 + - - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ( - 74 ) * + - MIN( DISTINCT + 21 ) AS col2 FROM tab1
----
1554

skipif mysql # not compatible
query I rowsort label-270
SELECT ( - 74 ) * + - MIN ( DISTINCT + 21 ) AS col2 FROM tab1
----
1554

query I rowsort
SELECT ALL col2 * 73 + - + col0 + col2 FROM tab0 AS cor0
----
3463
653
7229

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL MAX( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL >= + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL MAX ( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL >= + 7
----
NULL

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

query I rowsort
SELECT ALL - col0 + - - 64 FROM tab1 AS cor0
----
-21
-27
13

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

skipif mysql # not compatible
query II rowsort label-275
SELECT ALL + - COUNT ( * ) AS col0, - 53 AS col2 FROM tab0 AS cor0
----
-3
-53

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

query I rowsort
SELECT - - 42 + - col0 FROM tab1 AS cor0
----
-43
-49
-9

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

query I rowsort
SELECT col0 * - + 14 + + 68 FROM tab1
----
-1122
-1206
-646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-280
SELECT DISTINCT CAST( + 6 AS SIGNED ) * + + col1 + - + col0 FROM tab2
----
260
327
398

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT CAST ( + 6 AS INTEGER ) * + + col1 + - + col0 FROM tab2
----
260
327
398

query II rowsort
SELECT ALL + ( 92 ), + col2 AS col0 FROM tab1
----
92
59
92
68
92
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ( MIN( DISTINCT + + col1 ) ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-283
SELECT ( MIN ( DISTINCT + + col1 ) ) col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - 4 col2 FROM tab1
----
-188
-20
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - 85 * - col1 col2 FROM tab2
----
-221085
-381565
-503965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-286
SELECT - ( + 2 ) * - CAST( + - 31 AS SIGNED ) * - COUNT( * ) * - 64 AS col2 FROM tab1 cor0
----
-11904

skipif mysql # not compatible
query I rowsort label-286
SELECT - ( + 2 ) * - CAST ( + - 31 AS INTEGER ) * - COUNT ( * ) * - 64 AS col2 FROM tab1 cor0
----
-11904

query I rowsort
SELECT - 35 - - 63 AS col2 FROM tab0 AS cor0
----
28
28
28

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT - col2 + - col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN - ( col1 ) + - - col1 * 21 + + ( + col1 ) AND 16 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-289
SELECT - col2 + - col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN - ( col1 ) + - - col1 * 21 + + ( + col1 ) AND 16 + + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT ALL + + COUNT( * ) AS col0, MIN( ALL + 3 ) * - COUNT( * ) / - + MAX( ALL col2 ) * - 40 col1 FROM tab1 AS cor0 WHERE NOT NULL <= + ( col2 ) + - col0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-290
SELECT ALL + + COUNT ( * ) AS col0, MIN ( ALL + 3 ) * - COUNT ( * ) / - + MAX ( ALL col2 ) * - 40 col1 FROM tab1 AS cor0 WHERE NOT NULL <= + ( col2 ) + - col0
----
0
NULL

query II rowsort
SELECT DISTINCT 91, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col2 - - col1
----

query I rowsort
SELECT - 66 * - - 21 FROM tab2 cor0
----
-1386
-1386
-1386

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

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

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

query I rowsort
SELECT - ( - 78 ) FROM tab0 cor0
----
78
78
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 * + + col2 >= NULL
----

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

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

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

query I rowsort
SELECT ALL - + 98 AS col0 FROM tab1 AS cor0 WHERE - 58 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT - - MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-300
SELECT - - MAX ( col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + ( + 47 ) AS col0 FROM tab1
----
47
47
47

query II rowsort
SELECT DISTINCT 90, col1 FROM tab0
----
90
1
90
21
90
81

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

query I rowsort
SELECT DISTINCT + - col1 * + col0 * - + 23 + + 42 FROM tab0 AS cor0
----
2273
27987
42063

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-305
SELECT ALL 95 AS col0, CAST( NULL AS SIGNED ) + col2 + 23 FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
query II rowsort label-305
SELECT ALL 95 AS col0, CAST ( NULL AS INTEGER ) + col2 + 23 FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

query I rowsort
SELECT DISTINCT - 34 FROM tab1 AS cor0 WHERE col2 * + ( - col2 ) + col2 + + col2 * - 84 IS NOT NULL
----
-34

query I rowsort
SELECT + 5 + - col1 + - ( - - col2 ) FROM tab2 AS cor0
----
-112
-120
-69

query I rowsort
SELECT - 68 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-309
SELECT DISTINCT + + 54, + COUNT( * ) + + + 92 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 44 = NULL
----
54
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-309
SELECT DISTINCT + + 54, + COUNT ( * ) + + + 92 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 44 = NULL
----
54
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NULL <= + col1 / + 98
----

query I rowsort
SELECT + col0 + + col0 + ( + col0 ) AS col2 FROM tab0
----
261
291
45

query II rowsort
SELECT DISTINCT + col0 + - - col2 AS col1, 51 * col1 FROM tab1 AS cor0
----
144
255
147
714
159
2397

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

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - + 29 + MAX ( ALL + 16 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT ALL - - col0 * col0 DIV col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL - - col0 * col0 / col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL - 41 FROM tab0 AS cor0 WHERE ( NULL ) <= ( - - col2 ) / - + 20 - + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < 57
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT - 65 - - COUNT( 85 ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-318
SELECT - 65 - - COUNT ( 85 ) FROM tab2
----
-62

query I rowsort
SELECT ALL - col2 * - col2 * - 11 AS col2 FROM tab2
----
-17600
-37004
-5819

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

query I rowsort
SELECT ALL col2 * - 49 AS col1 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL MIN( - + 15 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL MIN ( - + 15 ) FROM tab0
----
-15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 39 + - 86 + - 21 col2 FROM tab2
----
-2096
-2720
-3110

query II rowsort
SELECT + col1 * - + 59 + + col0, + 28 + - 18 AS col1 FROM tab2
----
-2963
10
-3878
10
-4479
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 6 + 60 col0 FROM tab1
----
-246
-450
-486

query I rowsort
SELECT + + 68 + - 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT DISTINCT 38 + - + 23 * - 93 + - + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT COUNT( * ) * - 25 FROM tab1, tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-329
SELECT COUNT ( * ) * - 25 FROM tab1, tab2 AS cor0
----
-225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - 93 - - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 65 IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - 93 - - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 65 IS NOT NULL
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * col1, - col1 col2 FROM tab2 AS cor0
----
-1173
-51
-3080
-77
-3886
-67

query I rowsort
SELECT ALL 57 * - col0 + - + col0 FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT DISTINCT 25 DIV - 29 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT 25 / - 29 FROM tab2 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT ALL + 38 DIV - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL + 38 / - + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT + 4 DIV - + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-337
SELECT + 4 / - + col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + col1, + 2 * - + 13 FROM tab1
----
14
-26
47
-26
5
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT + COUNT( DISTINCT - 24 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT + COUNT ( DISTINCT - 24 ) FROM tab1
----
1

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

query I rowsort
SELECT ALL col0 * + 10 + + + col0 FROM tab1
----
1001
561
935

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

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

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

query I rowsort
SELECT ALL - 58 * + ( - 75 ) FROM tab0
----
4350
4350
4350

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-346
SELECT - col2 * CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 17 FROM tab1 AS cor0 WHERE col2 / - - 53 + col2 + 66 + + 21 > col0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT col1 + 49 FROM tab1 AS cor0
----
54
63
96

query I rowsort
SELECT + col1 + + 97 FROM tab2 cor0
----
148
164
174

query I rowsort
SELECT col2 + ( - - 97 ) FROM tab2 AS cor0
----
120
137
155

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * - col1 - - - ( - col1 ) AS col1 FROM tab1
----
-182
-20
-2162

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

query I rowsort
SELECT ( - + 75 ) * + + col1 + 17 FROM tab0
----
-1558
-58
-6058

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT - COUNT( * ) * - 57 - + 5 FROM tab2
----
166

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - COUNT ( * ) * - 57 - + 5 FROM tab2
----
166

query I rowsort
SELECT col2 - ( 63 ) + col0 * + - col1 + - + col1 AS col2 FROM tab0
----
-1312
-1901
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-360
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 51 BETWEEN NULL AND - - col2
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 51 BETWEEN NULL AND - - col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-361
SELECT + + COUNT( * ) DIV SUM( col2 ) - ( + COUNT( + 13 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-361
SELECT + + COUNT ( * ) / SUM ( col2 ) - ( + COUNT ( + 13 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 / 18 FROM tab1 cor0 WHERE - col1 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-363
SELECT ALL + 29 * - - col1 + - col2, - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1456
46
1885
75
2193
64

skipif mysql # not compatible
query II rowsort label-363
SELECT ALL + 29 * - - col1 + - col2, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1456
46
1885
75
2193
64

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

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

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

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

query II rowsort
SELECT ALL col2 * + col1 + col0, col0 FROM tab2 AS cor0
----
1219
46
3144
64
3961
75

query I rowsort
SELECT col1 * + 10 * - 93 AS col1 FROM tab2 AS cor0
----
-47430
-62310
-71610

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-370
SELECT DISTINCT SUM( col2 ) DIV + - 11 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT SUM ( col2 ) / + - 11 FROM tab0
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-371
SELECT col1 * - col1 AS col2, 11 DIV + col0 * - - col0 * - 28 * - + 2 AS col0 FROM tab0
----
-1
0
-441
0
-6561
0

skipif mysql # not compatible
query II rowsort label-371
SELECT col1 * - col1 AS col2, 11 / + col0 * - - col0 * - 28 * - + 2 AS col0 FROM tab0
----
-1
0
-441
0
-6561
0

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT ALL - 35 DIV - - 92 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL - 35 / - - 92 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT DISTINCT - 84 * + CAST( - col2 AS SIGNED ) FROM tab0
----
3948
8316
840

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT - 84 * + CAST ( - col2 AS INTEGER ) FROM tab0
----
3948
8316
840

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

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

query I rowsort
SELECT DISTINCT + 24 * - + col0 + - - col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE - col2 * + col0 > NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - ( - + col2 ) FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT ALL - 98, + 64 * + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-380
SELECT 49 * CAST( - + col1 AS SIGNED ), + 79 AS col2 FROM tab2
----
-2499
79
-3283
79
-3773
79

skipif mysql # not compatible
query II rowsort label-380
SELECT 49 * CAST ( - + col1 AS INTEGER ), + 79 AS col2 FROM tab2
----
-2499
79
-3283
79
-3773
79

query II rowsort
SELECT ALL col2, - 52 * + 14 * + col1 AS col1 FROM tab2
----
23
-37128
40
-56056
58
-48776

query I rowsort
SELECT ALL + col2 * 45 + - col0 AS col0 FROM tab0 AS cor0
----
2100
363
4358

query I rowsort
SELECT DISTINCT + + 17 * + - col2 FROM tab2 AS cor0
----
-391
-680
-986

query I rowsort
SELECT - 7 - - - 62 AS col0 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT col1 + + - 28 - - - col0 AS col2 FROM tab1 AS cor0
----
-108
-65
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT - SUM( DISTINCT + col1 ) - - - MIN( ALL 20 ) AS col0 FROM tab2 cor0
----
-215

skipif mysql # not compatible
query I rowsort label-386
SELECT - SUM ( DISTINCT + col1 ) - - - MIN ( ALL 20 ) AS col0 FROM tab2 cor0
----
-215

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - + 30 IS NULL
----

query I rowsort
SELECT DISTINCT + 25 - - - 29 AS col0 FROM tab1
----
-4

query I rowsort
SELECT col1 + 20 AS col1 FROM tab2
----
71
87
97

query I rowsort
SELECT DISTINCT + 34 - + col0 FROM tab0
----
-53
-63
19

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + + col1 col1, col0 - col2 + + 96 - - 3 AS col0 FROM tab1
----
10
125
28
54
94
122

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-395
SELECT - ( - 59 ) * + ( + + CAST( NULL AS DECIMAL ) ) AS col2, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-395
SELECT - ( - 59 ) * + ( + + CAST ( NULL AS REAL ) ) AS col2, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT col0 DIV + col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-396
SELECT col0 / + col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT MAX( col0 ) * - 51 - 17 + - 87 - MIN( - col2 ) FROM tab2
----
-3871

skipif mysql # not compatible
query I rowsort label-397
SELECT MAX ( col0 ) * - 51 - 17 + - 87 - MIN ( - col2 ) FROM tab2
----
-3871

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT ( - ( - 90 ) ) * + COUNT( * ) FROM tab1 cor0
----
270

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT ( - ( - 90 ) ) * + COUNT ( * ) FROM tab1 cor0
----
270

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

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL + SUM( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT ALL + SUM ( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
66

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

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

query I rowsort
SELECT - col1 + + col2 * + col0 - col1 FROM tab1
----
4868
5005
6094

query I rowsort
SELECT - 89 + - 24 AS col0 FROM tab2
----
-113
-113
-113

onlyif mysql # DIV for integer division: 
query II rowsort label-405
SELECT + col0 + - col2 + + - col0 DIV ( + ( + ( 2 ) ) ) + - 44 AS col1, - 60 + - - col2 col1 FROM tab2
----
-44
-37
-52
-20
-64
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-405
SELECT + col0 + - col2 + + - col0 / ( + ( + ( 2 ) ) ) + - 44 AS col1, - 60 + - - col2 col1 FROM tab2
----
-44
-37
-52
-20
-64
-2

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

query I rowsort
SELECT DISTINCT - + 92 * col1 * 81 + col0 AS col2 FROM tab2 AS cor0
----
-380006
-499209
-573740

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT + 88 DIV - 42 AS col0 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-408
SELECT + 88 / - 42 AS col0 FROM tab1
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-409
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) IN ( 81 / + col0 - col0 )
----

skipif mysql # not compatible
query III rowsort label-409
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IN ( 81 / + col0 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-410
SELECT - 77 DIV col2 AS col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-410
SELECT - 77 / col2 AS col2 FROM tab0
----
-1
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT + 94 DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-411
SELECT + 94 / col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 + - col1 * - col0 FROM tab0
----
-2
1168
1817

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

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL - 86 + - AVG ( DISTINCT - col2 ) * + COUNT( * ) AS col2 FROM tab1 WHERE 61 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - 86 + - AVG ( DISTINCT - col2 ) * + COUNT ( * ) AS col2 FROM tab1 WHERE 61 <= ( NULL )
----
NULL

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

query I rowsort
SELECT col1 + - 87 AS col2 FROM tab0
----
-6
-66
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT ALL CAST( - col0 AS SIGNED ) * - col1 FROM tab1 WHERE ( - col2 ) NOT BETWEEN ( 22 ) AND NULL
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL CAST ( - col0 AS INTEGER ) * - col1 FROM tab1 WHERE ( - col2 ) NOT BETWEEN ( 22 ) AND NULL
----
425
4277
714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT MIN( 41 ) + 78 FROM tab1
----
119

skipif mysql # not compatible
query I rowsort label-419
SELECT MIN ( 41 ) + 78 FROM tab1
----
119

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab2 WHERE ( NULL ) > + col0 * - 38
----

skipif mysql # not compatible
query I rowsort label-421
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 WHERE ( NULL ) > + col0 * - 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-422
SELECT ALL + col0 * CAST( - col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL + col0 * CAST ( - col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + 37 * - ( + col2 ) FROM tab2
----
-1480
-2146
-851

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

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

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

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

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

query I rowsort
SELECT ALL + 90 * + col0 AS col2 FROM tab2
----
4140
5760
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT COUNT( * ) + + 27 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-428
SELECT COUNT ( * ) + + 27 FROM tab2
----
30

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= - col2 + col2
----

query I rowsort
SELECT col2 + ( - ( 77 ) + + col1 ) * 88 FROM tab0
----
-4918
-6589
399

query I rowsort
SELECT - 51 + col1 FROM tab1
----
-37
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT DISTINCT CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - ( - 90 ) >= ( col2 )
----
47
5

query I rowsort
SELECT ALL col2 * - col2 - + ( 75 ) * ( col2 ) AS col0 FROM tab1
----
-16416
-7906
-9724

query I rowsort
SELECT ALL - 30 + + col0 FROM tab2
----
16
34
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-436
SELECT - CAST( NULL AS SIGNED ) * - 89 + - 62 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT - CAST ( NULL AS INTEGER ) * - 89 + - 62 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 81 + - col2 FROM tab2
----
3703
5144
6017

query I rowsort
SELECT + 39 + + col2 AS col1 FROM tab2 WHERE NOT NULL < col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-439
SELECT + CAST( + ( + col0 ) AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * col0 )
----

skipif mysql # not compatible
query I rowsort label-439
SELECT + CAST ( + ( + col0 ) AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-440
SELECT ALL 32 * - col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * + 90 )
----

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL 32 * - col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * + 90 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 >= ( ( col2 ) - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT ALL - + col0 + - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-45
-74
-90

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - + col0 + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
-45
-74
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 70 col2 FROM tab0 AS cor0
----
-3290
-6930
-700

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT + - MAX( DISTINCT 31 ) * ( + 9 ) AS col0 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-447
SELECT + - MAX ( DISTINCT 31 ) * ( + 9 ) AS col0 FROM tab2 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + ( + MAX( + col0 ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + ( + MAX ( + col0 ) ) FROM tab0 cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) <= ( col0 )
----

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

query I rowsort
SELECT ALL - 40 AS col1 FROM tab0 WHERE NOT ( ( 30 ) + 52 * - col1 ) IS NOT NULL
----

query I rowsort
SELECT 59 + + AVG ( DISTINCT - col0 ) AS col1 FROM tab0 WHERE col2 BETWEEN ( - 16 - col0 * 13 ) AND 22 * - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-453
SELECT * FROM tab0 WHERE - 36 NOT BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-453
SELECT * FROM tab0 WHERE - 36 NOT BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> col1 * 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + col2 * - - CAST( 12 AS SIGNED ) FROM tab2
----
276
480
696

skipif mysql # not compatible
query I rowsort label-455
SELECT + col2 * - - CAST ( 12 AS INTEGER ) FROM tab2
----
276
480
696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-456
SELECT ALL 39 * col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 39 * col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 31 AS col2 FROM tab0
----
-112
-32
-52

query I rowsort
SELECT - 58 * - + col2 + col0 FROM tab2
----
1380
2384
3439

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT DISTINCT + 30 DIV + - 99 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT + 30 / + - 99 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 14 * + col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT + 71 - - col1 AS col2 FROM tab2 AS cor0
----
122
138
148

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT 10 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT ALL - col0 DIV + ( - col0 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - col0 / + ( - col0 ) FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND ( - col1 * - col1 + col2 / 81 )
----

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

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

query I rowsort
SELECT 84 * - col1 FROM tab2
----
-4284
-5628
-6468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT ALL - 57 DIV MAX( 28 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - 57 / MAX ( 28 ) FROM tab0
----
-2

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col1 + + 43 NOT IN ( - + 6 )
----
46
64
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-477
SELECT DISTINCT + ( + SUM ( ALL + col0 ) ) col0 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-478
SELECT DISTINCT + col1 AS col0, CAST( 96 AS SIGNED ) FROM tab1
----
14
96
47
96
5
96

skipif mysql # not compatible
query II rowsort label-478
SELECT DISTINCT + col1 AS col0, CAST ( 96 AS INTEGER ) FROM tab1
----
14
96
47
96
5
96

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 * - 29 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT + COUNT( * ) + + SUM( DISTINCT + col0 ) FROM tab1 cor0
----
230

skipif mysql # not compatible
query I rowsort label-481
SELECT + COUNT ( * ) + + SUM ( DISTINCT + col0 ) FROM tab1 cor0
----
230

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE 83 BETWEEN - col1 / col1 + + 46 AND col0 * - col1 + 41 / - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT DISTINCT - 66 * - - COUNT( DISTINCT - ( - 64 ) ) - - 89 + 59 AS col2 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT - 66 * - - COUNT ( DISTINCT - ( - 64 ) ) - - 89 + 59 AS col2 FROM tab0 AS cor0
----
82

query I rowsort
SELECT - col2 * - - 0 + col2 + - 10 FROM tab1 AS cor0
----
49
58
86

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

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

query I rowsort
SELECT - 29 + + col2 FROM tab2 AS cor0
----
-6
11
29

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

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + - MIN ( + 11 ) AS col0 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT col1 + - 79 + - col1 FROM tab2
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL + MAX( DISTINCT - + ( + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL + MAX ( DISTINCT - + ( + col1 ) ) FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 col2 FROM tab0 WHERE - col2 * - ( + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN ( ( col1 ) / + 31 ) AND + 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT - 78 - - ( ( ( + COUNT( * ) ) ) ) * 5 AS col0 FROM tab0 WHERE 27 IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-492
SELECT - 78 - - ( ( ( + COUNT ( * ) ) ) ) * 5 AS col0 FROM tab0 WHERE 27 IS NULL
----
-78

query I rowsort
SELECT + 99 - col0 FROM tab0 AS cor0
----
12
2
84

onlyif mysql # aggregate syntax: 
query II rowsort label-494
SELECT ALL + + COUNT( * ) + + + 71, 27 AS col2 FROM tab0 AS cor0
----
74
27

skipif mysql # not compatible
query II rowsort label-494
SELECT ALL + + COUNT ( * ) + + + 71, 27 AS col2 FROM tab0 AS cor0
----
74
27

query I rowsort
SELECT - 5 - + ( col1 ) FROM tab0 AS cor0
----
-26
-6
-86

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-497
SELECT + - col0 / - ( 62 ) col1 FROM tab0 AS cor0
----
0
1
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT + - SUM( ALL + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-500
SELECT + - SUM ( ALL + + col1 ) FROM tab1 AS cor0
----
-66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col2, col1 * + 11 * 76 + - - col1 col2 FROM tab1 cor0
----
-4896
11718
-5015
4185
-6188
39339

query I rowsort
SELECT DISTINCT + - 53 * + - ( + - 7 ) FROM tab1 AS cor0
----
-371

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ALL - 20 * + COUNT( - 12 ) AS col2 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL - 20 * + COUNT ( - 12 ) AS col2 FROM tab0 AS cor0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - + col2 / ( + col2 ) + - col0 NOT IN ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 9 col0 FROM tab2
----
-207
-360
-522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT ALL + 63 DIV - + MAX( - ( - col1 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + 63 / - + MAX ( - ( - col1 ) ) FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT - 40 * + + 61 AS col1 FROM tab1
----
-2440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-512
SELECT ALL - CAST( MIN( DISTINCT col0 ) AS SIGNED ) FROM tab2 WHERE + ( + CAST( NULL AS SIGNED ) ) * col0 - - 18 * - - col2 * + + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL - CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) FROM tab2 WHERE + ( + CAST ( NULL AS INTEGER ) ) * col0 - - 18 * - - col2 * + + col0 <= NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-514
SELECT ALL + - COUNT( * ) AS col2, 15 * - 26 FROM tab0 cor0
----
-3
-390

skipif mysql # not compatible
query II rowsort label-514
SELECT ALL + - COUNT ( * ) AS col2, 15 * - 26 FROM tab0 cor0
----
-3
-390

query I rowsort
SELECT DISTINCT col0 * + 57 AS col2 FROM tab0
----
4959
5529
855

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( col0 / 6 * - col0 ) IN ( - col1 ) )
----

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

query I rowsort
SELECT col2 - - - ( + 91 ) + + 65 AS col1 FROM tab2 WHERE NOT ( NOT ( 30 ) IS NULL )
----

query I rowsort
SELECT DISTINCT - - col1 + + 84 AS col1 FROM tab2 AS cor0
----
135
151
161

query II rowsort
SELECT DISTINCT ( - col1 ) + - col0 * 77 * + - 20, col0 AS col2 FROM tab1 AS cor0
----
130895
85
140093
91
78526
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT DISTINCT COUNT( * ) + - - CAST( + 86 AS SIGNED ) col2 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-521
SELECT DISTINCT COUNT ( * ) + - - CAST ( + 86 AS INTEGER ) col2 FROM tab1 AS cor0
----
89

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > - 10
----

query I rowsort
SELECT ALL col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL - 63 + + COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - 63 + + COUNT ( * ) FROM tab2
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 45 - - 62 col1 FROM tab1
----
2357
3887
4157

query I rowsort
SELECT 85 + col1 AS col0 FROM tab2
----
136
152
162

query I rowsort
SELECT col0 + - 77 FROM tab1
----
-26
14
8

query I rowsort
SELECT + 11 * + - 74 * col1 + col2 FROM tab0
----
-17084
-65887
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ( - MIN( DISTINCT - col0 ) ) + + 2 AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-531
SELECT ( - MIN ( DISTINCT - col0 ) ) + + 2 AS col1 FROM tab1
----
93

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

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

query I rowsort
SELECT ALL ( + - 92 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 73 <= NULL
----

query I rowsort
SELECT - 64 * - 79 FROM tab2
----
5056
5056
5056

query I rowsort
SELECT DISTINCT - col1 * - col0 * 25 * 66 FROM tab1 AS cor0
----
1178100
701250
7057050

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

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

query I rowsort
SELECT ALL 19 * + + col1 FROM tab2 AS cor0
----
1273
1463
969

query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 * - ( + 84 ) FROM tab1 AS cor0
----
1176
3948
420

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * + 31 AS col1 FROM tab2
----
1240
1798
713

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-546
SELECT ALL - CAST( + + col1 AS DECIMAL ) + + 45 - - col1 AS col2 FROM tab0 WHERE NOT NULL <> - col2 - - 7
----

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL - CAST ( + + col1 AS REAL ) + + 45 - - col1 AS col2 FROM tab0 WHERE NOT NULL <> - col2 - - 7
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col2 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL <> col2 + + col2
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + 15 + + + SUM( ALL + - 78 ) col1 FROM tab1 cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-552
SELECT + 15 + + + SUM ( ALL + - 78 ) col1 FROM tab1 cor0
----
-219

query I rowsort
SELECT ALL 83 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + MIN( ALL + col1 ) + + COUNT( * ) FROM tab1 cor0
----
8

skipif mysql # not compatible
query I rowsort label-554
SELECT + MIN ( ALL + col1 ) + + COUNT ( * ) FROM tab1 cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 * + + 23 + + + col1 col0, col2 * - 74 AS col0 FROM tab1 AS cor0
----
1040
-4366
1049
-7104
1082
-5032

query I rowsort
SELECT DISTINCT - + 47 + - + col2 AS col1 FROM tab1 AS cor0
----
-106
-115
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT 75 * - - COUNT( * ) * + - 46 AS col0 FROM tab0
----
-10350

skipif mysql # not compatible
query I rowsort label-557
SELECT 75 * - - COUNT ( * ) * + - 46 AS col0 FROM tab0
----
-10350

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT DISTINCT - col0 DIV + col2 + + - col1 col2 FROM tab2
----
-53
-68
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-559
SELECT DISTINCT - col0 / + col2 + + - col1 col2 FROM tab2
----
-53
-68
-78

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-560
SELECT + ( 75 ) - - - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE ( NULL ) = col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT DISTINCT - col2 DIV - - col2 + col1 FROM tab1 cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - col2 / - - col2 + col1 FROM tab1 cor0
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT + MIN( ALL - 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT + MIN ( ALL - 10 ) FROM tab2 AS cor0
----
-10

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

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

query I rowsort
SELECT ALL + ( - + col2 ) + col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL MIN( ALL - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL MIN ( ALL - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-566
SELECT - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT - CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

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

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( 35 ) NOT IN ( - col1 * col0, - col2 )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + 39 ) * + col1 * + + 53 + - col1 AS col2, - col0 + + - col1 col1 FROM tab2 AS cor0
----
-105468
-97
-138556
-142
-159236
-141

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-572
SELECT DISTINCT - MIN( - ( + col2 ) ) AS col0, COUNT( * ) + - CAST( - 47 AS SIGNED ) + - 99 AS col0 FROM tab1 AS cor0
----
96
-49

skipif mysql # not compatible
query II rowsort label-572
SELECT DISTINCT - MIN ( - ( + col2 ) ) AS col0, COUNT ( * ) + - CAST ( - 47 AS INTEGER ) + - 99 AS col0 FROM tab1 AS cor0
----
96
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT + COUNT( * ) AS col2, + 61 FROM tab2 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-573
SELECT + COUNT ( * ) AS col2, + 61 FROM tab2 AS cor0
----
3
61

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IN ( col2, - col2 + col0 )
----
-59
-68
-96

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

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

query II rowsort
SELECT 85, - 47 AS col2 FROM tab1
----
85
-47
85
-47
85
-47

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

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

query I rowsort
SELECT DISTINCT 80 * - - col1 FROM tab2
----
4080
5360
6160

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-584
SELECT - COUNT( * ), 18 AS col0 FROM tab1 AS cor0
----
-3
18

skipif mysql # not compatible
query II rowsort label-584
SELECT - COUNT ( * ), 18 AS col0 FROM tab1 AS cor0
----
-3
18

query I rowsort
SELECT + - 75 * - col2 FROM tab0 AS cor0
----
3525
7425
750

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

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - + COUNT( DISTINCT - - 83 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - + COUNT ( DISTINCT - - 83 ) AS col1 FROM tab0 cor0
----
-1

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

query II rowsort
SELECT ALL col2 + col2 AS col1, + 56 FROM tab2
----
116
56
46
56
80
56

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ( - MAX( - + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-590
SELECT ( - MAX ( - + col2 ) ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE 99 IS NULL
----

query I rowsort
SELECT DISTINCT + 1 + - - col0 + 49 * 33 AS col1 FROM tab1 AS cor0
----
1669
1703
1709

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * + 36 <= NULL
----

query I rowsort
SELECT + col0 - col2 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
178944
2187
9898

query I rowsort
SELECT DISTINCT + 98 + - + 41 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT MIN( + + col2 ) - COUNT( * ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT MIN ( + + col2 ) - COUNT ( * ) AS col0 FROM tab0
----
7

query II rowsort
SELECT + 87 + + col0 + + - col1 AS col0, + ( - col1 ) FROM tab2
----
74
-77
82
-51
95
-67

query I rowsort
SELECT col0 + + 23 AS col0 FROM tab0
----
110
120
38

query I rowsort
SELECT col2 * col0 * col0 * col0 + col0 FROM tab1
----
12734547
36233460
51242919

query I rowsort
SELECT DISTINCT - col0 - + + col1 FROM tab2
----
-141
-142
-97

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

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

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

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

query I rowsort
SELECT DISTINCT - - 58 AS col1 FROM tab1 cor0
----
58

query I rowsort
SELECT col2 + + - 82 - + + col1 AS col0 FROM tab0
----
-116
-93
16

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> 8 / - 75 + - col1
----

query I rowsort
SELECT col0 + 88 AS col0 FROM tab1
----
139
173
179

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT + CAST( MAX( + - col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + col2 + + col0 IS NULL
----
NULL

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

query I rowsort
SELECT ALL - 81 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND - + 91
----

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * - ( + - col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

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

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE NOT - 0 IS NULL
----
14
47
5

query II rowsort
SELECT col0 + - col0 AS col0, + col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT COUNT( * ) + 88 * + 92 FROM tab2 AS cor0
----
8099

skipif mysql # not compatible
query I rowsort label-617
SELECT COUNT ( * ) + 88 * + 92 FROM tab2 AS cor0
----
8099

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

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

query I rowsort
SELECT DISTINCT - 93 + + + col1 FROM tab2 AS cor0
----
-16
-26
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col1 + + col1 + + col0 col1, + col2 + - col0 FROM tab0 AS cor0
----
197
2
318
-77
3903
32

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

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

query I rowsort
SELECT ALL - col2 * - 17 * - ( - 92 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT + 49, - 37 AS col0 FROM tab1 AS cor0
----
49
-37
49
-37
49
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT - CAST( NULL AS SIGNED ) + - 77 FROM tab2 AS cor0 WHERE - CAST( + ( - ( - col0 ) ) AS SIGNED ) * + 40 BETWEEN - ( + 15 ) AND + ( + col1 ) * + col0 / + - col2
----

skipif mysql # not compatible
query I rowsort label-624
SELECT - CAST ( NULL AS INTEGER ) + - 77 FROM tab2 AS cor0 WHERE - CAST ( + ( - ( - col0 ) ) AS INTEGER ) * + 40 BETWEEN - ( + 15 ) AND + ( + col1 ) * + col0 / + - col2
----

query II rowsort
SELECT col1, - col1 + 14 AS col2 FROM tab0 AS cor0
----
1
13
21
-7
81
-67

query I rowsort
SELECT DISTINCT 91 * - 52 + + col0 FROM tab2
----
-4657
-4668
-4686

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT DISTINCT col1 - + - 41 + + col2 DIV 4 col0 FROM tab1
----
105
60
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-628
SELECT DISTINCT col1 - + - 41 + + col2 / 4 col0 FROM tab1
----
105
60
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col0 > - col1 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * - col0 - 54 col0 FROM tab2 AS cor0
----
-54
-54
-54

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

query I rowsort
SELECT ALL col2 + - 26 AS col1 FROM tab0 AS cor0
----
-16
21
73

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT DISTINCT - + CAST( - ( 36 ) AS SIGNED ) * col2 FROM tab0 AS cor0
----
1692
3564
360

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT - + CAST ( - ( 36 ) AS INTEGER ) * col2 FROM tab0 AS cor0
----
1692
3564
360

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

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

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

query I rowsort
SELECT ALL - 7 + 47 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-638
SELECT - ( + SUM( col2 ) ) FROM tab2 WHERE NOT col0 * - + 30 - col1 NOT IN ( - col2, - CAST( NULL AS SIGNED ), col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-638
SELECT - ( + SUM ( col2 ) ) FROM tab2 WHERE NOT col0 * - + 30 - col1 NOT IN ( - col2, - CAST ( NULL AS INTEGER ), col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-639
SELECT ALL MAX( - 1 ), SUM( col2 ) AS col0 FROM tab0
----
-1
156

skipif mysql # not compatible
query II rowsort label-639
SELECT ALL MAX ( - 1 ), SUM ( col2 ) AS col0 FROM tab0
----
-1
156

query I rowsort
SELECT 17 * 74 * col1 AS col2 FROM tab2
----
64158
84286
96866

query I rowsort
SELECT ALL + - col2 + col0 * + + col1 AS col2 FROM tab0 AS cor0
----
-2
1168
1817

query II rowsort
SELECT DISTINCT + - col2 + + col0 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
-45
96
23
68
26
59

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col0 ) * + col0 * - 41 > NULL
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT + col0 * 42 - - ( + col1 ) - + + col1 DIV col1 col2 FROM tab2 AS cor0
----
1982
2764
3216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-648
SELECT + col0 * 42 - - ( + col1 ) - + + col1 / col1 col2 FROM tab2 AS cor0
----
1982
2764
3216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT DISTINCT - - 62 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT - - 62 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
65

query I rowsort
SELECT ALL - 13 - + 91 FROM tab1 AS cor0
----
-104
-104
-104

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

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL >= + 37 + + + 70 * + + 0 + + - col1
----

query II rowsort
SELECT + col2, col0 - - 72 FROM tab0
----
10
159
47
87
99
169

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

query I rowsort
SELECT - 20 FROM tab1 WHERE NOT - col0 IS NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-657
SELECT ALL col1 col1, + CAST( NULL AS SIGNED ) AS col2 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-657
SELECT ALL col1 col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-660
SELECT - col2 * CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-660
SELECT - col2 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-661
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-661
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + + col2 > - 44
----

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab2 cor0
----
-11

query I rowsort
SELECT ( - - col1 ) + + 20 * - col1 FROM tab1 AS cor0
----
-266
-893
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT COUNT( * ) + + 58 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-666
SELECT COUNT ( * ) + + 58 FROM tab0
----
61

query I rowsort
SELECT - col2 * + + 27 + - ( ( 22 ) ) * - col1 AS col2 FROM tab0
----
-2651
192
513

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

query I rowsort
SELECT ALL - ( 60 ) FROM tab0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 52 - - + 9 FROM tab2 WHERE NOT NULL <> - col0
----

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 52 - - + 9 FROM tab2 WHERE NOT NULL <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-671
SELECT ALL - - col2 * col1 + - 61 + CAST( col1 AS SIGNED ) + - col1, + col2 AS col2 FROM tab1 AS cor0
----
1283
96
234
59
3135
68

skipif mysql # not compatible
query II rowsort label-671
SELECT ALL - - col2 * col1 + - 61 + CAST ( col1 AS INTEGER ) + - col1, + col2 AS col2 FROM tab1 AS cor0
----
1283
96
234
59
3135
68

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT COUNT( * ) * - + 21 * - COUNT( * ) FROM tab2 cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-672
SELECT COUNT ( * ) * - + 21 * - COUNT ( * ) FROM tab2 cor0 WHERE NULL <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT DISTINCT 36 + + 69 DIV 18 AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT 36 + + 69 / 18 AS col0 FROM tab1 AS cor0
----
39

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT 7 * + 58 + - col0 FROM tab1
----
315
321
355

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col1 + + - ( + 87 ) col1, - col2 + - col0 AS col2 FROM tab1 AS cor0
----
1257
-147
208
-144
3109
-159

query I rowsort
SELECT - 31 * 85 AS col1 FROM tab0 AS cor0
----
-2635
-2635
-2635

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT - - 0 DIV col2 * col0 + + col2 + 52 DIV + col2 FROM tab2 cor0
----
25
41
58

skipif mysql # not compatible
query I rowsort label-680
SELECT - - 0 / col2 * col0 + + col2 + 52 / + col2 FROM tab2 cor0
----
25
41
58

query I rowsort
SELECT col1 * + 5 - + col2 * - col1 FROM tab1 cor0
----
1414
320
3431

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT + COUNT( + - 29 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-682
SELECT + COUNT ( + - 29 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT DISTINCT MAX( ALL - + col2 ) * + + 32 * + + 33 + + - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-10563

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT MAX ( ALL - + col2 ) * + + 32 * + + 33 + + - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-10563

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-686
SELECT DISTINCT * FROM tab1 WHERE + 21 * CAST( - - col0 AS SIGNED ) BETWEEN - 31 + + 46 AND NULL
----

skipif mysql # not compatible
query III rowsort label-686
SELECT DISTINCT * FROM tab1 WHERE + 21 * CAST ( - - col0 AS INTEGER ) BETWEEN - 31 + + 46 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL MIN ( 67 ) AS col2 FROM tab1
----
67

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 79 BETWEEN col0 AND - 33 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-692
SELECT - COUNT( * ) DIV 47 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-692
SELECT - COUNT ( * ) / 47 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * + 45 FROM tab1 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * + 45 FROM tab1 AS cor0
----
-405

query I rowsort
SELECT ALL - ( 45 ) * + ( 23 ) AS col1 FROM tab1 AS cor0
----
-1035
-1035
-1035

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT ALL - + CAST( + col0 AS SIGNED ) * + 69 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3519
-5865
-6279

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - + CAST ( + col0 AS INTEGER ) * + 69 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3519
-5865
-6279

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

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT SUM( ALL ( col1 ) ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT SUM ( ALL ( col1 ) ) AS col2 FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 WHERE - - 25 = + col1 + + - col0 * col1
----

query I rowsort
SELECT ALL 77 * - col0 * ( + col0 ) FROM tab1
----
-200277
-556325
-637637

query II rowsort
SELECT - ( - 78 ) + - col1, + col2 FROM tab2
----
1
40
11
58
27
23

query I rowsort
SELECT col0 + - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
17
23
24

query II rowsort
SELECT DISTINCT col2 * - col1 AS col1, 22 AS col1 FROM tab1 AS cor0
----
-1344
22
-295
22
-3196
22

query II rowsort
SELECT ALL + + 56 AS col0, - 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 6c3003cd09913d4a2efc2903302997c3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-709
SELECT DISTINCT - COUNT( * ), + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-709
SELECT DISTINCT - COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3
NULL

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

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-711
SELECT + col1 AS col1, CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-711
SELECT + col1 AS col1, CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - 62 / + col1 - 28 * + 24 / + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 9 * + + AVG ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT - col0 NOT BETWEEN - 28 AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-718
SELECT DISTINCT * FROM tab2 WHERE + - CAST( - - col2 AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-718
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( - - col2 AS INTEGER ) < - col1
----

query I rowsort
SELECT + col1 * col2 * col1 * + col0 FROM tab1 AS cor0
----
125375
13669292
959616

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

query I rowsort
SELECT DISTINCT + col0 * - 83 AS col1 FROM tab2
----
-3818
-5312
-6225

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

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

query II rowsort
SELECT col2 * - 9 + - ( col0 ) - + 88 AS col2, col0 * - 54 FROM tab2 AS cor0
----
-341
-2484
-512
-3456
-685
-4050

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT DISTINCT + col2 DIV + col0 + - 22 + - 30 + + col0 * - 68 - - col0 + - 83 FROM tab2 AS cor0
----
-3217
-4423
-5160

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT + col2 / + col0 + - 22 + - 30 + + col0 * - 68 - - col0 + - 83 FROM tab2 AS cor0
----
-3217
-4423
-5160

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - 93 FROM tab1
----
4743
7905
8463

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

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

query I rowsort
SELECT DISTINCT 59 * 22 FROM tab2
----
1298

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT + COUNT( * ) * 57 * - COUNT( * ) AS col1 FROM tab2
----
-513

skipif mysql # not compatible
query I rowsort label-731
SELECT + COUNT ( * ) * 57 * - COUNT ( * ) AS col1 FROM tab2
----
-513

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col1 + + col2 = 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 * - 60 AS col0, ( + + col2 ) FROM tab2
----
-1380
23
-2400
40
-3480
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-734
SELECT ALL ( - 18 ), 30 - + + ( - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) * + col1 - col2 col2 FROM tab1
----
-18
NULL
-18
NULL
-18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-734
SELECT ALL ( - 18 ), 30 - + + ( - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + col1 - col2 col2 FROM tab1
----
-18
NULL
-18
NULL
-18
NULL

query I rowsort
SELECT ALL - col0 * 10 FROM tab1
----
-510
-850
-910

query I rowsort
SELECT DISTINCT 23 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1276
506
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-737
SELECT ALL + col2 + - + CAST( + - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL + col2 + - + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + col1 - - + 46 AS col0 FROM tab0 AS cor0
----
127
47
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL - 10 - + COUNT( * ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - 10 - + COUNT ( * ) FROM tab1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-741
SELECT CAST( NULL AS DECIMAL ) * + MIN( - 29 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT CAST ( NULL AS REAL ) * + MIN ( - 29 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 52 AS col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT ALL + - 51 AS col1 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT + 22 * - - 19 FROM tab2 AS cor0
----
418
418
418

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= + col1 + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 + + - col1 * + + col2 + - - 98 + 97 * + 49 ) <= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-748
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - 87 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
-87
67
-87
77
-87

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

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

query I rowsort
SELECT + 13 * + 69 AS col1 FROM tab2 AS cor0
----
897
897
897

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-752
SELECT DISTINCT + col2 + - col0 + + + 81 + + col2 - + CAST ( NULL AS INTEGER ) + + + col2 + - 43 * - - col0 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70 + 31, col2 + - + ( col0 ) col1 FROM tab0
----
101
-77
101
2
101
32

query I rowsort
SELECT ALL 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-757
SELECT ALL + CAST( NULL AS DECIMAL ), + col1 - + col0 FROM tab2 AS cor0 WHERE - col0 * - - 35 IS NULL
----

skipif mysql # not compatible
query II rowsort label-757
SELECT ALL + CAST ( NULL AS REAL ), + col1 - + col0 FROM tab2 AS cor0 WHERE - col0 * - - 35 IS NULL
----

query I rowsort
SELECT ALL - col1 + ( col0 ) + - + ( - 98 ) AS col0 FROM tab2 AS cor0
----
106
85
93

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + - SUM( - + ( - ( - + 8 ) ) ) AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + - SUM ( - + ( - ( - + 8 ) ) ) AS col1 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT DISTINCT - 63 + - + COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - 63 + - + COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL + 74 * + COUNT( * ) AS col1 FROM tab2 cor0
----
222

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + 74 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
222

query I rowsort
SELECT DISTINCT + col1 * col2 * - 58 * + col1 AS col2 FROM tab1
----
-1091328
-85550
-8712296

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - COUNT( - 33 ) + MIN( DISTINCT + 96 ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-763
SELECT - COUNT ( - 33 ) + MIN ( DISTINCT + 96 ) AS col2 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT SUM( DISTINCT - + 53 ) + - MAX( ALL col0 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-764
SELECT SUM ( DISTINCT - + 53 ) + - MAX ( ALL col0 ) FROM tab0
----
-150

query I rowsort
SELECT - 52 * - col0 + col2 * - 55 FROM tab1
----
-2628
1175
992

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT DISTINCT MAX( 35 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
35

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT MAX ( 35 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
35

query I rowsort
SELECT ALL 69 * col2 * + col0 AS col1 FROM tab0
----
48645
60030
662607

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

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

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT AVG ( DISTINCT - 18 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - col2 < NULL
----
NULL

query II rowsort
SELECT DISTINCT - - col0 * - - col1 AS col0, col0 * - - 40 + - col2 + - + col0 + col0 FROM tab0 AS cor0
----
1215
553
1827
3470
97
3781

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 <= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + col1 = + + 54 + + col1
----

query I rowsort
SELECT DISTINCT + 70 + + + col2 * + col0 * + + col0 FROM tab0
----
10645
75760
931561

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

skipif mysql # not compatible
query I rowsort label-777
SELECT + CAST ( NULL AS INTEGER ) + - 82 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + + col2 col0 FROM tab0 AS cor0
----
-658
-860
-9504

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

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

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

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

query I rowsort
SELECT + col2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + col0 + + 6 * + - 14 col1 FROM tab0 AS cor0
----
-53
19
29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT + CAST( + 75 AS SIGNED ) - - - 55 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT + CAST ( + 75 AS INTEGER ) - - - 55 FROM tab1 AS cor0
----
20

query I rowsort
SELECT ALL 26 + 23 FROM tab2 AS cor0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 83 + + col0 * col1 + + 14 col2 FROM tab1 AS cor0
----
4374
522
811

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT + 24 * + col0 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT COUNT( ALL + - col1 ) * + - 28 AS col2 FROM tab1 WHERE NULL IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-789
SELECT COUNT ( ALL + - col1 ) * + - 28 AS col2 FROM tab1 WHERE NULL IS NULL
----
-84

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

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

query I rowsort
SELECT ALL + col2 - + - 28 FROM tab1
----
124
87
96

query I rowsort
SELECT DISTINCT - col0 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * - 35 * + 49 <> NULL
----

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 32 - - + col0 + - 51 * - col2 NOT BETWEEN NULL AND 66
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 * - - 10 * - + 99 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT + SUM( + - 80 ) AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-800
SELECT + SUM ( + - 80 ) AS col1 FROM tab2
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-801
SELECT - + ( - MAX( + - 80 ) ), CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-801
SELECT - + ( - MAX ( + - 80 ) ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-80
NULL

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

query I rowsort
SELECT DISTINCT - + 24 * + + col2 AS col0 FROM tab2 AS cor0
----
-1392
-552
-960

query I rowsort
SELECT ALL col1 * - col0 * 91 FROM tab2 AS cor0
----
-213486
-448448
-457275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-805
SELECT DISTINCT - 52 * + col2 * - CAST( NULL AS SIGNED ) AS col2, + col2 DIV - - 73 - + col2 AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-805
SELECT DISTINCT - 52 * + col2 * - CAST ( NULL AS INTEGER ) AS col2, + col2 / - - 73 - + col2 AS col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT ALL - + 34 DIV - 19 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - + 34 / - 19 FROM tab1 AS cor0
----
1
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 84 + ( - col2 ) col2, ( + col2 ) * + + col2 FROM tab2 AS cor0
----
26
3364
44
1600
61
529

query I rowsort
SELECT - - 18 * - 32 FROM tab1 cor0
----
-576
-576
-576

query II rowsort
SELECT ALL + col1, 65 AS col0 FROM tab1
----
14
65
47
65
5
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - + 22 + - col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-812
SELECT ALL + 9 * col0 * col1 / + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + 9 * col0 * col1 / + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ( col2 ) + - 66 FROM tab1
----
-7
2
30

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

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

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

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

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

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

query I rowsort
SELECT 81 + - col0 FROM tab0 WHERE - + col0 + - + 54 IS NOT NULL
----
-16
-6
66

query I rowsort
SELECT DISTINCT 95 + + col1 * + col1 AS col2 FROM tab2 AS cor0
----
2696
4584
6024

query I rowsort
SELECT 30 - - + 42 AS col0 FROM tab2 AS cor0
----
72
72
72

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

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL + - 93 + col0 + + col2 AS col1 FROM tab1 AS cor0
----
51
54
66

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT ALL + col0 + ( col0 ) DIV col0 + col2 col0 FROM tab0 AS cor0
----
197
63
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-824
SELECT ALL + col0 + ( col0 ) / col0 + col2 col0 FROM tab0 AS cor0
----
197
63
98

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT DISTINCT + col2 - - + ( - - col2 ) + + col1 DIV - - 73 AS col2 FROM tab1 cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT + col2 - - + ( - - col2 ) + + col1 / - - 73 AS col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT DISTINCT COUNT( * ) + + + 9 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT COUNT ( * ) + + + 9 FROM tab2
----
12

query I rowsort
SELECT - 83 FROM tab0 WHERE NULL IS NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT - MAX( - col1 ) FROM tab1 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT - MAX ( - col1 ) FROM tab1 WHERE ( col0 ) IS NULL
----
NULL

query II rowsort
SELECT - 92, 29 AS col0 FROM tab1
----
-92
29
-92
29
-92
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 * 52 * + + 89 col0, + col2 FROM tab0
----
231400
10
231400
47
231400
99

query II rowsort
SELECT ALL - col1 AS col0, col0 * + ( + col0 ) * - - col1 FROM tab1
----
-14
36414
-47
389207
-5
36125

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE ( 31 ) <> + col2 * - 20
----
23
40
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-836
SELECT + SUM ( col2 ) col1 FROM tab0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-837
SELECT ALL MIN( DISTINCT - col2 ) + ( COUNT( * ) ) FROM tab1 WHERE CAST( - 16 AS SIGNED ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL MIN ( DISTINCT - col2 ) + ( COUNT ( * ) ) FROM tab1 WHERE CAST ( - 16 AS INTEGER ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + col0 ) <> col0 * + col1 + 1
----

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

query I rowsort
SELECT - col0 + + col2 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-841
SELECT ALL + CAST( + ( COUNT( ALL + 82 ) ) AS SIGNED ) AS col2 FROM tab1
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT - 28 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-842
SELECT - 28 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT - ( COUNT( * ) ) * - 31 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-843
SELECT - ( COUNT ( * ) ) * - 31 FROM tab0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT + COUNT( * ) * 40 + - COUNT( * ) DIV - ( 1 ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-844
SELECT + COUNT ( * ) * 40 + - COUNT ( * ) / - ( 1 ) FROM tab1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT ALL + 33 DIV 53 + + col1 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + 33 / 53 + + col1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + 14 * 51 FROM tab0
----
714
714
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 - 65 col1 FROM tab1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT MIN( col1 ) * - ( 86 ) AS col0 FROM tab1
----
-430

skipif mysql # not compatible
query I rowsort label-848
SELECT MIN ( col1 ) * - ( 86 ) AS col0 FROM tab1
----
-430

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

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

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

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

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

query I rowsort
SELECT - 38 * + col2 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL 82 + + COUNT( * ) AS col0 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL 82 + + COUNT ( * ) AS col0 FROM tab2
----
85

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

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + COUNT ( - 55 ) FROM tab1
----
3

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= col2 * ( 95 ) - - col0
----

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

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

query I rowsort
SELECT ALL col1 * + col1 AS col0 FROM tab2 WHERE NOT col0 * col2 IS NULL
----
2601
4489
5929

query I rowsort
SELECT DISTINCT ( 83 ) * - col1 FROM tab2
----
-4233
-5561
-6391

query I rowsort
SELECT ALL col1 * col2 + ( - 17 ) AS col2 FROM tab1
----
1327
278
3179

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL IN ( col2 * - col2 )
----

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

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

query I rowsort
SELECT - + 25 + col1 FROM tab0 cor0
----
-24
-4
56

query I rowsort
SELECT ALL - ( + col1 ) + - 29 AS col2 FROM tab2 AS cor0
----
-106
-80
-96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 70 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT + COUNT( * ) DIV + MIN( 62 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT + COUNT ( * ) / + MIN ( 62 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ( - MAX( col2 ) ) * 33 - 89 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT ( - MAX ( col2 ) ) * 33 - 89 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + ( - 38 ) col2 FROM tab2 AS cor0
----
-15
2
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL - - col2 * CAST( + 71 AS SIGNED ) - col1 AS col2 FROM tab1 AS cor0
----
4184
4781
6802

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - - col2 * CAST ( + 71 AS INTEGER ) - col1 AS col2 FROM tab1 AS cor0
----
4184
4781
6802

query I rowsort
SELECT ALL 96 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT col0 + - CAST( col2 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT col0 + - CAST ( col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT 1 * + 56 AS col1 FROM tab1 cor0
----
56
56
56

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

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

query I rowsort
SELECT col1 + + col0 AS col2 FROM tab1 WHERE NOT + col0 * 43 BETWEEN + col2 AND col1 * 26
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL - COUNT( ( - col2 ) ) FROM tab1 WHERE NULL BETWEEN ( NULL ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - COUNT ( ( - col2 ) ) FROM tab1 WHERE NULL BETWEEN ( NULL ) AND col1
----
0

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

query I rowsort
SELECT 3 + 7 FROM tab2 WHERE NOT ( + col1 ) > NULL
----

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

query I rowsort
SELECT ALL 60 FROM tab2 WHERE col1 NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT + - 51 * ( - 51 ) FROM tab0 AS cor0
----
2601
2601
2601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-883
SELECT + COUNT( CAST( NULL AS SIGNED ) ) * + 87 + - 62 * - MIN( ALL + col1 DIV - 99 ) AS col1 FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-883
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) * + 87 + - 62 * - MIN ( ALL + col1 / - 99 ) AS col1 FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
0

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

query I rowsort
SELECT col2 * + ( 96 ) * col2 AS col1 FROM tab2 cor0
----
153600
322944
50784

query II rowsort
SELECT DISTINCT 67 AS col2, col1 * - ( col2 ) - - col0 AS col1 FROM tab1
----
67
-1293
67
-210
67
-3105

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-888
SELECT CAST( + 71 AS SIGNED ) * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
639

skipif mysql # not compatible
query I rowsort label-888
SELECT CAST ( + 71 AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
639

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

query I rowsort
SELECT DISTINCT - 43 * + col2 FROM tab0
----
-2021
-4257
-430

query II rowsort
SELECT ALL col2, col1 * + - 49 AS col2 FROM tab1 AS cor0
----
59
-245
68
-2303
96
-686

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT COUNT( + 0 ) AS col0 FROM tab0 cor0 WHERE NOT col1 + - - col2 NOT IN ( - 43 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT COUNT ( + 0 ) AS col0 FROM tab0 cor0 WHERE NOT col1 + - - col2 NOT IN ( - 43 * col1 )
----
0

query I rowsort
SELECT - col1 * + 44 AS col0 FROM tab0 AS cor0
----
-3564
-44
-924

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-895
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) - - + 93 / + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-895
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) - - + 93 / + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 WHERE NOT - col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 * + - col1 FROM tab1
----
-25075
-290836
-68544

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

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

query I rowsort
SELECT ALL 31 * - - 89 AS col0 FROM tab0
----
2759
2759
2759

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-900
SELECT * FROM tab0 WHERE - - 87 >= ( - 25 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-900
SELECT * FROM tab0 WHERE - - 87 >= ( - 25 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT DISTINCT CAST( col1 AS SIGNED ) * + - CAST( 28 AS SIGNED ) FROM tab0
----
-2268
-28
-588

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + - CAST ( 28 AS INTEGER ) FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT DISTINCT col1 * - 78 * + - 36 FROM tab2
----
143208
188136
216216

query I rowsort
SELECT + ( + 16 ) - 46 * 25 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col2 * + + 87 FROM tab2
----
-139200
-292668
-46023

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * + + 94 col0 FROM tab1
----
1330
4465
475

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL + + COUNT( * ) * + + 23 AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + + COUNT ( * ) * + + 23 AS col1 FROM tab1 AS cor0
----
69

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

query I rowsort
SELECT + 11 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( + 75 ) - col2 + + 96 col1 FROM tab0 AS cor0
----
1661
6124
72

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

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT - col2 - + + ( + 70 ) * col2 DIV - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2
-28
172

skipif mysql # not compatible
query I rowsort label-913
SELECT - col2 - + + ( + 70 ) * col2 / - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2
-28
172

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-915
SELECT col0 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + CAST( 29 AS DECIMAL ) * + + 3 * - col1 ) <> ( - 81 )
----

skipif mysql # not compatible
query I rowsort label-915
SELECT col0 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + CAST ( 29 AS REAL ) * + + 3 * - col1 ) <> ( - 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT 43 DIV - col1 AS col1 FROM tab0 AS cor0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-916
SELECT 43 / - col1 AS col1 FROM tab0 AS cor0
----
-2
-43
0

onlyif mysql # aggregate syntax: 
query II rowsort label-917
SELECT COUNT( * ) AS col1, MAX( ( - col2 ) ) + - ( + 93 ) AS col0 FROM tab1
----
3
-152

skipif mysql # not compatible
query II rowsort label-917
SELECT COUNT ( * ) AS col1, MAX ( ( - col2 ) ) + - ( + 93 ) AS col0 FROM tab1
----
3
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 AS col2, 38 col0, + 64 FROM tab0
----
9 values hashing to 1ef329afdc7b2888f1ea1830e57ab3ef

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-920
SELECT DISTINCT + col2 DIV - 13 FROM tab1
----
-4
-5
-7

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT + col2 / - 13 FROM tab1
----
-4
-5
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-921
SELECT ALL 68 DIV + - col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL 68 / + - col1 FROM tab1
----
-1
-13
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT ALL - 22, - MIN( + - col1 ) - - 70 AS col2 FROM tab0
----
-22
151

skipif mysql # not compatible
query II rowsort label-922
SELECT ALL - 22, - MIN ( + - col1 ) - - 70 AS col2 FROM tab0
----
-22
151

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL - 73 * - 31 * - COUNT( * ) + - 26 FROM tab2
----
-6815

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - 73 * - 31 * - COUNT ( * ) + - 26 FROM tab2
----
-6815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT ALL + + CAST( + col2 AS SIGNED ) + col2 col2 FROM tab0 cor0
----
198
20
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-926
SELECT ALL + + CAST ( + col2 AS INTEGER ) + col2 col2 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT ALL - 67 AS col2 FROM tab0 AS cor0 WHERE 13 - - - col1 IS NOT NULL
----
-67
-67
-67

query II rowsort
SELECT DISTINCT 40 + col1, + 94 AS col2 FROM tab0 cor0
----
121
94
41
94
61
94

query I rowsort
SELECT - 55 + ( + col1 ) AS col1 FROM tab2
----
-4
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL COUNT( * ) * + 74 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL COUNT ( * ) * + 74 FROM tab2
----
222

query II rowsort
SELECT 23 AS col1, - col0 * - col2 FROM tab1
----
23
4896
23
5015
23
6188

query II rowsort
SELECT ( - col1 ) * + 40 AS col0, col0 AS col0 FROM tab1
----
-1880
91
-200
85
-560
51

query I rowsort
SELECT ALL col1 * - - 34 FROM tab2
----
1734
2278
2618

query I rowsort
SELECT + ( 86 ) FROM tab0
----
86
86
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT + ( + CAST( 28 AS SIGNED ) ) AS col1 FROM tab1 WHERE + col0 / + col1 * - col1 + - 28 IS NOT NULL
----
28
28
28

skipif mysql # not compatible
query I rowsort label-936
SELECT + ( + CAST ( 28 AS INTEGER ) ) AS col1 FROM tab1 WHERE + col0 / + col1 * - col1 + - 28 IS NOT NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT DISTINCT - - SUM( - + col2 ) + - COUNT( * ) FROM tab0 cor0
----
-159

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT - - SUM ( - + col2 ) + - COUNT ( * ) FROM tab0 cor0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 - - + col0 col2 FROM tab2 AS cor0
----
112
130
141

query III rowsort
SELECT * FROM tab1 WHERE + ( - 38 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <= ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT + 28 * - - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
2100

skipif mysql # not compatible
query I rowsort label-941
SELECT + 28 * - - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
2100

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 39 <> 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + COUNT( - 7 ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-943
SELECT + COUNT ( - 7 ) * COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-944
SELECT + col1 * + 94 + 34 + + - col1 + CAST( NULL AS DECIMAL ) + col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) > - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT + col1 * + 94 + 34 + + - col1 + CAST ( NULL AS REAL ) + col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) > - 87
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col0 * 59 * - - col0 FROM tab0 AS cor0
----
-13275
-446571
-555131

query I rowsort
SELECT - 43 AS col2 FROM tab1 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col0 * - col1 * + ( + 64 ) AND + 62
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-948
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col0 * - col1 * + ( + 64 ) AND + 62
----
0

query I rowsort
SELECT ALL ( + ( - col1 ) ) * col2 * - + 92 AS col1 FROM tab1 AS cor0
----
123648
27140
294032

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 - + - col1 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-952
SELECT - MAX ( ALL - 18 ) FROM tab2 AS cor0
----
18

query III rowsort
SELECT ALL * FROM tab1 WHERE + 63 < col1
----

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

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

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

skipif mysql # not compatible
query I rowsort label-955
SELECT + MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL 28 * - 56 + - SUM( DISTINCT - - col2 ) col0 FROM tab2
----
-1689

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-959
SELECT ALL 28 * - 56 + - SUM ( DISTINCT - - col2 ) col0 FROM tab2
----
-1689

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL MAX( ALL 93 ) + - - 67 FROM tab1 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL MAX ( ALL 93 ) + - - 67 FROM tab1 AS cor0
----
160

query I rowsort
SELECT DISTINCT - ( + col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-963
SELECT + col0 FROM tab1 AS cor0 WHERE CAST( + - ( + CAST( col2 AS SIGNED ) ) AS SIGNED ) + + 56 BETWEEN - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-963
SELECT + col0 FROM tab1 AS cor0 WHERE CAST ( + - ( + CAST ( col2 AS INTEGER ) ) AS INTEGER ) + + 56 BETWEEN - - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-964
SELECT ALL * FROM tab1 WHERE NOT - + ( - 26 ) + + col1 IN ( - col0 + col0 + - col0 / + CAST( CAST( 69 AS SIGNED ) AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-964
SELECT ALL * FROM tab1 WHERE NOT - + ( - 26 ) + + col1 IN ( - col0 + col0 + - col0 / + CAST ( CAST ( 69 AS INTEGER ) AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-966
SELECT ALL - MIN( + col2 ), - 94 AS col1 FROM tab1
----
-59
-94

skipif mysql # not compatible
query II rowsort label-966
SELECT ALL - MIN ( + col2 ), - 94 AS col1 FROM tab1
----
-59
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 0 + - - col0 col0 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT - col0 DIV + ( + col2 ) + + col1 + + - col0 AS col0 FROM tab0
----
-74
-96
66

skipif mysql # not compatible
query I rowsort label-968
SELECT - col0 / + ( + col2 ) + + col1 + + - col0 AS col0 FROM tab0
----
-74
-96
66

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

query I rowsort
SELECT DISTINCT - 24 + + col2 AS col0 FROM tab2 AS cor0
----
-1
16
34

query I rowsort
SELECT DISTINCT - - 1 * col2 + + col1 - col0 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT DISTINCT + col2 + - + col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL + 54 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + 54 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
162

query I rowsort
SELECT - col0 - 66 + 1 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 + col2 >= ( + + col1 + 27 + - ( ( col2 ) ) - - - ( col1 ) + + col1 )
----

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

query I rowsort
SELECT ALL - ( + col2 ) * - + col2 AS col1 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 66 * - col0
----

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN 82 AND + 76 * - 57
----
1
21
81

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT + SUM( + CAST( + - col1 AS SIGNED ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-982
SELECT + SUM ( + CAST ( + - col1 AS INTEGER ) ) FROM tab1
----
-66

query II rowsort
SELECT - 75 * + 65, + 63 AS col1 FROM tab2
----
-4875
63
-4875
63
-4875
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT - 4 * + + COUNT( * ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT - 4 * + + COUNT ( * ) AS col1 FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT 63 + + col0 * + CAST( - + col1 AS SIGNED ) * - col2 FROM tab2 WHERE NOT col0 <> - col1
----

skipif mysql # not compatible
query I rowsort label-986
SELECT 63 + + col0 * + CAST ( - + col1 AS INTEGER ) * - col2 FROM tab2 WHERE NOT col0 <> - col1
----

query I rowsort
SELECT - 74 * - 69 AS col0 FROM tab0
----
5106
5106
5106

query I rowsort
SELECT ALL - + ( + col1 ) * col2 + - + 42 FROM tab0 AS cor0
----
-141
-252
-3849

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

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

query I rowsort
SELECT + ( + + col1 ) * + + col0 + + + 73 FROM tab2
----
2419
5001
5098

query I rowsort
SELECT DISTINCT ( + - col0 ) + + + 19 FROM tab2 AS cor0
----
-27
-45
-56

query I rowsort
SELECT col0 * 86 + + col0 FROM tab2 AS cor0
----
4002
5568
6525

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 92 + - + col1 + - col2 + 90 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-994
SELECT + + COUNT ( * ) + + 39 FROM tab2 cor0
----
42

query I rowsort
SELECT ALL col1 + + - 51 FROM tab1 cor0
----
-37
-4
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-996
SELECT - ( + - ( - + CAST( - col2 AS SIGNED ) ) ) + - ( col0 ) + - - 61 DIV + 29 FROM tab0 cor0
----
-75
34
4

skipif mysql # not compatible
query I rowsort label-996
SELECT - ( + - ( - + CAST ( - col2 AS INTEGER ) ) ) + - ( col0 ) + - - 61 / + 29 FROM tab0 cor0
----
-75
34
4

query I rowsort
SELECT DISTINCT col0 * col0 - - - 43 AS col2 FROM tab0 AS cor0
----
182
7526
9366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT ALL + CAST( - - ( + col1 ) AS SIGNED ) + - 83 AS col1 FROM tab0 AS cor0
----
-2
-62
-82

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + CAST ( - - ( + col1 ) AS INTEGER ) + - 83 AS col1 FROM tab0 AS cor0
----
-2
-62
-82

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

query I rowsort
SELECT + 0 * + + col1 AS col0 FROM tab0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT + COUNT( * ) * + 37 * - - 60 FROM tab2
----
6660

skipif mysql # not compatible
query I rowsort label-1002
SELECT + COUNT ( * ) * + 37 * - - 60 FROM tab2
----
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT - + 26 - COUNT( * ) + + 6 col1 FROM tab0 cor0
----
-23

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

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

query I rowsort
SELECT DISTINCT + - 37 AS col0 FROM tab1 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - MAX( col2 ) AS col0 FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - MAX ( col2 ) AS col0 FROM tab2 WHERE col2 IS NULL
----
NULL

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

query I rowsort
SELECT - col1 * + + 63 + 8 AS col2 FROM tab1 AS cor0
----
-2953
-307
-874

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT + - COUNT( * ) * - + 43, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
129
3

skipif mysql # not compatible
query II rowsort label-1009
SELECT + - COUNT ( * ) * - + 43, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
129
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1011
SELECT + col0 + + - 75 FROM tab1 AS cor0 WHERE NOT CAST( col2 AS DECIMAL ) IS NULL
----
-24
10
16

skipif mysql # not compatible
query I rowsort label-1011
SELECT + col0 + + - 75 FROM tab1 AS cor0 WHERE NOT CAST ( col2 AS REAL ) IS NULL
----
-24
10
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - 34 / col1 - 88
----
0

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - 34 / col1 - 88
----
0

query I rowsort
SELECT ALL + col1 * - 99 + + + col0 FROM tab2 AS cor0
----
-5003
-6558
-7559

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT + col1 DIV - + 59 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1014
SELECT + col1 / - + 59 AS col2 FROM tab2
----
-1
-1
0

query II rowsort
SELECT DISTINCT 29 AS col0, col1 AS col2 FROM tab0
----
29
1
29
21
29
81

query I rowsort
SELECT ALL + ( + col1 ) * + 69 * 20 FROM tab1
----
19320
64860
6900

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 41 <> NULL OR - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT MAX( ALL + + col1 ) - ( 37 ) + - COUNT( * ) * - 20 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1023
SELECT MAX ( ALL + + col1 ) - ( 37 ) + - COUNT ( * ) * - 20 FROM tab2 AS cor0
----
100

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT - - 80 * - - col0 - col0 + + + col2 + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3708
5173
6050

skipif mysql # not compatible
query I rowsort label-1025
SELECT - - 80 * - - col0 - col0 + + + col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3708
5173
6050

query I rowsort
SELECT - ( col1 ) - - 19 AS col2 FROM tab2 AS cor0
----
-32
-48
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - col2 * 23 * + - col1 + col2 - col2 - col1 * + 60
----

query I rowsort
SELECT ALL col0 - + col2 - + 66 FROM tab0 WHERE 77 / + 58 <= + col2 * - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - - col1 + 0
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1033
SELECT ALL - ( + SUM( - col0 ) ), SUM( DISTINCT - 15 ) AS col0 FROM tab2 AS cor0
----
185
-15

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL - ( + SUM ( - col0 ) ), SUM ( DISTINCT - 15 ) AS col0 FROM tab2 AS cor0
----
185
-15

query I rowsort
SELECT + 82 * 12 FROM tab1, tab1 AS cor0
----
9 values hashing to 85cf3363108b1e2fa777f52e34e58337

query I rowsort
SELECT ALL + 93 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query II rowsort
SELECT ALL col0, 5 * col0 AS col0 FROM tab0
----
15
75
87
435
97
485

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

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

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

query I rowsort
SELECT col1 + - 81 + + + col1 FROM tab0 AS cor0
----
-39
-79
81

query I rowsort
SELECT DISTINCT - col1 * - 32 FROM tab1 WHERE NOT - col2 IS NULL
----
1504
160
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - 63 * ( - + ( - col0 ) ) FROM tab0
----
-5481
-6111
-945

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

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

skipif mysql # not compatible
query I rowsort label-1044
SELECT COUNT ( ALL col1 ) / COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL + MAX( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NOT - + 34 * 73 >= - 69
----
81

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + MAX ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NOT - + 34 * 73 >= - 69
----
81

query I rowsort
SELECT 97 FROM tab2 WHERE + 36 >= + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT ALL - col1 DIV col2 col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1047
SELECT ALL - col1 / col2 col2 FROM tab0
----
-1
-2
0

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

query I rowsort
SELECT DISTINCT 28 + + - col0 FROM tab2 AS cor0
----
-18
-36
-47

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 * col0 * col2 - + - col0 AS col2 FROM tab1 AS cor0
----
249747
426360
563199

query I rowsort
SELECT DISTINCT - 31 * - - 71 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-2201

query I rowsort
SELECT col0 * col2 - ( - - col0 ) + + - col1 FROM tab2
----
2419
4208
961

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1056
SELECT ALL 55 * - + col0, - ( - + CAST( + 76 AS SIGNED ) ) AS col1 FROM tab0
----
-4785
76
-5335
76
-825
76

skipif mysql # not compatible
query II rowsort label-1056
SELECT ALL 55 * - + col0, - ( - + CAST ( + 76 AS INTEGER ) ) AS col1 FROM tab0
----
-4785
76
-5335
76
-825
76

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 / - - col1 AND - col1
----

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

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL + COUNT ( * ) / - 64 * - COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab0 WHERE NOT 3 IN ( + ( col1 ), col2 )
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT DISTINCT + 72 DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + 72 / - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT + 83 DIV 43 * + + 5 AS col1 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1061
SELECT + 83 / 43 * + + 5 AS col1 FROM tab1 AS cor0
----
5
5
5

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

query I rowsort
SELECT DISTINCT + col0 * - + 91 + - + col2 * + 56 * - + 69 FROM tab0 cor0
----
180243
30723
373709

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT DISTINCT SUM( ALL 61 ) * - MAX( DISTINCT - + col0 ) FROM tab0 AS cor0
----
2745

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT SUM ( ALL 61 ) * - MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
2745

query I rowsort
SELECT + col1 * + 75 FROM tab1 cor0
----
1050
3525
375

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT + CAST( + - 5 AS SIGNED ) col2 FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1068
SELECT + CAST ( + - 5 AS INTEGER ) col2 FROM tab1 AS cor0
----
-5
-5
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT DISTINCT col2 + - col1 - col2 DIV 73 col2 FROM tab0 AS cor0
----
-11
-34
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1070
SELECT DISTINCT col2 + - col1 - col2 / 73 col2 FROM tab0 AS cor0
----
-11
-34
97

query III rowsort
SELECT - col1 AS col2, - col2 + col0 AS col0, + - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 01e2a0fe20ec077a00842634e4619721

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * - 94 / - 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1076
SELECT COUNT( * ) * + CAST( 49 AS SIGNED ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-1076
SELECT COUNT ( * ) * + CAST ( 49 AS INTEGER ) FROM tab2
----
147

query I rowsort
SELECT + col0 * - + 71 AS col2 FROM tab0
----
-1065
-6177
-6887

query II rowsort
SELECT DISTINCT - 91, + ( + 58 ) - + col1 AS col1 FROM tab1
----
-91
11
-91
44
-91
53

query I rowsort
SELECT ALL - ( - + 63 ) FROM tab1 WHERE NOT - 91 <= NULL
----

query I rowsort
SELECT ALL + col0 + - col2 + col0 * + 64 + - col1 * - 22 AS col0 FROM tab0
----
2710
6107
6228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1081
SELECT SUM( col2 ) DIV + SUM( ALL + - col2 ) + - + 91 AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-1081
SELECT SUM ( col2 ) / + SUM ( ALL + - col2 ) + - + 91 AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT col2 + + + 13 FROM tab0 cor0
----
112
23
60

query I rowsort
SELECT ALL + 39 - + + 81 * + 12 FROM tab0 AS cor0
----
-933
-933
-933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + col2 AS col1, col1 col2 FROM tab0 AS cor0
----
198
1
20
21
94
81

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

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

skipif mysql # not compatible
query II rowsort label-1086
SELECT DISTINCT + ( 48 ) AS col0, - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
48
-9

query I rowsort
SELECT + 33 - col0 FROM tab0 AS cor0
----
-54
-64
18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT ALL + CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 25 NOT BETWEEN + 57 * col2 + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 97 * - col2 AS col0 FROM tab0
----
-4559
-9603
-970

query I rowsort
SELECT col2 * + col0 * - - col1 * col0 FROM tab1
----
2131375
26466076
3495744

query III rowsort
SELECT * FROM tab0 WHERE NOT + 69 + 99 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE - - CAST( + col2 AS SIGNED ) IN ( + 76 * + col0 + col2, col2 + + + 47 )
----

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE - - CAST ( + col2 AS INTEGER ) IN ( + 76 * + col0 + col2, col2 + + + 47 )
----

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

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

query I rowsort
SELECT DISTINCT ( col1 ) * + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1099
SELECT DISTINCT * FROM tab2 WHERE NOT - 9 + - 13 * CAST( NULL AS SIGNED ) * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1099
SELECT DISTINCT * FROM tab2 WHERE NOT - 9 + - 13 * CAST ( NULL AS INTEGER ) * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + col1 + - col0 FROM tab1 AS cor0
----
14
47
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT + 57 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1104
SELECT + 57 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL COUNT( + col2 ) + + 21 AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL COUNT ( + col2 ) + + 21 AS col0 FROM tab1
----
24

query I rowsort
SELECT - col2 FROM tab1 WHERE ( col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL 43 + + COUNT( * ) col1 FROM tab0 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1108
SELECT ALL 43 + + COUNT ( * ) col1 FROM tab0 cor0
----
46

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 53 * + + COUNT ( * ) FROM tab2 cor0
----
159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1110
SELECT * FROM tab2 AS cor0 WHERE NULL < CAST( - + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1110
SELECT * FROM tab2 AS cor0 WHERE NULL < CAST ( - + col0 AS REAL )
----

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

skipif mysql # not compatible
query I rowsort label-1111
SELECT - COUNT ( * ) - + COUNT ( * ) / - 47 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 49 + + col1 FROM tab2 AS cor0
----
18
2
28

query I rowsort
SELECT - col2 - - col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 98 - 36 + + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-135
-575
-6695

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 26 * - ( + col0 ) - 73 FROM tab0 cor0 WHERE NOT 23 >= NULL
----

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

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

query I rowsort
SELECT DISTINCT + - col1 * - 17 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT DISTINCT col2 * + 1 * + 59 FROM tab2 AS cor0
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - COUNT( ALL - 54 ) * + 67 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1123
SELECT - COUNT ( ALL - 54 ) * + 67 FROM tab1 AS cor0
----
-201

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

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

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

query I rowsort
SELECT ALL - col0 * + 94 * - col1 + + ( - 69 ) FROM tab2 AS cor0
----
220455
463163
472281

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

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

query I rowsort
SELECT ALL 67 * - 12 FROM tab2
----
-804
-804
-804

query I rowsort
SELECT DISTINCT - - col1 * 18 FROM tab2 AS cor0
----
1206
1386
918

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + 37 * COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-1131
SELECT + 37 * COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-333

query I rowsort
SELECT ALL + col2 * 37 * - ( + col0 ) * col0 + - col2 FROM tab0 AS cor0
----
-2800540
-34465266
-391322

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT ALL + col2 * 21 DIV 27 FROM tab2
----
17
31
45

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL + col2 * 21 / 27 FROM tab2
----
17
31
45

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, col0, col0, - 5 + + + col0 + + - col2, col2 / - + col0 + + + col0, 51 / + 51 )
----

query I rowsort
SELECT ALL + + 6 + - col2 FROM tab0 AS cor0
----
-4
-41
-93

query II rowsort
SELECT - 94 AS col0, ( - 41 ) AS col0 FROM tab2 AS cor0
----
-94
-41
-94
-41
-94
-41

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

query I rowsort
SELECT DISTINCT 10 * col0 * - col0 + + col1 FROM tab2 AS cor0
----
-21109
-40883
-56183

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT ALL + col0 DIV ( - col2 ) + + 79 AS col2 FROM tab0 AS cor0
----
71
79
79

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL + col0 / ( - col2 ) + + 79 AS col2 FROM tab0 AS cor0
----
71
79
79

query II rowsort
SELECT DISTINCT + - ( + col2 ) + + - col1 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
-117
-77
-125
-67
-74
-51

query II rowsort
SELECT ALL col0, + col2 * + col0 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT 75 + CAST( + + col0 AS SIGNED ) AS col0 FROM tab1
----
126
160
166

skipif mysql # not compatible
query I rowsort label-1146
SELECT 75 + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1
----
126
160
166

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + col1 / - - col2 + + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - 24 * - COUNT( * ) * + 98 FROM tab1 AS cor0
----
7056

skipif mysql # not compatible
query I rowsort label-1148
SELECT - 24 * - COUNT ( * ) * + 98 FROM tab1 AS cor0
----
7056

query II rowsort
SELECT DISTINCT - - col2 + - 69 + col2 * - col1, - col1 AS col0 FROM tab2 AS cor0
----
-1219
-51
-3109
-77
-3897
-67

query I rowsort
SELECT ALL + col0 - - + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT - 72 - - col1 FROM tab2
----
-21
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT ALL 32 AS col1, COUNT( * ) * - COUNT( * ) + - SUM( DISTINCT - 91 ) AS col1 FROM tab0
----
32
82

skipif mysql # not compatible
query II rowsort label-1152
SELECT ALL 32 AS col1, COUNT ( * ) * - COUNT ( * ) + - SUM ( DISTINCT - 91 ) AS col1 FROM tab0
----
32
82

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

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

query I rowsort
SELECT + ( + ( + col0 ) ) + - col1 + - col2 FROM tab2 cor0 WHERE NOT + 15 IS NULL
----
-28
-50
-53

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

query II rowsort
SELECT DISTINCT + col1 AS col0, + col1 * + col0 - + col1 FROM tab1 AS cor0
----
14
700
47
4230
5
420

query II rowsort
SELECT DISTINCT - 7, + 70 AS col0 FROM tab1
----
-7
70

query I rowsort
SELECT + 11 * - 69 FROM tab1
----
-759
-759
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL MIN( + + 59 ) AS col0 FROM tab2, tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL MIN ( + + 59 ) AS col0 FROM tab2, tab0 AS cor0
----
59

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

query II rowsort
SELECT col0 AS col1, col0 + + 46 AS col0 FROM tab1
----
51
97
85
131
91
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + COUNT( 50 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1162
SELECT + COUNT ( 50 ) FROM tab2
----
3

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

query I rowsort
SELECT ALL 16 + 44 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - 47 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1167
SELECT col2 DIV col2 AS col2, col1 + + + ( + 49 ) DIV + 15 col1 FROM tab2 AS cor0
----
1
54
1
70
1
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1167
SELECT col2 / col2 AS col2, col1 + + + ( + 49 ) / + 15 col1 FROM tab2 AS cor0
----
1
54
1
70
1
80

query I rowsort
SELECT + col0 * + + 9 * 70 AS col0 FROM tab2
----
28980
40320
47250

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

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - COUNT ( ALL - col2 ) FROM tab2
----
-3

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

skipif mysql # not compatible
query I rowsort label-1170
SELECT + + 84 + ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
75

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

query I rowsort
SELECT ALL + col2 + - ( - - 73 ) - - - ( - col1 ) + - - col1 AS col1 FROM tab0 cor0
----
-21
136
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 91, - 6 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1174
SELECT - - 12 + col2 DIV col2 AS col2 FROM tab1 cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-1174
SELECT - - 12 + col2 / col2 AS col2 FROM tab1 cor0
----
13
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT DISTINCT 56 + + MAX( - 13 ) DIV - 89 * + 59 AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT 56 + + MAX ( - 13 ) / - 89 * + 59 AS col0 FROM tab2 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1176
SELECT ALL CAST( - col1 AS SIGNED ), 76 * + col1 * - 98 AS col1 FROM tab1 AS cor0
----
-14
-104272
-47
-350056
-5
-37240

skipif mysql # not compatible
query II rowsort label-1176
SELECT ALL CAST ( - col1 AS INTEGER ), 76 * + col1 * - 98 AS col1 FROM tab1 AS cor0
----
-14
-104272
-47
-350056
-5
-37240

query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 FROM tab0 AS cor0
----
-528
-6576
-98

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

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

query I rowsort
SELECT DISTINCT + col2 - 77 FROM tab0
----
-30
-67
22

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

skipif mysql # not compatible
query I rowsort label-1180
SELECT - col1 / - 43 AS col1 FROM tab0
----
0
0
1

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

query I rowsort
SELECT DISTINCT + col2 * + + col2 * + col1 AS col2 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT * FROM tab1 WHERE - + col1 <> 56 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT ALL - CAST( - + col1 AS SIGNED ) + + + ( col1 ) AS col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - CAST ( - + col1 AS INTEGER ) + + + ( col1 ) AS col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL + + 7 - - - 71 + - col0 FROM tab2 AS cor0
----
-110
-128
-139

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

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

query I rowsort
SELECT ALL - col2 * - + ( - 22 ) AS col0 FROM tab0
----
-1034
-2178
-220

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1190
SELECT + col2 DIV - 66, + 77 AS col1 FROM tab0 AS cor0
----
-1
77
0
77
0
77

skipif mysql # not compatible
query II rowsort label-1190
SELECT + col2 / - 66, + 77 AS col1 FROM tab0 AS cor0
----
-1
77
0
77
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT - - 8 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1191
SELECT - - 8 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
24

query I rowsort
SELECT - + col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2601
-4489
-5929

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

skipif mysql # not compatible
query I rowsort label-1193
SELECT - 43 * - + COUNT ( ALL col1 ) FROM tab2 AS cor0
----
129

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1196
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE col2 IN ( col0 - + CAST( NULL AS SIGNED ), col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IN ( col0 - + CAST ( NULL AS INTEGER ), col0 )
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - col2 + + + col1 + - 85 + + col0 * + col1 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT - MIN( DISTINCT - col2 ) AS col0 FROM tab2 WHERE NOT + col0 NOT IN ( - - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 WHERE NOT + col0 NOT IN ( - - 28 )
----
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND - 17 * - col0 + 24
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT DISTINCT - 62 * col1 DIV + 92 FROM tab1
----
-3
-31
-9

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - 62 * col1 / + 92 FROM tab1
----
-3
-31
-9

query I rowsort
SELECT + col0 * - + 82 AS col1 FROM tab2 AS cor0
----
-3772
-5248
-6150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT DISTINCT 85 + + 33 + - col2 / CAST( NULL AS SIGNED ) / + col2 * + - col2 + col2 - + + 7 - col2 * ( - + col2 ) * + col0 * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT 85 + + 33 + - col2 / CAST ( NULL AS INTEGER ) / + col2 * + - col2 + col2 - + + 7 - col2 * ( - + col2 ) * + col0 * + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + - 95 FROM tab2 AS cor0
----
-18
-28
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 78 col0 FROM tab1 AS cor0
----
-13
-7
27

query I rowsort
SELECT ALL - 50 + - + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 * - col2 AND - - col2 / + 51 / + col1 + + + col2 + + col1
----

query I rowsort
SELECT ALL + 6 + - ( - - 1 ) AS col1 FROM tab0
----
5
5
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1209
SELECT + col1 AS col1, + col2 DIV + 21 AS col1 FROM tab2
----
51
1
67
2
77
1

skipif mysql # not compatible
query II rowsort label-1209
SELECT + col1 AS col1, + col2 / + 21 AS col1 FROM tab2
----
51
1
67
2
77
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL + 99 DIV + + col2 AS col2 FROM tab0 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + 99 / + + col2 AS col2 FROM tab0 AS cor0
----
1
2
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1211
SELECT ALL 26 + 36 AS col2, COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
62
0

skipif mysql # not compatible
query II rowsort label-1211
SELECT ALL 26 + 36 AS col2, COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
62
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT + 34 DIV + + col1 + 44 AS col0 FROM tab0 AS cor0
----
44
45
78

skipif mysql # not compatible
query I rowsort label-1212
SELECT + 34 / + + col1 + 44 AS col0 FROM tab0 AS cor0
----
44
45
78

query I rowsort
SELECT + 35 * - + col2 FROM tab0 AS cor0
----
-1645
-3465
-350

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

query I rowsort
SELECT ALL - col1 + - 46 FROM tab1 AS cor0
----
-51
-60
-93

query I rowsort
SELECT - col1 - - + 93 FROM tab0 cor0
----
12
72
92

query I rowsort
SELECT DISTINCT + - col0 + - 79 FROM tab0 AS cor0
----
-166
-176
-94

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

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

query II rowsort
SELECT ALL - 36 + - 89, - 45 AS col0 FROM tab0 cor0
----
-125
-45
-125
-45
-125
-45

query I rowsort
SELECT DISTINCT col0 - + ( - 52 ) AS col1 FROM tab2 AS cor0
----
116
127
98

query I rowsort
SELECT DISTINCT col0 + + - 84 + - + col0 FROM tab2
----
-84

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

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

query I rowsort
SELECT DISTINCT col1 - 36 * + col2 * - 83 - + + ( col0 ) AS col0 FROM tab0
----
140502
295716
29814

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT - COUNT( * ) * COUNT( - 20 ) + - - MIN( col2 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1224
SELECT - COUNT ( * ) * COUNT ( - 20 ) + - - MIN ( col2 ) AS col0 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT DISTINCT col1 DIV - - col1 + - 38 AS col1 FROM tab0 AS cor0 WHERE - col1 * col0 DIV - - col2 IN ( - 2, - col1 DIV + col2 )
----
-37

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT col1 / - - col1 + - 38 AS col1 FROM tab0 AS cor0 WHERE - col1 * col0 / - - col2 IN ( - 2, - col1 / + col2 )
----
-37

query I rowsort
SELECT DISTINCT - 44 * - AVG ( DISTINCT - 91 ) AS col2 FROM tab2 WHERE NOT - 75 <> - col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1227
SELECT + + col0 AS col0, CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + 4 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT + col0 * + - 61 FROM tab0 AS cor0
----
-5307
-5917
-915

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab0 cor0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + COUNT( DISTINCT + col2 ) + - 40 AS col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-1233
SELECT + COUNT ( DISTINCT + col2 ) + - 40 AS col0 FROM tab2 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT - 88 + - + col1 > + col2
----
3

skipif mysql # not compatible
query I rowsort label-1234
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 88 + - + col1 > + col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL + MAX( - ( 32 ) ) col1 FROM tab1
----
-32

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 71 / - - col0 * + - ( - col1 ) - + 10 * - + col1 <> 49
----

query I rowsort
SELECT DISTINCT + col0 + 4 FROM tab0
----
101
19
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1240
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL OR NOT + CAST( NULL AS SIGNED ) > 65 * + - col2 * - col0
----

skipif mysql # not compatible
query III rowsort label-1240
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL OR NOT + CAST ( NULL AS INTEGER ) > 65 * + - col2 * - col0
----

query I rowsort
SELECT + + 93 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + 59 + - 83 + - 90 * - - 36 * - col0 col0 FROM tab2 cor0
----
148993
207296
242918

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

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

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT + + 41 - - col2 IN ( - - 41 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT DISTINCT - - COUNT( * ) AS col2, 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
22

skipif mysql # not compatible
query II rowsort label-1246
SELECT DISTINCT - - COUNT ( * ) AS col2, 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
22

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

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

query I rowsort
SELECT - - col0 * - - col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 / + 41 + - col0 >= 64 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 - - + 94 AS col2 FROM tab1
----
108
141
99

query I rowsort
SELECT DISTINCT - col1 - 62 AS col1 FROM tab2
----
-113
-129
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 + - col1 col0 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT - SUM( DISTINCT + col0 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-1255
SELECT - SUM ( DISTINCT + col0 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, - 98 col0 FROM tab0 AS cor0
----
1
-98
21
-98
81
-98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - 48 * + - 44 + - COUNT( * ) * + 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1239

skipif mysql # not compatible
query I rowsort label-1259
SELECT - 48 * + - 44 + - COUNT ( * ) * + 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1239

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT + 88 * COUNT( * ) + + 33 col1 FROM tab2 cor0
----
297

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1265
SELECT - col1 AS col1, + col0 DIV + col1 FROM tab0
----
-1
97
-21
4
-81
0

skipif mysql # not compatible
query II rowsort label-1265
SELECT - col1 AS col1, + col0 / + col1 FROM tab0
----
-1
97
-21
4
-81
0

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

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

query I rowsort
SELECT ALL ( col0 ) + 61 * + col1 FROM tab1
----
2958
390
905

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT 35 + - COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-1268
SELECT 35 + - COUNT ( * ) FROM tab0
----
32

query I rowsort
SELECT - 47 + col0 FROM tab2
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT + COUNT( * ) + + 28 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1270
SELECT + COUNT ( * ) + + 28 FROM tab0 AS cor0
----
31

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

query II rowsort
SELECT ALL col2 AS col2, ( col1 ) AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ALL - col0 DIV + 43 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL - col0 / + 43 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT 3 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL - MIN( + 95 ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - MIN ( + 95 ) AS col2 FROM tab0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT 83 DIV ( col2 ) AS col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-1279
SELECT 83 / ( col2 ) AS col1 FROM tab0
----
0
1
8

query I rowsort
SELECT ALL 32 * 30 FROM tab1
----
960
960
960

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( - 1 + 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + col0 * - col1 + 51 * col0 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) > 63
----

query I rowsort
SELECT col1 + - 26 AS col1 FROM tab0
----
-25
-5
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * + col2 col2 FROM tab1
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - COUNT( DISTINCT col1 ) * - SUM( DISTINCT + col2 ) AS col0 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-1287
SELECT - COUNT ( DISTINCT col1 ) * - SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
363

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT ALL col2 DIV + 9 AS col0 FROM tab1
----
10
6
7

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL col2 / + 9 AS col0 FROM tab1
----
10
6
7

query I rowsort
SELECT - 93 * + col1 + 83 * col2 AS col1 FROM tab0
----
-1123
-3632
8124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 43 ) IS NOT NULL
----

query I rowsort
SELECT + 25 + 13 AS col1 FROM tab0
----
38
38
38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col0 FROM tab1 WHERE - col2 + + 54 IS NULL
----

query I rowsort
SELECT + 18 * + 11 FROM tab0 AS cor0
----
198
198
198

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

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

skipif mysql # not compatible
query I rowsort label-1296
SELECT - col2 * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 76 ) NOT BETWEEN col0 + - col2 AND + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + SUM( + col0 ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT + SUM ( + col0 ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT MAX( col0 ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT MAX ( col0 ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab2 WHERE NOT - 11 >= 34 + + col0
----
56

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( NULL ) <= + col0 * 9
----

query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 + col0 ) IS NULL
----
196
62
97

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

query I rowsort
SELECT - + 73 + + col2 * col2 FROM tab0 AS cor0
----
2136
27
9728

query I rowsort
SELECT ALL + col0 * - ( 41 ) FROM tab2 AS cor0
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL COUNT( * ) / MIN( col1 * col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL COUNT ( * ) / MIN ( col1 * col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN - col1 AND - 48 - col0 * + 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT - col1 DIV + col1 + col2 AS col1 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1310
SELECT - col1 / + col1 + col2 AS col1 FROM tab1 AS cor0
----
58
67
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 69 <> ( col0 ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT DISTINCT ( - MAX( DISTINCT + 23 ) ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT ( - MAX ( DISTINCT + 23 ) ) FROM tab0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT + COUNT( * ) * + 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + COUNT ( * ) * + 97 FROM tab2
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * col0 col1 FROM tab0
----
1455
8439
9409

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

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

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

query I rowsort
SELECT DISTINCT col1 * - + col0 * + col0 FROM tab2
----
-107916
-315392
-376875

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL - MIN( DISTINCT - - col2 ) col0 FROM tab1
----
-59

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - col1 + + col1 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - MAX( DISTINCT - 29 ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + col1 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT - MAX ( DISTINCT - 29 ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + col1 * col0 )
----
NULL

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 18 * 65 * - col1 IS NULL
----

query I rowsort
SELECT ALL + ( + + col2 ) + 55 AS col0 FROM tab1 cor0
----
114
123
151

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL COUNT( * ) * + 85 + + 33 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL COUNT ( * ) * + 85 + + 33 FROM tab1 AS cor0
----
288

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1328
SELECT - + 0 col0, COUNT ( * ) AS col1 FROM tab2 cor0
----
0
3

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

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT 76 * + + col2 * + + ( + col1 ) * - col2 FROM tab0
----
-13598604
-159600
-744876

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

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

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

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL MIN ( - col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT ALL - 28 AS col1 FROM tab2 WHERE col2 = ( - - col0 )
----

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

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

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

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

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

query II rowsort
SELECT DISTINCT 4 * + 21, col2 AS col1 FROM tab2 cor0
----
84
23
84
40
84
58

query I rowsort
SELECT ALL 68 FROM tab1 WHERE + col1 NOT BETWEEN ( NULL ) AND - col1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT MIN( ALL - 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-1342
SELECT MIN ( ALL - 73 ) FROM tab2
----
-73

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN ( - col0 ) AND - col0 * col0 + col0 * col2
----
51
14
96

query I rowsort
SELECT DISTINCT - - 41 * - - col2 FROM tab2 AS cor0
----
1640
2378
943

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

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

query I rowsort
SELECT ALL 42 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT - - col1 * - 91 AS col1 FROM tab1 AS cor0
----
-1274
-4277
-455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT DISTINCT + col1 * - col1 + + CAST( + - 21 AS SIGNED ) FROM tab0 AS cor0
----
-22
-462
-6582

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + col1 * - col1 + + CAST ( + - 21 AS INTEGER ) FROM tab0 AS cor0
----
-22
-462
-6582

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > ( - + col2 )
----

query II rowsort
SELECT - col0 * + ( + col2 ), col2 + - 73 * - col2 AS col1 FROM tab2 AS cor0
----
-1058
1702
-2560
2960
-4350
4292

query I rowsort
SELECT ALL col2 + ( + col1 ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + - 86 * - col2 FROM tab2 AS cor0
----
1978
3440
4988

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

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

query II rowsort
SELECT DISTINCT col0 * - col2, - col1 AS col0 FROM tab0
----
-705
-81
-870
-21
-9603
-1

query I rowsort
SELECT ALL col2 + + - ( + col1 ) FROM tab0 WHERE NOT ( NOT 3 IS NOT NULL )
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT DISTINCT - ( - 36 ) * + CAST( + col0 AS SIGNED ) col2 FROM tab2 WHERE 91 IS NOT NULL
----
1656
2304
2700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1357
SELECT DISTINCT - ( - 36 ) * + CAST ( + col0 AS INTEGER ) col2 FROM tab2 WHERE 91 IS NOT NULL
----
1656
2304
2700

query I rowsort
SELECT col1 + + - 78 FROM tab1
----
-31
-64
-73

query I rowsort
SELECT col2 * - 54 + 72 * col0 + 66 FROM tab0
----
-1392
1704
5790

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + - - col0 BETWEEN - col1 AND - - 90 / + ( - col0 + 82 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT ALL ( - COUNT( * ) ) + + MIN( DISTINCT col1 ) DIV 98 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL ( - COUNT ( * ) ) + + MIN ( DISTINCT col1 ) / 98 AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL - col1 * - - 9 - - 64 AS col1 FROM tab0 AS cor0
----
-125
-665
55

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - col0 <> - ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL CAST ( 81 AS INTEGER ) - COUNT ( * ) FROM tab2 AS cor0
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL MAX( + ( + + 5 ) ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL MAX ( + ( + + 5 ) ) FROM tab2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1371
SELECT - CAST( + + col1 AS SIGNED ) - - col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1371
SELECT - CAST ( + + col1 AS INTEGER ) - - col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT DISTINCT + - 59 DIV - 18 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT + - 59 / - 18 FROM tab1 AS cor0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT COUNT( - 44 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1375
SELECT COUNT ( - 44 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT + col1 DIV 74 + - col2 AS col2 FROM tab2 WHERE NOT - col2 * col0 BETWEEN 47 AND ( - + ( + - col1 ) )
----
-23
-39
-58

skipif mysql # not compatible
query I rowsort label-1376
SELECT + col1 / 74 + - col2 AS col2 FROM tab2 WHERE NOT - col2 * col0 BETWEEN 47 AND ( - + ( + - col1 ) )
----
-23
-39
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT CAST( 82 AS SIGNED ) AS col1 FROM tab0
----
82
82
82

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

query I rowsort
SELECT ALL + 72 * col1 AS col2 FROM tab2
----
3672
4824
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-1379
SELECT ALL + 23 AS col1, COUNT( * ) * - + COUNT( * ) + - - 83 AS col0 FROM tab0
----
23
74

skipif mysql # not compatible
query II rowsort label-1379
SELECT ALL + 23 AS col1, COUNT ( * ) * - + COUNT ( * ) + - - 83 AS col0 FROM tab0
----
23
74

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1385
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 61 * + col2 / 5 * col0 * + + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1385
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 61 * + col2 / 5 * col0 * + + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT - 63 * + + 36 AS col0 FROM tab2 cor0
----
-2268
-2268
-2268

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT SUM( + 6 ) AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1388
SELECT SUM ( + 6 ) AS col1 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - MAX( DISTINCT + 35 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-1389
SELECT - MAX ( DISTINCT + 35 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

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

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

query I rowsort
SELECT ALL 66 + - col1 + - col1 * 86 AS col2 FROM tab1 WHERE ( NOT ( NOT NULL = - + col0 ) )
----

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col1 * + + col0 FROM tab1 AS cor0 WHERE - 31 * col0 < NULL
----

query I rowsort
SELECT ALL + - col0 + col2 + - 75 + - 77 * - + col2 FROM tab0 AS cor0
----
3576
618
7550

query I rowsort
SELECT DISTINCT + col2 + 27 AS col1 FROM tab2 AS cor0
----
50
67
85

query I rowsort
SELECT ( - ( - col1 ) ) + + - col0 + col1 + col2 AS col1 FROM tab1 cor0
----
-16
71
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT ALL - 50 * col0 DIV col2 + - + col1 FROM tab2
----
-131
-151
-157

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL - 50 * col0 / col2 + - + col1 FROM tab2
----
-131
-151
-157

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

skipif mysql # not compatible
query I rowsort label-1398
SELECT col0 / - + 24 FROM tab0
----
-3
-4
0

query II rowsort
SELECT ALL - + 30, + col2 + - col2 * - - 99 AS col1 FROM tab0 AS cor0
----
-30
-4606
-30
-9702
-30
-980

query I rowsort
SELECT ALL - col2 + - col1 * 83 AS col2 FROM tab2 AS cor0
----
-4256
-5619
-6431

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

skipif mysql # not compatible
query I rowsort label-1401
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) + - - ( + 38 ) AS col2 FROM tab1 AS cor0
----
41

query I rowsort
SELECT - + ( + - col0 ) + + 31 AS col1 FROM tab2 cor0
----
106
77
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1403
SELECT DISTINCT col1 * + + ( CAST( + + col2 AS SIGNED ) ) - - col2 FROM tab0
----
198
220
3854

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT col1 * + + ( CAST ( + + col2 AS INTEGER ) ) - - col2 FROM tab0
----
198
220
3854

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

query II rowsort
SELECT - 65 + - + col0, col1 AS col0 FROM tab1
----
-116
14
-150
5
-156
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 - + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT col2 / ( + ( 93 ) ) FROM tab0 AS cor0
----
0
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1409
SELECT + ( col1 ) / - col2 AS col0 FROM tab0 cor0
----
-1
-2
0

query II rowsort
SELECT DISTINCT - 57, - col2 AS col2 FROM tab1 AS cor0
----
-57
-59
-57
-68
-57
-96

query I rowsort
SELECT ALL - 80 FROM tab0 AS cor0 WHERE NULL < + col0 * - col0 / - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT ALL - col2 DIV + - ( + col2 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL - col2 / + - ( + col2 ) FROM tab2 AS cor0
----
1
1
1

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

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

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

query III rowsort
SELECT col2 AS col2, - col1, - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 1a410ab8179246ec71fa9ef253edaa97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT CAST( col1 AS SIGNED ) * col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 46 )
----

skipif mysql # not compatible
query I rowsort label-1417
SELECT CAST ( col1 AS INTEGER ) * col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT ( col1 ) DIV - + 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT ( col1 ) / - + 95 FROM tab2
----
0
0
0

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

query I rowsort
SELECT ALL col2 * + - 70 + col0 - - col2 + - - 21 * - col0 / + col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT DISTINCT + MIN( + - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + MIN ( + - col0 ) AS col2 FROM tab1
----
-91

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

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

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

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

query II rowsort
SELECT DISTINCT 84 + + - col1 + - + col1, col0 AS col2 FROM tab2 AS cor0
----
-18
46
-50
75
-70
64

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

query I rowsort
SELECT ALL + col0 + - 36 FROM tab1 cor0
----
15
49
55

query I rowsort
SELECT DISTINCT + 78 - - 56 * - col2 AS col2 FROM tab0
----
-2554
-482
-5466

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT col0 + col0 DIV + - col2 AS col0 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-1430
SELECT col0 + col0 / + - col2 AS col0 FROM tab2
----
44
63
74

query II rowsort
SELECT col2 + - col0 AS col2, - col1 - col2 FROM tab2
----
-17
-125
-23
-74
-24
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + 8 + + + col0 * 8 - col0 col1 FROM tab0
----
130
634
704

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

query I rowsort
SELECT DISTINCT ( + - 94 ) - + col1 FROM tab2
----
-145
-161
-171

query I rowsort
SELECT + 66 * + 18 + - 89 * + col0 FROM tab2
----
-2906
-4508
-5487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col1 col2 FROM tab1
----
1358
300
3243

query II rowsort
SELECT col1 + col0 + + 97 + - col1 AS col0, col1 * 30 FROM tab2
----
143
1530
161
2310
172
2010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT COUNT( * ) DIV - COUNT( * ) + + - 61 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-1438
SELECT COUNT ( * ) / - COUNT ( * ) + + - 61 FROM tab1
----
-62

query I rowsort
SELECT col1 + - 80 FROM tab0
----
-59
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT DISTINCT 63 + + MAX( + 33 ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT 63 + + MAX ( + 33 ) AS col0 FROM tab2
----
96

query I rowsort
SELECT ALL - col2 + + col2 + + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1442
SELECT DISTINCT 16 * - + CAST( MAX( + col0 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-1200

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT 16 * - + CAST ( MAX ( + col0 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-1200

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

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

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

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

query I rowsort
SELECT ALL - 24 FROM tab1 AS cor0 WHERE col2 > - + 53 + - + col1
----
-24
-24
-24

query I rowsort
SELECT ALL 95 * - 52 AS col2 FROM tab0 AS cor0
----
-4940
-4940
-4940

query I rowsort
SELECT DISTINCT + 77 * - col2 * - 4 - + + 71 - + + col0 * - ( + 91 ) * ( col0 ) AS col1 FROM tab2 AS cor0
----
199569
384985
529668

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT + col0 DIV - - col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1448
SELECT + col0 / - - col1 FROM tab1 AS cor0
----
1
17
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1450
SELECT - COUNT( * ) AS col2, + 47 AS col0 FROM tab2 AS cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-1450
SELECT - COUNT ( * ) AS col2, + 47 AS col0 FROM tab2 AS cor0
----
-3
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT 49 DIV - + col0 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1451
SELECT 49 / - + col0 AS col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT - col2 * + + 77 FROM tab0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL - MAX( + 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - MAX ( + 48 ) FROM tab2
----
-48

query II rowsort
SELECT col2 AS col2, col2 * + - col2 AS col2 FROM tab2
----
23
-529
40
-1600
58
-3364

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 >= - + 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1458
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-1458
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND col1
----

query I rowsort
SELECT ALL col0 - - col1 - - 84 AS col1 FROM tab0 AS cor0
----
180
182
192

query I rowsort
SELECT DISTINCT 49 + - col2 AS col0 FROM tab1 AS cor0
----
-10
-19
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT DISTINCT - ( + col1 ) * 24 * CAST( 64 AS SIGNED ) - - - col1 AS col0 FROM tab2
----
-102979
-118349
-78387

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT - ( + col1 ) * 24 * CAST ( 64 AS INTEGER ) - - - col1 AS col0 FROM tab2
----
-102979
-118349
-78387

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + MIN( 99 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1462
SELECT + MIN ( 99 ) FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1463
SELECT DISTINCT col1 AS col1, CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1463
SELECT DISTINCT col1 AS col1, CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT col1 * - - col2 FROM tab1 WHERE - col0 < NULL
----

query I rowsort
SELECT DISTINCT - - col2 * + col0 + 88 + + col1 AS col0 FROM tab2 AS cor0
----
1197
2725
4505

query I rowsort
SELECT DISTINCT col0 * - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE - ( + + 25 ) / - - col1 BETWEEN - - 39 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT ALL + col1 * col2 * CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + col1 * col2 * CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

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

query II rowsort
SELECT - ( 95 ) AS col0, 46 AS col0 FROM tab0
----
-95
46
-95
46
-95
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1470
SELECT DISTINCT - MAX( + 30 ) AS col0, - SUM( - - 60 ) + + - COUNT( * ) * - 50 FROM tab1
----
-30
-30

skipif mysql # not compatible
query II rowsort label-1470
SELECT DISTINCT - MAX ( + 30 ) AS col0, - SUM ( - - 60 ) + + - COUNT ( * ) * - 50 FROM tab1
----
-30
-30

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

skipif mysql # not compatible
query I rowsort label-1471
SELECT MAX ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - - col0 * - 31 + col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT 34 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1473
SELECT 34 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
102

query I rowsort
SELECT ALL + col1 * col1 + 35 FROM tab1 AS cor0
----
2244
231
60

query II rowsort
SELECT - col2 * - - col2, - col1 AS col2 FROM tab1 cor0
----
-3481
-5
-4624
-47
-9216
-14

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

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

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

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

query I rowsort
SELECT - 63 + - - col2 AS col0 FROM tab0
----
-16
-53
36

query I rowsort
SELECT ALL col2 * + - 14 + + 64 * + col2 AS col1 FROM tab0 AS cor0
----
2350
4950
500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1481
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> - - 90 * + col2
----

skipif mysql # not compatible
query III rowsort label-1481
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> - - 90 * + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT DISTINCT + col1 * - col0 + + + col2 + + col2 DIV + + col0 * - + col2 FROM tab2
----
-2323
-4888
-4967

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + col1 * - col0 + + + col2 + + col2 / + + col0 * - + col2 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT - + 86 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT DISTINCT - + 87 + + col2 - + - ( - 35 ) * - 55 FROM tab0 AS cor0
----
1848
1885
1937

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

query I rowsort
SELECT 11 + - col0 FROM tab1 AS cor0
----
-40
-74
-80

query I rowsort
SELECT ALL 62 * - + col0 + - + col1 - col0 FROM tab0 cor0
----
-1026
-5502
-6112

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

skipif mysql # not compatible
query I rowsort label-1489
SELECT 83 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 52 + - + COUNT ( * ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 - + + col2 col1 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT - 4 + - + COUNT( * ) FROM tab2 WHERE NULL <= NULL
----
-4

skipif mysql # not compatible
query I rowsort label-1491
SELECT - 4 + - + COUNT ( * ) FROM tab2 WHERE NULL <= NULL
----
-4

query I rowsort
SELECT - ( + col1 ) + - ( + - col0 ) FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * + col2 * + - 82 - col1 col1 FROM tab1
----
-111279
-128295
-181070

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

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

query I rowsort
SELECT ALL - 18 * - - col1 - + + ( 29 ) FROM tab1
----
-119
-281
-875

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT ALL ( + col1 ) DIV ( + 10 ) + 87 + ( + + col1 ) DIV - col2 AS col1 FROM tab2
----
90
92
93

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL ( + col1 ) / ( + 10 ) + 87 + ( + + col1 ) / - col2 AS col1 FROM tab2
----
90
92
93

query I rowsort
SELECT - 54 * - - col1 AS col2 FROM tab2
----
-2754
-3618
-4158

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

skipif mysql # not compatible
query I rowsort label-1498
SELECT - + 67 / col2 / col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col2 AS col2, col2 * - ( - col0 ) FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT col0 * - + 88 + + col1 FROM tab2 AS cor0
----
-3997
-5555
-6533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE + col0 >= - col0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < 38 * + col2 * - 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT COUNT( + - 20 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1507
SELECT COUNT ( + - 20 ) FROM tab2
----
3

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1509
SELECT + col2 / col1 col1 FROM tab0
----
0
0
99

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

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

query I rowsort
SELECT col0 / - - 55 + - col1 AS col0 FROM tab0 WHERE + col2 * - - col1 + + + 13 * col1 < NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE - + 54 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1513
SELECT ALL + + COUNT( * ) + COUNT( ALL 57 ) DIV + + ( - 51 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + + COUNT ( * ) + COUNT ( ALL 57 ) / + + ( - 51 ) FROM tab0 cor0
----
3

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

query I rowsort
SELECT - 93 * 43 FROM tab1 AS cor0
----
-3999
-3999
-3999

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

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

query I rowsort
SELECT 33 + col2 + 45 * + col1 FROM tab0
----
177
3725
988

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT 82 / 47 = 91 )
----

query I rowsort
SELECT ALL - + 1 * + 39 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + col1 * - col0 * col1 FROM tab0 AS cor0
----
-1476225
-3337929
-9409

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

query I rowsort
SELECT ALL - col2 - + - 10 * + col1 AS col1 FROM tab2 AS cor0
----
487
612
730

query III rowsort
SELECT ALL * FROM tab0 WHERE 68 = - + 83
----

query I rowsort
SELECT 53 - + 25 * col2 FROM tab1
----
-1422
-1647
-2347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + - col0 col1 FROM tab2 WHERE NOT - col1 - + 66 NOT BETWEEN + col2 AND - col2 + - ( + 3 ) * col2
----

query I rowsort
SELECT ALL 65 * + 75 FROM tab0
----
4875
4875
4875

onlyif mysql # aggregate syntax: 
query II rowsort label-1527
SELECT 66, + COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
66
3

skipif mysql # not compatible
query II rowsort label-1527
SELECT 66, + COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
66
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1528
SELECT DISTINCT - ( + - COUNT( DISTINCT - - 80 ) ) DIV + + 25 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - ( + - COUNT ( DISTINCT - - 80 ) ) / + + 25 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT ALL - col1 DIV + ( + col0 ) FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1530
SELECT ALL col1, - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL col1, - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 + - + 58 + - - col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL OR NULL < NULL
----
33

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

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

query I rowsort
SELECT ALL col1 * + col0 + + + col1 + + + col2 AS col1 FROM tab0 AS cor0
----
1343
1858
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT DISTINCT - 11 + - col2 + CAST( 77 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
43
8

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - 11 + - col2 + CAST ( 77 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
43
8

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR - - ( 39 ) = - col2
----

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

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

query II rowsort
SELECT DISTINCT + col1, - col0 AS col2 FROM tab2 WHERE NOT - col0 < + col1 * - col1
----
51
-46
67
-75
77
-64

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

query I rowsort
SELECT - ( col2 ) * - col2 * col0 + + col0 AS col0 FROM tab2
----
102464
24380
252375

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

query II rowsort
SELECT + col2 * + col0 + - + col1, - col0 AS col1 FROM tab1
----
4882
-51
5010
-85
6141
-91

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

skipif mysql # not compatible
query I rowsort label-1546
SELECT - + 21 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - + col2 + - 61 FROM tab1 AS cor0
----
-120
-129
-157

query I rowsort
SELECT ALL - col2 + + + col2 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1551
SELECT * FROM tab1 WHERE - 5 - + + 91 + - CAST( NULL AS SIGNED ) * + + 37 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1551
SELECT * FROM tab1 WHERE - 5 - + + 91 + - CAST ( NULL AS INTEGER ) * + + 37 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1552
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 77 IS NULL ) OR NOT CAST( - + 40 AS SIGNED ) <= + col1 * + col2 * - CAST( NULL AS SIGNED ) - 82 AND col1 * col0 + + col1 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1552
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 77 IS NULL ) OR NOT CAST ( - + 40 AS INTEGER ) <= + col1 * + col2 * - CAST ( NULL AS INTEGER ) - 82 AND col1 * col0 + + col1 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT ALL - col0 DIV 16 AS col1 FROM tab2
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - col0 / 16 AS col1 FROM tab2
----
-2
-4
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT + 22 - SUM( ALL + - 97 ) FROM tab2
----
313

skipif mysql # not compatible
query I rowsort label-1555
SELECT + 22 - SUM ( ALL + - 97 ) FROM tab2
----
313

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT + ( + - 83 ) - + COUNT( * ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-1556
SELECT + ( + - 83 ) - + COUNT ( * ) FROM tab2
----
-86

query I rowsort
SELECT + - 55 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 < NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 98 + col1 <= + - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + - 65 FROM tab1
----
-3315
-5525
-5915

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

query I rowsort
SELECT col0 * - + 55 FROM tab1
----
-2805
-4675
-5005

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) * - - MIN ( DISTINCT 26 ) FROM tab1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 < col0 - - + 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * + 31 col1 FROM tab1
----
-2759
-2759
-2759

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT DISTINCT - col2 DIV - - 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT - col2 / - - 92 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT - 74 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT - 74 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
222

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1569
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 2 * + CAST( NULL AS DECIMAL ) / + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1569
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 2 * + CAST ( NULL AS REAL ) / + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ( - + MIN( ( + - col0 ) ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1570
SELECT ( - + MIN ( ( + - col0 ) ) ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1571
SELECT + SUM( ALL col2 ) AS col1, + 21 DIV - + 70 AS col1 FROM tab2
----
121
0

skipif mysql # not compatible
query II rowsort label-1571
SELECT + SUM ( ALL col2 ) AS col1, + 21 / - + 70 AS col1 FROM tab2
----
121
0

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

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

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

query I rowsort
SELECT DISTINCT col1 + 57 FROM tab2 AS cor0
----
108
124
134

query I rowsort
SELECT DISTINCT - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
37
44
80

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

query I rowsort
SELECT 62 + + - 54 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT ALL col1 * 83 + + + col2 * col1 AS col2 FROM tab0 cor0
----
10530
182
1953

query I rowsort
SELECT col2 + - + col2 * - ( - - col0 ) FROM tab1 AS cor0
----
4992
5074
6256

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1581
SELECT COUNT( * ) AS col0, - 86 + + COUNT( * ) - 95 DIV - 26 + 20 FROM tab2 AS cor0
----
3
-60

skipif mysql # not compatible
query II rowsort label-1581
SELECT COUNT ( * ) AS col0, - 86 + + COUNT ( * ) - 95 / - 26 + 20 FROM tab2 AS cor0
----
3
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT CAST( + - col2 AS SIGNED ) * - ( + 15 ) FROM tab1
----
1020
1440
885

skipif mysql # not compatible
query I rowsort label-1582
SELECT CAST ( + - col2 AS INTEGER ) * - ( + 15 ) FROM tab1
----
1020
1440
885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT DISTINCT + - 6 + CAST( + - col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-105
-16
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1583
SELECT DISTINCT + - 6 + CAST ( + - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT + col1 + - - col2 * - - col2 AS col1 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT DISTINCT - + 29 + + col1 FROM tab0 AS cor0
----
-28
-8
52

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

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

query I rowsort
SELECT 26 * + - col2 FROM tab2 AS cor0
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT + 70 * - 11 AS col2 FROM tab2 AS cor0
----
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT - - col0 DIV + 23 AS col1 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-1589
SELECT - - col0 / + 23 AS col1 FROM tab2 AS cor0
----
2
2
3

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

skipif mysql # not compatible
query I rowsort label-1590
SELECT - COUNT ( * ) * - + CAST ( 44 AS INTEGER ) FROM tab0 AS cor0
----
132

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

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

query I rowsort
SELECT + + col0 * - 61 AS col0 FROM tab0 AS cor0
----
-5307
-5917
-915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1593
SELECT - 55 DIV + MAX( ALL + + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT - 55 / + MAX ( ALL + + col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 37 * + col1 - + + col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + col1 / + + col0 / - col2 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + 59 * + + MIN( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
295

skipif mysql # not compatible
query I rowsort label-1595
SELECT + 59 * + + MIN ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
295

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 66 * - - col2 NOT IN ( - col1, col1 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 - col0 + - + 59 * + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 45 - col2 FROM tab2 WHERE + 19 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT - MIN( col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - MIN ( col0 ) FROM tab2 cor0
----
-46

query I rowsort
SELECT ALL - col0 * - - col2 * + 1 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

query I rowsort
SELECT + ( + col2 ) + - 35 AS col1 FROM tab0 AS cor0
----
-25
12
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1605
SELECT - col1, + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-1605
SELECT - col1, + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 10 + - col2 col0 FROM tab0 AS cor0
----
-12
-42
67

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

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

query I rowsort
SELECT - col2 * - 7 FROM tab0 AS cor0
----
329
693
70

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

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

query I rowsort
SELECT ALL + + 36 + col0 + 58 AS col0 FROM tab2 AS cor0
----
140
158
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT DISTINCT - 2 + - col2 * + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-4898
-5017
-6190

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - 2 + - col2 * + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-4898
-5017
-6190

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1614
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * - + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1614
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * - + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT 18 + + + col1 * - CAST ( NULL AS INTEGER ) / 70 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 76 ) FROM tab1, tab1 cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - col2 + - 66 FROM tab2
----
-106
-124
-89

query I rowsort
SELECT ALL col0 + + col2 + 88 FROM tab1
----
232
235
247

query I rowsort
SELECT col1 + + 99 AS col0 FROM tab1 cor0
----
104
113
146

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

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

query I rowsort
SELECT ALL - col1 * - ( 22 ) FROM tab2
----
1122
1474
1694

query I rowsort
SELECT ALL - - 38 AS col0 FROM tab2 cor0
----
38
38
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 * + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1626
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

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

query I rowsort
SELECT col0 * - - col2 * 84 AS col1 FROM tab2
----
215040
365400
88872

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT - SUM( 18 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-1628
SELECT - SUM ( 18 ) FROM tab1
----
-54

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1631
SELECT - AVG ( + ( + CAST( NULL AS DECIMAL ) ) ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1631
SELECT - AVG ( + ( + CAST ( NULL AS REAL ) ) ) col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL MIN( ALL - 13 ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL MIN ( ALL - 13 ) FROM tab2 AS cor0
----
-13

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL col1 + - + col0, 11 AS col1 FROM tab2
----
-8
11
13
11
5
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 / + col2 + col1 + - 62 + - 15 col2 FROM tab0 AS cor0 WHERE NULL >= 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - + ( - + COUNT( * ) ) FROM tab0 AS cor0 WHERE + col1 * + col0 * col1 * - - 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1639
SELECT - + ( - + COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col1 * + col0 * col1 * - - 59 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1640
SELECT * FROM tab0 AS cor0 WHERE ( + - 11 ) * + - col1 * - CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1640
SELECT * FROM tab0 AS cor0 WHERE ( + - 11 ) * + - col1 * - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 * - col1 AS col0, - 80 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-1215
-80
-1827
-80
-97
-80

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT - - COUNT( * ) * 18 AS col0, 3 FROM tab0 AS cor0 WHERE - 31 IS NULL
----
0
3

skipif mysql # not compatible
query II rowsort label-1643
SELECT - - COUNT ( * ) * 18 AS col0, 3 FROM tab0 AS cor0 WHERE - 31 IS NULL
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT - + ( + 69 ) - - COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - + ( + 69 ) - - COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT - SUM( ALL + 5 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT - SUM ( ALL + 5 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col1 AS col0, + col1 * - - ( + 7 ) + col0 * - col2 AS col2 FROM tab1
----
14
-4798
47
-5859
5
-4980

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1648
SELECT - col1 AS col1, + CAST( NULL AS DECIMAL ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-1648
SELECT - col1 AS col1, + CAST ( NULL AS REAL ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1649
SELECT ALL + CAST( - 61 AS SIGNED ) AS col2 FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + CAST ( - 61 AS INTEGER ) AS col2 FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1650
SELECT ALL SUM( ALL - col1 ) * + 0, + 13 * - SUM( - col1 ) AS col1 FROM tab1
----
0
858

skipif mysql # not compatible
query II rowsort label-1650
SELECT ALL SUM ( ALL - col1 ) * + 0, + 13 * - SUM ( - col1 ) AS col1 FROM tab1
----
0
858

query I rowsort
SELECT + col1 * 84 AS col1 FROM tab0
----
1764
6804
84

query I rowsort
SELECT ALL 61 + 63 AS col1 FROM tab0
----
124
124
124

onlyif mysql # DIV for integer division: 
query II rowsort label-1653
SELECT DISTINCT ( + 86 ) + + 88 col0, col0 DIV + 81 * - - 30 AS col2 FROM tab2
----
174
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1653
SELECT DISTINCT ( + 86 ) + + 88 col0, col0 / + 81 * - - 30 AS col2 FROM tab2
----
174
0

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

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

query I rowsort
SELECT DISTINCT + col0 * - col0 * col1 AS col0 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT + + 75 + col1 * col2 * + + col2 * col2 FROM tab0 AS cor0
----
21075
8409738
970374

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT - COUNT( * ) + - + 82 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT - COUNT ( * ) + - + 82 FROM tab0 AS cor0
----
-85

query I rowsort
SELECT - 33 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT + CAST( 24 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif mysql # not compatible
query I rowsort label-1659
SELECT + CAST ( 24 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 34 BETWEEN + + col0 / - col1 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + + col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
23
40
58

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

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

query I rowsort
SELECT - col2 + + col1 - + ( + col1 ) FROM tab2 WHERE NOT + + ( col0 ) IN ( 68, + col2 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT - 24 * + col2 + - 3 + - CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1212
-2380
-264

skipif mysql # not compatible
query I rowsort label-1666
SELECT - 24 * + col2 + - 3 + - CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1212
-2380
-264

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

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

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

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

query I rowsort
SELECT 98 * - col1 FROM tab1
----
-1372
-4606
-490

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT - MAX( + - 81 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1671
SELECT - MAX ( + - 81 ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT DISTINCT - 7 * + - col1 AS col2 FROM tab2 AS cor0
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - + ( - COUNT( * ) ) + SUM( + col0 ) * - - 58 AS col2 FROM tab1 AS cor0
----
13169

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - + ( - COUNT ( * ) ) + SUM ( + col0 ) * - - 58 AS col2 FROM tab1 AS cor0
----
13169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT - - CAST( + 20 AS SIGNED ) * + col1 - - col0 FROM tab2 cor0
----
1066
1415
1604

skipif mysql # not compatible
query I rowsort label-1674
SELECT - - CAST ( + 20 AS INTEGER ) * + col1 - - col0 FROM tab2 cor0
----
1066
1415
1604

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col0 / + + 23
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT ALL 93 DIV + + 81 + + col2 DIV + 32 + - col2 AS col1 FROM tab0 cor0
----
-45
-9
-95

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL 93 / + + 81 + + col2 / + 32 + - col2 AS col1 FROM tab0 cor0
----
-45
-9
-95

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

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

query I rowsort
SELECT DISTINCT - + 60 AS col2 FROM tab0 WHERE NOT - col1 * - col0 * - col1 * col0 IS NULL
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT DISTINCT 37 - + CAST( - 19 AS SIGNED ) AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT 37 - + CAST ( - 19 AS INTEGER ) AS col2 FROM tab0
----
56

query I rowsort
SELECT - col1 * + + 51 FROM tab1
----
-2397
-255
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1682
SELECT - 70 * ( - 53 ) * - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT - 70 * ( - 53 ) * - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT ALL + 98 DIV - + 82 col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1683
SELECT ALL + 98 / - + 82 col0 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1684
SELECT ALL - ( + 21 ) DIV + col1 + - col0, col0 AS col0 FROM tab0
----
-118
97
-15
15
-88
87

skipif mysql # not compatible
query II rowsort label-1684
SELECT ALL - ( + 21 ) / + col1 + - col0, col0 AS col0 FROM tab0
----
-118
97
-15
15
-88
87

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

query I rowsort
SELECT AVG ( 86 ) FROM tab1 WHERE NOT NULL <= + ( + 83 )
----
NULL

query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab0 cor0
----
89

query I rowsort
SELECT ALL 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
96
96
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 5 > + 66 * - col2
----

query I rowsort
SELECT + col1 * - col1 - + col1 AS col2 FROM tab1 AS cor0
----
-210
-2256
-30

query I rowsort
SELECT + 9 * - - ( col0 ) AS col1 FROM tab0
----
135
783
873

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

skipif mysql # not compatible
query I rowsort label-1692
SELECT - COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT 14 DIV ( MAX( ALL col0 ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT 14 / ( MAX ( ALL col0 ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT + ( + 97 ) AS col1 FROM tab1
----
97
97
97

query I rowsort
SELECT ALL + 64 * - - ( 70 ) FROM tab0
----
4480
4480
4480

query I rowsort
SELECT ALL col2 * - 75 + 98 + - + 84 * 86 FROM tab2
----
-10126
-11476
-8851

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL 18 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL 18 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
21

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1699
SELECT + + CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + + MAX( 17 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) < + col2 * col2 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT + + MAX ( 17 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) < + col2 * col2 - + col1
----
NULL

query I rowsort
SELECT col0 * col0 + + 17 * + col1 AS col0 FROM tab1 AS cor0
----
2839
7310
9080

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + COUNT( * ) + + 88 AS col0 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1702
SELECT + COUNT ( * ) + + 88 AS col0 FROM tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT - col0 * + + 13 + - col2 FROM tab2 AS cor0
----
-1033
-621
-872

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / 99 IN ( + col2, 13, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1705
SELECT CAST( + SUM( ALL col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1705
SELECT CAST ( + SUM ( ALL col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
66

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1708
SELECT + CAST( NULL AS DECIMAL ) - 32, col0 * col1 FROM tab2 WHERE - col0 + + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1708
SELECT + CAST ( NULL AS REAL ) - 32, col0 * col1 FROM tab2 WHERE - col0 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 * col0 <= - col1
----
3

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 * col0 <= - col1
----
3

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

query I rowsort
SELECT + 54 * + 47 * + 87 - col2 + + - col0 AS col2 FROM tab0 cor0
----
220610
220709
220744

query I rowsort
SELECT + 10 * - 84 AS col1 FROM tab1 AS cor0
----
-840
-840
-840

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

skipif mysql # not compatible
query I rowsort label-1713
SELECT CAST ( - 89 AS INTEGER ) FROM tab0 cor0
----
-89
-89
-89

query II rowsort
SELECT ALL + ( + col0 ) * - 53, col1 AS col1 FROM tab1 AS cor0
----
-2703
14
-4505
5
-4823
47

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT col1 + col1 * + ( - 42 ) NOT BETWEEN col2 AND + col1 * - col0 + col0 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT MIN( DISTINCT 38 ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-1716
SELECT MIN ( DISTINCT 38 ) FROM tab1
----
38

query I rowsort
SELECT ALL col1 + 5 * - 4 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
31
47
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 13 + 98
----

query I rowsort
SELECT DISTINCT 28 + col2 * - col0 AS col2 FROM tab1
----
-4868
-4987
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL 84 + + COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL 84 + + COUNT ( * ) FROM tab1
----
87

query I rowsort
SELECT + 77 - col2 FROM tab0 WHERE ( - ( - col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT 51 * - COUNT( * ) FROM tab1 WHERE - col0 BETWEEN 46 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1722
SELECT 51 * - COUNT ( * ) FROM tab1 WHERE - col0 BETWEEN 46 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT MAX( DISTINCT 11 ) col2 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1723
SELECT MAX ( DISTINCT 11 ) col2 FROM tab1
----
11

query I rowsort
SELECT DISTINCT - col0 * 85 AS col1 FROM tab2
----
-3910
-5440
-6375

query I rowsort
SELECT + col1 - 40 AS col0 FROM tab1
----
-26
-35
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT ALL - 34 / 9 - + CAST( NULL AS SIGNED ) * + 81 FROM tab0 WHERE NOT ( 0 - col2 ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND col2
----

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - 34 / 9 - + CAST ( NULL AS INTEGER ) * + 81 FROM tab0 WHERE NOT ( 0 - col2 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND col2
----

query I rowsort
SELECT col2 + ( + col2 ) * + col2 FROM tab0
----
110
2256
9900

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) >= - col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + SUM( ( - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + SUM ( ( - col1 ) ) FROM tab1
----
-66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT col0 DIV + 10 + col1 FROM tab1
----
13
19
56

skipif mysql # not compatible
query I rowsort label-1731
SELECT col0 / + 10 + col1 FROM tab1
----
13
19
56

query I rowsort
SELECT ALL + ( + col0 ) + - col0 * + 10 AS col1 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT DISTINCT 72 + - 15 AS col0 FROM tab0 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 17
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> + 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT + 97 + COUNT( * ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT + 97 + COUNT ( * ) FROM tab0 AS cor0
----
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * + ( 14 ) col0 FROM tab2 AS cor0
----
-593
-819
-983

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT DISTINCT ( - 23 ) + + col0 DIV + col0 AS col2 FROM tab1 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT ( - 23 ) + + col0 / + col0 AS col2 FROM tab1 cor0
----
-22

query I rowsort
SELECT 39 + - 43 FROM tab2 AS cor0
----
-4
-4
-4

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 3 + - 79 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + + col2 col0 FROM tab1 cor0 WHERE - col0 * col2 IS NOT NULL
----
4992
5074
6256

query I rowsort
SELECT ALL col1 + + 38 AS col2 FROM tab0 cor0
----
119
39
59

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

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

query I rowsort
SELECT col2 * + 98 AS col0 FROM tab1 WHERE ( - 76 ) IN ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL - SUM( 24 ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL - SUM ( 24 ) AS col2 FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT 72 - COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1748
SELECT 72 - COUNT ( * ) FROM tab1 AS cor0
----
69

query I rowsort
SELECT - ( 29 ) - + col2 FROM tab0 cor0
----
-128
-39
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL - COUNT( * ) + + ( 49 ) col0 FROM tab0 AS cor0
----
46

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

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

query I rowsort
SELECT ALL ( + col0 ) * 65 - - col2 AS col1 FROM tab2 AS cor0
----
3013
4200
4933

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 75 + 55 / 73 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT DISTINCT - 64 DIV col0 + 39 * col0 AS col2 FROM tab2 AS cor0
----
1793
2495
2925

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - 64 / col0 + 39 * col0 AS col2 FROM tab2 AS cor0
----
1793
2495
2925

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

query I rowsort
SELECT - AVG ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + 88 * + col0 )
----
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - col2 * col2 - + 78 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT + 97 * COUNT ( * ) FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT - MIN( col2 ) AS col2 FROM tab2 WHERE NULL < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - MIN ( col2 ) AS col2 FROM tab2 WHERE NULL < - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 44 >= col1 - 84
----
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1762
SELECT SUM( + - CAST( col2 AS SIGNED ) ) * - 98 FROM tab2 AS cor0
----
11858

skipif mysql # not compatible
query I rowsort label-1762
SELECT SUM ( + - CAST ( col2 AS INTEGER ) ) * - 98 FROM tab2 AS cor0
----
11858

query I rowsort
SELECT 58 FROM tab0 AS cor0 WHERE NOT ( col1 ) < ( col2 )
----
58
58

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 81 BETWEEN - col2 * - 6 AND ( + ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 43 )
----

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

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

query I rowsort
SELECT ALL - + 0 * - - 90 - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 69 * - col2 <> ( NULL )
----

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

query II rowsort
SELECT ALL - 61 AS col1, col2 FROM tab2
----
-61
23
-61
40
-61
58

onlyif mysql # DIV for integer division: 
query II rowsort label-1773
SELECT - col2 AS col2, col1 DIV 65 DIV ( 55 ) FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-1773
SELECT - col2 AS col2, col1 / 65 / ( 55 ) FROM tab1
----
-59
0
-68
0
-96
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > ( NULL )
----

query I rowsort
SELECT ALL col2 * - col0 - - + 94 * - col2 + - ( 40 ) FROM tab0 AS cor0
----
-1850
-18949
-5163

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1777
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < - 80
----

skipif mysql # not compatible
query III rowsort label-1777
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < - 80
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1779
SELECT * FROM tab1 AS cor0 WHERE NOT 96 + - col1 * - col0 BETWEEN ( + 59 + CAST( NULL AS SIGNED ) * + 94 ) AND 29 * col2
----
91
47
68

skipif mysql # not compatible
query III rowsort label-1779
SELECT * FROM tab1 AS cor0 WHERE NOT 96 + - col1 * - col0 BETWEEN ( + 59 + CAST ( NULL AS INTEGER ) * + 94 ) AND 29 * col2
----
91
47
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( ( - 19 ) * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT DISTINCT + 54 DIV + - col0 + + 48 + col0 FROM tab2 AS cor0
----
112
123
93

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + 54 / + - col0 + + 48 + col0 FROM tab2 AS cor0
----
112
123
93

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

skipif mysql # not compatible
query II rowsort label-1782
SELECT DISTINCT COUNT ( * ), + 56 AS col1 FROM tab0 cor0
----
3
56

query I rowsort
SELECT ALL 28 + col2 AS col2 FROM tab1 cor0
----
124
87
96

query I rowsort
SELECT col1 * - + 24 * col1 AS col2 FROM tab2
----
-107736
-142296
-62424

query I rowsort
SELECT + col2 * - 42 FROM tab1
----
-2478
-2856
-4032

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT + col1 + - + 16 DIV - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + col1 + - + 16 / - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - 45 * + 79 AS col2 FROM tab2 cor0
----
-3555
-3555
-3555

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( col2 ) = + col2 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-1792
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( col2 ) = + col2 * - col0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 32 * - col0 * + 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT ALL 26 AS col2 FROM tab1 cor0 WHERE NOT col1 - + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL 26 AS col2 FROM tab1 cor0 WHERE NOT col1 - + CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL - col1 - - - col2 + + - col1 * col0 * + + col2 FROM tab0
----
-18301
-57233
-9703

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT - COUNT( * ) + + 25 AS col1 FROM tab0 WHERE NOT + - 17 > - col2
----
24

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - COUNT ( * ) + + 25 AS col1 FROM tab0 WHERE NOT + - 17 > - col2
----
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1798
SELECT - 8 AS col1, 90 DIV col2 FROM tab2 cor0
----
-8
1
-8
2
-8
3

skipif mysql # not compatible
query II rowsort label-1798
SELECT - 8 AS col1, 90 / col2 FROM tab2 cor0
----
-8
1
-8
2
-8
3

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

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

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

query I rowsort
SELECT col1 * + col0 FROM tab1 WHERE NOT + 22 * - col1 + col2 = 90
----
425
4277
714

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + + 31 * COUNT( * ) * 46 AS col1 FROM tab2 AS cor0
----
4278

skipif mysql # not compatible
query I rowsort label-1805
SELECT + + 31 * COUNT ( * ) * 46 AS col1 FROM tab2 AS cor0
----
4278

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT ALL 66 AS col0 FROM tab0 cor0 WHERE 13 - + ( + - col2 ) - CAST( NULL AS SIGNED ) + + col1 * + 63 * ( - 88 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL 66 AS col0 FROM tab0 cor0 WHERE 13 - + ( + - col2 ) - CAST ( NULL AS INTEGER ) + + col1 * + 63 * ( - 88 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT + 60 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + + MIN( + col1 ) col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1810
SELECT + + MIN ( + col1 ) col0 FROM tab1 cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + 15 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL - ( COUNT( * ) ) + - 49 AS col0 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - ( COUNT ( * ) ) + - 49 AS col0 FROM tab2
----
-52

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + + col1 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL - 57 + + 28 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - 57 + + 28 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL COUNT( * ) + + 34 + + COUNT( * ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL COUNT ( * ) + + 34 + + COUNT ( * ) FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL - 68 + + - 27 * COUNT( ALL - col2 ) FROM tab0 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - 68 + + - 27 * COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
-149

query I rowsort
SELECT - col2 * + + 13 FROM tab0 AS cor0
----
-1287
-130
-611

query I rowsort
SELECT ( - col0 ) * + + col0 + 34 AS col0 FROM tab2 AS cor0
----
-2082
-4062
-5591

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NOT ( NOT 20 IS NOT NULL ) )
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1820
SELECT ALL * FROM tab0 WHERE NOT + col1 - + CAST( + col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1820
SELECT ALL * FROM tab0 WHERE NOT + col1 - + CAST ( + col2 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + COUNT( * ) FROM tab1 WHERE + + 52 + - 51 BETWEEN - 34 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT + COUNT ( * ) FROM tab1 WHERE + + 52 + - 51 BETWEEN - 34 AND - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 65 + col2 NOT BETWEEN - 61 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col2 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 + - + col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 * ( + 69 ) + - - col2 + + col0 AS col2 FROM tab2 AS cor0
----
3588
4756
5417

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IN ( 98 * 36 + + col0 + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT - 17 AS col2, COUNT( * ) FROM tab2 AS cor0
----
-17
3

skipif mysql # not compatible
query II rowsort label-1828
SELECT - 17 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT + + ( + + 96 ) * - - col1 * - + ( - + col1 ) - 81 + - + 28 DIV + col2 col2 FROM tab1 AS cor0
----
18735
211983
2319

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1829
SELECT DISTINCT + + ( + + 96 ) * - - col1 * - + ( - + col1 ) - 81 + - + 28 / + col2 col2 FROM tab1 AS cor0
----
18735
211983
2319

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 83 ) < 12 * - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1831
SELECT DISTINCT * FROM tab1 WHERE + 73 / + 57 * - CAST( NULL AS DECIMAL ) - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1831
SELECT DISTINCT * FROM tab1 WHERE + 73 / + 57 * - CAST ( NULL AS REAL ) - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1 * - + col2, col2 FROM tab2
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT + 73 * - ( col0 ) - 83 FROM tab2
----
-3441
-4755
-5558

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT col0 DIV - ( - - 88 ) AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT col0 / - ( - - 88 ) AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col2 * + + 22 * - col2 AS col2 FROM tab2 AS cor0
----
11638
35200
74008

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT + + SUM( ALL + 96 ) FROM tab2 AS cor0 WHERE NOT + ( - 45 ) * col1 + - + col0 + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT + + SUM ( ALL + 96 ) FROM tab2 AS cor0 WHERE NOT + ( - 45 ) * col1 + - + col0 + col1 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 84 BETWEEN + col0 AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL + MAX( 94 ) AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + MAX ( 94 ) AS col0 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT SUM( ALL - ( + col2 ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-1840
SELECT SUM ( ALL - ( + col2 ) ) AS col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + 31 * COUNT( DISTINCT - 18 ) AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-1841
SELECT + 31 * COUNT ( DISTINCT - 18 ) AS col1 FROM tab1
----
31

query I rowsort
SELECT + 16 * col0 FROM tab1
----
1360
1456
816

query II rowsort
SELECT col0 AS col2, 41 * col1 FROM tab2
----
46
2091
64
3157
75
2747

query I rowsort
SELECT col1 + - 57 + - col2 + + + 32 FROM tab0
----
-123
-14
9

query I rowsort
SELECT DISTINCT + + ( - ( + + 64 ) ) + + col2 FROM tab2 AS cor0
----
-24
-41
-6

query I rowsort
SELECT ALL col2 * 67 + + + col0 + - - col2 AS col2 FROM tab2 cor0
----
1610
2784
4019

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT DISTINCT 76 + + - 85 - 4 * - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT 76 + + - 85 - 4 * - COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT + + SUM( - - col0 ) + + + ( 42 ) FROM tab1 AS cor0
----
269

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + + SUM ( - - col0 ) + + + ( 42 ) FROM tab1 AS cor0
----
269

onlyif mysql # DIV for integer division: 
query II rowsort label-1849
SELECT DISTINCT - col0 + col0 DIV col1 + - - col1 col1, + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-7
67
13
77
5
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1849
SELECT DISTINCT - col0 + col0 / col1 + - - col1 col1, + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-7
67
13
77
5
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1850
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col2 + + - col1 + ( + - 17 ) * - col0 > 73 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1850
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col2 + + - col1 + ( + - 17 ) * - col0 > 73 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 98 + + col0 AS col0 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT 56 * - 13 FROM tab1 AS cor0
----
-728
-728
-728

query I rowsort
SELECT + + col2 * + col1 * col2 * - 73 FROM tab2 AS cor0
----
-16453324
-1969467
-8993600

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT + 65 * + MAX( col2 ) FROM tab0 AS cor0
----
6435

skipif mysql # not compatible
query I rowsort label-1854
SELECT + 65 * + MAX ( col2 ) FROM tab0 AS cor0
----
6435

query I rowsort
SELECT DISTINCT + 69 - 98 + col1 AS col1 FROM tab2
----
22
38
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1856
SELECT * FROM tab0 WHERE NULL IN ( + col2 - - CAST( NULL AS SIGNED ) + - + col2, + col2 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-1856
SELECT * FROM tab0 WHERE NULL IN ( + col2 - - CAST ( NULL AS INTEGER ) + - + col2, + col2 + + col1 )
----

query I rowsort
SELECT + col1 - + ( - - col2 ) AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT - 52 DIV + col1 + - + col0 * - + col2 FROM tab2 AS cor0
----
1057
2560
4350

skipif mysql # not compatible
query I rowsort label-1859
SELECT - 52 / + col1 + - + col0 * - + col2 FROM tab2 AS cor0
----
1057
2560
4350

query I rowsort
SELECT - 34 + 68 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT 72 NOT IN ( col0 / + + col1, - 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL + SUM( DISTINCT + 12 ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL + SUM ( DISTINCT + 12 ) AS col0 FROM tab2
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( 15 ) AND - 78
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1865
SELECT + + col0, CAST( + col1 AS SIGNED ) DIV + - col0 + col0 + + col1 - + 36 col1 FROM tab0 AS cor0
----
15
55
87
72
97
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1865
SELECT + + col0, CAST ( + col1 AS INTEGER ) / + - col0 + col0 + + col1 - + 36 col1 FROM tab0 AS cor0
----
15
55
87
72
97
62

query I rowsort
SELECT DISTINCT - 27 * + + col1 FROM tab1 AS cor0
----
-1269
-135
-378

query II rowsort
SELECT DISTINCT - 20 AS col0, + ( + + col1 ) + - + col2 FROM tab1 AS cor0
----
-20
-21
-20
-54
-20
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - + SUM( DISTINCT 97 ) AS col2 FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - + SUM ( DISTINCT 97 ) AS col2 FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + COUNT( * ) * - COUNT( + + 60 ) * + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1869
SELECT + COUNT ( * ) * - COUNT ( + + 60 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT + - ( + 6 ) AS col2 FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT - + col2 DIV col1 col2 FROM tab2 AS cor0 WHERE NOT 66 < + + col0
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1871
SELECT - + col2 / col1 col2 FROM tab2 AS cor0 WHERE NOT 66 < + + col0
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT ALL + 83 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + 83 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 36 * col2 AS col1 FROM tab1
----
2124
2448
3456

onlyif mysql # DIV for integer division: 
query II rowsort label-1874
SELECT ALL - col0 DIV col1 AS col2, - col1 * + ( - col0 ) AS col2 FROM tab1
----
-1
4277
-17
425
-3
714

skipif mysql # not compatible
query II rowsort label-1874
SELECT ALL - col0 / col1 AS col2, - col1 * + ( - col0 ) AS col2 FROM tab1
----
-1
4277
-17
425
-3
714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1875
SELECT 17 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT 17 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1876
SELECT - + AVG ( col1 ), + 77 - 77 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT + 71 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1876
SELECT - + AVG ( col1 ), + 77 - 77 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT + 71 IS NOT NULL
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 82 * + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + 40 + - COUNT( + ( - col0 ) ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1879
SELECT + 40 + - COUNT ( + ( - col0 ) ) FROM tab0 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL + 2 + - col0 AS col1 FROM tab0 AS cor0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + COUNT( + + 89 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1882
SELECT + COUNT ( + + 89 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + 13 + - - col0 FROM tab2 AS cor0
----
59
77
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT ALL + col1 * - col1 + col1 DIV col1 FROM tab0 AS cor0
----
-440
-6560
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL + col1 * - col1 + col1 / col1 FROM tab0 AS cor0
----
-440
-6560
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL - COUNT( * ) + + 52 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - COUNT ( * ) + + 52 FROM tab2 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1886
SELECT DISTINCT col2 * + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE + 6 + 8 * - 97 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT col2 * + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE + 6 + 8 * - 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + 17 FROM tab1 AS cor0
----
102
108
68

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + 17 FROM tab1 AS cor0
----
102
108
68

query I rowsort
SELECT DISTINCT col0 * + + 57 * + - 33 FROM tab2
----
-120384
-141075
-86526

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT 8 + - MAX( DISTINCT + col1 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-1889
SELECT 8 + - MAX ( DISTINCT + col1 ) FROM tab2
----
-69

query III rowsort
SELECT * FROM tab2 WHERE - 86 + + + col0 IN ( + col0, col1, + + col1, + - col1 )
----

query I rowsort
SELECT ( 26 ) AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
26
26
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT - MIN( + 77 ), - MAX( col2 ) + + MIN( ALL + - col1 ) AS col2 FROM tab1
----
-77
-143

skipif mysql # not compatible
query II rowsort label-1892
SELECT - MIN ( + 77 ), - MAX ( col2 ) + + MIN ( ALL + - col1 ) AS col2 FROM tab1
----
-77
-143

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1893
SELECT ALL * FROM tab2 WHERE + ( - 75 ) > + CAST( + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1893
SELECT ALL * FROM tab2 WHERE + ( - 75 ) > + CAST ( + col2 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col0 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 NOT BETWEEN - + 20 AND NULL
----

query II rowsort
SELECT 68, - 65 * + col2 AS col0 FROM tab1 AS cor0
----
68
-3835
68
-4420
68
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 * + 98 col2, col0 FROM tab0 AS cor0
----
-4606
15
-9702
97
-980
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL COUNT( * ) * 27 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL COUNT ( * ) * 27 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT 49 * - COUNT( * ) - - - COUNT( * ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT 49 * - COUNT ( * ) - - - COUNT ( * ) FROM tab1 AS cor0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1900
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - col0 + + CAST( + - col2 AS SIGNED ) - col2 NOT IN ( 53 )
----

skipif mysql # not compatible
query III rowsort label-1900
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - col0 + + CAST ( + - col2 AS INTEGER ) - col2 NOT IN ( 53 )
----

query I rowsort
SELECT + 53 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1903
SELECT DISTINCT MAX( DISTINCT + col2 ) DIV - COUNT( * ) AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT MAX ( DISTINCT + col2 ) / - COUNT ( * ) AS col1 FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT + MIN( ALL 59 ) AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-1904
SELECT + MIN ( ALL 59 ) AS col2 FROM tab0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT col2 DIV - + 97 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT col2 / - + 97 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 90
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 16 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1908
SELECT - 81 AS col1, COUNT( * ) + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-1908
SELECT - 81 AS col1, COUNT ( * ) + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab0
----
-81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + col0 * - 3 AS col0 FROM tab0
----
1
-291
21
-261
81
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1910
SELECT - col2, - CAST( NULL AS SIGNED ) + 61 + + col2 / col0 AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1910
SELECT - col2, - CAST ( NULL AS INTEGER ) + 61 + + col2 / col0 AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( - col1 ) col0 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT 64 + - COUNT( * ) FROM tab1 cor0
----
61

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT 64 + - COUNT ( * ) FROM tab1 cor0
----
61

query I rowsort
SELECT DISTINCT 67 + + col2 FROM tab1 cor0
----
126
135
163

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT - 4 + - col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 80 + - 67 * + 24 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL ( + ( 27 ) ) * + + 32 AS col1 FROM tab1 AS cor0 WHERE ( ( + 94 ) IS NOT NULL )
----
864
864
864

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1917
SELECT * FROM tab2 AS cor0 WHERE + 56 * 75 + + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1917
SELECT * FROM tab2 AS cor0 WHERE + 56 * 75 + + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1918
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * col0 + - col0 - - col1 + - col1 * - + col0 * 53 AS col2, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-1918
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col0 + - col0 - - col1 + - col1 * - + col0 * 53 AS col2, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT ALL + ( + ( + 50 ) ) - - - col2 + - + col2 + + + col0 FROM tab1 AS cor0
----
-91
17
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT - COUNT( * ) * + + MIN( DISTINCT + + 14 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1920
SELECT - COUNT ( * ) * + + MIN ( DISTINCT + + 14 ) FROM tab1
----
-42

query I rowsort
SELECT ALL 49 - - 25 AS col0 FROM tab0
----
74
74
74

query I rowsort
SELECT DISTINCT + + 3 * 84 + + ( + col0 ) FROM tab2 AS cor0
----
298
316
327

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( + col0 ) * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1924
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( + col0 ) * + col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 17 + - 99 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - - col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1927
SELECT * FROM tab2 cor0 WHERE NOT CAST( 86 AS DECIMAL ) * - col0 NOT BETWEEN - - col2 AND col2
----

skipif mysql # not compatible
query III rowsort label-1927
SELECT * FROM tab2 cor0 WHERE NOT CAST ( 86 AS REAL ) * - col0 NOT BETWEEN - - col2 AND col2
----

query II rowsort
SELECT + - 78, col0 AS col0 FROM tab2 AS cor0
----
-78
46
-78
64
-78
75

query II rowsort
SELECT + col0, + col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( - col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT MAX( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1930
SELECT MAX ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - 18 * + - col0 FROM tab0 AS cor0
----
1566
1746
270

query I rowsort
SELECT + - 28 * - - col2 FROM tab0 AS cor0
----
-1316
-2772
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT + - SUM( ALL - 71 ) FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + - SUM ( ALL - 71 ) FROM tab1 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1934
SELECT MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1935
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT + ( - 33 ) * + - 72 * - col0, col2 AS col0 FROM tab0 cor0
----
-206712
10
-230472
99
-35640
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1938
SELECT COUNT( * ) DIV ( + + 22 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1938
SELECT COUNT ( * ) / ( + + 22 ) FROM tab0
----
0

query II rowsort
SELECT DISTINCT col2 * + + col1 AS col2, ( + - col2 ) * col0 + col1 FROM tab2
----
1173
-1007
3080
-2483
3886
-4283

query III rowsort
SELECT * FROM tab0 WHERE NOT - 8 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 BETWEEN - col1 * 77 * + + col0 AND NULL
----

query I rowsort
SELECT col1 * ( + col0 ) * + - col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT DISTINCT - ( col1 ) + - + col1 DIV - 59 FROM tab0
----
-1
-21
-80

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - ( col1 ) + - + col1 / - 59 FROM tab0
----
-1
-21
-80

query II rowsort
SELECT col1 + - col0, - 43 AS col2 FROM tab1
----
-37
-43
-44
-43
-80
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + COUNT( * ) + + MAX( DISTINCT - 17 ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-1945
SELECT + COUNT ( * ) + + MAX ( DISTINCT - 17 ) FROM tab2
----
-14

query I rowsort
SELECT ALL + 37 + col1 FROM tab2 AS cor0
----
104
114
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT COUNT( * ) + SUM( + 56 ) col0 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1947
SELECT COUNT ( * ) + SUM ( + 56 ) col0 FROM tab1 AS cor0
----
171

query I rowsort
SELECT 5 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT - col0 + - col2 + - col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-104
-132
-69

skipif mysql # not compatible
query I rowsort label-1949
SELECT - col0 + - col2 + - col0 / - col1 AS col1 FROM tab2 AS cor0
----
-104
-132
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1950
SELECT ALL + 68 * + COUNT( * ) AS col2, 39 + + MIN( + col2 ) FROM tab2 AS cor0
----
204
62

skipif mysql # not compatible
query II rowsort label-1950
SELECT ALL + 68 * + COUNT ( * ) AS col2, 39 + + MIN ( + col2 ) FROM tab2 AS cor0
----
204
62

query I rowsort
SELECT - + 4 + - + col1 FROM tab1 AS cor0
----
-18
-51
-9

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 + + 58 * + col2 * - - 42 NOT BETWEEN ( 59 + - col1 ) AND - 10
----

query I rowsort
SELECT ALL + ( + 15 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1955
SELECT - CAST( - 23 AS SIGNED ) DIV + col1 + - + col2 * - + col1 AS col2 FROM tab0
----
122
211
3807

skipif mysql # not compatible
query I rowsort label-1955
SELECT - CAST ( - 23 AS INTEGER ) / + col1 + - + col2 * - + col1 AS col2 FROM tab0
----
122
211
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT - col1 - + ( - col2 ) + col2 + + + col1 + - col1 + + + CAST( NULL AS SIGNED ) * - col1 * 18 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT - col1 - + ( - col2 ) + col2 + + + col1 + - col1 + + + CAST ( NULL AS INTEGER ) * - col1 * 18 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0 + - + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 34 + 19 + - - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col1 * col2 * - 96 * - + 97 + - 94 FROM tab1 AS cor0
----
12515234
2746946
29761058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1960
SELECT ALL + CAST( - - ( + + COUNT( * ) ) AS SIGNED ) - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + CAST ( - - ( + + COUNT ( * ) ) AS INTEGER ) - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT col1 + col2 * - col2 AS col1, col1 * col2 AS col2 FROM tab2 AS cor0
----
-1523
3080
-3297
3886
-478
1173

query I rowsort
SELECT DISTINCT + col2 * col1 + 10 FROM tab1 AS cor0
----
1354
305
3206

query I rowsort
SELECT DISTINCT 94 - + col1 FROM tab0 cor0
----
13
73
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT - SUM( + col2 ) * 82 AS col1 FROM tab0
----
-12792

skipif mysql # not compatible
query I rowsort label-1964
SELECT - SUM ( + col2 ) * 82 AS col1 FROM tab0
----
-12792

query I rowsort
SELECT + + col0 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + SUM( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1967
SELECT + SUM ( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT - - ( COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - - ( COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT + col2 * - - 98 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1969
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT + col2 * - - 98 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT - - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL - + 94 AS col0 FROM tab2 AS cor0
----
-94
-94
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 1 * + ( + 56 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + + SUM( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1973
SELECT + + SUM ( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL 80 AS col0, 81 + 1 FROM tab1
----
80
82
80
82
80
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT + col0 * - col2 DIV col2 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1975
SELECT + col0 * - col2 / col2 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT DISTINCT ( + - ( CAST( col2 AS SIGNED ) ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT ( + - ( CAST ( col2 AS INTEGER ) ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col0 AS col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col2 + - - col1 AS col2, 54 AS col0 FROM tab0 AS cor0
----
-98
54
11
54
34
54

query I rowsort
SELECT ALL + - ( - - col1 ) + + 91 FROM tab2 cor0
----
14
24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT - COUNT( * ) + - 76 AS col1 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT - COUNT ( * ) + - 76 AS col1 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT DISTINCT col2 * - col1 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
-12615680
-21858750
-2482068

query I rowsort
SELECT - + 38 + col2 * + - 47 * + + 59 + - col1 FROM tab1 AS cor0
----
-163650
-188649
-266260

query II rowsort
SELECT ALL + col1 * + + 95, + 39 + + - col2 + - col0 AS col2 FROM tab0
----
1995
-58
7695
-23
95
-157

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 75 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN 63 AND + col0
----
87
21
10
97
1
99

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - 10 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT col2 * + - 2 AS col1 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT ALL 57 * + col0 AS col1 FROM tab0
----
4959
5529
855

query II rowsort
SELECT col1 AS col0, 38 * 56 AS col1 FROM tab2
----
51
2128
67
2128
77
2128

query II rowsort
SELECT DISTINCT col0 AS col0, 70 AS col2 FROM tab1
----
51
70
85
70
91
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT ( COUNT( * ) ) AS col0 FROM tab0 WHERE NOT + col0 * - col0 BETWEEN + + CAST( NULL AS SIGNED ) * 53 AND + - col0 * + - col2 - col2
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT + col0 * - col0 BETWEEN + + CAST ( NULL AS INTEGER ) * 53 AND + - col0 * + - col2 - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 73 * col1 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL - - ( + COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1995
SELECT ALL - - ( + COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 3 * + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / col2 >= 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + - 25 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 16 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2000
SELECT CAST( NULL AS DECIMAL ) + + - col1 col2 FROM tab1 cor0 WHERE NOT ( col1 + + 0 * + - 65 * - + 2 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2000
SELECT CAST ( NULL AS REAL ) + + - col1 col2 FROM tab1 cor0 WHERE NOT ( col1 + + 0 * + - 65 * - + 2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 96 col2 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2002
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NOT 22 * + CAST( col1 AS DECIMAL ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NOT 22 * + CAST ( col1 AS REAL ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + - 82 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL <> - 2 - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 * - 33 + + - 28 AS col1 FROM tab2
----
1292
1886
731

query I rowsort
SELECT - col1 + + 82 * - + col1 AS col2 FROM tab0
----
-1743
-6723
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 48 * - col2 + col2 col2, + 28 AS col2 FROM tab2
----
-1081
28
-1880
28
-2726
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 79 + col1 col1 FROM tab2
----
-3978
-5226
-6006

query I rowsort
SELECT ALL - col2 * - col0 - + 77 AS col2 FROM tab0
----
628
793
9526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT + col1 * col0 + - 83 FROM tab0 AS cor0
----
1132
14
1744

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + ( 94 ) * + 62 + + 90 = - 39 * + col1 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT ALL + CAST( + col0 AS SIGNED ) * + CAST( NULL AS SIGNED ) / - col1 * - ( 23 ) / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + CAST ( + col0 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / - col1 * - ( 23 ) / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col2 * ( + - col2 ) col0 FROM tab1 WHERE NULL IS NULL
----
-3476
-4577
-9202

query I rowsort
SELECT col2 * - - 12 AS col0 FROM tab2
----
276
480
696

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 42 + - - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - 15 FROM tab0
----
1305
1455
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT + MAX( + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2019
SELECT + MAX ( + col1 ) AS col2 FROM tab1
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col2 < - - col0
----

query II rowsort
SELECT ALL + + 19 * + + 93 * + - col0, col1 FROM tab2 AS cor0
----
-113088
77
-132525
67
-81282
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL MAX( + 77 ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL MAX ( + 77 ) FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT - + COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2023
SELECT - + COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query II rowsort
SELECT ALL + col1 AS col1, + col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + 20 * - COUNT( * ) + 0 AS col1 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-2026
SELECT + 20 * - COUNT ( * ) + 0 AS col1 FROM tab2
----
-60

query I rowsort
SELECT col0 + - ( 53 ) * - 50 AS col0 FROM tab1
----
2701
2735
2741

query I rowsort
SELECT DISTINCT 24 * - col1 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1128
-120
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT DISTINCT CAST( + 93 AS SIGNED ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT CAST ( + 93 AS INTEGER ) FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL 15 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2032
SELECT ALL - COUNT( * ) + + 21 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - COUNT ( * ) + + 21 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + - col2 <> + - col0 * + col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col1 + col1 > + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col2 * + + 86 col0 FROM tab1
----
421056
431290
532168

query I rowsort
SELECT DISTINCT 67 + - + 27 / - 29 + - 46 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 71 * col2 AS col1 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT - ( + col0 ) DIV + 76 AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT - ( + col0 ) / + 76 AS col2 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT + MAX( ALL - ( 73 ) ) AS col2 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT + MAX ( ALL - ( 73 ) ) AS col2 FROM tab2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2041
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2, CAST( NULL AS SIGNED ) * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-2041
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2, CAST ( NULL AS INTEGER ) * - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT ALL col2 * col2 DIV - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL col2 * col2 / - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2043
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) > - col2
----

skipif mysql # not compatible
query III rowsort label-2043
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) > - col2
----

query I rowsort
SELECT DISTINCT ( - + col2 ) + + ( ( + 90 ) ) AS col2 FROM tab1
----
-6
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - ( - MAX( col2 ) ) * - + COUNT( ALL + col0 ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-2045
SELECT - ( - MAX ( col2 ) ) * - + COUNT ( ALL + col0 ) FROM tab0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL - COUNT( * ) + - + 22 FROM tab0 WHERE NOT NULL < NULL
----
-22

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - COUNT ( * ) + - + 22 FROM tab0 WHERE NOT NULL < NULL
----
-22

query I rowsort
SELECT + 5 * - 79 FROM tab2
----
-395
-395
-395

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2048
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 45 IN ( - col0 * col1 * + CAST( + col1 AS DECIMAL ) * + col0 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2048
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 45 IN ( - col0 * col1 * + CAST ( + col1 AS REAL ) * + col0 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT - col1 + + 64 DIV 87 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2049
SELECT - col1 + + 64 / 87 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 WHERE - 61 + col0 + - + ( - col1 ) * 75 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2051
SELECT + col1 AS col0, 67 DIV + ( + + col2 ) + + 60 * col2 DIV + - 65 FROM tab2
----
51
-19
67
-52
77
-35

skipif mysql # not compatible
query II rowsort label-2051
SELECT + col1 AS col0, 67 / + ( + + col2 ) + + 60 * col2 / + - 65 FROM tab2
----
51
-19
67
-52
77
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT - MAX( + 99 ) col0 FROM tab1
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2052
SELECT - MAX ( + 99 ) col0 FROM tab1
----
-99

query I rowsort
SELECT + + col0 * - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - SUM( ALL col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - SUM ( ALL col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-2055
SELECT DISTINCT 49 * - + COUNT( * ) + + + 45 col2, 20 FROM tab1 AS cor0
----
-102
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2055
SELECT DISTINCT 49 * - + COUNT ( * ) + + + 45 col2, 20 FROM tab1 AS cor0
----
-102
20

query I rowsort
SELECT ALL - + 47 * + 68 AS col2 FROM tab1 AS cor0
----
-3196
-3196
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL - MIN( + col2 ) * + + COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - MIN ( + col2 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT SUM( ALL - col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2058
SELECT SUM ( ALL - col2 ) AS col2 FROM tab2 cor0
----
-121

query I rowsort
SELECT 36 * - - 41 FROM tab2 AS cor0
----
1476
1476
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL + 60 * + + MAX( - + 97 ) FROM tab0
----
-5820

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + 60 * + + MAX ( - + 97 ) FROM tab0
----
-5820

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab1 WHERE 61 BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT DISTINCT col1 DIV 5 AS col2 FROM tab2
----
10
13
15

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT col1 / 5 AS col2 FROM tab2
----
10
13
15

onlyif mysql # DIV for integer division: 
query II rowsort label-2063
SELECT ALL - col2 col2, ( + col0 ) + - - 60 DIV col0 AS col0 FROM tab2
----
-23
47
-40
64
-58
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2063
SELECT ALL - col2 col2, ( + col0 ) + - - 60 / col0 AS col0 FROM tab2
----
-23
47
-40
64
-58
75

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 54 <= NULL
----

query I rowsort
SELECT + col0 * 12 + + 71 + - - 47 - - col2 AS col2 FROM tab2 WHERE NOT - col2 > - col2 + - - 23
----
1076
693
926

query II rowsort
SELECT ALL - col2 * col2, + col1 AS col2 FROM tab1 AS cor0
----
-3481
5
-4624
47
-9216
14

query I rowsort
SELECT ALL - + col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query II rowsort
SELECT + 33 * + + col1, + col2 FROM tab1 AS cor0
----
1551
68
165
59
462
96

query I rowsort
SELECT ALL - 34 + + - col0 AS col0 FROM tab2 AS cor0
----
-109
-80
-98

query II rowsort
SELECT DISTINCT 45 + + col2 AS col1, col1 FROM tab1 AS cor0
----
104
5
113
47
141
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2071
SELECT ALL COUNT( * ) DIV 46 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL COUNT ( * ) / 46 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT col2 FROM tab1 AS cor0 WHERE NULL >= ( + CAST( 70 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2072
SELECT col2 FROM tab1 AS cor0 WHERE NULL >= ( + CAST ( 70 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2073
SELECT MAX( ALL - + CAST( + 12 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2073
SELECT MAX ( ALL - + CAST ( + 12 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT - - 0 + - col1 * + ( - 20 ) FROM tab1 AS cor0
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT - + ( + + 16 ) + - COUNT( * ) + - MAX( DISTINCT + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2075
SELECT - + ( + + 16 ) + - COUNT ( * ) + - MAX ( DISTINCT + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + ( 66 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( + + 0 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - ( + col2 ) * col2 = + col0 * + 33 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, + 8 col2 FROM tab2
----
-51
8
-67
8
-77
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT ALL CAST( + + 0 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL CAST ( + + 0 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + + - col0 + - - col1 * + 19 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 1 FROM tab2 cor0 WHERE col2 * col2 * - col2 IS NOT NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2083
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 38 * + - CAST( 46 AS SIGNED ) / col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2083
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 38 * + - CAST ( 46 AS INTEGER ) / col1 IS NULL
----

query I rowsort
SELECT ALL 47 - - - 99 + - 24 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - col1 / + col0 * - col0 + + - 74 * - ( col1 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL ( + SUM( + col0 ) ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL ( + SUM ( + col0 ) ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT SUM( col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2087
SELECT SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT + col1 DIV col0 AS col0 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2088
SELECT + col1 / col0 AS col0 FROM tab0 cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT + - 96 * COUNT( * ) FROM tab1 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2089
SELECT + - 96 * COUNT ( * ) FROM tab1 cor0
----
-288

query I rowsort
SELECT ALL - - 18 FROM tab2 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab2 AS cor0 WHERE col2 = ( col1 * - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT - ( + + COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2092
SELECT - ( + + COUNT ( * ) ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT col1, + 26 AS col2 FROM tab0
----
1
26
21
26
81
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL + - 9 * COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + - 9 * COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-27

query II rowsort
SELECT ( - ( - 31 ) ), col1 AS col1 FROM tab2
----
31
51
31
67
31
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * col1 + col2 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT - COUNT( col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2097
SELECT - COUNT ( col1 ) AS col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col1 col1 FROM tab0
----
-11
-34
98

query II rowsort
SELECT ALL + 52 * col0 + - - col0 + col0 + + 5, 94 AS col1 FROM tab1 AS cor0
----
2759
94
4595
94
4919
94

query I rowsort
SELECT + 58 + + col2 * + + col2 AS col1 FROM tab0
----
158
2267
9859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT + col0 + + - ( - - CAST( - + col0 AS SIGNED ) ) + - col1 FROM tab1
----
135
165
88

skipif mysql # not compatible
query I rowsort label-2101
SELECT + col0 + + - ( - - CAST ( - + col0 AS INTEGER ) ) + - col1 FROM tab1
----
135
165
88

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND 17
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + 76 AS col2 FROM tab0 AS cor0
----
-5
55
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2105
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col0 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2105
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col0 * + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * 68 + 27 FROM tab1 AS cor0
----
3223
367
979

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + 67 IS NULL
----

query II rowsort
SELECT + col1 AS col1, 5 AS col2 FROM tab2 AS cor0
----
51
5
67
5
77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL MIN( ALL - col1 ) + + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL MIN ( ALL - col1 ) + + COUNT ( * ) FROM tab0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2110
SELECT 89 * CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-2110
SELECT 89 * CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2111
SELECT DISTINCT + CAST( + - 21 AS SIGNED ) AS col2, + 7 DIV - COUNT( * ) AS col0 FROM tab2
----
-21
-2

skipif mysql # not compatible
query II rowsort label-2111
SELECT DISTINCT + CAST ( + - 21 AS INTEGER ) AS col2, + 7 / - COUNT ( * ) AS col0 FROM tab2
----
-21
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT 12 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT 12 / col0 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL = - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT col0 - + CAST( NULL AS SIGNED ) * 30 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT col0 - + CAST ( NULL AS INTEGER ) * 30 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( - col2 + col0 = NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( - col2 + col0 = NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT ( - col0 ) - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT ( - col0 ) - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT COUNT( DISTINCT + col0 ) FROM tab0 WHERE + - col1 NOT BETWEEN NULL AND + 43
----
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT COUNT ( DISTINCT + col0 ) FROM tab0 WHERE + - col1 NOT BETWEEN NULL AND + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL - MAX( + ( - col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - MAX ( + ( - col0 ) ) FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col2, + col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2121
SELECT COUNT( * ), 70 AS col2 FROM tab0
----
3
70

skipif mysql # not compatible
query II rowsort label-2121
SELECT COUNT ( * ), 70 AS col2 FROM tab0
----
3
70

query II rowsort
SELECT ALL - col1, + col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT ( - 17 ) FROM tab0 cor0
----
-17

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - + col1 ) + - - 44 >= - + 11
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT + 11 DIV - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2125
SELECT + 11 / - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2126
SELECT - COUNT( * ) AS col2, 0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-2126
SELECT - COUNT ( * ) AS col2, 0 FROM tab2 AS cor0
----
-3
0

query II rowsort
SELECT DISTINCT + + 87 AS col0, col1 AS col0 FROM tab0 AS cor0
----
87
1
87
21
87
81

query II rowsort
SELECT col0 * + col2 - - - col0 + + col2, col1 AS col0 FROM tab0 AS cor0
----
737
81
793
21
9605
1

query I rowsort
SELECT - + 65 * - col1 AS col2 FROM tab2 AS cor0
----
3315
4355
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + MIN( DISTINCT col0 ) col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2130
SELECT + MIN ( DISTINCT col0 ) col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
51

query I rowsort
SELECT col1 * - 11 AS col0 FROM tab0 WHERE NOT col2 * - ( col0 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * + 47 * + col0 * + col1 col1 FROM tab2
----
17834432
18185475
8490174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2133
SELECT ALL * FROM tab2 WHERE 35 / + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2133
SELECT ALL * FROM tab2 WHERE 35 / + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 8 + - + col0 + + + col1 FROM tab2
----
0
13
21

query I rowsort
SELECT + + col2 + - col2 FROM tab0 cor0 WHERE NOT + col0 / col1 * + col0 * col2 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT - CAST( NULL AS SIGNED ) * 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT - CAST ( NULL AS INTEGER ) * 77 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE + col0 >= NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 19 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - col1 + + col1 * + ( - col1 ) * - + col1 + - + col0 AS col1 FROM tab2 AS cor0
----
132531
300563
456352

query I rowsort
SELECT - + col0 - - col1 + - col0 * col1 FROM tab2 AS cor0
----
-2341
-4915
-5033

query I rowsort
SELECT 69 - + 61 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-2737
-3835
-4506

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL + + COUNT( * ) + 89 AS col1 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + + COUNT ( * ) + 89 AS col1 FROM tab1 AS cor0
----
92

query I rowsort
SELECT ( + 0 ) - + col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + + col1 col1 FROM tab1 AS cor0
----
125
83
92

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - ( + 20 ) + 65 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT + col0 * - col1 + - - col0 + + col0 FROM tab0 AS cor0
----
-1185
-1653
97

query I rowsort
SELECT DISTINCT - - col2 * col1 * + + ( col0 ) - + 12 FROM tab1 AS cor0
----
25063
290824
68532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL CAST( NULL AS SIGNED ) - + 67 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL CAST ( NULL AS INTEGER ) - + 67 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + 75 ) < col0
----
15
81
47

query I rowsort
SELECT + 3 FROM tab2 WHERE 31 + - 61 = + - col2
----

query II rowsort
SELECT ALL - 49 - 75 * + col2 * + - col1, - ( - 77 ) AS col1 FROM tab0
----
15701
77
285476
77
7376
77

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT + 27 * 14 DIV col1 FROM tab0
----
18
378
4

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 27 * 14 / col1 FROM tab0
----
18
378
4

query II rowsort
SELECT + col1 AS col1, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT - SUM( + - 81 ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - SUM ( + - 81 ) FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2158
SELECT - + 29 + + CAST( NULL AS SIGNED ) AS col1, col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2158
SELECT - + 29 + + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - 73 * - 55 FROM tab1 AS cor0
----
4015
4015
4015

query II rowsort
SELECT DISTINCT + - col2 * + - 49, col1 AS col0 FROM tab1 AS cor0
----
2891
5
3332
47
4704
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 73 < NULL
----

query I rowsort
SELECT ALL - + 60 AS col0 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL + ( ( + col2 ) ) AS col1 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 = col2 * - col2 - + 27 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - - col0 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT col1 * + col1 * + + 98 * - col0 FROM tab1
----
-19699862
-208250
-979608

query I rowsort
SELECT DISTINCT + ( + ( - - 36 ) ) FROM tab1
----
36

query I rowsort
SELECT ALL - col0 + - ( + col1 ) FROM tab0
----
-108
-96
-98

query II rowsort
SELECT ALL + col0 + - col1 * - col2 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
196
-1
297
-21
3822
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT - + 29 + COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2170
SELECT - + 29 + COUNT ( * ) FROM tab0 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT col0 * CAST( + col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-2171
SELECT col0 * CAST ( + col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT COUNT( * ) * 3 FROM tab2 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2172
SELECT COUNT ( * ) * 3 FROM tab2 WHERE NOT NULL IS NOT NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( col2 ) col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col2 * 32 AS col2 FROM tab2
----
1280
1856
736

query I rowsort
SELECT 81 * - 8 AS col1 FROM tab1
----
-648
-648
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT SUM( ALL - col2 ) * COUNT( DISTINCT 99 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2176
SELECT SUM ( ALL - col2 ) * COUNT ( DISTINCT 99 ) AS col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT COUNT( * ) FROM tab0 WHERE + col0 / 75 = ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT COUNT ( * ) FROM tab0 WHERE + col0 / 75 = ( col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL - COUNT( * ) + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - COUNT ( * ) + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= 13 / - 59
----

query I rowsort
SELECT ALL + 79 * 82 FROM tab2
----
6478
6478
6478

query I rowsort
SELECT + 50 + 10 FROM tab2
----
60
60
60

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN 85 AND ( + col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2183
SELECT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) * col1 ) < 30 + - col2
----

skipif mysql # not compatible
query III rowsort label-2183
SELECT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) * col1 ) < 30 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT ( - 25 ) + col1 * 97 FROM tab1 WHERE NULL BETWEEN ( + 44 / + 46 + CAST( col1 AS SIGNED ) * - 37 ) AND col1 + col1
----

skipif mysql # not compatible
query I rowsort label-2184
SELECT ( - 25 ) + col1 * 97 FROM tab1 WHERE NULL BETWEEN ( + 44 / + 46 + CAST ( col1 AS INTEGER ) * - 37 ) AND col1 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT col1 DIV + 23 col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2186
SELECT col1 / + 23 col1 FROM tab1
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2187
SELECT CAST( + col1 AS SIGNED ) DIV + 46 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2187
SELECT CAST ( + col1 AS INTEGER ) / + 46 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 52 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2189
SELECT ALL + 78 DIV + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + 78 / + COUNT ( * ) FROM tab1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT DISTINCT + col0 DIV - 61 - col2 * + col0 AS col2 FROM tab1
----
-4896
-5016
-6189

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + col0 / - 61 - col2 * + col0 AS col2 FROM tab1
----
-4896
-5016
-6189

query I rowsort
SELECT + 17 AS col1 FROM tab2 WHERE NOT ( - 21 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2192
SELECT * FROM tab2 WHERE NOT - 81 NOT BETWEEN + 23 AND col2 + ( - 19 ) * + CAST( 38 + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2192
SELECT * FROM tab2 WHERE NOT - 81 NOT BETWEEN + 23 AND col2 + ( - 19 ) * + CAST ( 38 + - col2 AS INTEGER )
----

query I rowsort
SELECT + col1 + 95 AS col1 FROM tab1 WHERE NOT ( col1 * - ( col1 ) ) IS NULL
----
100
109
142

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT 19 DIV + col1 + - 81 * + col1 FROM tab0
----
-1701
-62
-6561

skipif mysql # not compatible
query I rowsort label-2194
SELECT 19 / + col1 + - 81 * + col1 FROM tab0
----
-1701
-62
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT + COUNT( * ) + 96 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2195
SELECT + COUNT ( * ) + 96 FROM tab1
----
99

query I rowsort
SELECT ALL 10 + col2 FROM tab2 WHERE 2 > ( col2 ) + - col1
----
33
50
68

query III rowsort
SELECT ALL * FROM tab1 WHERE 62 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 78 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT 9 DIV + 17 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT 9 / + 17 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 5 AS col0 FROM tab1 AS cor0 WHERE NULL <> 52 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT ALL - 93 DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 93 / + col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 < - 45 / + ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2203
SELECT ALL - COUNT( * ) DIV + 58 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - COUNT ( * ) / + 58 FROM tab1
----
0

query I rowsort
SELECT ( + 69 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + 84 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col0 ) * - 55 FROM tab1 AS cor0
----
-2805
-4675
-5005

query I rowsort
SELECT ALL 74 * + col1 AS col0 FROM tab1 AS cor0
----
1036
3478
370

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + 42 * + ( - 47 - + COUNT( * ) * ( 66 + SUM( + 79 ) ) ) FROM tab2 AS cor0
----
-40152

skipif mysql # not compatible
query I rowsort label-2209
SELECT + 42 * + ( - 47 - + COUNT ( * ) * ( 66 + SUM ( + 79 ) ) ) FROM tab2 AS cor0
----
-40152

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 * 95 AND 4
----

query I rowsort
SELECT 4 / col0 FROM tab2 AS cor0 WHERE NOT NULL <> 39
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2212
SELECT ALL - 15 DIV - COUNT( * ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - 15 / - COUNT ( * ) FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2213
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( ( 46 ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2213
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( ( 46 ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT + + 96 * MAX( col2 ) AS col2 FROM tab0 AS cor0
----
9504

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + + 96 * MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * 87 col0 FROM tab2 AS cor0
----
5220
5220
5220

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN col1 AND col1
----

query I rowsort
SELECT ALL 5 * + col0 - + 10 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
220
310
365

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL + ( COUNT( * ) ) * ( + 38 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
114

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + ( COUNT ( * ) ) * ( + 38 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
114

query I rowsort
SELECT ALL + + ( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ( + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * col0 IN ( + col1 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT DISTINCT 62 FROM tab1 WHERE + CAST( NULL AS SIGNED ) > col1
----

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT 62 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) > col1
----

query I rowsort
SELECT ALL + 40 AS col1 FROM tab0 WHERE col1 BETWEEN NULL AND ( 55 + 35 )
----

query I rowsort
SELECT ALL + col2 + col1 + col1 AS col0 FROM tab1
----
124
162
69

query I rowsort
SELECT col0 + - 38 AS col2 FROM tab0 AS cor0
----
-23
49
59

query I rowsort
SELECT DISTINCT 6 / col2 AS col0 FROM tab2 cor0 WHERE NULL = ( + col1 / - col0 - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2227
SELECT - CAST( NULL AS DECIMAL ) + - 34 / + 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT - CAST ( NULL AS REAL ) + - 34 / + 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT MIN( - ( ( col0 ) ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2228
SELECT MIN ( - ( ( col0 ) ) ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL MAX( DISTINCT 83 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
83

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL MAX ( DISTINCT 83 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT col1 - - ( - col0 ) + - ( + col1 ) DIV col1 FROM tab0
----
-67
-97
65

skipif mysql # not compatible
query I rowsort label-2231
SELECT col1 - - ( - col0 ) + - ( + col1 ) / col1 FROM tab0
----
-67
-97
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - 35 - - + SUM( ALL - + 67 ) FROM tab2
----
-236

skipif mysql # not compatible
query I rowsort label-2232
SELECT - 35 - - + SUM ( ALL - + 67 ) FROM tab2
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 <= 0
----
3

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 <= 0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT ALL - - col1 + col2 + + 95 - CAST( - ( ( - col2 ) ) + col2 AS SIGNED ) * col0 col2 FROM tab0 AS cor0
----
-1187
-1614
-19011

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2234
SELECT ALL - - col1 + col2 + + 95 - CAST ( - ( ( - col2 ) ) + col2 AS INTEGER ) * col0 col2 FROM tab0 AS cor0
----
-1187
-1614
-19011

query II rowsort
SELECT ALL - + col2 AS col0, + 5 AS col0 FROM tab1 AS cor0
----
-59
5
-68
5
-96
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2236
SELECT DISTINCT + col1 AS col0, 18 DIV 85 col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2236
SELECT DISTINCT + col1 AS col0, 18 / 85 col0 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT + + col0 + - - 19 FROM tab2 AS cor0
----
65
83
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + col0 NOT BETWEEN + col0 * - col0 AND + col1 * - col1
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT + - 56 + - + COUNT( * ) col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2240
SELECT + - 56 + - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col1 * col1 + - col2 * - 20 )
----

query I rowsort
SELECT DISTINCT + + col1 * - - 73 - + - 31 FROM tab1 AS cor0
----
1053
3462
396

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 89 col1 FROM tab0
----
1869
7209
89

query I rowsort
SELECT ALL + 65 AS col1 FROM tab2 WHERE ( 76 ) IS NOT NULL
----
65
65
65

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * - col1 / col2 IS NULL
----

query I rowsort
SELECT col0 * - + 82 FROM tab2
----
-3772
-5248
-6150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2248
SELECT + AVG ( ALL + ( CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT + AVG ( ALL + ( CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL > + ( - - col0 )
----

query I rowsort
SELECT + 1 * + - ( + col0 ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + 77 - COUNT( * ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-2251
SELECT + 77 - COUNT ( * ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2252
SELECT + 19 * col0, col2 * 49 DIV CAST( + 64 AS SIGNED ) AS col0 FROM tab1
----
1615
45
1729
52
969
73

skipif mysql # not compatible
query II rowsort label-2252
SELECT + 19 * col0, col2 * 49 / CAST ( + 64 AS INTEGER ) AS col0 FROM tab1
----
1615
45
1729
52
969
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2253
SELECT * FROM tab2 WHERE NOT + 71 <> - CAST( 99 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2253
SELECT * FROM tab2 WHERE NOT + 71 <> - CAST ( 99 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT + col1 + col1 / col2 FROM tab2 WHERE NOT NULL = + CAST( + 45 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + col1 + col1 / col2 FROM tab2 WHERE NOT NULL = + CAST ( + 45 AS INTEGER )
----

query II rowsort
SELECT + ( - - 27 ) AS col0, - col2 + + col1 + col0 * + 12 FROM tab2
----
27
580
27
805
27
909

query I rowsort
SELECT 78 FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
78
78
78

query I rowsort
SELECT DISTINCT + - col0 * - col1 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT ( - 71 ) DIV - ( - col2 ) AS col1 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2259
SELECT ( - 71 ) / - ( - col2 ) AS col1 FROM tab0
----
-1
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - COUNT( - col1 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2260
SELECT - COUNT ( - col1 ) col2 FROM tab1
----
-3

query I rowsort
SELECT + col0 * - 15 FROM tab2
----
-1125
-690
-960

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + 76 < - col2 * - - 85 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 + 7 * + 43 col1 FROM tab0 AS cor0
----
-1526
-914
204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2264
SELECT ALL CAST( NULL AS SIGNED ) / - col2 + - col0 AS col2, 55 * - - 29 col2 FROM tab1 AS cor0
----
NULL
1595
NULL
1595
NULL
1595

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2264
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 + - col0 AS col2, 55 * - - 29 col2 FROM tab1 AS cor0
----
NULL
1595
NULL
1595
NULL
1595

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT + ( - - COUNT( * ) ) * - - SUM( - col0 ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-2265
SELECT + ( - - COUNT ( * ) ) * - - SUM ( - col0 ) FROM tab0 AS cor0
----
-597

query II rowsort
SELECT + col0 AS col1, + col2 * + ( - 87 ) AS col0 FROM tab2
----
46
-2001
64
-3480
75
-5046

query I rowsort
SELECT col0 * - ( - - col0 ) * + 99 FROM tab0
----
-22275
-749331
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT + MIN( ALL - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2268
SELECT + MIN ( ALL - col1 ) AS col2 FROM tab2
----
-77

query II rowsort
SELECT ALL 20, 75 * + + 8 + + - 2 * - col2 AS col0 FROM tab0
----
20
620
20
694
20
798

query I rowsort
SELECT col0 FROM tab0 WHERE NULL < + col2 - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT 44 DIV - col0 col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2271
SELECT 44 / - col0 col2 FROM tab0
----
-2
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 ) AND + col2
----

query I rowsort
SELECT ALL + col2 + + + col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL - 52 FROM tab2 WHERE NOT ( + - ( + 8 ) / ( - - 35 ) ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL COUNT( * ) + 23 * + 15 FROM tab2 AS cor0
----
348

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL COUNT ( * ) + 23 * + 15 FROM tab2 AS cor0
----
348

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT - col2 * 38 * + col2 + - 39 * 44 AS col2 FROM tab2 AS cor0
----
-129548
-21818
-62516

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( ( NULL ) BETWEEN ( 19 ) AND ( NULL ) ) )
----

query I rowsort
SELECT ALL 97 AS col2 FROM tab2 cor0
----
97
97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT + + MAX( DISTINCT - - col0 ) DIV MAX( + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT + + MAX ( DISTINCT - - col0 ) / MAX ( + col2 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT + - 84 * - - 36 - - + col1 > + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT DISTINCT 96 * + COUNT( * ) AS col0, - COUNT( DISTINCT 23 ) AS col0 FROM tab0 AS cor0
----
288
-1

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT 96 * + COUNT ( * ) AS col0, - COUNT ( DISTINCT 23 ) AS col0 FROM tab0 AS cor0
----
288
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT - - MAX( DISTINCT - - ( col0 ) ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT - - MAX ( DISTINCT - - ( col0 ) ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2285
SELECT + 76, - col2 - + + CAST( NULL AS SIGNED ) / + 35 * + + 9 AS col0 FROM tab2
----
76
NULL
76
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-2285
SELECT + 76, - col2 - + + CAST ( NULL AS INTEGER ) / + 35 * + + 9 AS col0 FROM tab2
----
76
NULL
76
NULL
76
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = - 52 + 39 - - 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 19 AS col1 FROM tab2 WHERE NOT + - 33 + col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL MIN( ALL + + col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2288
SELECT ALL MIN ( ALL + + col2 ) col1 FROM tab0
----
10

query I rowsort
SELECT DISTINCT 21 FROM tab0 AS cor0 WHERE NOT + col0 IN ( + col2 )
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE ( 1 - - - 88 IN ( - col2 * + 34 + + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE ( 1 - - - 88 IN ( - col2 * + 34 + + col1 ) )
----
0

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 53 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT DISTINCT - col0, + col2 + - + col1 FROM tab2 AS cor0 WHERE col2 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2294
SELECT + MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL + 71 + - + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL + 71 + - + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 + + + ( - col2 ) + - - 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT - col2 FROM tab2 WHERE NOT + 70 >= NULL AND NOT - CAST( + 75 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2297
SELECT - col2 FROM tab2 WHERE NOT + 70 >= NULL AND NOT - CAST ( + 75 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + col2 ) / - + ( col2 ) NOT BETWEEN col0 AND + col0 + - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - 90 AS col0 FROM tab1
----
1260
4230
450

query I rowsort
SELECT 33 + 74 FROM tab0
----
107
107
107

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 12 + + - 68 NOT IN ( + + col2 )
----

query I rowsort
SELECT ALL col1 + - + 99 FROM tab0
----
-18
-78
-98

query I rowsort
SELECT ALL col1 * - + 28 * - col1 + col2 + + - col2 FROM tab0 WHERE NOT ( - - col2 ) IS NULL
----
12348
183708
28

query I rowsort
SELECT - ( - ( 21 ) ) + + - 58 FROM tab0
----
-37
-37
-37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT ALL + CAST( NULL AS SIGNED ) + - 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + CAST ( NULL AS INTEGER ) + - 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - + ( + SUM( - + 1 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2307
SELECT - + ( + SUM ( - + 1 ) ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + ( + col2 ) + + col2 col1 FROM tab0 AS cor0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + - 71 * MIN( col1 ) AS col2 FROM tab0 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2309
SELECT + - 71 * MIN ( col1 ) AS col2 FROM tab0 cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT ALL col0 * - + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL col0 * - + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT col0 AS col1, + col0 AS col0, - + 17 AS col0 FROM tab1 AS cor0
----
9 values hashing to d9c060bd1d93129324d9e3beec9074af

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT - + COUNT( + - 6 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - + COUNT ( + - 6 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
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-2313
SELECT ALL MAX ( - + col2 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT - CAST( 86 AS SIGNED ) / - ( - 53 ) + - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT - CAST ( 86 AS INTEGER ) / - ( - 53 ) + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL + MAX( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + MAX ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT col2 + - col1 AS col0 FROM tab1 WHERE ( NULL ) IS NULL
----
21
54
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2318
SELECT DISTINCT ( - CAST( col1 AS SIGNED ) ) AS col2, + 45 * + - col2 + + 80 FROM tab2 AS cor0
----
-51
-955
-67
-2530
-77
-1720

skipif mysql # not compatible
query II rowsort label-2318
SELECT DISTINCT ( - CAST ( col1 AS INTEGER ) ) AS col2, + 45 * + - col2 + + 80 FROM tab2 AS cor0
----
-51
-955
-67
-2530
-77
-1720

query I rowsort
SELECT DISTINCT + - col2 * + col0 * - col1 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + col0 * + + col2, col1 + col0 col2 FROM tab1
----
4992
65
5074
90
6256
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT + MIN( ALL - 79 ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT + MIN ( ALL - 79 ) FROM tab2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT CAST( NULL AS SIGNED ) * col2 + + col2 - + - 95 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT CAST ( NULL AS INTEGER ) * col2 + + col2 - + - 95 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 83 FROM tab2 AS cor0
----
106
123
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL - COUNT( * ) * - - COUNT( * ) col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2324
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 4 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT DISTINCT + + 23 + - col0 + ( col1 ) * + CAST( NULL AS SIGNED ) + - 70 * col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + + 23 + - col0 + ( col1 ) * + CAST ( NULL AS INTEGER ) + - 70 * col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT 36 * - COUNT( + 14 ) AS col2 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2327
SELECT 36 * - COUNT ( + 14 ) AS col2 FROM tab0 AS cor0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2328
SELECT + ( - col0 ) * col2 * CAST( NULL AS SIGNED ), col1 col0, + + 28 AS col1 FROM tab0
----
9 values hashing to 15551f62773187f31ce09f296becd58d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2328
SELECT + ( - col0 ) * col2 * CAST ( NULL AS INTEGER ), col1 col0, + + 28 AS col1 FROM tab0
----
9 values hashing to 15551f62773187f31ce09f296becd58d

query I rowsort
SELECT DISTINCT col1 * 3 FROM tab0
----
243
3
63

query I rowsort
SELECT 95 * 13 FROM tab1
----
1235
1235
1235

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2331
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV - col0 col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2331
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / - col0 col2 FROM tab2
----
1

query II rowsort
SELECT ALL col1 * - col1, 12 AS col1 FROM tab2
----
-2601
12
-4489
12
-5929
12

query I rowsort
SELECT ALL - 1 FROM tab0 WHERE NOT + col0 * + col0 * col2 IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT - 98 + - - ( + + ( MIN( + - col2 ) ) ) FROM tab0 AS cor0
----
-197

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - 98 + - - ( + + ( MIN ( + - col2 ) ) ) FROM tab0 AS cor0
----
-197

query I rowsort
SELECT ALL col0 * - col2 + - col2 * + - 51 AS col1 FROM tab2 AS cor0
----
-1392
-520
115

query I rowsort
SELECT + col1 + + col0 + + col1 AS col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT 85 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT 85 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
76

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE 66 <= + col1 + + 40
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL + MAX( ALL col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + MAX ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT COUNT( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2340
SELECT COUNT ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT 65 DIV - 44 + - col2 + - + 73 AS col1 FROM tab0 AS cor0
----
-121
-173
-84

skipif mysql # not compatible
query I rowsort label-2341
SELECT 65 / - 44 + - col2 + - + 73 AS col1 FROM tab0 AS cor0
----
-121
-173
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL + MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + + col2 * - + 56 FROM tab2 AS cor0
----
-1288
-2240
-3248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT 80 DIV COUNT( * ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2344
SELECT 80 / COUNT ( * ) FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT + + MIN( + col1 ) * 68 * 14 FROM tab2 AS cor0
----
48552

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT + + MIN ( + col1 ) * 68 * 14 FROM tab2 AS cor0
----
48552

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 WHERE NOT - 20 = + - 4 + col2 + - 86 + + col2
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2348
SELECT DISTINCT - COUNT( * ), 90 AS col2 FROM tab2
----
-3
90

skipif mysql # not compatible
query II rowsort label-2348
SELECT DISTINCT - COUNT ( * ), 90 AS col2 FROM tab2
----
-3
90

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 75 + + col2 + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 77 AS col2, col2 FROM tab1
----
77
59
77
68
77
96

query I rowsort
SELECT + + col0 + ( col2 ) * - - col2 * - + 10 FROM tab0 WHERE NOT + + col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT - MAX( + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT - MAX ( + col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT + + 26 AS col0 FROM tab2 WHERE NOT NULL IN ( + - col1 + + - 44, col1, - - 73, + 33 * + ( + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT + 89 DIV + + col0 + + + col1 AS col2 FROM tab1 AS cor0
----
15
47
6

skipif mysql # not compatible
query I rowsort label-2355
SELECT + 89 / + + col0 + + + col1 AS col2 FROM tab1 AS cor0
----
15
47
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT + 10 DIV - - ( - col2 ) - + col1 DIV + - 31 + - col1 + col2 + - - col2 * - - col2 + col0 * + col0 * - ( - 97 ) FROM tab1 AS cor0
----
261595
704360
807903

skipif mysql # not compatible
query I rowsort label-2356
SELECT + 10 / - - ( - col2 ) - + col1 / + - 31 + - col1 + col2 + - - col2 * - - col2 + col0 * + col0 * - ( - 97 ) FROM tab1 AS cor0
----
261595
704360
807903

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 * + + col2 NOT BETWEEN + - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 54 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-2484
-3456
-4050

query I rowsort
SELECT DISTINCT col0 + - 69 AS col2 FROM tab0 AS cor0
----
-54
18
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT + ( COUNT( * ) ) AS col1, + COUNT( * ) * - 63 FROM tab2 cor0
----
3
-189

skipif mysql # not compatible
query II rowsort label-2361
SELECT + ( COUNT ( * ) ) AS col1, + COUNT ( * ) * - 63 FROM tab2 cor0
----
3
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT ALL 37 DIV + col0 * + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL 37 / + col0 * + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT + 31 + 13, 85 AS col2 FROM tab2 AS cor0
----
44
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT + col1 * col0 + CAST( - col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
361
4162
604

skipif mysql # not compatible
query I rowsort label-2364
SELECT + col1 * col0 + CAST ( - col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
361
4162
604

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT - ( - + ( COUNT( DISTINCT + + col1 ) ) ) AS col0 FROM tab1 WHERE NOT NULL = col2 * + - 95 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - ( - + ( COUNT ( DISTINCT + + col1 ) ) ) AS col0 FROM tab1 WHERE NOT NULL = col2 * + - 95 * + 93
----
0

query II rowsort
SELECT col2 AS col2, 30 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, 46 FROM tab2
----
23
46
40
46
58
46

query I rowsort
SELECT 13 * 97 AS col0 FROM tab2
----
1261
1261
1261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + + - col1 col2 FROM tab0 AS cor0
----
-59
1
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT ALL - + 5 * 73 + - 86 DIV COUNT( * ) * 1 AS col1 FROM tab1 AS cor0
----
-393

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - + 5 * 73 + - 86 / COUNT ( * ) * 1 AS col1 FROM tab1 AS cor0
----
-393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT ALL + COUNT( CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + COUNT ( CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 * + - 39 * + col1 + 77 FROM tab0 AS cor0
----
116
17276
255956

query I rowsort
SELECT + - 49 AS col2 FROM tab1 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 4 col0 FROM tab0 AS cor0 WHERE NOT ( + - col1 IS NULL )
----
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = ( + ( - col1 ) ) + 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2376
SELECT * FROM tab1 cor0 WHERE NOT ( - + CAST( col2 AS SIGNED ) * - col2 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2376
SELECT * FROM tab1 cor0 WHERE NOT ( - + CAST ( col2 AS INTEGER ) * - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col2 * + 5 FROM tab0
----
-235
-495
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT + MIN( ALL - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + MIN ( ALL - - col2 ) FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 21 AS col2 FROM tab1
----
26
35
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 / - col2 + - + col1 + - + 2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 / - col2 + - + col1 + - + 2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT DISTINCT + + CAST( ( + + col0 ) AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT + + CAST ( ( + + col0 ) AS INTEGER ) FROM tab1 cor0
----
51
85
91

query II rowsort
SELECT ALL col1 + col1 * + - col2 AS col2, col2 + + - ( - col2 ) + + col1 FROM tab1 cor0
----
-1330
206
-290
123
-3149
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT + - MAX( DISTINCT - 72 ) AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT + - MAX ( DISTINCT - 72 ) AS col0 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL + COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT ALL COUNT( * ) DIV - 44 AS col2 FROM tab2, tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL COUNT ( * ) / - 44 AS col2 FROM tab2, tab0 cor0
----
0

query II rowsort
SELECT col0 - + + col1 AS col0, - 92 FROM tab0 WHERE ( NULL ) IS NULL
----
-66
-92
66
-92
96
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL + COUNT( - + 59 ) + COUNT( * ) * + - 82 + ( - COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-747

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + COUNT ( - + 59 ) + COUNT ( * ) * + - 82 + ( - COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-747

query II rowsort
SELECT col2 AS col1, 99 FROM tab1 AS cor0
----
59
99
68
99
96
99

query II rowsort
SELECT - col0 AS col1, - 33 * - col2 * + 24 AS col2 FROM tab1 AS cor0
----
-51
76032
-85
46728
-91
53856

query I rowsort
SELECT + ( - - ( - col2 ) ) AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + 76 + + 53 FROM tab2 AS cor0
----
129
129
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + ( - 65 ) + col2 + col0 col2 FROM tab1
----
177
198
204

query I rowsort
SELECT - col0 + + + col0 + col2 - + 47 AS col1 FROM tab0 WHERE - 42 + - col0 IS NOT NULL
----
-37
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT MAX( - - 24 ) AS col1 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT MAX ( - - 24 ) AS col1 FROM tab2
----
24

query I rowsort
SELECT - col2 - col2 + + col2 * + 10 AS col0 FROM tab0
----
376
792
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT - MAX( + col2 ) - + - COUNT( * ) - + + 76 AS col2 FROM tab2
----
-131

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT - MAX ( + col2 ) - + - COUNT ( * ) - + + 76 AS col2 FROM tab2
----
-131

query II rowsort
SELECT DISTINCT - - 61 * 39 AS col0, + col2 FROM tab2 AS cor0
----
2379
23
2379
40
2379
58

query I rowsort
SELECT ALL + ( - 0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2402
SELECT + + 35 DIV - + col1, + col0 * - - 2 AS col1 FROM tab0 AS cor0
----
-1
174
-35
194
0
30

skipif mysql # not compatible
query II rowsort label-2402
SELECT + + 35 / - + col1, + col0 * - - 2 AS col1 FROM tab0 AS cor0
----
-1
174
-35
194
0
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col1, + col0 col1 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query I rowsort
SELECT DISTINCT - 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2405
SELECT COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT DISTINCT col2 AS col2, - 84 AS col1 FROM tab0
----
10
-84
47
-84
99
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-2407
SELECT + col2 AS col0, col0 DIV + - 94 FROM tab0
----
10
0
47
0
99
-1

skipif mysql # not compatible
query II rowsort label-2407
SELECT + col2 AS col0, col0 / + - 94 FROM tab0
----
10
0
47
0
99
-1

query II rowsort
SELECT ALL + col1 AS col0, 88 + - col0 FROM tab0 cor0 WHERE NOT 90 <= NULL
----

query I rowsort
SELECT + ( + 71 ) AS col2 FROM tab1 AS cor0
----
71
71
71

query II rowsort
SELECT ALL + + col2 AS col2, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 - - col2 * + - col0 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + ( 25 )
----

query I rowsort
SELECT + 16 * - 24 * + col2 FROM tab1 AS cor0
----
-22656
-26112
-36864

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT DISTINCT + - 28 DIV - + col2 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + - 28 / - + col2 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT + 40 DIV - - MIN( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-2415
SELECT + 40 / - - MIN ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT - - 71 DIV - 10 + + col1 * - - 82 + - 10 + - col2 - + + 27 + - ( 69 ) AS col0 FROM tab0 cor0
----
-130
1599
6482

skipif mysql # not compatible
query I rowsort label-2416
SELECT - - 71 / - 10 + + col1 * - - 82 + - 10 + - col2 - + + 27 + - ( 69 ) AS col0 FROM tab0 cor0
----
-130
1599
6482

query I rowsort
SELECT 54 FROM tab0 AS cor0 WHERE NOT col2 * 66 NOT IN ( + 88 + + - 58 * + 11 + + col2 + + - col1, col2, col1, + 70 + + ( + + col0 ), - - 39 )
----

query I rowsort
SELECT - col0 * - - 96 AS col0 FROM tab2 cor0
----
-4416
-6144
-7200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + col0 * - + col2 NOT BETWEEN NULL AND - - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT DISTINCT - + 16 + - - 92 + + 68 FROM tab1, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - + 16 + - - 92 + + 68 FROM tab1, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL ( + + COUNT( * ) ) * ( - 97 ) AS col0 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL ( + + COUNT ( * ) ) * ( - 97 ) AS col0 FROM tab0
----
-291

query III rowsort
SELECT * FROM tab0 WHERE - - 47 >= NULL
----

query I rowsort
SELECT DISTINCT 66 + - col2 FROM tab0
----
-33
19
56

query I rowsort
SELECT - col0 + - 81 AS col0 FROM tab0 AS cor0
----
-168
-178
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 / - + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2426
SELECT DISTINCT ( + COUNT( CAST( NULL AS SIGNED ) ) ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2426
SELECT DISTINCT ( + COUNT ( CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT DISTINCT col0 DIV col1 + + 94 + 20 FROM tab1
----
115
117
131

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT col0 / col1 + + 94 + 20 FROM tab1
----
115
117
131

query I rowsort
SELECT - + col2 + - 73 FROM tab1 cor0
----
-132
-141
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT 89 + - 26 + - MAX( col1 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT 89 + - 26 + - MAX ( col1 ) FROM tab0 AS cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 62 + - col1 + - 76 * + 30 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2431
SELECT DISTINCT COUNT( * ) AS col2, - 53 + + - 59 AS col1 FROM tab2
----
3
-112

skipif mysql # not compatible
query II rowsort label-2431
SELECT DISTINCT COUNT ( * ) AS col2, - 53 + + - 59 AS col1 FROM tab2
----
3
-112

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 53 + + + col0 col2 FROM tab2 AS cor0
----
46
-7
64
11
75
22

onlyif mysql # DIV for integer division: 
query II rowsort label-2434
SELECT DISTINCT - col1 AS col2, + col1 DIV - col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-2434
SELECT DISTINCT - col1 AS col2, + col1 / - col2 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - + col1 ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2436
SELECT DISTINCT ( 33 ), col0 DIV col1 DIV - col2 AS col1 FROM tab0
----
33
0

skipif mysql # not compatible
query II rowsort label-2436
SELECT DISTINCT ( 33 ), col0 / col1 / - col2 AS col1 FROM tab0
----
33
0

query II rowsort
SELECT - col0 + - + col2, col0 + + 54 AS col2 FROM tab2 cor0
----
-104
118
-133
129
-69
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT ALL col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + + MIN( ALL + - col2 ) + 1 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2439
SELECT + + MIN ( ALL + - col2 ) + 1 FROM tab0 AS cor0
----
-98

query II rowsort
SELECT ALL - + col1 + + - 29 AS col2, col2 + - col0 FROM tab1 AS cor0
----
-34
-26
-43
45
-76
-23

query I rowsort
SELECT + 86 FROM tab2 cor0 WHERE NOT + 45 + + col1 IS NULL
----
86
86
86

query I rowsort
SELECT + 16 + - - col2 FROM tab2 WHERE - 98 <> ( + col2 )
----
39
56
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
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-2443
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) col0 FROM tab0
----
3

query II rowsort
SELECT 36, + col2 * + col2 AS col1 FROM tab2
----
36
1600
36
3364
36
529

query I rowsort
SELECT DISTINCT - col1 * 51 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT + col2 * 7 AS col1 FROM tab0
----
329
693
70

query I rowsort
SELECT ALL - col0 + - - col0 * - col0 FROM tab1
----
-2652
-7310
-8372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2448
SELECT + 8 DIV COUNT( * ) * - 41 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-2448
SELECT + 8 / COUNT ( * ) * - 41 FROM tab2
----
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2451
SELECT 96 * + CAST( - col0 AS SIGNED ) AS col2, col0 + - - CAST( + col1 AS SIGNED ) + - 81 + - - ( + CAST( + 19 AS SIGNED ) ) AS col2 FROM tab2
----
-4416
35
-6144
79
-7200
80

skipif mysql # not compatible
query II rowsort label-2451
SELECT 96 * + CAST ( - col0 AS INTEGER ) AS col2, col0 + - - CAST ( + col1 AS INTEGER ) + - 81 + - - ( + CAST ( + 19 AS INTEGER ) ) AS col2 FROM tab2
----
-4416
35
-6144
79
-7200
80

query II rowsort
SELECT ALL 28 + + - col1 * 59, col1 FROM tab0
----
-1211
21
-31
1
-4751
81

query I rowsort
SELECT ALL col2 - + - col2 AS col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT 79 * + 99 * 54 * - + 2 * - 78 + col0 AS col0 FROM tab1
----
65884155
65884189
65884195

query I rowsort
SELECT ALL col1 + 10 + + - col2 AS col2 FROM tab0 AS cor0
----
-88
21
44

query I rowsort
SELECT - col1 * 47 * + - 87 FROM tab0 AS cor0
----
331209
4089
85869

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2457
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) + + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2457
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) + + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 77 * + + 85 FROM tab0 AS cor0
----
6545
6545
6545

query I rowsort
SELECT ALL + 76 * - + col2 FROM tab0 cor0
----
-3572
-7524
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + COUNT( ALL col1 ) * - 3 AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2460
SELECT + COUNT ( ALL col1 ) * - 3 AS col1 FROM tab2
----
-9

query II rowsort
SELECT DISTINCT - col1 AS col0, 67 FROM tab2
----
-51
67
-67
67
-77
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL - ( - MAX( DISTINCT col1 ) ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2462
SELECT ALL - ( - MAX ( DISTINCT col1 ) ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 * 55 AS col1 FROM tab0
----
1155
4455
55

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 69 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
69
69
69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col1 + + ( col1 )
----

query I rowsort
SELECT ALL - col0 + - col2 * + col1 - + col2 FROM tab0 WHERE + + col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT COUNT( - col1 ) * + + COUNT( * ) * + + 43 FROM tab0
----
387

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT COUNT ( - col1 ) * + + COUNT ( * ) * + + 43 FROM tab0
----
387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT + CAST( 16 AS SIGNED ) FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2470
SELECT + CAST ( 16 AS INTEGER ) FROM tab0 AS cor0
----
16
16
16

query II rowsort
SELECT + - col1, 65 * 8 AS col2 FROM tab2 AS cor0
----
-51
520
-67
520
-77
520

query II rowsort
SELECT - ( col1 ) AS col2, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT - + col0 + - ( - 44 ) + + col2 AS col1 FROM tab1 AS cor0
----
18
21
89

query II rowsort
SELECT - 77, - 70 AS col0 FROM tab2 cor0
----
-77
-70
-77
-70
-77
-70

query I rowsort
SELECT ALL + col0 + - 10 FROM tab1 AS cor0
----
41
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL - MAX( 27 ) AS col1 FROM tab0 AS cor0 WHERE NOT 0 + + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL - MAX ( 27 ) AS col1 FROM tab0 AS cor0 WHERE NOT 0 + + - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2477
SELECT + - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT - - 89 AS col0 FROM tab1 AS cor0 WHERE 42 - - 60 NOT BETWEEN - col0 AND col0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT + 23 + + SUM( - - col1 ) AS col2 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + 23 + + SUM ( - - col1 ) AS col2 FROM tab0 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col0 / 62 + - + col2 + - 76
----

skipif mysql # not compatible
query I rowsort label-2480
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col0 / 62 + - + col2 + - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT 16 + - COUNT( ALL 94 ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-2481
SELECT 16 + - COUNT ( ALL 94 ) AS col1 FROM tab1
----
13

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL ) <> 94 - - col1 * - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT - 85 * + MAX( + 99 ) FROM tab0
----
-8415

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT - 85 * + MAX ( + 99 ) FROM tab0
----
-8415

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 <> 4
----

query I rowsort
SELECT DISTINCT ( - + 8 ) + - col2 AS col1 FROM tab2
----
-31
-48
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT col0 + + - 36 DIV 27 + + col2 col0 FROM tab2
----
103
132
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2486
SELECT col0 + + - 36 / 27 + + col2 col0 FROM tab2
----
103
132
68

query I rowsort
SELECT - col0 FROM tab0 WHERE col1 * 52 + + col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col0 * - 97 + - col1 FROM tab1
----
-4961
-8250
-8874

query I rowsort
SELECT col0 + 63 FROM tab0
----
150
160
78

query I rowsort
SELECT DISTINCT - 91 + col0 AS col0 FROM tab0 AS cor0
----
-4
-76
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2491
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - ( - ( - - col1 ) ) * 98 + 52 / - col0 + - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2491
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - ( - ( - - col1 ) ) * 98 + 52 / - col0 + - CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT + ( COUNT( * ) ) * - + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2492
SELECT + ( COUNT ( * ) ) * - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ALL - + COUNT( * ) + - MIN( - 95 ) + - + 56 * + 0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - + COUNT ( * ) + - MIN ( - 95 ) + - + 56 * + 0 FROM tab2 AS cor0
----
92

query I rowsort
SELECT + 27 AS col1 FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE + 12 <= NULL
----

query I rowsort
SELECT - col2 - - - 3 FROM tab1
----
-62
-71
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT + - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 82 + + - col0 AS col0 FROM tab2 AS cor0
----
18
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT - - COUNT( * ) + - - COUNT( * ) + + 66 * - COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-2499
SELECT - - COUNT ( * ) + - - COUNT ( * ) + + 66 * - COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT DISTINCT + 42 DIV - 35 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + 42 / - 35 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + 43 * 78 * col1 + + 79 FROM tab0 AS cor0
----
271753
3433
70513

query I rowsort
SELECT 12 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col2 - - col2 + - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + COUNT( * ) * - + 13 AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + COUNT ( * ) * - + 13 AS col1 FROM tab2 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2505
SELECT - 89 * + COUNT( * ), 65 AS col2 FROM tab2
----
-267
65

skipif mysql # not compatible
query II rowsort label-2505
SELECT - 89 * + COUNT ( * ), 65 AS col2 FROM tab2
----
-267
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT - MIN( + 39 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT - MIN ( + 39 ) FROM tab1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 99 col0 FROM tab2 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL - MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL - MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + ( + col2 ) * + col0 NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL - - col1 * - col0, col0 FROM tab0 cor0
----
-1215
15
-1827
87
-97
97

query I rowsort
SELECT DISTINCT + col1 * - 49 * col2 * + col2 * - - col1 + - col1 FROM tab0 cor0
----
-2160921
-480250
-710169282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL - - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + ( - 93 ) FROM tab0
----
-46
-83
6

query I rowsort
SELECT DISTINCT + 83 + col2 AS col2 FROM tab1 cor0
----
142
151
179

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT 37 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT 37 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT + - 44 + + col0 - col1 * 14 FROM tab0 AS cor0
----
-1163
-251
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - 60 - + - MIN( - ( - col0 ) ) + + - MAX( - col2 ) col0 FROM tab1 AS cor0 WHERE NOT - col0 + + 49 * + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2517
SELECT ALL - 60 - + - MIN ( - ( - col0 ) ) + + - MAX ( - col2 ) col0 FROM tab1 AS cor0 WHERE NOT - col0 + + 49 * + - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * 25 AS col2 FROM tab2 AS cor0
----
1000
1450
575

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 18 * col0 IN ( col2, col1, col0, - ( - col1 ), - 54, + col1, col2 + + col0 * - col1 * - 97 * + ( + col2 ) - col1 + - - col0 * - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 18 + + col0 * + col0 + + - col2 + 27 FROM tab1
----
2514
7175
8222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col2 ) + + col1 col0 FROM tab2 WHERE NOT ( - col0 + + col1 < - + col0 )
----
1677
3431
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col1 AS col0 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 AS col0 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2523
SELECT - 14 AS col2, - CAST( - + AVG ( ALL + + col2 ) AS SIGNED ) AS col2 FROM tab1
----
-14
74

skipif mysql # not compatible
query II rowsort label-2523
SELECT - 14 AS col2, - CAST ( - + AVG ( ALL + + col2 ) AS INTEGER ) AS col2 FROM tab1
----
-14
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2524
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2524
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT - - COUNT( * ) + 76 * COUNT( * ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2525
SELECT - - COUNT ( * ) + 76 * COUNT ( * ) FROM tab0 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT MIN( + 41 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT MIN ( + 41 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + + 39
----
NULL

query I rowsort
SELECT ALL - col2 * + ( col1 ) + + col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT ALL 62 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2529
SELECT DISTINCT col1 DIV 54 col1, 83 FROM tab2
----
0
83
1
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2529
SELECT DISTINCT col1 / 54 col1, 83 FROM tab2
----
0
83
1
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

query II rowsort
SELECT col0 * 12, col1 FROM tab0 AS cor0
----
1044
21
1164
1
180
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 23 * + col0 / 89 / + col1 * + col2 * - 95 * 31 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL + ( - COUNT( ALL - col1 ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2533
SELECT ALL + ( - COUNT ( ALL - col1 ) ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 * - 56 AS col2 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT ALL - + 63 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT - COUNT( * ) * - 49 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT - COUNT ( * ) * - 49 FROM tab1 AS cor0
----
147

query I rowsort
SELECT 65 * 65 AS col0 FROM tab1 AS cor0
----
4225
4225
4225

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( + col2 * - - col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2538
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( + col2 * - - col0 IS NULL )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT DISTINCT - 82 DIV + 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - 82 / + 99 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 79 FROM tab1 AS cor0 WHERE NOT - 57 IS NULL
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-2541
SELECT + col0 DIV - col2, col0 AS col2 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

skipif mysql # not compatible
query II rowsort label-2541
SELECT + col0 / - col2, col0 AS col2 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT DISTINCT - - col0 DIV 37 AS col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - - col0 / 37 AS col2 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT DISTINCT ( - - 80 ) AS col1 FROM tab2 cor0
----
80

query I rowsort
SELECT ALL - - 49 FROM tab1 WHERE NULL NOT IN ( - col0, - 18 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT DISTINCT - 51 / + + 10 * - CAST( - + SUM( + + col2 ) AS SIGNED ) + + - COUNT( * ) AS col0 FROM tab2 WHERE NULL >= + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - 51 / + + 10 * - CAST ( - + SUM ( + + col2 ) AS INTEGER ) + + - COUNT ( * ) AS col0 FROM tab2 WHERE NULL >= + - 75
----
NULL

query I rowsort
SELECT ALL + 53 AS col2 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT - + 91 + - + col1 FROM tab2 AS cor0
----
-142
-158
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT + COUNT( * ) * - 76 + - 51 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-2548
SELECT + COUNT ( * ) * - 76 + - 51 FROM tab2 AS cor0
----
-279

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL + - col0 * + + CAST( NULL AS SIGNED ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + - col0 * + + CAST ( NULL AS INTEGER ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT col2 * + + col2 * CAST( - - col0 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
102440
24357
252358

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT col2 * + + col2 * CAST ( - - col0 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
102440
24357
252358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - col2 + + col1 + + - col0 col1 FROM tab0 AS cor0
----
-28
-294
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT + - CAST( + 15 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
0
72
82

skipif mysql # not compatible
query I rowsort label-2554
SELECT + - CAST ( + 15 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
0
72
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - ( + col0 ) col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + col0 - + 98 FROM tab1
----
-13
-47
-7

query I rowsort
SELECT 75 + - - col0 FROM tab0
----
162
172
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT - ( col2 ) DIV + 29 + - col0 + + col1 AS col2 FROM tab0
----
-66
-99
65

skipif mysql # not compatible
query I rowsort label-2558
SELECT - ( col2 ) / + 29 + - col0 + + col1 AS col2 FROM tab0
----
-66
-99
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + 10 + 8 + + - COUNT( ALL col1 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2559
SELECT + 10 + 8 + + - COUNT ( ALL col1 ) AS col1 FROM tab2
----
15

query I rowsort
SELECT DISTINCT col0 + + + col2 AS col0 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT ( - 71 ) / - ( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT ( - 71 ) / - ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, 88 FROM tab0
----
-10
88
-47
88
-99
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2564
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col1 - - + 75 / + CAST( NULL AS SIGNED ) + - + col1
----

skipif mysql # not compatible
query III rowsort label-2564
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col1 - - + 75 / + CAST ( NULL AS INTEGER ) + - + col1
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE + 91 * - - ( - col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( 94 ) FROM tab1 AS cor0
----
94
94
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 56 * - - col0 + + col0 * - 48 + col1 * - - 73 AND + - 59
----

query I rowsort
SELECT DISTINCT - col2 * + col0 * - - col1 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE - 3 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE col1 + - 55 - - col2 * + col0 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, - col0 * + col0 * + + col2 col2 FROM tab0
----
1
-931491
21
-75690
81
-10575

query II rowsort
SELECT 88 AS col2, 20 * col1 FROM tab2
----
88
1020
88
1340
88
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT - 0 DIV + col0 - 57 * - col1 FROM tab0 AS cor0
----
1197
4617
57

skipif mysql # not compatible
query I rowsort label-2573
SELECT - 0 / + col0 - 57 * - col1 FROM tab0 AS cor0
----
1197
4617
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * col1 col2 FROM tab2 AS cor0
----
-204
-268
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT 14 * - - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT 14 * - - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
126

query I rowsort
SELECT ALL + + col1 * + col0 + 17 AS col1 FROM tab2 AS cor0
----
2363
4945
5042

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT - - COUNT( ALL - - 19 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - - COUNT ( ALL - - 19 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT - MAX( ALL - 59 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - MAX ( ALL - 59 ) FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL - COUNT( * ) + + + 22 AS col2 FROM tab0, tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - COUNT ( * ) + + + 22 AS col2 FROM tab0, tab0 cor0
----
13

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + ( + ( - 96 ) ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT COUNT( * ) col2 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2581
SELECT COUNT ( * ) col2 FROM tab1, tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT ALL 48 DIV + + ( - + col0 ) + col2 FROM tab2
----
22
40
58

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL 48 / + + ( - + col0 ) + col2 FROM tab2
----
22
40
58

query I rowsort
SELECT DISTINCT 14 FROM tab0 AS cor0 WHERE NOT NULL <> col0 / - col2 * col1 * 55 * - + 15 + + 41 + col1
----

query I rowsort
SELECT + ( col0 ) * + 25 AS col2 FROM tab2 AS cor0
----
1150
1600
1875

query III rowsort
SELECT * FROM tab1 WHERE + col0 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT 56 * col2 FROM tab0 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 - + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + ( - - 77 ) + + 70 + + - 76 FROM tab1
----
118
76
85

query II rowsort
SELECT 32 + - col1 + + col2, col1 FROM tab1
----
114
14
53
47
86
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT DISTINCT + ( + + 74 ) * 52 + - 77 DIV - ( + 9 ) FROM tab0 cor0
----
3856

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + ( + + 74 ) * 52 + - 77 / - ( + 9 ) FROM tab0 cor0
----
3856

query I rowsort
SELECT DISTINCT + + col2 + - + 53 AS col2 FROM tab2 AS cor0
----
-13
-30
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2592
SELECT - col2 DIV - 9 AS col1, + 33 * col2 FROM tab1 cor0 WHERE NULL IS NULL
----
10
3168
6
1947
7
2244

skipif mysql # not compatible
query II rowsort label-2592
SELECT - col2 / - 9 AS col1, + 33 * col2 FROM tab1 cor0 WHERE NULL IS NULL
----
10
3168
6
1947
7
2244

query I rowsort
SELECT DISTINCT - 96 + + + col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-11
-45
-5

query II rowsort
SELECT - - col0 AS col1, - col0 AS col2 FROM tab2 cor0
----
46
-46
64
-64
75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * + ( col2 ) + col1 col1 FROM tab1 AS cor0
----
5197
6031
8462

query I rowsort
SELECT + 71 * + - 16 FROM tab2 AS cor0
----
-1136
-1136
-1136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT col2 - + CAST( - col1 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2597
SELECT col2 - + CAST ( - col1 AS INTEGER ) FROM tab1
----
110
115
64

query I rowsort
SELECT - 54 - - + col2 AS col0 FROM tab0
----
-44
-7
45

query I rowsort
SELECT - col0 - + - col1 * - + col1 AS col0 FROM tab1
----
-110
-2300
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT MAX( + 57 ) * + - SUM( DISTINCT - ( - 65 ) ) + + 35 AS col1 FROM tab1
----
-3670

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT MAX ( + 57 ) * + - SUM ( DISTINCT - ( - 65 ) ) + + 35 AS col1 FROM tab1
----
-3670

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2602
SELECT - + CAST( col1 AS SIGNED ) col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2602
SELECT - + CAST ( col1 AS INTEGER ) col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT - CAST( - - ( + 17 ) AS SIGNED ) FROM tab1 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-2603
SELECT - CAST ( - - ( + 17 ) AS INTEGER ) FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT - + COUNT( * ) * - - 34 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-306

skipif mysql # not compatible
query I rowsort label-2604
SELECT - + COUNT ( * ) * - - 34 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-306

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT + 15 + - 1 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL COUNT( * ) + - COUNT( * ) + 60 FROM tab1 AS cor0 WHERE NOT - 83 + 20 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL COUNT ( * ) + - COUNT ( * ) + 60 FROM tab1 AS cor0 WHERE NOT - 83 + 20 IS NOT NULL
----
60

query I rowsort
SELECT - col0 * + + 74 FROM tab0 AS cor0
----
-1110
-6438
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT + + COUNT( * ) * - + 51 FROM tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2609
SELECT + + COUNT ( * ) * - + 51 FROM tab1 cor0
----
-153

query I rowsort
SELECT + ( - 27 ) FROM tab0 cor0
----
-27
-27
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2611
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + col0 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2611
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + col0 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + + col1 * - ( - - 56 ) AS col0 FROM tab2
----
145656
251384
332024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT - COUNT( * ) AS col2, COUNT( * ) + - - 69 AS col0 FROM tab1
----
-3
72

skipif mysql # not compatible
query II rowsort label-2614
SELECT - COUNT ( * ) AS col2, COUNT ( * ) + - - 69 AS col0 FROM tab1
----
-3
72

query II rowsort
SELECT DISTINCT - col1, 19 FROM tab2 WHERE - 14 IS NULL
----

query II rowsort
SELECT - + 61, + col2 FROM tab2 cor0
----
-61
23
-61
40
-61
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * col1 col0 FROM tab2 cor0
----
1224
1608
1848

query I rowsort
SELECT DISTINCT col1 * - 76 * - 6 AS col1 FROM tab1
----
21432
2280
6384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ) - + col1, + col1 + + ( + + col1 ) + - 83 col1 FROM tab0
----
0
-41
0
-81
0
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT COUNT( * ) - - - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2621
SELECT + + col2 + col1 AS col0, - CAST( - 67 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
110
163
115
135
64
126

skipif mysql # not compatible
query II rowsort label-2621
SELECT + + col2 + col1 AS col0, - CAST ( - 67 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
110
163
115
135
64
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL - col0 DIV col0 + 95 AS col0 FROM tab1 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - col0 / col0 + 95 AS col0 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT - COUNT( * ) * + - 88 * - 69 + COUNT( * ) AS col0 FROM tab0 cor0
----
-18213

skipif mysql # not compatible
query I rowsort label-2623
SELECT - COUNT ( * ) * + - 88 * - 69 + COUNT ( * ) AS col0 FROM tab0 cor0
----
-18213

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab0 AS cor0 WHERE NOT + 81 <> NULL
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 <= NULL )
----

query I rowsort
SELECT DISTINCT ( - col1 ) * - - col0 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT COUNT( * ) * + SUM( + + 81 ) AS col0 FROM tab2
----
729

skipif mysql # not compatible
query I rowsort label-2629
SELECT COUNT ( * ) * + SUM ( + + 81 ) AS col0 FROM tab2
----
729

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT + col0 DIV + - col1 AS col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT + col0 / + - col1 AS col1 FROM tab0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT ALL + col2 DIV - ( - 30 ) + + + col0 * - 97 * + 71 AS col2 FROM tab2 AS cor0
----
-316802
-440767
-516524

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + col2 / - ( - 30 ) + + + col0 * - 97 * + 71 AS col2 FROM tab2 AS cor0
----
-316802
-440767
-516524

query I rowsort
SELECT + 99 + col0 * + col2 AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col2 * col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 51 * - col0 + col2 ) IN ( - ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + + 59 * + ( + col1 ) col0 FROM tab1 WHERE NOT col1 > ( col1 + col2 )
----
2770
292
823

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL SUM( DISTINCT 36 ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL SUM ( DISTINCT 36 ) AS col2 FROM tab0
----
36

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 1 FROM tab1 WHERE - col0 = + ( col2 ) * - 29
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN + col2 / col2 AND col1 / - 75
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 72 NOT IN ( + col0 + col2 * - 31 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 * 99 + + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT + SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 89 - col0 FROM tab1
----
-140
-174
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT + 7 * + MIN( DISTINCT ( col2 ) ) AS col2 FROM tab2
----
161

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + 7 * + MIN ( DISTINCT ( col2 ) ) AS col2 FROM tab2
----
161

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col0 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT 79 DIV + 49 + + 95 FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-2647
SELECT 79 / + 49 + + 95 FROM tab1
----
96
96
96

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - col0 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2649
SELECT * FROM tab2 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2649
SELECT * FROM tab2 WHERE NULL > CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) < col2
----

query I rowsort
SELECT ALL + col1 * + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT + col0 + 28 DIV - col0 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2652
SELECT + col0 + 28 / - col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT 31 * COUNT( * ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT 31 * COUNT ( * ) AS col0 FROM tab2
----
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 36 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + MAX( + col2 ) * 53 col1 FROM tab1 cor0
----
5088

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2655
SELECT DISTINCT + MAX ( + col2 ) * 53 col1 FROM tab1 cor0
----
5088

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT DISTINCT col0 DIV col0 + + col0 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT col0 / col0 + + col0 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT + col0 DIV - col0 + col2 col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2657
SELECT + col0 / - col0 + col2 col2 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL 15 * + 12 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to 23f8878249837974086cc4c256b553c0

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL BETWEEN ( col0 ) AND - col1
----

query I rowsort
SELECT DISTINCT 66 + col2 FROM tab2 cor0
----
106
124
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + ( + 32 ) - 23 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = - 65 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT + + MIN( ALL col0 ) - - 52 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + + MIN ( ALL col0 ) - - 52 FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT - - COUNT( * ) - 61 FROM tab0 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT - - COUNT ( * ) - 61 FROM tab0 cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + 62 - + 60 AS col1 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> 88 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( - col0 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2670
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( - col0 * col0 )
----
0

query I rowsort
SELECT ALL 26 - + col1 AS col0 FROM tab0 cor0
----
-55
25
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 74 ) * + col0 col2 FROM tab2 AS cor0 WHERE col1 NOT IN ( - 24 )
----
-3404
-4736
-5550

query I rowsort
SELECT ALL - - 9 - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-14
-31
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT + COUNT( * ) - - MAX( 7 + col1 ) AS col1 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2674
SELECT + COUNT ( * ) - - MAX ( 7 + col1 ) AS col1 FROM tab2 AS cor0
----
87

query I rowsort
SELECT - 8 - + col0 AS col0 FROM tab0
----
-105
-23
-95

query I rowsort
SELECT ALL col2 - + col1 - col1 AS col2 FROM tab2
----
-114
-76
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2677
SELECT ALL COUNT( * ) DIV - 92 * 41 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2677
SELECT ALL COUNT ( * ) / - 92 * 41 col1 FROM tab1
----
0

query I rowsort
SELECT col2 - - col0 - col1 * col2 AS col1 FROM tab2
----
-1104
-2976
-3753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL - 73 * - col1 * col2 FROM tab0
----
15330
277911
7227

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT - + 68 DIV - 46 + + col2 AS col1 FROM tab0 cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2682
SELECT - + 68 / - 46 + + col2 AS col1 FROM tab0 cor0
----
100
11
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT + COUNT( * ) DIV + - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2683
SELECT + COUNT ( * ) / + - COUNT ( * ) FROM tab1
----
-1

query II rowsort
SELECT col2 AS col1, - 96 * col0 AS col2 FROM tab2
----
23
-4416
40
-6144
58
-7200

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col2 <> col1
----

query I rowsort
SELECT ALL + ( - 21 ) FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT DISTINCT 37 * ( - MAX( + CAST( col0 AS SIGNED ) ) ) + - 37 * 79 FROM tab0 AS cor0
----
-6512

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT 37 * ( - MAX ( + CAST ( col0 AS INTEGER ) ) ) + - 37 * 79 FROM tab0 AS cor0
----
-6512

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT - - COUNT( * ) * MIN( col1 ) + + 64 + + COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - - COUNT ( * ) * MIN ( col1 ) + + 64 + + COUNT ( * ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + SUM( - - col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-2690
SELECT + SUM ( - - col2 ) AS col0 FROM tab2 cor0
----
121

query I rowsort
SELECT col1 * + - 88 AS col1 FROM tab1 AS cor0
----
-1232
-4136
-440

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2692
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 + + col1 AND ( + CAST( - 77 AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-2692
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 + + col1 AND ( + CAST ( - 77 AS INTEGER ) + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, + col2 col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT 51 + - col1 AS col1 FROM tab2
----
-16
-26
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 IN ( col2 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col1 - + 60 IN ( 95 * - 31 + ( + 5 ) * + col0 )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE + - col0 * col0 + 44 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col1 + + + ( - - col2 ) col1 FROM tab0
----
101
209
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT DISTINCT - 28 DIV col2 + - col1 FROM tab2 cor0
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT - 28 / col2 + - col1 FROM tab2 cor0
----
-52
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT + - MIN( DISTINCT col2 ) + SUM( ALL - 24 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + - MIN ( DISTINCT col2 ) + SUM ( ALL - 24 ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT + col1 + col1 + col2 + col0 * 43 AS col0 FROM tab1 AS cor0
----
2317
3724
4075

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT + MIN( 33 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2702
SELECT + MIN ( 33 ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT col0 * - col1 AS col1 FROM tab1 AS cor0 WHERE ( - ( + - 19 ) ) <= ( - col1 + + ( col2 + col0 ) )
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT - MAX( + 61 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-2704
SELECT - MAX ( + 61 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT col0 + - + col0 + + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL - - COUNT( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - - COUNT ( + col2 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 18 + col0 + 2 AS col1, - col1 * - 83 * col0 FROM tab2 AS cor0
----
66
194718
84
409024
95
417075

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 + 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - 7 + ( - + 51 ) ) NOT IN ( 49 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - 7 + ( - + 51 ) ) NOT IN ( 49 + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT DISTINCT 0 DIV col2 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT 0 / col2 AS col1 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 65 * + col0 col0 FROM tab2
----
46
2990
64
4160
75
4875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT 2 + + 53 + - CAST( NULL AS SIGNED ) / - 98 AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT 2 + + 53 + - CAST ( NULL AS INTEGER ) / - 98 AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 12 * - col0, - 25 AS col1 FROM tab2
----
552
-25
768
-25
900
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2715
SELECT DISTINCT - MIN( ALL + 39 ), COUNT( * ) DIV + 45 col2 FROM tab1
----
-39
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2715
SELECT DISTINCT - MIN ( ALL + 39 ), COUNT ( * ) / + 45 col2 FROM tab1
----
-39
0

query I rowsort
SELECT - 91 * + col0 FROM tab2
----
-4186
-5824
-6825

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( + 91 * - + col0 ) AND NULL
----

query I rowsort
SELECT col1 * col1 * - - col0 * - col0 AS col1 FROM tab1
----
-180625
-18292729
-509796

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2719
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + - CAST( NULL AS SIGNED ) * 58 - + col0 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2719
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + - CAST ( NULL AS INTEGER ) * 58 - + col0 ) <> NULL
----

query II rowsort
SELECT 88 AS col1, col0 FROM tab0
----
88
15
88
87
88
97

query I rowsort
SELECT ( - 84 ) AS col0 FROM tab2 cor0 WHERE NOT col2 * + col2 <= col1
----
-84
-84
-84

query I rowsort
SELECT ALL - col1 * + 6 AS col1 FROM tab1 AS cor0
----
-282
-30
-84

query I rowsort
SELECT - 85 AS col2 FROM tab0 AS cor0 WHERE NOT 29 NOT BETWEEN ( - - col0 * - 89 * + + 17 * 30 ) AND ( NULL )
----

query I rowsort
SELECT ALL - 32 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( ( + col1 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 65 + - 79 FROM tab2 AS cor0
----
-3394
-4434
-5084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 85 col2, + col1 FROM tab0 AS cor0
----
85
1
85
21
85
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT - 46 DIV - + 88 * - 3 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT - 46 / - + 88 * - 3 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * - + col0 + + - col2 AS col1 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE + 93 - - 71 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT ALL - + col2 DIV col1 FROM tab1 cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - + col2 / col1 FROM tab1 cor0
----
-1
-11
-6

query I rowsort
SELECT ALL + 76 * col0 + - - col1 AS col1 FROM tab1 AS cor0
----
3890
6465
6963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col0 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + ( - 54 ) * - - col2 AS col2 FROM tab2 AS cor0
----
-1242
-2160
-3132

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT col0 * + col2 + + - col0 DIV - col2 FROM tab1 AS cor0
----
4896
5016
6189

skipif mysql # not compatible
query I rowsort label-2734
SELECT col0 * + col2 + + - col0 / - col2 FROM tab1 AS cor0
----
4896
5016
6189

query III rowsort
SELECT * FROM tab0 WHERE + col1 - 28 * - col2 * + col1 NOT IN ( ( + col0 ) + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT COUNT( * ), 9 AS col2 FROM tab1
----
3
9

skipif mysql # not compatible
query II rowsort label-2736
SELECT COUNT ( * ), 9 AS col2 FROM tab1
----
3
9

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 AS col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - SUM( + 15 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2738
SELECT - SUM ( + 15 ) FROM tab2
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-2739
SELECT + col1, 81 - + ( + + col2 ) + 55 DIV col0 AS col0 FROM tab1
----
14
-14
47
13
5
22

skipif mysql # not compatible
query II rowsort label-2739
SELECT + col1, 81 - + ( + + col2 ) + 55 / col0 AS col0 FROM tab1
----
14
-14
47
13
5
22

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 + - col2 * - 73 AND ( + 72 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 cor0 WHERE NULL BETWEEN 39 + - + 31 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL COUNT( * ) + - 45 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL COUNT ( * ) + - 45 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT DISTINCT - COUNT( * ) + + 21 AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT - COUNT ( * ) + + 21 AS col1 FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2744
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0, + 90 * - - COUNT( * ) col1 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
NULL
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2744
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, + 90 * - - COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
NULL
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT + col0 * + + 14 * CAST( NULL AS SIGNED ) / - col0 + - 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT + col0 * + + 14 * CAST ( NULL AS INTEGER ) / - col0 + - 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT - 47 DIV col0 + - col2 FROM tab2
----
-24
-40
-58

skipif mysql # not compatible
query I rowsort label-2746
SELECT - 47 / col0 + - col2 FROM tab2
----
-24
-40
-58

query I rowsort
SELECT 95 * + + 62 + + + col0 AS col0 FROM tab2
----
5936
5954
5965

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - SUM( - + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2748
SELECT - SUM ( - + col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE NOT ( col1 / - + ( + + 49 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - 7 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-12789
-679
-8505

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT - col0 * 29 DIV - 68 col1 FROM tab1 AS cor0
----
21
36
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT - col0 * 29 / - 68 col1 FROM tab1 AS cor0
----
21
36
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 32 + - 2 * + col0 * - col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - + MAX( ALL + - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2753
SELECT - + MAX ( ALL + - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT - COUNT( DISTINCT - + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + + 17 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2756
SELECT + + 17 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
51

query I rowsort
SELECT + 88 FROM tab2 AS cor0 WHERE NOT ( 68 >= + + col0 )
----
88

query I rowsort
SELECT - ( ( - - ( 45 ) ) ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 >= ( + col0 * 9 )
----
0

skipif mysql # not compatible
query I rowsort label-2760
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 >= ( + col0 * 9 )
----
0

query I rowsort
SELECT - 2 * col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL 70 + + - col0 + - 9 FROM tab0 AS cor0
----
-26
-36
46

query I rowsort
SELECT ALL col0 + - + col1 - - col2 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - SUM( + col1 ) + + + 6 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - SUM ( + col1 ) + + + 6 FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT + col1 + ( - - CAST( NULL AS SIGNED ) ) * + 54 * 32 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + col1 + ( - - CAST ( NULL AS INTEGER ) ) * + 54 * 32 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col0 + 47 AS col2, - 28 + + + 93 FROM tab2
----
-17
65
-28
65
1
65

query III rowsort
SELECT * FROM tab0 WHERE + + 58 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT - MAX( ALL - 39 ) - - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2768
SELECT - MAX ( ALL - 39 ) - - COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL + MIN( + - col0 ) col2 FROM tab0 AS cor0 WHERE NOT 10 NOT BETWEEN col1 AND col0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2769
SELECT ALL + MIN ( + - col0 ) col2 FROM tab0 AS cor0 WHERE NOT 10 NOT BETWEEN col1 AND col0
----
-97

query I rowsort
SELECT DISTINCT 60 - - - col0 * - 74 * + 61 FROM tab1
----
230274
383750
410834

query III rowsort
SELECT * FROM tab1 WHERE + ( + 89 ) NOT BETWEEN - col1 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL + COUNT( * ) - 53 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + COUNT ( * ) - 53 FROM tab0
----
-50

query II rowsort
SELECT 46, col1 * + col1 + - col1 * - - col0 AS col0 FROM tab2
----
46
-536
46
1001
46
255

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2774
SELECT DISTINCT + col0, col1 * CAST( NULL AS DECIMAL ) * - 51 + + 28 + - col0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2774
SELECT DISTINCT + col0, col1 * CAST ( NULL AS REAL ) * - 51 + + 28 + - col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT 35 DIV + 21 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2775
SELECT 35 / + 21 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2776
SELECT ALL - COUNT( * ) AS col0, ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2776
SELECT ALL - COUNT ( * ) AS col0, ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3
3

query II rowsort
SELECT col0, - 66 AS col0 FROM tab1 AS cor0
----
51
-66
85
-66
91
-66

query I rowsort
SELECT ALL ( 4 ) AS col0 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 18 AND - 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2781
SELECT ALL CAST( + col1 AS SIGNED ) AS col2, 68 * col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-2781
SELECT ALL CAST ( + col1 AS INTEGER ) AS col2, 68 * col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT ( ( + - CAST( NULL AS SIGNED ) ) ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2783
SELECT ( ( + - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2784
SELECT * FROM tab0 WHERE NOT NULL >= ( + + CAST( + col1 AS SIGNED ) + + - 66 )
----

skipif mysql # not compatible
query III rowsort label-2784
SELECT * FROM tab0 WHERE NOT NULL >= ( + + CAST ( + col1 AS INTEGER ) + + - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT COUNT( + - ( + 93 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2785
SELECT COUNT ( + - ( + 93 ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2788
SELECT ALL + ( CAST( col0 AS DECIMAL ) ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + ( CAST ( col0 AS REAL ) ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL ( + COUNT( * ) ) - - 58 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
67

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL ( + COUNT ( * ) ) - - 58 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT ALL - col0 + - - col1 + + col0 DIV - 98 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - col0 + - - col1 + + col0 / - 98 FROM tab2
----
-8
13
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NULL = NULL
----

query I rowsort
SELECT ALL 48 + - col2 + col2 * + 18 FROM tab0 AS cor0
----
1731
218
847

query I rowsort
SELECT DISTINCT - - 55 FROM tab2 cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL + CAST( NULL AS SIGNED ) * + 47 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL + CAST ( NULL AS INTEGER ) * + 47 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) + - - col2 - + col0 IS NULL
----

query I rowsort
SELECT - - 42 * - + col2 AS col0 FROM tab1 AS cor0
----
-2478
-2856
-4032

query I rowsort
SELECT DISTINCT - + ( - + col1 ) - + + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT DISTINCT - 3 + col2 DIV + 78 AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT - 3 + col2 / + 78 AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT DISTINCT COUNT( * ) + - COUNT( + col1 ) * + 63, + 48 col1 FROM tab1
----
-186
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2799
SELECT DISTINCT COUNT ( * ) + - COUNT ( + col1 ) * + 63, + 48 col1 FROM tab1
----
-186
48

query I rowsort
SELECT DISTINCT 71 * + col2 AS col0 FROM tab0
----
3337
7029
710

query I rowsort
SELECT ALL 69 * 95 AS col2 FROM tab2
----
6555
6555
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT SUM( DISTINCT + col2 ) * - COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT SUM ( DISTINCT + col2 ) * - COUNT ( * ) FROM tab1
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT SUM( - ( + col1 ) ) * - - 41 - + 59 + + MAX( 59 ) * - 66 FROM tab1
----
-6659

skipif mysql # not compatible
query I rowsort label-2803
SELECT SUM ( - ( + col1 ) ) * - - 41 - + 59 + + MAX ( 59 ) * - 66 FROM tab1
----
-6659

query I rowsort
SELECT + col0 + - + 87 AS col2 FROM tab0 AS cor0
----
-72
0
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col0, - 3, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 / + 9 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 / + 9 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 80 * + col1 AS col0 FROM tab1
----
1120
3760
400

query II rowsort
SELECT col0 * + + 22, - col1 * + + 78 + + + 2 AS col1 FROM tab1
----
1122
-1090
1870
-388
2002
-3664

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT DISTINCT ( + COUNT( * ) ), + 2 AS col0 FROM tab1
----
3
2

skipif mysql # not compatible
query II rowsort label-2809
SELECT DISTINCT ( + COUNT ( * ) ), + 2 AS col0 FROM tab1
----
3
2

query I rowsort
SELECT ALL 77 - - + col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

query I rowsort
SELECT - 27 * - ( - 49 ) * - col0 AS col2 FROM tab1 AS cor0
----
112455
120393
67473

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + 30 * - col1 * - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2814
SELECT DISTINCT - col2 * - CAST( NULL AS DECIMAL ) * + 82 FROM tab2 WHERE NULL IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - col2 * - CAST ( NULL AS REAL ) * + 82 FROM tab2 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT ALL - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT 63 + col1 AS col0 FROM tab2
----
114
130
140

query I rowsort
SELECT + 54 AS col0 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 + + col1 + + 56, col2 FROM tab1 AS cor0
----
120
59
166
96
171
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT AVG ( DISTINCT + 2 ) - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT AVG ( DISTINCT + 2 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 78 + col1 AS col2 FROM tab2 AS cor0
----
129
145
155

query I rowsort
SELECT DISTINCT - col2 * + - ( + col2 ) AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * col1 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2823
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2823
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE - + col1 IS NULL
----

query I rowsort
SELECT - 48 - + - 80 AS col0 FROM tab2
----
32
32
32

onlyif mysql # DIV for integer division: 
query II rowsort label-2825
SELECT + - 69 * + - 14 - - col1 DIV + col1, - col0 * + + col1 AS col1 FROM tab2 cor0
----
967
-2346
967
-4928
967
-5025

skipif mysql # not compatible
query II rowsort label-2825
SELECT + - 69 * + - 14 - - col1 / + col1, - col0 * + + col1 AS col1 FROM tab2 cor0
----
967
-2346
967
-4928
967
-5025

query I rowsort
SELECT - + col2 + + + col1 * - - 47 - - 57 FROM tab0 AS cor0
----
1034
3817
5

query I rowsort
SELECT ALL - + 14 + - col1 + + - 9 AS col1 FROM tab1 AS cor0
----
-28
-37
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL - 75 * - COUNT( * ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL - 75 * - COUNT ( * ) FROM tab0 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 7 BETWEEN - - col0 AND col0 * + + col2
----

query I rowsort
SELECT + col0 + - - 67 AS col2 FROM tab0 AS cor0
----
154
164
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT - MIN( + + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT - MIN ( + + 42 ) FROM tab0
----
-42

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab1 WHERE + col0 * + ( - 5 ) + - - col0 - col0 + col0 * - 27 * + ( col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL - MAX( - col2 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT ALL - MAX ( - col2 ) col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + COUNT( * ) * + MIN( - col0 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-2834
SELECT + COUNT ( * ) * + MIN ( - col0 ) FROM tab1
----
-273

query I rowsort
SELECT 89 * + col2 AS col1 FROM tab1
----
5251
6052
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT + 64 * COUNT( * ) * - - 16 FROM tab2 AS cor0
----
3072

skipif mysql # not compatible
query I rowsort label-2836
SELECT + 64 * COUNT ( * ) * - - 16 FROM tab2 AS cor0
----
3072

query I rowsort
SELECT ALL 7 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - + 32 + + + 23 * 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT - col0 < + 13
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0 WHERE NOT col0 + col1 <= - col0
----
46
64
75

query I rowsort
SELECT 86 * col1 AS col1 FROM tab2
----
4386
5762
6622

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 46 IS NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT col2 * + - 99 * - col2 FROM tab1
----
344619
457776
912384

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT - MIN( ALL 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - MIN ( ALL 89 ) FROM tab2
----
-89

query I rowsort
SELECT + - 40 * - - 32 FROM tab1 AS cor0
----
-1280
-1280
-1280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2846
SELECT ALL ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 85
----

query II rowsort
SELECT DISTINCT - + col0 AS col1, - ( + col2 ) FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL - + COUNT( * ) FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - + COUNT ( * ) FROM tab0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT DISTINCT col1 * + 29 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT col1 * + 29 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT - ( - 99 ), + col0 FROM tab0
----
99
15
99
87
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT ALL 73 DIV col1 DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL 73 / col1 / + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT - COUNT( ALL + + ( + col2 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - COUNT ( ALL + + ( + col2 ) ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 > NULL
----

query I rowsort
SELECT DISTINCT - 77 * + 35 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2856
SELECT DISTINCT - COUNT( * ) + 84 AS col1, COUNT( * ) FROM tab2 AS cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-2856
SELECT DISTINCT - COUNT ( * ) + 84 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
81
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 col2, - col0 * + ( - + col2 ) col0 FROM tab1 cor0 WHERE NULL <> col1 + + ( + + col1 )
----

query I rowsort
SELECT 48 * + 36 * - col1 * + + col0 * - - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-16258655
-274663785
-31492785

query I rowsort
SELECT col1 + - 40 * + - col0 * col1 FROM tab2
----
197197
201067
93891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT DISTINCT - col1 + - 37 - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - col1 + - 37 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2861
SELECT DISTINCT + 79 AS col2, - COUNT( DISTINCT col2 ) DIV 78 FROM tab2
----
79
0

skipif mysql # not compatible
query II rowsort label-2861
SELECT DISTINCT + 79 AS col2, - COUNT ( DISTINCT col2 ) / 78 FROM tab2
----
79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - 57 * - MAX( + - col0 ) + + + 98 FROM tab1 AS cor0
----
-2809

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - 57 * - MAX ( + - col0 ) + + + 98 FROM tab1 AS cor0
----
-2809

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col0
----

query II rowsort
SELECT DISTINCT + 57 + - - col2 - + col1 AS col0, col0 AS col1 FROM tab2 cor0
----
20
64
29
46
48
75

query II rowsort
SELECT + col1, col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL - 7 + + 69 AS col0 FROM tab0 cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT DISTINCT + col2 * - col1 - + + 49 * + - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + col2 * - col1 - + + 49 * + - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 - + col1 AS col0, ( - - 6 ) AS col2 FROM tab0
----
0
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT col0 - - col0 DIV ( + 28 ) AS col0 FROM tab0
----
100
15
90

skipif mysql # not compatible
query I rowsort label-2869
SELECT col0 - - col0 / ( + 28 ) AS col0 FROM tab0
----
100
15
90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col2, col1 * - - ( col2 ) + - col1 )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= - 60
----

query I rowsort
SELECT - 64 AS col2 FROM tab0 AS cor0 WHERE NOT 39 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 92 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + COUNT( DISTINCT col1 ) * 24 AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2874
SELECT + COUNT ( DISTINCT col1 ) * 24 AS col1 FROM tab2
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - col2 col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + 13 > 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - + col2 + - col1 + ( + col0 ) + + col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT ALL + 13 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + 13 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT + CAST( NULL AS SIGNED ) * - - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT + CAST ( NULL AS INTEGER ) * - - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2880
SELECT DISTINCT - 26 AS col2, + ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - 13 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-2880
SELECT DISTINCT - 26 AS col2, + ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - 13 + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2881
SELECT * FROM tab2 AS cor0 WHERE NOT + 76 * + CAST( - - 97 AS DECIMAL ) = + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2881
SELECT * FROM tab2 AS cor0 WHERE NOT + 76 * + CAST ( - - 97 AS REAL ) = + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT + col0 * + ( + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT + col0 * + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 53 * + - col1 AS col0 FROM tab1 AS cor0
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL - COUNT( * ) * + - ( + MIN( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - COUNT ( * ) * + - ( + MIN ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT - 57 AS col0 FROM tab2 WHERE NOT - col1 * + - 34 IS NULL
----
-57
-57
-57

query I rowsort
SELECT ALL 82 * + - col0 FROM tab1
----
-4182
-6970
-7462

query II rowsort
SELECT ALL 54 AS col0, col2 FROM tab1
----
54
59
54
68
54
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2888
SELECT * FROM tab0 WHERE - col2 + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2888
SELECT * FROM tab0 WHERE - col2 + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL 55 + + + COUNT( * ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL 55 + + + COUNT ( * ) AS col2 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + - MIN( ALL + col0 ) + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-2890
SELECT + - MIN ( ALL + col0 ) + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT + COUNT( * ), + 61 AS col1 FROM tab0 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-2892
SELECT + COUNT ( * ), + 61 AS col1 FROM tab0 AS cor0
----
3
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT + + 49 DIV + 53 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + + 49 / + 53 AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col1, + 51 * col1 AS col1 FROM tab1 AS cor0
----
14
714
47
2397
5
255

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
47

query I rowsort
SELECT ALL 73 + - ( - + col2 ) FROM tab0
----
120
172
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT 92 + col1 FROM tab1 AS cor0
----
106
139
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( ( + 62 ), - 51 * - + 22, + + 97 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2901
SELECT CAST( NULL AS DECIMAL ) + + 19 * - + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT CAST ( NULL AS REAL ) + + 19 * - + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2902
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + - col2 ) + - CAST( - - col2 AS SIGNED ) NOT IN ( + + col0 + + col1, - 60 / - CAST( + col2 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2902
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + - col2 ) + - CAST ( - - col2 AS INTEGER ) NOT IN ( + + col0 + + col1, - 60 / - CAST ( + col2 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT ALL + - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL + - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - - 50 / 86 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + - col1 * + - col1 + 89 AS col0 FROM tab1 AS cor0 WHERE - 90 >= - - col1
----

query II rowsort
SELECT col0, 34 AS col1 FROM tab1
----
51
34
85
34
91
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 BETWEEN NULL AND - + col0 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2908
SELECT - CAST( NULL AS SIGNED ), + col1 + col0 AS col2 FROM tab0
----
NULL
108
NULL
96
NULL
98

skipif mysql # not compatible
query II rowsort label-2908
SELECT - CAST ( NULL AS INTEGER ), + col1 + col0 AS col2 FROM tab0
----
NULL
108
NULL
96
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - COUNT( - col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2909
SELECT - COUNT ( - col2 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2910
SELECT - - SUM( - 51 ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2910
SELECT - - SUM ( - 51 ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT - MAX( + 13 ) col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2912
SELECT DISTINCT - MAX ( + 13 ) col0 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT + + 11 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT col0 * + + col1 * + col2, col2 AS col0 FROM tab1
----
25075
59
290836
68
68544
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT DISTINCT + 65 * col2 DIV - 75 FROM tab2
----
-19
-34
-50

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + 65 * col2 / - 75 FROM tab2
----
-19
-34
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT ( 57 ) DIV ( col2 ) FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2916
SELECT ( 57 ) / ( col2 ) FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2917
SELECT ALL 79 * 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-2917
SELECT ALL 79 * CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 10 * - col0 * - + 88 AS col0 FROM tab1
----
44880
74800
80080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2919
SELECT - CAST( NULL AS DECIMAL ) + + ( + + COUNT( - 66 ) ) AS col2 FROM tab0 WHERE + - 59 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT - CAST ( NULL AS REAL ) + + ( + + COUNT ( - 66 ) ) AS col2 FROM tab0 WHERE + - 59 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT - MIN( DISTINCT - 94 ) * + COUNT( * ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-2920
SELECT - MIN ( DISTINCT - 94 ) * + COUNT ( * ) FROM tab0
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 col1 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT DISTINCT - 8 * - col0 + + + col2, - col2 AS col0 FROM tab2
----
391
-23
552
-40
658
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2923
SELECT DISTINCT - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + col0 * + col1 * 83 / col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + col0 * + col1 * 83 / col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT SUM( 13 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0, - 24 + + - col2 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT SUM ( 13 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0, - 24 + + - col2 * col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT - - col1 + ( + CAST( NULL AS SIGNED ) ) - 5 + - + col2 * + 0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2925
SELECT - - col1 + ( + CAST ( NULL AS INTEGER ) ) - 5 + - + col2 * + 0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + - col2 * 42 FROM tab1
----
-146202
-194208
-387072

query I rowsort
SELECT ALL col2 * 66 AS col1 FROM tab0
----
3102
6534
660

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - MIN( ALL col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2928
SELECT - MIN ( ALL col2 ) AS col2 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab0 WHERE 53 / + col1 <> - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN - + 25 AND - ( - col0 ) )
----

query I rowsort
SELECT DISTINCT + col0 * 55 AS col1 FROM tab0 AS cor0
----
4785
5335
825

query I rowsort
SELECT ALL + 17 + - - col0 FROM tab2 AS cor0
----
63
81
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 81 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 81 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + + MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2934
SELECT + + MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT - - col0, col1 * + 83 + + + col0 AS col0 FROM tab0 AS cor0
----
15
6738
87
1830
97
180

query I rowsort
SELECT DISTINCT - col0 * - + col1 FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT DISTINCT - col1 DIV col0 * + ( 94 ) * - col1 * col1 + + 29 AS col0 FROM tab2
----
244523
29
557355

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - col1 / col0 * + ( 94 ) * - col1 * col1 + + 29 AS col0 FROM tab2
----
244523
29
557355

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - COUNT( ALL + col0 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - COUNT ( ALL + col0 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2940
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2940
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT col1 >= + - col2 + + + col0 * + ( 68 ) + col1 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT col1 >= + - col2 + + + col0 * + ( 68 ) + col1 + - col1
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + - 73 FROM tab2 AS cor0
----
-22
-6
4

query I rowsort
SELECT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT - + 41, - col0 AS col1 FROM tab1 AS cor0
----
-41
-51
-41
-85
-41
-91

query I rowsort
SELECT DISTINCT + + ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-2946
SELECT + + col2 AS col2, - 57 DIV col0 AS col1 FROM tab1 cor0
----
59
0
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-2946
SELECT + + col2 AS col2, - 57 / col0 AS col1 FROM tab1 cor0
----
59
0
68
0
96
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT ALL 43 * - ( - CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2948
SELECT ALL 43 * - ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 - - 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE - ( - + 59 ) <= + - col0
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE - ( - + 59 ) <= + - col0
----
0

query I rowsort
SELECT + 73 + + col0 AS col1 FROM tab0 WHERE ( - + 77 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 + col0 col2 FROM tab1
----
128
162
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + 42 * + + COUNT( * ) * - SUM( + + 69 ) * + + 67 * - 63 FROM tab2
----
110092122

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + 42 * + + COUNT ( * ) * - SUM ( + + 69 ) * + + 67 * - 63 FROM tab2
----
110092122

query III rowsort
SELECT + col1, - 59 AS col0, 31 - + + 60 * + col2 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
9 values hashing to 8d78c0b29252d97518fb1f4bdf1b8a18

query I rowsort
SELECT - - col1 * - col2 * - ( - 74 ) * col2 AS col1 FROM tab0 AS cor0
----
-13240746
-155400
-725274

query I rowsort
SELECT + 27 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT ALL col1 DIV - col0 + + col1 col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2957
SELECT ALL col1 / - col0 + + col1 col0 FROM tab1 AS cor0
----
14
47
5

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 17 IS NULL
----

query I rowsort
SELECT - col0 + 99 FROM tab0 WHERE NOT + col2 * - 10 + + + col2 IS NULL
----
12
2
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( - + 17 ) ) col0 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2961
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2961
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 * - col2 IS NULL
----

query I rowsort
SELECT + - 16 * 24 AS col1 FROM tab2 AS cor0
----
-384
-384
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2964
SELECT DISTINCT + col0 DIV CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT + col0 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT COUNT( DISTINCT col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT 51 AS col1, col1 FROM tab0
----
51
1
51
21
51
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT DISTINCT col2 DIV 65 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT col2 / 65 AS col2 FROM tab1
----
0
1

query II rowsort
SELECT ALL + col1 AS col1, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL MAX( + 14 ) AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL MAX ( + 14 ) AS col0 FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT + CAST( - 37 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT + CAST ( - 37 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-37

query II rowsort
SELECT DISTINCT - + col0, 78 AS col1 FROM tab1 AS cor0
----
-51
78
-85
78
-91
78

query I rowsort
SELECT - 9 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT COUNT( * ) * - MIN( + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2973
SELECT COUNT ( * ) * - MIN ( + col1 ) FROM tab0
----
-3

query I rowsort
SELECT col0 * - + col1 AS col2 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT 16 + - col2 AS col2, + col0 AS col1 FROM tab0
----
-31
15
-83
97
6
87

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 95 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT ALL - col2 DIV + 97 + + + col1 + + + 41 FROM tab0 AS cor0
----
122
41
62

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - col2 / + 97 + + + col1 + + + 41 FROM tab0 AS cor0
----
122
41
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 - col0
----

query I rowsort
SELECT DISTINCT - 18 * + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-1746
-21870
-32886

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT - 40 DIV - 78 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 40 / - 78 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - ( - col1 ) * - col1 AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT DISTINCT col1 + CAST( col1 AS SIGNED ) FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT col1 + CAST ( col1 AS INTEGER ) FROM tab0
----
162
2
42

query I rowsort
SELECT ALL - 9 * col2 AS col0 FROM tab1
----
-531
-612
-864

query I rowsort
SELECT ALL 59 + + 67 AS col2 FROM tab2
----
126
126
126

query I rowsort
SELECT DISTINCT + ( + ( + 48 ) ) FROM tab0
----
48

query II rowsort
SELECT ALL 26 + col0 + 58, - col1 AS col1 FROM tab2
----
130
-51
148
-77
159
-67

query I rowsort
SELECT + 4 + col1 FROM tab2
----
55
71
81

query I rowsort
SELECT ALL - 93 + + - col2 AS col1 FROM tab1
----
-152
-161
-189

query I rowsort
SELECT - ( col0 ) * - ( + 25 ) + - - col2 FROM tab2 AS cor0
----
1173
1640
1933

query II rowsort
SELECT - 42 AS col1, 36 + + col1 AS col1 FROM tab1 AS cor0
----
-42
41
-42
50
-42
83

query I rowsort
SELECT - 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2993
SELECT DISTINCT + col1 * + CAST( 85 AS SIGNED ) * + col0 DIV + col0 - - col2 AS col0 FROM tab0
----
1795
184
6932

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + col1 * + CAST ( 85 AS INTEGER ) * + col0 / + col0 - - col2 AS col0 FROM tab0
----
1795
184
6932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT - + COUNT( * ) * + - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + + - col1 BETWEEN ( NULL ) AND - 9
----

query I rowsort
SELECT + col2 * + - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col0 FROM tab0 cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + + 89 * + COUNT( * ) FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + + 89 * + COUNT ( * ) FROM tab0 AS cor0
----
267

query I rowsort
SELECT ALL - ( col2 ) * 38 - - col1 + - + col1 * + col0 * - col0 + col0 + + - col0 AS col1 FROM tab0 AS cor0
----
158590
16520
5648

query I rowsort
SELECT - - col0 * 61 AS col1 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT ( - - col2 ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - 75 * + col0 AS col2 FROM tab2
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 1 col0, 61 * 17 + 52 FROM tab1
----
1
1089

query III rowsort
SELECT * FROM tab2 WHERE NOT + 54 * + col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( - 30 ) - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 27 AS col0, col1 + + col2 col0 FROM tab1 AS cor0
----
-27
110
-27
115
-27
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT col0 + - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT col0 + - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + + COUNT( * ) * + + ( + + 92 ) + - COUNT( * ) col2 FROM tab1 cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3008
SELECT + + COUNT ( * ) * + + ( + + 92 ) + - COUNT ( * ) col2 FROM tab1 cor0
----
273

query I rowsort
SELECT ( + 16 ) * col2 + + - col1 + - 61 FROM tab1 AS cor0
----
1461
878
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 60 col1 FROM tab2 AS cor0
----
106
124
135

query II rowsort
SELECT DISTINCT + + 47 AS col0, - col2 FROM tab0 AS cor0
----
47
-10
47
-47
47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT SUM( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - 66 - 37 AND - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT SUM ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - 66 - 37 AND - 81
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - 87 AS col0 FROM tab2
----
-10
-20
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3014
SELECT - COUNT( * ) AS col1, - MAX( ALL - + col1 ) AS col2 FROM tab1
----
-3
5

skipif mysql # not compatible
query II rowsort label-3014
SELECT - COUNT ( * ) AS col1, - MAX ( ALL - + col1 ) AS col2 FROM tab1
----
-3
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT ALL col1 DIV 17 * + col0 + 73 - - col1 FROM tab1 AS cor0
----
302
78
87

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL col1 / 17 * + col0 + 73 - - col1 FROM tab1 AS cor0
----
302
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT 64 + - COUNT( * ) FROM tab1 cor0
----
61

skipif mysql # not compatible
query I rowsort label-3016
SELECT 64 + - COUNT ( * ) FROM tab1 cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL - 2 * - COUNT( * ) + + 67 + MIN( + col0 ) * + - MAX( ALL + col1 ) FROM tab1 AS cor0
----
-2324

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - 2 * - COUNT ( * ) + + 67 + MIN ( + col0 ) * + - MAX ( ALL + col1 ) FROM tab1 AS cor0
----
-2324

query I rowsort
SELECT ALL + 63 * - col1 + - + 90 + + + col1 FROM tab0 AS cor0
----
-1392
-152
-5112

query II rowsort
SELECT DISTINCT - - 81 AS col0, col0 + + + 87 * + col2 + - + col1 AS col1 FROM tab2 AS cor0
----
81
1996
81
3467
81
5054

query I rowsort
SELECT ALL + col0 + - 60 FROM tab0 AS cor0
----
-45
27
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - 93 + COUNT( - + col2 ) AS col2 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3021
SELECT - 93 + COUNT ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ALL + 39 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT + 48 + - 83 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab0, tab0 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + + col1 + + col1 BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT COUNT( * ) * 82 DIV + 35 AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3026
SELECT COUNT ( * ) * 82 / + 35 AS col0 FROM tab0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 70 col1 FROM tab1
----
3290
350
980

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 61 <= col0
----
15
81
47

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - ( col0 ) NOT BETWEEN NULL AND + ( - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + + col0 - col0 col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT ALL + 67 * 39 * - - col0 AS col1 FROM tab2 AS cor0
----
120198
167232
195975

query II rowsort
SELECT col1 AS col1, col2 FROM tab2 AS cor0 WHERE NOT 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL + COUNT( - col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3033
SELECT ALL + COUNT ( - col0 ) col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 64 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 NOT BETWEEN + col2 AND 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 96 * + - col2 * - col0 col2, + 34 * - col0 AS col1 FROM tab0 cor0
----
-67680
-510
-83520
-2958
-921888
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - 4 * + COUNT( * ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3037
SELECT - 4 * + COUNT ( * ) FROM tab1 cor0
----
-12

query I rowsort
SELECT ALL - col2 * + 57 AS col1 FROM tab0 AS cor0
----
-2679
-5643
-570

query I rowsort
SELECT - - 55 FROM tab2 AS cor0 WHERE NOT col0 + + - 28 IS NULL
----
55
55
55

query II rowsort
SELECT DISTINCT - 29, col1 FROM tab2 AS cor0
----
-29
51
-29
67
-29
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT ALL 75 DIV + ( - SUM( + + col1 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL 75 / + ( - SUM ( + + col1 ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - COUNT( ALL 89 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3042
SELECT - COUNT ( ALL 89 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT + 94 * COUNT( * ) * - COUNT( * ) col2 FROM tab2
----
-846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3043
SELECT + 94 * COUNT ( * ) * - COUNT ( * ) col2 FROM tab2
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + MAX( + 96 ) * - 20 + + 34 AS col1 FROM tab2
----
-1886

skipif mysql # not compatible
query I rowsort label-3044
SELECT + MAX ( + 96 ) * - 20 + + 34 AS col1 FROM tab2
----
-1886

query I rowsort
SELECT ALL 61 + + 34 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + MIN( - 97 ) * + - 74 + SUM( DISTINCT - + col1 ) FROM tab1
----
7112

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + MIN ( - 97 ) * + - 74 + SUM ( DISTINCT - + col1 ) FROM tab1
----
7112

query I rowsort
SELECT ALL - col1 + + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-19
195
76

query II rowsort
SELECT - 37 * - col2 * - col0 AS col1, col0 AS col2 FROM tab2 AS cor0 WHERE + 79 * 7 + col2 IS NOT NULL
----
-160950
75
-39146
46
-94720
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3049
SELECT + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3049
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + AVG ( ALL - + 4 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 32 + + ( + col0 ) col0, 58 * + 83 + - - 13 AS col2 FROM tab2 cor0
----
107
4827
78
4827
96
4827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 + - 1 col0 FROM tab1 cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL MAX( DISTINCT 34 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL MAX ( DISTINCT 34 ) FROM tab0 AS cor0
----
34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + - col1 * 44 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL + CAST( 88 AS SIGNED ) FROM tab1
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + CAST ( 88 AS INTEGER ) FROM tab1
----
88
88
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT DISTINCT 63 AS col2, COUNT( * ) + 75 AS col0 FROM tab0
----
63
78

skipif mysql # not compatible
query II rowsort label-3056
SELECT DISTINCT 63 AS col2, COUNT ( * ) + 75 AS col0 FROM tab0
----
63
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT col0 DIV col0 * - + col1 * - col2 - - - 10 FROM tab1
----
1334
285
3186

skipif mysql # not compatible
query I rowsort label-3057
SELECT col0 / col0 * - + col1 * - col2 - - - 10 FROM tab1
----
1334
285
3186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 - - 96 + - + 48 + 94 - - col2 * 59 col2 FROM tab2
----
1466
2469
3531

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT COUNT( * ) - - COUNT( * ) * - + COUNT( * ) + + 2 AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( * ) - - COUNT ( * ) * - + COUNT ( * ) + + 2 AS col0 FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT - 13 * + COUNT( * ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - 13 * + COUNT ( * ) AS col0 FROM tab0
----
-39

query I rowsort
SELECT DISTINCT col1 + + 98 FROM tab1
----
103
112
145

query III rowsort
SELECT * FROM tab1 WHERE NULL < - + 83
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 IS NOT NULL AND NOT col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 92 + - col2 AS col0 FROM tab2
----
34
52
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT - CAST( 73 AS SIGNED ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - CAST ( 73 AS INTEGER ) AS col1 FROM tab1
----
-73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 29 / + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 95 col1, 11 FROM tab0 AS cor0
----
-95
11
-95
11
-95
11

query I rowsort
SELECT DISTINCT + + 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT - 73 * CAST( 51 AS SIGNED ) AS col1 FROM tab2 cor0
----
-3723
-3723
-3723

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 73 * CAST ( 51 AS INTEGER ) AS col1 FROM tab2 cor0
----
-3723
-3723
-3723

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1 * - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT + col2 DIV - + col0 + + - 25 + - col2 AS col2 FROM tab1 AS cor0
----
-122
-84
-93

skipif mysql # not compatible
query I rowsort label-3072
SELECT + col2 / - + col0 + + - 25 + - col2 AS col2 FROM tab1 AS cor0
----
-122
-84
-93

query I rowsort
SELECT + ( + 56 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( col0 )
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT + 20 * - 86 + + 69 * + COUNT( * ) / - + SUM( DISTINCT - - 93 ) FROM tab0 WHERE NOT - 39 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT + 20 * - 86 + + 69 * + COUNT ( * ) / - + SUM ( DISTINCT - - 93 ) FROM tab0 WHERE NOT - 39 >= NULL
----
NULL

query II rowsort
SELECT DISTINCT + 42 AS col2, col2 * - col1 FROM tab2
----
42
-1173
42
-3080
42
-3886

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + col2 + - + col1 - + 47 * col2 BETWEEN - 90 AND NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE 83 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col1 ) col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT + col0 AS col2, + 15 FROM tab0 AS cor0
----
15
15
87
15
97
15

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - col2 * 41 FROM tab2
----
-1640
-2378
-943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT MAX( DISTINCT 69 ) DIV 75 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT MAX ( DISTINCT 69 ) / 75 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + MAX( ALL - 88 ) * COUNT( * ) - + COUNT( * ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-3084
SELECT + MAX ( ALL - 88 ) * COUNT ( * ) - + COUNT ( * ) FROM tab2
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT SUM( + col2 ) AS col1 FROM tab2 WHERE ( + 29 ) IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT SUM ( + col2 ) AS col1 FROM tab2 WHERE ( + 29 ) IS NOT NULL
----
121

query I rowsort
SELECT - 24 + + 41 FROM tab0
----
17
17
17

query I rowsort
SELECT - 88 FROM tab1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - ( - col1 ) * + col1 AS col1 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - 14 * - COUNT( DISTINCT 91 ) AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 14 * - COUNT ( DISTINCT 91 ) AS col2 FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + COUNT( * ) * + 30 AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3090
SELECT + COUNT ( * ) * + 30 AS col0 FROM tab0
----
90

query III rowsort
SELECT * FROM tab0 WHERE col0 + 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3092
SELECT ALL MIN( CAST( - 3 AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL MIN ( CAST ( - 3 AS INTEGER ) ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT ALL 83 DIV col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL 83 / col2 AS col1 FROM tab2
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT ALL ( - col2 ) DIV ( - col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL ( - col2 ) / ( - col2 ) FROM tab1
----
1
1
1

query I rowsort
SELECT - col2 + 95 AS col2 FROM tab0
----
-4
48
85

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + 51 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + col2 * col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( - col2 + col1 )
----

query I rowsort
SELECT DISTINCT 62 * + col0 AS col1 FROM tab2 AS cor0
----
2852
3968
4650

query I rowsort
SELECT DISTINCT - 36 * + 28 FROM tab2 cor0
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL col2 AS col1 FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) * + 79 ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL col2 AS col1 FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) * + 79 ) IS NULL
----
10
47
99

query I rowsort
SELECT col2 * + 50 AS col2 FROM tab1
----
2950
3400
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT MAX( - col0 ) FROM tab2 AS cor0 WHERE NOT - col2 - - col0 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-3105
SELECT MAX ( - col0 ) FROM tab2 AS cor0 WHERE NOT - col2 - - col0 IS NULL
----
-46

query I rowsort
SELECT ALL - 93 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IN ( + col1 )
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT ALL COUNT( * ) + 6 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL COUNT ( * ) + 6 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ( - 95 ) * 61 FROM tab1
----
-5795
-5795
-5795

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT MAX( + 45 ) * COUNT( * ) FROM tab1 WHERE NOT ( + col2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT MAX ( + 45 ) * COUNT ( * ) FROM tab1 WHERE NOT ( + col2 ) <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT + col0 DIV - 94 * col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT + col0 / - 94 * col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT + MAX( - + 74 ) col0 FROM tab0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3112
SELECT DISTINCT + MAX ( - + 74 ) col0 FROM tab0
----
-74

query I rowsort
SELECT DISTINCT + col0 + - 11 AS col1 FROM tab1
----
40
74
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT + 14 DIV + 7 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3114
SELECT + 14 / + 7 FROM tab1
----
2
2
2

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( - 73 + ( + ( col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT MIN( ALL + 96 ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3116
SELECT MIN ( ALL + 96 ) AS col1 FROM tab2
----
96

query I rowsort
SELECT DISTINCT - + col0 * + 7 * + 41 + col0 * col0 FROM tab1 AS cor0
----
-12036
-17170
-17836

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT ALL 20 * col1 + - 59 DIV col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
280
940
99

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL 20 * col1 + - 59 / col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
280
940
99

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 37 >= 35
----

query I rowsort
SELECT DISTINCT col1 * - 75 AS col0 FROM tab0
----
-1575
-6075
-75

query I rowsort
SELECT DISTINCT - - 15 + - 37 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + - col2 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( col2 ) * col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 46 BETWEEN col0 AND NULL
----
3481
4624
9216

query I rowsort
SELECT DISTINCT col2 + + 64 FROM tab1 cor0
----
123
132
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * + ( 92 ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 69 * + col0 FROM tab2 AS cor0 WHERE - col0 <> col2 / col0 + col2 * col2
----
3174
4416
5175

query I rowsort
SELECT DISTINCT + 44 + + col1 * 20 FROM tab0 AS cor0
----
1664
464
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 65 NOT BETWEEN NULL AND + ( - col2 )
----

query I rowsort
SELECT ALL + 54 - + + col0 FROM tab2 AS cor0
----
-10
-21
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT MAX( DISTINCT - + col0 ) - - - 36 col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3130
SELECT DISTINCT MAX ( DISTINCT - + col0 ) - - - 36 col0 FROM tab1 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT + col2 - + + ( - - ( 82 ) ) + - col0 / - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + col2 - + + ( - - ( 82 ) ) + - col0 / - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT - 31 * - MAX( DISTINCT 83 ) FROM tab0
----
2573

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT - 31 * - MAX ( DISTINCT 83 ) FROM tab0
----
2573

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 IN ( - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT ALL + col1 * CAST( + + col0 AS SIGNED ) * - col0 * col1 AS col2 FROM tab2
----
-24285184
-25250625
-5503716

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + col1 * CAST ( + + col0 AS INTEGER ) * - col0 * col1 AS col2 FROM tab2
----
-24285184
-25250625
-5503716

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN ( + 31 ) AND ( - 4 * - 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + 52 * COUNT( - - 4 ) AS col2 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 52 * COUNT ( - - 4 ) AS col2 FROM tab1
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT DISTINCT + 4 DIV - col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT + 4 / - col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col0 * - + col0 * - + col0 AS col2 FROM tab2
----
-262144
-421875
-97336

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 69 AS col2 FROM tab2 cor0
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT + CAST( + + 25 AS SIGNED ) FROM tab2 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-3141
SELECT + CAST ( + + 25 AS INTEGER ) FROM tab2 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 * + col2 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + - 52 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3144
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + COUNT( ALL + - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT - CAST ( NULL AS REAL ) / + COUNT ( ALL + - col2 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT ( + 83 * col1 ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL + COUNT( * ) * 92 + MIN( + col0 ) * COUNT( col1 ) FROM tab2 WHERE NOT 21 * - + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + COUNT ( * ) * 92 + MIN ( + col0 ) * COUNT ( col1 ) FROM tab2 WHERE NOT 21 * - + col2 <= NULL
----
NULL

query I rowsort
SELECT col0 * + 42 - - + col2 * - 85 * 23 + + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-15809
-189374
-91240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( ( + col0 ) ) <> NULL
----

query II rowsort
SELECT ALL col2 AS col2, 9 AS col1 FROM tab1
----
59
9
68
9
96
9

query II rowsort
SELECT + col0 AS col2, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT ALL + - col2 + col0 + ( - CAST( + 6 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
-51
17
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3151
SELECT ALL + - col2 + col0 + ( - CAST ( + 6 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-51
17
20

query II rowsort
SELECT - 14 AS col2, col2 * + col0 AS col0 FROM tab1 AS cor0
----
-14
4896
-14
5015
-14
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT - 50 DIV 29 + 58 FROM tab2
----
57
57
57

skipif mysql # not compatible
query I rowsort label-3153
SELECT - 50 / 29 + 58 FROM tab2
----
57
57
57

query I rowsort
SELECT - 92 - + + col0 FROM tab0 WHERE - col1 = + 66 + - col1
----

query I rowsort
SELECT - + 85 * col1 + - - col0 + + ( 66 ) AS col0 FROM tab2 AS cor0
----
-4223
-5554
-6415

query I rowsort
SELECT - ( 80 ) FROM tab2 AS cor0 WHERE ( col2 + + col2 BETWEEN ( + ( 57 ) ) AND ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 + - col0 * + 30 )
----

query I rowsort
SELECT DISTINCT + col2 * + 46 FROM tab2
----
1058
1840
2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3160
SELECT ALL COUNT( * ) DIV 68 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL COUNT ( * ) / 68 AS col1 FROM tab1
----
0

query I rowsort
SELECT - + ( - - 87 ) - + col1 FROM tab2 WHERE NOT - ( + - col1 ) * ( + col1 ) IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, col1 * - + col2 AS col2 FROM tab0
----
-15
-3807
-87
-210
-97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT + col0 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT + col0 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3165
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT AVG ( - col1 ) * + 14 * - MIN( 75 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3166
SELECT DISTINCT AVG ( - col1 ) * + 14 * - MIN ( 75 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 53 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 89 - 95 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9774036ad473adf81ced40cdeb46022c

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 81 * - col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3170
SELECT + col1 + - col0 AS col0, - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-8
NULL
13
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3170
SELECT + col1 + - col0 AS col0, - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-8
NULL
13
NULL
5
NULL

query I rowsort
SELECT DISTINCT - - col1 + 11 * + col1 AS col2 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + + SUM( DISTINCT 33 ) AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3172
SELECT + + SUM ( DISTINCT 33 ) AS col2 FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT ALL col1 / + CAST( NULL AS SIGNED ) + 7 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL col1 / + CAST ( NULL AS INTEGER ) + 7 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - ( - - col0 ) FROM tab0 cor0 WHERE + 81 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 46 * + + 7 col0 FROM tab0 AS cor0
----
-28014
-31234
-4830

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3176
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN - - CAST( NULL AS SIGNED ) - - col2 AND 89 + - - col2
----

skipif mysql # not compatible
query III rowsort label-3176
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN - - CAST ( NULL AS INTEGER ) - - col2 AND 89 + - - col2
----

query I rowsort
SELECT + 68 + - col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * + + 61 AS col0 FROM tab0
----
-1281
-4941
-61

query II rowsort
SELECT + 85 AS col1, + col1 AS col0 FROM tab0
----
85
1
85
21
85
81

query I rowsort
SELECT - + col0 - - - 60 * col0 FROM tab1 WHERE + col2 IS NOT NULL
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT - SUM( DISTINCT - 61 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-3181
SELECT - SUM ( DISTINCT - 61 ) FROM tab1
----
61

query I rowsort
SELECT - 40 - + 80 AS col0 FROM tab2
----
-120
-120
-120

query I rowsort
SELECT DISTINCT + col2 + + - col0 * + + col0 FROM tab0
----
-178
-7559
-9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT + + 2 + CAST( NULL AS SIGNED ) + - 9 * + col0 - + + ( - + col0 ) + + - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT + + 2 + CAST ( NULL AS INTEGER ) + - 9 * + col0 - + + ( - + col0 ) + + - col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT ALL + col2 + col2 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + col2 + col2 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT + 52 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT + CAST( - MAX( ALL 18 ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NOT NULL <= + + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + CAST ( - MAX ( ALL 18 ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NOT NULL <= + + 12 )
----
NULL

query I rowsort
SELECT ALL - 60 - - + ( + col2 ) FROM tab0 AS cor0
----
-13
-50
39

query II rowsort
SELECT ( - col2 ) + + + 13 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-46
-59
-55
-68
-83
-96

query II rowsort
SELECT ALL + col1 * + col0 + - 53 AS col0, - col1 FROM tab0 AS cor0
----
1162
-81
1774
-21
44
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 76 IN ( - - col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - MIN( ( + - 29 ) ) AS col2 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - MIN ( ( + - 29 ) ) AS col2 FROM tab2
----
29

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 45 > - - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 78 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 64 AND NULL
----

query II rowsort
SELECT - + col1, 46 AS col0 FROM tab0 AS cor0
----
-1
46
-21
46
-81
46

query II rowsort
SELECT DISTINCT - - col1, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT - + col1 > - 44 - 6
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( - col2 - ( + - col2 ) * col2 ) NOT BETWEEN col2 - - + col2 * - col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( - col2 - ( + - col2 ) * col2 ) NOT BETWEEN col2 - - + col2 * - col0 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT COUNT( * ) + COUNT( * ) FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3199
SELECT COUNT ( * ) + COUNT ( * ) FROM tab2, tab2 AS cor0
----
18

query I rowsort
SELECT 84 AS col0 FROM tab2 WHERE NOT NULL <= col1
----

query I rowsort
SELECT + 81 FROM tab1 AS cor0 WHERE NOT col0 * col2 = NULL
----

query I rowsort
SELECT + + 89 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
89
89
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 - - col2 ) NOT IN ( - col0 ) OR NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 20 / + + 59 AS col1 FROM tab1 WHERE NOT - col0 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + ( + + 12 ) ) + + col0 / col2 * + 48 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col0 / + + col2
----

query II rowsort
SELECT + col2 AS col2, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT col1 + - ( - ( col2 ) ) FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT 84 + + + col2 FROM tab1 AS cor0
----
143
152
180

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - col1 / - 7 NOT IN ( + 76 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - COUNT( - + ( - 68 ) ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3212
SELECT ALL - COUNT ( - + ( - 68 ) ) col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT - 36 * - - 79 + + col2 * - col2 FROM tab2 cor0
----
-3373
-4444
-6208

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL COUNT( DISTINCT - 8 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL COUNT ( DISTINCT - 8 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - - COUNT( * ) + - - 15 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3215
SELECT - - COUNT ( * ) + - - 15 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL + 52 + MAX( + col0 ) * + ( - COUNT( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
-239

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + 52 + MAX ( + col0 ) * + ( - COUNT ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
-239

query I rowsort
SELECT DISTINCT 38 + + col1 + - 75 FROM tab2
----
14
30
40

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT CAST( NULL AS SIGNED ) / 14 * - col1 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT CAST ( NULL AS INTEGER ) / 14 * - col1 * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + ( - - col1 ) ) * - col0 + - ( + - ( - + col2 ) ) AS col2 FROM tab0
----
-1262
-1837
-196

query III rowsort
SELECT * FROM tab0 WHERE col2 >= + col1 + - col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT COUNT( * ) DIV + 80 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT COUNT ( * ) / + 80 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT DISTINCT + col0 - - col2 DIV + - col0 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + col0 - - col2 / + - col0 FROM tab1 AS cor0
----
50
85
91

query I rowsort
SELECT 32 - - 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT + col1, 49 AS col0 FROM tab1 AS cor0
----
14
49
47
49
5
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL + ( + - ( - COUNT( ALL 34 ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + ( + - ( - COUNT ( ALL 34 ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE col0 * col0 + - col1 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL MAX( - 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL MAX ( - 98 ) FROM tab1
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col2 col1 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT - col0, - col2 FROM tab2 WHERE NOT col0 NOT BETWEEN col2 * + - 39 AND NULL
----

query II rowsort
SELECT ALL ( + 27 ) AS col0, col0 AS col2 FROM tab2
----
27
46
27
64
27
75

query II rowsort
SELECT col0, - 11 FROM tab1
----
51
-11
85
-11
91
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3233
SELECT 5 * COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-3233
SELECT 5 * COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT COUNT( + 69 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3234
SELECT COUNT ( + 69 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ( + col0 ) * + col1 AS col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 62 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0, col2 + - - col2 FROM tab1 cor0
----
51
192
85
118
91
136

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col2 + col0
----

query I rowsort
SELECT + col0 * - ( + 57 ) + - - col1 FROM tab0
----
-4938
-5528
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + COUNT( ALL + - ( - col0 ) ) + COUNT( * ) * - 42 AS col0 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-3240
SELECT + COUNT ( ALL + - ( - col0 ) ) + COUNT ( * ) * - 42 AS col0 FROM tab1
----
-123

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT + - COUNT( * ) col1 FROM tab2 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3242
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab2 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT MAX( DISTINCT - + col0 ) * COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3243
SELECT MAX ( DISTINCT - + col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 22 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL - MIN( - - col1 ) + 73 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL - MIN ( - - col1 ) + 73 AS col0 FROM tab0 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - col1 <= - ( ( - 62 ) )
----
51
14
96

query II rowsort
SELECT DISTINCT - col2 - - col0 + col1 AS col0, 37 + - + col0 * col2 AS col0 FROM tab0
----
-1
-9566
49
-668
98
-833

query I rowsort
SELECT ALL 61 * + col0 AS col1 FROM tab2
----
2806
3904
4575

query I rowsort
SELECT col1 - 38 AS col0 FROM tab1
----
-24
-33
9

query I rowsort
SELECT ALL + col2 * + - col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + ( - col0 ) + 58 AS col2 FROM tab1
----
-27
-33
7

query I rowsort
SELECT col2 + + 87 FROM tab0
----
134
186
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT DISTINCT col2 DIV - ( - - col2 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT col2 / - ( - - col2 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT ALL - col2 * - + 5 AS col2 FROM tab0
----
235
495
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT - 90 * - COUNT( * ) FROM tab2 WHERE ( ( - + col1 ) IS NOT NULL )
----
270

skipif mysql # not compatible
query I rowsort label-3255
SELECT - 90 * - COUNT ( * ) FROM tab2 WHERE ( ( - + col1 ) IS NOT NULL )
----
270

query I rowsort
SELECT DISTINCT + col2 + - + 16 AS col0 FROM tab1 cor0
----
43
52
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + - - col1 + - col2 IS NULL
----

query I rowsort
SELECT + - col2 * + col2 + col2 + - 79 AS col1 FROM tab1 AS cor0
----
-3501
-4635
-9199

query I rowsort
SELECT DISTINCT + 10 + - 41 + - - 25 AS col0 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 * + col2 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT + MAX( ALL - + 18 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3261
SELECT + MAX ( ALL - + 18 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + 18 * + col0 col0 FROM tab2
----
-42228
-88704
-90450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) + - + 45 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + + COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3264
SELECT + + COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 69 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 99 * + col1 ) NOT IN ( col2 )
----
97
1
99

query I rowsort
SELECT 66 * - col2 * + col2 AS col2 FROM tab0
----
-145794
-646866
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT COUNT( * ) * - - 38 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3269
SELECT COUNT ( * ) * - - 38 FROM tab1 AS cor0
----
114

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 IN ( - + col2, + col1, + col2, - + 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT CAST( + - 4 AS SIGNED ) FROM tab0 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3271
SELECT CAST ( + - 4 AS INTEGER ) FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3272
SELECT ALL CAST( + + 69 AS SIGNED ) * + CAST( NULL AS DECIMAL ) - + 41 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL CAST ( + + 69 AS INTEGER ) * + CAST ( NULL AS REAL ) - + 41 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 35 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT 35 / + col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - col0 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT DISTINCT - - col2 + + - col1 + col0 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT col1 + 81 + 64 AS col1 FROM tab0 AS cor0
----
146
166
226

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3278
SELECT - col1 + + + 12 / + + col0 - + col0 / + col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT - col1 + + + 12 / + + col0 - + col0 / + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3279
SELECT ALL * FROM tab0 AS cor0 WHERE - 69 / + CAST( ( - ( 52 ) ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3279
SELECT ALL * FROM tab0 AS cor0 WHERE - 69 / + CAST ( ( - ( 52 ) ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - + col1 AS col2, + col1 * + - 54 * col0 + - + col1 + + + col0 AS col2 FROM tab2 AS cor0
----
-51
-126689
-67
-271342
-77
-266125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT - CAST( NULL AS SIGNED ) - - - col2 col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3281
SELECT - CAST ( NULL AS INTEGER ) - - - col2 col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) >= - - 0
----

query I rowsort
SELECT + + col0 * ( 11 ) FROM tab2 WHERE NULL IS NULL
----
506
704
825

query I rowsort
SELECT DISTINCT + col0 * + col1 * + col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3285
SELECT COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL 58 - + col2 FROM tab1
----
-1
-10
-38

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - 38 + + - col1 * + col1 * - col0 IS NULL
----

query I rowsort
SELECT col1 * + col1 - + 24 FROM tab2
----
2577
4465
5905

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT MAX( + col0 ) * + MAX( ALL col1 ) AS col2 FROM tab0 AS cor0
----
7857

skipif mysql # not compatible
query I rowsort label-3289
SELECT MAX ( + col0 ) * + MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT COUNT( * ) * + 54 AS col0 FROM tab1 cor0
----
162

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT COUNT ( * ) * + 54 AS col0 FROM tab1 cor0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL - col1 DIV - col2 + + col0 FROM tab0 AS cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - col1 / - col2 + + col0 FROM tab0 AS cor0
----
16
89
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3293
SELECT + + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT col0 * + 25 * - + col2 * + - col0 AS col2 FROM tab1 WHERE NOT - 98 IS NULL
----
10656875
14077700
6242400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3295
SELECT + - col1 + - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3295
SELECT + - col1 + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - MAX( col0 ) col0 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3296
SELECT - MAX ( col0 ) col0 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT - CAST( + 10 AS SIGNED ) * col2 * - + col2 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col0
----

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - CAST ( + 10 AS INTEGER ) * col2 * - + col2 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + ( - + MIN( + 0 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT + ( - + MIN ( + 0 ) ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 * + 66 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT DISTINCT - + col2 * + - 65 + + + 22 * 20 * - + 17 + 51 DIV + - ( - + col1 ) FROM tab2 AS cor0
----
-3710
-4880
-5984

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT - + col2 * + - 65 + + + 22 * 20 * - + 17 + 51 / + - ( - + col1 ) FROM tab2 AS cor0
----
-3710
-4880
-5984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col1 - - + 30 + + col2 + - col2 + - ( col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col1 - - + 30 + + col2 + - col2 + - ( col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * ( + col0 ) AS col1 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3303
SELECT DISTINCT COUNT( * ) DIV - - 27 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT COUNT ( * ) / - - 27 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT - - col0 DIV 60 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3304
SELECT - - col0 / 60 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 87 ) BETWEEN col1 - 76 AND ( + + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT MAX( DISTINCT - 26 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-3307
SELECT MAX ( DISTINCT - 26 ) FROM tab0
----
-26

query I rowsort
SELECT - 50 * - col2 * - + 98 FROM tab0
----
-230300
-485100
-49000

query II rowsort
SELECT ALL - col2 + - col0, + col0 AS col2 FROM tab1
----
-144
85
-147
51
-159
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT - COUNT( ALL + col1 ) + - 43 * + 35 FROM tab1 cor0
----
-1508

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - COUNT ( ALL + col1 ) + - 43 * + 35 FROM tab1 cor0
----
-1508

query I rowsort
SELECT - col2 - + col0 AS col1 FROM tab2 AS cor0 WHERE col0 + - 22 IN ( + col0 + - + col2, + col1, 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3312
SELECT ALL col0 * + - CAST( NULL AS SIGNED ) * col1 + - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL col0 * + - CAST ( NULL AS INTEGER ) * col1 + - + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3313
SELECT - - col0 / - ( 53 ) + - 16 + 73 AS col2 FROM tab0 WHERE - - 5 * 30 + + col1 * col1 + + 36 + + col0 * + - CAST( - col0 AS DECIMAL ) + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3313
SELECT - - col0 / - ( 53 ) + - 16 + 73 AS col2 FROM tab0 WHERE - - 5 * 30 + + col1 * col1 + + 36 + + col0 * + - CAST ( - col0 AS REAL ) + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT DISTINCT - 49 / + col2 + + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0 WHERE - col0 * + col2 * - + 5 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - 49 / + col2 + + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0 WHERE - col0 * + col2 * - + 5 * - col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 2 + col0 * - 64 + - col0 - - - ( 83 ) col1 FROM tab1 AS cor0
----
-3382
-5601
-5949

query I rowsort
SELECT ALL col0 - - + 9 + + col0 FROM tab0 AS cor0
----
183
203
39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT DISTINCT COUNT( * ), + COUNT( - + col1 ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3319
SELECT DISTINCT COUNT ( * ), + COUNT ( - + col1 ) AS col2 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3320
SELECT ALL 22 * + + CAST( + 12 AS SIGNED ) * 96 - - col2 + + + col1 + - - 55 - col2 FROM tab0
----
25400
25420
25480

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL 22 * + + CAST ( + 12 AS INTEGER ) * 96 - - col2 + + + col1 + - - 55 - col2 FROM tab0
----
25400
25420
25480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL - COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query II rowsort
SELECT ALL - col0, ( col1 ) FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT 40 - col0 + + col1 AS col1 FROM tab2
----
32
45
53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 - + - 4 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3325
SELECT col2 * + CAST( NULL AS DECIMAL ) + col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3325
SELECT col2 * + CAST ( NULL AS REAL ) + col2 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT ALL col0 DIV ( - 44 ) AS col2 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL col0 / ( - 44 ) AS col2 FROM tab1
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT - CAST( + - ( col0 ) AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3327
SELECT - CAST ( + - ( col0 ) AS INTEGER ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3328
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - + col1 + - - 80 > - 28 / - CAST( NULL AS SIGNED ) * + 86 * + 13
----

skipif mysql # not compatible
query III rowsort label-3328
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - + col1 + - - 80 > - 28 / - CAST ( NULL AS INTEGER ) * + 86 * + 13
----

query II rowsort
SELECT ALL - col2 * - col1 AS col1, col1 * + 16 FROM tab2 cor0
----
1173
816
3080
1232
3886
1072

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT 18 * + MIN( ALL ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
828

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT 18 * + MIN ( ALL ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT - - col0 * - 91 * - col1 FROM tab0 cor0 WHERE NOT + col2 NOT IN ( + + col0, 64, col0 / + col2 * + 54 + + CAST( - + 68 AS SIGNED ) * ( col0 ) * - - 63 )
----

skipif mysql # not compatible
query I rowsort label-3331
SELECT - - col0 * - 91 * - col1 FROM tab0 cor0 WHERE NOT + col2 NOT IN ( + + col0, 64, col0 / + col2 * + 54 + + CAST ( - + 68 AS INTEGER ) * ( col0 ) * - - 63 )
----

query I rowsort
SELECT DISTINCT - col2 * + - ( col1 ) + + + col1 + 32 FROM tab0 AS cor0
----
132
263
3920

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT DISTINCT + - col1 DIV 37 AS col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + - col1 / 37 AS col2 FROM tab2 AS cor0
----
-1
-2

query II rowsort
SELECT ( col0 ), + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT - 67 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - 79, + ( + col0 ) + + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + 88 * - + SUM( + 25 ) * + + COUNT( * ) + 30 AS col0 FROM tab1 AS cor0
----
-19770

skipif mysql # not compatible
query I rowsort label-3336
SELECT + 88 * - + SUM ( + 25 ) * + + COUNT ( * ) + 30 AS col0 FROM tab1 AS cor0
----
-19770

query I rowsort
SELECT DISTINCT 35 + + col2 FROM tab0 AS cor0 WHERE NOT 23 + + + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ( - + 40 ) * + 21 - - + col2 * - col0 * + + col0 AS col2 FROM tab2 AS cor0
----
-164680
-327090
-49508

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 15 AND NULL
----

query I rowsort
SELECT ALL ( + col0 ) * 32 AS col0 FROM tab0 AS cor0
----
2784
3104
480

onlyif mysql # DIV for integer division: 
query II rowsort label-3341
SELECT + + 2 DIV 59, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-3341
SELECT + + 2 / 59, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT - 97 * - 87 * - - 66 + + 63 AS col0 FROM tab1
----
557037
557037
557037

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL ( + + ( MAX( ALL + + col0 ) ) ) col2 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3343
SELECT ALL ( + + ( MAX ( ALL + + col0 ) ) ) col2 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT + col0 + + col0 + + 76 * 22 + + 77 DIV - + ( - - 49 ) FROM tab0
----
1701
1845
1865

skipif mysql # not compatible
query I rowsort label-3344
SELECT + col0 + + col0 + + 76 * 22 + + 77 / - + ( - - 49 ) FROM tab0
----
1701
1845
1865

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL - MAX( - 41 ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - MAX ( - 41 ) AS col0 FROM tab0
----
41

query III rowsort
SELECT * FROM tab1 WHERE - - 71 < NULL
----

query I rowsort
SELECT DISTINCT col1 + 32 FROM tab2 WHERE NOT NULL IN ( - col0 * 43 + col2 )
----

query II rowsort
SELECT col2 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT + CAST( - ( 13 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3349
SELECT + CAST ( - ( 13 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - 84 + col1 FROM tab1 AS cor0
----
-37
-70
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT + col2 - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + col2 - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL + 58 - + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL + 58 - + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 22 col1 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL + COUNT( DISTINCT + ( - ( col0 ) ) ) - - + MAX( ALL + + col1 ) * 48 FROM tab2 cor0
----
3699

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + COUNT ( DISTINCT + ( - ( col0 ) ) ) - - + MAX ( ALL + + col1 ) * 48 FROM tab2 cor0
----
3699

query I rowsort
SELECT ALL col1 * + - 20 FROM tab1
----
-100
-280
-940

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - ( + - col1 ) + - col1, col1 FROM tab2 WHERE NOT ( - col1 ) * - 55 IS NULL
----
0
51
0
67
0
77

query I rowsort
SELECT + 93 AS col2 FROM tab0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col2 ) >= - 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT MIN( - col1 ) * + COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-3360
SELECT MIN ( - col1 ) * + COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT + COUNT( DISTINCT + - 85 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT + COUNT ( DISTINCT + - 85 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3362
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3362
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * ( - col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * ( - col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + CAST( NULL AS SIGNED ) + - AVG ( ALL + col1 ) + + 87 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT + CAST ( NULL AS INTEGER ) + - AVG ( ALL + col1 ) + + 87 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + 81 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT col0 + + - col1 + - + 39 * + col1 FROM tab2
----
-1994
-2605
-3016

query I rowsort
SELECT ALL + 93 + - - ( + col2 ) AS col0 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL - ( MAX( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL - ( MAX ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT DISTINCT + + col1 + + - CAST( NULL AS SIGNED ) * + 34 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT + + col1 + + - CAST ( NULL AS INTEGER ) * + 34 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 84 * + 1 AS col1 FROM tab2 cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3372
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3372
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) >= NULL
----

query I rowsort
SELECT + 70 FROM tab0 cor0 WHERE ( NOT ( NULL = + ( + + col2 ) * + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT DISTINCT ( col2 ) * + col2 * - 96 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT ( col2 ) * + col2 * - 96 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT + + 71 FROM tab0 AS cor0 WHERE ( NOT ( NOT col2 IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT + 10 DIV - - COUNT( - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 10 / - - COUNT ( - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT - ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - ( + col2 ) IS NOT NULL
----
0

query I rowsort
SELECT + - 66 + + 36 FROM tab2 WHERE ( NULL ) <= 65 + + 60 * + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT ALL SUM( ALL col1 ) AS col0, - 93 FROM tab2
----
195
-93

skipif mysql # not compatible
query II rowsort label-3380
SELECT ALL SUM ( ALL col1 ) AS col0, - 93 FROM tab2
----
195
-93

query I rowsort
SELECT col1 * + - col2 * 8 AS col2 FROM tab1
----
-10752
-2360
-25568

query II rowsort
SELECT - ( - col0 ) AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 35 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * + - col1, + col0 FROM tab1
----
-1344
51
-295
85
-3196
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT DISTINCT - 74 * + 52 * - 44 + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - 74 * + 52 * - 44 + - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL - 80 DIV + - col2 AS col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - 80 / + - col2 AS col2 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 29 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col0 + col1 AS col1 FROM tab0 AS cor0 WHERE 77 * - col2 / - col1 * 8 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3390
SELECT + - 65 AS col1, + CAST( NULL AS DECIMAL ) - + col2 FROM tab1 AS cor0
----
-65
NULL
-65
NULL
-65
NULL

skipif mysql # not compatible
query II rowsort label-3390
SELECT + - 65 AS col1, + CAST ( NULL AS REAL ) - + col2 FROM tab1 AS cor0
----
-65
NULL
-65
NULL
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - - SUM( DISTINCT + 70 ) AS col2 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3391
SELECT - - SUM ( DISTINCT + 70 ) AS col2 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL 75 * - 2 * - + COUNT( * ) AS col2 FROM tab1
----
450

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 75 * - 2 * - + COUNT ( * ) AS col2 FROM tab1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL MAX( ( + + 38 ) ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL MAX ( ( + + 38 ) ) FROM tab2
----
38

query II rowsort
SELECT ALL - ( - col1 ), col2 AS col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3395
SELECT DISTINCT * FROM tab1 WHERE NOT 34 NOT BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3395
SELECT DISTINCT * FROM tab1 WHERE NOT 34 NOT BETWEEN + CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + COUNT( 29 ) * + 89 AS col2 FROM tab1 cor0
----
267

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + COUNT ( 29 ) * + 89 AS col2 FROM tab1 cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - + MIN( DISTINCT 26 ) AS col1 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3397
SELECT - + MIN ( DISTINCT 26 ) AS col1 FROM tab2 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT - + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT - + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT + col2 DIV 97 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT + col2 / 97 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL 96 * - - COUNT( * ) col0 FROM tab1
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3400
SELECT ALL 96 * - - COUNT ( * ) col0 FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT SUM( - - 84 ) FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-3401
SELECT SUM ( - - 84 ) FROM tab0
----
252

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3403
SELECT ALL col2 + - - ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL col2 + - - ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT col1 * - + col2 + + + CAST( NULL AS SIGNED ) + + 39 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT col1 * - + col2 + + + CAST ( NULL AS INTEGER ) + + 39 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 * 66 * + col0 * - - 32 AS col0 FROM tab1 AS cor0
----
10340448
10591739
13069124

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT ALL + - COUNT( * ) * 37 + - COUNT( 47 ) - - + COUNT( ALL - col2 ) AS col0, 83 FROM tab0 AS cor0
----
-111
83

skipif mysql # not compatible
query II rowsort label-3407
SELECT ALL + - COUNT ( * ) * 37 + - COUNT ( 47 ) - - + COUNT ( ALL - col2 ) AS col0, 83 FROM tab0 AS cor0
----
-111
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT COUNT( * ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3408
SELECT COUNT ( * ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - - col1 + - 86 FROM tab2 AS cor0
----
-19
-35
-9

query I rowsort
SELECT DISTINCT col1 / - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 5 AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT col2 + - col1 * - ( + - 85 ) FROM tab2
----
-4312
-5637
-6505

query II rowsort
SELECT DISTINCT col2, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - col1 + + - col0 + + col2 AS col2 FROM tab0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + SUM( DISTINCT + ( - col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3415
SELECT + SUM ( DISTINCT + ( - col0 ) ) FROM tab2
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT - + MIN( CAST( - + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3416
SELECT - + MIN ( CAST ( - + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL - MAX( ALL + ( + col2 ) ) - + 35 + + 30 AS col0 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - MAX ( ALL + ( + col2 ) ) - + 35 + + 30 AS col0 FROM tab0 AS cor0
----
-104

query II rowsort
SELECT DISTINCT col0 + + - col2 AS col2, - 60 FROM tab1 AS cor0
----
-45
-60
23
-60
26
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT + + COUNT( * ) * - 49 AS col2 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + + COUNT ( * ) * - 49 AS col2 FROM tab2 AS cor0
----
-147

query I rowsort
SELECT DISTINCT - + 36 - + col0 AS col2 FROM tab2 cor0
----
-100
-111
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL SUM( + 97 ) AS col1 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL SUM ( + 97 ) AS col1 FROM tab1
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - MIN( DISTINCT + - col2 ) / SUM( 70 ) / ( + 14 ) - - 75 AS col1 FROM tab2 WHERE NULL NOT IN ( - + col1 + + col2, col2 + - + 76 - ( - col0 ) + 9, - - col1 + - col0 + - + col1 - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT - MIN ( DISTINCT + - col2 ) / SUM ( 70 ) / ( + 14 ) - - 75 AS col1 FROM tab2 WHERE NULL NOT IN ( - + col1 + + col2, col2 + - + 76 - ( - col0 ) + 9, - - col1 + - col0 + - + col1 - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3423
SELECT col1 * + col2 AS col2, + 29 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
query II rowsort label-3423
SELECT col1 * + col2 AS col2, + 29 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

query I rowsort
SELECT DISTINCT - + 73 FROM tab0 cor0 WHERE NOT col0 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT SUM( DISTINCT + ( 36 ) ) * - - 34 AS col0 FROM tab0 AS cor0
----
1224

skipif mysql # not compatible
query I rowsort label-3425
SELECT SUM ( DISTINCT + ( 36 ) ) * - - 34 AS col0 FROM tab0 AS cor0
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT - col0 * 92 DIV 7 col0 FROM tab1 cor0
----
-1117
-1196
-670

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3426
SELECT - col0 * 92 / 7 col0 FROM tab1 cor0
----
-1117
-1196
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT COUNT( * ) * ( + 34 ) AS col0 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3427
SELECT COUNT ( * ) * ( + 34 ) AS col0 FROM tab0 AS cor0
----
102

query I rowsort
SELECT + + 69 / + col2 - + ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col0 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT + col1 DIV - + 53 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + col1 / - + 53 AS col2 FROM tab2
----
-1
0

query II rowsort
SELECT col1 AS col0, 35 AS col1 FROM tab2
----
51
35
67
35
77
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - ( col2 ) ) BETWEEN - 36 AND - 87
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT + col0 NOT IN ( col0 * - - 87, col1 * col1, - - col2, + col0 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col0 * + + col2 * - - col1 FROM tab2
----
-23
-53958
-40
-197120
-58
-291450

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT - MIN( - + col2 ) FROM tab0 AS cor0 WHERE NOT - col1 * + col2 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT - MIN ( - + col2 ) FROM tab0 AS cor0 WHERE NOT - col1 * + col2 IS NULL
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3435
SELECT ALL - col1 AS col2, CAST( col1 AS SIGNED ) + + col2 FROM tab1 cor0
----
-14
110
-47
115
-5
64

skipif mysql # not compatible
query II rowsort label-3435
SELECT ALL - col1 AS col2, CAST ( col1 AS INTEGER ) + + col2 FROM tab1 cor0
----
-14
110
-47
115
-5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27

query I rowsort
SELECT + 2 * - - col0 + - + col1 FROM tab2 AS cor0
----
41
51
83

query II rowsort
SELECT + 12 / - ( 25 ) AS col2, + ( + col1 ) / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * ( - 96 ) BETWEEN + col1 + + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 90 * + - col2 - - col0 AS col1 FROM tab2
----
-2024
-3536
-5145

query I rowsort
SELECT ALL + col0 * - 34 * - col1 FROM tab1
----
14450
145418
24276

query I rowsort
SELECT + 30 - col2 FROM tab0
----
-17
-69
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3443
SELECT + col1 - + - 67 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT + col1 - + - 67 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) * 62 AS col0 FROM tab0
----
-1302
-5022
-62

query I rowsort
SELECT 9 + + col2 AS col2 FROM tab0
----
108
19
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT ALL - COUNT( * ) DIV + 18 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - COUNT ( * ) / + 18 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT ALL COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL SUM( - col2 ) + - 27 AS col1 FROM tab1
----
-250

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL SUM ( - col2 ) + - 27 AS col1 FROM tab1
----
-250

query I rowsort
SELECT ALL - + 43 + + 10 - - col2 + + 2 AS col2 FROM tab0 AS cor0
----
-21
16
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT DISTINCT - col1 + - col2 * - col1 * + CAST( col2 AS SIGNED ) * + + col2 * + + 87 + + col0 AS col1 FROM tab1 AS cor0
----
1077608485
1285712492
89339945

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - col1 + - col2 * - col1 * + CAST ( col2 AS INTEGER ) * + + col2 * + + 87 + + col0 AS col1 FROM tab1 AS cor0
----
1077608485
1285712492
89339945

query II rowsort
SELECT DISTINCT col1, 96 FROM tab1
----
14
96
47
96
5
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 * - - 20 * + col0 + - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 3 AS col0, - 50 * - col1 col2 FROM tab2 AS cor0
----
3
2550
3
3350
3
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL - COUNT( * ) * 64 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - COUNT ( * ) * 64 FROM tab1 AS cor0
----
-192

query II rowsort
SELECT DISTINCT + 18, - 52 AS col2 FROM tab1 AS cor0
----
18
-52

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 18 / - col0 < NULL
----

query I rowsort
SELECT col2 * - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT ( + + col1 ) * + 81 - - col2 AS col0 FROM tab2 AS cor0
----
4154
5485
6277

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( - col2, + col1 / + - col1, + col0 * col2 / - col0, 83 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3461
SELECT DISTINCT + + 15 DIV - COUNT( * ), 2 AS col2 FROM tab1 AS cor0
----
-5
2

skipif mysql # not compatible
query II rowsort label-3461
SELECT DISTINCT + + 15 / - COUNT ( * ), 2 AS col2 FROM tab1 AS cor0
----
-5
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 82 ) col1 FROM tab0
----
82
82
82

query I rowsort
SELECT col0 * 23 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab0 WHERE NOT + ( + 0 ) * + ( - col1 ) + + col2 + - col0 IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL + col1 * - col0 col2 FROM tab0 WHERE NULL = - col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3466
SELECT ALL + col1 * - col0 col2 FROM tab0 WHERE NULL = - col0 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT AVG ( + col1 ) * - 97 FROM tab2 AS cor0 WHERE NOT NULL <> - ( col2 )
----
NULL

query I rowsort
SELECT - 39 * + 22 AS col1 FROM tab1 AS cor0
----
-858
-858
-858

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 91 / col0 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - ( - col2 ) ) + - col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT col0 DIV + - 88 + + 29 AS col2 FROM tab0 cor0
----
28
29
29

skipif mysql # not compatible
query I rowsort label-3471
SELECT col0 / + - 88 + + 29 AS col2 FROM tab0 cor0
----
28
29
29

query I rowsort
SELECT - 70 + + 14 + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
1002
2504
4294

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT - - 43 + SUM( ALL + col2 ) AS col0 FROM tab1 WHERE NOT col1 IN ( + 42, - ( - col1 ), + 42 ) OR NULL IS NULL
----
266

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT - - 43 + SUM ( ALL + col2 ) AS col0 FROM tab1 WHERE NOT col1 IN ( + 42, - ( - col1 ), + 42 ) OR NULL IS NULL
----
266

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - + 90
----

query I rowsort
SELECT DISTINCT ( - 51 ) AS col2 FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL 7 + - COUNT( * ) AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 7 + - COUNT ( * ) AS col2 FROM tab2
----
4

query I rowsort
SELECT + col0 - - 78 AS col0 FROM tab0 AS cor0
----
165
175
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - - 63 * 87 - - - 74 + + 73 < + ( + 83 ) AND NOT ( ( - col1 > 64 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + ( + MAX( + + 65 ) ) FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-3479
SELECT + ( + MAX ( + + 65 ) ) FROM tab2 cor0
----
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - ( col0 ) ) * + 25 )
----

query I rowsort
SELECT DISTINCT + - 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL - MAX( col0 ) * + 72 * - + 48 AS col2 FROM tab1
----
314496

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - MAX ( col0 ) * + 72 * - + 48 AS col2 FROM tab1
----
314496

query I rowsort
SELECT + 0 * + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col0 * + - col1 + + + col1 + - - col0 FROM tab1 cor0
----
-335
-4139
-649

query I rowsort
SELECT - - col1 * - col1 - 18 - col0 FROM tab0 AS cor0
----
-116
-546
-6594

query I rowsort
SELECT DISTINCT + ( - col0 ) * ( + col0 ) AS col1 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT - ( col2 ) IS NULL
----
15
87
97

query II rowsort
SELECT ALL - 3, + col2 FROM tab1
----
-3
59
-3
68
-3
96

query II rowsort
SELECT ALL + col1 AS col0, col1 * + + col0 FROM tab1
----
14
714
47
4277
5
425

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE + col2 > NULL
----
0

query I rowsort
SELECT ALL col2 + 36 FROM tab2
----
59
76
94

query II rowsort
SELECT ALL 29 AS col2, + col0 FROM tab0
----
29
15
29
87
29
97

query I rowsort
SELECT ALL - 89 + + 13 FROM tab2
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT + 13 = - - ( + col2 )
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT + 18 + + ( - CAST( NULL AS SIGNED ) ) + - ( - + COUNT( * ) ) + + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + 18 + + ( - CAST ( NULL AS INTEGER ) ) + - ( - + COUNT ( * ) ) + + - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + + 81 * - + 77 AS col2 FROM tab2
----
-6179
-6197
-6214

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - col0 + - col1 * + 98 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + col1 + - col0 + + col2 AS col2 FROM tab1 cor0
----
-1299
-321
-3219

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 = + + col0 + 26
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col1, + 21 )
----

query I rowsort
SELECT + - col0 - + + ( + + col2 ) FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT - col2 - - 18 + 4 FROM tab2 AS cor0
----
-1
-18
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3504
SELECT - 0 DIV - SUM( - ( 90 ) ) - 51 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3504
SELECT - 0 / - SUM ( - ( 90 ) ) - 51 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT 56 - - + col0 AS col1 FROM tab1
----
107
141
147

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( ( NOT NULL IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL + 82 * - COUNT( * ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 82 * - COUNT ( * ) FROM tab2
----
-246

query III rowsort
SELECT * FROM tab1 WHERE + col2 >= NULL
----

query II rowsort
SELECT DISTINCT + + 23 AS col1, col2 FROM tab0 AS cor0
----
23
10
23
47
23
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3511
SELECT DISTINCT + col1 AS col0 FROM tab1 cor0 WHERE CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + col1 AS col0 FROM tab1 cor0 WHERE CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT SUM( - 67 ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT SUM ( - 67 ) FROM tab0 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3513
SELECT * FROM tab1 AS cor0 WHERE NOT 55 NOT IN ( - 70 * + col0 * - col1 + + col1, - CAST( NULL AS SIGNED ) * - + 84 )
----

skipif mysql # not compatible
query III rowsort label-3513
SELECT * FROM tab1 AS cor0 WHERE NOT 55 NOT IN ( - 70 * + col0 * - col1 + + col1, - CAST ( NULL AS INTEGER ) * - + 84 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT + - col0 DIV 2 AS col1 FROM tab1 AS cor0
----
-25
-42
-45

skipif mysql # not compatible
query I rowsort label-3514
SELECT + - col0 / 2 AS col1 FROM tab1 AS cor0
----
-25
-42
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT MIN( ALL - 56 ) AS col2 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3515
SELECT MIN ( ALL - 56 ) AS col2 FROM tab1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT - CAST( COUNT( * ) AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3516
SELECT - CAST ( COUNT ( * ) AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ( col1 ) + + 56 FROM tab0 WHERE NULL NOT IN ( 24 )
----

query I rowsort
SELECT 58 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT MIN( ALL ( 55 ) ) - 3 AS col2 FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT MIN ( ALL ( 55 ) ) - 3 AS col2 FROM tab2 WHERE col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 38 + col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 48 * col1 + - 57 AS col0 FROM tab1
----
183
2199
615

query I rowsort
SELECT + col1 * - 38 + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-131
-1718
-436

query I rowsort
SELECT + 67 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3524
SELECT + COUNT( * ) DIV + 52 - + 58 DIV COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-3524
SELECT + COUNT ( * ) / + 52 - + 58 / COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 3 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT DISTINCT + MIN( ALL col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT + MIN ( ALL col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL SUM( ALL - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL SUM ( ALL - col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - ( COUNT( ALL - col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3528
SELECT - ( COUNT ( ALL - col1 ) ) FROM tab2
----
-3

query I rowsort
SELECT + col1 + 34 AS col1 FROM tab0
----
115
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT 86 * - COUNT( * ) AS col1 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-3530
SELECT 86 * - COUNT ( * ) AS col1 FROM tab1
----
-258

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 9 + 82 / + col1 IN ( 12 / col1 )
----

query I rowsort
SELECT 24 * col0 AS col1 FROM tab2
----
1104
1536
1800

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + 95 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT COUNT( * ) * - 13 col0 FROM tab0 WHERE col1 NOT BETWEEN NULL AND + col0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3534
SELECT COUNT ( * ) * - 13 col0 FROM tab0 WHERE col1 NOT BETWEEN NULL AND + col0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 8 ) + col2 col0 FROM tab1 WHERE ( 20 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT CAST( NULL AS SIGNED ) * - 49 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT CAST ( NULL AS INTEGER ) * - 49 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE ( 6 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT - 87 + + col2 FROM tab2 WHERE - col2 - + 83 <> ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 87 + + col2 FROM tab2 WHERE - col2 - + 83 <> ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 60 / ( - col2 ) >= col2 * - col2 - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col1 FROM tab1 WHERE + 54 * - col2 > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL 38 * - COUNT( * ) AS col2 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 38 * - COUNT ( * ) AS col2 FROM tab0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3542
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN CAST( NULL AS SIGNED ) * 61 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3542
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN CAST ( NULL AS INTEGER ) * 61 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT CAST( 37 AS SIGNED ) FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3543
SELECT CAST ( 37 AS INTEGER ) FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT + col1 + col2 * - 2 AS col0 FROM tab1 AS cor0
----
-113
-178
-89

query I rowsort
SELECT ALL - 27 + - col0 FROM tab0 AS cor0
----
-114
-124
-42

query I rowsort
SELECT + 58 + 40 AS col1 FROM tab1 AS cor0 WHERE - ( 10 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL >= 37 * + col2
----

query I rowsort
SELECT 28 * - 55 FROM tab1
----
-1540
-1540
-1540

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col1 * 26 )
----

query I rowsort
SELECT ALL 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - ( + 5 ) + col0 AS col2 FROM tab2 WHERE 90 <> NULL
----

query I rowsort
SELECT - 67 + + col1 AS col2 FROM tab0
----
-46
-66
14

query I rowsort
SELECT - - 12 + col0 AS col0 FROM tab1 cor0
----
103
63
97

query I rowsort
SELECT - - col2 * - col0 + + 29 * col0 FROM tab1 AS cor0
----
-2550
-3417
-3549

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 56 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + COUNT( * ) - 49 AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + COUNT ( * ) - 49 AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT + col2 DIV + col1 + - col1 * - col0 FROM tab1 AS cor0
----
4278
436
720

skipif mysql # not compatible
query I rowsort label-3557
SELECT + col2 / + col1 + - col1 * - col0 FROM tab1 AS cor0
----
4278
436
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT DISTINCT + CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE col0 IN ( + col0 * CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE col0 IN ( + col0 * CAST ( - col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT DISTINCT COUNT( * ) + 47 col2 FROM tab0 AS cor0 WHERE 91 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3559
SELECT DISTINCT COUNT ( * ) + 47 col2 FROM tab0 AS cor0 WHERE 91 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT DISTINCT + + col0 DIV 93 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT + + col0 / 93 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT col0 * - col0 - - col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

query I rowsort
SELECT ALL + 55 - + 21 * col2 AS col0 FROM tab2
----
-1163
-428
-785

query I rowsort
SELECT DISTINCT - 22 - - col2 FROM tab2
----
1
18
36

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= + col2
----

query I rowsort
SELECT 14 * + ( - col1 ) * - col0 FROM tab0
----
1358
17010
25578

query I rowsort
SELECT DISTINCT ( col1 ) + + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - col1 * 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - MAX( 49 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - MAX ( 49 ) FROM tab2
----
-49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) <> + 77 * col1
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 15 * 40 >= 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE + 54 + - col0 IN ( + 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT + COUNT( * ) * - MAX( + col0 ) + COUNT( * ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-3573
SELECT + COUNT ( * ) * - MAX ( + col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT ALL - col0 DIV col1 FROM tab1 cor0 WHERE NOT col2 >= + col0 + col0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - col0 / col1 FROM tab1 cor0 WHERE NOT col2 >= + col0 + col0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL + ( ( + + COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL + ( ( + + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col0, - 77 AS col0 FROM tab2 cor0
----
-23
-77
-40
-77
-58
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 73 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT 3 - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( - + 19 ) * - col1 <= ( col2 ) / - col0
----
6

skipif mysql # not compatible
query I rowsort label-3578
SELECT 3 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( - + 19 ) * - col1 <= ( col2 ) / - col0
----
6

query I rowsort
SELECT + - col1 * - 56 FROM tab2 AS cor0
----
2856
3752
4312

query I rowsort
SELECT + col2 FROM tab1 WHERE - ( - - 13 ) < + ( 72 ) * col0
----
59
68
96

query I rowsort
SELECT - 26 * + 69 AS col0 FROM tab0
----
-1794
-1794
-1794

query I rowsort
SELECT DISTINCT - ( + ( - - col2 ) ) FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 45 + + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + 92 * + + SUM( ALL - 75 ) col0 FROM tab0
----
-20700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3584
SELECT + 92 * + + SUM ( ALL - 75 ) col0 FROM tab0
----
-20700

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0 + - col1 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT + col0 * - + CAST( 70 AS SIGNED ) FROM tab0
----
-1050
-6090
-6790

skipif mysql # not compatible
query I rowsort label-3586
SELECT + col0 * - + CAST ( 70 AS INTEGER ) FROM tab0
----
-1050
-6090
-6790

query I rowsort
SELECT ALL - ( - col0 ) + - col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3588
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col2 * - CAST( + col2 AS SIGNED ) - - col1 )
----

skipif mysql # not compatible
query III rowsort label-3588
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col2 * - CAST ( + col2 AS INTEGER ) - - col1 )
----

query I rowsort
SELECT DISTINCT + - 68 AS col0 FROM tab1 cor0
----
-68

query I rowsort
SELECT 97 * + col0 * - + ( col2 ) FROM tab1
----
-474912
-486455
-600236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT ALL - col2 FROM tab2 WHERE NOT col2 / - - CAST( NULL AS SIGNED ) * + 45 + 90 * 19 + 84 <> ( - 9 )
----

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - col2 FROM tab2 WHERE NOT col2 / - - CAST ( NULL AS INTEGER ) * + 45 + 90 * 19 + 84 <> ( - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT + ( COUNT( * ) ) + - COUNT( * ) FROM tab0 WHERE NOT - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + ( COUNT ( * ) ) + - COUNT ( * ) FROM tab0 WHERE NOT - col1 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 * + - col1 * - 12 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 * + - col1 * - 12 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 86 + - - col0 FROM tab0 AS cor0
----
101
173
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL - + COUNT( * ) - MAX( ALL - 59 ) AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - + COUNT ( * ) - MAX ( ALL - 59 ) AS col2 FROM tab2 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE + - col2 BETWEEN col0 AND ( NULL ) AND col2 * ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE + - col2 BETWEEN col0 AND ( NULL ) AND col2 * ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - 66
----

query I rowsort
SELECT ALL - ( - 1 ) - - ( col0 ) AS col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT - - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT - - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 56 * + + col1 AS col1 FROM tab0
----
-1176
-4536
-56

query II rowsort
SELECT 68 AS col1, - col1 AS col2 FROM tab2
----
68
-51
68
-67
68
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col1, col0 * 32 AS col1 FROM tab0
----
17
2784
17
3104
17
480

query I rowsort
SELECT ALL ( + ( - col0 ) ) AS col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - - col0 / - 82 + + 84 )
----

query I rowsort
SELECT - col1 * + col2 + + col2 + + col0 FROM tab1 AS cor0 WHERE NOT - 78 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT MIN( + - col2 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3607
SELECT MIN ( + - col2 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3608
SELECT + col0 AS col0, + 81 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3608
SELECT + col0 AS col0, + 81 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3609
SELECT ALL - col0 DIV + col2 AS col2, col2 AS col0 FROM tab0
----
-8
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-3609
SELECT ALL - col0 / + col2 AS col2, col2 AS col0 FROM tab0
----
-8
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL + MIN( DISTINCT - - col0 ) + 86 FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL + MIN ( DISTINCT - - col0 ) + 86 FROM tab1
----
137

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 77 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + 86 DIV ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 86 / ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT ALL + CAST( NULL AS SIGNED ) + + - 65 - - 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 65 - - 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - col0 ) + + - col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND 5
----

query I rowsort
SELECT 82 + col2 + - ( - 57 ) - - ( + 90 ) * col2 * + col2 * + ( 59 ) FROM tab0
----
11729976
52043548
531149

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL + COUNT( DISTINCT 45 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + COUNT ( DISTINCT 45 ) AS col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 + col2 + + col0 ) BETWEEN NULL AND - col0 - col1
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - 74 IN ( 16 )
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 * col2 AS col0 FROM tab0
----
-752
-880
-9702

query III rowsort
SELECT * FROM tab1 WHERE + - 21 / col1 - + col0 * + + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT SUM( DISTINCT - 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-3623
SELECT SUM ( DISTINCT - 88 ) FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT DISTINCT + SUM( DISTINCT + col2 ), - MAX( DISTINCT + - 11 ) FROM tab2 WHERE NULL = - 61 + + col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3624
SELECT DISTINCT + SUM ( DISTINCT + col2 ), - MAX ( DISTINCT + - 11 ) FROM tab2 WHERE NULL = - 61 + + col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL OR ( col0 + 60 IS NOT NULL )
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-3626
SELECT + col0, col1 + + - 68 + + col0 + + col0 DIV - col0 FROM tab2 AS cor0
----
46
28
64
72
75
73

skipif mysql # not compatible
query II rowsort label-3626
SELECT + col0, col1 + + - 68 + + col0 + + col0 / - col0 FROM tab2 AS cor0
----
46
28
64
72
75
73

query I rowsort
SELECT DISTINCT + 49 + + 85 AS col2 FROM tab0 AS cor0
----
134

query II rowsort
SELECT - col1 AS col1, - ( col2 ) FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT DISTINCT + col2 + - col2 FROM tab0 AS cor0 WHERE - col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL 42 - CAST( NULL AS SIGNED ) * - - col2 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 42 - CAST ( NULL AS INTEGER ) * - - col2 + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3632
SELECT - col2 * - - col2 + + + col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT - col2 * - - col2 + + + col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 30 * 81 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT + COUNT( * ) + 23 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3634
SELECT DISTINCT + COUNT ( * ) + 23 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32

query I rowsort
SELECT + ( + + 61 ) + - - col1 * 37 AS col1 FROM tab1 AS cor0
----
1800
246
579

query I rowsort
SELECT col2 + + - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3637
SELECT ALL * FROM tab1 cor0 WHERE col1 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3637
SELECT ALL * FROM tab1 cor0 WHERE col1 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT - COUNT( * ) * - 60 AS col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - COUNT ( * ) * - 60 AS col1 FROM tab2 AS cor0
----
180

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 38 * + col1 <= - - col0 - + - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <= ( - - 9 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 17 * + 2 col2 FROM tab0 WHERE NOT NULL >= 20 AND 42 * 30 / col2 + 42 + - col2 * + col2 NOT BETWEEN ( - - col1 + - ( + 56 ) ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 33 * - col1 AS col0 FROM tab0
----
-2673
-33
-693

onlyif mysql # DIV for integer division: 
query II rowsort label-3644
SELECT DISTINCT - 12 AS col2, 91 * col1 DIV - col0 col0 FROM tab2
----
-12
-100
-12
-109
-12
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3644
SELECT DISTINCT - 12 AS col2, 91 * col1 / - col0 col0 FROM tab2
----
-12
-100
-12
-109
-12
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 13 * - - 9 col2 FROM tab2 AS cor0
----
117
117
117

query I rowsort
SELECT col0 + col0 + + 58 FROM tab0
----
232
252
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT + + ( COUNT( * ) ) AS col1, 61 AS col1 FROM tab1 AS cor0
----
3
61

skipif mysql # not compatible
query II rowsort label-3647
SELECT + + ( COUNT ( * ) ) AS col1, 61 AS col1 FROM tab1 AS cor0
----
3
61

query I rowsort
SELECT DISTINCT - col1 + + 32 AS col2 FROM tab1 AS cor0
----
-15
18
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT DISTINCT + - ( + col0 ) * - col0 * col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + - ( + col0 ) * - col0 * col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT - COUNT( * ) * + COUNT( DISTINCT 43 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3650
SELECT - COUNT ( * ) * + COUNT ( DISTINCT 43 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 60 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + ( - col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 67 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 67 IS NOT NULL
----
0

query I rowsort
SELECT ALL 68 + + + col1 AS col0 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT - col2 DIV - ( col1 ) AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3655
SELECT - col2 / - ( col1 ) AS col2 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT + COUNT( * ) FROM tab2 WHERE ( + - 64 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3656
SELECT + COUNT ( * ) FROM tab2 WHERE ( + - 64 ) IS NOT NULL
----
3

query I rowsort
SELECT + ( + + col2 ) * col0 AS col1 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND NULL )
----

query I rowsort
SELECT col2 - - col2 + + col0 + - col0 FROM tab2
----
116
46
80

query I rowsort
SELECT ALL + 36 * - - 7 + + + 34 FROM tab0
----
286
286
286

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> col1 * + + col2 - - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3662
SELECT * FROM tab2 AS cor0 WHERE col0 + CAST( NULL AS SIGNED ) <> - col0
----

skipif mysql # not compatible
query III rowsort label-3662
SELECT * FROM tab2 AS cor0 WHERE col0 + CAST ( NULL AS INTEGER ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT + MIN( DISTINCT col2 ) - COUNT( ALL - col2 ) FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + MIN ( DISTINCT col2 ) - COUNT ( ALL - col2 ) FROM tab2 cor0
----
20

query I rowsort
SELECT + ( - 55 ) FROM tab2 WHERE - col1 IS NOT NULL
----
-55
-55
-55

query I rowsort
SELECT ALL col2 - - - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT - 58 AS col1, col1 + + col2 FROM tab1
----
-58
110
-58
115
-58
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT DISTINCT + col2 * + - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3668
SELECT DISTINCT + col2 * + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + + 74 FROM tab0 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL + SUM( ALL - 13 ) AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL + SUM ( ALL - 13 ) AS col0 FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT + 77 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + 77 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT - 59 * - ( + col0 ) FROM tab1 AS cor0
----
3009
5015
5369

query II rowsort
SELECT ALL col2 AS col1, + col0 + - - col0 * 86 AS col2 FROM tab0 AS cor0
----
10
7569
47
1305
99
8439

query I rowsort
SELECT ALL + - 46 * - col0 FROM tab1 AS cor0
----
2346
3910
4186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + + col0 NOT BETWEEN - 57 AND + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3675
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + + col0 NOT BETWEEN - 57 AND + CAST ( + col2 AS INTEGER )
----

query II rowsort
SELECT + 22 AS col2, - 24 AS col2 FROM tab2 AS cor0
----
22
-24
22
-24
22
-24

query II rowsort
SELECT ALL + + 39 AS col1, col2 * + col1 + col2 + + ( - col1 ) FROM tab0 AS cor0
----
39
197
39
199
39
3773

query I rowsort
SELECT ALL 57 * col0 * + col2 AS col2 FROM tab0
----
40185
49590
547371

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3679
SELECT ALL CAST( + 48 AS SIGNED ) DIV + - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL CAST ( + 48 AS INTEGER ) / + - col0 FROM tab0
----
-3
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 < - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 < + 30
----

query I rowsort
SELECT - 57 * - 36 AS col2 FROM tab2
----
2052
2052
2052

query I rowsort
SELECT - col0 * - - col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( - 23 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 10 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + - COUNT( * ) col2 FROM tab1 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-3686
SELECT ALL + - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + + 57 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + + 57 FROM tab1 AS cor0
----
60

query II rowsort
SELECT ALL + col1 AS col1, col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL - + COUNT( * ) + + 8 + COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - + COUNT ( * ) + + 8 + COUNT ( * ) FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + COUNT( * ) + + MIN( + + col0 ) + - 98 AS col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3692
SELECT + COUNT ( * ) + + MIN ( + + col0 ) + - 98 AS col1 FROM tab2 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT 0 DIV + + ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3693
SELECT 0 / + + ( col2 ) + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + 74 + 24 col0, col1 AS col1 FROM tab2 AS cor0
----
121
51
138
77
156
67

query III rowsort
SELECT * FROM tab2 WHERE + - col1 / col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 71 IS NULL
----

query I rowsort
SELECT ALL - col2 * - + col2 * + ( col0 ) FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3698
SELECT * FROM tab1 WHERE - col0 + + CAST( + col1 AS DECIMAL ) >= col2
----

skipif mysql # not compatible
query III rowsort label-3698
SELECT * FROM tab1 WHERE - col0 + + CAST ( + col1 AS REAL ) >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT - - COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT - - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 27 * col0 - col0 - - col0 col1 FROM tab2 AS cor0
----
110592
151875
57132

query II rowsort
SELECT 16 AS col1, col2 - + col2 AS col0 FROM tab0 AS cor0 WHERE ( NOT + + 9 + col1 IS NULL )
----
16
0
16
0
16
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col2 + + col0 + - col0 / 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT ALL + col1 * - - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL < CAST( 95 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT ALL + col1 * - - col0 col2 FROM tab1 AS cor0 WHERE NOT NULL < CAST ( 95 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0 WHERE NOT 24 * - 16 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3706
SELECT - COUNT( * ) DIV - 61 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT - COUNT ( * ) / - 61 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT COUNT( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3707
SELECT COUNT ( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT + - MIN( ALL - 4 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + - MIN ( ALL - 4 ) FROM tab2 AS cor0
----
4

query II rowsort
SELECT DISTINCT - + ( + + 6 ) AS col0, col2 + - col0 FROM tab1 cor0
----
-6
-23
-6
-26
-6
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT - col1 DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3710
SELECT - col1 / - + col0 FROM tab1
----
0
0
0

query II rowsort
SELECT col2, - 8 * + col0 AS col1 FROM tab2
----
23
-368
40
-512
58
-600

query II rowsort
SELECT col2 AS col2, col1 + + 12 FROM tab1
----
59
17
68
59
96
26

query I rowsort
SELECT DISTINCT 67 * - - col0 FROM tab0
----
1005
5829
6499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT ALL + CAST( + 57 AS SIGNED ) FROM tab1 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL + CAST ( + 57 AS INTEGER ) FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - col1 )
----

query II rowsort
SELECT ALL col0 + + - col2 AS col1, col0 AS col2 FROM tab0
----
-2
97
-32
15
77
87

query I rowsort
SELECT ( - col2 ) + + 65 FROM tab1
----
-3
-31
6

query I rowsort
SELECT ALL col0 * ( col1 ) * col0 * - + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
-180620
-18292682
-509782

query II rowsort
SELECT ALL 35, + ( - - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL + COUNT( * ) + 1 AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL + COUNT ( * ) + 1 AS col1 FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT - col1 * 84 * - 74 AS col2 FROM tab1 cor0
----
292152
31080
87024

query I rowsort
SELECT DISTINCT - + ( col0 ) + - 11 FROM tab1 cor0
----
-102
-62
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT - 0 * 32 DIV - 42 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT - 0 * 32 / - 42 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT 71 * + + COUNT( * ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT 71 * + + COUNT ( * ) FROM tab2
----
213

query I rowsort
SELECT - col1 - 89 + + col1 - 95 + + col0 * - col1 + + col1 + - col1 FROM tab2
----
-2530
-5112
-5209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT ALL + CAST( - + col2 AS SIGNED ) * - - 56 - + 31 AS col1 FROM tab1
----
-3335
-3839
-5407

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + CAST ( - + col2 AS INTEGER ) * - - 56 - + 31 AS col1 FROM tab1
----
-3335
-3839
-5407

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - 58 - COUNT( * ) FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-3727
SELECT - 58 - COUNT ( * ) FROM tab1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT 26 + + col0 DIV col2 AS col0 FROM tab2
----
27
27
28

skipif mysql # not compatible
query I rowsort label-3728
SELECT 26 + + col0 / col2 AS col0 FROM tab2
----
27
27
28

query III rowsort
SELECT * FROM tab2 WHERE NULL = + 12 + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3730
SELECT DISTINCT 73 DIV + SUM( ALL 62 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT 73 / + SUM ( ALL 62 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT 67 + - + COUNT( * ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3732
SELECT 67 + - + COUNT ( * ) AS col1 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT - 74 + - - COUNT( * ) AS col0 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT - 74 + - - COUNT ( * ) AS col0 FROM tab2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3734
SELECT ( + CAST( NULL AS SIGNED ) ) + - MAX( + col0 ) * - + AVG ( ALL + col0 ) * + + 40 * + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT ( + CAST ( NULL AS INTEGER ) ) + - MAX ( + col0 ) * - + AVG ( ALL + col0 ) * + + 40 * + - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT - 61 + - ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - 61 + - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT COUNT( * ) * - + 89 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT COUNT ( * ) * - + 89 FROM tab2
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3738
SELECT ALL + 94, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
94
NULL
94
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-3738
SELECT ALL + 94, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
94
NULL
94
NULL
94
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 + - 1, + col1 * - ( - - 10 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 32 + + - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3742
SELECT + - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 col1 FROM tab2 cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL + - MAX( ALL + - 38 ) AS col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL + - MAX ( ALL + - 38 ) AS col2 FROM tab1 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - SUM( ALL + 52 ) AS col2 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3745
SELECT - SUM ( ALL + 52 ) AS col2 FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - MIN( ALL - col0 ) col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3746
SELECT - MIN ( ALL - col0 ) col1 FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT COUNT( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3747
SELECT COUNT ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT DISTINCT + COUNT( * ) DIV 44 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + COUNT ( * ) / 44 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ( 56 ) AS col0 FROM tab0
----
56
56
56

query II rowsort
SELECT 58 + - 71, + col1 FROM tab2
----
-13
51
-13
67
-13
77

query I rowsort
SELECT ALL 62 + - col2 * + 10 AS col1 FROM tab1
----
-528
-618
-898

query I rowsort
SELECT DISTINCT 51 + - col0 AS col0 FROM tab0 AS cor0
----
-36
-46
36

query I rowsort
SELECT DISTINCT 24 * - + ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 28 * 35 AND - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( - + 89 ) * + 91 col1 FROM tab0 cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3755
SELECT COUNT ( - + 89 ) * + 91 col1 FROM tab0 cor0
----
273

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) + - 88 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 88 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 2 + 5 AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - 69 + - col0 AS col1 FROM tab2 AS cor0
----
-115
-133
-144

query II rowsort
SELECT + + col2 + - ( - + col2 ), col0 AS col2 FROM tab1 AS cor0
----
118
85
136
91
192
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT 79 * COUNT( * ) * - COUNT( * ) + 95 AS col0 FROM tab0 AS cor0
----
-616

skipif mysql # not compatible
query I rowsort label-3761
SELECT 79 * COUNT ( * ) * - COUNT ( * ) + 95 AS col0 FROM tab0 AS cor0
----
-616

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3762
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - CAST ( NULL AS REAL ) - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT + 0 DIV + col2 + col0 AS col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3763
SELECT + 0 / + col2 + col0 AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - + 22 * - - 73 + + + COUNT( * ) AS col2 FROM tab0 cor0
----
-1603

skipif mysql # not compatible
query I rowsort label-3764
SELECT - + 22 * - - 73 + + + COUNT ( * ) AS col2 FROM tab0 cor0
----
-1603

query I rowsort
SELECT DISTINCT + ( - - 62 ) * + ( col0 ) FROM tab2 AS cor0
----
2852
3968
4650

query I rowsort
SELECT col1 + + 70 AS col1 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT ALL col1 / col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + col2 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3768
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + col2 col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 * - - 18 <= - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT 95 DIV - 88 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3770
SELECT 95 / - 88 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3771
SELECT - + CAST( NULL AS DECIMAL ) * + - 38 * - - col2 * - - col2 / 51 + - CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT - + CAST ( NULL AS REAL ) * + - 38 * - - col2 * - - col2 / 51 + - CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT + - 55 * - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-3772
SELECT + - 55 * - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
165

query I rowsort
SELECT + col2 * col0 * - + col1 AS col2 FROM tab0 cor0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT DISTINCT - col0 DIV + + col0 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT - col0 / + + col0 AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT ALL 68 DIV - + COUNT( * ) col0 FROM tab0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3775
SELECT ALL 68 / - + COUNT ( * ) col0 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT COUNT( * ) * + 75 AS col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT COUNT ( * ) * + 75 AS col1 FROM tab0 AS cor0
----
225

query I rowsort
SELECT ALL - col2 * + - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3778
SELECT DISTINCT + COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT DISTINCT + - 63 * COUNT( * ) FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT + - 63 * COUNT ( * ) FROM tab1 AS cor0
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 41 FROM tab0
----
1
41
21
41
81
41

query I rowsort
SELECT - 13 FROM tab0 WHERE ( NULL ) = col2 OR NOT - + col2 IS NULL
----
-13
-13
-13

query II rowsort
SELECT - col2 * col0 AS col0, 43 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT - 60 DIV - col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 60 / - col2 FROM tab1
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 NOT IN ( + 54 * + col2, + col1 + + 41 * + col1, - 19 + + col0 - - col1, 4, col2 + + 81, col0 - 25 + 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col2 col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT ALL col1 DIV - 50 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL col1 / - 50 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT - SUM( 9 ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3787
SELECT - SUM ( 9 ) AS col0 FROM tab1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT col2 * - CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT col2 * - CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 - - 13 FROM tab0 AS cor0
----
14
34
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3790
SELECT DISTINCT - col2 - - 41 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-58
NULL
-6
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-3790
SELECT DISTINCT - col2 - - 41 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-58
NULL
-6
NULL
31
NULL

query III rowsort
SELECT * FROM tab0 WHERE + ( + + col2 ) + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + COUNT( * ) + + ( 88 ) * - 96 FROM tab0
----
-8445

skipif mysql # not compatible
query I rowsort label-3792
SELECT + COUNT ( * ) + + ( 88 ) * - 96 FROM tab0
----
-8445

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3793
SELECT 18 * col1 * + + CAST( NULL AS SIGNED ) AS col2, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3793
SELECT 18 * col1 * + + CAST ( NULL AS INTEGER ) AS col2, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3794
SELECT - 18 AS col0, COUNT( DISTINCT - - 96 ) FROM tab1
----
-18
1

skipif mysql # not compatible
query II rowsort label-3794
SELECT - 18 AS col0, COUNT ( DISTINCT - - 96 ) FROM tab1
----
-18
1

query II rowsort
SELECT DISTINCT col1, + 70 FROM tab0
----
1
70
21
70
81
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT + col1 FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) * col2 * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3796
SELECT + col1 FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) * col2 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3797
SELECT ALL + 92 AS col2, col1 DIV col2 FROM tab2
----
92
1
92
1
92
2

skipif mysql # not compatible
query II rowsort label-3797
SELECT ALL + 92 AS col2, col1 / col2 FROM tab2
----
92
1
92
1
92
2

query I rowsort
SELECT ALL + - 28 * - + col0 FROM tab2 AS cor0
----
1288
1792
2100

query I rowsort
SELECT + - col2 * 3 * col1 FROM tab2 AS cor0
----
-11658
-3519
-9240

query I rowsort
SELECT + - col2 + + col2 + - - 52 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
52
52
52

query I rowsort
SELECT 54 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT + + COUNT( + + col1 ) * - ( - MIN( - - col0 ) ) + - 27 AS col0 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3802
SELECT + + COUNT ( + + col1 ) * - ( - MIN ( - - col0 ) ) + - 27 AS col0 FROM tab0 cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT ALL ( col0 ) FROM tab2 WHERE 1 * - CAST( + + col1 AS SIGNED ) * - col0 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL ( col0 ) FROM tab2 WHERE 1 * - CAST ( + + col1 AS INTEGER ) * - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 + + 54 AS col2 FROM tab2 AS cor0
----
112
77
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - COUNT( ALL 82 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3805
SELECT - COUNT ( ALL 82 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + - 47 FROM tab1 AS cor0
----
-2397
-3995
-4277

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT 6 DIV - - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT 6 / - - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT DISTINCT + + 92 DIV + 56 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + + 92 / + 56 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3809
SELECT ALL CAST( - col0 AS SIGNED ), ( - 5 ) + - col1 AS col2 FROM tab2 AS cor0
----
-46
-56
-64
-82
-75
-72

skipif mysql # not compatible
query II rowsort label-3809
SELECT ALL CAST ( - col0 AS INTEGER ), ( - 5 ) + - col1 AS col2 FROM tab2 AS cor0
----
-46
-56
-64
-82
-75
-72

query II rowsort
SELECT - 65 + + + col2 + - col0, col1 AS col1 FROM tab1
----
-20
14
-88
47
-91
5

query III rowsort
SELECT * FROM tab2 WHERE NULL = + col0 * + col0
----

query I rowsort
SELECT - - col0 * - + 71 FROM tab0 WHERE col2 > - - 71 * col1
----
-6887

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col1 ) IN ( + 57, + col1 / - col2 )
----

query II rowsort
SELECT ALL - + col1 AS col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - col2 + + + 26 * - 29 * - 30 FROM tab2
----
22562
22580
22597

query I rowsort
SELECT + col1 + - col2 * + - col1 FROM tab1 AS cor0
----
1358
300
3243

query II rowsort
SELECT ALL - + col0 AS col2, col2 * + col0 * + col2 * - col0 FROM tab1 AS cor0
----
-51
-23970816
-85
-25150225
-91
-38291344

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT DISTINCT COUNT( * ) + + MAX( + - 58 ) AS col2 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT COUNT ( * ) + + MAX ( + - 58 ) AS col2 FROM tab0 AS cor0
----
-55

query II rowsort
SELECT ALL - col1, - col2 - + ( - ( + - 32 ) ) AS col2 FROM tab0 AS cor0
----
-1
-131
-21
-42
-81
-79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + - 54 + + col0 NOT IN ( + + 64, - col0, + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COUNT( * ) * - + 19 AS col1 FROM tab0 WHERE NOT + - col2 > + 41
----
-57

skipif mysql # not compatible
query I rowsort label-3822
SELECT COUNT ( * ) * - + 19 AS col1 FROM tab0 WHERE NOT + - col2 > + 41
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3823
SELECT * FROM tab0 WHERE NOT col0 + + - 80 * col2 + + col1 <= + CAST( + col1 AS SIGNED ) * - 97
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-3823
SELECT * FROM tab0 WHERE NOT col0 + + - 80 * col2 + + col1 <= + CAST ( + col1 AS INTEGER ) * - 97
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT MIN( DISTINCT col1 ) * - + 70 AS col1 FROM tab2
----
-3570

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT MIN ( DISTINCT col1 ) * - + 70 AS col1 FROM tab2
----
-3570

query I rowsort
SELECT DISTINCT col0 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + ( - + col1 ) * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT - col1 AS col0, + 66 * + col1 FROM tab1
----
-14
924
-47
3102
-5
330

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT 38 DIV 89 + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT 38 / 89 + + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + - 74 * + 12 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT MAX( ALL - 21 ) AS col1 FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3832
SELECT MAX ( ALL - 21 ) AS col1 FROM tab2 cor0
----
-21

query I rowsort
SELECT + ( + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab0 AS cor0 WHERE NOT col1 * - - col1 NOT BETWEEN NULL AND + 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 / + ( - + 3 ) * col0 + - + col1 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT - col2 DIV + 65 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT - col2 / + 65 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 38 AS col1 FROM tab0 AS cor0
----
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( col1 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT 86 DIV col0 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3841
SELECT 86 / col0 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE - - 83 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT NULL <= + col1 AND NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + 96 AS col2 FROM tab1
----
147
181
187

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3846
SELECT + ( + COUNT( * ) ) + + AVG ( ALL + + col2 ) + - CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3846
SELECT + ( + COUNT ( * ) ) + + AVG ( ALL + + col2 ) + - CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT - 18 + + col1 FROM tab0 AS cor0 WHERE col1 * + CAST( NULL AS SIGNED ) IS NULL
----
-17
3
63

skipif mysql # not compatible
query I rowsort label-3847
SELECT - 18 + + col1 FROM tab0 AS cor0 WHERE col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
-17
3
63

query I rowsort
SELECT ALL - col1 + 38 FROM tab0 AS cor0
----
-43
17
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT + col2 + - - 89 DIV - col1 col2 FROM tab1 AS cor0
----
42
67
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3849
SELECT + col2 + - - 89 / - col1 col2 FROM tab1 AS cor0
----
42
67
90

query II rowsort
SELECT + col0 AS col1, 35 FROM tab1
----
51
35
85
35
91
35

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - ( + col0 ) + 38
----

query I rowsort
SELECT DISTINCT col2 * - - ( + col1 ) AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT + - 63 + col0 FROM tab2 AS cor0
----
-17
1
12

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( 61 - + - col2 )
----

query II rowsort
SELECT DISTINCT + 4 AS col0, 39 * col2 * col1 FROM tab0 AS cor0
----
4
148473
4
3861
4
8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT ALL CAST( - 64 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL CAST ( - 64 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ( + + 32 ) AS col2 FROM tab1 cor0
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3858
SELECT DISTINCT + - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + - MAX ( DISTINCT CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 11 FROM tab2 cor0 WHERE ( NULL ) > + - col0 * - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3860
SELECT CAST( NULL AS SIGNED ) AS col1, + 15 * + 52 FROM tab1
----
NULL
780
NULL
780
NULL
780

skipif mysql # not compatible
query II rowsort label-3860
SELECT CAST ( NULL AS INTEGER ) AS col1, + 15 * + 52 FROM tab1
----
NULL
780
NULL
780
NULL
780

query I rowsort
SELECT ALL 72 * - - col1 FROM tab1
----
1008
3384
360

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - col1 AS col0, 32 FROM tab1 AS cor0
----
-14
32
-47
32
-5
32

query II rowsort
SELECT + 73 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
73
-14
73
-47
73
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 98 ) * 68 * + col2 col1 FROM tab2 AS cor0 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT + 50 * col0 FROM tab1 AS cor0
----
2550
4250
4550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3867
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 > CAST( NULL AS SIGNED ) * 58 + + CAST( NULL AS SIGNED ) - + 68
----

skipif mysql # not compatible
query III rowsort label-3867
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 > CAST ( NULL AS INTEGER ) * 58 + + CAST ( NULL AS INTEGER ) - + 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT ALL + CAST( - AVG ( DISTINCT - 8 ) AS SIGNED ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + CAST ( - AVG ( DISTINCT - 8 ) AS INTEGER ) FROM tab2
----
8

query I rowsort
SELECT - col1 / col1 FROM tab1 WHERE NOT 31 <> + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + - 48, + col1 * - 61 col0 FROM tab0 AS cor0
----
-1
-4941
-38
-1281
51
-61

query I rowsort
SELECT + + ( col0 ) + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE - 82 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 * + col2 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 + - col2 * col2 + + col1 FROM tab1 AS cor0
----
-3561
-4668
-9253

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3876
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
----
NULL
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3876
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col1 col0, 4 AS col1 FROM tab2 AS cor0
----
NULL
4

query I rowsort
SELECT ALL 0 + + 52 AS col2 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT + col1 + + + 9 * + - ( - - 85 ) AS col1 FROM tab2 cor0
----
-688
-698
-714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 10 + + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3880
SELECT * FROM tab1 WHERE + - 15 >= - + CAST( col1 AS SIGNED ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3880
SELECT * FROM tab1 WHERE + - 15 >= - + CAST ( col1 AS INTEGER ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3881
SELECT ALL + 25 * + col2 * - CAST( + col1 AS SIGNED ) * - col1 * col0 AS col1, 41 - 7 * + col0 - 19 FROM tab2
----
379456000
-426
488178750
-503
68796450
-300

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL + 25 * + col2 * - CAST ( + col1 AS INTEGER ) * - col1 * col0 AS col1, 41 - 7 * + col0 - 19 FROM tab2
----
379456000
-426
488178750
-503
68796450
-300

query I rowsort
SELECT ALL 63 + - col1 AS col2 FROM tab0
----
-18
42
62

query III rowsort
SELECT * FROM tab1 WHERE + 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL col1 AS col1 FROM tab2 WHERE + CAST( - 20 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL col1 AS col1 FROM tab2 WHERE + CAST ( - 20 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * + + 24 * + - col2 * ( col2 ) * - 16 col2 FROM tab2 AS cor0
----
28262400
59421696
9344256

query I rowsort
SELECT + col2 * col2 * + ( - + col1 ) * + - col1 * - - ( col0 ) + - col1 - + - 10 + col2 * + ( col1 ) FROM tab2 AS cor0
----
1132578529
607132613
63293866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT CAST( NULL AS SIGNED ) / + col2 / + col2 * - + 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT CAST ( NULL AS INTEGER ) / + col2 / + col2 * - + 13 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT DISTINCT 9 DIV + - col0 * - + col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT 9 / + - col0 * - + col1 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + 83 * SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
5478

skipif mysql # not compatible
query I rowsort label-3890
SELECT + 83 * SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
5478

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3891
SELECT ALL - - col1 * - CAST( NULL AS SIGNED ) AS col2, + 52 + - col0 FROM tab0 AS cor0
----
NULL
-35
NULL
-45
NULL
37

skipif mysql # not compatible
query II rowsort label-3891
SELECT ALL - - col1 * - CAST ( NULL AS INTEGER ) AS col2, + 52 + - col0 FROM tab0 AS cor0
----
NULL
-35
NULL
-45
NULL
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3892
SELECT * FROM tab2 WHERE NOT - 36 * + col0 <> + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3892
SELECT * FROM tab2 WHERE NOT - 36 * + col0 <> + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + + col1 AS col2 FROM tab1 WHERE NOT 29 NOT IN ( - + col0 + + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT ALL - col0 DIV ( + 70 ) AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - col0 / ( + 70 ) AS col0 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT - col2 DIV + + col2 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3897
SELECT - col2 / + + col2 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT SUM( ALL - - ( - 77 ) ) * - 93 + - COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT SUM ( ALL - - ( - 77 ) ) * - 93 + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT + 73 AS col1, col0 AS col2 FROM tab2 AS cor0
----
73
46
73
64
73
75

query II rowsort
SELECT + + col0, + col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT - ( - + 23 ) FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - - 38 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 27
----

query I rowsort
SELECT - col2 - + - 22 AS col0 FROM tab1 WHERE col2 + - - ( col1 ) <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - COUNT( * ) * 47 - + 83 AS col2 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - COUNT ( * ) * 47 - + 83 AS col2 FROM tab1
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT ALL - col1 DIV 87 DIV + 99 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - col1 / 87 / + 99 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 71 col2 FROM tab0
----
1491
5751
71

query I rowsort
SELECT 57 + - - col2 * + 31 FROM tab0
----
1514
3126
367

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3910
SELECT ALL 74 * CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL 74 * CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + 37 + + - 55 AS col0, col2 * col0 FROM tab0 AS cor0
----
-18
705
-18
870
-18
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3912
SELECT ALL + + CAST( NULL AS DECIMAL ) + + col0 + - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + + CAST ( NULL AS REAL ) + + col0 + - - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 24 + - 28 FROM tab1 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL - MAX( DISTINCT - 59 ) AS col1 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL - MAX ( DISTINCT - 59 ) AS col1 FROM tab0
----
59

query I rowsort
SELECT + ( - - ( - + col2 ) ) AS col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3916
SELECT DISTINCT * FROM tab2 WHERE NOT + 4 NOT BETWEEN + col0 / 38 + + + col1 * - - CAST( - col1 AS SIGNED ) + + col2 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3916
SELECT DISTINCT * FROM tab2 WHERE NOT + 4 NOT BETWEEN + col0 / 38 + + + col1 * - - CAST ( - col1 AS INTEGER ) + + col2 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT - CAST( - MIN( col0 ) AS SIGNED ) * 39 FROM tab2
----
1794

skipif mysql # not compatible
query I rowsort label-3917
SELECT - CAST ( - MIN ( col0 ) AS INTEGER ) * 39 FROM tab2
----
1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT - - col0 * - CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3918
SELECT - - col0 * - CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + + 44 * - + col1 FROM tab2 AS cor0
----
-2244
-2948
-3388

query I rowsort
SELECT DISTINCT - + col2 * - ( col0 ) * + 94 FROM tab2 AS cor0
----
240640
408900
99452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE + + 98 + + 88 = - col2
----

query I rowsort
SELECT 48 + + + 88 AS col2 FROM tab0
----
136
136
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - 7 * - COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - 7 * - COUNT ( * ) FROM tab0
----
21

query I rowsort
SELECT + - ( + 98 ) FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + - col1 * - col1 * + 34 FROM tab0 AS cor0
----
14994
223074
34

query I rowsort
SELECT + + 96 * - - col1 + - 28 + - - ( col2 ) FROM tab1 AS cor0
----
1412
4552
511

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL + - COUNT( * ) - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL + - COUNT ( * ) - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + 84 + + - COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-3929
SELECT + 84 + + - COUNT ( * ) FROM tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + - 16 col1 FROM tab2
----
-66
-66
-66

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= + col0 + + 49
----

query I rowsort
SELECT - + col1 + - 81 FROM tab2 AS cor0
----
-132
-148
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT - col0 DIV + col2 + + col1 FROM tab1 cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-3933
SELECT - col0 / + col2 + + col1 FROM tab1 cor0
----
14
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 1 col2 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT + col0 + - + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ( - 8 ) + col0 FROM tab2 AS cor0
----
38
56
67

query I rowsort
SELECT - - 6 * + 36 + - 26 FROM tab0 cor0
----
190
190
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT ALL - + CAST( NULL AS SIGNED ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT - CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3940
SELECT - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT DISTINCT - ( CAST( SUM( 12 ) AS SIGNED ) ) FROM tab2 WHERE NOT + col0 * col2 + - 94 = 85
----
-36

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - ( CAST ( SUM ( 12 ) AS INTEGER ) ) FROM tab2 WHERE NOT + col0 * col2 + - 94 = 85
----
-36

query II rowsort
SELECT ALL col1 AS col2, + col0 AS col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT - + COUNT( * ) AS col0 FROM tab0 WHERE + CAST( + + col0 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3943
SELECT - + COUNT ( * ) AS col0 FROM tab0 WHERE + CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query II rowsort
SELECT DISTINCT 99 AS col0, + col0 * + col0 AS col0 FROM tab1
----
99
2601
99
7225
99
8281

query I rowsort
SELECT ALL 98 + - col0 + - - col1 AS col2 FROM tab2
----
103
111
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 26 ) - + ( + - 80 ) * + - 36 col2 FROM tab0
----
-2906
-2906
-2906

query II rowsort
SELECT DISTINCT 83 + - col2 AS col0, col2 * - 73 AS col1 FROM tab2
----
25
-4234
43
-2920
60
-1679

query I rowsort
SELECT ALL + - ( ( + 29 ) ) FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT - COUNT( DISTINCT col2 ) - COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3950
SELECT - COUNT ( DISTINCT col2 ) - COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col2 col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - SUM( DISTINCT + 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - SUM ( DISTINCT + 83 ) FROM tab0 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - COUNT( 32 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3953
SELECT - COUNT ( 32 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * 90 + + col1 FROM tab1 cor0
----
5315
6167
8654

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL ( + 63 ) * MAX( - - col0 ) AS col2 FROM tab0
----
6111

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL ( + 63 ) * MAX ( - - col0 ) AS col2 FROM tab0
----
6111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT - CAST( + col1 AS SIGNED ) col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3956
SELECT - CAST ( + col1 AS INTEGER ) col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + SUM( DISTINCT - 23 ) * - + 64 * COUNT( * ) + + 91 FROM tab2
----
4507

skipif mysql # not compatible
query I rowsort label-3957
SELECT + SUM ( DISTINCT - 23 ) * - + 64 * COUNT ( * ) + + 91 FROM tab2
----
4507

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL + MAX( + + 87 ) col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3958
SELECT ALL + MAX ( + + 87 ) col2 FROM tab0 AS cor0
----
87

query I rowsort
SELECT ALL + col2 * - - col1 * - + col0 * - 76 FROM tab1 AS cor0
----
1905700
22103536
5209344

query I rowsort
SELECT col2 * col1 - - col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 96 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 cor0 WHERE NOT 51 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 97 * 2 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3964
SELECT DISTINCT COUNT( * ) DIV - 84, 56 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
168

skipif mysql # not compatible
query II rowsort label-3964
SELECT DISTINCT COUNT ( * ) / - 84, 56 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
168

query I rowsort
SELECT + ( - + col0 ) * + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT 61 * - + col1 AS col1 FROM tab2
----
-3111
-4087
-4697

query II rowsort
SELECT + col2 AS col0, + col1 + + col2 FROM tab0
----
10
31
47
128
99
100

query I rowsort
SELECT + 49 * - col2 AS col2 FROM tab0
----
-2303
-4851
-490

query I rowsort
SELECT DISTINCT 83 + - 70 * col0 AS col2 FROM tab0
----
-6007
-6707
-967

query I rowsort
SELECT DISTINCT 12 + - col1 FROM tab1 WHERE NOT NULL IN ( - ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT ALL + col0 * + CAST( 55 * ( col2 ) AS SIGNED ) AS col0 FROM tab2
----
140800
239250
58190

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL + col0 * + CAST ( 55 * ( col2 ) AS INTEGER ) AS col0 FROM tab2
----
140800
239250
58190

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - ( 24 ) )
----

query I rowsort
SELECT DISTINCT - col1 * 10 FROM tab2
----
-510
-670
-770

query I rowsort
SELECT ALL - col0 + col0 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND 85 + - col2
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3977
SELECT col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3977
SELECT col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT DISTINCT - MAX( DISTINCT - col1 ) - 24 * - 34 AS col2 FROM tab0
----
817

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - MAX ( DISTINCT - col1 ) - 24 * - 34 AS col2 FROM tab0
----
817

query I rowsort
SELECT col2 + - 66 AS col2 FROM tab2
----
-26
-43
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT - col2 DIV 11 FROM tab0
----
-4
-9
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT - col2 / 11 FROM tab0
----
-4
-9
0

query I rowsort
SELECT DISTINCT 66 + ( - 37 ) AS col0 FROM tab1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT - col0 DIV 94 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT - col0 / 94 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT ALL col1 DIV + 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL col1 / + 93 FROM tab1
----
0
0
0

query I rowsort
SELECT - 74 * 63 FROM tab2 WHERE NOT + 41 + col1 * col1 IS NULL
----
-4662
-4662
-4662

query I rowsort
SELECT + 12 * - col0 AS col0 FROM tab0
----
-1044
-1164
-180

query I rowsort
SELECT + 28 * col1 + + 75 AS col2 FROM tab2
----
1503
1951
2231

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + 36 * - MAX( - col1 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3988
SELECT + 36 * - MAX ( - col1 ) FROM tab1
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT + col1 DIV + col0 + + col0 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-3989
SELECT + col1 / + col0 + + col0 FROM tab2
----
47
65
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT col0 DIV col2 AS col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3990
SELECT col0 / col2 AS col2 FROM tab2 cor0
----
1
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3991
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL <> + col2
----

skipif mysql # not compatible
query I rowsort label-3991
SELECT + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL <> + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 17 NOT IN ( col2 )
----

query I rowsort
SELECT 45 * + col1 FROM tab1 AS cor0
----
2115
225
630

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 66 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT ALL - col0 DIV 84 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - col0 / 84 AS col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( col1 ) ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT COUNT( col2 ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3997
SELECT COUNT ( col2 ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 3 IS NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 50 * col1 < ( NULL )
----

query I rowsort
SELECT 60 * 97 + + 7 * + 92 FROM tab1
----
6464
6464
6464

query I rowsort
SELECT - col2 + + col0 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 7 + 17 AS col1 FROM tab0
----
-312
-53
-676

query I rowsort
SELECT + col1 + + - col2 + - col1 AS col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4005
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 29 AND 42 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4005
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 29 AND 42 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 47 + col2 AS col1 FROM tab1 WHERE 50 > + ( - col0 ) - - 64
----
12
21
49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + + ( col1 ) * - ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4008
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) / + col2 + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4008
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) / + col2 + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 99 + - - col2 AS col0 FROM tab0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ( + - COUNT( - col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4010
SELECT ( + - COUNT ( - col0 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL 53 * + 51 * col1 FROM tab0
----
218943
2703
56763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT - CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4012
SELECT - CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL col2 FROM tab1 cor0 WHERE NOT ( 0 * - CAST( col1 AS SIGNED ) ) NOT BETWEEN ( - 94 * - col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL col2 FROM tab1 cor0 WHERE NOT ( 0 * - CAST ( col1 AS INTEGER ) ) NOT BETWEEN ( - 94 * - col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + 82 AS col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

query I rowsort
SELECT 65 * 72 AS col2 FROM tab0 AS cor0
----
4680
4680
4680

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL > ( + ( 58 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT + COUNT( ALL - col2 ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT + COUNT ( ALL - col2 ) * COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4018
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + + CAST( NULL AS SIGNED ) * - 21 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4018
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + + CAST ( NULL AS INTEGER ) * - 21 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4019
SELECT ALL - COUNT( * ) + + 80 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - COUNT ( * ) + + 80 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + + + col2 col1 FROM tab2 AS cor0
----
58
75
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT COUNT( * ) + - ( - 21 ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4021
SELECT COUNT ( * ) + - ( - 21 ) AS col0 FROM tab1 AS cor0
----
24

query I rowsort
SELECT + 12 + - + col1 AS col0 FROM tab0 AS cor0
----
-69
-9
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - ( + + COUNT( * ) ) + MAX( DISTINCT + 95 ) AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4023
SELECT - ( + + COUNT ( * ) ) + MAX ( DISTINCT + 95 ) AS col0 FROM tab1 AS cor0
----
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 + + ( - col1 ) ) > col0 * 46 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT 21 + + COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT 21 + + COUNT ( * ) FROM tab2 AS cor0
----
24

query II rowsort
SELECT - 42, - col1 AS col0 FROM tab2 AS cor0
----
-42
-51
-42
-67
-42
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + MIN( ALL - 42 ) FROM tab1 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4027
SELECT + MIN ( ALL - 42 ) FROM tab1 cor0
----
-42

query I rowsort
SELECT + col0 * - ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - 57 - col2 FROM tab1 AS cor0 WHERE 21 * 91 * + col0 + 91 <= - col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL + CAST( ( + col1 ) AS SIGNED ) FROM tab1 WHERE NOT + 38 * - col0 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + CAST ( ( + col1 ) AS INTEGER ) FROM tab1 WHERE NOT + 38 * - col0 IS NULL
----
14
47
5

query I rowsort
SELECT ALL 5 - - + col0 + - col0 AS col0 FROM tab2
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 35 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL - 42 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL - 42 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + col2 * + col0 AS col0, - 80 AS col0 FROM tab2
----
1058
-80
2560
-80
4350
-80

query I rowsort
SELECT DISTINCT ( + - 21 ) FROM tab2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT ALL - col2 DIV - + col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL - col2 / - + col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4037
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( - ( - - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4037
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( - ( - - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL + CAST( - SUM( 70 ) AS SIGNED ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + CAST ( - SUM ( 70 ) AS INTEGER ) FROM tab2 AS cor0
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - ( + col0 ) + + 26 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 62 + + col1 AS col0 FROM tab2 AS cor0
----
-11
15
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 27 * + + 87 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 37 * + + col0 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 * col2 * ( col1 ) + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + + MIN( 34 ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-4046
SELECT + + MIN ( 34 ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT + col0 DIV + col2 AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4047
SELECT + col0 / + col2 AS col0 FROM tab0
----
0
0
8

query II rowsort
SELECT ALL + col0, + col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT + col2 * 14 FROM tab1
----
1344
826
952

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT ( + - ( - - COUNT( * ) ) ) * - + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT ( + - ( - - COUNT ( * ) ) ) * - + COUNT ( * ) AS col1 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * + - col0 * 19 col2 FROM tab2
----
-43700
-60800
-71250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4052
SELECT ( + MIN( - col0 ) ) DIV + 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4052
SELECT ( + MIN ( - col0 ) ) / + 92 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 + 73 + col2 FROM tab1
----
127
155
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47, col2 + + - col0 col1 FROM tab1
----
47
-23
47
-26
47
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT 53 AS col1, - COUNT( * ) + COUNT( * ) col2 FROM tab0
----
53
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4055
SELECT 53 AS col1, - COUNT ( * ) + COUNT ( * ) col2 FROM tab0
----
53
0

query I rowsort
SELECT - col1 + 37 + + col0 AS col2 FROM tab0
----
-29
103
133

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 * - col2 * + ( + col2 ) * col0 - 69 + col0 AS col2 FROM tab0 cor0
----
1557291
87018
94119031

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + COUNT( * ) + + 66 AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4059
SELECT + COUNT ( * ) + + 66 AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-4060
SELECT ALL col2, - ( + col2 ) * col0 * col1 DIV + col0 FROM tab2 cor0
----
23
-1173
40
-3080
58
-3886

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL col2, - ( + col2 ) * col0 * col1 / + col0 FROM tab2 cor0
----
23
-1173
40
-3080
58
-3886

query I rowsort
SELECT ALL - - col2 - 37 FROM tab2 AS cor0
----
-14
21
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - - 8 ) + + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 24 * - - 68 FROM tab1
----
-110976
-156672
-96288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) - + 19 AS col2 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - + 19 AS col2 FROM tab1
----
-16

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( + 77 )
----

query I rowsort
SELECT + + 38 - col1 FROM tab1 AS cor0
----
-9
24
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + + 1 + + - COUNT( * ) FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + + 1 + + - COUNT ( * ) FROM tab1 cor0
----
-2

query I rowsort
SELECT DISTINCT - + 53 + col2 FROM tab0 AS cor0
----
-43
-6
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 38 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT + CAST( NULL AS SIGNED ) * - 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + CAST ( NULL AS INTEGER ) * - 24 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 * + 7 >= ( - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4073
SELECT ALL + col0 AS col0, + col0 DIV + ( col1 ) AS col1 FROM tab2
----
46
0
64
0
75
1

skipif mysql # not compatible
query II rowsort label-4073
SELECT ALL + col0 AS col0, + col0 / + ( col1 ) AS col1 FROM tab2
----
46
0
64
0
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT SUM( - ( - + 3 ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4074
SELECT SUM ( - ( - + 3 ) ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT ALL - 18 DIV - + col1 FROM tab0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL - 18 / - + col1 FROM tab0
----
0
0
18

query I rowsort
SELECT col1 * 34 AS col2 FROM tab2
----
1734
2278
2618

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT ALL 88 DIV + 2 FROM tab0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 88 / + 2 FROM tab0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + COUNT( ALL col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4078
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 58 * + col1 / + ( col2 ) NOT BETWEEN - - 91 AND - 60
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 / + 78 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - MAX( - + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - MAX ( - + col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + - 62 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + SUM( ALL + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + SUM ( ALL + + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL OR 59 + - - 2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL OR 59 + - - 2 < NULL
----
0

query II rowsort
SELECT ALL col1 AS col0, - 50 AS col2 FROM tab2
----
51
-50
67
-50
77
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL COUNT( * ) + - - 92 AS col1 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL COUNT ( * ) + - - 92 AS col1 FROM tab2
----
95

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT - + MAX( DISTINCT + col0 ) FROM tab0 WHERE - col0 * - CAST( + col1 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - + MAX ( DISTINCT + col0 ) FROM tab0 WHERE - col0 * - CAST ( + col1 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - 11 + COUNT( * ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - 11 + COUNT ( * ) FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL + ( + col2 ) - + col2 * - 2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL + ( + col2 ) - + col2 * - 2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT COUNT( DISTINCT + + 50 ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4093
SELECT COUNT ( DISTINCT + + 50 ) col1 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT + col1 col0 FROM tab2 AS cor0 WHERE col2 + CAST( NULL AS SIGNED ) <> - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4094
SELECT + col1 col0 FROM tab2 AS cor0 WHERE col2 + CAST ( NULL AS INTEGER ) <> - col1
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 cor0 WHERE ( 63 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT col0 - + - 77 FROM tab0 cor0
----
164
174
92

query I rowsort
SELECT + col0 - - ( + col2 ) FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4098
SELECT - CAST( NULL AS SIGNED ), ( col2 ) FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4098
SELECT - CAST ( NULL AS INTEGER ), ( col2 ) FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT ( 99 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col2 * + 64 FROM tab1 AS cor0
----
-3776
-4352
-6144

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT DISTINCT COUNT( * ) DIV + - 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT COUNT ( * ) / + - 63 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 + + - 54 / ( + ( + col1 ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT DISTINCT + col0 DIV 41 AS col2 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT + col0 / 41 AS col2 FROM tab1
----
1
2

query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 54 * col2 FROM tab2 WHERE + col2 * - col0 / + ( ( - - col1 ) ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT col1 * + col2 * 55 DIV - col2 FROM tab2
----
-2805
-3685
-4235

skipif mysql # not compatible
query I rowsort label-4107
SELECT col1 * + col2 * 55 / - col2 FROM tab2
----
-2805
-3685
-4235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col1 FROM tab1
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + - col1 ) col0, + 67 + - 54 FROM tab0 AS cor0
----
-1
13
-21
13
-81
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT + + ( - CAST( + 36 AS SIGNED ) ) FROM tab2 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-4110
SELECT + + ( - CAST ( + 36 AS INTEGER ) ) FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT + MAX( DISTINCT + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + MAX ( DISTINCT + col1 ) FROM tab2
----
77

query II rowsort
SELECT - col0, col1 AS col1 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT - + col0 * - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 AS col1, - col2 * 35 col2 FROM tab0 AS cor0 WHERE - col0 = NULL
----

query I rowsort
SELECT ALL - - col1 + - 48 + col2 AS col2 FROM tab2 AS cor0
----
26
69
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL COUNT( * ) + 27 AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL COUNT ( * ) + 27 AS col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL - 44 + 59 * + ( col0 ) FROM tab2 AS cor0
----
2670
3732
4381

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4118
SELECT DISTINCT - - col1 + - + CAST( + ( - - col1 ) AS SIGNED ) AS col1, 46 FROM tab2 AS cor0
----
0
46

skipif mysql # not compatible
query II rowsort label-4118
SELECT DISTINCT - - col1 + - + CAST ( + ( - - col1 ) AS INTEGER ) AS col1, 46 FROM tab2 AS cor0
----
0
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - - col2 col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT ( + MIN( - col0 ) ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT ( + MIN ( - col0 ) ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT - MAX( - col0 ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT - MAX ( - col0 ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 24 * - + col0 + + 85 AS col0 FROM tab2
----
1189
1621
1885

query I rowsort
SELECT ( + col2 ) * col1 + + col0 * - col0 FROM tab1
----
-1257
-5085
-6930

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT 62 * + + col2 * + 1 + + col1 DIV + 32 FROM tab1
----
3658
4217
5952

skipif mysql # not compatible
query I rowsort label-4124
SELECT 62 * + + col2 * + 1 + + col1 / + 32 FROM tab1
----
3658
4217
5952

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT + 44 DIV + + 45 + + col2 + + 55 col1 FROM tab1
----
114
123
151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4125
SELECT + 44 / + + 45 + + col2 + + 55 col1 FROM tab1
----
114
123
151

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - ( - col0 ) + + 19 IN ( - col2 * - 42 + + col1, - 81, - col1 * - - col2 )
----
10
47
99

query I rowsort
SELECT col0 + - 94 FROM tab2 AS cor0
----
-19
-30
-48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 29 IN ( - col1, col1 )
----

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab1 AS cor0 WHERE col0 + + col1 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4130
SELECT ALL 11 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
11
NULL
11
NULL
11
NULL

skipif mysql # not compatible
query II rowsort label-4130
SELECT ALL 11 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
11
NULL
11
NULL
11
NULL

query I rowsort
SELECT + + 23 + col1 + col0 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT ALL col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL col2 / - col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT - - 81 DIV - col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4133
SELECT - - 81 / - col2 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT ALL - ( + - col0 ) * + + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - COUNT( - 68 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4135
SELECT - COUNT ( - 68 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - col0, + col2 * - 3 AS col1 FROM tab1
----
-51
-288
-85
-177
-91
-204

query I rowsort
SELECT DISTINCT 61 * + col2 * - - 41 AS col1 FROM tab2
----
100040
145058
57523

query I rowsort
SELECT + col2 * - - col0 + - + 58 + col0 + + - col2 * - - col1 * col1 FROM tab0 AS cor0 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT ALL - 45 * - 77 + - + col2 FROM tab0 AS cor0
----
3366
3418
3455

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT - col0 <> - 27
----

query I rowsort
SELECT ALL + 76 * + + col1 AS col0 FROM tab2 AS cor0
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT + COUNT( * ) * + 51 + - 3 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + COUNT ( * ) * + 51 + - 3 FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4143
SELECT ALL + 96 + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + 96 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT - + CAST( NULL AS SIGNED ) + col2 + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - + CAST ( NULL AS INTEGER ) + col2 + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 42 + - + col0 AS col2 FROM tab2 AS cor0
----
-22
-33
-4

query I rowsort
SELECT - col2 + + - ( - ( col1 ) ) FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + + col2 + + ( + 8 ) * - - col2 FROM tab1 AS cor0
----
531
612
864

query I rowsort
SELECT ALL col2 + + - 43 AS col1 FROM tab0 AS cor0
----
-33
4
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4149
SELECT * FROM tab0 AS cor0 WHERE col1 + - col1 * col1 * CAST( NULL AS SIGNED ) * + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4149
SELECT * FROM tab0 AS cor0 WHERE col1 + - col1 * col1 * CAST ( NULL AS INTEGER ) * + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2, col1, - col2, - col2 + + col0 + 89, + col2 )
----

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-4152
SELECT DISTINCT COUNT( * ) - + ( + COUNT( * ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT COUNT ( * ) - + ( + COUNT ( * ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
10
47
99

query II rowsort
SELECT ALL col1 AS col1, + 58 FROM tab0
----
1
58
21
58
81
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL + CAST( + col1 AS SIGNED ) col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4155
SELECT ALL + CAST ( + col1 AS INTEGER ) col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4156
SELECT + col0 DIV - CAST( 68 AS SIGNED ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT + col0 / - CAST ( 68 AS INTEGER ) FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + - SUM( 94 ) - COUNT( * ) FROM tab0 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-4157
SELECT + - SUM ( 94 ) - COUNT ( * ) FROM tab0 cor0
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL - col1 DIV - 41 + + col0 AS col2 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - col1 / - 41 + + col0 AS col2 FROM tab0 AS cor0
----
16
87
97

query I rowsort
SELECT 64 - 30 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab0 WHERE ( - + 22 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab0 WHERE ( - + 22 ) <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( col2 ) = 40 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + MIN( col0 ) * + COUNT( * ) FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-4163
SELECT + MIN ( col0 ) * + COUNT ( * ) FROM tab0 cor0
----
45

query I rowsort
SELECT ALL 65 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT ALL - 53 * 89 FROM tab0 AS cor0
----
-4717
-4717
-4717

query I rowsort
SELECT ALL + + ( - ( - col1 ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE + - col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - ( - 37 ) AS col2 FROM tab0
----
37
37
37

query II rowsort
SELECT - col1 AS col0, + col1 * + col0 FROM tab0
----
-1
97
-21
1827
-81
1215

query I rowsort
SELECT DISTINCT + col0 * - - 12 AS col1 FROM tab1
----
1020
1092
612

query I rowsort
SELECT ALL + col2 + - - col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL = ( + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL = ( + 60 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT DISTINCT col0 DIV 8 AS col1 FROM tab0
----
1
10
12

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT col0 / 8 AS col1 FROM tab0
----
1
10
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4174
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND 7 + - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-4174
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND 7 + - CAST ( NULL AS INTEGER ) * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 + - col2 > + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * - - 3 AS col1 FROM tab1 AS cor0
----
153
255
273

query II rowsort
SELECT ALL + 93, col2 FROM tab0 AS cor0
----
93
10
93
47
93
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4178
SELECT + 66 DIV - + CAST( - col1 AS SIGNED ) + - col1 FROM tab2
----
-50
-67
-77

skipif mysql # not compatible
query I rowsort label-4178
SELECT + 66 / - + CAST ( - col1 AS INTEGER ) + - col1 FROM tab2
----
-50
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT DISTINCT CAST( + - 85 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT CAST ( + - 85 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-4180
SELECT col0, col1 + 1 DIV - col0 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-4180
SELECT col0, col1 + 1 / - col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4181
SELECT - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + ( - - col1 ) * - + 16 * - - col1 * + + col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-1914387
-5386867
-6071373

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT DISTINCT - 94 + 53 * COUNT( * ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - 94 + 53 * COUNT ( * ) FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT COUNT( * ) - - + 59 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4184
SELECT COUNT ( * ) - - + 59 FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT + CAST( NULL AS SIGNED ) * col1 + + - 19 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT + CAST ( NULL AS INTEGER ) * col1 + + - 19 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 77 + col2 * + - 91 + + col1 AS col0 FROM tab0
----
-4273
-9085
-966

query I rowsort
SELECT col1 + + - 70 AS col1 FROM tab2
----
-19
-3
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( + col0, col1, + col0 - + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT + COUNT( * ) + + ( - 18 ) + + 15 * MAX( - col1 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4189
SELECT + COUNT ( * ) + + ( - 18 ) + + 15 * MAX ( - col1 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT - SUM( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4190
SELECT - SUM ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + - MAX( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4191
SELECT + - MAX ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4192
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS DECIMAL ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4192
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS REAL ) + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT + CAST( NULL AS SIGNED ) / - + 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT + CAST ( NULL AS INTEGER ) / - + 55 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 77 AS col1, + col1 + + col0 AS col1 FROM tab0 AS cor0
----
77
108
77
96
77
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 25 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col1, + col0, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT + 67 DIV - col1 FROM tab1 AS cor0
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 67 / - col1 FROM tab1 AS cor0
----
-1
-13
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4198
SELECT - CAST( NULL AS DECIMAL ) * + 19 + + + 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT - CAST ( NULL AS REAL ) * + 19 + + + 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4199
SELECT - col0 AS col2, + 87 DIV - col1 FROM tab0 AS cor0
----
-15
-1
-87
-4
-97
-87

skipif mysql # not compatible
query II rowsort label-4199
SELECT - col0 AS col2, + 87 / - col1 FROM tab0 AS cor0
----
-15
-1
-87
-4
-97
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT SUM( - col1 ) * - ( - COUNT( * ) ) AS col2 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT SUM ( - col1 ) * - ( - COUNT ( * ) ) AS col2 FROM tab0
----
-309

query I rowsort
SELECT + col1 + - ( - col2 ) FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col0 AS col2, col0 col0 FROM tab0 AS cor0
----
705
15
870
87
9603
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col1 ) + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + 42 * + COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 42 * + COUNT ( * ) FROM tab1 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab0 WHERE NOT + - col2 + + - 79 + - col0 + + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab0 WHERE NOT + - col2 + + - 79 + - col0 + + - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) + - col1 AS col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT 96 * + ( - col2 ) + + col0 AS col2 FROM tab0
----
-4497
-873
-9407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT ALL - col1 + ( - CAST( col0 AS SIGNED ) ) + - - 81 FROM tab1 cor0
----
-57
-9
16

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - col1 + ( - CAST ( col0 AS INTEGER ) ) + - - 81 FROM tab1 cor0
----
-57
-9
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL - CAST( NULL AS SIGNED ) * + 6 + 1 * + + 47 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - CAST ( NULL AS INTEGER ) * + 6 + 1 * + + 47 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT ALL col2 DIV 80 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + col2 * + - col0 AND - col2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL col2 / 80 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + col2 * + - col0 AND - col2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT - - 8 DIV + MAX( DISTINCT - - col1 ) - COUNT( * ) + 76 AS col1 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-4211
SELECT - - 8 / + MAX ( DISTINCT - - col1 ) - COUNT ( * ) + 76 AS col1 FROM tab2 cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT - - MIN( 71 ) + - COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT - - MIN ( 71 ) + - COUNT ( * ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL - col2 - ( - col2 ) * - - 44 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4214
SELECT + 95 AS col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
query II rowsort label-4214
SELECT + 95 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
95
NULL
95
NULL
95
NULL

query I rowsort
SELECT ALL 59 - - col0 AS col2 FROM tab1
----
110
144
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT + MIN( DISTINCT + col0 ) - MAX( DISTINCT + + 29 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT + MIN ( DISTINCT + col0 ) - MAX ( DISTINCT + + 29 ) FROM tab0
----
-14

query III rowsort
SELECT * FROM tab2 WHERE + 30 <= 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - 50 * + col1 * col1 FROM tab2
----
15038150
22826650
6632550

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * 85 FROM tab1
----
-4335
-7225
-7735

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * 85 FROM tab1
----
-4335
-7225
-7735

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT - 60 DIV + - 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT - 60 / + - 70 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + 9, + col1 * - - 31 AS col0 FROM tab0
----
9
2511
9
31
9
651

query I rowsort
SELECT - col2 * + 12 FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT ALL col0 * + + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + col1 * + col1 + - - 98 FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT + CAST( NULL AS SIGNED ) * - col0 * + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT + CAST ( NULL AS INTEGER ) * - col0 * + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * + + 33 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 12d345979f4936a95ebd067f93d487d9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4228
SELECT DISTINCT - - AVG ( + + CAST( NULL AS SIGNED ) ) AS col0, 22 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + 12 / col0 + col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-4228
SELECT DISTINCT - - AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0, 22 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + 12 / col0 + col2
----
NULL
22

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 * - 22 * - - 12 + + col1, + col0 * col1, + 1, - 22, 73 * - + col1 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 76 IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT + MIN( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT + MIN ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT + 77 * AVG ( ALL - ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT + 77 * AVG ( ALL - ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 25 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + - 64 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4237
SELECT + col0 col1, - col0 DIV col0 FROM tab2
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4237
SELECT + col0 col1, - col0 / col0 FROM tab2
----
46
-1
64
-1
75
-1

query I rowsort
SELECT - ( - ( ( - col2 ) ) ) FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col1 + + col2 * - - 35 * - col2 AS col2 FROM tab0
----
15
-77396
87
-3521
97
-343036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT + CAST( - col0 AS SIGNED ) + col1 + + - col2 FROM tab1
----
-112
-133
-139

skipif mysql # not compatible
query I rowsort label-4240
SELECT + CAST ( - col0 AS INTEGER ) + col1 + + - col2 FROM tab1
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT MIN( ALL col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT MIN ( ALL col0 ) AS col2 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT 8 DIV + - 28 + - 97 * - 23 FROM tab0 AS cor0
----
2231
2231
2231

skipif mysql # not compatible
query I rowsort label-4242
SELECT 8 / + - 28 + - 97 * - 23 FROM tab0 AS cor0
----
2231
2231
2231

query I rowsort
SELECT DISTINCT 21 * + col1 * col2 FROM tab1 AS cor0 WHERE 43 = ( - 69 + + - col2 * - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT DISTINCT + ( 4 ) + - COUNT( * ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-4244
SELECT DISTINCT + ( 4 ) + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL + 10 + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + 10 + COUNT ( * ) FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT + 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
67

query I rowsort
SELECT ALL + 88 * + + col1 FROM tab1
----
1232
4136
440

query I rowsort
SELECT col1 * - - col2 AS col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4249
SELECT ALL + + col2 + + col1, - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
110
NULL
115
NULL
64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4249
SELECT ALL + + col2 + + col1, - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
110
NULL
115
NULL
64
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - col2 + - col0 + + col2 + + 37 * col1 * + + ( 13 ) + - 71 + 6 + - + col0 AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4251
SELECT * FROM tab1 AS cor0 WHERE + ( + + CAST( - - col0 AS SIGNED ) ) < + - col0 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4251
SELECT * FROM tab1 AS cor0 WHERE + ( + + CAST ( - - col0 AS INTEGER ) ) < + - col0 * + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT DISTINCT - + ( + col0 ) DIV - col1 + + 38 + - 67 AS col1 FROM tab0 AS cor0
----
-25
-29
68

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - + ( + col0 ) / - col1 + + 38 + - 67 AS col1 FROM tab0 AS cor0
----
-25
-29
68

query I rowsort
SELECT - - 31 - + - 47 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT ALL + col1 - + - 2 FROM tab0 AS cor0
----
23
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT MAX( + + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT MAX ( + + col0 ) FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 <> col2 * col1 + + col1
----

query I rowsort
SELECT ALL ( - 50 ) * + - 69 FROM tab1
----
3450
3450
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT DISTINCT - SUM( + 93 ) AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT - SUM ( + 93 ) AS col1 FROM tab0
----
-279

query II rowsort
SELECT ALL + 67 * - - col1 * - col0 AS col2, - col0 FROM tab0 AS cor0
----
-122409
-87
-6499
-97
-81405
-15

query I rowsort
SELECT - 71 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ALL + + 48 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - - 87 + + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4262
SELECT - - 87 + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 30 AND 44
----
51
67
77

query I rowsort
SELECT DISTINCT - - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT 86 + + 7 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT + 7 + - - 56 + - 6 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT ALL - col1 * - 51 * 52 + col1 + - ( col0 ) - - col0 FROM tab1 AS cor0
----
124691
13265
37142

query I rowsort
SELECT 57 + - col0 * 12 AS col0 FROM tab2
----
-495
-711
-843

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT DISTINCT + col1 DIV col2 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT + col1 / col2 AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - ( 38 ) FROM tab2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT DISTINCT - 92 / + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - 92 / + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 18 ) AS col2 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT - CAST( - 25 AS SIGNED ) - + ( - col1 ) AS col0 FROM tab1
----
30
39
72

skipif mysql # not compatible
query I rowsort label-4273
SELECT - CAST ( - 25 AS INTEGER ) - + ( - col1 ) AS col0 FROM tab1
----
30
39
72

query I rowsort
SELECT ALL 37 + 40 AS col2 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT + + SUM( DISTINCT - col1 ) DIV - 69 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4275
SELECT + + SUM ( DISTINCT - col1 ) / - 69 FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT + CAST( NULL AS SIGNED ) * 91 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT + CAST ( NULL AS INTEGER ) * 91 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 33 * - 66 AS col2 FROM tab0 AS cor0
----
-2178
-2178
-2178

query II rowsort
SELECT DISTINCT - - col1 AS col0, + col1 + + ( + - 10 ) FROM tab0 AS cor0
----
1
-9
21
11
81
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT - ( - + CAST( + AVG ( + + col0 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT - ( - + CAST ( + AVG ( + + col0 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4280
SELECT DISTINCT * FROM tab2 WHERE col0 + ( - CAST( NULL AS SIGNED ) ) * 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4280
SELECT DISTINCT * FROM tab2 WHERE col0 + ( - CAST ( NULL AS INTEGER ) ) * 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 91 ) * + col0 AS col2 FROM tab2
----
-4186
-5824
-6825

query I rowsort
SELECT + ( - + 26 ) FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT DISTINCT + SUM( DISTINCT + col1 ) col2 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4283
SELECT DISTINCT + SUM ( DISTINCT + col1 ) col2 FROM tab0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT ( - 3 ) DIV - 12 * - 6 + + col1 + ( - col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ( - 3 ) / - 12 * - 6 + + col1 + ( - col1 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL CAST( NULL AS SIGNED ) + + 17 + - 48 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL CAST ( NULL AS INTEGER ) + + 17 + - 48 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT DISTINCT + - SUM( ALL 42 ) DIV + 58 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + - SUM ( ALL 42 ) / + 58 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT 61 + + - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4288
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT COUNT( - - col0 ) * - 23 AS col1 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT COUNT ( - - col0 ) * - 23 AS col1 FROM tab1 cor0
----
-69

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + ( - - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT DISTINCT - 86 DIV - col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - 86 / - col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * - col0 col2 FROM tab2 AS cor0
----
3496
4864
5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT CAST( NULL AS SIGNED ) / + MAX( DISTINCT - col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT - col2 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * + - col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT col2 DIV + + 67 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT col2 / + + 67 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT - ( - 22 ) DIV + ( - col0 ) + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4296
SELECT - ( - 22 ) / + ( - col0 ) + + col0 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT ALL - 10 + + + col1 + + + 24 DIV + col0 AS col0 FROM tab2
----
41
57
67

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - 10 + + + col1 + + + 24 / + col0 AS col0 FROM tab2
----
41
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT COUNT( * ) + + 98 AS col0 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-4298
SELECT COUNT ( * ) + + 98 AS col0 FROM tab2
----
101

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 = NULL
----

query II rowsort
SELECT DISTINCT - col1 - + col2 AS col0, - 73 AS col0 FROM tab2 AS cor0
----
-117
-73
-125
-73
-74
-73

query I rowsort
SELECT - ( - + col2 ) + - + col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT - + 34 DIV - - col1 + + 87 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - + 34 / - - col1 + + 87 FROM tab2 AS cor0
----
87

query I rowsort
SELECT ALL - 28 AS col2 FROM tab0 cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + col2 - - 49 FROM tab1 AS cor0
----
108
117
145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4305
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 AS col1, col1 + 67 * 90 * 33 FROM tab1
----
NULL
198995
NULL
199004
NULL
199037

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + 67 * 90 * 33 FROM tab1
----
NULL
198995
NULL
199004
NULL
199037

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > - 52 + - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT 39 NOT BETWEEN - 67 AND 48
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT 2 col1, COUNT( * ) AS col1 FROM tab1
----
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4308
SELECT 2 col1, COUNT ( * ) AS col1 FROM tab1
----
2
3

query I rowsort
SELECT DISTINCT + 25 FROM tab2 WHERE + + col1 IS NOT NULL
----
25

query II rowsort
SELECT - 36 AS col0, col2 FROM tab2
----
-36
23
-36
40
-36
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT MIN( DISTINCT - col0 ) AS col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + + 88 NOT BETWEEN NULL AND 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT MIN ( DISTINCT - col0 ) AS col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + + 88 NOT BETWEEN NULL AND 31
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4312
SELECT ALL * FROM tab0 WHERE NOT - col2 + CAST( + - 20 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4312
SELECT ALL * FROM tab0 WHERE NOT - col2 + CAST ( + - 20 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 93 * - + 31 col1 FROM tab2 AS cor0
----
-2883

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 + - ( + col2 ) + - - 11 + + 16 * - col2 = + col0 - + - col2 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + + 81 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-4316
SELECT + + 81 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
90

query I rowsort
SELECT DISTINCT - col1 + 83 * col1 FROM tab0 cor0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + MIN( ( 43 ) ) + - 80 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4318
SELECT + MIN ( ( 43 ) ) + - 80 FROM tab0 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - MIN( col0 ) * SUM( ALL col0 ) + - - 57 FROM tab2 AS cor0
----
-8453

skipif mysql # not compatible
query I rowsort label-4319
SELECT - MIN ( col0 ) * SUM ( ALL col0 ) + - - 57 FROM tab2 AS cor0
----
-8453

query I rowsort
SELECT ALL col2 + col1 * 37 + - col2 AS col1 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT ( - - COUNT( * ) ) * - + 47 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT ( - - COUNT ( * ) ) * - + 47 FROM tab2
----
-141

query III rowsort
SELECT * FROM tab0 WHERE + + col2 >= - ( - 25 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL + 83 * - col1 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + 83 * - col1 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 + col1 col0 FROM tab0
----
-8
12
72

query III rowsort
SELECT ALL * FROM tab2 WHERE + 48 + - col0 + + col1 + + 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + - 69 AS col2 FROM tab0
----
-3243
-6831
-690

query I rowsort
SELECT + ( + col0 ) * - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT 41 * - + 98 + - - 8 * + 31 * - col1 * + + 0 AS col1 FROM tab2
----
-4018

query I rowsort
SELECT DISTINCT + 77 * - col0 AS col2 FROM tab2 AS cor0
----
-3542
-4928
-5775

query I rowsort
SELECT + col0 - - col0 * - col1 FROM tab2 cor0
----
-2300
-4864
-4950

query I rowsort
SELECT + col2 - - + col1 + - 55 * + col1 AS col2 FROM tab0 cor0
----
-1124
-4327
45

query I rowsort
SELECT DISTINCT - 8 + - col2 * - - col2 FROM tab0 AS cor0
----
-108
-2217
-9809

query I rowsort
SELECT 4 * - 13 - + col2 FROM tab0 AS cor0
----
-151
-62
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - ( + + col1 ) col2 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL - + 26 * + + col0 FROM tab0 AS cor0
----
-2262
-2522
-390

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 57 / - col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + ( - - COUNT( * ) ) * - 52 AS col2 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4338
SELECT + ( - - COUNT ( * ) ) * - 52 AS col2 FROM tab2 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE NOT NULL <> - 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT ALL - col1 DIV col1 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL - col1 / col1 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL - COUNT( * ) AS col1, MAX( - + col0 ) AS col1 FROM tab1 AS cor0
----
-3
-51

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL - COUNT ( * ) AS col1, MAX ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-3
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT - - 93 DIV col1 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-4342
SELECT - - 93 / col1 FROM tab1 AS cor0
----
1
18
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + 53 col0 FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT - MAX( DISTINCT - col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4344
SELECT - MAX ( DISTINCT - col2 ) FROM tab2 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55 AS col2, - 59 * - col0 col1 FROM tab2 cor0
----
55
2714
55
3776
55
4425

query III rowsort
SELECT * FROM tab0 WHERE NOT 84 / + + col1 BETWEEN 78 AND NULL
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + - 8 + + 92 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ec2e101908a0c2a3287de7292cabaa57

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT ALL 59 DIV + 40 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL 59 / + 40 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + ( - 60 ) FROM tab0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4351
SELECT CAST( - 27 AS SIGNED ) col2, col2 AS col2 FROM tab2
----
-27
23
-27
40
-27
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4351
SELECT CAST ( - 27 AS INTEGER ) col2, col2 AS col2 FROM tab2
----
-27
23
-27
40
-27
58

query II rowsort
SELECT DISTINCT - col0 + - 38 AS col0, + 23 FROM tab0 AS cor0
----
-125
23
-135
23
-53
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col1 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT - COUNT( * ) AS col2, + COUNT( + + 41 ) FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4354
SELECT - COUNT ( * ) AS col2, + COUNT ( + + 41 ) FROM tab2 cor0
----
-3
3

query I rowsort
SELECT DISTINCT - + col2 + - ( + + col1 ) AS col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT MIN( + 12 ) * - - 86 - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 99 < + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT MIN ( + 12 ) * - - 86 - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 99 < + - col2
----
NULL

query I rowsort
SELECT ALL 99 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2277
3960
5742

query I rowsort
SELECT ALL - ( + col2 ) * + col2 + + col1 FROM tab0 AS cor0
----
-2128
-79
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL COUNT( * ) + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4360
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4361
SELECT - CAST( MIN( ( + 3 ) ) AS SIGNED ) + + 84 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4361
SELECT - CAST ( MIN ( ( + 3 ) ) AS INTEGER ) + + 84 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + SUM( + col0 ) + - 16 AS col0 FROM tab2
----
169

skipif mysql # not compatible
query I rowsort label-4362
SELECT + SUM ( + col0 ) + - 16 AS col0 FROM tab2
----
169

query II rowsort
SELECT col0 + - col2, - col0 AS col1 FROM tab2
----
17
-75
23
-46
24
-64

query II rowsort
SELECT - col1 + - col0 AS col0, - col2 AS col1 FROM tab0
----
-108
-10
-96
-47
-98
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 99 + + col1 * - col1 * col0 col0, col1 * - 47 FROM tab1
----
-200920
-2209
-2026
-235
-9897
-658

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4366
SELECT - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) + - - 34 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4366
SELECT - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) + - - 34 FROM tab1
----
34

query I rowsort
SELECT ALL col1 * + - 98 FROM tab2
----
-4998
-6566
-7546

query I rowsort
SELECT - col0 * + - 18 + - 24 FROM tab0
----
1542
1722
246

query II rowsort
SELECT col2 * col0 * col1 + col2 AS col1, - 10 FROM tab2
----
197160
-10
291508
-10
53981
-10

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 14 - - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 * - col0 - - 43 * - - col2 FROM tab1 AS cor0
----
11205
6729
9762

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT ( ( 70 ) ) AS col1, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
70
-3

skipif mysql # not compatible
query II rowsort label-4373
SELECT ( ( 70 ) ) AS col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
70
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL SUM( ALL - 45 ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL SUM ( ALL - 45 ) FROM tab2 AS cor0
----
-135

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL <= ( - 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT + ( + col2 ) DIV - col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4376
SELECT + ( + col2 ) / - col2 AS col2 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL col0 AS col2, 38 FROM tab1
----
51
38
85
38
91
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4378
SELECT + - CAST( NULL AS SIGNED ), col2 AS col2, - 17 col1 FROM tab2 AS cor0
----
9 values hashing to 16e4555dbaf2b05f1d2beae6dfac504d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4378
SELECT + - CAST ( NULL AS INTEGER ), col2 AS col2, - 17 col1 FROM tab2 AS cor0
----
9 values hashing to 16e4555dbaf2b05f1d2beae6dfac504d

query I rowsort
SELECT DISTINCT - col1 + - - col2 + col1 * + + col0 AS col2 FROM tab0 AS cor0
----
1181
1816
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL MIN( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + - col1 + - + col2 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT ALL + CAST( NULL AS SIGNED ) + + 5 * - CAST( NULL AS SIGNED ) * - 8 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + CAST ( NULL AS INTEGER ) + + 5 * - CAST ( NULL AS INTEGER ) * - 8 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 28 + + - col0 FROM tab2 AS cor0
----
-18
-36
-47

query I rowsort
SELECT DISTINCT + 24 + - col1 AS col0 FROM tab1 AS cor0
----
-23
10
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT DISTINCT - 82 DIV + col1 + + 61 - - + col0 FROM tab0 AS cor0
----
145
75
76

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - 82 / + col1 + + 61 - - + col0 FROM tab0 AS cor0
----
145
75
76

query I rowsort
SELECT + ( + - 65 ) FROM tab0 AS cor0 WHERE 19 IS NOT NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT MIN( ALL + - col0 ) col0 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4387
SELECT DISTINCT MIN ( ALL + - col0 ) col0 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT DISTINCT + 21 - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
-19
-2
-37

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + 21 - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
-19
-2
-37

query I rowsort
SELECT ALL + 22 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col1 - + 0 * - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col1 - + 0 * - + col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col0 + + col2 / - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4392
SELECT DISTINCT + 43 AS col2, col1 DIV - col0 FROM tab0
----
43
-5
43
0

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT + 43 AS col2, col1 / - col0 FROM tab0
----
43
-5
43
0

query I rowsort
SELECT - col1 - + ( - col0 ) + + col1 * + - ( col1 ) * - 15 AS col2 FROM tab2
----
39010
67343
88922

query II rowsort
SELECT DISTINCT + ( + 28 ) + + 90 AS col0, + col2 FROM tab1
----
118
59
118
68
118
96

query I rowsort
SELECT col1 - col2 * - ( - col1 ) FROM tab0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT - SUM( DISTINCT - col0 ) col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4396
SELECT - SUM ( DISTINCT - col0 ) col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + 97 NOT BETWEEN NULL AND + col1 + - 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT - 2 DIV 47 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 2 / 47 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * + - ( 68 ) FROM tab0 AS cor0
----
-3196
-6732
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL + ( + MAX( 3 ) ) FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + ( + MAX ( 3 ) ) FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * - - col1 col0 FROM tab1 AS cor0
----
1363
145
406

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL + COUNT( ( col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL + COUNT ( ( col0 ) ) FROM tab0
----
3

query I rowsort
SELECT ( + 47 ) AS col0 FROM tab0
----
47
47
47

query I rowsort
SELECT ALL ( - 31 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT DISTINCT CAST( - 85 AS SIGNED ) - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT CAST ( - 85 AS INTEGER ) - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT col0 DIV - 89 + 60 FROM tab2 WHERE - 3 IS NOT NULL
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4406
SELECT col0 / - 89 + 60 FROM tab2 WHERE - 3 IS NOT NULL
----
60
60
60

query III rowsort
SELECT * FROM tab0 WHERE + 93 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 53 ) = - 19
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT 93 * - 14 - COUNT( * ) * 39 AS col0 FROM tab1
----
-1419

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT 93 * - 14 - COUNT ( * ) * 39 AS col0 FROM tab1
----
-1419

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( col0 * col2 ) NOT IN ( col1 )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( - col0 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT 91 + - 61 * + COUNT( * ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-4414
SELECT 91 + - 61 * + COUNT ( * ) FROM tab1
----
-92

query III rowsort
SELECT * FROM tab0 WHERE ( ( ( - 94 ) ) ) < NULL
----

query I rowsort
SELECT 69 AS col0 FROM tab1 WHERE NOT ( NULL ) < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + + col1 col0 FROM tab1
----
38
47
80

query I rowsort
SELECT + ( - col1 ) + + 24 FROM tab0
----
-57
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT + COUNT( * ) + - MAX( col0 ) FROM tab1 WHERE NOT ( 77 * + 52 + + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT + COUNT ( * ) + - MAX ( col0 ) FROM tab1 WHERE NOT ( 77 * + 52 + + col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL CAST( 54 AS SIGNED ) * col0 AS col1 FROM tab0
----
4698
5238
810

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL CAST ( 54 AS INTEGER ) * col0 AS col1 FROM tab0
----
4698
5238
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 31 col1 FROM tab1
----
1829
2108
2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL - col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + col0 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4426
SELECT + col1 * + CAST( - col1 * - col1 AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE - 17 >= col0
----

skipif mysql # not compatible
query I rowsort label-4426
SELECT + col1 * + CAST ( - col1 * - col1 AS REAL ) AS col1 FROM tab2 AS cor0 WHERE - 17 >= col0
----

query I rowsort
SELECT DISTINCT - col0 * 43 + col1 FROM tab1 WHERE ( NULL ) < 20 / - 34 + 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT DISTINCT + col2 DIV 73 + col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + col2 / 73 + col2 FROM tab1 AS cor0
----
59
68
97

query I rowsort
SELECT DISTINCT + - col0 + - 59 AS col1 FROM tab1 AS cor0
----
-110
-144
-150

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE col2 * 17 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT 59 AS col0 FROM tab0 AS cor0 WHERE - col1 * col2 + + col2 BETWEEN CAST( - col1 AS SIGNED ) + - 99 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4432
SELECT 59 AS col0 FROM tab0 AS cor0 WHERE - col1 * col2 + + col2 BETWEEN CAST ( - col1 AS INTEGER ) + - 99 AND NULL
----

query I rowsort
SELECT - ( col0 ) + - col2 FROM tab2 AS cor0 WHERE col2 NOT IN ( - col0 )
----
-104
-133
-69

query I rowsort
SELECT + ( - 99 ) - col0 AS col0 FROM tab0 AS cor0
----
-114
-186
-196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) >= NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE + col1 * + 12 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4437
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4437
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 55 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT DISTINCT + col2 + + 64 DIV - col1 AS col0 FROM tab2 AS cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + col2 + + 64 / - col1 AS col0 FROM tab2 AS cor0
----
22
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL MIN( col2 ) * - COUNT( * ) + + COUNT( * ) col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT ALL MIN ( col2 ) * - COUNT ( * ) + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT ALL - CAST( NULL AS SIGNED ) * + 53 - ( col0 ) * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - CAST ( NULL AS INTEGER ) * + 53 - ( col0 ) * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
705
870
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 62 + + col2 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4444
SELECT * FROM tab0 AS cor0 WHERE + col0 - + CAST( NULL AS SIGNED ) * - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4444
SELECT * FROM tab0 AS cor0 WHERE + col0 - + CAST ( NULL AS INTEGER ) * - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + 26 - + 55 * ( - 84 ) AS col0 FROM tab1
----
4697
4731
4737

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT col2 DIV + + 9 + + col1 AS col2 FROM tab0
----
12
22
86

skipif mysql # not compatible
query I rowsort label-4446
SELECT col2 / + + 9 + + col1 AS col2 FROM tab0
----
12
22
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 27 * + COUNT( * ) + ( + ( ( 52 ) ) ) col0 FROM tab0
----
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4447
SELECT 27 * + COUNT ( * ) + ( + ( ( 52 ) ) ) col0 FROM tab0
----
133

query I rowsort
SELECT + 37 + - col0 AS col1 FROM tab2
----
-27
-38
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT DISTINCT - MAX( + CAST( col2 AS SIGNED ) ) - - 49 AS col0 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - MAX ( + CAST ( col2 AS INTEGER ) ) - - 49 AS col0 FROM tab0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + SUM( - 49 ) + + 30 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-4450
SELECT + SUM ( - 49 ) + + 30 FROM tab1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT 8 * - col2 AS col1 FROM tab1
----
-472
-544
-768

query I rowsort
SELECT 61 + col1 FROM tab1 WHERE NOT 9 + - col0 BETWEEN ( - col1 ) AND NULL
----
108
66
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + col0 * - col0 < NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( 50 * + col2 ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + 30 <> 42 + col0
----

query I rowsort
SELECT ALL - 42 * - col1 FROM tab0 AS cor0
----
3402
42
882

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4458
SELECT * FROM tab0 AS cor0 WHERE NOT 72 * CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4458
SELECT * FROM tab0 AS cor0 WHERE NOT 72 * CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT + 99 * - SUM( DISTINCT + 14 ) FROM tab1, tab2 AS cor0
----
-1386

skipif mysql # not compatible
query I rowsort label-4459
SELECT + 99 * - SUM ( DISTINCT + 14 ) FROM tab1, tab2 AS cor0
----
-1386

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + col0 < + col1 * - 95 + + 46 * col0
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4461
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT CAST ( NULL AS REAL ) * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - 20 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - 20 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 34 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 34 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT - COUNT( ALL - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4464
SELECT - COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col1 * - + 68 * 23 AS col1 FROM tab1 cor0
----
21896
73508
7820

query I rowsort
SELECT ALL + col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + - col1 AND col1
----
705
870
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + + 45 ) * ( 79 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT SUM( ALL - col0 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-4468
SELECT SUM ( ALL - col0 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT ( - col0 ) * - col0 * + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ( - col0 ) * - col0 * + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 30 + + + col2 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT DISTINCT 77 * col1 DIV + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-124
-176
-87

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT 77 * col1 / + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-124
-176
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col2 ), - col2 col1 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4473
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4473
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT 50 DIV + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-4474
SELECT 50 / + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 BETWEEN NULL AND + col0 - ( 50 - col1 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4477
SELECT DISTINCT * FROM tab2 WHERE ( col0 - + CAST( col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4477
SELECT DISTINCT * FROM tab2 WHERE ( col0 - + CAST ( col0 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + SUM( DISTINCT ( + 82 ) ) AS col2 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4478
SELECT + SUM ( DISTINCT ( + 82 ) ) AS col2 FROM tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT + 65 * + col2 + - ( + + 89 ) AS col0 FROM tab1 AS cor0
----
3746
4331
6151

query I rowsort
SELECT DISTINCT + col2 / 14 + + col2 FROM tab0 cor0 WHERE ( NOT ( NOT NULL = col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 * col1 * - ( - ( + col0 ) ) * col2 + - col0 col1 FROM tab1 AS cor0
----
2206515
25593477
6031821

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( + + col1 ) * + - col2 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT + + col2 * col0 * + col1 - + col2 + + 71 DIV + col0 AS col2 FROM tab2 AS cor0
----
197081
291392
53936

skipif mysql # not compatible
query I rowsort label-4483
SELECT + + col2 * col0 * + col1 - + col2 + + 71 / + col0 AS col2 FROM tab2 AS cor0
----
197081
291392
53936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 95 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 95 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL 76 * - COUNT( * ) * + + 44 * SUM( DISTINCT col1 ) AS col1 FROM tab1
----
-662112

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL 76 * - COUNT ( * ) * + + 44 * SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
-662112

query I rowsort
SELECT + col2 FROM tab0 WHERE col2 + + col2 + + + 20 <> + col2
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE ( + 13 ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT - 98 + 81 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - + col0 + - - 21 AS col0 FROM tab0 AS cor0
----
-66
-76
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT + 8 + - COUNT( * ) col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4491
SELECT + 8 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
5

query I rowsort
SELECT + 9 + - ( - col0 ) + + + 11 FROM tab2 AS cor0
----
66
84
95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT + COUNT( * ) AS col0, - COUNT( * ) * 86 FROM tab1 AS cor0
----
3
-258

skipif mysql # not compatible
query II rowsort label-4494
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * 86 FROM tab1 AS cor0
----
3
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - + SUM( DISTINCT + - 51 ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4495
SELECT - + SUM ( DISTINCT + - 51 ) AS col0 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL col1 + + 97 FROM tab2 AS cor0
----
148
164
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT ALL col0 - CAST( - col0 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
153
255
273

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL col0 - CAST ( - col0 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
153
255
273

query I rowsort
SELECT ALL 80 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query II rowsort
SELECT ALL - col0 AS col1, 31 AS col1 FROM tab0
----
-15
31
-87
31
-97
31

query I rowsort
SELECT col0 * + ( 6 ) AS col2 FROM tab1
----
306
510
546

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 WHERE NOT - 13 * + 4 - - - col2 IN ( + col1 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4503
SELECT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 WHERE NOT - 13 * + 4 - - - col2 IN ( + col1 )
----
51
85
91

query II rowsort
SELECT DISTINCT col0, 5 AS col1 FROM tab1
----
51
5
85
5
91
5

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE - ( col0 ) + col1 NOT IN ( - 89 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + ( + + 87 ) * COUNT( * ) * - 58 FROM tab2 AS cor0
----
-15138

skipif mysql # not compatible
query I rowsort label-4506
SELECT + ( + + 87 ) * COUNT ( * ) * - 58 FROM tab2 AS cor0
----
-15138

query I rowsort
SELECT ( - col0 ) * - + col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT - + col1, - col0 * 86 AS col1 FROM tab2 AS cor0
----
-51
-3956
-67
-6450
-77
-5504

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL IN ( + 81, col2 - + col1 )
----

query I rowsort
SELECT DISTINCT - + 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 3 * + col1
----

query I rowsort
SELECT ALL - - 68 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = - 89
----

query I rowsort
SELECT ALL + + 21 * col1 * col1 + + col0 FROM tab0 AS cor0
----
118
137796
9348

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 NOT BETWEEN NULL AND ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4516
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) AS col1, 36 - + - col0 FROM tab2 AS cor0
----
46
82
64
100
75
111

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) AS col1, 36 - + - col0 FROM tab2 AS cor0
----
46
82
64
100
75
111

query I rowsort
SELECT DISTINCT - + 66 AS col2 FROM tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( + - col2 / - 7 * - col1 + - col0 * - col1 * + 43 )
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( + - col2 / - 7 * - col1 + - col0 * - col1 * + 43 )
----
0

query I rowsort
SELECT DISTINCT col2 + - 45 / - col0 * col1 * col2 * 32 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4520
SELECT * FROM tab2 WHERE ( + ( col0 ) + - col2 - - 48 + + 77 * CAST( NULL AS SIGNED ) * 78 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4520
SELECT * FROM tab2 WHERE ( + ( col0 ) + - col2 - - 48 + + 77 * CAST ( NULL AS INTEGER ) * 78 ) >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 26 FROM tab0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL - COUNT( + + 26 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - COUNT ( + + 26 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( + + col1 * + ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4524
SELECT col2 * + col1 + CAST( 13 AS SIGNED ) DIV + col2 - col0 - + 17 DIV + ( + col1 ) + col0 * + 18 FROM tab0
----
1690
1731
4062

skipif mysql # not compatible
query I rowsort label-4524
SELECT col2 * + col1 + CAST ( 13 AS INTEGER ) / + col2 - col0 - + 17 / + ( + col1 ) + col0 * + 18 FROM tab0
----
1690
1731
4062

query II rowsort
SELECT col2 + - 29 * + col1, col1 FROM tab0
----
-2302
81
-599
21
70
1

query III rowsort
SELECT ALL * FROM tab0 WHERE - 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( - 2 ) col1 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT - 70 + 87 * - + col1 FROM tab2 cor0
----
-4507
-5899
-6769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT DISTINCT - ( 18 ) AS col0 FROM tab2 AS cor0 WHERE col0 + CAST( col0 AS SIGNED ) + - 80 * - - 7 + - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - ( 18 ) AS col0 FROM tab2 AS cor0 WHERE col0 + CAST ( col0 AS INTEGER ) + - 80 * - - 7 + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col2 + - + col1 * + 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 7 - col0 AS col0 FROM tab2 AS cor0
----
-53
-71
-82

query I rowsort
SELECT + col0 * + + col2 * + + 94 FROM tab2
----
240640
408900
99452

query I rowsort
SELECT - 43 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ALL + col2 + + - col1 AS col2 FROM tab2 AS cor0 WHERE ( 56 + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT + - ( - ( + col2 ) ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + + ( 49 ) FROM tab2 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL CAST( + ( 35 ) AS SIGNED ) FROM tab2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL CAST ( + ( 35 ) AS INTEGER ) FROM tab2
----
35
35
35

query I rowsort
SELECT ( - 93 ) FROM tab2
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT - COUNT( * ) * - MIN( - col2 ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - COUNT ( * ) * - MIN ( - col2 ) AS col0 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT MIN( ALL + 27 ) * + 88 FROM tab2
----
2376

skipif mysql # not compatible
query I rowsort label-4542
SELECT MIN ( ALL + 27 ) * + 88 FROM tab2
----
2376

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT ALL + col2 DIV 46 AS col2 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + col2 / 46 AS col2 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4544
SELECT DISTINCT col1 * + col2 * CAST( NULL AS SIGNED ) AS col0, col2 * + + col0 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-4544
SELECT DISTINCT col1 * + col2 * CAST ( NULL AS INTEGER ) AS col0, col2 * + + col0 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT DISTINCT 31 DIV col2 AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 31 / col2 AS col2 FROM tab0
----
0
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + ( + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - - ( + - ( + COUNT( * ) ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4547
SELECT - - ( + - ( + COUNT ( * ) ) ) col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 35 AS col2, - col1 FROM tab2 AS cor0
----
35
-51
35
-67
35
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT + CAST( NULL AS SIGNED ) * - - col0 + - 32 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT + CAST ( NULL AS INTEGER ) * - - col0 + - 32 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT COUNT( * ) * + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4550
SELECT COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-27

query I rowsort
SELECT ALL + col0 * 23 FROM tab1 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * - ( - 32 ) - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT 28 + - col2 FROM tab1 AS cor0
----
-31
-40
-68

query II rowsort
SELECT ALL - col0, - 54 AS col2 FROM tab0 AS cor0
----
-15
-54
-87
-54
-97
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT - col0 + col1 DIV + 29 + col0 + + col1 + col2 + - 49 FROM tab2 AS cor0
----
26
70
78

skipif mysql # not compatible
query I rowsort label-4556
SELECT - col0 + col1 / + 29 + col0 + + col1 + col2 + - 49 FROM tab2 AS cor0
----
26
70
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - COUNT( * ) + 75 col0 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT - COUNT ( * ) + 75 col0 FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT + ( col2 ) * - + 14 AS col2 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - ( + SUM( - + col1 ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4560
SELECT - ( + SUM ( - + col1 ) ) AS col2 FROM tab1
----
66

query I rowsort
SELECT col1 - + + 18 + + + 23 AS col2 FROM tab1 AS cor0
----
10
19
52

query I rowsort
SELECT ALL - col1 - - - col2 * + + col2 * 18 FROM tab1 AS cor0
----
-165902
-62663
-83279

query I rowsort
SELECT DISTINCT + col0 + ( - 62 ) AS col1 FROM tab2 AS cor0
----
-16
13
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT DISTINCT 58 * - + col0 - col0 AS col2 FROM tab2
----
-2714
-3776
-4425

query I rowsort
SELECT + - col1 * + col0 + - + 40 AS col0 FROM tab2 AS cor0
----
-2386
-4968
-5065

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT MAX( 25 ) col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT MAX ( 25 ) col2 FROM tab2 AS cor0
----
25

query I rowsort
SELECT - + col2 * ( - col2 ) AS col0 FROM tab2 cor0
----
1600
3364
529

query II rowsort
SELECT + + 52, ( + col0 ) FROM tab0 AS cor0
----
52
15
52
87
52
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4570
SELECT - 53 DIV + - col1 col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4570
SELECT - 53 / + - col1 col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT + + 54 * - 58 + - COUNT( * ) FROM tab2 AS cor0
----
-3135

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + + 54 * - 58 + - COUNT ( * ) FROM tab2 AS cor0
----
-3135

onlyif mysql # DIV for integer division: 
query II rowsort label-4572
SELECT col2 col1, + col2 + + 99 DIV - col2 FROM tab1 AS cor0
----
59
58
68
67
96
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4572
SELECT col2 col1, + col2 + + 99 / - col2 FROM tab1 AS cor0
----
59
58
68
67
96
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL + 80 * + ( - COUNT( ALL + col1 ) ) AS col0 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + 80 * + ( - COUNT ( ALL + col1 ) ) AS col0 FROM tab0 AS cor0
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT ALL - COUNT( * ) DIV + - COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - COUNT ( * ) / + - COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT DISTINCT - - 59 * col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - - 59 * col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + col1 * + ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - + SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - + SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4578
SELECT ALL * FROM tab0 WHERE - CAST( + col2 AS SIGNED ) IN ( + 19 + - col0, 16 )
----

skipif mysql # not compatible
query III rowsort label-4578
SELECT ALL * FROM tab0 WHERE - CAST ( + col2 AS INTEGER ) IN ( + 19 + - col0, 16 )
----

query I rowsort
SELECT DISTINCT - 16 * + - col2 AS col1 FROM tab0
----
1584
160
752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4580
SELECT DISTINCT + - ( - CAST( + MAX( - col1 ) AS SIGNED ) ) * + COUNT( * ) FROM tab2 WHERE - - col1 IN ( - 61, + 91 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + - ( - CAST ( + MAX ( - col1 ) AS INTEGER ) ) * + COUNT ( * ) FROM tab2 WHERE - - col1 IN ( - 61, + 91 + + col1 )
----
NULL

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT - col2 IS NULL
----
15
87
97

query II rowsort
SELECT - + col1 * col2, + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL CAST( - col0 AS SIGNED ) col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4583
SELECT ALL CAST ( - col0 AS INTEGER ) col0 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + 12
----

query I rowsort
SELECT DISTINCT - + col0 * - - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - COUNT( - 6 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4586
SELECT - COUNT ( - 6 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + - ( - COUNT( * ) ) + + + ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + - ( - COUNT ( * ) ) + + + ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT + 40 AS col2, - 30 FROM tab0
----
40
-30
40
-30
40
-30

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 24 BETWEEN - + col0 * col0 * + 80 AND col0 - - 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT - SUM( ALL - 77 ) FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - SUM ( ALL - 77 ) FROM tab1 AS cor0
----
231

query I rowsort
SELECT ALL 44 + - col2 AS col1 FROM tab0 AS cor0
----
-3
-55
34

query I rowsort
SELECT ALL - 76 + + - 33 AS col2 FROM tab0 AS cor0
----
-109
-109
-109

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col0 FROM tab0 cor0
----
-720
-957
-9700

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT DISTINCT + 2 DIV + col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + 2 / + col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col1 + + + col0 * - + col1 + - col0 FROM tab1 cor0
----
-4321
-505
-751

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL MIN( ALL - - 52 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL MIN ( ALL - - 52 ) FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT COUNT( ALL + + 71 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT COUNT ( ALL + + 71 ) FROM tab2
----
3

query I rowsort
SELECT + col0 - - - col0 FROM tab2 WHERE + col2 IS NOT NULL
----
0
0
0

query II rowsort
SELECT - col0 + - col1, + col2 FROM tab0
----
-108
10
-96
47
-98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT COUNT( + col2 ) * ( 24 ) + + 37 + + MAX( ( + - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT COUNT ( + col2 ) * ( 24 ) + + 37 + + MAX ( ( + - col2 ) ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT CAST( NULL AS SIGNED ) * + ( - + 14 ) + col0 * + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4602
SELECT CAST ( NULL AS INTEGER ) * + ( - + 14 ) + col0 * + col2 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4603
SELECT ( + 58 ) DIV col0 + - + col1 AS col1, - 91 col2 FROM tab1
----
-13
-91
-47
-91
-5
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4603
SELECT ( + 58 ) / col0 + - + col1 AS col1, - 91 col2 FROM tab1
----
-13
-91
-47
-91
-5
-91

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > col2
----

query I rowsort
SELECT ALL col2 + col0 * + 63 AS col0 FROM tab2
----
2921
4072
4783

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL MIN( DISTINCT - + col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL MIN ( DISTINCT - + col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT DISTINCT + col1 * - col2 + + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT DISTINCT 66 + - 21 AS col2 FROM tab1 AS cor0
----
45

query I rowsort
SELECT 10 * - 96 - - 35 FROM tab1
----
-925
-925
-925

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + + 16 / col2 + - 89 + + 0 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 74
----

query I rowsort
SELECT ALL + 58 * + col2 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT + - COUNT( + + col2 ) * + + 95 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 30
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT + - COUNT ( + + col2 ) * + + 95 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 30
----
0

query I rowsort
SELECT DISTINCT + ( 11 ) FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT 5 * - 90 + + COUNT( * ) FROM tab0, tab1 AS cor0
----
-441

skipif mysql # not compatible
query I rowsort label-4615
SELECT 5 * - 90 + + COUNT ( * ) FROM tab0, tab1 AS cor0
----
-441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab0 cor0
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT ALL - + 34 DIV col2 DIV - 35 + - + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - + 34 / col2 / - 35 + - + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT 95 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4619
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 57 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 74 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4622
SELECT + COUNT( col2 ) + - MIN( - 31 ), - COUNT( * ) AS col0 FROM tab2 cor0
----
34
-3

skipif mysql # not compatible
query II rowsort label-4622
SELECT + COUNT ( col2 ) + - MIN ( - 31 ), - COUNT ( * ) AS col0 FROM tab2 cor0
----
34
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT ALL + COUNT( * ) + + 17 AS col2, 49 col2 FROM tab1 cor0
----
20
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4623
SELECT ALL + COUNT ( * ) + + 17 AS col2, 49 col2 FROM tab1 cor0
----
20
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT - 4 + + MIN( + col2 ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT - 4 + + MIN ( + col2 ) FROM tab1 AS cor0
----
55

query I rowsort
SELECT - - ( + + col2 ) + - + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1
21
81

query I rowsort
SELECT + col0 + - 74 + 83 AS col0 FROM tab2 cor0
----
55
73
84

query I rowsort
SELECT + 99 + - - ( + 50 ) FROM tab2 AS cor0
----
149
149
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT COUNT( * ) DIV ( COUNT( * ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4629
SELECT COUNT ( * ) / ( COUNT ( * ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - 30 - + - 49 FROM tab2
----
19
19
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - + col1 * - + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4632
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4632
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + + MAX( - 91 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4633
SELECT + + MAX ( - 91 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT ALL + 34 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + 34 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + + col0 * - 57 FROM tab1 AS cor0
----
-24225
-243789
-40698

query II rowsort
SELECT col0 * + col0 + + col2 + 69 + + - 56 * + - col2, + col2 FROM tab2 AS cor0
----
3496
23
6445
40
9000
58

query I rowsort
SELECT 47 AS col0 FROM tab0 cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL + + 69 + - + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL + + 69 + - + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
78

query II rowsort
SELECT DISTINCT + + col0, col1 * - 99 FROM tab2 AS cor0
----
46
-5049
64
-7623
75
-6633

query I rowsort
SELECT - 95 AS col1 FROM tab2 AS cor0 WHERE NOT + 75 + - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - 4 ) FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-4642
SELECT ALL - col1, - col2 DIV - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-1
99
-21
0
-81
0

skipif mysql # not compatible
query II rowsort label-4642
SELECT ALL - col1, - col2 / - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-1
99
-21
0
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4643
SELECT col2 * - CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-4643
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT ALL + col2 + - + 1 AS col0 FROM tab2
----
22
39
57

query II rowsort
SELECT DISTINCT - col1 * - + col2 AS col2, + 27 FROM tab2
----
1173
27
3080
27
3886
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT + 68 * col1 + - 87 DIV + col1 FROM tab1 AS cor0
----
3195
323
946

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + 68 * col1 + - 87 / + col1 FROM tab1 AS cor0
----
3195
323
946

query II rowsort
SELECT ALL ( + - col0 ), col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL 63 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
2976
6334
717

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT + SUM( ALL + - 69 ) * + 65 + - 19 FROM tab2
----
-13474

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT + SUM ( ALL + - 69 ) * + 65 + - 19 FROM tab2
----
-13474

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT - 69 DIV - 30 AS col2 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 69 / - 30 AS col2 FROM tab1
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 3 * - col1 - 9 + - col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 IN ( + col0 + - + 49, - col2, col0 * + ( col0 ) * + - col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - + COUNT( * ) * - MAX( DISTINCT col0 ) col2 FROM tab1 cor0 WHERE ( NULL ) IN ( col2, - ( + col0 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4653
SELECT - + COUNT ( * ) * - MAX ( DISTINCT col0 ) col2 FROM tab1 cor0 WHERE ( NULL ) IN ( col2, - ( + col0 ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 4 + - + 41 + + - col2 + - 73 FROM tab0 cor0
----
-120
-157
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT MIN( ALL col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4655
SELECT MIN ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - col0 + + col0 + - - 36 + 28 + - - 95 * col1 FROM tab1 AS cor0
----
1394
4529
539

query I rowsort
SELECT ALL - col2 - + - 57 FROM tab0 cor0
----
-42
10
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT ALL 87 - - - 62 DIV 75 * - - col1 AS col0 FROM tab2
----
87
87
87

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL 87 - - - 62 / 75 * - - col1 AS col0 FROM tab2
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT COUNT( * ) + + - COUNT( + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT COUNT ( * ) + + - COUNT ( + col0 ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4660
SELECT - col1 + - ( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - col1 + - ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4661
SELECT ALL col0 AS col1, CAST( - + col2 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4661
SELECT ALL col0 AS col1, CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT col0 + - 30 AS col2 FROM tab2
----
16
34
45

onlyif mysql # DIV for integer division: 
query II rowsort label-4663
SELECT ALL 73 DIV + + col1 AS col0, - col0 + col2 AS col2 FROM tab2
----
0
-24
1
-17
1
-23

skipif mysql # not compatible
query II rowsort label-4663
SELECT ALL 73 / + + col1 AS col0, - col0 + col2 AS col2 FROM tab2
----
0
-24
1
-17
1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( ( - 45 ) BETWEEN - col1 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( ( - 45 ) BETWEEN - col1 AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL - - ( + - SUM( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - - ( + - SUM ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 17 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT MIN( ALL - col0 ) col2 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4667
SELECT MIN ( ALL - col0 ) col2 FROM tab0
----
-97

query II rowsort
SELECT - col2 AS col1, col0 * + col1 FROM tab1
----
-59
425
-68
4277
-96
714

query I rowsort
SELECT DISTINCT + col2 * + - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col0 FROM tab1 cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4671
SELECT - + MIN( 57 ) * COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT - + MIN ( 57 ) * COUNT ( * ) + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 71, col2 AS col0 FROM tab2 AS cor0
----
71
23
71
40
71
58

query I rowsort
SELECT 64 + - + ( + + col2 ) + col2 AS col0 FROM tab0
----
64
64
64

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE NOT col0 > + + col2
----
-51

query I rowsort
SELECT - 44 + + 87 - - col0 - - 14 * - col2 FROM tab0
----
-10
-1246
-600

onlyif mysql # DIV for integer division: 
query II rowsort label-4676
SELECT col2 + + 51 AS col0, + col1 + - col0 DIV + 82 FROM tab2
----
109
67
74
51
91
77

skipif mysql # not compatible
query II rowsort label-4676
SELECT col2 + + 51 AS col0, + col1 + - col0 / + 82 FROM tab2
----
109
67
74
51
91
77

query I rowsort
SELECT ALL + ( - + 72 ) AS col0 FROM tab2
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NULL IN ( - + 0 + - - 43 + + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IN ( - + 0 + - - 43 + + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT - col1 + + - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4680
SELECT - col0 AS col1, - col1 - + - ( + CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-46
-97
-64
-141
-75
-142

skipif mysql # not compatible
query II rowsort label-4680
SELECT - col0 AS col1, - col1 - + - ( + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-46
-97
-64
-141
-75
-142

query II rowsort
SELECT - + col1 AS col0, 48 FROM tab1 AS cor0
----
-14
48
-47
48
-5
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4682
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 <> col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - COUNT( DISTINCT + 7 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4684
SELECT - COUNT ( DISTINCT + 7 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL 20 - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 64 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL 20 - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 64 IS NULL
----
20

query I rowsort
SELECT + 82 + - 84 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 49 + - col2 FROM tab0 AS cor0
----
-50
2
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 80 + 24 * + - COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 80 + 24 * + - COUNT ( * ) FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT - 91 - + - 10 AS col1 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT + 34 * + col1 AS col0 FROM tab0 AS cor0
----
2754
34
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) <> - col0 + - 46
----

skipif mysql # not compatible
query I rowsort label-4691
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) <> - col0 + - 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4692
SELECT * FROM tab0 WHERE col1 + + col2 <> - col2 * ( + CAST( + col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4692
SELECT * FROM tab0 WHERE col1 + + col2 <> - col2 * ( + CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT 76 + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT 76 + col1 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT ALL - col2 DIV + 79 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - col2 / + 79 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4695
SELECT - CAST( 27 AS SIGNED ) DIV col0 AS col1, 75 - + col2 FROM tab0
----
-1
28
0
-24
0
65

skipif mysql # not compatible
query II rowsort label-4695
SELECT - CAST ( 27 AS INTEGER ) / col0 AS col1, 75 - + col2 FROM tab0
----
-1
28
0
-24
0
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT DISTINCT - col2 DIV 83 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - col2 / 83 AS col0 FROM tab0
----
-1
0

query II rowsort
SELECT + col0, col1 * - + col2 AS col2 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT + 85 <> NULL
----

query I rowsort
SELECT + ( - ( + 56 ) ) * - 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 73bc98d2a2d4519a1579458e4f33c8e3

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT + COUNT( * ) * - + 28 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4702
SELECT + COUNT ( * ) * - + 28 FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT col2 DIV ( - 24 ) * + col1 + + - col0 AS col2 FROM tab1
----
-107
-185
-95

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT col2 / ( - 24 ) * + col1 + + - col0 AS col2 FROM tab1
----
-107
-185
-95

query I rowsort
SELECT - + col0 * col0 - - 32 + - col1 * + 42 FROM tab1 AS cor0
----
-10223
-3157
-7403

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - COUNT( * ) * - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4705
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 83 * col1 + 67 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 82 + - col2 + + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT 23 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) + - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4709
SELECT 23 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT + SUM( col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4710
SELECT + SUM ( col2 ) AS col1 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col0 ) col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT 1 * + + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4712
SELECT 1 * + + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2 WHERE - 0 IS NOT NULL
----
26

query I rowsort
SELECT ALL - col1 * + 53 * - - col2 * - - 37 + - - 59 * col0 * - - col1 FROM tab2
----
-2161839
-5749128
-7323971

query I rowsort
SELECT 90 * + col0 + col2 + - 18 AS col2 FROM tab2
----
4145
5782
6790

query I rowsort
SELECT - col2 + + - 53 FROM tab2
----
-111
-76
-93

query I rowsort
SELECT + ( - col1 ) * + col2 + - + 87 FROM tab2 AS cor0
----
-1260
-3167
-3973

query I rowsort
SELECT ALL col0 * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1058
-2560
-4350

query I rowsort
SELECT - 9 + + 20 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT + - CAST( NULL AS SIGNED ) * - + ( + 63 ) - - CAST( - col0 AS SIGNED ) * - 66 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + 73
----

skipif mysql # not compatible
query I rowsort label-4720
SELECT + - CAST ( NULL AS INTEGER ) * - + ( + 63 ) - - CAST ( - col0 AS INTEGER ) * - 66 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> + 73
----

query I rowsort
SELECT DISTINCT 60 * col2 AS col1 FROM tab2
----
1380
2400
3480

query II rowsort
SELECT + col1, - ( - col1 ) FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4723
SELECT DISTINCT + 52 - - COUNT( * ) + 19 * - CAST( NULL AS DECIMAL ) / - SUM( ALL col1 ) * - COUNT( * ) - 17 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + 52 - - COUNT ( * ) + 19 * - CAST ( NULL AS REAL ) / - SUM ( ALL col1 ) * - COUNT ( * ) - 17 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 23 + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL - 8 + 97 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT ALL + col1 - - ( col0 ) AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT + + ( + ( - - 74 ) ) + - col0 FROM tab2 AS cor0
----
-1
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT 37 - COUNT( - - col1 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT 37 - COUNT ( - - col1 ) FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL - SUM( ALL + 19 ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - SUM ( ALL + 19 ) AS col2 FROM tab2 AS cor0
----
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 + + + col1 * + - 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT MAX( + 49 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-4731
SELECT MAX ( + 49 ) FROM tab0
----
49

query III rowsort
SELECT DISTINCT + 1 * + col1 AS col0, col1 AS col0, 90 AS col2 FROM tab0
----
9 values hashing to 0afe2e9be83b102b3990edf05b63a31a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4733
SELECT 9 * ( - - col1 ) + - - col2 + + col2, col1 FROM tab2 WHERE NOT col2 * CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----
505
51
719
67
773
77

skipif mysql # not compatible
query II rowsort label-4733
SELECT 9 * ( - - col1 ) + - - col2 + + col2, col1 FROM tab2 WHERE NOT col2 * CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----
505
51
719
67
773
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT SUM( 15 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-4734
SELECT SUM ( 15 ) AS col0 FROM tab2
----
45

query I rowsort
SELECT + - col1 * ( + col1 ) * - 23 * - 33 FROM tab2 AS cor0
----
-1974159
-3407151
-4500111

query II rowsort
SELECT - 49 AS col1, - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 81 < + col1 * - col1
----
-49
-1
-49
-21
-49
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT + MIN( DISTINCT - 58 ) FROM tab1 AS cor0 WHERE + 48 > + - col0
----
-58

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT + MIN ( DISTINCT - 58 ) FROM tab1 AS cor0 WHERE + 48 > + - col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - 89 + + COUNT( * ) FROM tab0 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - 89 + + COUNT ( * ) FROM tab0 cor0
----
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 62 * + col2 * 3 * - + ( col2 ) BETWEEN NULL AND + + col2
----

query I rowsort
SELECT ALL + 45 * + - col2 * col1 FROM tab1 AS cor0
----
-13275
-143820
-60480

onlyif mysql # DIV for integer division: 
query I rowsort label-4741
SELECT col0 + - + col1 DIV - - 88 col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4741
SELECT col0 + - + col1 / - - 88 col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col2 * + - col2 AS col2 FROM tab1
----
3481
4624
9216

query II rowsort
SELECT + col0 * col1 AS col1, + col0 FROM tab1
----
425
85
4277
91
714
51

query I rowsort
SELECT + col1 - - + col2 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT 87 - - 21 FROM tab2 AS cor0
----
108
108
108

query I rowsort
SELECT DISTINCT + col1 + col0 * + col0 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT ALL - ( - ( col2 ) ) AS col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE - col2 * 28 < + col0 * + 7 - + col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + + SUM( ALL + 87 ) FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + + SUM ( ALL + 87 ) FROM tab0 AS cor0
----
261

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4750
SELECT ALL + CAST( NULL AS DECIMAL ) * + col2 * - - 27 + - col2 + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + CAST ( NULL AS REAL ) * + col2 * - - 27 + - col2 + 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT SUM( + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4751
SELECT SUM ( + + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + MAX( col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4752
SELECT + MAX ( col2 ) col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT - - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col0, 30 AS col0 FROM tab1 AS cor0
----
14
30
47
30
5
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + + SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4756
SELECT + + SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE - 36 * + col1 + - col1 * - col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + 12 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col1 FROM tab1
----
-93
-93
-93

query II rowsort
SELECT ALL 43 * + - 85, + col1 FROM tab0
----
-3655
1
-3655
21
-3655
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT - 58 DIV + + col1 col0 FROM tab0
----
-2
-58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4761
SELECT - 58 / + + col1 col0 FROM tab0
----
-2
-58
0

query II rowsort
SELECT 99, + col2 AS col1 FROM tab1 AS cor0
----
99
59
99
68
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - COUNT( * ) * COUNT( - col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - COUNT ( * ) * COUNT ( - col0 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - 40 * - 39 + - 33 - - - COUNT( * ) FROM tab2 AS cor0
----
1524

skipif mysql # not compatible
query I rowsort label-4764
SELECT - 40 * - 39 + - 33 - - - COUNT ( * ) FROM tab2 AS cor0
----
1524

query I rowsort
SELECT DISTINCT + + col1 * + 24 AS col0 FROM tab0 cor0
----
1944
24
504

query I rowsort
SELECT ALL + + col1 + - + 11 FROM tab2 AS cor0
----
40
56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT MAX( ALL - + ( - - ( 42 ) ) ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4767
SELECT MAX ( ALL - + ( - - ( 42 ) ) ) FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT COUNT( - 90 ) * 80 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT COUNT ( - 90 ) * 80 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT ALL - 67 DIV col2 * - 55 col1 FROM tab0 AS cor0
----
0
330
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT ALL - 67 / col2 * - 55 col1 FROM tab0 AS cor0
----
0
330
55

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col0 - - col0
----

query I rowsort
SELECT DISTINCT + - 2 + col1 AS col1 FROM tab1 cor0
----
12
3
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT + col1 DIV 93 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4772
SELECT + col1 / 93 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 - 37, col2 + col0 col0 FROM tab1 WHERE NOT 28 + col1 IS NULL
----
14
147
48
144
54
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT MIN( - 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT MIN ( - 15 ) FROM tab1
----
-15

query I rowsort
SELECT ALL - 68 + - 90 AS col2 FROM tab0
----
-158
-158
-158

query I rowsort
SELECT 40 + + 45 FROM tab0
----
85
85
85

query III rowsort
SELECT * FROM tab1 WHERE + col0 <= ( + 37 )
----

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + + col1 AND + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT + CAST( NULL AS SIGNED ) + 1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT + CAST ( NULL AS INTEGER ) + 1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + ( + + col1 ) + 85 AS col2 FROM tab0
----
184
295
3892

query I rowsort
SELECT - ( - - 5 ) + 49 * + col0 AS col2 FROM tab2 AS cor0
----
2249
3131
3670

query I rowsort
SELECT - - ( - 73 ) FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4784
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN col0 AND - - 40 * col2 * + CAST( 90 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4784
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN col0 AND - - 40 * col2 * + CAST ( 90 AS INTEGER )
----

query I rowsort
SELECT + ( - 69 ) AS col0 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL + col2 - 92 AS col1 FROM tab0
----
-45
-82
7

query I rowsort
SELECT - ( - - 30 ) AS col1 FROM tab2
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT SUM( - ( + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT SUM ( - ( + col2 ) ) FROM tab0
----
-156

query I rowsort
SELECT + - 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - 94 AND + 24
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * col1 + col1 <> + + 69
----

query I rowsort
SELECT DISTINCT col2 * - - col1 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT col0 * + + col0 + - 89 FROM tab2 cor0
----
2027
4007
5536

query I rowsort
SELECT + ( 18 ) FROM tab2
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + MAX( DISTINCT + 77 ) AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4795
SELECT + MAX ( DISTINCT + 77 ) AS col0 FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4796
SELECT COUNT( * ), 72 * + - ( SUM( + - col1 ) ) AS col1 FROM tab2
----
3
14040

skipif mysql # not compatible
query II rowsort label-4796
SELECT COUNT ( * ), 72 * + - ( SUM ( + - col1 ) ) AS col1 FROM tab2
----
3
14040

query I rowsort
SELECT + ( - ( + + ( + col2 ) ) ) AS col1 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 * col2 col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - MIN( DISTINCT - + ( + col1 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4799
SELECT - MIN ( DISTINCT - + ( + col1 ) ) AS col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + col1 * col1 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + col1 * col1 ) < ( NULL )
----
0

query II rowsort
SELECT ALL - 73 * - col2 * - col1 AS col1, - col1 AS col2 FROM tab2
----
-224840
-77
-283678
-67
-85629
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 66 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4802
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 66 IS NULL
----
3

query I rowsort
SELECT + ( 29 ) * - - ( + col2 ) FROM tab2 cor0
----
1160
1682
667

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - 14 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 14 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4805
SELECT - + CAST( MIN( DISTINCT + + 47 ) AS SIGNED ), + 30 AS col0 FROM tab1 AS cor0
----
-47
30

skipif mysql # not compatible
query II rowsort label-4805
SELECT - + CAST ( MIN ( DISTINCT + + 47 ) AS INTEGER ), + 30 AS col0 FROM tab1 AS cor0
----
-47
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col2 - - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT - + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT - 83 + - CAST( NULL AS SIGNED ) + 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT - 83 + - CAST ( NULL AS INTEGER ) + 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - - SUM( + 98 ) + ( + - 55 ) col2 FROM tab0 AS cor0
----
239

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4809
SELECT - - SUM ( + 98 ) + ( + - 55 ) col2 FROM tab0 AS cor0
----
239

query I rowsort
SELECT + col1 * - - col0 * + 26 + - col2 FROM tab0 AS cor0
----
2423
31543
47492

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL + COUNT( + col1 ) + - + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + COUNT ( + col1 ) + - + COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 39 * col2 FROM tab0
----
-1833
-3861
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NULL IN ( col0, 2 )
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IN ( col0, 2 )
----
0

query II rowsort
SELECT ALL - col1 * + - col0 AS col0, col1 * - - 68 * - + 76 * - - col2 FROM tab0
----
1215
-19674576
1827
-1085280
97
-511632

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - 24 - - - SUM( ALL - 51 ) FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 24 - - - SUM ( ALL - 51 ) FROM tab2 AS cor0
----
129

query I rowsort
SELECT col0 - + - col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - ( + + 9 ) * - col2 - + 12 FROM tab2 AS cor0
----
195
348
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4819
SELECT DISTINCT CAST( MIN( DISTINCT - 93 ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-93

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT CAST ( MIN ( DISTINCT - 93 ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + COUNT( * ) * ( + 5 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4820
SELECT + COUNT ( * ) * ( + 5 ) AS col1 FROM tab0
----
15

query II rowsort
SELECT ALL col0 * col2 * col1 AS col1, - col0 + - col0 FROM tab1
----
25075
-170
290836
-182
68544
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT - ( - + COUNT( * ) ) DIV 62 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT - ( - + COUNT ( * ) ) / 62 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + + 41 * COUNT( ALL + - col2 ) FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4823
SELECT + + 41 * COUNT ( ALL + - col2 ) FROM tab2 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT COUNT( * ), + 0 AS col1 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4824
SELECT COUNT ( * ), + 0 AS col1 FROM tab0 AS cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - 50 * COUNT( * ) FROM tab1 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4825
SELECT - 50 * COUNT ( * ) FROM tab1 AS cor0
----
-150

query I rowsort
SELECT - + col0 * + 70 * col1 AS col0 FROM tab1 AS cor0
----
-29750
-299390
-49980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 47 col2 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - COUNT( + - col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4828
SELECT - COUNT ( + - col1 ) FROM tab0 cor0
----
-3

query II rowsort
SELECT ALL + 18 AS col2, 64 - - col1 AS col0 FROM tab2 AS cor0
----
18
115
18
131
18
141

query I rowsort
SELECT DISTINCT 63 * 35 * - + col2 AS col2 FROM tab2
----
-127890
-50715
-88200

query I rowsort
SELECT DISTINCT + 26 FROM tab2 WHERE NULL IS NULL
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4832
SELECT ( col2 ) AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4832
SELECT ( col2 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT DISTINCT + + COUNT( * ) + - + COUNT( * ) * + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT + + COUNT ( * ) + - + COUNT ( * ) * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col0 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT + MIN( - + 76 ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4835
SELECT + MIN ( - + 76 ) FROM tab0 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL - + CAST( NULL AS SIGNED ) + 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - + CAST ( NULL AS INTEGER ) + 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 73 + + + col1 AS col2 FROM tab0 cor0
----
-52
-72
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT col2 DIV + + col1 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4839
SELECT col2 / + + col1 + col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT - 6 * MAX( DISTINCT 70 ) FROM tab2
----
-420

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - 6 * MAX ( DISTINCT 70 ) FROM tab2
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT COUNT( * ) + - 78 * - 1 col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4841
SELECT COUNT ( * ) + - 78 * - 1 col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - COUNT( * ) * + + 35 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - COUNT ( * ) * + + 35 FROM tab1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT COUNT( * ) + + COUNT( * ) * + + 27 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4843
SELECT COUNT ( * ) + + COUNT ( * ) * + + 27 FROM tab2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT ALL 2 DIV + col1 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL 2 / + col1 AS col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT COUNT( ALL + + col0 ) * - - 71 + - 81 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-4845
SELECT COUNT ( ALL + + col0 ) * - - 71 + - 81 FROM tab1
----
132

query I rowsort
SELECT DISTINCT - 18 - + col0 + + + col1 + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-106
-153
-183

query I rowsort
SELECT DISTINCT col0 * col0 * 75 * - col1 FROM tab0 cor0
----
-11921175
-1366875
-705675

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4849
SELECT DISTINCT COUNT( + 4 ), MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
3
99

skipif mysql # not compatible
query II rowsort label-4849
SELECT DISTINCT COUNT ( + 4 ), MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
3
99

query II rowsort
SELECT ALL 9 * col2, col0 FROM tab0 AS cor0
----
423
15
891
97
90
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT DISTINCT col2 DIV - + col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT col2 / - + col2 FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 + + 67 * ( + - 63 ) * - + ( + 43 ) + 86 FROM tab2 WHERE NOT + 53 + + + 37 IS NULL
----
181640
181656
181666

query II rowsort
SELECT DISTINCT + col1, 6 * col0 AS col2 FROM tab2
----
51
276
67
450
77
384

query I rowsort
SELECT DISTINCT - col0 + - 8 FROM tab0
----
-105
-23
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4855
SELECT ALL 2 col2, + CAST( NULL AS SIGNED ) FROM tab1
----
2
NULL
2
NULL
2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4855
SELECT ALL 2 col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
2
NULL
2
NULL
2
NULL

query I rowsort
SELECT ALL 93 + + col2 + col2 + - + col0 AS col1 FROM tab0
----
172
194
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col0 FROM tab1 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - + COUNT( * ) * + COUNT( + col0 ) + + 78 AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4858
SELECT - + COUNT ( * ) * + COUNT ( + col0 ) + + 78 AS col1 FROM tab1 AS cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4860
SELECT + + CAST( NULL AS SIGNED ), + 89 col1 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4860
SELECT + + CAST ( NULL AS INTEGER ), + 89 col1 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4861
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col2 - 39 AS col1 FROM tab0
----
-29
60
8

query I rowsort
SELECT col1 * 43 AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
3483
43
903

query I rowsort
SELECT - col0 * 77 + - col2 AS col1 FROM tab2
----
-3565
-4968
-5833

query I rowsort
SELECT - 3 * - 47 AS col0 FROM tab0
----
141
141
141

query I rowsort
SELECT - 36 * 23 AS col1 FROM tab1
----
-828
-828
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT DISTINCT - 31 DIV col2 + 74 AS col1 FROM tab2
----
73
74

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - 31 / col2 + 74 AS col1 FROM tab2
----
73
74

query I rowsort
SELECT col1 + col2 FROM tab1 WHERE ( - 39 ) = - col1 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT CAST( NULL AS SIGNED ) - + col1 FROM tab2 WHERE ( col0 / - col1 ) > + col1
----

skipif mysql # not compatible
query I rowsort label-4869
SELECT CAST ( NULL AS INTEGER ) - + col1 FROM tab2 WHERE ( col0 / - col1 ) > + col1
----

query I rowsort
SELECT ALL + col2 + - col2 * + 78 AS col0 FROM tab0
----
-3619
-7623
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NOT ( - 70 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4871
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT ( - 70 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab1 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT NULL > - col0
----
0

query I rowsort
SELECT DISTINCT col1 * + 66 AS col2 FROM tab0
----
1386
5346
66

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 36 ) <= col2 - 24 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT - 53 * - col0 + + 36 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT - 53 * - col0 + + 36 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 66 FROM tab2 WHERE NOT NULL NOT IN ( col1 + col0 )
----

query I rowsort
SELECT DISTINCT 83 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT 1 AS col0 FROM tab1 WHERE 96 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT - COUNT( * ) + + 4 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4880
SELECT - COUNT ( * ) + + 4 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT - CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT - CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 * 87 AS col2 FROM tab1 cor0
----
-4524
-4524
-4524

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT - 65 DIV 88 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 65 / 88 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 16 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT DISTINCT col1 + + col1 AS col1 FROM tab1 cor0 WHERE col1 * + col2 + col1 NOT BETWEEN + col0 + col1 * CAST( - ( - col1 ) AS SIGNED ) AND 46 + col1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT col1 + + col1 AS col1 FROM tab1 cor0 WHERE col1 * + col2 + col1 NOT BETWEEN + col0 + col1 * CAST ( - ( - col1 ) AS INTEGER ) AND 46 + col1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4886
SELECT ALL * FROM tab2 cor0 WHERE 5 + + CAST( NULL AS SIGNED ) IN ( 6 * + 4 )
----

skipif mysql # not compatible
query III rowsort label-4886
SELECT ALL * FROM tab2 cor0 WHERE 5 + + CAST ( NULL AS INTEGER ) IN ( 6 * + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT - COUNT( * ) * 11 AS col1 FROM tab0 WHERE - col2 / + col0 + + col0 IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - COUNT ( * ) * 11 AS col1 FROM tab0 WHERE - col2 / + col0 + + col0 IS NOT NULL
----
-33

query I rowsort
SELECT DISTINCT - 67 * - col1 FROM tab2
----
3417
4489
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-4889
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT 85 * COUNT( * ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT 85 * COUNT ( * ) FROM tab2
----
255

query I rowsort
SELECT ALL + col2 * 50 AS col0 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT 88 * col2 FROM tab1
----
5192
5984
8448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT - CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT - CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 35 BETWEEN + 18 AND - col0 * - 67
----
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 35 BETWEEN + 18 AND - col0 * - 67
----
0

query I rowsort
SELECT ALL col2 * + 36 FROM tab2 AS cor0
----
1440
2088
828

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN 77 AND + col1 * 43
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT ALL + 59 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL + 59 / col0 AS col1 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 - 78 * + col0 ) NOT BETWEEN col1 AND + col1
----

query I rowsort
SELECT DISTINCT 79 * + col2 AS col1 FROM tab0 WHERE - col2 <= - col1 - ( + 50 - col1 * - col2 )
----

query I rowsort
SELECT col2 - + 6 FROM tab1 WHERE NOT 9 IS NULL
----
53
62
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + + - 9 * 21 col0 FROM tab2
----
-132
-132
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT MAX( - 7 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4905
SELECT MAX ( - 7 ) AS col0 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - SUM( ALL + col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4906
SELECT - SUM ( ALL + col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4907
SELECT SUM( DISTINCT + 98 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT SUM ( DISTINCT + 98 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT ALL + CAST( NULL AS SIGNED ) * + - MAX( + col0 ) + - COUNT( * ) * + 66 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + CAST ( NULL AS INTEGER ) * + - MAX ( + col0 ) + - COUNT ( * ) * + 66 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 49 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN - 25 AND ( col1 * + col1 )
----
51
14
96
91
47
68

query I rowsort
SELECT 71 * + - col2 FROM tab2
----
-1633
-2840
-4118

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 >= 21 / 11
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT ALL 76 + + 10 DIV - 36 FROM tab0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL 76 + + 10 / - 36 FROM tab0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT AVG ( ALL col2 ) + + COUNT( * ) * + 92 FROM tab2 WHERE + + col0 + col2 = - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT AVG ( ALL col2 ) + + COUNT ( * ) * + 92 FROM tab2 WHERE + + col0 + col2 = - col1
----
NULL

query I rowsort
SELECT 13 * - col1 * + col2 * col1 - - col2 FROM tab2 AS cor0
----
-3083040
-3384648
-777676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + col0 col2 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT ALL - CAST( NULL AS SIGNED ) - - - AVG ( + - col0 ) + + 42 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - CAST ( NULL AS INTEGER ) - - - AVG ( + - col0 ) + + 42 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT ALL + 64 + - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL + 64 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT - + COUNT( * ) + COUNT( 10 ) AS col1 FROM tab1 AS cor0 WHERE 9 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - + COUNT ( * ) + COUNT ( 10 ) AS col1 FROM tab1 AS cor0 WHERE 9 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN ( - col1 + col2 ) AND col1
----
3

skipif mysql # not compatible
query I rowsort label-4920
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN ( - col1 + col2 ) AND col1
----
3

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col2 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT MIN( - col0 ) * + 32 + 59 AS col1 FROM tab2 AS cor0
----
-2341

skipif mysql # not compatible
query I rowsort label-4922
SELECT MIN ( - col0 ) * + 32 + 59 AS col1 FROM tab2 AS cor0
----
-2341

query I rowsort
SELECT - col0 + - + 70 FROM tab2 AS cor0
----
-116
-134
-145

query I rowsort
SELECT DISTINCT - 83 * col0 - + col0 FROM tab0
----
-1260
-7308
-8148

query I rowsort
SELECT col1 + - col2 + - - col1 AS col2 FROM tab2
----
114
76
79

query I rowsort
SELECT - ( col1 ) * - 88 AS col0 FROM tab1
----
1232
4136
440

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 + + col1 BETWEEN NULL AND - 81 - - col1
----
15
81
47

query I rowsort
SELECT + ( + col2 ) * - + col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT MIN( + ( + + col1 ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4929
SELECT MIN ( + ( + + col1 ) ) AS col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 * - - ( + col1 ) ) <= ( col2 + 8 )
----

query I rowsort
SELECT ALL 63 * - 61 * + col0 AS col2 FROM tab1 cor0
----
-195993
-326655
-349713

query I rowsort
SELECT DISTINCT - col0 + - col2 * col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + 56
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 = - col2 * - + col1
----
-51
-67
-77

query I rowsort
SELECT - ( + + 23 ) FROM tab1
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT CAST( NULL AS SIGNED ) * - - col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4937
SELECT CAST ( NULL AS INTEGER ) * - - col0 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT MIN( ALL 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT MIN ( ALL 5 ) FROM tab2
----
5

query II rowsort
SELECT + col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + 50 * col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT 39 + + ( - SUM( - col0 ) ) * 60 AS col1 FROM tab2 AS cor0 WHERE NOT 42 * + 80 * + - col0 BETWEEN ( - + col2 + + ( + col0 ) * - 30 ) AND - 92
----
11139

skipif mysql # not compatible
query I rowsort label-4941
SELECT 39 + + ( - SUM ( - col0 ) ) * 60 AS col1 FROM tab2 AS cor0 WHERE NOT 42 * + 80 * + - col0 BETWEEN ( - + col2 + + ( + col0 ) * - 30 ) AND - 92
----
11139

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL + - COUNT( * ) + - COUNT( * ) * + COUNT( * ) + + 86 AS col1 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) + + 86 AS col1 FROM tab2 AS cor0
----
74

query I rowsort
SELECT - + 10 * col0 AS col1 FROM tab2 AS cor0
----
-460
-640
-750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col1 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( + 5 ) * 76 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( + 5 ) * 76 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ( - col2 ) + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT ALL + - col2 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT DISTINCT + 41 * - 38 - ( - - col2 ) FROM tab1 AS cor0
----
-1617
-1626
-1654

query I rowsort
SELECT + 70 + 52 FROM tab2 cor0
----
122
122
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN CAST( col1 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN CAST ( col1 AS INTEGER ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4951
SELECT * FROM tab1 AS cor0 WHERE + 34 * - col1 + - + CAST( NULL AS SIGNED ) + 87 <= - col0 AND NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4951
SELECT * FROM tab1 AS cor0 WHERE + 34 * - col1 + - + CAST ( NULL AS INTEGER ) + 87 <= - col0 AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT - ( + 40 ) DIV - COUNT( * ) + + COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-4952
SELECT - ( + 40 ) / - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
16

query II rowsort
SELECT ALL col2 AS col1, - col2 AS col2 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + col0 + 77 AS col1 FROM tab0
----
164
174
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT + 52 col0, SUM( ALL - 97 ) AS col2 FROM tab2
----
52
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4956
SELECT + 52 col0, SUM ( ALL - 97 ) AS col2 FROM tab2
----
52
-291

query I rowsort
SELECT DISTINCT + ( + 25 ) FROM tab1, tab1 AS cor0
----
25

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( col0 + + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4959
SELECT col0 col2, + CAST( - - col2 AS SIGNED ) FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4959
SELECT col0 col2, + CAST ( - - col2 AS INTEGER ) FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT ALL col2, col1 * 78 FROM tab2
----
23
3978
40
6006
58
5226

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE col2 * col2 + - - col2 + col0 + 11 = - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 13 col0 FROM tab0 AS cor0
----
2
74
84

query I rowsort
SELECT - ( + 4 ) AS col1 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL + 11 + + MAX( 45 ) AS col0 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + 11 + + MAX ( 45 ) AS col0 FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4965
SELECT DISTINCT - 62 / - + CAST( - 46 AS DECIMAL ) + + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - 62 / - + CAST ( - 46 AS REAL ) + + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 5 ) IS NOT NULL
----

query I rowsort
SELECT + + 5 + - col2 * col1 * col2 FROM tab2 AS cor0
----
-123195
-225383
-26974

query I rowsort
SELECT ALL - col1 * - col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
3659
8489
8839

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT 76 * - 99 * + col2 + + + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL COUNT( * ) + - 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL COUNT ( * ) + - 52 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL + + col1 - + 80 AS col1 FROM tab1 AS cor0
----
-33
-66
-75

query I rowsort
SELECT DISTINCT + col1 * + col2 + + - 61 + col1 + - col0 * + 11 * + 45 + col1 FROM tab1 cor0
----
-23934
-41816
-41831

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT ALL - + 21 DIV + col2 * - + col2 * - + col0 + 35 * + + 97 + + col1 + 20 FROM tab1 AS cor0
----
3420
3429
3462

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - + 21 / + col2 * - + col2 * - + col0 + 35 * + + 97 + + col1 + 20 FROM tab1 AS cor0
----
3420
3429
3462

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT - SUM( DISTINCT + col2 ) - - + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - SUM ( DISTINCT + col2 ) - - + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( 32 * + + col2, - 94 )
----

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT + CAST( - 74 AS SIGNED ) * col2 + 88 FROM tab2
----
-1614
-2872
-4204

skipif mysql # not compatible
query I rowsort label-4977
SELECT + CAST ( - 74 AS INTEGER ) * col2 + 88 FROM tab2
----
-1614
-2872
-4204

query II rowsort
SELECT col0 + 11 AS col0, col0 - + col1 FROM tab2 WHERE NOT NULL < + ( + - col0 )
----

query II rowsort
SELECT DISTINCT + col1 AS col1, + col1 - - - col2 AS col2 FROM tab0
----
1
-98
21
11
81
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL SUM( - col1 ) col2 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT ALL SUM ( - col1 ) col2 FROM tab1
----
-66

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT + - col1 >= - 22
----
81

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 * - 30 + col1 * - col1 * col2 - - - col0 + 67 * 80 AND ( 50 * col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL - 77 * + COUNT( + col0 ) - - - 38 + - - 26 AS col2 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - 77 * + COUNT ( + col0 ) - - - 38 + - - 26 AS col2 FROM tab2 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL + - SUM( + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + - SUM ( + col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT - 98 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT - + 77 * + 39 FROM tab0 AS cor0
----
-3003
-3003
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4988
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4988
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < + col2 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - - ( + 67 ) * col0 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 12 IS NULL
----
23
40
58

query I rowsort
SELECT + + col2 * col0 - col2 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4992
SELECT ALL - ( CAST( + col0 AS SIGNED ) ), col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-4992
SELECT ALL - ( CAST ( + col0 AS INTEGER ) ), col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT - col2, - col1 AS col0 FROM tab2
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND - 83 - col0 + - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT 77 + + 8 * + COUNT( * ) FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT 77 + + 8 * + COUNT ( * ) FROM tab0
----
101

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - col1 * col2 + + 86 FROM tab0
----
-124
-13
-3721

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col1, 83 )
----

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) + - - col1 AS col1 FROM tab2
----
125
192
194

query I rowsort
SELECT col1 + + ( - ( + col0 ) ) AS col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL + MAX( + col1 ) + COUNT( * ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL + MAX ( + col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT + col1 + - + 48 FROM tab1 AS cor0
----
-1
-34
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL 83 DIV + col2 - + + ( + 41 ) AS col2 FROM tab1
----
-40
-40
-41

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL 83 / + col2 - + + ( + 41 ) AS col2 FROM tab1
----
-40
-40
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5004
SELECT - 38 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-38
NULL
-38
NULL
-38
NULL

skipif mysql # not compatible
query II rowsort label-5004
SELECT - 38 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-38
NULL
-38
NULL
-38
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 AS col0, col2 col0 FROM tab1
----
99
59
99
68
99
96

query I rowsort
SELECT ALL col1 + - 17 FROM tab1
----
-12
-3
30

query I rowsort
SELECT + 15 - + - 2 AS col0 FROM tab0
----
17
17
17

query I rowsort
SELECT col1 * + - 4 - col2 FROM tab2 AS cor0
----
-227
-326
-348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT DISTINCT + + CAST( - 48 AS SIGNED ) + - 43 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + + CAST ( - 48 AS INTEGER ) + - 43 FROM tab2 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT - COUNT( * ) * - + 37 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( - + col0 AS SIGNED ) / - col2 * + col0 > + - 21
----
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT - COUNT ( * ) * - + 37 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( - + col0 AS INTEGER ) / - col2 * + col0 > + - 21
----
0

query II rowsort
SELECT - col1 AS col0, 23 - + 26 FROM tab2 AS cor0
----
-51
-3
-67
-3
-77
-3

query I rowsort
SELECT ALL + ( + - 69 ) * + 52 - - col2 - - col2 AS col1 FROM tab2
----
-3472
-3508
-3542

query I rowsort
SELECT 37 * - + 30 * + - col0 FROM tab2
----
51060
71040
83250

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( - col0 ) * + + col2 + + 11 + - + ( - ( - - col1 ) ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - + 50 FROM tab1
----
-2550
-4250
-4550

query I rowsort
SELECT + 1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 61 * + + col1 + + + ( + - col0 ) FROM tab1 AS cor0
----
220
2776
803

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 5 AS col1, col0 col0 FROM tab0 AS cor0
----
5
15
5
87
5
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( col0 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT ALL col1 * 80 DIV 17 AS col1 FROM tab0
----
381
4
98

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL col1 * 80 / 17 AS col1 FROM tab0
----
381
4
98

query III rowsort
SELECT * FROM tab2 WHERE 46 IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT 74 DIV + col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT 74 / + col2 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT col1 DIV + 25 AS col1 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5023
SELECT col1 / + 25 AS col1 FROM tab0
----
0
0
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + + col1 IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 10 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT + SUM( + 83 ) AS col1 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-5026
SELECT + SUM ( + 83 ) AS col1 FROM tab0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT 22 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT 22 / + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT SUM( - col0 ) col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5029
SELECT SUM ( - col0 ) col2 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT - col2 AS col2, 3 FROM tab1 AS cor0
----
-59
3
-68
3
-96
3

query II rowsort
SELECT ALL + col0 * - col2 * 68 AS col0, + col0 + col2 AS col1 FROM tab1 cor0
----
-332928
147
-341020
144
-420784
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5032
SELECT - col1 * CAST( NULL AS SIGNED ), 46 + + col2 AS col2 FROM tab0 cor0 WHERE NOT ( 83 ) < col1
----
NULL
145
NULL
56
NULL
93

skipif mysql # not compatible
query II rowsort label-5032
SELECT - col1 * CAST ( NULL AS INTEGER ), 46 + + col2 AS col2 FROM tab0 cor0 WHERE NOT ( 83 ) < col1
----
NULL
145
NULL
56
NULL
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT ALL 10 DIV + col1 FROM tab0 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL 10 / + col1 FROM tab0 AS cor0
----
0
0
10

query II rowsort
SELECT DISTINCT + col1, 19 FROM tab2
----
51
19
67
19
77
19

query I rowsort
SELECT DISTINCT - col1 * - col0 + 10 + + + 18 * - + 95 AS col2 FROM tab1 WHERE NULL IN ( - 45, - 67 / - 23, + col0, - + col2 + - + ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( ALL col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5036
SELECT COUNT ( ALL col2 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5037
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5037
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL - col0 * col0 - + + col1 AS col0 FROM tab0 WHERE + + 88 + col2 BETWEEN - + CAST( NULL AS SIGNED ) AND + 10 * - 86 + - - col1
----

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL - col0 * col0 - + + col1 AS col0 FROM tab0 WHERE + + 88 + col2 BETWEEN - + CAST ( NULL AS INTEGER ) AND + 10 * - 86 + - - col1
----

query I rowsort
SELECT 24 * + 68 * + 40 AS col1 FROM tab0
----
65280
65280
65280

query II rowsort
SELECT - + 40 AS col2, - col2 * - 84 AS col0 FROM tab2 AS cor0
----
-40
1932
-40
3360
-40
4872

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - ( - - col1 ) * + - 9 * - col2 * col1
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - 51 <> - + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / - + 72 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT 98 + + COUNT( * ) AS col2 FROM tab1 cor0
----
101

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT 98 + + COUNT ( * ) AS col2 FROM tab1 cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT MIN( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - - col2 * - 78
----
-91

skipif mysql # not compatible
query I rowsort label-5046
SELECT MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - - col2 * - 78
----
-91

query I rowsort
SELECT ALL - - col1 - + - col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT 67 + + COUNT( * ) AS col1 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-5048
SELECT 67 + + COUNT ( * ) AS col1 FROM tab2
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 41 col1, col0 FROM tab2
----
41
46
41
64
41
75

query I rowsort
SELECT DISTINCT - col2 * + 54 * - - 74 FROM tab1
----
-235764
-271728
-383616

query I rowsort
SELECT col2 + - + 80 AS col1 FROM tab2
----
-22
-40
-57

query I rowsort
SELECT ALL col1 * - 22 + - col1 + - col0 AS col1 FROM tab2 cor0
----
-1219
-1616
-1835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - 57 * 16 * 45 AS col2 FROM tab2
----
-41040
-41040
-41040

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL - ( ( COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - ( ( COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * + col2 col0 FROM tab2 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
2208
3840
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT SUM( col0 ) * + + 63 col0 FROM tab2 AS cor0
----
11655

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT DISTINCT SUM ( col0 ) * + + 63 col0 FROM tab2 AS cor0
----
11655

query I rowsort
SELECT ALL - - col0 * - - col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ( - 44 ) AS col2 FROM tab1 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT 99 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5060
SELECT 99 / - col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 25 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col0 + - 4 + 61, col1, - col2, + 86 * 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT ( - + MIN( - col1 ) ) * ( - 78 ) FROM tab0
----
-6318

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT ( - + MIN ( - col1 ) ) * ( - 78 ) FROM tab0
----
-6318

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 * col1 + + 84, - 78, - - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5065
SELECT ALL - col0 DIV + 27 + col1 AS col0, + col1 col1 FROM tab2 AS cor0
----
50
51
65
67
75
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5065
SELECT ALL - col0 / + 27 + col1 AS col0, + col1 col1 FROM tab2 AS cor0
----
50
51
65
67
75
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 cor0 WHERE NOT + 70 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 )
----
0

query I rowsort
SELECT - 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT ALL 48 DIV + col2 AS col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL 48 / + col2 AS col2 FROM tab2
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + 86 + + MAX( ALL + 78 ) FROM tab0
----
164

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + 86 + + MAX ( ALL + 78 ) FROM tab0
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL + + col1 + 51 + - + ( - CAST( NULL AS SIGNED ) ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + + col1 + 51 + - + ( - CAST ( NULL AS INTEGER ) ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5072
SELECT + col1 + - ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT + col1 + - ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 82 + - 16 AS col2 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + col0, + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-51
28
-85
10
-91
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT + COUNT( DISTINCT + col1 ), - 37 col1 FROM tab1 AS cor0
----
3
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5076
SELECT + COUNT ( DISTINCT + col1 ), - 37 col1 FROM tab1 AS cor0
----
3
-37

query I rowsort
SELECT 65 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + 37 - - + col2 + + col0 FROM tab0
----
134
233
99

query I rowsort
SELECT col2 + 18 AS col0 FROM tab2 AS cor0
----
41
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab2 cor0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 34 <> NULL
----

query I rowsort
SELECT ALL + col0 * 85 FROM tab1
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL - + COUNT( + 99 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - + COUNT ( + 99 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - - 31 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT + col2 * - col0 DIV + col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5085
SELECT + col2 * - col0 / + col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + ( 44 ) AS col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + + 9 FROM tab0 AS cor0 WHERE NOT NULL <> - ( + 88 )
----

query I rowsort
SELECT + col0 * + ( col0 ) * + 89 * - col1 AS col1 FROM tab1 cor0
----
-3215125
-3240846
-34639423

query II rowsort
SELECT + 96 AS col0, col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
96
51
96
67
96
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT ALL - col1 DIV - - col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - col1 / - - col1 AS col1 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT COUNT( * ) + 53 DIV - 32 AS col1 FROM tab0, tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5092
SELECT COUNT ( * ) + 53 / - 32 AS col1 FROM tab0, tab0 AS cor0
----
8

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + + 60 FROM tab0 WHERE NOT - col1 NOT BETWEEN - col1 + - - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 21 + + 75 col1, - 36 FROM tab1 AS cor0
----
96
-36
96
-36
96
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 56 * col0 col0 FROM tab2 AS cor0
----
-2525
-3507
-4133

query I rowsort
SELECT + 92 + + 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
176
176
176

query I rowsort
SELECT col0 + - col2 + + ( - col0 ) * - col1 FROM tab0 AS cor0
----
1183
1904
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT MIN( - + 7 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5100
SELECT DISTINCT MIN ( - + 7 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

query I rowsort
SELECT DISTINCT + 26 + + + col2 AS col0 FROM tab1
----
122
85
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT COUNT( * ) col0, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5102
SELECT COUNT ( * ) col0, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT COUNT( * ) * + ( - COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5103
SELECT COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab2
----
-9

query I rowsort
SELECT ALL - ( + col2 ) + - col2 FROM tab2 AS cor0
----
-116
-46
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - 32 col2 FROM tab2 AS cor0
----
-55
-72
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT 67 + 42 DIV 17 AS col0 FROM tab1
----
69
69
69

skipif mysql # not compatible
query I rowsort label-5106
SELECT 67 + 42 / 17 AS col0 FROM tab1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - SUM( + col1 ) + 6 AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5107
SELECT - SUM ( + col1 ) + 6 AS col2 FROM tab0
----
-97

query I rowsort
SELECT + col1 + + - col2 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT CAST( + - ( + col1 ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5109
SELECT CAST ( + - ( + col1 ) AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col0 * - + col2 FROM tab2 cor0
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab1, tab1 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - - MIN( + 49 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
49

skipif mysql # not compatible
query I rowsort label-5113
SELECT - - MIN ( + 49 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT MIN( - 63 ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT MIN ( - 63 ) AS col2 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT MIN( - 26 ) AS col1 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT MIN ( - 26 ) AS col1 FROM tab2 cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT + col1 / - + ( 48 ) + - - 28 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT + col1 / - + ( 48 ) + - - 28 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 49 + + - col2 FROM tab1 cor0
----
-10
-19
-47

query I rowsort
SELECT - col2 + + col0 + + - col0 AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT DISTINCT 73 AS col0, col2 * - + 81 FROM tab0
----
73
-3807
73
-8019
73
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT MAX( ALL - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5120
SELECT MAX ( ALL - col2 ) AS col1 FROM tab0
----
-10

query II rowsort
SELECT + + 24 * 16 + + 62, + 50 - - - ( - col0 ) FROM tab2 WHERE NOT NULL >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * - + 56 col1 FROM tab1
----
-4200
-4200
-4200

query III rowsort
SELECT ALL * FROM tab0 WHERE 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT - SUM( DISTINCT - col1 ) + - CAST( ( - 75 ) AS SIGNED ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-5124
SELECT - SUM ( DISTINCT - col1 ) + - CAST ( ( - 75 ) AS INTEGER ) FROM tab2 AS cor0
----
270

query I rowsort
SELECT ALL + ( - col2 ) * + + 10 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT CAST( NULL AS SIGNED ) / + - col2 / + col2 * + col2 + + col2 / 15 - + - CAST( 50 AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT CAST ( NULL AS INTEGER ) / + - col2 / + col2 * + col2 + + col2 / 15 - + - CAST ( 50 AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col1 + - - col0 AS col1 FROM tab2
----
143
205
217

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT ALL col1 - col1 DIV col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
76

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL col1 - col1 / col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
76

query II rowsort
SELECT DISTINCT - - col2 AS col1, col0 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 - - col0 AS col0, 27 col0 FROM tab1 AS cor0
----
102
27
170
27
182
27

query I rowsort
SELECT + col0 * + + col0 * + + col1 AS col0 FROM tab0 AS cor0
----
158949
18225
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - - col2 + col1 + - col0 * + col2 + + col0 * col2 col2 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL - COUNT( * ) * + + 75 - - ( MIN( col1 ) ) AS col2 FROM tab0 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - COUNT ( * ) * + + 75 - - ( MIN ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-224

query I rowsort
SELECT ALL - + ( + - 3 ) * - col1 FROM tab2 AS cor0
----
-153
-201
-231

query II rowsort
SELECT - 89 - - - col1 + + 60 AS col2, + 10 FROM tab2
----
-106
10
-80
10
-96
10

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE - + 4 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5137
SELECT ALL - COUNT( * ) AS col0, 68 AS col0 FROM tab1 WHERE NULL > NULL
----
0
68

skipif mysql # not compatible
query II rowsort label-5137
SELECT ALL - COUNT ( * ) AS col0, 68 AS col0 FROM tab1 WHERE NULL > NULL
----
0
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT ALL - col2 DIV - 63 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - col2 / - 63 AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - MAX( + 32 ) * + 25 col1 FROM tab1 cor0
----
-800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5139
SELECT - MAX ( + 32 ) * + 25 col1 FROM tab1 cor0
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT + + COUNT( DISTINCT 77 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT + + COUNT ( DISTINCT 77 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT + ( + ( + - COUNT( * ) ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + ( + ( + - COUNT ( * ) ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5143
SELECT ALL - + COUNT( * ) col2, + COUNT( * ) * + 74 FROM tab0 AS cor0
----
-3
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5143
SELECT ALL - + COUNT ( * ) col2, + COUNT ( * ) * + 74 FROM tab0 AS cor0
----
-3
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 * + + col0 col0 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5145
SELECT + - CAST( NULL AS DECIMAL ) AS col1, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5145
SELECT + - CAST ( NULL AS REAL ) AS col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

query II rowsort
SELECT + col1, - col2 * + - col2 * col0 + - 68 + + col2 AS col0 FROM tab1 AS cor0
----
14
470044
47
420784
5
295876

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT - - 84 DIV - 43 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5147
SELECT - - 84 / - 43 col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5148
SELECT DISTINCT - 26 + - - col1 col0 FROM tab2 AS cor0 WHERE + 9 + CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5148
SELECT DISTINCT - 26 + - - col1 col0 FROM tab2 AS cor0 WHERE + 9 + CAST ( NULL AS REAL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5149
SELECT ALL + CAST( NULL AS SIGNED ), col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5149
SELECT ALL + CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + 12 FROM tab2 AS cor0 WHERE NOT - 46 >= - 10
----
12
12
12

query II rowsort
SELECT ALL + col0 AS col2, - 55 FROM tab2 AS cor0
----
46
-55
64
-55
75
-55

query I rowsort
SELECT col2 * + - 90 AS col0 FROM tab1
----
-5310
-6120
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT DISTINCT MIN( - 82 ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT MIN ( - 82 ) AS col1 FROM tab0
----
-82

query II rowsort
SELECT DISTINCT + col1 + + - col1 AS col2, - 24 FROM tab2
----
0
-24

query I rowsort
SELECT col0 FROM tab0 WHERE + 77 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT MAX( - 59 ) + - ( - COUNT( * ) ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-5156
SELECT MAX ( - 59 ) + - ( - COUNT ( * ) ) FROM tab2
----
-56

query I rowsort
SELECT - col2 * - col2 + 39 AS col1 FROM tab0
----
139
2248
9840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT col0 + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-5158
SELECT col0 + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT 50 + col2 FROM tab2
----
108
73
90

query I rowsort
SELECT - col1 * - col2 + - 85 FROM tab1
----
1259
210
3111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT CAST( NULL AS SIGNED ) * - - MIN( + ( + col0 ) ) + - 44 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT CAST ( NULL AS INTEGER ) * - - MIN ( + ( + col0 ) ) + - 44 AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT DISTINCT - 34 DIV - col2 + col2 - + col1 + - col2 FROM tab2 AS cor0
----
-50
-67
-77

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - 34 / - col2 + col2 - + col1 + - col2 FROM tab2 AS cor0
----
-50
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT - + 68 * 78 - - COUNT( * ) AS col0 FROM tab1 cor0
----
-5301

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT - + 68 * 78 - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - COUNT( * ) - - - 90 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5164
SELECT - COUNT ( * ) - - - 90 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT - CAST( + 96 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif mysql # not compatible
query I rowsort label-5165
SELECT - CAST ( + 96 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT + CAST( NULL AS SIGNED ) * + 47 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT + CAST ( NULL AS INTEGER ) * + 47 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL + COUNT( + col2 ) FROM tab2 WHERE NOT NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + COUNT ( + col2 ) FROM tab2 WHERE NOT NULL >= col1
----
0

query I rowsort
SELECT ALL + + col1 * - 48 + - col0 * ( 30 ) FROM tab1 AS cor0
----
-2202
-2790
-4986

query II rowsort
SELECT + 12 * + col1 AS col2, - col0 FROM tab2 AS cor0 WHERE - col1 * + 31 >= ( - col0 ) * - - col1
----
612
-46
804
-75
924
-64

query I rowsort
SELECT DISTINCT + - col2 + - + col2 * + - col2 FROM tab0 AS cor0
----
2162
90
9702

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 <> + col2 * col2
----
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 <> + col2 * col2
----
0

query I rowsort
SELECT ( + - ( col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT ALL + 26 DIV + + COUNT( * ) col1 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5174
SELECT ALL + 26 / + + COUNT ( * ) col1 FROM tab0
----
8

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - SUM( col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5176
SELECT - SUM ( col0 ) AS col0 FROM tab1
----
-227

query II rowsort
SELECT ALL 23 * + - col1 AS col1, + 26 * - 11 AS col0 FROM tab1
----
-1081
-286
-115
-286
-322
-286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT + 91 DIV + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 91 / + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 81 + - 72 - - 94 * + 21
----

query I rowsort
SELECT ALL + + col1 * - 45 AS col2 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 52 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( - 0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT 90 DIV + col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT 90 / + col0 AS col2 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 83 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5187
SELECT DISTINCT - 26 * - ( - col2 ) + + col2 - - col1 / CAST( NULL AS SIGNED ), - col2 + + 44 AS col1, + 47 + + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to a7fa602439762ee7438d0e03e5dda845

skipif mysql # not compatible
query III rowsort label-5187
SELECT DISTINCT - 26 * - ( - col2 ) + + col2 - - col1 / CAST ( NULL AS INTEGER ), - col2 + + 44 AS col1, + 47 + + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to a7fa602439762ee7438d0e03e5dda845

query I rowsort
SELECT + + 7 + + col0 AS col0 FROM tab0 cor0
----
104
22
94

query I rowsort
SELECT col0 + - col1 * + col0 * + col1 FROM tab1 AS cor0
----
-200928
-2040
-9945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE col2 + CAST( NULL AS SIGNED ) BETWEEN - - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE col2 + CAST ( NULL AS INTEGER ) BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT + - COUNT( * ) FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + - COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 + - col2 col0 FROM tab0 AS cor0
----
-116
-168
-79

query I rowsort
SELECT 9 + + col1 FROM tab0 cor0
----
10
30
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 18 col0 FROM tab2 AS cor0
----
-1044
-414
-720

query I rowsort
SELECT col1 * + - 42 AS col1 FROM tab0
----
-3402
-42
-882

query III rowsort
SELECT * FROM tab2 WHERE 18 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab0 WHERE NOT 81 BETWEEN + + ( - col1 ) AND NULL
----

query II rowsort
SELECT - 34, - col1 AS col0 FROM tab0 AS cor0
----
-34
-1
-34
-21
-34
-81

query II rowsort
SELECT + - col1 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL + + 52 - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-29
31
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT - CAST( + COUNT( ALL - + col2 ) AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5201
SELECT - CAST ( + COUNT ( ALL - + col2 ) AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * + 65 - - 92 - + col0 FROM tab2 AS cor0
----
3036
4188
4892

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5204
SELECT - MAX( - - col2 ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5204
SELECT - MAX ( - - col2 ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT 4 * col2 AS col1 FROM tab0 AS cor0
----
188
396
40

query I rowsort
SELECT ALL + 65 * + + 46 FROM tab2
----
2990
2990
2990

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT COUNT( - 17 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT COUNT ( - 17 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 51 / 31 + + 39 IS NOT NULL
----

query II rowsort
SELECT ALL 42 AS col1, col2 AS col0 FROM tab0
----
42
10
42
47
42
99

query II rowsort
SELECT ALL + col2, + 61 * 17 * 10 + - 58 + - + col0 * col0 * + col0 * + col2 + - - col0 FROM tab2
----
23
-2228370
40
-10475384
58
-24458363

query II rowsort
SELECT 49, col2 AS col1 FROM tab1
----
49
59
49
68
49
96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + ( 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT ( + + col2 ) DIV + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT ( + + col2 ) / + + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT ALL - AVG ( col2 ) / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - AVG ( col2 ) / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 55 * + col0 AS col0 FROM tab1
----
-2805
-4675
-5005

query I rowsort
SELECT - col1 * + 41 AS col0 FROM tab2 AS cor0
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT DISTINCT - - SUM( ALL - col2 ) DIV + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT - - SUM ( ALL - col2 ) / + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT DISTINCT - + col2 + ( + 64 ) AS col0 FROM tab2 AS cor0
----
24
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL - COUNT( * ) + - ( - 70 ) * COUNT( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE NOT + 54 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - COUNT ( * ) + - ( - 70 ) * COUNT ( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE NOT + 54 + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT + MAX( + + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT + MAX ( + + col2 ) FROM tab1
----
96

query I rowsort
SELECT ALL - col1 + - + col0 AS col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT + ( col0 ) * - + col2 + col2 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT - col0 + + - col2 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT 50 + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5224
SELECT 50 + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0
----
50

query I rowsort
SELECT - col2 + - + col2 * - + col1 AS col0 FROM tab0
----
0
200
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT DISTINCT + - col2 + + 10 DIV + col1 * + col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + - col2 + + 10 / + col1 * + col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 45 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT + CAST( + 32 AS SIGNED ) FROM tab0 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-5228
SELECT + CAST ( + 32 AS INTEGER ) FROM tab0 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT col2 - + CAST( - col1 AS SIGNED ) FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-5229
SELECT col2 - + CAST ( - col1 AS INTEGER ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL - + COUNT( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - + COUNT ( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT col0 * col0 * - + col2 * - + col2 + - 34 AS col2 FROM tab1 cor0
----
23970782
25150191
38291310

query I rowsort
SELECT DISTINCT - - col1 * - col1 FROM tab0 AS cor0 WHERE - 0 <= + col0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5233
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5234
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ALL - SUM( ALL col1 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5235
SELECT ALL - SUM ( ALL col1 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-66

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + MAX( ALL 82 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5237
SELECT + MAX ( ALL 82 ) FROM tab0
----
82

query II rowsort
SELECT ALL - ( - col2 ) AS col2, - col0 AS col2 FROM tab2
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL > 17 + - col0 )
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + 46 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5242
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * - ( col0 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * - ( col0 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - - 67 * + COUNT( * ) - - - 13 FROM tab1 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-5243
SELECT - - 67 * + COUNT ( * ) - - - 13 FROM tab1 AS cor0
----
188

query I rowsort
SELECT + + 43 * - 41 FROM tab2 AS cor0
----
-1763
-1763
-1763

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL - COUNT( * ) * - - ( - + ( - + COUNT( * ) ) ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT ALL - COUNT ( * ) * - - ( - + ( - + COUNT ( * ) ) ) col0 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - 60
----

query I rowsort
SELECT + ( - - 17 ) * - + col1 FROM tab0
----
-1377
-17
-357

query II rowsort
SELECT - 78 AS col0, col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-78
51
-78
85
-78
91

query I rowsort
SELECT + 82 * - col1 FROM tab1 AS cor0 WHERE NULL IN ( + 66, col2 )
----

query I rowsort
SELECT + + 1 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 * + + ( - 22 ) AS col2 FROM tab0
----
1914
2134
330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT COUNT( * ) DIV SUM( + col1 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT COUNT ( * ) / SUM ( + col1 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL 63 + - - ( - col1 ) AS col2 FROM tab2
----
-14
-4
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT - CAST( NULL AS SIGNED ) * + + 90 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT - CAST ( NULL AS INTEGER ) * + + 90 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col1 + ( 84 ) AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + ( - 53 ) * - col1 AS col2 FROM tab1 AS cor0
----
2491
265
742

query I rowsort
SELECT DISTINCT col0 + + 5 + + col0 FROM tab0 AS cor0
----
179
199
35

query I rowsort
SELECT ALL - col1 + col1 * - - col2 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT ALL - col0 - 72 FROM tab2 AS cor0
----
-118
-136
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT - + 39 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5260
SELECT - + 39 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * - col0 + + 53 col1 FROM tab1 AS cor0
----
-355
-627
-675

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5262
SELECT * FROM tab0 WHERE NOT - col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5262
SELECT * FROM tab0 WHERE NOT - col0 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT col2 * - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT col2 * - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT ALL + + col1 DIV - col1 + - col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + + col1 / - col1 + - col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-52
-68
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT + CAST( 24 AS SIGNED ) * MIN( 46 ) FROM tab1 cor0
----
1104

skipif mysql # not compatible
query I rowsort label-5265
SELECT + CAST ( 24 AS INTEGER ) * MIN ( 46 ) FROM tab1 cor0
----
1104

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NULL >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT DISTINCT CAST( - + AVG ( ( - 72 ) ) AS SIGNED ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT CAST ( - + AVG ( ( - 72 ) ) AS INTEGER ) FROM tab2 AS cor0
----
72

query II rowsort
SELECT - + 27 AS col2, col2 FROM tab2 AS cor0
----
-27
23
-27
40
-27
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT DISTINCT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col0 + - - col0 - + col2 AS col1, - 75 * 14 FROM tab0 WHERE - col1 >= + col1 / 66 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT SUM( ALL + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5271
SELECT SUM ( ALL + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-5272
SELECT col2 col0, col2 DIV - col1 AS col1 FROM tab1
----
59
-11
68
-1
96
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5272
SELECT col2 col0, col2 / - col1 AS col1 FROM tab1
----
59
-11
68
-1
96
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT ( + MAX( DISTINCT - 96 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT ( + MAX ( DISTINCT - 96 ) ) FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT DISTINCT ( + col2 ) * 42 DIV - col0 AS col2 FROM tab2
----
-21
-26
-32

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT ( + col2 ) * 42 / - col0 AS col2 FROM tab2
----
-21
-26
-32

query I rowsort
SELECT DISTINCT + + 19 + - col2 AS col2 FROM tab0 cor0
----
-28
-80
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL + ( + ( + SUM( ALL - col0 ) ) ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + ( + ( + SUM ( ALL - col0 ) ) ) FROM tab1 cor0
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT + + col2 + - ( + 30 ) DIV 37 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5277
SELECT + + col2 + - ( + 30 ) / 37 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( col1 IS NULL )
----
59
68
96

query I rowsort
SELECT ALL + col2 + 80 FROM tab1
----
139
148
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT COUNT( * ) col1 FROM tab2 WHERE + col0 > + col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5280
SELECT COUNT ( * ) col1 FROM tab2 WHERE + col0 > + col2
----
3

query I rowsort
SELECT ALL col2 * + + 66 FROM tab2
----
1518
2640
3828

query II rowsort
SELECT ALL col0 AS col1, col1 * ( + + 71 ) FROM tab1
----
51
994
85
355
91
3337

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + - col1 * col0 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 + - col1 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 33 ) NOT BETWEEN - 98 AND 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT - 76 + - col2 NOT BETWEEN col2 * col1 + 84 AND + 13
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 76 + - col2 NOT BETWEEN col2 * col1 + 84 AND + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - SUM( ALL + col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5287
SELECT - SUM ( ALL + col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT DISTINCT col2 * col2 + - col1 * 82 FROM tab2
----
-2130
-3653
-4714

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL MAX( col2 ) + - COUNT( * ) col1 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5289
SELECT ALL MAX ( col2 ) + - COUNT ( * ) col1 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + COUNT( * ) - 75 * 22 AS col2 FROM tab2
----
-1647

skipif mysql # not compatible
query I rowsort label-5290
SELECT + COUNT ( * ) - 75 * 22 AS col2 FROM tab2
----
-1647

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT col1 - - CAST( - ( 43 ) AS SIGNED ) FROM tab2
----
24
34
8

skipif mysql # not compatible
query I rowsort label-5292
SELECT col1 - - CAST ( - ( 43 ) AS INTEGER ) FROM tab2
----
24
34
8

query I rowsort
SELECT ALL col1 * - col1 + col0 AS col0 FROM tab2 WHERE NOT 99 * col1 NOT BETWEEN col0 AND 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - MAX( 86 ) AS col1 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-5294
SELECT - MAX ( 86 ) AS col1 FROM tab1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 WHERE 1 <= ( + 83 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 WHERE 1 <= ( + 83 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT 63 + ( + COUNT( * ) ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-5296
SELECT 63 + ( + COUNT ( * ) ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5297
SELECT DISTINCT * FROM tab2 WHERE ( col0 / + ( - CAST( + col2 AS SIGNED ) * - col2 ) ) < + 78 + 4 * - 28
----

skipif mysql # not compatible
query III rowsort label-5297
SELECT DISTINCT * FROM tab2 WHERE ( col0 / + ( - CAST ( + col2 AS INTEGER ) * - col2 ) ) < + 78 + 4 * - 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL - col0 * col0 - ( - ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - col0 * col0 - ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 71 * col1 + + col0 * - ( col1 + + 6 ) AS col0 FROM tab1
----
-1486
-26
-580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + 21 + 63 FROM tab1
----
-1008
-1722
-1848

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + 21 + 63 FROM tab1
----
-1008
-1722
-1848

query I rowsort
SELECT ALL - col2 * - 85 + + 43 AS col2 FROM tab1
----
5058
5823
8203

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 56 NOT BETWEEN ( col0 / col2 ) AND NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col0 * + 7 <= ( - col1 )
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT ALL + col2 + 60 DIV 91 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + col2 + 60 / 91 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL ( 38 ) AS col0 FROM tab2 WHERE col0 NOT IN ( + col1 )
----
38
38
38

query I rowsort
SELECT - ( + col2 ) + 61 FROM tab1
----
-35
-7
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT col0 + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-5307
SELECT col0 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 WHERE + 6 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT DISTINCT + MAX( + CAST( NULL AS SIGNED ) ) + 39 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) + 39 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - ( - 32 ) AS col0 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT DISTINCT - 90 * + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5311
SELECT DISTINCT - 90 * + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 90 * + col1 AS col2 FROM tab2 AS cor0 WHERE col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col0 FROM tab1 AS cor0
----
55

query III rowsort
SELECT * FROM tab1 cor0 WHERE 48 <= ( - 34 )
----

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab0 WHERE NOT col2 * col1 IN ( 61 + col1 )
----
100
2209
9801

query I rowsort
SELECT 33 + 3 FROM tab1 WHERE NULL IN ( - ( - 68 ) * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT + CAST( NULL AS SIGNED ) * col1 + + 39 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT + CAST ( NULL AS INTEGER ) * col1 + + 39 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN - col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN - col0 AND ( NULL )
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IN ( 66 )
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE ( - 28 ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT 3 + - col1 * col0 FROM tab2
----
-2343
-4925
-5022

query I rowsort
SELECT ALL + col1 + - 99 AS col0 FROM tab2 cor0
----
-22
-32
-48

query I rowsort
SELECT 18 * col2 + col1 AS col0 FROM tab1 AS cor0
----
1067
1271
1742

query I rowsort
SELECT - col2 * + col1 + - col1 FROM tab2 AS cor0 WHERE - col1 * + 95 <= + col2 * 39
----
-1224
-3157
-3953

query I rowsort
SELECT DISTINCT - + col2 + + 50 AS col0 FROM tab1 AS cor0
----
-18
-46
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT - - 95 - + MAX( ALL col0 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - - 95 - + MAX ( ALL col0 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - + 97 - 31 FROM tab0 AS cor0
----
-128

query I rowsort
SELECT DISTINCT - col0 + + 86 AS col1 FROM tab0 AS cor0
----
-1
-11
71

query I rowsort
SELECT DISTINCT + 45 * 65 FROM tab1 AS cor0
----
2925

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5331
SELECT ALL + COUNT( * ) * - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - + 36 AS col1 FROM tab1
----
23
32
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL - MIN( 75 ) * 13 - - COUNT( * ) FROM tab0
----
-972

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - MIN ( 75 ) * 13 - - COUNT ( * ) FROM tab0
----
-972

query III rowsort
SELECT * FROM tab1 WHERE ( 95 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT DISTINCT 18 DIV 29 + col1 FROM tab1 WHERE NOT ( 41 ) <= - col2
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT 18 / 29 + col1 FROM tab1 WHERE NOT ( 41 ) <= - col2
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( - 56 * 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - + MAX( - 99 ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5338
SELECT - + MAX ( - 99 ) AS col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE 7 * - ( - 20 ) + col1 IS NULL
----

query I rowsort
SELECT ALL + ( - - 52 ) FROM tab0 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT + - COUNT( * ) * + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5341
SELECT + - COUNT ( * ) * + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT + ( - CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5342
SELECT + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT DISTINCT - col1 DIV 76 DIV 57 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT - col1 / 76 / 57 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 31 / 44 FROM tab2 AS cor0 WHERE NOT - col0 + 7 <= + 60
----

query I rowsort
SELECT ALL - 92 * - col2 AS col2 FROM tab2
----
2116
3680
5336

query I rowsort
SELECT ALL 94 - - 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e2d56a39621064cf4b6c94794ecedaba

query I rowsort
SELECT DISTINCT - 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT + col0 * col1 DIV - + col1 col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5348
SELECT + col0 * col1 / - + col1 col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5349
SELECT ALL COUNT( * ) AS col2, + 16 FROM tab0
----
3
16

skipif mysql # not compatible
query II rowsort label-5349
SELECT ALL COUNT ( * ) AS col2, + 16 FROM tab0
----
3
16

query I rowsort
SELECT DISTINCT 76 * - + 80 FROM tab2
----
-6080

query I rowsort
SELECT - + col2 * col1 + - col2 + 57 * col1 FROM tab2 AS cor0
----
-125
1269
1711

query I rowsort
SELECT + col0 * - + 85 AS col2 FROM tab2 AS cor0
----
-3910
-5440
-6375

query II rowsort
SELECT DISTINCT - 68 AS col2, + col1 * + ( 41 ) AS col2 FROM tab0 AS cor0
----
-68
3321
-68
41
-68
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - + col2 col0 FROM tab0 cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + 38 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + 38 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
41

query I rowsort
SELECT ALL + 0 * - - col0 + + col0 AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ( MIN( ALL + 24 ) ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5357
SELECT ( MIN ( ALL + 24 ) ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5358
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 76 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 NOT BETWEEN col0 AND 26 + + 3
----

query I rowsort
SELECT ALL - + col2 * - ( 41 ) - col2 FROM tab1 AS cor0 WHERE NOT + 28 IS NULL
----
2360
2720
3840

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col2 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5363
SELECT CAST( + + col2 AS SIGNED ) col1, + col2 FROM tab1
----
59
59
68
68
96
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5363
SELECT CAST ( + + col2 AS INTEGER ) col1, + col2 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab2 WHERE NOT + 34 * ( - col0 ) * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT MIN( - CAST( + 18 AS SIGNED ) ) FROM tab1 WHERE NOT NULL IN ( + 41 + + col0 - - col0 * 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT MIN ( - CAST ( + 18 AS INTEGER ) ) FROM tab1 WHERE NOT NULL IN ( + 41 + + col0 - - col0 * 41 )
----
NULL

query I rowsort
SELECT + col2 * - + col0 + - col1 + + ( + col1 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ( 1 ) * - ( + + col2 ) * - col2 + + col0 FROM tab2
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT + MIN( + ( 12 ) ) + + 84 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT + MIN ( + ( 12 ) ) + + 84 FROM tab2 AS cor0
----
96

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1 AS cor0 WHERE col1 * + col0 * - + col0 + col0 BETWEEN NULL AND - 13
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( ( - - col1 ) IN ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT ALL + 36 DIV col0 - + col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + 36 / col0 - + col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + col2 * - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - SUM( + + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5373
SELECT - SUM ( + + col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT - col1 + 96 FROM tab0 AS cor0
----
15
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT COUNT( * ) - - - 56 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5375
SELECT COUNT ( * ) - - - 56 FROM tab1 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL - - CAST( NULL AS SIGNED ) + - - col1 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - - CAST ( NULL AS INTEGER ) + - - col1 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - AVG ( 39 ) * COUNT( * ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + - col1 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT - AVG ( 39 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + - col1 AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT DISTINCT - 58 DIV - + COUNT( * ) + - - COUNT( * ) + - 77 * SUM( col1 ) * 7 AS col2 FROM tab1 AS cor0
----
-35552

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - 58 / - + COUNT ( * ) + - - COUNT ( * ) + - 77 * SUM ( col1 ) * 7 AS col2 FROM tab1 AS cor0
----
-35552

query I rowsort
SELECT DISTINCT - col0 - + + col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT - + 37 + - col0 + + - col2 AS col1 FROM tab0 cor0
----
-134
-233
-99

query I rowsort
SELECT ALL + + 29 + col1 FROM tab0 cor0
----
110
30
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL + COUNT( * ) col0 FROM tab0 cor0 WHERE ( + 71 * CAST( - + col1 AS SIGNED ) ) = ( col0 + 22 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5382
SELECT ALL + COUNT ( * ) col0 FROM tab0 cor0 WHERE ( + 71 * CAST ( - + col1 AS INTEGER ) ) = ( col0 + 22 )
----
0

query I rowsort
SELECT DISTINCT - col1 - + - col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + + col2 + + - col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + 48 AS col1 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
48
48
48

query I rowsort
SELECT ALL col2 - - + 60 FROM tab2
----
100
118
83

query I rowsort
SELECT - 40 + 67 FROM tab0
----
27
27
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5388
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - col1 AS col1 FROM tab2 WHERE - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT - CAST ( NULL AS REAL ) - col1 AS col1 FROM tab2 WHERE - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + 21 AS col1, col0 AS col2 FROM tab1
----
21
51
21
85
21
91

query II rowsort
SELECT - col1 AS col2, + col2 + + col0 + + col0 FROM tab2
----
-51
115
-67
208
-77
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL SUM( DISTINCT - - 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL SUM ( DISTINCT - - 33 ) FROM tab1
----
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 * 26 / col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 4 * col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * + + ( + 13 ) AS col1 FROM tab2
----
598
832
975

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 * - col0 + - 34 * - col2 / col2 < - col2 / col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT ALL + COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5396
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT - - CAST( + + 29 AS SIGNED ) * 68 + + col2 FROM tab2 WHERE NOT - - 27 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5397
SELECT - - CAST ( + + 29 AS INTEGER ) * 68 + + col2 FROM tab2 WHERE NOT - - 27 IS NOT NULL
----

query II rowsort
SELECT ALL col0 * + 34 AS col2, col1 * - col1 AS col1 FROM tab1 AS cor0
----
1734
-196
2890
-25
3094
-2209

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 96 BETWEEN ( col2 ) AND NULL
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT ALL + COUNT( * ) DIV + + 26 * + COUNT( * ) * - 58 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + COUNT ( * ) / + + 26 * + COUNT ( * ) * - 58 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL col1 * - col1 / col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 col1 FROM tab0 AS cor0
----
-13

query II rowsort
SELECT - col0 + - 10 AS col0, 66 AS col0 FROM tab0 AS cor0
----
-107
66
-25
66
-97
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT + + col2 DIV ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT + + col2 / ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT + col2 + + 18 * col2 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + col0 * - col1 * col1 ) )
----

query I rowsort
SELECT ALL 5 * + col1 * + - col0 * + col1 AS col0 FROM tab2
----
-1683375
-1897280
-598230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE ( + + 91 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col2 + - + col0 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col2, col1 * - - col2 * - col0 FROM tab0
----
1
-9603
21
-18270
81
-57105

query I rowsort
SELECT ALL ( + + 7 ) FROM tab0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT ALL - - 65 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - col0 AND - CAST( - ( - 22 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL - - 65 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - col0 AND - CAST ( - ( - 22 ) AS INTEGER )
----

query I rowsort
SELECT + + 90 + 16 AS col1 FROM tab0 WHERE + col1 = + + 8 * + - col1 - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 = 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + 37 FROM tab1 WHERE NULL IS NULL
----
37
37
37

query I rowsort
SELECT ALL col1 * + col1 * col0 AS col2 FROM tab2
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 59 - - 74 AS col0, col1 col2 FROM tab0 AS cor0
----
15
1
15
21
15
81

query I rowsort
SELECT DISTINCT 56 + - + col0 FROM tab0 AS cor0
----
-31
-41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT - + SUM( ALL - + 53 ) AS col2 FROM tab2 AS cor0 WHERE + col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - + SUM ( ALL - + 53 ) AS col2 FROM tab2 AS cor0 WHERE + col0 >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 82 / + + col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT 1 * + COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5424
SELECT 1 * + COUNT ( * ) col0 FROM tab1
----
3

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col1 * + + 44 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND 10
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN 44 AND col2 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * + 87 col0 FROM tab2 AS cor0
----
4524
4524
4524

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col2 col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT DISTINCT - 81 + + - col0 * col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-1526
-257
-266

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT - 81 + + - col0 * col0 / col1 AS col1 FROM tab1 AS cor0
----
-1526
-257
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT - SUM( ( 26 ) ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5433
SELECT - SUM ( ( 26 ) ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 24 * + ( + col0 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL + COUNT( * ) * 82 FROM tab2 WHERE NOT col2 + + + 67 IS NULL
----
246

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + COUNT ( * ) * 82 FROM tab2 WHERE NOT col2 + + + 67 IS NULL
----
246

query I rowsort
SELECT DISTINCT col0 * + 40 FROM tab2 WHERE NOT - 78 >= + 38
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT MAX( ALL - col0 ) + 86 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-5438
SELECT MAX ( ALL - col0 ) + 86 FROM tab0
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-5439
SELECT 33 + 60 AS col1, 84 DIV - ( 64 ) + col0 FROM tab1
----
93
50
93
84
93
90

skipif mysql # not compatible
query II rowsort label-5439
SELECT 33 + 60 AS col1, 84 / - ( 64 ) + col0 FROM tab1
----
93
50
93
84
93
90

query III rowsort
SELECT * FROM tab2 WHERE + - 45 NOT BETWEEN - - col0 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 NOT BETWEEN + + 20 AND col0 * + 14 )
----
15
81
47

query II rowsort
SELECT DISTINCT 53 + 16, col2 FROM tab2
----
69
23
69
40
69
58

query II rowsort
SELECT 40 + + + 0, col1 FROM tab2
----
40
51
40
67
40
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL + CAST( NULL AS SIGNED ) * SUM( DISTINCT 5 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT 5 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * + - 62 FROM tab0
----
-5394
-6014
-930

query I rowsort
SELECT col0 + - 20 FROM tab1
----
31
65
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - 54 + COUNT( * ) AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5447
SELECT - 54 + COUNT ( * ) AS col0 FROM tab0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - 27 - + COUNT( * ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-5448
SELECT - 27 - + COUNT ( * ) FROM tab2
----
-30

query I rowsort
SELECT + 94 - + col1 FROM tab0
----
13
73
93

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 57 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT COUNT( * ), COUNT( + 95 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-5451
SELECT COUNT ( * ), COUNT ( + 95 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL - + COUNT( DISTINCT - 86 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - + COUNT ( DISTINCT - 86 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL MIN( + - 70 ) AS col0 FROM tab1 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL MIN ( + - 70 ) AS col0 FROM tab1 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT + - MIN( - - ( col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT + - MIN ( - - ( col0 ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + 25 * 24 FROM tab0
----
600
600
600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5458
SELECT ALL CAST( + col0 AS SIGNED ) AS col1, - col0 AS col0 FROM tab0
----
15
-15
87
-87
97
-97

skipif mysql # not compatible
query II rowsort label-5458
SELECT ALL CAST ( + col0 AS INTEGER ) AS col1, - col0 AS col0 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5459
SELECT ALL CAST( col1 AS SIGNED ) AS col0, - col0 FROM tab1
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-5459
SELECT ALL CAST ( col1 AS INTEGER ) AS col0, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT + 63 DIV - col1 - + ( col0 ) col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-47
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT + 63 / - col1 - + ( col0 ) col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-47
-64
-75

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

query I rowsort
SELECT 77 * col1 AS col0 FROM tab2
----
3927
5159
5929

query I rowsort
SELECT - ( - 63 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - col2 + - + 9 FROM tab2
----
-32
-49
-67

query I rowsort
SELECT DISTINCT 41 + - 76 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL - + COUNT( * ) + + COUNT( * ) + + 70 AS col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) + + 70 AS col2 FROM tab2 AS cor0
----
70

query I rowsort
SELECT DISTINCT + 28 + - + 83 AS col0 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5469
SELECT DISTINCT - 13 + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - 13 + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT - col1 + 83 * - - 64 FROM tab2 cor0
----
5235
5245
5261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 + - - 68 col1 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT ALL 9 * - col0 + + col1 AS col2 FROM tab0 AS cor0
----
-54
-762
-872

query I rowsort
SELECT col0 * - + col1 * + 98 FROM tab1
----
-41650
-419146
-69972

query I rowsort
SELECT - 85 AS col2 FROM tab0 WHERE - col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col0 ) NOT IN ( + col1 + - col2 * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + + 42 ) = NULL
----

query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT - col2 * + + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 = - - col2
----
3

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 = - - col2
----
3

query I rowsort
SELECT - 3 + - col1 FROM tab1 WHERE NULL IS NULL
----
-17
-50
-8

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT 75 + - - 43 + - ( + + col1 ) * - + col0 AS col0 FROM tab2 AS cor0
----
2464
5046
5143

query I rowsort
SELECT + 55 + ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1289
-240
-3141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5484
SELECT - col0 * - CAST( NULL AS DECIMAL ) + - col0 AS col2 FROM tab2 WHERE + - col2 < - - 19
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT - col0 * - CAST ( NULL AS REAL ) + - col0 AS col2 FROM tab2 WHERE + - col2 < - - 19
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 - + - col0 * + col2 + - col0 AS col2 FROM tab1
----
4831
4925
6050

query I rowsort
SELECT DISTINCT - - 84 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT ALL MAX( + + CAST( NULL AS SIGNED ) ) * COUNT( DISTINCT - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL MAX ( + + CAST ( NULL AS INTEGER ) ) * COUNT ( DISTINCT - col1 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( + + 44 ) AS col0 FROM tab0 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5489
SELECT - MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ( - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + - 66 col1 FROM tab1 AS cor0
----
-3102
-330
-924

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE - 84 + + 39 NOT IN ( + + 33, 58 + + 61, col0 * col1 - - 79 * + 20 + + col1, col0, 37 )
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - - col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT SUM( - 41 ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT SUM ( - 41 ) FROM tab2
----
-123

query I rowsort
SELECT - 58 * - col0 FROM tab1
----
2958
4930
5278

query I rowsort
SELECT - - 70 + + - 45 + - col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - col1 NOT IN ( - - col2, 93, + col1 )
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( + 85 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT + MIN( ALL - - col0 ) * + 29 + + COUNT( * ) FROM tab0
----
438

skipif mysql # not compatible
query I rowsort label-5500
SELECT + MIN ( ALL - - col0 ) * + 29 + + COUNT ( * ) FROM tab0
----
438

query I rowsort
SELECT + 57 * - 17 FROM tab2 AS cor0
----
-969
-969
-969

query I rowsort
SELECT - col0 * + + 44 FROM tab2 cor0
----
-2024
-2816
-3300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5503
SELECT ALL + + col0 DIV - CAST( - 99 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + + col0 / - CAST ( - 99 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col0 + + + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT 25 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
48

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 49 * 37 + + col2 FROM tab1 AS cor0
----
-1717
-1745
-1754

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 31 * ( + + 17 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 - col0 AS col2, col2 - + - 31 AS col1 FROM tab2 AS cor0
----
0
54
0
71
0
89

query I rowsort
SELECT DISTINCT 78 * - col1 + + col0 AS col1 FROM tab1 cor0
----
-1041
-305
-3575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT ALL 94 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
4324
6016
7050

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL 94 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
4324
6016
7050

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT - col1 + - - col2 DIV - col2 + + ( - col0 ) AS col1 FROM tab1
----
-139
-66
-91

skipif mysql # not compatible
query I rowsort label-5513
SELECT - col1 + - - col2 / - col2 + + ( - col0 ) AS col1 FROM tab1
----
-139
-66
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT MAX( ALL col2 ) + - + 19 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-5514
SELECT MAX ( ALL col2 ) + - + 19 FROM tab0
----
80

query I rowsort
SELECT + col1 * + col0 + col0 + - col1 FROM tab1
----
4321
505
751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT col1 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT col1 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col0 + col0 * - col2 FROM tab2
----
1058
1275
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT - SUM( DISTINCT - + col1 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - SUM ( DISTINCT - + col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT + col0 DIV col2 * - - col1 AS col0 FROM tab2
----
102
67
77

skipif mysql # not compatible
query I rowsort label-5519
SELECT + col0 / col2 * - - col1 AS col0 FROM tab2
----
102
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL COUNT( * ) * + COUNT( * ) + - + 34 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL COUNT ( * ) * + COUNT ( * ) + - + 34 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( + + col0 ) AS col2 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 79 * + col1 AS col2 FROM tab0 AS cor0
----
1659
6399
79

query II rowsort
SELECT ALL + - col0, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5525
SELECT ALL + CAST( - MAX( DISTINCT 40 ) AS SIGNED ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + CAST ( - MAX ( DISTINCT 40 ) AS INTEGER ) FROM tab1 AS cor0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT DISTINCT - + 72 DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT - + 72 / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-24

query II rowsort
SELECT col2 AS col2, - 29 AS col1 FROM tab2 AS cor0
----
23
-29
40
-29
58
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5528
SELECT DISTINCT - SUM( + + col0 ) DIV - 81 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - SUM ( + + col0 ) / - 81 FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT - COUNT( * ) DIV SUM( ALL col1 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5529
SELECT - COUNT ( * ) / SUM ( ALL col1 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( ( - 77 ) ) FROM tab2
----
77
77
77

query I rowsort
SELECT ALL - 72 FROM tab1 WHERE - 94 IS NOT NULL
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT - 67 * - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT - 67 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + col2 + - col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT + 22 * 19 * - 28 * col2 AS col1 FROM tab2
----
-269192
-468160
-678832

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT + 19 + + COUNT( * ) AS col2 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + 19 + + COUNT ( * ) AS col2 FROM tab1 cor0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5538
SELECT ALL + + COUNT( * ) DIV - 2, + 4 + + COUNT( * ) col2 FROM tab2 AS cor0
----
-1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5538
SELECT ALL + + COUNT ( * ) / - 2, + 4 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
-1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT + + MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + + MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + 17 + col1 FROM tab2
----
68
84
94

query I rowsort
SELECT - col0 + - - col1 AS col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT + + col1 + + - col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL + 59 - + + col0 AS col0 FROM tab2 AS cor0
----
-16
-5
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT COUNT( * ) + + - 53 AS col2 FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT COUNT ( * ) + + - 53 AS col2 FROM tab0 cor0
----
-50

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - ( + - col0 )
----

query II rowsort
SELECT ALL + col2 + ( + - col1 ) AS col1, 68 FROM tab2 AS cor0
----
-28
68
-37
68
-9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL + COUNT( - 42 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + COUNT ( - 42 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * + col1 * + col2 + col0 * - + col0 + - - col2 FROM tab1 AS cor0
----
-5691
141999
16311

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 94 IN ( + - 85 + - col1, + col0, - col1, + col2 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5550
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT CAST( + + 44 AS SIGNED ) AS col1 FROM tab2
----
44
44
44

skipif mysql # not compatible
query I rowsort label-5551
SELECT CAST ( + + 44 AS INTEGER ) AS col1 FROM tab2
----
44
44
44

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 < 7 + col2 + + col1 * + - 61 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT 76 - 26 DIV - COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5553
SELECT 76 - 26 / - COUNT ( * ) FROM tab1
----
84

query I rowsort
SELECT ALL - 91 * - ( - col1 ) + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-4618
-6039
-6967

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ( - COUNT( * ) ) - + - 27 * COUNT( * ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5555
SELECT ( - COUNT ( * ) ) - + - 27 * COUNT ( * ) AS col2 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT + ( MIN( DISTINCT - 55 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-55

skipif mysql # not compatible
query I rowsort label-5556
SELECT + ( MIN ( DISTINCT - 55 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL + 41 + COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 * + - col1 + + col0 + - ( + + col2 ) * col1 / col1 IS NOT NULL
----
41

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + 41 + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 * + - col1 + + col0 + - ( + + col2 ) * col1 / col1 IS NOT NULL
----
41

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND + col1
----

query I rowsort
SELECT DISTINCT - - 76 FROM tab0 cor0
----
76

query I rowsort
SELECT ALL - + 81 AS col2 FROM tab0 AS cor0
----
-81
-81
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 65 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * + ( - col0 ) col0 FROM tab2 AS cor0
----
2438
3392
3975

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT DISTINCT + + 94 DIV 40 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT + + 94 / 40 FROM tab1 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT + - 1 DIV - - ( - col0 ) + + col2 * + col1 * + col1