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 DIV - - col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT + - 1 / - - ( - col0 ) + + col2 * + col1 * + col1 / - - col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - - 53 * + col2 FROM tab0 AS cor0
----
2491
5247
530

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col1 FROM tab1 WHERE NOT NULL = NULL
----

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

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

query I rowsort
SELECT 75 + - + col1 AS col0 FROM tab1
----
28
61
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT 93 + MIN( DISTINCT col0 ) + + COUNT( * ) FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-5571
SELECT 93 + MIN ( DISTINCT col0 ) + + COUNT ( * ) FROM tab2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT + col0 DIV + - ( + + col0 ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT DISTINCT + col0 / + - ( + + col0 ) col2 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 cor0 WHERE NOT - 54 + - + ( + - col2 ) * + 87 > + ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT ALL + + 45 * col2 DIV - 87 FROM tab2 AS cor0
----
-11
-20
-30

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + + 45 * col2 / - 87 FROM tab2 AS cor0
----
-11
-20
-30

query I rowsort
SELECT DISTINCT - + col1 + + 67 AS col2 FROM tab2 AS cor0
----
-10
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT DISTINCT - COUNT( DISTINCT + 30 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT - COUNT ( DISTINCT + 30 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 59 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 59 = NULL
----
0

query I rowsort
SELECT - col1 * - 15 AS col1 FROM tab2
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + 0 - + 15 * - + 90 * + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12150

skipif mysql # not compatible
query I rowsort label-5580
SELECT + 0 - + 15 * - + 90 * + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12150

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT DISTINCT col0 DIV - col2 + - col0 + - 72 AS col2 FROM tab0
----
-167
-169
-87

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT col0 / - col2 + - col0 + - 72 AS col2 FROM tab0
----
-167
-169
-87

query II rowsort
SELECT ALL - - col1 + col2 * col1, + 56 AS col2 FROM tab1 AS cor0
----
1358
56
300
56
3243
56

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + col2 * - 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + - 12 col1 FROM tab0 cor0
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-5585
SELECT DISTINCT col0 DIV + + col1 + - col2, col1 AS col2 FROM tab0 cor0
----
-2
1
-47
81
-6
21

skipif mysql # not compatible
query II rowsort label-5585
SELECT DISTINCT col0 / + + col1 + - col2, col1 AS col2 FROM tab0 cor0
----
-2
1
-47
81
-6
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 65 col0 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT + + col2 * + - col0 * + - col2 + col2 + col1 FROM tab2 AS cor0
----
102517
24408
252425

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

query I rowsort
SELECT DISTINCT col2 - - col1 + - col0 - col1 FROM tab1
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - - 48 + + + col1 * - + 72 col0 FROM tab0
----
-119
-1539
-5799

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT col1 DIV - 19 col0 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5592
SELECT col1 / - 19 col0 FROM tab2
----
-2
-3
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT ALL + col0 DIV + 52 - 57 AS col1 FROM tab0 AS cor0
----
-56
-56
-57

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + col0 / + 52 - 57 AS col1 FROM tab0 AS cor0
----
-56
-56
-57

query II rowsort
SELECT ALL 22, col1 + - + ( col0 ) AS col2 FROM tab0 cor0
----
22
-66
22
-96
22
66

query II rowsort
SELECT ALL - col2 AS col0, + col0 * - + col1 AS col2 FROM tab0 cor0
----
-10
-1827
-47
-1215
-99
-97

query III rowsort
SELECT DISTINCT - + col2 AS col0, 88 * - col0 * - 56 AS col0, + + col0 AS col2 FROM tab0 AS cor0
----
9 values hashing to cc54d94ac222650a1d2b7dba64aad911

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 / + 13 / + 63
----
0

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 / + 13 / + 63
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT ALL CAST( - 30 AS SIGNED ) * - 8 AS col1 FROM tab0 AS cor0
----
240
240
240

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL CAST ( - 30 AS INTEGER ) * - 8 AS col1 FROM tab0 AS cor0
----
240
240
240

query I rowsort
SELECT 78 + - + 76 * - + col2 + - col2 FROM tab2 AS cor0
----
1803
3078
4428

query I rowsort
SELECT + col1 * 77 * - - 56 AS col0 FROM tab2
----
219912
288904
332024

query I rowsort
SELECT ALL + 78 * + - 90 AS col2 FROM tab1
----
-7020
-7020
-7020

query I rowsort
SELECT 51 FROM tab2, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 45 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT + 30 AS col2 FROM tab1 WHERE NULL BETWEEN col1 AND - 56 / - 97 + + CAST( + 66 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5610
SELECT + 30 AS col2 FROM tab1 WHERE NULL BETWEEN col1 AND - 56 / - 97 + + CAST ( + 66 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL 94 + + + 85 * - - COUNT( * ) col1 FROM tab1 AS cor0
----
349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT ALL 94 + + + 85 * - - COUNT ( * ) col1 FROM tab1 AS cor0
----
349

query I rowsort
SELECT DISTINCT - col1 * + 85 FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + - col1 * + 59 - col1 AS col0 FROM tab0 AS cor0
----
-1260
-4860
-60

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

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

query I rowsort
SELECT - col2 + 17 FROM tab0
----
-30
-82
7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 * + - 66 col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3e46e1aad14dbd6302c5188d91226327

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

query II rowsort
SELECT - col2 AS col2, col1 - col2 FROM tab0 AS cor0
----
-10
11
-47
34
-99
-98

query I rowsort
SELECT ALL + col2 + - 60 AS col1 FROM tab0 AS cor0
----
-13
-50
39

query II rowsort
SELECT + - col1 AS col0, 89 * + 43 - col2 FROM tab2 cor0
----
-51
3804
-67
3769
-77
3787

query II rowsort
SELECT DISTINCT col1 + - + 93, - 36 AS col0 FROM tab2 AS cor0
----
-16
-36
-26
-36
-42
-36

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

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

query I rowsort
SELECT DISTINCT - 11 - col0 AS col2 FROM tab0 AS cor0
----
-108
-26
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( + 15, - 90 + + col1 - + + col2 * - + 91, - - 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT col0 DIV col1 - + - 35 AS col1 FROM tab0 AS cor0
----
132
35
39

skipif mysql # not compatible
query I rowsort label-5626
SELECT col0 / col1 - + - 35 AS col1 FROM tab0 AS cor0
----
132
35
39

query I rowsort
SELECT 19 - - col0 AS col2 FROM tab1 AS cor0
----
104
110
70

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

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

query I rowsort
SELECT col0 * - - col1 - + 19 + - col0 AS col1 FROM tab1
----
321
4167
644

query II rowsort
SELECT DISTINCT + col2 * + + 71, col2 FROM tab0
----
3337
47
7029
99
710
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT MIN( ALL + col2 ) + - 65 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT MIN ( ALL + col2 ) + - 65 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-5633
SELECT + COUNT ( * ) / - ( 61 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT ALL + col2 DIV 17 DIV - + 48 * + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + col2 / 17 / - + 48 * + col2 AS col0 FROM tab2
----
0
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5636
SELECT + + MAX ( - 71 ) FROM tab1 AS cor0
----
-71

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2 / + 20 * 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT - col0 DIV + col1 + + 56 * - col1 * - + ( + col0 ) FROM tab0 AS cor0
----
102308
5335
68040

skipif mysql # not compatible
query I rowsort label-5640
SELECT - col0 / + col1 + + 56 * - col1 * - + ( + col0 ) FROM tab0 AS cor0
----
102308
5335
68040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col2 col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT ALL - 57 + + SUM( ALL + - 46 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-471

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL - 57 + + SUM ( ALL + - 46 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-471

query I rowsort
SELECT - + 29 FROM tab0 AS cor0 WHERE NOT col2 * + 14 + - - 13 > - - col1 + - col0 * + + col2 + col1 * + + col0 * - col2 * - col1
----
-29
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5646
SELECT + SUM( - col1 ) DIV + COUNT( * ) col1 FROM tab2 AS cor0
----
-65

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 26 * + + col0 IS NOT NULL
----

query I rowsort
SELECT + 23 + - - col1 * - 20 FROM tab0
----
-1597
-397
3

query III rowsort
SELECT * FROM tab1 WHERE NULL = - + 52 * col1 + col0
----

query I rowsort
SELECT DISTINCT col2 * - col1 * + 7 FROM tab2
----
-21560
-27202
-8211

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

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

query I rowsort
SELECT col0 + + - 7 + + col2 - 67 - - + col1 * + col0 * col2 FROM tab1
----
25145
290921
68617

query I rowsort
SELECT - col2 + col2 + + ( + - col1 ) FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 10 + - 67 FROM tab1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5656
SELECT CAST( NULL AS SIGNED ) + + 24, col0 + 41 + col0 AS col1 FROM tab0
----
NULL
215
NULL
235
NULL
71

skipif mysql # not compatible
query II rowsort label-5656
SELECT CAST ( NULL AS INTEGER ) + + 24, col0 + 41 + col0 AS col1 FROM tab0
----
NULL
215
NULL
235
NULL
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT + col0 + - 80 DIV + col0 + + col1 - + - 18 AS col2 FROM tab1
----
108
156
82

skipif mysql # not compatible
query I rowsort label-5657
SELECT + col0 + - 80 / + col0 + + col1 - + - 18 AS col2 FROM tab1
----
108
156
82

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

query I rowsort
SELECT DISTINCT + 88 - + col0 + - + 67 FROM tab1 cor0
----
-30
-64
-70

query I rowsort
SELECT DISTINCT - 70 FROM tab2 cor0
----
-70

query I rowsort
SELECT - 99 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT + col1 * - - col0 - 56 * 37 AS col0 FROM tab1 AS cor0
----
-1358
-1647
2205

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT DISTINCT - 84 DIV + col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - 84 / + col0 FROM tab0
----
-5
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5666
SELECT col1 AS col2, 22 DIV + col2 FROM tab0
----
1
0
21
2
81
0

skipif mysql # not compatible
query II rowsort label-5666
SELECT col1 AS col2, 22 / + col2 FROM tab0
----
1
0
21
2
81
0

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

query I rowsort
SELECT ALL + col0 * - col1 * col0 * col2 AS col0 FROM tab2
----
-12615680
-21858750
-2482068

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT - MIN( DISTINCT - + col1 ) col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5669
SELECT - MIN ( DISTINCT - + col1 ) col2 FROM tab2
----
77

query II rowsort
SELECT ALL 23, col1 AS col1 FROM tab0
----
23
1
23
21
23
81

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

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

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

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

query II rowsort
SELECT ALL - - col2 AS col1, - ( col2 ) AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT + + col1 DIV ( 71 ) FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5675
SELECT + + col1 / ( 71 ) FROM tab2 AS cor0
----
0
0
1

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5678
SELECT ALL ( - CAST ( NULL AS INTEGER ) ), - col1 col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

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

query I rowsort
SELECT - + 70 + + 53 + col2 FROM tab2 AS cor0
----
23
41
6

query I rowsort
SELECT ALL 82 FROM tab1 cor0
----
82
82
82

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 49 + col0 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT + + 16 + + - COUNT( * ) * + 21 AS col2 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5685
SELECT + + 16 + + - COUNT ( * ) * + 21 AS col2 FROM tab0 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + ( 68 ) col0 FROM tab1 cor0
----
-4012
-4624
-6528

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5688
SELECT col2 DIV - CAST( + - col2 AS SIGNED ) AS col1, + col0 - + 67 FROM tab0
----
1
-52
1
20
1
30

skipif mysql # not compatible
query II rowsort label-5688
SELECT col2 / - CAST ( + - col2 AS INTEGER ) AS col1, + col0 - + 67 FROM tab0
----
1
-52
1
20
1
30

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

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

query I rowsort
SELECT - 80 * 26 AS col2 FROM tab2
----
-2080
-2080
-2080

onlyif mysql # aggregate syntax: 
query II rowsort label-5691
SELECT DISTINCT 7 AS col0, + 48 + - COUNT( * ) FROM tab0
----
7
45

skipif mysql # not compatible
query II rowsort label-5691
SELECT DISTINCT 7 AS col0, + 48 + - COUNT ( * ) FROM tab0
----
7
45

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5693
SELECT - CAST ( + col2 AS INTEGER ) col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL ( - + COUNT( * ) ) + 45 AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL ( - + COUNT ( * ) ) + 45 AS col0 FROM tab2
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 + - col2 col1 FROM tab2
----
-113
-78
-95

query II rowsort
SELECT + col0, + 74 AS col1 FROM tab2
----
46
74
64
74
75
74

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

skipif mysql # not compatible
query I rowsort label-5697
SELECT + - COUNT ( * ) - 94 FROM tab2 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT COUNT( * ) + 40 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5698
SELECT COUNT ( * ) + 40 FROM tab1 AS cor0
----
43

query I rowsort
SELECT col2 * + - col1 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-237224
-260437
-59869

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT DISTINCT - 67 + ( + 54 ) * + ( SUM( + col2 ) ) FROM tab1 AS cor0
----
11975

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT - 67 + ( + 54 ) * + ( SUM ( + col2 ) ) FROM tab1 AS cor0
----
11975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5702
SELECT * FROM tab1 WHERE ( CAST( - 1 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5702
SELECT * FROM tab1 WHERE ( CAST ( - 1 AS INTEGER ) IS NULL )
----

query I rowsort
SELECT + + 65 * - + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT DISTINCT - col2 * + - col0 + + col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT 51 * - 80 * - - 64 + + - COUNT( * ) FROM tab2 AS cor0
----
-261123

skipif mysql # not compatible
query I rowsort label-5705
SELECT 51 * - 80 * - - 64 + + - COUNT ( * ) FROM tab2 AS cor0
----
-261123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT ALL 67 * 32 * MIN( DISTINCT - + 4 ) DIV + + 11 AS col0 FROM tab0 AS cor0
----
-779

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL 67 * 32 * MIN ( DISTINCT - + 4 ) / + + 11 AS col0 FROM tab0 AS cor0
----
-779

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

query I rowsort
SELECT DISTINCT - 62 + col0 AS col1 FROM tab1 WHERE + 58 * + col1 * - col2 IS NOT NULL
----
-11
23
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col1 col0 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT ALL col2, 74 * col0 * - - col2 FROM tab2
----
23
78292
40
189440
58
321900

query I rowsort
SELECT DISTINCT - col1 * col0 * 27 FROM tab2 WHERE + + 2 IS NULL
----

query I rowsort
SELECT ALL - 12 * + col1 AS col0 FROM tab1 AS cor0
----
-168
-564
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT DISTINCT - MIN( ALL 40 ) AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - MIN ( ALL 40 ) AS col2 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT DISTINCT - ( - + 47 ) * MIN( col2 ) * COUNT( * ) AS col0, SUM( DISTINCT - - col0 ) FROM tab1 AS cor0
----
8319
227

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT - ( - + 47 ) * MIN ( col2 ) * COUNT ( * ) AS col0, SUM ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
8319
227

onlyif mysql # DIV for integer division: 
query II rowsort label-5716
SELECT DISTINCT col0 + - 73 DIV + - ( - col1 ), + 29 col1 FROM tab2
----
45
29
64
29
74
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5716
SELECT DISTINCT col0 + - 73 / + - ( - col1 ), + 29 col1 FROM tab2
----
45
29
64
29
74
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT ALL - 81 DIV - col2 + - - ( - 41 ) AS col0 FROM tab2
----
-38
-39
-40

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - 81 / - col2 + - - ( - 41 ) AS col0 FROM tab2
----
-38
-39
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - - COUNT( DISTINCT - + ( - 89 ) ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5719
SELECT - - COUNT ( DISTINCT - + ( - 89 ) ) AS col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 + + 23, - col1 col2 FROM tab0 AS cor0
----
104
-81
24
-1
44
-21

query II rowsort
SELECT col1 + + col2, + col0 AS col1 FROM tab1 cor0 WHERE NULL <> col2
----

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

query I rowsort
SELECT DISTINCT + col1 + + + col0 * - - col2 FROM tab1 AS cor0 WHERE NOT 79 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT COUNT( * ) + + - 67 + + + COUNT( * ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-5725
SELECT COUNT ( * ) + + - 67 + + + COUNT ( * ) AS col2 FROM tab0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT 97 + 78 * + COUNT( ALL - col0 ) AS col1 FROM tab1
----
331

skipif mysql # not compatible
query I rowsort label-5726
SELECT 97 + 78 * + COUNT ( ALL - col0 ) AS col1 FROM tab1
----
331

query I rowsort
SELECT DISTINCT - col1 + - - col0 + - - col1 * - col1 + 56 * - + 20 * - 90 FROM tab2
----
94858
96319
98194

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT - MIN( + + col2 ) * 46 AS col0 FROM tab1 AS cor0
----
-2714

skipif mysql # not compatible
query I rowsort label-5728
SELECT - MIN ( + + col2 ) * 46 AS col0 FROM tab1 AS cor0
----
-2714

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT ALL + col0 + - - col0 DIV col1 AS col0 FROM tab1 AS cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + col0 + - - col0 / col1 AS col0 FROM tab1 AS cor0
----
102
54
92

query I rowsort
SELECT 19 + - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-68
-78
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL - + COUNT( * ) - + 45 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - + COUNT ( * ) - + 45 FROM tab2 cor0
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL 52 + + COUNT( + - 91 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL 52 + + COUNT ( + - 91 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
61

query I rowsort
SELECT 84 * - 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 229459f984125e417dc1c2546f9ac4a8

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

query I rowsort
SELECT ALL col2 * - 6 AS col2 FROM tab1 AS cor0
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT - 89 * + SUM( + col0 ) FROM tab2 AS cor0
----
-16465

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - 89 * + SUM ( + col0 ) FROM tab2 AS cor0
----
-16465

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

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE 9 IS NOT NULL
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5743
SELECT ALL ( + COUNT( * ) ), + 45 AS col0 FROM tab2
----
3
45

skipif mysql # not compatible
query II rowsort label-5743
SELECT ALL ( + COUNT ( * ) ), + 45 AS col0 FROM tab2
----
3
45

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

query II rowsort
SELECT + col2 * - col2, + col1 * + col1 AS col1 FROM tab1
----
-3481
25
-4624
2209
-9216
196

query I rowsort
SELECT ALL col2 * + - 73 AS col0 FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT 7 * 79 FROM tab2 AS cor0
----
553
553
553

query I rowsort
SELECT + 3 * + 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8046ab3408bb62e90ba873a7b97790e

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

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

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

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

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

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

query I rowsort
SELECT ALL 28 * - col2 AS col0 FROM tab1
----
-1652
-1904
-2688

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

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

query I rowsort
SELECT + 7 * 3 AS col1 FROM tab0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0 WHERE NOT ( + 6 * - col1 + - + col1 + - - col0 + - col1 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT + MAX( ALL 38 ) AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + MAX ( ALL 38 ) AS col1 FROM tab0 AS cor0
----
38

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5760
SELECT - ( + col2 ) DIV - + 60, col2 FROM tab2 cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-5760
SELECT - ( + col2 ) / - + 60, col2 FROM tab2 cor0
----
0
23
0
40
0
58

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT - 22 * - col1 FROM tab2 AS cor0
----
1122
1474
1694

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 18 ) >= NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 * + ( - - col0 ) FROM tab0
----
-10
7569
-47
225
-99
9409

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5767
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, - COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5767
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, - COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab1
----
NULL
1

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

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

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

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

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

query I rowsort
SELECT 12 + + col2 FROM tab1 cor0
----
108
71
80

query III rowsort
SELECT * FROM tab0 WHERE NULL > col0 + + col2
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT ( - 9 ) <= 33
----

query I rowsort
SELECT DISTINCT - 29 FROM tab1 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT ALL col1 * CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL col1 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5776
SELECT * FROM tab2 WHERE - 82 BETWEEN + col2 + + CAST( col2 + - col2 AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-5776
SELECT * FROM tab2 WHERE - 82 BETWEEN + col2 + + CAST ( col2 + - col2 AS INTEGER ) AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> 18 * ( col2 ) + col0 * ( - 71 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT ALL COUNT( * ) FROM tab2 WHERE 49 + + col1 IN ( + 8 - 3 )
----
0

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL COUNT ( * ) FROM tab2 WHERE 49 + + col1 IN ( + 8 - 3 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT + col1 DIV 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT + col1 / 87 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE col2 * col1 < 87 * 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 24 <> NULL
----

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

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

query I rowsort
SELECT - 35 * ( - col2 * 10 ) FROM tab2
----
14000
20300
8050

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT DISTINCT 80 DIV - ( col2 ) AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT 80 / - ( col2 ) AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT - col1 * - col0 + - col0 FROM tab1 WHERE NOT 44 * 37 IS NULL
----
340
4186
663

query I rowsort
SELECT + 24 * - 51 FROM tab1
----
-1224
-1224
-1224

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT CAST( + 4 AS SIGNED ) + - ( - ( + 59 ) ) AS col1 FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-5791
SELECT CAST ( + 4 AS INTEGER ) + - ( - ( + 59 ) ) AS col1 FROM tab2
----
63
63
63

query I rowsort
SELECT col1 * + 22 + - col0 FROM tab2
----
1076
1399
1630

query I rowsort
SELECT DISTINCT + ( + 45 ) AS col2 FROM tab2
----
45

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < + 98 * ( col1 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL COUNT( ALL 38 ) AS col2 FROM tab1 WHERE NOT + col0 + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL COUNT ( ALL 38 ) AS col2 FROM tab1 WHERE NOT + col0 + col2 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5799
SELECT ALL * FROM tab1 WHERE NOT ( ( CAST( NULL AS DECIMAL ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5799
SELECT ALL * FROM tab1 WHERE NOT ( ( CAST ( NULL AS REAL ) ) ) IS NULL
----

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

query I rowsort
SELECT - col0 + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-128
-150
-92

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

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

skipif mysql # not compatible
query I rowsort label-5803
SELECT ( + MAX ( - col0 ) ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( col2 + + 91 )
----

query I rowsort
SELECT 92 + + 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT 44 * CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5809
SELECT 44 * CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - MAX ( ALL col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5811
SELECT ALL 92 + + COUNT( * ) * 41 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) NOT BETWEEN NULL AND - col1 + 51
----
92

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL 92 + + COUNT ( * ) * 41 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) NOT BETWEEN NULL AND - col1 + 51
----
92

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

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

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

query I rowsort
SELECT ALL 75 * 98 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * 49 FROM tab2 cor0
----
-1127
-1960
-2842

query I rowsort
SELECT + 89 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT AVG ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT + CAST( NULL AS SIGNED ) / 6 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT + CAST ( NULL AS INTEGER ) / 6 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col1 * - ( - col2 ) FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5820
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN ( - ( + CAST( NULL AS SIGNED ) ) - col1 ) AND ( + CAST( col0 AS SIGNED ) )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-5820
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN ( - ( + CAST ( NULL AS INTEGER ) ) - col1 ) AND ( + CAST ( col0 AS INTEGER ) )
----
15
81
47
97
1
99

query I rowsort
SELECT ALL 30 * + - col2 AS col0 FROM tab1
----
-1770
-2040
-2880

query I rowsort
SELECT ALL col2 + - col1 + - col1 * col2 AS col1 FROM tab2
----
-1201
-3117
-3895

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5826
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) <> ( + 27 )
----

skipif mysql # not compatible
query III rowsort label-5826
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) <> ( + 27 )
----

query I rowsort
SELECT - col2 + - 65 + 11 AS col2 FROM tab2 AS cor0
----
-112
-77
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 8 + - - col2 * - 21 col2 FROM tab2
----
-1301
-537
-912

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT + ( - 35 ) + - col1 AS col2 FROM tab1
----
-40
-49
-82

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT DISTINCT - + 55 + col0 + + CAST( - col2 AS SIGNED ) - col1 FROM tab1 AS cor0
----
-114
-34
-79

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - + 55 + col0 + + CAST ( - col2 AS INTEGER ) - col1 FROM tab1 AS cor0
----
-114
-34
-79

query I rowsort
SELECT ALL + 76 + - 77 * - ( 86 ) AS col2 FROM tab2 AS cor0
----
6698
6698
6698

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

query I rowsort
SELECT DISTINCT + ( - + 35 ) * col0 * - col0 - + col0 AS col0 FROM tab0 cor0
----
264828
329218
7860

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

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

query I rowsort
SELECT + + col1 * - col1 - + 42 + + col1 * 64 AS col1 FROM tab1 AS cor0
----
253
658
757

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT SUM( ALL + 12 ) AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5841
SELECT SUM ( ALL + 12 ) AS col0 FROM tab2 AS cor0
----
36

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

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

query I rowsort
SELECT + 28 - + col2 AS col0 FROM tab0
----
-19
-71
18

query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0 WHERE NOT ( - 69 ) < + col0
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5847
SELECT DISTINCT MAX ( + + col2 ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + + 93 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 75 * + 12 col0 FROM tab0 AS cor0
----
-18900
-72900
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT COUNT( * ) * 75 * ( 20 ) col1 FROM tab0 cor0
----
4500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5850
SELECT COUNT ( * ) * 75 * ( 20 ) col1 FROM tab0 cor0
----
4500

query I rowsort
SELECT DISTINCT - col0 + + 84 * - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-181
-1851
-6819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5852
SELECT - + col0, - 64 - - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-5852
SELECT - + col0, - 64 - - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL + - col0 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + 63 * + - col0 + 90 AS col2 FROM tab2 AS cor0
----
-2808
-3942
-4635

query I rowsort
SELECT ALL - col2 * col2 + - - 29 AS col0 FROM tab1
----
-3452
-4595
-9187

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( ( NULL ) = ( + 97 ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT - 47 DIV + 42 + + col1 AS col2 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5858
SELECT - 47 / + 42 + + col1 AS col2 FROM tab2
----
50
66
76

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

query I rowsort
SELECT col1 * + - col2 + + col1 * + 44 FROM tab0
----
-243
-55
714

query I rowsort
SELECT DISTINCT col0 * col1 - - 93 + + col0 / + 79 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

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

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

query II rowsort
SELECT col2 + - col1, + col0 AS col1 FROM tab1 WHERE NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL ( + 32 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

query II rowsort
SELECT - col0 - + 52 AS col2, col1 * col1 FROM tab0 AS cor0
----
-139
441
-149
1
-67
6561

query I rowsort
SELECT col1 + + + col0 * + 0 + 32 FROM tab1 AS cor0
----
37
46
79

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT + COUNT( * ) + + ( + 78 ) * - + 71 AS col0 FROM tab2 AS cor0
----
-5535

skipif mysql # not compatible
query I rowsort label-5870
SELECT + COUNT ( * ) + + ( + 78 ) * - + 71 AS col0 FROM tab2 AS cor0
----
-5535

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL MAX( + + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL MAX ( + + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT - SUM( ALL - - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5875
SELECT - SUM ( ALL - - col2 ) AS col2 FROM tab2
----
-121

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 16 + 54 NOT BETWEEN ( col1 ) AND - 97 + - col1
----

query I rowsort
SELECT - ( - col1 ) * - col1 + - 53 AS col1 FROM tab0
----
-494
-54
-6614

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 43 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5881
SELECT - 90 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col2 = - + 97
----

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

query I rowsort
SELECT col0 * - + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT COUNT( * ) + + - SUM( ALL - col2 ) * ( - 4 ) FROM tab2 AS cor0
----
-481

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT COUNT ( * ) + + - SUM ( ALL - col2 ) * ( - 4 ) FROM tab2 AS cor0
----
-481

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

query I rowsort
SELECT - col0 + col0 * + + col2 AS col0 FROM tab2 AS cor0
----
1012
2496
4275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT + 37 + + SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-5888
SELECT + 37 + + SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
193

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE - ( - ( - 64 ) ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT + SUM( ALL + 43 ) AS col2 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT + SUM ( ALL + 43 ) AS col2 FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT COUNT( * ) * COUNT( * ) * + 17 AS col1 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-5891
SELECT COUNT ( * ) * COUNT ( * ) * + 17 AS col1 FROM tab0
----
153

query I rowsort
SELECT ( - - col1 ) + + col2 FROM tab2 WHERE col2 IS NOT NULL
----
117
125
74

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

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * + col1 + - + col0 FROM tab0 AS cor0
----
-96
354
6546

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

skipif mysql # not compatible
query I rowsort label-5899
SELECT - COUNT ( DISTINCT 22 ) FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col2 ) col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT - col2 DIV 67 + + 69 AS col2 FROM tab0 AS cor0
----
68
69
69

skipif mysql # not compatible
query I rowsort label-5901
SELECT - col2 / 67 + + 69 AS col2 FROM tab0 AS cor0
----
68
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + - 62 col1 FROM tab1 cor0 WHERE col1 BETWEEN NULL AND + + ( + + col1 )
----

query II rowsort
SELECT DISTINCT + + col1, 18 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
51
23
67
10
77
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL + SUM( DISTINCT - + 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + SUM ( DISTINCT - + 51 ) FROM tab1 AS cor0
----
-51

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

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

query II rowsort
SELECT col2 * - col2, col0 * + + col2 AS col1 FROM tab0
----
-100
870
-2209
705
-9801
9603

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

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

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

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

query II rowsort
SELECT DISTINCT col2, col1 * + + 92 FROM tab0
----
10
1932
47
7452
99
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 74, col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - 43 col1 FROM tab1
----
2537
2924
4128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT - MAX( - col1 ) FROM tab0 AS cor0 WHERE NOT - 24 - + 79 IN ( + 97, + CAST( ( - + col2 ) AS SIGNED ) * - - col0 )
----
1

skipif mysql # not compatible
query I rowsort label-5914
SELECT - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT - 24 - + 79 IN ( + 97, + CAST ( ( - + col2 ) AS INTEGER ) * - - col0 )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT - - MAX( - - col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT DISTINCT - - MAX ( - - col2 ) col1 FROM tab1 AS cor0
----
96

query II rowsort
SELECT + + 42 AS col2, - col2 + + 46 FROM tab2 cor0
----
42
-12
42
23
42
6

query I rowsort
SELECT ALL + col2 * - 58 FROM tab1 AS cor0
----
-3422
-3944
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 20 ) * - - col2 col1 FROM tab1 AS cor0
----
1180
1360
1920

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

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

query I rowsort
SELECT col0 * + - 4 + - - col0 + - - col1 + + col2 FROM tab1
----
-158
-191
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL COUNT( * ) * - 22 + ( + - SUM( ALL - col0 ) ) AS col0 FROM tab1
----
161

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL COUNT ( * ) * - 22 + ( + - SUM ( ALL - col0 ) ) AS col0 FROM tab1
----
161

query I rowsort
SELECT col2 + - ( + - col1 ) FROM tab2
----
117
125
74

query I rowsort
SELECT 32 + + col1 + + 96 * - 73 * + 98 FROM tab1
----
-686705
-686738
-686747

query I rowsort
SELECT DISTINCT col1 + - - col2 + - 53 AS col2 FROM tab2
----
21
64
72

query I rowsort
SELECT DISTINCT + + 45 * - col0 + + col2 + - ( - 44 ) FROM tab1 AS cor0
----
-2155
-3722
-3983

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT + MAX( DISTINCT + 80 ) + COUNT( * ) - 41 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT + MAX ( DISTINCT + 80 ) + COUNT ( * ) - 41 FROM tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT ALL + - 95 - - col1 DIV col2 FROM tab1 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL + - 95 - - col1 / col2 FROM tab1 AS cor0
----
-95
-95
-95

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

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

query I rowsort
SELECT + 55 * + col1 - - - 13 - + col1 AS col1 FROM tab0
----
1121
41
4361

query II rowsort
SELECT col2 AS col0, - col0 FROM tab1 WHERE + + col1 <> - 54
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT + COUNT( * ) - + 54 * - + 25 AS col0 FROM tab1
----
1353

skipif mysql # not compatible
query I rowsort label-5933
SELECT + COUNT ( * ) - + 54 * - + 25 AS col0 FROM tab1
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT - 78 * + 43 * COUNT( * ) + - 86 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-30272

skipif mysql # not compatible
query I rowsort label-5934
SELECT - 78 * + 43 * COUNT ( * ) + - 86 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-30272

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

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

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

query II rowsort
SELECT - 5 / + col0 AS col1, + col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - 70 AS col1, col2 FROM tab2 AS cor0
----
-70
23
-70
40
-70
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + 89
----

query II rowsort
SELECT ( - ( + + ( - col0 ) ) ), + 50 * + + 56 AS col2 FROM tab2
----
46
2800
64
2800
75
2800

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT CAST( + ( + + col0 ) AS SIGNED ) * + + 17 + + - col2 * - col1 AS col2 FROM tab1
----
1740
2211
4743

skipif mysql # not compatible
query I rowsort label-5944
SELECT CAST ( + ( + + col0 ) AS INTEGER ) * + + 17 + + - col2 * - col1 AS col2 FROM tab1
----
1740
2211
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT COUNT( * ) * - COUNT( * ) * - 74 FROM tab1
----
666

skipif mysql # not compatible
query I rowsort label-5945
SELECT COUNT ( * ) * - COUNT ( * ) * - 74 FROM tab1
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT ALL + COUNT( DISTINCT + + 61 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL + COUNT ( DISTINCT + + 61 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT COUNT( * ) * + 63 col1 FROM tab2
----
189

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 62 * + col1 * - - col2 IS NOT NULL
----

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

query II rowsort
SELECT ALL 89 + 98 AS col2, - ( - + col0 ) AS col1 FROM tab1
----
187
51
187
85
187
91

query I rowsort
SELECT DISTINCT - ( - - 42 ) + 88 - + - 91 * + col2 AS col2 FROM tab1 cor0
----
5415
6234
8782

query I rowsort
SELECT + ( + + 53 ) * + + 51 + 63 FROM tab0 AS cor0
----
2766
2766
2766

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

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

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

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

query I rowsort
SELECT ALL col2 * + - 22 FROM tab2
----
-1276
-506
-880

query I rowsort
SELECT DISTINCT - col1 + - + 62 AS col0 FROM tab2
----
-113
-129
-139

query III rowsort
SELECT * FROM tab1 WHERE + 96 >= - col1 + + 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT ALL + col1 - - 83 FROM tab0 AS cor0
----
104
164
84

query I rowsort
SELECT 2 FROM tab2 AS cor0 WHERE ( NULL ) = - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5963
SELECT + CAST( - + 3 AS SIGNED ) + + - 3 AS col0, col0 FROM tab2 AS cor0
----
-6
46
-6
64
-6
75

skipif mysql # not compatible
query II rowsort label-5963
SELECT + CAST ( - + 3 AS INTEGER ) + + - 3 AS col0, col0 FROM tab2 AS cor0
----
-6
46
-6
64
-6
75

query I rowsort
SELECT - 23 + - + 98 FROM tab1 AS cor0
----
-121
-121
-121

query I rowsort
SELECT ALL 27 + - 54 FROM tab2 AS cor0
----
-27
-27
-27

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5967
SELECT - MAX( col0 ) + MAX( ALL col1 ) AS col0, - COUNT( * ) AS col0 FROM tab0
----
-16
-3

skipif mysql # not compatible
query II rowsort label-5967
SELECT - MAX ( col0 ) + MAX ( ALL col1 ) AS col0, - COUNT ( * ) AS col0 FROM tab0
----
-16
-3

query I rowsort
SELECT + + 65 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 > + - 44 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT ALL - 32 DIV col2 + - - 55 AS col0 FROM tab0 AS cor0
----
52
55
55

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - 32 / col2 + - - 55 AS col0 FROM tab0 AS cor0
----
52
55
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT - 83 DIV - MAX( ALL - col0 ) col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5971
SELECT - 83 / - MAX ( ALL - col0 ) col0 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5972
SELECT SUM( - 54 ), + COUNT( ALL 19 ) AS col2 FROM tab0 AS cor0
----
-162
3

skipif mysql # not compatible
query II rowsort label-5972
SELECT SUM ( - 54 ), + COUNT ( ALL 19 ) AS col2 FROM tab0 AS cor0
----
-162
3

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col2 * - 26 / 13 = NULL
----

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

query I rowsort
SELECT ALL - col2 * + - 71 * + 41 FROM tab1
----
171749
197948
279456

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

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

query I rowsort
SELECT DISTINCT - col0 + + 79 AS col1 FROM tab1 AS cor0
----
-12
-6
28

query I rowsort
SELECT ALL - 99 + + ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-52
-89
0

query II rowsort
SELECT - col2 AS col2, col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL + COUNT( * ) + - 6 * + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-573

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + COUNT ( * ) + - 6 * + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-573

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

skipif mysql # not compatible
query II rowsort label-5981
SELECT + - col0, CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT ALL ( - 96 ) + - + col0 FROM tab2 AS cor0
----
-142
-160
-171

query I rowsort
SELECT ALL + col1 + col1 - + 60 FROM tab1 AS cor0
----
-32
-50
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT + - ( 40 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - + COUNT( - col2 ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT - + COUNT ( - col2 ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ( - col2 ) * - col1 + + + 75 * - - 55 + + col1 AS col0 FROM tab2
----
5349
7282
8078

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT 86 * - + MAX( ALL + + col2 ) AS col0 FROM tab2
----
-4988

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT 86 * - + MAX ( ALL + + col2 ) AS col0 FROM tab2
----
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL 74 + MAX( DISTINCT + 75 ) FROM tab0
----
149

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL 74 + MAX ( DISTINCT + 75 ) FROM tab0
----
149

query I rowsort
SELECT + col1 * - + 79 AS col2 FROM tab2
----
-4029
-5293
-6083

query I rowsort
SELECT ALL - col0 - + - 11 AS col1 FROM tab1 AS cor0
----
-40
-74
-80

query I rowsort
SELECT ALL - AVG ( DISTINCT + - 1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> 14
----
NULL

query I rowsort
SELECT DISTINCT 13 FROM tab0 AS cor0 WHERE NULL IS NULL
----
13

query I rowsort
SELECT DISTINCT + 91 * - col2 AS col1 FROM tab2
----
-2093
-3640
-5278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT + MAX( col2 ) * + COUNT( * ) + 58 col1 FROM tab2 cor0
----
232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6000
SELECT DISTINCT + MAX ( col2 ) * + COUNT ( * ) + 58 col1 FROM tab2 cor0
----
232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL - 26 * COUNT( * ) FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL - 26 * COUNT ( * ) FROM tab0 cor0
----
-78

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

skipif mysql # not compatible
query I rowsort label-6003
SELECT COUNT ( * ) / - 8 AS col2 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL - 72 * - - COUNT( * ) FROM tab1 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - 72 * - - COUNT ( * ) FROM tab1 cor0
----
-216

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6007
SELECT * FROM tab0 WHERE NOT col2 * + col0 * col1 * - - CAST( NULL AS SIGNED ) * + col1 + - col0 + - + col1 * - 4 * col2 * + col0 * + 34 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6007
SELECT * FROM tab0 WHERE NOT col2 * + col0 * col1 * - - CAST ( NULL AS INTEGER ) * + col1 + - col0 + - + col1 * - 4 * col2 * + col0 * + 34 IS NULL
----

query II rowsort
SELECT ALL 35 AS col2, + 33 AS col0 FROM tab2, tab1 AS cor0
----
18 values hashing to 3d579d3ff2f0843195a1f0a858a5a357

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 55 AS col1 FROM tab1
----
106
140
146

query I rowsort
SELECT ALL + 73 + + + col0 * col0 * + - col1 FROM tab0
----
-158876
-18152
-9336

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

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

query II rowsort
SELECT ALL col1, 67 FROM tab1
----
14
67
47
67
5
67

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + - col2 ) FROM tab2 WHERE col1 / col0 + - col2 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6018
SELECT DISTINCT 42, + MIN( + + col1 ) * - SUM( DISTINCT col2 ) AS col0 FROM tab0
----
42
-156

skipif mysql # not compatible
query II rowsort label-6018
SELECT DISTINCT 42, + MIN ( + + col1 ) * - SUM ( DISTINCT col2 ) AS col0 FROM tab0
----
42
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT MAX( DISTINCT col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-6019
SELECT MAX ( DISTINCT col1 ) FROM tab2 cor0
----
77

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

query I rowsort
SELECT DISTINCT + 78 * + + col2 FROM tab2 AS cor0
----
1794
3120
4524

query I rowsort
SELECT + ( - + ( + 51 ) ) * col2 AS col1 FROM tab0 AS cor0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT - - 57 DIV + SUM( DISTINCT 65 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - - 57 / + SUM ( DISTINCT 65 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT ALL col1 DIV 32 * col0 + - col2 FROM tab0 AS cor0
----
-10
-17
-99

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL col1 / 32 * col0 + - col2 FROM tab0 AS cor0
----
-10
-17
-99

query I rowsort
SELECT DISTINCT + col1 * + 50 AS col2 FROM tab0 AS cor0
----
1050
4050
50

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

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

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

query II rowsort
SELECT DISTINCT 80, + col1 AS col2 FROM tab0
----
80
1
80
21
80
81

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * 29 IS NULL
----

query I rowsort
SELECT + col0 * 75 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT - 74 + + 15 FROM tab2
----
-59
-59
-59

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

query I rowsort
SELECT + col1 + - 85 FROM tab2 AS cor0
----
-18
-34
-8

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

query I rowsort
SELECT + 92 AS col1 FROM tab0 WHERE 19 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 / - + 54 + col0 >= NULL
----

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 * - col1 <= + col0 AND NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT DISTINCT - 50 + + COUNT( ALL 29 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT - 50 + + COUNT ( ALL 29 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT + - 70 - + + COUNT( * ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + - 70 - + + COUNT ( * ) FROM tab0 AS cor0
----
-73

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT - SUM( ALL 61 ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-6043
SELECT - SUM ( ALL 61 ) FROM tab1
----
-183

query I rowsort
SELECT 14 * 56 FROM tab1
----
784
784
784

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT - col1 DIV + - col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6045
SELECT - col1 / + - col0 AS col2 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL col0 * + 80 * + col2 FROM tab1
----
391680
401200
495040

query I rowsort
SELECT DISTINCT + ( col2 ) AS col2 FROM tab0 WHERE NOT + ( 23 ) IS NULL
----
10
47
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT - 65 DIV - col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6049
SELECT - 65 / - col2 AS col0 FROM tab2 AS cor0
----
1
1
2

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

query I rowsort
SELECT 59 * - col1 AS col0 FROM tab0
----
-1239
-4779
-59

query I rowsort
SELECT + + 87 FROM tab0 AS cor0 WHERE NOT - ( col0 ) + - col0 IS NULL
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT + MAX( ALL 48 ) FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + MAX ( ALL 48 ) FROM tab2 cor0
----
48

query I rowsort
SELECT DISTINCT - + col1 * col0 + + col2 * ( ( - - col0 ) ) FROM tab2 AS cor0
----
-1288
-2368
-675

query II rowsort
SELECT col2 + col0 + - col2 * + + col1 * - - ( col2 ) * - - 86 + + 49 AS col2, - 48 * + col0 * + col2 + - - 40 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-11095868
-234968
-1496637
-240680
-18690000
-296984

onlyif mysql # DIV for integer division: 
query I rowsort label-6056
SELECT DISTINCT - 2 + col2 DIV - col2 + 66 + col1 DIV - col0 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - 2 + col2 / - col2 + 66 + col1 / - col0 AS col2 FROM tab1
----
63

query I rowsort
SELECT 39 AS col1 FROM tab1 WHERE NULL <= 63 * - col2 + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN - col1 AND - col1
----

query I rowsort
SELECT DISTINCT col0 + col1 * + col2 * - 86 FROM tab0
----
-17973
-327387
-8417

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN - 63 AND NULL
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - + col2 AND + + 48 * - col1 + - col2 * 72 * + 75 + 53 * - col2
----

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

query II rowsort
SELECT DISTINCT 52 - + col0 * col0 + + ( - 30 ) - - - col0 * - + col0 AS col1, 87 AS col1 FROM tab2 AS cor0
----
22
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT 95 + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-6064
SELECT 95 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT COUNT( * ) * + + 36 + - - 78 AS col0 FROM tab1 cor0
----
186

skipif mysql # not compatible
query I rowsort label-6065
SELECT COUNT ( * ) * + + 36 + - - 78 AS col0 FROM tab1 cor0
----
186

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 92 <> + 86 * + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL - 97 + - COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL - 97 + - COUNT ( * ) FROM tab0
----
-100

query I rowsort
SELECT + - col0 * + 98 + + 8 * 81 + col1 * + col0 + + + 11 AS col0 FROM tab0 AS cor0
----
-6040
-8750
404

query I rowsort
SELECT DISTINCT col2 * - - 38 + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
1483
2195
846

query I rowsort
SELECT col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
128
31

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT DISTINCT + col0 - - + 97 - - + col1 DIV - + col1 AS col0 FROM tab0 cor0
----
111
183
193

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + col0 - - + 97 - - + col1 / - + col1 AS col0 FROM tab0 cor0
----
111
183
193

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6074
SELECT - + COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6074
SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 99 + - col2 col1 FROM tab1 AS cor0
----
-158
-167
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT 48 DIV + 23 AS col0 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6076
SELECT 48 / + 23 AS col0 FROM tab0 AS cor0
----
2
2
2

query II rowsort
SELECT ALL col0 - + - col1 - 28 AS col0, 30 FROM tab0 AS cor0
----
68
30
70
30
80
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6078
SELECT 51 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
51
51
51

skipif mysql # not compatible
query I rowsort label-6078
SELECT 51 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6079
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 61 - + 87, - col0 * + 66 + col2 * - 0 * - - col1 col2 FROM tab0 AS cor0 WHERE 44 * + + 23 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6079
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 61 - + 87, - col0 * + 66 + col2 * - 0 * - - col1 col2 FROM tab0 AS cor0 WHERE 44 * + + 23 IS NULL
----

query I rowsort
SELECT ALL - col2 + 35 AS col1 FROM tab0 AS cor0
----
-12
-64
25

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT - 89 * ( - COUNT( * ) ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-6083
SELECT - 89 * ( - COUNT ( * ) ) FROM tab0
----
267

query I rowsort
SELECT DISTINCT + 84 * + col0 AS col0 FROM tab1
----
4284
7140
7644

query I rowsort
SELECT DISTINCT col0 * + 67 AS col1 FROM tab0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT + COUNT( * ) / + - MAX( + ( - col1 ) ) AS col1 FROM tab0 WHERE NOT + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT + COUNT ( * ) / + - MAX ( + ( - col1 ) ) AS col1 FROM tab0 WHERE NOT + col2 < NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + col0 * 12 FROM tab0
----
1164
14580
21924

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT + COUNT( * ) * - - MIN( - col2 ) col2 FROM tab0 AS cor0
----
-297

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6091
SELECT ALL - - COUNT ( ALL + 70 ) col0 FROM tab0 AS cor0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - + SUM( + 14 ) col0 FROM tab2 AS cor0
----
-42

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

query I rowsort
SELECT ALL + + 65 + + col1 + - + col1 AS col1 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - col0 * + 97 FROM tab2 AS cor0 WHERE NOT 20 BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6097
SELECT + 69 DIV 24 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6097
SELECT + 69 / 24 FROM tab0 AS cor0
----
2
2
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT ALL - 71 - MAX( - col1 ) FROM tab1 WHERE col0 - - col0 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - 71 - MAX ( - col1 ) FROM tab1 WHERE col0 - - col0 IS NOT NULL
----
-66

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

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NULL NOT IN ( col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * + - 33 * - 6 col0 FROM tab1
----
9306
9306
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT 59 + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT 59 + COUNT ( * ) FROM tab0 AS cor0
----
62

query II rowsort
SELECT DISTINCT - 5 + + 71 AS col1, col0 * - col2 * - + col1 FROM tab1 AS cor0
----
66
25075
66
290836
66
68544

query I rowsort
SELECT DISTINCT - - col0 - + col2 * + col1 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT ALL + 96 - - col0 FROM tab0 cor0
----
111
183
193

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT - 48 - - - MAX( DISTINCT 10 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-6107
SELECT - 48 - - - MAX ( DISTINCT 10 ) FROM tab1
----
-58

query II rowsort
SELECT + + col1 + - 72 AS col1, - 1 FROM tab2 cor0
----
-21
-1
-5
-1
5
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6109
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 / + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6109
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 / + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6110
SELECT ALL + + 28 DIV - col2 + - col1 + - 35 AS col0 FROM tab0 AS cor0
----
-116
-36
-58

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL + + 28 / - col2 + - col1 + - 35 AS col0 FROM tab0 AS cor0
----
-116
-36
-58

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

query I rowsort
SELECT + col2 * - ( + col1 ) FROM tab0 AS cor0 WHERE NOT - 59 + - 19 + - + col2 * - + col2 <= 87
----
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 51 IS NULL
----

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

query I rowsort
SELECT ALL + col0 * + col1 * - col2 * - col1 FROM tab0
----
383670
4625505
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT DISTINCT - 40 * + - CAST( NULL AS SIGNED ) * + + 78 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT - 40 * + - CAST ( NULL AS INTEGER ) * + + 78 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL 52 DIV col0 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6117
SELECT ALL 52 / col0 col1 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT DISTINCT 0 DIV + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT 0 / + col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT ALL - col1 DIV ( - - col2 ) AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - col1 / ( - - col2 ) AS col0 FROM tab0
----
-1
-2
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6120
SELECT - col1 col1, ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

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

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

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

query I rowsort
SELECT - + col0 * + 33 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT - 58 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * + - ( + + col2 ) <= - + col0 * col1 * ( 87 )
----
-58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6126
SELECT DISTINCT + col0 DIV 91 * col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + col0 / 91 * col0 FROM tab2
----
0

query I rowsort
SELECT + 97 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
97
97
97

query I rowsort
SELECT col1 + - + 92 FROM tab1 AS cor0
----
-45
-78
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 87 col0 FROM tab1 AS cor0
----
-2
-36
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6130
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + CAST( NULL AS SIGNED ) AND - + CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6130
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + CAST ( NULL AS INTEGER ) AND - + CAST ( + col1 AS REAL )
----

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

skipif mysql # not compatible
query I rowsort label-6131
SELECT + ( - + ( - col2 ) ) / + + 76 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + ( + - 26 ) * + col1 AS col0 FROM tab1
----
-1222
-130
-364

query I rowsort
SELECT ( + col1 ) * + col0 FROM tab2
----
2346
4928
5025

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NOT + col1 * - col1 - + - 4 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, + col0 * - col1 col2 FROM tab0
----
1
-97
21
-1827
81
-1215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * - + col0 col2 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT - col2 * + - 62 + - col0 FROM tab2
----
1380
2416
3521

query I rowsort
SELECT - col0 - + 7 * col0 FROM tab1
----
-408
-680
-728

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) + + ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
49
98

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

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

query I rowsort
SELECT + + 9 + + + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
106
150
151

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

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

query I rowsort
SELECT + 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 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-6145
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

query I rowsort
SELECT DISTINCT col2 * 24 AS col2 FROM tab1 AS cor0
----
1416
1632
2304

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

skipif mysql # not compatible
query II rowsort label-6148
SELECT 80 AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
80
3

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

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

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

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

query I rowsort
SELECT DISTINCT - 69 * + col0 FROM tab0 AS cor0
----
-1035
-6003
-6693

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT 34 * - SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-4114

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT 34 * - SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-4114

query II rowsort
SELECT + col2 AS col1, + col0 * + - col0 * - 30 * + col2 * + col0 FROM tab1 AS cor0
----
59
1087001250
68
1537284840
96
382034880

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 13 * - + col0 col1, col0 * - ( - col0 ) FROM tab1
----
1105
7225
1183
8281
663
2601

query I rowsort
SELECT ALL - 80 * 37 AS col0 FROM tab1
----
-2960
-2960
-2960

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab1 WHERE - col2 / - ( + col0 ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT - MAX( - col2 ) col1, + 92 FROM tab2
----
23
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6159
SELECT - MAX ( - col2 ) col1, + 92 FROM tab2
----
23
92

query I rowsort
SELECT + col1 + col1 - + col1 + + col2 * + - col2 * - 78 AS col0 FROM tab1 AS cor0
----
271523
360719
718862

query I rowsort
SELECT + col2 + col1 + col1 AS col2 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT ALL - - 23 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
23
23
23

query II rowsort
SELECT + col1 AS col1, + col0 * + col1 FROM tab1 WHERE NOT - ( - col2 ) - + 55 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col2, col1 + + col2 AS col1 FROM tab1
----
-14
110
-47
115
-5
64

query II rowsort
SELECT col2 AS col0, + 8 + + 93 + 17 * + col0 AS col2 FROM tab1 AS cor0
----
59
1546
68
1648
96
968

query I rowsort
SELECT col1 / 75 FROM tab1 cor0 WHERE + col2 <= 40
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col2 * - col1
----

query I rowsort
SELECT ALL + + 71 + - col1 AS col2 FROM tab1 AS cor0
----
24
57
66

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

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

query I rowsort
SELECT ALL + + AVG ( + 62 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + + col1 AND + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT col2 DIV - 60 + + + col0 AS col1 FROM tab1
----
50
85
90

skipif mysql # not compatible
query I rowsort label-6171
SELECT col2 / - 60 + + + col0 AS col1 FROM tab1
----
50
85
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT 15 DIV COUNT( * ) col1 FROM tab0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6173
SELECT 15 / COUNT ( * ) col1 FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-6174
SELECT col1 DIV + - col0 AS col1, + col0 + + - 68 * col1 DIV + col2 col0 FROM tab1
----
0
42
0
44
0
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6174
SELECT col1 / + - col0 AS col1, + col0 + + - 68 * col1 / + col2 col0 FROM tab1
----
0
42
0
44
0
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6175
SELECT - 55 * - col1 AS col0, col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
2805
NULL
3685
NULL
4235
NULL

skipif mysql # not compatible
query II rowsort label-6175
SELECT - 55 * - col1 AS col0, col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
2805
NULL
3685
NULL
4235
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6177
SELECT col0 * + col2 AS col1, col1 DIV + - 24 - + - col1 AS col1 FROM tab1
----
4896
14
5015
5
6188
46

skipif mysql # not compatible
query II rowsort label-6177
SELECT col0 * + col2 AS col1, col1 / + - 24 - + - col1 AS col1 FROM tab1
----
4896
14
5015
5
6188
46

query I rowsort
SELECT DISTINCT - col0 + col0 * + col0 FROM tab1 cor0
----
2550
7140
8190

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

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

query I rowsort
SELECT DISTINCT + col1 - - col1 * - 51 + - col1 FROM tab2 cor0
----
-2601
-3417
-3927

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6181
SELECT DISTINCT 60 - + CAST( NULL AS SIGNED ) + + col1 / + col2 AS col0, + 70 FROM tab2 AS cor0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-6181
SELECT DISTINCT 60 - + CAST ( NULL AS INTEGER ) + + col1 / + col2 AS col0, + 70 FROM tab2 AS cor0
----
NULL
70

query I rowsort
SELECT - - AVG ( + 86 ) AS col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6184
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 27 AS col2, col1 + CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab0 WHERE NOT NULL >= + - 16 * 55
----

skipif mysql # not compatible
query II rowsort label-6184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 27 AS col2, col1 + CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab0 WHERE NOT NULL >= + - 16 * 55
----

query I rowsort
SELECT - 66 FROM tab1 AS cor0 WHERE NOT col2 / - col0 >= - 51
----

query I rowsort
SELECT ALL col2 * + 87 AS col1 FROM tab2 AS cor0
----
2001
3480
5046

query II rowsort
SELECT ALL - col1 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT - 88 - COUNT( + col1 ) col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6189
SELECT - 88 - COUNT ( + col1 ) col0 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT - MAX( ALL 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT - MAX ( ALL 7 ) FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT - 11 DIV + - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 11 / + - col2 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT + col2, - col2 * - col1 - - - col0 FROM tab2
----
23
1127
40
3016
58
3811

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6194
SELECT - 71 AS col2, + COUNT ( * ) col0 FROM tab1
----
-71
3

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

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

skipif mysql # not compatible
query II rowsort label-6196
SELECT + CAST ( NULL AS INTEGER ) AS col1, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT MAX( + 99 ) * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT MAX ( + 99 ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT + COUNT( * ) + MIN( - 21 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT + COUNT ( * ) + MIN ( - 21 ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT - ( + 57 ) * - 12 FROM tab0 AS cor0
----
684
684
684

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

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

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

query I rowsort
SELECT 41 + - + 25 AS col1 FROM tab0
----
16
16
16

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

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

query II rowsort
SELECT ALL - col2 * + - col0 + - col0 AS col1, + col1 - col0 * - + col0 AS col0 FROM tab1
----
4845
2615
4930
7230
6097
8328

query I rowsort
SELECT ALL - col1 * + 23 FROM tab0
----
-1863
-23
-483

query I rowsort
SELECT DISTINCT col1 + - col1 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - 12 col0 FROM tab0 AS cor0
----
-2
35
87

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

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

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

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

query II rowsort
SELECT + col1 * col1 * + col0 AS col0, + 69 FROM tab1 AS cor0
----
201019
69
2125
69
9996
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT DISTINCT + col1 - - + col1 DIV 31 AS col1 FROM tab2 AS cor0
----
52
69
79

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT + col1 - - + col1 / 31 AS col1 FROM tab2 AS cor0
----
52
69
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( 77 ) ) + - col1 col2 FROM tab2 AS cor0
----
-128
-144
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT + 36 * - COUNT( * ) * + 33 AS col1 FROM tab0, tab2 AS cor0
----
-10692

skipif mysql # not compatible
query I rowsort label-6214
SELECT + 36 * - COUNT ( * ) * + 33 AS col1 FROM tab0, tab2 AS cor0
----
-10692

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6215
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) * - col2 + - 34 / + col2 * + - col0 NOT BETWEEN + col0 AND + - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6215
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) * - col2 + - 34 / + col2 * + - col0 NOT BETWEEN + col0 AND + - CAST ( + col0 AS INTEGER )
----

query II rowsort
SELECT DISTINCT 81 * - col1 + + col1, + 67 AS col1 FROM tab1
----
-1120
67
-3760
67
-400
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 24 * + + col2 * - col0 < col1
----

query I rowsort
SELECT ALL ( - 22 ) + + col0 FROM tab0
----
-7
65
75

query I rowsort
SELECT DISTINCT + 33 + - + 42 FROM tab2 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT 77 DIV col1 AS col0 FROM tab0 AS cor0
----
0
3
77

skipif mysql # not compatible
query I rowsort label-6220
SELECT 77 / col1 AS col0 FROM tab0 AS cor0
----
0
3
77

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > 87
----

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT SUM( DISTINCT col2 ) * + 19 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT SUM ( DISTINCT col2 ) * + 19 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6226
SELECT + MAX ( ( col2 ) ) * COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
174

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT DISTINCT - 84 DIV - 17 + col1 FROM tab2
----
55
71
81

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - 84 / - 17 + col1 FROM tab2
----
55
71
81

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

query I rowsort
SELECT ALL 44 FROM tab1 WHERE 74 IS NOT NULL
----
44
44
44

query I rowsort
SELECT ALL ( + col1 ) FROM tab0 WHERE - 40 < ( 86 ) / - 72
----
1
21
81

query I rowsort
SELECT - ( - 92 ) AS col2 FROM tab2
----
92
92
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6234
SELECT + col2 FROM tab1 WHERE NOT - 84 + col2 * col0 BETWEEN CAST( ( - col0 ) AS DECIMAL ) + - col1 AND ( col0 + + 44 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6234
SELECT + col2 FROM tab1 WHERE NOT - 84 + col2 * col0 BETWEEN CAST ( ( - col0 ) AS REAL ) + - col1 AND ( col0 + + 44 )
----
59
68
96

query I rowsort
SELECT ALL ( col0 ) + + col0 FROM tab1
----
102
170
182

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

query I rowsort
SELECT 57 AS col1 FROM tab1 WHERE NOT ( - col1 ) > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + ( 18 ) - + 30 ) <> ( + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN - 39 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6241
SELECT CAST ( col2 AS REAL ) * 4 AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN CAST ( NULL AS INTEGER ) + 43 AND ( NULL )
----

query I rowsort
SELECT - col1 * + 77 - ( - col2 ) FROM tab1 WHERE - 86 * col1 >= ( col0 / ( - col1 ) )
----

query I rowsort
SELECT DISTINCT 81 * - col1 FROM tab0
----
-1701
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL COUNT( * ) * 35 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL COUNT ( * ) * 35 FROM tab0
----
105

query I rowsort
SELECT + 71 * col1 AS col2 FROM tab1
----
3337
355
994

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 13 + + 3 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6247
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT + 42 - + ( + col0 ) AS col0 FROM tab0 WHERE ( NULL ) BETWEEN ( 74 / + col2 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6249
SELECT ALL + col0 + + col2 DIV col1 FROM tab0 AS cor0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL + col0 + + col2 / col1 FROM tab0 AS cor0
----
15
196
87

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

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

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col0 FROM tab1 AS cor0 WHERE 3 / col0 < 81
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - 56 - col2 FROM tab1 AS cor0
----
-115
-124
-152

query I rowsort
SELECT ALL + - col1 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-2652
-4556
-6006

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

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

query I rowsort
SELECT ALL ( - 54 ) * + col1 AS col2 FROM tab1
----
-2538
-270
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT DISTINCT - 24 DIV col2 - + 10 * - col1 FROM tab2
----
509
670
770

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT - 24 / col2 - + 10 * - col1 FROM tab2
----
509
670
770

query I rowsort
SELECT col2 + - col2 + - col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL 48 * + ( + MAX( + 47 ) ) AS col0 FROM tab1
----
2256

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL 48 * + ( + MAX ( + 47 ) ) AS col0 FROM tab1
----
2256

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col1 * - col1 AS col0 FROM tab0 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT MIN( DISTINCT - col0 ) * 63 FROM tab1
----
-5733

skipif mysql # not compatible
query I rowsort label-6264
SELECT MIN ( DISTINCT - col0 ) * 63 FROM tab1
----
-5733

query I rowsort
SELECT - col1 * ( + 94 ) AS col0 FROM tab0
----
-1974
-7614
-94

query I rowsort
SELECT ALL - col0 + + 18 + col0 FROM tab2
----
18
18
18

query I rowsort
SELECT + 81 * + - col2 AS col0 FROM tab0
----
-3807
-8019
-810

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col2 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT DISTINCT SUM( DISTINCT col1 ) DIV - 4 col0 FROM tab2
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6269
SELECT DISTINCT SUM ( DISTINCT col1 ) / - 4 col0 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT + COUNT( * ) FROM tab2 WHERE ( NULL ) IN ( ( 24 ) / col2 + - col1 * 77 )
----
0

skipif mysql # not compatible
query I rowsort label-6270
SELECT + COUNT ( * ) FROM tab2 WHERE ( NULL ) IN ( ( 24 ) / col2 + - col1 * 77 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col1 * ( + 86 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col1 * ( + 86 ) IS NULL
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6273
SELECT - 22 / + - col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col1 * col1 - + col2 * 75 AS col0 FROM tab0 AS cor0
----
-309
-7424
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT ALL - + SUM( 44 ) + + COUNT( 28 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-387

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - + SUM ( 44 ) + + COUNT ( 28 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT MIN( - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-6276
SELECT MIN ( - 28 ) FROM tab0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 col2, col2 * + col0 - - col0 AS col2 FROM tab2
----
85
1104
85
2624
85
4425

query I rowsort
SELECT ALL + ( - + 44 ) FROM tab1
----
-44
-44
-44

query I rowsort
SELECT ALL col1 * col2 + col1 AS col2 FROM tab0 WHERE NOT - - 8 + 20 = 0
----
100
231
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-6281
SELECT DISTINCT + - col0 AS col1, + col1 * + 38 + + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-51
533
-85
191
-91
1787

skipif mysql # not compatible
query II rowsort label-6281
SELECT DISTINCT + - col0 AS col1, + col1 * + 38 + + col2 / col2 AS col0 FROM tab1 AS cor0
----
-51
533
-85
191
-91
1787

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT SUM( - - 75 ) col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT SUM ( - - 75 ) col0 FROM tab1 AS cor0
----
225

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

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

query II rowsort
SELECT - 87 AS col2, - col2 * col2 FROM tab2 AS cor0
----
-87
-1600
-87
-3364
-87
-529

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

query I rowsort
SELECT + - col1 * - col1 + 30 AS col1 FROM tab1 AS cor0
----
2239
226
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT ALL 47 DIV - COUNT( * ) AS col0 FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL 47 / - COUNT ( * ) AS col0 FROM tab1 cor0
----
-15

query I rowsort
SELECT - ( 40 ) AS col2 FROM tab0 WHERE NOT NULL IN ( - ( + col0 ) + ( ( - col2 ) + + 13 ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT DISTINCT col1 / - 0 + col1 AS col1 FROM tab1 WHERE - col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT col1 / - 0 + col1 AS col1 FROM tab1 WHERE - col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - col1 + + col2, + col2 FROM tab2 AS cor0
----
-28
23
-37
40
-9
58

query I rowsort
SELECT - 86 * - 46 * col1 * col0 + col2 * + 20 AS col2 FROM tab1 cor0
----
1682480
16921172
2826504

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6299
SELECT + CAST( NULL AS DECIMAL ) + + 23 * + col0 AS col0, + col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6299
SELECT + CAST ( NULL AS REAL ) + + 23 * + col0 AS col0, + col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab0 AS cor0 WHERE - 53 NOT BETWEEN ( ( ( - - 74 ) ) ) AND + col0
----
20

query I rowsort
SELECT DISTINCT - col1 + - - 10 + + col2 FROM tab2 AS cor0
----
-18
-27
1

query I rowsort
SELECT DISTINCT + - col1 - - 80 AS col2 FROM tab1 AS cor0
----
33
66
75

query I rowsort
SELECT col1 - + 64 AS col1 FROM tab2 AS cor0
----
-13
13
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT + col2 - + - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6305
SELECT + col2 - + - col0 / col0 AS col1 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT col1 - + - col0 AS col2 FROM tab2
----
141
142
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL + SUM( DISTINCT + col0 ) FROM tab2 WHERE NOT ( + ( - 61 ) IS NULL )
----
185

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab2 WHERE NOT ( + ( - 61 ) IS NULL )
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT ( - ( SUM( col2 ) ) ) + 18 FROM tab0 WHERE NOT NULL <= + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT ( - ( SUM ( col2 ) ) ) + 18 FROM tab0 WHERE NOT NULL <= + - col1
----
NULL

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

query II rowsort
SELECT + col1, col1 + + col2 * + col0 FROM tab2 AS cor0
----
51
1109
67
4417
77
2637

query I rowsort
SELECT DISTINCT + col2 * + + 94 FROM tab2 AS cor0
----
2162
3760
5452

query I rowsort
SELECT ALL 76 * + - col1 AS col0 FROM tab0
----
-1596
-6156
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 64 col2 FROM tab1
----
3008
320
896

query I rowsort
SELECT - 78 * - - col2 FROM tab0 AS cor0
----
-3666
-7722
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - SUM( + 59 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6316
SELECT - SUM ( + 59 ) FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + - MAX( DISTINCT + ( + col2 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6317
SELECT + - MAX ( DISTINCT + ( + col2 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-174

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + ( + + col1 ) / + - col2 <> - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT - + AVG ( - col1 ) * 7 + - ( + 67 ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) <= ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT - + AVG ( - col1 ) * 7 + - ( + 67 ) AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) <= ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * - 97 FROM tab1 AS cor0 WHERE NOT 76 * - 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT COUNT( * ) * + - SUM( + + col1 ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT COUNT ( * ) * + - SUM ( + + col1 ) FROM tab0 AS cor0
----
-309

query I rowsort
SELECT col1 * + - 28 * col0 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col0 )
----

query II rowsort
SELECT ALL - 55 AS col0, 61 + + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - col1 NOT IN ( + + 40 )
----
46
64
75

query II rowsort
SELECT DISTINCT col1, - col2 * + - 31 FROM tab2
----
51
713
67
1798
77
1240

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

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

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

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

query I rowsort
SELECT - col2 + + - col1 + 76 + + 98 + - 0 * col1 * - 64 + - - col1 + col2 FROM tab2
----
174
174
174

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <> 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT - MIN( - ( - 33 ) ) + - 93 FROM tab2 cor0
----
-126

skipif mysql # not compatible
query I rowsort label-6331
SELECT - MIN ( - ( - 33 ) ) + - 93 FROM tab2 cor0
----
-126

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT COUNT( * ) + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-6333
SELECT COUNT ( * ) + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 + - 99 * + - col0 + - ( + + col0 ) + - col2 + + - 81 + col0 * col2 col2 FROM tab1
----
13285
15001
9754

query I rowsort
SELECT ALL + 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL - COUNT( * ) + SUM( - col0 ) FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - COUNT ( * ) + SUM ( - col0 ) FROM tab2 AS cor0
----
-188

query I rowsort
SELECT DISTINCT - + col1 * col2 * col1 + - col1 * - 59 + col0 + - + col1 + - ( + 48 ) FROM tab1 cor0
----
-1148
-147443
-18001

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN 96 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) - + - 15 FROM tab2 cor0
----
61
79
90

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT 35 IS NULL
----
-14
-47
-5

query II rowsort
SELECT col1 * 53 * col2 AS col0, + col2 FROM tab0
----
11130
10
201771
47
5247
99

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

query I rowsort
SELECT ALL ( + + 47 ) FROM tab0
----
47
47
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6348
SELECT DISTINCT * FROM tab2 WHERE NOT + 78 + - col0 - + CAST( NULL AS SIGNED ) * + col2 NOT IN ( ( + 71 ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-6348
SELECT DISTINCT * FROM tab2 WHERE NOT + 78 + - col0 - + CAST ( NULL AS INTEGER ) * + col2 NOT IN ( ( + 71 ), + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT CAST( - 23 AS SIGNED ) * + 65 * + col2 AS col1 FROM tab0
----
-148005
-14950
-70265

skipif mysql # not compatible
query I rowsort label-6349
SELECT CAST ( - 23 AS INTEGER ) * + 65 * + col2 AS col1 FROM tab0
----
-148005
-14950
-70265

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT COUNT( * ) * 31 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6350
SELECT COUNT ( * ) * 31 FROM tab0
----
93

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 78 BETWEEN NULL AND + - ( + + 26 ) * col1 / col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT - MAX( DISTINCT + + 27 ) FROM tab2 AS cor0 WHERE NOT + col0 > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT - MAX ( DISTINCT + + 27 ) FROM tab2 AS cor0 WHERE NOT + col0 > - col1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT + col0 DIV + 10 FROM tab0
----
1
8
9

skipif mysql # not compatible
query I rowsort label-6356
SELECT + col0 / + 10 FROM tab0
----
1
8
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 20
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 >= + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6359
SELECT ALL col2 DIV 42 col0 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6359
SELECT ALL col2 / 42 col0 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT 65 + - + 41 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - 3 * - + col2 FROM tab2 cor0
----
120
174
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT ALL col0 DIV + + col0 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-6362
SELECT ALL col0 / + + col0 col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 34 * - + 95 FROM tab2 AS cor0
----
3230

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT col0 DIV col1 + col0 FROM tab0 cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-6364
SELECT col0 / col1 + col0 FROM tab0 cor0
----
15
194
91

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

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

skipif mysql # not compatible
query I rowsort label-6366
SELECT + ( col1 ) / + 44 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col0 * - ( - col1 ) + - 49 AS col0 FROM tab0
----
1166
1778
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - COUNT( * ) + MIN( ALL - 27 ) - + - 11 col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6370
SELECT - COUNT ( * ) + MIN ( ALL - 27 ) - + - 11 col1 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col2 FROM tab0
----
-1
-21
-81

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6373
SELECT ALL MIN ( col2 ) col1 FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT ALL CAST( - 37 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL CAST ( - 37 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-37
-37
-37

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

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

query I rowsort
SELECT + 18 * + 65 AS col1 FROM tab2
----
1170
1170
1170

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 AND - - 0 * - col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6381
SELECT - ( - col2 ) DIV - 32 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6381
SELECT - ( - col2 ) / - 32 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + - col2 AND + 90 <> + col0 * - - 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT - 63 DIV - - 45 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 63 / - - 45 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 70 + + col0 * + col1 - - col0 AS col1 FROM tab1
----
4438
580
835

query I rowsort
SELECT DISTINCT + - 84 * - ( col0 ) * + - 83 AS col1 FROM tab2 AS cor0
----
-320712
-446208
-522900

query I rowsort
SELECT ALL - + col2 + + col2 + + + 18 AS col0 FROM tab2 AS cor0
----
18
18
18

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

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE ( + col2 ) - + col0 IS NULL
----

query I rowsort
SELECT + 24 * - col0 + - col0 AS col1 FROM tab0 cor0
----
-2175
-2425
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT DISTINCT + 66 * - COUNT( * ) FROM tab1 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT + 66 * - COUNT ( * ) FROM tab1 cor0
----
-198

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

query I rowsort
SELECT col2 * 19 AS col0 FROM tab2 AS cor0
----
1102
437
760

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

query III rowsort
SELECT * FROM tab2 WHERE + + 43 + col2 - 38 + + 16 IS NULL
----

query II rowsort
SELECT ALL + col0 AS col2, - 6 FROM tab1
----
51
-6
85
-6
91
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT ALL - COUNT( * ) * + + 19 DIV - ( + 91 ) + - COUNT( * ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6396
SELECT ALL - COUNT ( * ) * + + 19 / - ( + 91 ) + - COUNT ( * ) col1 FROM tab0
----
-3

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

query I rowsort
SELECT ALL + col0 * + 36 FROM tab0
----
3132
3492
540

query I rowsort
SELECT DISTINCT + col1 + + - 70 * + + col1 FROM tab2
----
-3519
-4623
-5313

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

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

query II rowsort
SELECT ALL + 55, + 6 * + + col1 + col2 + col1 FROM tab1 AS cor0 WHERE - col2 IN ( - 3 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6404
SELECT DISTINCT col1 DIV + col2, col0 * - - col1 * - + col1 AS col2 FROM tab2
----
1
-336675
1
-379456
2
-119646

skipif mysql # not compatible
query II rowsort label-6404
SELECT DISTINCT col1 / + col2, col0 * - - col1 * - + col1 AS col2 FROM tab2
----
1
-336675
1
-379456
2
-119646

onlyif mysql # aggregate syntax: 
query II rowsort label-6405
SELECT - MAX( - - ( col2 ) ), - SUM( ALL + 54 ) AS col1 FROM tab0 AS cor0
----
-99
-162

skipif mysql # not compatible
query II rowsort label-6405
SELECT - MAX ( - - ( col2 ) ), - SUM ( ALL + 54 ) AS col1 FROM tab0 AS cor0
----
-99
-162

query I rowsort
SELECT DISTINCT 56 FROM tab1 AS cor0 WHERE NOT - col0 < + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL + SUM( DISTINCT + ( + 81 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND + col1
----
81

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + SUM ( DISTINCT + ( + 81 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( NULL ) AND + col1
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 0 * - col0 + - - col2 IS NOT NULL
----

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

query I rowsort
SELECT + - col2 * ( - + 97 ) AS col1 FROM tab0 cor0
----
4559
9603
970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6411
SELECT - MIN( - 76 ) DIV - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6411
SELECT - MIN ( - 76 ) / - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6412
SELECT CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0 WHERE NULL <= - - col1 / ( - + 89 )
----

query II rowsort
SELECT 48 AS col2, col1 * col1 * + col2 AS col1 FROM tab1
----
48
1475
48
150212
48
18816

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

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

query I rowsort
SELECT + 9 * + - col1 FROM tab1
----
-126
-423
-45

query I rowsort
SELECT - + ( - col0 ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN - 60 AND col0 * - 42 * - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL <> NULL
----
0

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

query I rowsort
SELECT - 25 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 16 AS col0 FROM tab2
----
62
80
91

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

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

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

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

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE - col2 * + 1 + col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + col1 * + col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT + COUNT( * ) * - ( + 10 ) FROM tab0 cor0
----
-30

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6430
SELECT col2 * col0, + col1 + + CAST( - ( + 96 ) AS SIGNED ) + 71 * - col2 AS col2 FROM tab0 AS cor0
----
705
-3352
870
-785
9603
-7124

skipif mysql # not compatible
query II rowsort label-6430
SELECT col2 * col0, + col1 + + CAST ( - ( + 96 ) AS INTEGER ) + 71 * - col2 AS col2 FROM tab0 AS cor0
----
705
-3352
870
-785
9603
-7124

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT - 79 DIV - 87 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT - 79 / - 87 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT COUNT( - + 60 ) * + 83 * - COUNT( * ) FROM tab1
----
-747

skipif mysql # not compatible
query I rowsort label-6434
SELECT COUNT ( - + 60 ) * + 83 * - COUNT ( * ) FROM tab1
----
-747

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6436
SELECT ALL - col1, col2 * - CAST( NULL AS SIGNED ) + - - 49 col0 FROM tab1 WHERE NOT - 44 > - - col2
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6436
SELECT ALL - col1, col2 * - CAST ( NULL AS INTEGER ) + - - 49 col0 FROM tab1 WHERE NOT - 44 > - - col2
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6437
SELECT ALL + col0 * + + col1 DIV col1 AS col2, + col1 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-6437
SELECT ALL + col0 * + + col1 / col1 AS col2, + col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT - 39 + - + col2 AS col1 FROM tab2 cor0
----
-62
-79
-97

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

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

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

query I rowsort
SELECT - 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT col1 * 27 * + - col0 AS col1 FROM tab2
----
-133056
-135675
-63342

onlyif mysql # DIV for integer division: 
query I rowsort label-6443
SELECT ALL 72 DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL 72 / col2 AS col0 FROM tab1
----
0
1
1

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

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

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

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

query I rowsort
SELECT + + col2 * ( + - col2 ) + - col0 FROM tab2 cor0
----
-1664
-3439
-575

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT - MIN( ALL + col0 ) * COUNT( * ) + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT - MIN ( ALL + col0 ) * COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT - 45 DIV - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6449
SELECT - 45 / - col1 FROM tab2 cor0
----
0
0
0

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

query II rowsort
SELECT ALL + ( col1 ), + 44 * - 7 FROM tab1
----
14
-308
47
-308
5
-308

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 71 / 35 + + 17 + - 59 + - 92 + col2 * + + col0 < - + col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT + col1 - 51 DIV + - col1 FROM tab0 AS cor0
----
23
52
81

skipif mysql # not compatible
query I rowsort label-6457
SELECT + col1 - 51 / + - col1 FROM tab0 AS cor0
----
23
52
81

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

query I rowsort
SELECT DISTINCT + - 40 + - - col2 FROM tab1 AS cor0
----
19
28
56

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + col0 >= - col1
----
-15
-87
-97

query I rowsort
SELECT ALL col2 + 81 AS col2 FROM tab2 AS cor0
----
104
121
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT + + col1 col1 FROM tab2 WHERE + col1 / - col0 * + - CAST( + col1 AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6462
SELECT + + col1 col1 FROM tab2 WHERE + col1 / - col0 * + - CAST ( + col1 AS INTEGER ) IS NOT NULL
----
51
67
77

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

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

query I rowsort
SELECT DISTINCT + 76 * col2 AS col2 FROM tab2
----
1748
3040
4408

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

query I rowsort
SELECT 72 AS col0 FROM tab2 WHERE ( NOT + col0 <> - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + ( - COUNT( * ) ) - - + 37 FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + ( - COUNT ( * ) ) - - + 37 FROM tab1 cor0
----
34

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - 34 * - - 14 * - MAX( 82 ) FROM tab2 cor0
----
39032

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - 34 * - - 14 * - MAX ( 82 ) FROM tab2 cor0
----
39032

query I rowsort
SELECT ALL - + col1 * - 69 + + col2 * + col1 AS col2 FROM tab1 cor0
----
2310
640
6439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT - - SUM( ALL - col2 ) DIV + - MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6474
SELECT - - SUM ( ALL - col2 ) / + - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-10

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

query I rowsort
SELECT ALL - 95 * + col1 * - + col2 + - + col1 AS col2 FROM tab0 AS cor0
----
19929
361584
9404

onlyif mysql # DIV for integer division: 
query II rowsort label-6477
SELECT - + col0 DIV - + col0 + col1 col1, col0 AS col1 FROM tab0 cor0
----
2
97
22
87
82
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6477
SELECT - + col0 / - + col0 + col1 col1, col0 AS col1 FROM tab0 cor0
----
2
97
22
87
82
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT - SUM( + col0 ) DIV + 53 AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6478
SELECT - SUM ( + col0 ) / + 53 AS col0 FROM tab0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT - COUNT( DISTINCT + - 46 ) * - + 56 AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-6480
SELECT - COUNT ( DISTINCT + - 46 ) * - + 56 AS col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6481
SELECT + COUNT( * ) AS col2, ( + 75 ) DIV + - 76 + ( - MIN( ALL + 4 ) ) + - + 35 FROM tab2
----
3
-39

skipif mysql # not compatible
query II rowsort label-6481
SELECT + COUNT ( * ) AS col2, ( + 75 ) / + - 76 + ( - MIN ( ALL + 4 ) ) + - + 35 FROM tab2
----
3
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6482
SELECT DISTINCT - col1 * - col1 + - + col2 + - 79 / + CAST( NULL AS DECIMAL ) / + ( - ( ( - col1 ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - col1 * - col1 + - + col2 + - 79 / + CAST ( NULL AS REAL ) / + ( - ( ( - col1 ) ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT col1 * - - col2 DIV col2 + - col1 + - + 3 DIV + 78 * col1 - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT col1 * - - col2 / col2 + - col1 + - + 3 / + 78 * col1 - col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - 73 * + - col1 FROM tab1 AS cor0
----
1022
3431
365

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= - - 9
----

query II rowsort
SELECT DISTINCT + col2 AS col2, 13 FROM tab2 AS cor0
----
23
13
40
13
58
13

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 + + col0 + - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
15
255
87
7743
97
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT + CAST( - 21 AS SIGNED ) + - + col0 + + 33 * col1 FROM tab2 AS cor0
----
1616
2115
2456

skipif mysql # not compatible
query I rowsort label-6489
SELECT + CAST ( - 21 AS INTEGER ) + - + col0 + + 33 * col1 FROM tab2 AS cor0
----
1616
2115
2456

query I rowsort
SELECT - 64 AS col2 FROM tab2, tab2 AS cor0 WHERE + 81 IS NOT NULL
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT - 68 + - - col0 FROM tab2
----
-22
-4
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6493
SELECT + ( - CAST( + + 91 AS SIGNED ) ), - col2 FROM tab2 AS cor0 WHERE NULL <> + 71 + - col0 * + 84
----

skipif mysql # not compatible
query II rowsort label-6493
SELECT + ( - CAST ( + + 91 AS INTEGER ) ), - col2 FROM tab2 AS cor0 WHERE NULL <> + 71 + - col0 * + 84
----

query I rowsort
SELECT DISTINCT - 44 + - + 41 + - col2 + - - col2 AS col2 FROM tab0 cor0
----
-85

query II rowsort
SELECT DISTINCT - 30 + + col0 AS col1, col2 FROM tab2 cor0
----
16
23
34
40
45
58

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

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

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

query I rowsort
SELECT - - 36 * - 56 AS col2 FROM tab0 AS cor0
----
-2016
-2016
-2016

query I rowsort
SELECT + col1 * - 86 - + col1 AS col0 FROM tab0 AS cor0
----
-1827
-7047
-87

query I rowsort
SELECT ALL - - col0 + + + 15 FROM tab0 AS cor0
----
102
112
30

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT 8 DIV + COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-6502
SELECT 8 / + COUNT ( * ) FROM tab0
----
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT 77 DIV + - COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6504
SELECT 77 / + - COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT + 33 * + COUNT( DISTINCT 42 ) FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-6505
SELECT + 33 * + COUNT ( DISTINCT 42 ) FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL + 27 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + 27 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT - COUNT( * ) FROM tab0 WHERE NOT + - 56 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6508
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + - 56 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT 97 + + + COUNT( * ) col0, COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
106
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6509
SELECT 97 + + + COUNT ( * ) col0, COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
106
9

query I rowsort
SELECT ALL - col2 * col2 - + 8 FROM tab0 WHERE NOT - - col0 IS NULL
----
-108
-2217
-9809

query I rowsort
SELECT DISTINCT + 86 + ( + 74 ) * 74 AS col0 FROM tab0 AS cor0
----
5562

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6513
SELECT * FROM tab0 cor0 WHERE CAST( 28 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6513
SELECT * FROM tab0 cor0 WHERE CAST ( 28 AS INTEGER ) IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT + 18 DIV + - col1 AS col0 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6515
SELECT + 18 / + - col1 AS col0 FROM tab1
----
-1
-3
0

query I rowsort
SELECT ALL + ( - 44 ) FROM tab2
----
-44
-44
-44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT - col2 + col2 + col1 * - + col1 + - + 18 DIV - + col1 + + - col0 * + - col2 FROM tab1 cor0
----
3979
4701
4993

skipif mysql # not compatible
query I rowsort label-6518
SELECT - col2 + col2 + col1 * - + col1 + - + 18 / - + col1 + + - col0 * + - col2 FROM tab1 cor0
----
3979
4701
4993

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT - MIN( + col2 ) + - COUNT( + col2 ) col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6519
SELECT - MIN ( + col2 ) + - COUNT ( + col2 ) col1 FROM tab0 AS cor0
----
-13

query II rowsort
SELECT 73 + col2 AS col0, - 89 AS col0 FROM tab2 AS cor0
----
113
-89
131
-89
96
-89

query I rowsort
SELECT DISTINCT col0 - + + col2 * - 53 FROM tab1 AS cor0
----
3212
3695
5139

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

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL MAX ( col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 = col2
----

query I rowsort
SELECT + col1 + - 38 AS col2 FROM tab2 AS cor0
----
13
29
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT + - COUNT( * ), MAX( + + col0 ) AS col1 FROM tab0 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-6525
SELECT + - COUNT ( * ), MAX ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-3
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT + MAX( + ( + 4 ) ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6526
SELECT + MAX ( + ( + 4 ) ) FROM tab1
----
4

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

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

query II rowsort
SELECT + col1 * - - 59, 7 AS col0 FROM tab0
----
1239
7
4779
7
59
7

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

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

skipif mysql # not compatible
query I rowsort label-6531
SELECT + MAX ( + col2 ) AS col2 FROM tab2
----
58

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

query I rowsort
SELECT - col0 * - col1 * - 64 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27200
-273728
-45696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + 13 + + + col0 * col1 col1 FROM tab0 AS cor0
----
1275
1850
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6535
SELECT DISTINCT - CAST( - + 32 AS SIGNED ) * + col2 FROM tab2 cor0
----
1280
1856
736

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - CAST ( - + 32 AS INTEGER ) * + col2 FROM tab2 cor0
----
1280
1856
736

query I rowsort
SELECT ALL - col0 * 84 + + 89 AS col2 FROM tab2 cor0
----
-3775
-5287
-6211

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 38, + ( + - 12 ) col1 FROM tab2 AS cor0
----
38
-12
38
-12
38
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT MAX( - 86 ) col1 FROM tab0
----
-86

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

query I rowsort
SELECT DISTINCT + 65 + - col2 FROM tab2
----
25
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + - 95 + - 45 + MAX( ALL + + col2 ) + 9 * 7 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6542
SELECT + - 95 + - 45 + MAX ( ALL + + col2 ) + 9 * 7 FROM tab1 AS cor0
----
19

query I rowsort
SELECT + + 34 * + - 93 + - col1 AS col1 FROM tab1 AS cor0
----
-3167
-3176
-3209

query I rowsort
SELECT col1 + - 98 AS col2 FROM tab1
----
-51
-84
-93

query I rowsort
SELECT ALL - - col1 + - 61 AS col1 FROM tab2 AS cor0
----
-10
16
6

query I rowsort
SELECT 45 - col2 AS col2 FROM tab2 AS cor0
----
-13
22
5

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

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + SUM ( DISTINCT - col1 ) + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6548
SELECT + COUNT( ALL + - 77 ) - + + MIN( + CAST( + + col2 AS SIGNED ) ) AS col0, 72 col0 FROM tab1 AS cor0
----
-56
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6548
SELECT + COUNT ( ALL + - 77 ) - + + MIN ( + CAST ( + + col2 AS INTEGER ) ) AS col0, 72 col0 FROM tab1 AS cor0
----
-56
72

query I rowsort
SELECT DISTINCT + 22 * col1 - - - col0 FROM tab0 AS cor0
----
-75
1767
375

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT - COUNT( * ) * 48 AS col2 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - COUNT ( * ) * 48 AS col2 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT MAX( + col1 ) * - COUNT( * ) AS col0 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT MAX ( + col1 ) * - COUNT ( * ) AS col0 FROM tab1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT MAX( - ( + + col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT MAX ( - ( + + col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT DISTINCT - MIN( + + 80 ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - MIN ( + + 80 ) FROM tab2
----
-80

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6556
SELECT + COUNT( * ) * 52 DIV CAST( + 59 AS SIGNED ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6556
SELECT + COUNT ( * ) * 52 / CAST ( + 59 AS INTEGER ) FROM tab1
----
2

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6559
SELECT - - MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 47 - + col1 * + + 74 + + 27 NOT IN ( + col2 + - 72 * + + ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 61 + - col0 AS col1, + col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-112
0
-146
0
-152
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + - MAX( + - 66 ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + - MAX ( + - 66 ) AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6565
SELECT * FROM tab1 cor0 WHERE NOT - 52 + - ( - CAST( NULL AS SIGNED ) ) - 1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6565
SELECT * FROM tab1 cor0 WHERE NOT - 52 + - ( - CAST ( NULL AS INTEGER ) ) - 1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 8 + - + 62 + - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( col2 - - 78 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 < - col2
----
97
1
99

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

query I rowsort
SELECT - col1 + col1 + - ( 65 ) AS col1 FROM tab2
----
-65
-65
-65

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

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

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

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT + COUNT ( * ) + 20 FROM tab1
----
23

query I rowsort
SELECT ALL - 5 * 25 AS col1 FROM tab1
----
-125
-125
-125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6575
SELECT ( + col1 ) + - CAST( NULL AS SIGNED ) AS col0, 65 FROM tab2
----
NULL
65
NULL
65
NULL
65

skipif mysql # not compatible
query II rowsort label-6575
SELECT ( + col1 ) + - CAST ( NULL AS INTEGER ) AS col0, 65 FROM tab2
----
NULL
65
NULL
65
NULL
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL + 67 + - CAST( + 92 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + 67 + - CAST ( + 92 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col2 * + 88 - - col1 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-860
2936
8712

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + - COUNT( * ) * - 60 AS col1 FROM tab2 AS cor0 WHERE + col1 + 9 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT + - COUNT ( * ) * - 60 AS col1 FROM tab2 AS cor0 WHERE + col1 + 9 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT ALL col2 DIV ( + ( + - col0 ) ) + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL col2 / ( + ( + - col0 ) ) + col2 FROM tab2
----
23
40
58

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

query I rowsort
SELECT DISTINCT + + col2 * + 40 - + - 73 FROM tab2 AS cor0
----
1673
2393
993

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 > - col1
----

query I rowsort
SELECT ALL + 98 * - col2 AS col1 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT DISTINCT 44 DIV + - col1 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT 44 / + - col1 FROM tab1
----
-3
-8
0

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

query I rowsort
SELECT - ( 59 ) AS col1 FROM tab1
----
-59
-59
-59

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

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

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

query I rowsort
SELECT - 17 * - + col1 AS col2 FROM tab0 AS cor0
----
1377
17
357

query II rowsort
SELECT ALL + col2 * col1 * - + col1 * - - col0, 31 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-125375
31
-13669292
31
-959616
31

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

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

query I rowsort
SELECT DISTINCT col1 + + ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
138
65
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT - SUM( ALL 89 ) AS col2 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT - SUM ( ALL 89 ) AS col2 FROM tab2 AS cor0
----
-267

query I rowsort
SELECT - 82 * ( + col0 ) FROM tab0
----
-1230
-7134
-7954

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT DISTINCT - SUM( + - 70 ) col1, + COUNT( * ) FROM tab2, tab1 AS cor0
----
630
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6599
SELECT DISTINCT - SUM ( + - 70 ) col1, + COUNT ( * ) FROM tab2, tab1 AS cor0
----
630
9

query I rowsort
SELECT ALL + col2 * ( + 38 ) AS col0 FROM tab0
----
1786
3762
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) - col2 col1 FROM tab2
----
17
23
24

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT - col0 DIV col0 + + 61 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - col0 / col0 + + 61 FROM tab2 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - 75 * + 19 - col0 col2 FROM tab0 AS cor0
----
123888
138128
21360

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT CAST( NULL AS SIGNED ) + CAST( + + 29 AS SIGNED ) * + col0 * + col0 FROM tab0 AS cor0 WHERE NOT 64 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6607
SELECT CAST ( NULL AS INTEGER ) + CAST ( + + 29 AS INTEGER ) * + col0 * + col0 FROM tab0 AS cor0 WHERE NOT 64 <> NULL
----

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

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

query I rowsort
SELECT - 62 * + col1 + - col2 * - col0 FROM tab2 AS cor0
----
-2104
-2214
196

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

query I rowsort
SELECT DISTINCT + col1 * - - 30 - - - col1 - + col1 + + - col0 AS col2 FROM tab1 AS cor0
----
1225
341
55

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

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

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

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

query I rowsort
SELECT 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT - ( - 72 ) FROM tab0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT DISTINCT + SUM( 63 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
567

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT + SUM ( 63 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
567

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 >= NULL
----

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

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

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL >= + 12
----

query I rowsort
SELECT DISTINCT - col1 + + + 55 AS col0 FROM tab1 AS cor0
----
41
50
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + COUNT( col0 ) + - + 46 + - - 73 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6623
SELECT + COUNT ( col0 ) + - + 46 + - - 73 FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT + 14 - - col1 AS col0 FROM tab1 AS cor0
----
19
28
61

query II rowsort
SELECT ALL + col0 AS col2, - col1 FROM tab2
----
46
-51
64
-77
75
-67

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6627
SELECT DISTINCT col1 AS col1, col2 DIV - col2 FROM tab0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-6627
SELECT DISTINCT col1 AS col1, col2 / - col2 FROM tab0
----
1
-1
21
-1
81
-1

query I rowsort
SELECT DISTINCT + 4 + - col1 FROM tab2
----
-47
-63
-73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT - SUM( DISTINCT - 40 ) * - COUNT( * ) AS col2 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-6631
SELECT - SUM ( DISTINCT - 40 ) * - COUNT ( * ) AS col2 FROM tab0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + 58 / - col0 AND + 93
----
-3

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + 58 / - col0 AND + 93
----
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT ALL + COUNT( col0 ) AS col0, + 14 FROM tab2 AS cor0
----
3
14

skipif mysql # not compatible
query II rowsort label-6634
SELECT ALL + COUNT ( col0 ) AS col0, + 14 FROM tab2 AS cor0
----
3
14

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT - - 20 * - ( MIN( ALL + 98 ) ) FROM tab0 AS cor0
----
-1960

skipif mysql # not compatible
query I rowsort label-6637
SELECT - - 20 * - ( MIN ( ALL + 98 ) ) FROM tab0 AS cor0
----
-1960

query I rowsort
SELECT DISTINCT + col2 * + col1 + + ( - - col0 ) AS col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL + col1 * + 14 * - col0 FROM tab2 AS cor0
----
-32844
-68992
-70350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT col0 DIV + - col1 AS col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT col0 / + - col1 AS col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT - 32 AS col2, - 28 - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 62 IS NOT NULL
----
-32
-31

skipif mysql # not compatible
query II rowsort label-6642
SELECT - 32 AS col2, - 28 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 62 IS NOT NULL
----
-32
-31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT DISTINCT - COUNT( * ) DIV - ( 61 ) + + COUNT( 8 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - COUNT ( * ) / - ( 61 ) + + COUNT ( 8 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT 81 * col1 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT COUNT( * ) * 45 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-6648
SELECT COUNT ( * ) * 45 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT 87 * + ( COUNT( 7 ) ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-6649
SELECT 87 * + ( COUNT ( 7 ) ) FROM tab2
----
261

query I rowsort
SELECT ALL - 55 * - col1 FROM tab2
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL + 19 * COUNT( col1 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + 19 * COUNT ( col1 ) FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT - SUM( DISTINCT + col2 ) * + 13 + + COUNT( * ) FROM tab1
----
-2896

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - SUM ( DISTINCT + col2 ) * + 13 + + COUNT ( * ) FROM tab1
----
-2896

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT NULL < ( + 1 )
----

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

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

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

query I rowsort
SELECT 54 + - 20 FROM tab2
----
34
34
34

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

query I rowsort
SELECT ALL - ( + 92 ) FROM tab1
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT MIN( ALL col1 ) + MIN( DISTINCT + col2 ) FROM tab1 WHERE ( NULL ) IS NULL
----
64

skipif mysql # not compatible
query I rowsort label-6659
SELECT MIN ( ALL col1 ) + MIN ( DISTINCT + col2 ) FROM tab1 WHERE ( NULL ) IS NULL
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 58 * - col0 NOT BETWEEN + 92 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6661
SELECT DISTINCT MIN( ALL col0 ) DIV COUNT( * ) AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT MIN ( ALL col0 ) / COUNT ( * ) AS col0 FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT + ( + col0 ) DIV - 41 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT + ( + col0 ) / - 41 FROM tab0
----
-2
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT col2 DIV 7 FROM tab2
----
3
5
8

skipif mysql # not compatible
query I rowsort label-6663
SELECT col2 / 7 FROM tab2
----
3
5
8

query I rowsort
SELECT DISTINCT - 16 FROM tab1 WHERE ( col1 + ( + col2 ) ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT 60 + - MIN( ALL + ( col1 ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6665
SELECT 60 + - MIN ( ALL + ( col1 ) ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT DISTINCT MAX( col1 ) * + 77 FROM tab1 AS cor0
----
3619

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT MAX ( col1 ) * + 77 FROM tab1 AS cor0
----
3619

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT 45 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
405

skipif mysql # not compatible
query I rowsort label-6668
SELECT 45 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
405

query I rowsort
SELECT ( + 10 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

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

query I rowsort
SELECT col1 * - col2 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + 7 + 57 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6672
SELECT - COUNT( * ) DIV MIN( col2 * col1 + - col0 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6672
SELECT - COUNT ( * ) / MIN ( col2 * col1 + - col0 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT SUM( ALL - 4 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT SUM ( ALL - 4 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 - + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 91 * 41 AS col2 FROM tab0 AS cor0
----
-3731
-3731
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT MIN( - 22 ) FROM tab2 AS cor0 WHERE NOT 26 IS NULL
----
-22

skipif mysql # not compatible
query I rowsort label-6675
SELECT MIN ( - 22 ) FROM tab2 AS cor0 WHERE NOT 26 IS NULL
----
-22

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

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

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT ALL + 18 DIV col2 AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + 18 / col2 AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL 14 FROM tab1 WHERE NULL IS NULL
----
14
14
14

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 22 * 55 NOT BETWEEN NULL AND ( col2 ) * - col2
----

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

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + CAST ( NULL AS INTEGER ) + + 30 / COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT col0 + + + col2 * - col0 AS col2 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT + col1 FROM tab1 WHERE NOT NULL IS NULL OR NOT + CAST( NULL AS SIGNED ) + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6685
SELECT + col1 FROM tab1 WHERE NOT NULL IS NULL OR NOT + CAST ( NULL AS INTEGER ) + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT - 32 + + COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - 32 + + COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT + - col2 * + col0 - + col2 + - 81 AS col2 FROM tab1 AS cor0
----
-5073
-5155
-6337

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT - 15 * MAX( 72 ) AS col2 FROM tab2 AS cor0
----
-1080

skipif mysql # not compatible
query I rowsort label-6688
SELECT - 15 * MAX ( 72 ) AS col2 FROM tab2 AS cor0
----
-1080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + 52 col0 FROM tab2
----
-12
-29
6

query I rowsort
SELECT DISTINCT - 31 + - 30 AS col0 FROM tab1
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT 78 + COUNT( * ) * 34 AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT 78 + COUNT ( * ) * 34 AS col2 FROM tab2 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT + COUNT( * ) + + 82 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-6693
SELECT + COUNT ( * ) + + 82 FROM tab2 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE 30 * - - col2 IN ( + ( + 66 ) )
----

query I rowsort
SELECT col2 * col1 + + + col2 + 5 AS col1 FROM tab0 AS cor0
----
203
225
3859

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

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

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

skipif mysql # not compatible
query I rowsort label-6697
SELECT col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT ALL + CAST( + col2 AS SIGNED ) - + 2 FROM tab2 AS cor0
----
21
38
56

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + CAST ( + col2 AS INTEGER ) - + 2 FROM tab2 AS cor0
----
21
38
56

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN 65 AND 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-6703
SELECT DISTINCT 62 DIV 7 * + ( - ( col1 ) ) - col2 FROM tab0
----
-107
-178
-695

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 62 / 7 * + ( - ( col1 ) ) - col2 FROM tab0
----
-107
-178
-695

query III rowsort
SELECT * FROM tab2 WHERE + 92 BETWEEN col1 * col2 + 58 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT DISTINCT + 91 * 91 + COUNT( col2 ) FROM tab0 AS cor0 WHERE NOT CAST( + - col2 AS SIGNED ) IS NOT NULL
----
8281

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT + 91 * 91 + COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT CAST ( + - col2 AS INTEGER ) IS NOT NULL
----
8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6706
SELECT DISTINCT + CAST( + 28 AS SIGNED ) AS col1, - col1 * + 99 FROM tab1 AS cor0
----
28
-1386
28
-4653
28
-495

skipif mysql # not compatible
query II rowsort label-6706
SELECT DISTINCT + CAST ( + 28 AS INTEGER ) AS col1, - col1 * + 99 FROM tab1 AS cor0
----
28
-1386
28
-4653
28
-495

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

skipif mysql # not compatible
query I rowsort label-6707
SELECT + CAST ( + 18 AS INTEGER ) FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE col2 * + col2 * + col2 + ( 50 ) <= + col1
----

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

query I rowsort
SELECT - 46 FROM tab1 AS cor0 WHERE NOT + 39 - - col1 IS NOT NULL
----

query I rowsort
SELECT - col2 * 7 AS col1 FROM tab0 AS cor0
----
-329
-693
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6714
SELECT - CAST( ( + + MAX( + 92 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-6714
SELECT - CAST ( ( + + MAX ( + 92 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-92

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

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

query II rowsort
SELECT col1 AS col0, + col1 * - + ( + col0 ) FROM tab0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT ALL + ( - col1 ) + col0 + + col2 AS col2 FROM tab1
----
112
133
139

query I rowsort
SELECT ALL - + 67 FROM tab2 WHERE NULL < NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col1 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 45 ) FROM tab2 WHERE NULL NOT IN ( - col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT 43 / - col2 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IN ( col0 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-6724
SELECT 43 / - col2 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IN ( col0 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 49 IS NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL - 60 + + CAST( + - 80 AS SIGNED ) + - col2 + col0 - - + 36 AS col0 FROM tab2 AS cor0
----
-80
-81
-87

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - 60 + + CAST ( + - 80 AS INTEGER ) + - col2 + col0 - - + 36 AS col0 FROM tab2 AS cor0
----
-80
-81
-87

query I rowsort
SELECT 26 * col0 AS col2 FROM tab2 AS cor0 WHERE 94 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT DISTINCT col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + 17 / + 19 + + 8 + + 38 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + 17 / + 19 + + 8 + + 38 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT DISTINCT 91 * + CAST( 1 AS SIGNED ) AS col2 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT 91 * + CAST ( 1 AS INTEGER ) AS col2 FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT - SUM( - - ( - col0 ) ) + - 39 AS col0 FROM tab1
----
188

skipif mysql # not compatible
query I rowsort label-6732
SELECT - SUM ( - - ( - col0 ) ) + - 39 AS col0 FROM tab1
----
188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT - COUNT( - 67 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6734
SELECT - COUNT ( - 67 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 58 / - 14 * - col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + - SUM( col1 ) - + - 20 AS col0 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6737
SELECT + - SUM ( col1 ) - + - 20 AS col0 FROM tab1 cor0
----
-46

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

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 64 * col1 * CAST ( NULL AS INTEGER ) * - + col0 - + 74 * - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6739
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col2 + + 80 * - col0 NOT BETWEEN ( 67 ) AND - col0 * - CAST( NULL AS SIGNED ) * - ( col1 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col2 + + 80 * - col0 NOT BETWEEN ( 67 ) AND - col0 * - CAST ( NULL AS INTEGER ) * - ( col1 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT + 82 * + MAX( DISTINCT - - col1 ) * + 28 - + COUNT( * ) FROM tab1 AS cor0
----
107909

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + 82 * + MAX ( DISTINCT - - col1 ) * + 28 - + COUNT ( * ) FROM tab1 AS cor0
----
107909

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

query I rowsort
SELECT ALL 49 * + - 75 FROM tab2
----
-3675
-3675
-3675

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN - - col1 AND + 88
----

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

query I rowsort
SELECT - col2 * - - col0 AS col1 FROM tab1
----
-4896
-5015
-6188

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

skipif mysql # not compatible
query I rowsort label-6746
SELECT - 78 AS col2 FROM tab0 WHERE NOT - ( + CAST ( 28 AS REAL ) ) * col2 + - col2 + - col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6748
SELECT 80 * COUNT( * ) DIV - 40 AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6748
SELECT 80 * COUNT ( * ) / - 40 AS col1 FROM tab2
----
-6

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + 94 + + 54 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + - 0 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + 37 + + - 27 AS col1 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT col1 * + 25 FROM tab0 AS cor0
----
2025
25
525

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

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

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

query I rowsort
SELECT ALL - 83 * + col0 FROM tab1 AS cor0
----
-4233
-7055
-7553

query I rowsort
SELECT + + ( 97 ) FROM tab2 cor0
----
97
97
97

query II rowsort
SELECT col1, - col0 + - + ( - 92 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 57 >= col2
----
1
-5
21
5
81
77

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

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

query I rowsort
SELECT ALL + ( + col0 ) * - - 20 FROM tab0 AS cor0 WHERE NOT + 41 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - col1 * - col0 + + - 35 FROM tab0
----
1180
1792
62

query I rowsort
SELECT col2 * + 1 + - col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6764
SELECT * FROM tab2 WHERE + CAST( - 24 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6764
SELECT * FROM tab2 WHERE + CAST ( - 24 AS INTEGER ) IS NULL
----

query II rowsort
SELECT - col0 * - col1 + - - col0 AS col2, + col2 * - col0 AS col0 FROM tab1
----
4368
-6188
510
-5015
765
-4896

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6767
SELECT col1 * - 68 + + ( - 88 ) DIV - - 98 AS col0, col1 AS col1 FROM tab2 AS cor0
----
-3468
51
-4556
67
-5236
77

skipif mysql # not compatible
query II rowsort label-6767
SELECT col1 * - 68 + + ( - 88 ) / - - 98 AS col0, col1 AS col1 FROM tab2 AS cor0
----
-3468
51
-4556
67
-5236
77

query I rowsort
SELECT ALL col1 * - 4 AS col0 FROM tab1 AS cor0
----
-188
-20
-56

query I rowsort
SELECT ALL - + col0 * - + col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT * FROM tab1 cor0 WHERE 43 + - - col1 * - col2 BETWEEN NULL AND - 5
----

query II rowsort
SELECT DISTINCT col2 + + col0 * - 2 AS col1, + col1 * + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + - col2 * col0 * + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT CAST( - + 12 AS SIGNED ) * + 29 - CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-271
-281
-297

skipif mysql # not compatible
query I rowsort label-6773
SELECT CAST ( - + 12 AS INTEGER ) * + 29 - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-271
-281
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + + col1 col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 14 * 3 * + ( + col0 ) + + - col2 * - 38 - col1 FROM tab0 AS cor0
----
2335
4013
7835

query I rowsort
SELECT 15 + 70 FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT ALL - + 92 * - col1 + - + 56 + - - 89 + + 58 FROM tab0 AS cor0
----
183
2023
7543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NOT - 91 NOT IN ( + + col2, - 68 * - - col2 * + col1 - ( - - col0 ) - - + col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL MIN( DISTINCT + col0 ) * - + 38 col1 FROM tab2 AS cor0
----
-1748

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6779
SELECT ALL MIN ( DISTINCT + col0 ) * - + 38 col1 FROM tab2 AS cor0
----
-1748

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

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

query I rowsort
SELECT ALL + - col2 * + 68 AS col2 FROM tab1 AS cor0
----
-4012
-4624
-6528

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

query I rowsort
SELECT + 15 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 >= 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col1 * 37 col0 FROM tab1
----
10915
118252
49728

query I rowsort
SELECT + 13 * col1 * col0 AS col1 FROM tab1
----
5525
55601
9282

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

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

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

skipif mysql # not compatible
query III rowsort label-6788
SELECT ALL * FROM tab2 WHERE NULL IN ( CAST ( col1 AS INTEGER ), col0, col0, + col1 + col0 * - col2 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT 49 DIV - MIN( col1 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-6791
SELECT 49 / - MIN ( col1 ) FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6792
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6792
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT + MAX( DISTINCT - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6793
SELECT + MAX ( DISTINCT - col0 ) AS col1 FROM tab0
----
-15

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

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

query II rowsort
SELECT ALL col1, + col0 * + col2 AS col0 FROM tab0
----
1
9603
21
870
81
705

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6797
SELECT DISTINCT + MAX( + col1 ) DIV + SUM( ALL col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + MAX ( + col1 ) / + SUM ( ALL col0 ) FROM tab2 cor0
----
0

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

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

query III rowsort
SELECT * FROM tab2 WHERE 66 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL MAX( - 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL MAX ( - 40 ) FROM tab2
----
-40

query I rowsort
SELECT ALL + ( col1 ) + - + 71 AS col0 FROM tab1
----
-24
-57
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6803
SELECT DISTINCT col2 + 5, - CAST( NULL AS SIGNED ) * col2 * col1 AS col0 FROM tab0
----
104
NULL
15
NULL
52
NULL

skipif mysql # not compatible
query II rowsort label-6803
SELECT DISTINCT col2 + 5, - CAST ( NULL AS INTEGER ) * col2 * col1 AS col0 FROM tab0
----
104
NULL
15
NULL
52
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT ALL col1 + col1 * + ( - 35 ) + - ( - 80 ) DIV 14 * + col2 * + - 17 + - col2 FROM tab0
----
-1574
-6796
-8548

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL col1 + col1 * + ( - 35 ) + - ( - 80 ) / 14 * + col2 * + - 17 + - col2 FROM tab0
----
-1574
-6796
-8548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT ALL CAST( col1 AS SIGNED ) + + 80 FROM tab0 AS cor0
----
101
161
81

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL CAST ( col1 AS INTEGER ) + + 80 FROM tab0 AS cor0
----
101
161
81

query I rowsort
SELECT 66 + 16 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT ALL - 82 / + col0 + - - CAST( NULL AS SIGNED ) - - col0 * + - 62 / - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - 82 / + col0 + - - CAST ( NULL AS INTEGER ) - - col0 * + - 62 / - 57 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - ( - + ( + COUNT ( * ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT 70 * - 23 * + COUNT( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
-4830

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

query I rowsort
SELECT ( - 98 ) FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-6815
SELECT 14 AS col2, col0 DIV 50 DIV + 32 AS col2 FROM tab2 cor0
----
14
0
14
0
14
0

skipif mysql # not compatible
query II rowsort label-6815
SELECT 14 AS col2, col0 / 50 / + 32 AS col2 FROM tab2 cor0
----
14
0
14
0
14
0

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

query II rowsort
SELECT + 74, - ( col2 ) * - col0 AS col1 FROM tab0 AS cor0
----
74
705
74
870
74
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + MAX( 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6818
SELECT + MAX ( 78 ) FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT MAX( ALL - - col2 ) * 25 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IN ( + 17, + 0 * + + col1, + col2 )
----
1450

skipif mysql # not compatible
query I rowsort label-6819
SELECT MAX ( ALL - - col2 ) * 25 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IN ( + 17, + 0 * + + col1, + col2 )
----
1450

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT col1 * + CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6823
SELECT col1 * + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6824
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE - + 17 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE - + 17 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT DISTINCT - 28 * - MAX( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab1
----
1316

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - 28 * - MAX ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1
----
1316

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 98 + ( col1 ) AS col0 FROM tab2 AS cor0
----
149
165
175

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT + 58 DIV + col1 AS col1 FROM tab1 cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + 58 / + col1 AS col1 FROM tab1 cor0
----
1
11
4

query II rowsort
SELECT - ( 5 ) * col0 AS col0, col0 + + + col2 AS col2 FROM tab1 cor0
----
-255
147
-425
144
-455
159

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

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

query I rowsort
SELECT DISTINCT + col2 + - col0 - + 57 FROM tab0 AS cor0
----
-134
-25
-55

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

skipif mysql # not compatible
query I rowsort label-6834
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 70 + - MAX ( - + col1 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - col0 + + col0 + + 86 + - col2 + col2 FROM tab2 cor0
----
-2214
-4778
-4864

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - - 14 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT ALL COUNT( * ) col2, COUNT( * ) * + 90 AS col0 FROM tab2
----
3
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6837
SELECT ALL COUNT ( * ) col2, COUNT ( * ) * + 90 AS col0 FROM tab2
----
3
270

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

query I rowsort
SELECT DISTINCT 33 + - col2 FROM tab2 AS cor0
----
-25
-7
10

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

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

query I rowsort
SELECT ALL 98 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

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

query I rowsort
SELECT ALL - col2 + 94 FROM tab0 AS cor0
----
-5
47
84

query I rowsort
SELECT ALL col2 * col1 * + 43 AS col0 FROM tab0
----
163701
4257
9030

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT col1 DIV + 73 + - + col0 FROM tab0 AS cor0
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-6850
SELECT col1 / + 73 + - + col0 FROM tab0 AS cor0
----
-14
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - + col0 ) IN ( - - col1 - + col2 )
----

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

query I rowsort
SELECT - - 49 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
49
49
49

query I rowsort
SELECT DISTINCT 30 + + col2 FROM tab1 AS cor0 WHERE + col2 IN ( col2, col0, + col1 )
----
126
89
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + 82 * - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6856
SELECT + 82 * - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
246

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

skipif mysql # not compatible
query II rowsort label-6857
SELECT col2 AS col2, CAST ( NULL AS INTEGER ) - - col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

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

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

query II rowsort
SELECT ALL 15 AS col2, 50 AS col2 FROM tab2
----
15
50
15
50
15
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT + SUM( + 17 ) AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-6861
SELECT + SUM ( + 17 ) AS col0 FROM tab0
----
51

query I rowsort
SELECT ( - + col1 ) * - col0 * - col0 * - col1 AS col2 FROM tab1
----
180625
18292729
509796

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN 73 AND + 82 * col2
----
46
51
23
64
77
40

query II rowsort
SELECT col0, + col1 * col0 * 41 FROM tab2
----
46
96186
64
202048
75
206025

query I rowsort
SELECT DISTINCT 38 * col2 AS col1 FROM tab2
----
1520
2204
874

query I rowsort
SELECT - col2 + - + 72 * col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 44
----

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

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

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

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

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

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

query I rowsort
SELECT + col0 + col2 * - 68 FROM tab2
----
-1518
-2656
-3869

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

query I rowsort
SELECT - 71 + + 43 + - col0 AS col2 FROM tab2
----
-103
-74
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - SUM( DISTINCT 58 ) * 34 FROM tab1 AS cor0
----
-1972

skipif mysql # not compatible
query I rowsort label-6875
SELECT - SUM ( DISTINCT 58 ) * 34 FROM tab1 AS cor0
----
-1972

query II rowsort
SELECT ALL - 38, - 36 AS col1 FROM tab1 AS cor0
----
-38
-36
-38
-36
-38
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT ALL + 39, + MAX( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
39
-1

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL + 39, + MAX ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
39
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL MAX( DISTINCT + - 41 ) AS col2 FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL MAX ( DISTINCT + - 41 ) AS col2 FROM tab0 cor0
----
-41

query I rowsort
SELECT - 98 FROM tab1 cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - COUNT( * ) * COUNT( - + 47 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6881
SELECT - COUNT ( * ) * COUNT ( - + 47 ) FROM tab2 AS cor0
----
-9

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

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

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

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL col1 * - 98 - 87 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6884
SELECT ALL - col1 * - col0, col0 DIV + col0 AS col0 FROM tab1
----
425
1
4277
1
714
1

skipif mysql # not compatible
query II rowsort label-6884
SELECT ALL - col1 * - col0, col0 / + col0 AS col0 FROM tab1
----
425
1
4277
1
714
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL COUNT( + col2 ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL COUNT ( + col2 ) * COUNT ( * ) AS col1 FROM tab0
----
9

query II rowsort
SELECT ALL col1 * + col1 AS col1, - col1 + - col1 FROM tab0
----
1
-2
441
-42
6561
-162

query II rowsort
SELECT col2, - col2 FROM tab2 WHERE col1 * 18 * ( + + col1 ) IS NOT NULL
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6888
SELECT + ( 67 ) * - COUNT( * ) + + COUNT( * ) DIV - + SUM( ALL 90 ) + + 57 col2 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6888
SELECT + ( 67 ) * - COUNT ( * ) + + COUNT ( * ) / - + SUM ( ALL 90 ) + + 57 col2 FROM tab0 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT DISTINCT - + COUNT( + + col1 ) - - + 36 AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT - + COUNT ( + + col1 ) - - + 36 AS col0 FROM tab2 AS cor0
----
33

query II rowsort
SELECT - col1 AS col2, 18 * 99 FROM tab0 AS cor0
----
-1
1782
-21
1782
-81
1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6891
SELECT - - MAX( DISTINCT + 46 ) col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - 29 IS NOT NULL
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6891
SELECT - - MAX ( DISTINCT + 46 ) col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - 29 IS NOT NULL
----
46

query II rowsort
SELECT - 55 * + + col1 + - + col2, col1 AS col1 FROM tab0 AS cor0
----
-1165
21
-154
1
-4502
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + - ( - - ( MIN( - + col2 ) ) ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-6893
SELECT + - ( - - ( MIN ( - + col2 ) ) ) FROM tab1 cor0
----
96

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

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

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

query I rowsort
SELECT ALL + - 9 * - 79 AS col0 FROM tab2 AS cor0
----
711
711
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 79 * - col0 <= col0 * + ( - col0 )
----
51
14
96

query I rowsort
SELECT 16 * - + col0 FROM tab2
----
-1024
-1200
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NOT + col1 / col1 + + + col2 BETWEEN + 63 * + + col1 + + 78 AND ( NULL )
----
59
68
96

query I rowsort
SELECT col0 + + col0 + + col1 FROM tab2
----
143
205
217

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6904
SELECT + SUM( col0 ) AS col0, + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
185
75

skipif mysql # not compatible
query II rowsort label-6904
SELECT + SUM ( col0 ) AS col0, + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT col1 DIV + col1 + + col1 FROM tab1 cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6905
SELECT col1 / + col1 + + col1 FROM tab1 cor0
----
15
48
6

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - 64 * - + col0, + 71 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - COUNT( DISTINCT - - ( + 18 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6910
SELECT - COUNT ( DISTINCT - - ( + 18 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 / + col1 * 37 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 - 93 FROM tab1
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT + COUNT( * ) * - + 70 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + COUNT ( * ) * - + 70 FROM tab2
----
-210

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT - 54 DIV + - 60 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6917
SELECT - 54 / + - 60 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + 2 * MAX( + col0 ) FROM tab1
----
182

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 2 * MAX ( + col0 ) FROM tab1
----
182

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab0 WHERE col0 < ( col2 )
----
225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT COUNT( * ) * + MAX( ALL 7 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-6920
SELECT COUNT ( * ) * + MAX ( ALL 7 ) FROM tab0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT + col1 * col1 DIV col1 DIV - + 59 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6921
SELECT + col1 * col1 / col1 / - + 59 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - ( - col1 ) + - - 81 FROM tab2 AS cor0
----
132
148
158

query I rowsort
SELECT ALL + 10 * + + col2 FROM tab0 AS cor0
----
100
470
990

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT + + 29 * + COUNT( * ) FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT + + 29 * + COUNT ( * ) FROM tab1 cor0
----
87

query I rowsort
SELECT - - 2 * + col0 AS col0 FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT + col1 * - + 16 * - 68 + - col2 FROM tab1 AS cor0 WHERE NOT - col0 + col0 NOT BETWEEN - - CAST( 32 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6929
SELECT + col1 * - + 16 * - 68 + - col2 FROM tab1 AS cor0 WHERE NOT - col0 + col0 NOT BETWEEN - - CAST ( 32 AS INTEGER ) AND NULL
----

query I rowsort
SELECT 85 * col0 AS col1 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6931
SELECT DISTINCT 59 DIV + COUNT( * ) col0 FROM tab1
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6931
SELECT DISTINCT 59 / + COUNT ( * ) col0 FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT DISTINCT - col0 * col1 DIV - - 58 FROM tab2
----
-40
-84
-86

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - col0 * col1 / - - 58 FROM tab2
----
-40
-84
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + + AVG ( DISTINCT + + 70 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT + + AVG ( DISTINCT + + 70 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 <> NULL
----
NULL

query I rowsort
SELECT 9 + - - col1 + + + 52 + col1 AS col2 FROM tab1 AS cor0
----
155
71
89

query I rowsort
SELECT + 25 + col2 + col1 AS col1 FROM tab1
----
135
140
89

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

query II rowsort
SELECT DISTINCT + col1 - - - col2 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
-21
-91
-54
-85
-82
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 76 * + - 52 + col0 + - col0 col2 FROM tab1 AS cor0
----
-3952
-3952
-3952

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

skipif mysql # not compatible
query I rowsort label-6939
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) - 58 AS col1 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT + col1 * + col2 - - col2 AS col0 FROM tab0
----
198
220
3854

query I rowsort
SELECT DISTINCT col1 * - 33 AS col1 FROM tab1
----
-1551
-165
-462

query I rowsort
SELECT DISTINCT - 85 * col2 AS col2 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT ALL + col1 - + + col0 * + col0 * - 38 FROM tab1
----
274555
314725
98852

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL COUNT( * ) + - - 20 FROM tab2, tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL COUNT ( * ) + - - 20 FROM tab2, tab0 AS cor0
----
29

query I rowsort
SELECT DISTINCT 98 * + col1 AS col0 FROM tab0
----
2058
7938
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL 14 * 45 * - - 41 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL 14 * 45 * - - 41 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + - col1 * + + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

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

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

query I rowsort
SELECT - - 90 * + col0 AS col1 FROM tab1 AS cor0
----
4590
7650
8190

query I rowsort
SELECT + - col1 * - 81 - col1 FROM tab2 AS cor0
----
4080
5360
6160

query I rowsort
SELECT DISTINCT - - col0 + + col0 + - 90 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6953
SELECT DISTINCT + SUM( + ( - 12 ) ) AS col1 FROM tab0 WHERE - col0 IN ( 50, - 82, CAST( NULL AS SIGNED ) * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + SUM ( + ( - 12 ) ) AS col1 FROM tab0 WHERE - col0 IN ( 50, - 82, CAST ( NULL AS INTEGER ) * + col1 )
----
NULL

query II rowsort
SELECT ALL + col2 + + col2, + col0 FROM tab0
----
198
97
20
87
94
15

query I rowsort
SELECT + col2 + col2 * - ( - - col2 ) AS col2 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT DISTINCT col2 - - col1 AS col2 FROM tab2 AS cor0
----
117
125
74

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

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

query I rowsort
SELECT ALL col1 + - col2 * - col1 * - col2 AS col0 FROM tab2
----
-123123
-225321
-26928

query I rowsort
SELECT - ( col2 ) + + col0 + + col1 * 83 AS col0 FROM tab1
----
1117
3924
441

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + 11 + - MAX( - 84 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6960
SELECT + 11 + - MAX ( - 84 ) FROM tab0 AS cor0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT + ( - 63 ) - + - CAST( + COUNT( * ) AS SIGNED ) + - SUM( - col2 ) * - COUNT( * ) col2 FROM tab2 AS cor0
----
-423

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT DISTINCT + ( - 63 ) - + - CAST ( + COUNT ( * ) AS INTEGER ) + - SUM ( - col2 ) * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-423

query I rowsort
SELECT DISTINCT - 45 + + col0 + ( 53 ) FROM tab2 AS cor0
----
54
72
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL ( - MIN( ALL - + col2 ) ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6965
SELECT ALL ( - MIN ( ALL - + col2 ) ) col1 FROM tab1
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT COUNT( * ) * - - COUNT( * ) * - + MAX( ALL - 30 ) col2 FROM tab0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6967
SELECT COUNT ( * ) * - - COUNT ( * ) * - + MAX ( ALL - 30 ) col2 FROM tab0
----
270

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6968
SELECT - col2 DIV + + col1 col1, col2 DIV + + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
-99
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6968
SELECT - col2 / + + col1 col1, col2 / + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
-99
NULL
0
NULL
0
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= col2
----
15
81
47
87
21
10

query I rowsort
SELECT - col0 * col1 FROM tab2 AS cor0 WHERE NOT ( NOT 93 < + 20 * + col2 )
----
-2346
-4928
-5025

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

query I rowsort
SELECT DISTINCT 84 * - col1 + + 8 FROM tab2 cor0
----
-4276
-5620
-6460

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

query I rowsort
SELECT ALL + 32 * - + 38 + + 53 - 74 * + - 87 AS col2 FROM tab1 AS cor0
----
5275
5275
5275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * + + 72 col1 FROM tab1, tab1 cor0
----
9 values hashing to f989a071984c2a5d732e31a6f4fbe41b

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL MIN( + + 87 ) * 31 * - + 32 AS col2 FROM tab0
----
-86304

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL MIN ( + + 87 ) * 31 * - + 32 AS col2 FROM tab0
----
-86304

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT ALL + 87 / - CAST( NULL AS SIGNED ) * - - MIN( + col0 ) + - + 3 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL + 87 / - CAST ( NULL AS INTEGER ) * - - MIN ( + col0 ) + - + 3 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + + col1 col2 FROM tab2 AS cor0
----
117
125
74

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

query I rowsort
SELECT - col1 + + 12 + 8 * + - 87 * col1 FROM tab2 AS cor0
----
-35535
-46687
-53657

query II rowsort
SELECT - 99 * + col0 AS col0, col0 AS col0 FROM tab0
----
-1485
15
-8613
87
-9603
97

query I rowsort
SELECT ALL - col2 * - + 91 AS col1 FROM tab0
----
4277
9009
910

query I rowsort
SELECT + col1 + - col0 * + col2 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col1 * - - ( + col1 ) + - - col1 * - col0 AS col2 FROM tab2
----
-536
1001
255

query I rowsort
SELECT + + col0 * - - col0 FROM tab0 AS cor0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col0 * + - col2 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col1 + + 53
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT MIN( - col0 ) - COUNT( * ) col1 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6992
SELECT DISTINCT MIN ( - col0 ) - COUNT ( * ) col1 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT + col0 - - col2 + - ( - - 74 ) - + + col1 FROM tab1 AS cor0
----
38
59
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - - COUNT( - 19 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6996
SELECT - - COUNT ( - 19 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 2 AS col0, 39 - 60 AS col0 FROM tab2
----
2
-21

query II rowsort
SELECT ALL + col1, - col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6999
SELECT + - CAST( + ( + - 96 ) AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
288

skipif mysql # not compatible
query I rowsort label-6999
SELECT + - CAST ( + ( + - 96 ) AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
288

query II rowsort
SELECT ALL + col1, - col1 FROM tab2 AS cor0 WHERE NOT NULL <> col0 / + ( ( + 58 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7002
SELECT - 67 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-67
3

skipif mysql # not compatible
query II rowsort label-7002
SELECT - 67 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-67
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT - + SUM( - 6 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7004
SELECT - + SUM ( - 6 ) FROM tab0 AS cor0
----
18

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

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

skipif mysql # not compatible
query I rowsort label-7006
SELECT CAST ( - + col1 AS INTEGER ) FROM tab1 cor0
----
-14
-47
-5

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7008
SELECT + CAST( + ( + + col2 ) AS DECIMAL ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + 31 / ( - col2 ) AND 26
----

skipif mysql # not compatible
query I rowsort label-7008
SELECT + CAST ( + ( + + col2 ) AS REAL ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + 31 / ( - col2 ) AND 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT SUM( ALL - 85 ) AS col2 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-7009
SELECT SUM ( ALL - 85 ) AS col2 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT DISTINCT + + col1 + - + 89 FROM tab2 cor0
----
-12
-22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ALL 62 * + MAX( + col0 ) AS col1 FROM tab2
----
4650

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL 62 * + MAX ( + col0 ) AS col1 FROM tab2
----
4650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL - 63 * - - MIN( DISTINCT + 20 ) FROM tab1
----
-1260

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - 63 * - - MIN ( DISTINCT + 20 ) FROM tab1
----
-1260

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

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + MAX ( DISTINCT + + 11 ) FROM tab0
----
11

query I rowsort
SELECT DISTINCT + 89 + + - ( + - 58 ) AS col1 FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT DISTINCT - 61 + ( + - COUNT( * ) ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT - 61 + ( + - COUNT ( * ) ) FROM tab2
----
-64

query I rowsort
SELECT ALL - col1 + + - 52 FROM tab1
----
-57
-66
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col2 ) + col0 col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT SUM( + 35 ) AS col0 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7019
SELECT SUM ( + 35 ) AS col0 FROM tab2 AS cor0
----
105

query I rowsort
SELECT DISTINCT + 34 * - 28 FROM tab0
----
-952

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT ALL 63 DIV + col0 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7021
SELECT ALL 63 / + col0 col2 FROM tab1
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-7022
SELECT + COUNT ( * ) + - 83 FROM tab1
----
-80

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7024
SELECT + col1, + ( - ( - 22 ) ) DIV - 99 col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7024
SELECT + col1, + ( - ( - 22 ) ) / - 99 col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT + - 3 FROM tab2 AS cor0 WHERE NOT 9 IS NULL
----
-3
-3
-3

query I rowsort
SELECT DISTINCT col1 * - col2 + - - col1 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

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

query I rowsort
SELECT ALL + - 78 FROM tab2 AS cor0 WHERE col0 * - 3 = 9
----

query I rowsort
SELECT DISTINCT 18 * - ( - 48 ) FROM tab2 cor0
----
864

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

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

query II rowsort
SELECT col2 * + ( + - 5 ), 81 AS col1 FROM tab1
----
-295
81
-340
81
-480
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT + - col1 * - col0 * - - col2 NOT BETWEEN + + 14 + + - col1 AND col2 + 39
----
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + - col1 * - col0 * - - col2 NOT BETWEEN + + 14 + + - col1 AND col2 + 39
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7033
SELECT DISTINCT col1 DIV CAST( + - 43 AS SIGNED ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT col1 / CAST ( + - 43 AS INTEGER ) AS col0 FROM tab2
----
-1

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 + + col1 * + col2 <> + 34
----

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

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

query II rowsort
SELECT + + col2, col1 * + col1 FROM tab0 AS cor0
----
10
441
47
6561
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7038
SELECT ALL - + COUNT( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
----
-243
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7038
SELECT ALL - + COUNT ( * ) * + 69 + - ( + + 36 ) col2, + 38 FROM tab2 AS cor0
----
-243
38

query I rowsort
SELECT + 19 * + col2 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col1 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT 59 * + col1 AS col1 FROM tab0
----
1239
4779
59

query II rowsort
SELECT + col0 - + col0, 33 - + 83 * col0 AS col0 FROM tab1
----
0
-4200
0
-7022
0
-7520

query I rowsort
SELECT 34 * - 61 * col0 * - + col0 - + - col0 - + col0 AS col0 FROM tab0
----
15698106
19514266
466650

query I rowsort
SELECT DISTINCT - col0 + col0 * col2 + col2 AS col1 FROM tab1
----
4941
4989
6165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT - CAST( 57 AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7045
SELECT - CAST ( 57 AS INTEGER ) + + - COUNT ( * ) AS col2 FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL - 95 + - MIN( DISTINCT - col0 ) + + 6 * - - COUNT( * ) - + 65 AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - 95 + - MIN ( DISTINCT - col0 ) + + 6 * - - COUNT ( * ) - + 65 AS col0 FROM tab1
----
-51

query II rowsort
SELECT ALL col2 - - col1, + col2 AS col0 FROM tab1 cor0
----
110
96
115
68
64
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT DISTINCT col0 - - col0 + - - CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-195
-7395
-9215

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT col0 - - col0 + - - CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-195
-7395
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

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

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

query I rowsort
SELECT 47 * col2 FROM tab2 cor0
----
1081
1880
2726

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

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

query I rowsort
SELECT DISTINCT - 50 * col2 AS col2 FROM tab1 AS cor0
----
-2950
-3400
-4800

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT - + col2 DIV col0 * - col0 * - + col1 + col0 FROM tab1 AS cor0
----
-663
85
91

skipif mysql # not compatible
query I rowsort label-7056
SELECT - + col2 / col0 * - col0 * - + col1 + col0 FROM tab1 AS cor0
----
-663
85
91

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

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

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

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

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

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

query II rowsort
SELECT ALL + 28, col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
28
46
28
64
28
75

query I rowsort
SELECT DISTINCT 46 * - 32 FROM tab2
----
-1472

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT - - ( col0 ) DIV + 28 - - 13 DIV + 27 AS col0 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7064
SELECT - - ( col0 ) / + 28 - - 13 / + 27 AS col0 FROM tab2 AS cor0
----
1
2
2

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

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT + COUNT( * ) * + 38 + + - 40 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
-40

skipif mysql # not compatible
query I rowsort label-7067
SELECT + COUNT ( * ) * + 38 + + - 40 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
-40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7069
SELECT * FROM tab1 AS cor0 WHERE + CAST( 2 AS SIGNED ) < ( - + col0 )
----

skipif mysql # not compatible
query III rowsort label-7069
SELECT * FROM tab1 AS cor0 WHERE + CAST ( 2 AS INTEGER ) < ( - + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-7070
SELECT 43 + + COUNT ( * ) FROM tab2 cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT CAST( NULL AS SIGNED ) + + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT CAST ( NULL AS INTEGER ) + + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 10 + col2 + - 8 FROM tab0 AS cor0
----
-8
29
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col1 ) col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE + 84 + 44 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7075
SELECT 9 AS col1 FROM tab1 WHERE ( NOT CAST( NULL AS DECIMAL ) IS NOT NULL )
----
9
9
9

skipif mysql # not compatible
query I rowsort label-7075
SELECT 9 AS col1 FROM tab1 WHERE ( NOT CAST ( NULL AS REAL ) IS NOT NULL )
----
9
9
9

query II rowsort
SELECT - col0 + - + ( + + ( + 99 ) ) + - - col1, - col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + COUNT( * ) - - 27 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7077
SELECT + COUNT ( * ) - - 27 FROM tab0 AS cor0
----
30

query II rowsort
SELECT ALL + - col2 AS col2, col2 + col0 AS col0 FROM tab1 AS cor0
----
-59
144
-68
159
-96
147

query I rowsort
SELECT + col1 - 18 * col2 FROM tab2
----
-363
-643
-977

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2 WHERE 44 IS NOT NULL
----
76

query I rowsort
SELECT - col1 - - 16 AS col0 FROM tab1
----
-31
11
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 54 + col2 > ( 8 )
----
85
5
59

query I rowsort
SELECT ALL - col1 + - 99 FROM tab0
----
-100
-120
-180

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

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( - col1 ) NOT IN ( + col2 )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 > + 95
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE ( col1 * col0 - col2 ) <= ( NULL )
----

query I rowsort
SELECT ALL - col0 * 1 + col1 FROM tab0
----
-66
-96
66

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

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

query I rowsort
SELECT DISTINCT + 53 FROM tab1 WHERE NULL NOT IN ( - col1 )
----

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

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

query I rowsort
SELECT DISTINCT - col0 + 69 AS col0 FROM tab0
----
-18
-28
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7095
SELECT * FROM tab0 WHERE 92 - col0 * CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7095
SELECT * FROM tab0 WHERE 92 - col0 * CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ( ( 16 ) ) FROM tab0
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / + col0 NOT IN ( ( - col1 ) * + col1 + col0 )
----

query I rowsort
SELECT DISTINCT 37 * col0 + + 91 * + 58 FROM tab0 cor0
----
5833
8497
8867

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7099
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <= - col0 * + ( CAST( 82 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7099
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <= - col0 * + ( CAST ( 82 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT 13 FROM tab1 AS cor0 WHERE col2 * col1 IS NULL
----

query I rowsort
SELECT + 15 * 99 + col1 FROM tab1 AS cor0
----
1490
1499
1532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT + CAST( - col2 AS SIGNED ) + 36 FROM tab1 AS cor0
----
-23
-32
-60

skipif mysql # not compatible
query I rowsort label-7103
SELECT + CAST ( - col2 AS INTEGER ) + 36 FROM tab1 AS cor0
----
-23
-32
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7104
SELECT DISTINCT 61 DIV COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT 61 / COUNT ( * ) FROM tab0
----
20

query I rowsort
SELECT ALL + 56 + col2 FROM tab0
----
103
155
66

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 + col0 * col0 col2 FROM tab0 AS cor0
----
-990
5742
9312

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

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

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL col0 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 26 + + col0 IS NOT NULL
----

query I rowsort
SELECT - 29 AS col1 FROM tab2 AS cor0 WHERE - 30 BETWEEN ( NULL ) AND - col0 * 43
----

query I rowsort
SELECT + + col0 * + 19 FROM tab1 AS cor0
----
1615
1729
969

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

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

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

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

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

query I rowsort
SELECT + col0 - - + col0 + 16 AS col2 FROM tab1
----
118
186
198

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

query I rowsort
SELECT 82 + + col1 + col1 FROM tab1
----
110
176
92

query I rowsort
SELECT - 48 + 94 + - col0 FROM tab2
----
-18
-29
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 57 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 7 ) AS col1 FROM tab1 WHERE NULL = + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE ( - - ( col2 ) + + col0 ) = col0
----
0

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

query I rowsort
SELECT + + 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7128
SELECT ALL + 42 col0, col1 DIV - col0 + ( + ( col0 ) ) FROM tab1 AS cor0
----
42
51
42
85
42
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7128
SELECT ALL + 42 col0, col1 / - col0 + ( + ( col0 ) ) FROM tab1 AS cor0
----
42
51
42
85
42
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT - + 15 * + - MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
1455

skipif mysql # not compatible
query I rowsort label-7129
SELECT - + 15 * + - MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
1455

query I rowsort
SELECT + + col1 * - - 97 - 10 FROM tab0 AS cor0
----
2027
7847
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 58, + 62 + - - col2 col1 FROM tab0 AS cor0
----
-58
109
-58
161
-58
72

query I rowsort
SELECT ALL ( - - 66 ) AS col0 FROM tab2 AS cor0
----
66
66
66

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

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

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

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

query I rowsort
SELECT + 91 + col1 + + 38 AS col1 FROM tab0
----
130
150
210

query I rowsort
SELECT 42 * - col2 FROM tab2 WHERE NOT - 97 IS NOT NULL AND NOT + col0 IS NULL
----

query I rowsort
SELECT + col2 + 22 AS col1 FROM tab2
----
45
62
80

query I rowsort
SELECT ( - col1 ) + + 49 AS col0 FROM tab1
----
2
35
44

query I rowsort
SELECT - 98 * + col0 + - 87 * col2 * - col0 AS col0 FROM tab0
----
59865
67164
825955

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT 22 + + + 48 col1, + COUNT( * ) AS col1 FROM tab1
----
70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7141
SELECT 22 + + + 48 col1, + COUNT ( * ) AS col1 FROM tab1
----
70
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT ( + 92 * + col0 ) > - col0 )
----

query I rowsort
SELECT DISTINCT 81 + + 95 AS col0 FROM tab2 AS cor0
----
176

query I rowsort
SELECT ALL + 20 * + ( 96 ) - - ( + col1 ) + + col1 FROM tab1 AS cor0
----
1930
1948
2014

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

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

query I rowsort
SELECT DISTINCT + col0 + - 79 FROM tab0 AS cor0
----
-64
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL - + COUNT( * ) - + 58 col2 FROM tab0 cor0
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7148
SELECT ALL - + COUNT ( * ) - + 58 col2 FROM tab0 cor0
----
-61

query I rowsort
SELECT ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-7150
SELECT DISTINCT col1 AS col0, col0 DIV + col2 AS col0 FROM tab2
----
51
2
67
1
77
1

skipif mysql # not compatible
query II rowsort label-7150
SELECT DISTINCT col1 AS col0, col0 / + col2 AS col0 FROM tab2
----
51
2
67
1
77
1

query I rowsort
SELECT col1 * + ( - ( - 40 ) ) FROM tab1
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT - COUNT( * ) * + 95 col1 FROM tab2
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7152
SELECT DISTINCT - COUNT ( * ) * + 95 col1 FROM tab2
----
-285

query I rowsort
SELECT ALL col1 * + - ( - + ( + 62 ) ) AS col2 FROM tab1
----
2914
310
868

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT DISTINCT col2 DIV - - 43 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT col2 / - - 43 AS col1 FROM tab0
----
0
1
2

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - - col2 * + 95 * + ( - col0 ) + 7 IS NOT NULL
----

query I rowsort
SELECT ALL + 32 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

query I rowsort
SELECT + + 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query II rowsort
SELECT ALL - 17 + - 93, col2 AS col1 FROM tab1 AS cor0
----
-110
59
-110
68
-110
96

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

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - + col0 IS NULL
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + ( + col2 ) ) col1, + 23 + - - col1 * - + ( 50 ) AS col1 FROM tab1
----
59
-227
68
-2327
96
-677

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7165
SELECT ALL + col2, + CAST( - + col0 AS SIGNED ) AS col0 FROM tab2
----
23
-46
40
-64
58
-75

skipif mysql # not compatible
query II rowsort label-7165
SELECT ALL + col2, + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT - - col2 * - col2 FROM tab2 WHERE - 90 * - 44 NOT BETWEEN col2 * + 70 AND NULL
----
-3364

query III rowsort
SELECT * FROM tab0 WHERE - 21 NOT IN ( + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT - MIN( + + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT - MIN ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - COUNT( * ) + - - 64 * - + 36 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2307

skipif mysql # not compatible
query I rowsort label-7172
SELECT - COUNT ( * ) + - - 64 * - + 36 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT + + col0 * - + col2 + + + CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-7173
SELECT + + col0 * - + col2 + + + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-624
-849
-9602

query I rowsort
SELECT ALL ( 87 ) + + + 35 FROM tab0 AS cor0
----
122
122
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT + 86 * col0 AS col1 FROM tab2 WHERE + + 24 IN ( col1 - - + CAST( 55 AS SIGNED ), 56 )
----

skipif mysql # not compatible
query I rowsort label-7175
SELECT + 86 * col0 AS col1 FROM tab2 WHERE + + 24 IN ( col1 - - + CAST ( 55 AS INTEGER ), 56 )
----

query I rowsort
SELECT ALL 68 + - 93 AS col0 FROM tab2
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col2 * + 4 + + - 76 AS col0 FROM tab1
----
160
196
308

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

query I rowsort
SELECT ALL + 59 + - col1 + - 3 FROM tab0 AS cor0
----
-25
35
55

query I rowsort
SELECT + - 19 - col2 AS col1 FROM tab2 AS cor0
----
-42
-59
-77

query I rowsort
SELECT ALL - col1 + - 54 AS col1 FROM tab1 AS cor0
----
-101
-59
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * + col2 - - col0 col0 FROM tab0 AS cor0
----
1801
3859
467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col2 AS col1, + 50 * - + 71 col1 FROM tab2 AS cor0
----
-1600
-3550
-3364
-3550
-529
-3550

query I rowsort
SELECT + ( col1 ) - - - 31 * + col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT 41 * - COUNT( DISTINCT col1 ) * + CAST( + + 87 AS SIGNED ) FROM tab2
----
-10701

skipif mysql # not compatible
query I rowsort label-7185
SELECT 41 * - COUNT ( DISTINCT col1 ) * + CAST ( + + 87 AS INTEGER ) FROM tab2
----
-10701

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT DISTINCT 25 DIV - 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT 25 / - 84 FROM tab1
----
0

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL <= NULL
----

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

query I rowsort
SELECT DISTINCT + col2 * - + 81 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL COUNT( ALL + + 64 ) * + CAST( - 94 AS SIGNED ) AS col2 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL COUNT ( ALL + + 64 ) * + CAST ( - 94 AS INTEGER ) AS col2 FROM tab0
----
-282

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7193
SELECT ALL - MAX( ALL - CAST( - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL - MAX ( ALL - CAST ( - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-91

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7196
SELECT - CAST ( NULL AS REAL ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7199
SELECT + - 60 * ( + COUNT ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 27 col1 FROM tab0 AS cor0
----
27

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 / - col2 <= - col0
----

query I rowsort
SELECT - col1 * + + col1 + + col2 + - - col2 FROM tab2
----
-2555
-4373
-5849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 * - col0 col0 FROM tab2
----
-1104
-2624
-4425

query I rowsort
SELECT + - 73 AS col1 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + - col2 * + 32 FROM tab2 WHERE ( NOT NULL <> - 67 * col2 / + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL + SUM( + 38 ) AS col1 FROM tab2 AS cor0 WHERE + col1 / + - col2 IS NOT NULL
----
114

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + SUM ( + 38 ) AS col1 FROM tab2 AS cor0 WHERE + col1 / + - col2 IS NOT NULL
----
114

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

query I rowsort
SELECT DISTINCT col1 - col2 * - + col2 AS col0 FROM tab1 AS cor0
----
3486
4671
9230

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 87 + - - col2 ) AND + 22
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7213
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( 19 + 35 + - + col2 * - col1, + 58, + col0, - CAST( NULL AS DECIMAL ) + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7213
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( 19 + 35 + - + col2 * - col1, + 58, + col0, - CAST ( NULL AS REAL ) + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT DISTINCT + col0 * - + col1 + + + col0 DIV - 81 FROM tab1 AS cor0
----
-426
-4278
-714

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT + col0 * - + col1 + + + col0 / - 81 FROM tab1 AS cor0
----
-426
-4278
-714

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7215
SELECT ALL + MAX ( ALL + + col0 ) col2 FROM tab0 AS cor0
----
97

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

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

query I rowsort
SELECT ALL col1 * 77 FROM tab2 cor0
----
3927
5159
5929

query I rowsort
SELECT DISTINCT - col2 * - - 10 * + - col2 FROM tab2 cor0
----
16000
33640
5290

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT 31 * - COUNT( * ) AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-7219
SELECT 31 * - COUNT ( * ) AS col0 FROM tab2
----
-93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( col2 ) col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT - col2 * - col1, + 68 AS col0 FROM tab1
----
1344
68
295
68
3196
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * + col1 col0 FROM tab1
----
1106
3713
395

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

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

query I rowsort
SELECT DISTINCT - col1 * + col0 * + - col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT DISTINCT - - col0 * + col1 + - ( + col2 ) + - - ( 23 ) FROM tab0 AS cor0
----
1191
1840
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL - COUNT( * ) * - 79 * + COUNT( ALL col1 ) AS col1 FROM tab2 cor0
----
711

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - COUNT ( * ) * - 79 * + COUNT ( ALL col1 ) AS col1 FROM tab2 cor0
----
711

onlyif mysql # DIV for integer division: 
query I rowsort label-7228
SELECT DISTINCT + + 18 DIV - 26 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + + 18 / - 26 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL 88 + + col1 + col1 * - col0 AS col2 FROM tab1
----
-332
-4142
-612

query II rowsort
SELECT ALL + col0 * + col2 + + col2 AS col2, 60 + + + 32 FROM tab0 AS cor0
----
752
92
880
92
9702
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT 43 * COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7232
SELECT 43 * COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
129

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

query I rowsort
SELECT DISTINCT + 69 + col2 AS col1 FROM tab2 AS cor0
----
109
127
92

query I rowsort
SELECT DISTINCT + col1 * + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * + 90 AS col2 FROM tab1 cor0
----
4590
7650
8190

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

skipif mysql # not compatible
query I rowsort label-7237
SELECT + 21 * COUNT ( * ) FROM tab2
----
63

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT DISTINCT 88 + - + 28 DIV col1 AS col0 FROM tab1
----
83
86
88

skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT 88 + - + 28 / col1 AS col0 FROM tab1
----
83
86
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7242
SELECT MIN( DISTINCT - col2 ) DIV ( - - ( + 10 ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7242
SELECT MIN ( DISTINCT - col2 ) / ( - - ( + 10 ) ) FROM tab0
----
-9

query I rowsort
SELECT col0 * + + col2 - + 43 FROM tab1
----
4853
4972
6145

query I rowsort
SELECT + 55 + + 74 AS col2 FROM tab2
----
129
129
129

query I rowsort
SELECT DISTINCT col1 + - 52 AS col0 FROM tab2
----
-1
15
25

query I rowsort
SELECT + - 24 + col1 + + col1 FROM tab0 AS cor0
----
-22
138
18

query I rowsort
SELECT - - 55 + - 82 - + col0 FROM tab1 AS cor0
----
-112
-118
-78

query I rowsort
SELECT + col1 + + + col0 * col1 * - - col0 FROM tab0 AS cor0
----
158970
18306
9410

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

skipif mysql # not compatible
query II rowsort label-7249
SELECT DISTINCT + - 35 AS col0, CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-10
-35
-47
-35
-99

query II rowsort
SELECT - col1 * + - 53 AS col0, col2 FROM tab2
----
2703
23
3551
58
4081
40

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

query I rowsort
SELECT ALL col2 * - col0 * 59 * + col0 FROM tab1 AS cor0
----
-14732064
-25150225
-33223372

query I rowsort
SELECT - + 50 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + + 91 * + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT DISTINCT + col2 * + col2 DIV + - col2 - + col0 * + col0 * + col0 col2 FROM tab0 AS cor0
----
-3422
-658513
-912772

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7254
SELECT DISTINCT + col2 * + col2 / + - col2 - + col0 * + col0 * + col0 col2 FROM tab0 AS cor0
----
-3422
-658513
-912772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> + 8
----

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> + 8
----

query I rowsort
SELECT DISTINCT col2 / + - 51 + + col2 - + - col1 AS col0 FROM tab0 WHERE NULL BETWEEN col2 * 68 + + col1 AND NULL
----

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

query II rowsort
SELECT + + col2 * + ( - 10 ) AS col0, col2 FROM tab2 AS cor0
----
-230
23
-400
40
-580
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT + - SUM( - 24 ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT + - SUM ( - 24 ) AS col2 FROM tab1 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL ( 21 ) + + col1 FROM tab2
----
72
88
98

query I rowsort
SELECT + col0 + + 49 + - 86 AS col2 FROM tab0 AS cor0
----
-22
50
60

query I rowsort
SELECT + col2 + col1 + - 93 FROM tab0 AS cor0
----
-62
35
7

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE col1 * + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT col1 DIV 38 + ( ( - ( ( - col0 ) ) ) ) AS col0 FROM tab2
----
47
66
76

skipif mysql # not compatible
query I rowsort label-7269
SELECT col1 / 38 + ( ( - ( ( - col0 ) ) ) ) AS col0 FROM tab2
----
47
66
76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) + + + COUNT( * ) + + + 65 + - + 57 AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) + + + COUNT ( * ) + + + 65 + - + 57 AS col2 FROM tab1
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + COUNT( * ) * + - 81 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-7273
SELECT + COUNT ( * ) * + - 81 FROM tab0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7274
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col0 * - 80 + + CAST( - ( - col1 ) AS SIGNED ) + col2, 65 )
----

skipif mysql # not compatible
query III rowsort label-7274
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col0 * - 80 + + CAST ( - ( - col1 ) AS INTEGER ) + col2, 65 )
----

query I rowsort
SELECT ALL col1 - - col0 * ( - 47 ) FROM tab1 AS cor0
----
-2383
-3990
-4230

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

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

skipif mysql # not compatible
query I rowsort label-7277
SELECT + MIN ( DISTINCT 91 ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT SUM( ALL + + 18 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7278
SELECT SUM ( ALL + + 18 ) FROM tab2
----
54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT - col2 DIV - - col0 + + 74 FROM tab0 AS cor0
----
71
73
74

skipif mysql # not compatible
query I rowsort label-7280
SELECT - col2 / - - col0 + + 74 FROM tab0 AS cor0
----
71
73
74

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - col2 * + 2 + + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) * 73 col0 FROM tab0
----
3431
7227
730

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 85 + - 53 < col1
----

query I rowsort
SELECT DISTINCT 59 * - col0 FROM tab0 WHERE 84 * - col1 * + + col1 IS NOT NULL
----
-5133
-5723
-885

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

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + ( + + col2 ) > - col0
----

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

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

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

query I rowsort
SELECT col0 + - - 97 * + - col1 - + col1 FROM tab2
----
-4952
-6491
-7482

query I rowsort
SELECT DISTINCT - 23 + + col2 + col1 AS col1 FROM tab2 AS cor0
----
102
51
94

query I rowsort
SELECT ALL + 29 + col2 FROM tab1 AS cor0
----
125
88
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 BETWEEN NULL AND - - col0 * + col1
----

query II rowsort
SELECT DISTINCT + + 45 AS col0, - 61 * + col1 FROM tab2 AS cor0
----
45
-3111
45
-4087
45
-4697

query I rowsort
SELECT ALL - + col0 - - 68 AS col0 FROM tab2 AS cor0
----
-7
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT ( + - COUNT( * ) ) - + COUNT( * ) + 13 * - 30 * 53 AS col0 FROM tab1
----
-20676

skipif mysql # not compatible
query I rowsort label-7302
SELECT ( + - COUNT ( * ) ) - + COUNT ( * ) + 13 * - 30 * 53 AS col0 FROM tab1
----
-20676

query I rowsort
SELECT ALL + 26 * - col2 AS col0 FROM tab1
----
-1534
-1768
-2496

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 47 NOT IN ( - col2, + 21, - 91 )
----

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

query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab2 WHERE NOT NULL > NULL
----

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

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

query I rowsort
SELECT ALL - 24 * - col0 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT DISTINCT 96 * - 85 + - - col1 AS col0 FROM tab1 cor0
----
-8113
-8146
-8155

query I rowsort
SELECT DISTINCT - col1 + + 75 FROM tab0 AS cor0
----
-6
54
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IN ( + 53 + col1, col1, col2 * - col2 )
----

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

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

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

query I rowsort
SELECT DISTINCT - + 75 AS col2 FROM tab2 WHERE NOT 86 IS NOT NULL
----

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

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

query I rowsort
SELECT - + col0 * - 57 FROM tab2 AS cor0
----
2622
3648
4275

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

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

query I rowsort
SELECT - 12 * + 6 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT CAST( ( MIN( DISTINCT + - col1 ) ) AS SIGNED ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7322
SELECT CAST ( ( MIN ( DISTINCT + - col1 ) ) AS INTEGER ) AS col0 FROM tab1
----
-47

query II rowsort
SELECT ALL + col1 AS col2, 95 * - - 88 FROM tab1
----
14
8360
47
8360
5
8360

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

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

query I rowsort
SELECT 38 * col0 + col1 FROM tab2
----
1799
2509
2917

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 9 ) + - col2 col1, col2 + - col1 * + ( + - col2 ) AS col1 FROM tab2
----
-14
1196
-31
3120
-49
3944

query I rowsort
SELECT + col0 + - 96 * + 8 FROM tab0 AS cor0
----
-671
-681
-753

query I rowsort
SELECT - + col2 + + 12 + - col1 * + + 53 FROM tab1 cor0
----
-2547
-312
-826

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

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT + COUNT ( * ) - + MIN ( ALL - - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 + + 85 + + + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col1 - col0 * col0 AS col2 FROM tab0 AS cor0
----
-306
-7590
-9410

query I rowsort
SELECT DISTINCT + 84 * - 47 * - col1 FROM tab2 AS cor0
----
201348
264516
303996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7336
SELECT + + 12, + col0 + + col2 * 98 * + CAST( + 39 AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7336
SELECT + + 12, + col0 + + col2 * 98 * + CAST ( + 39 AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT MAX( ALL col2 ) * - + 11 * 67 + + 1 AS col1 FROM tab1
----
-70751

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT MAX ( ALL col2 ) * - + 11 * 67 + + 1 AS col1 FROM tab1
----
-70751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7338
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + SUM( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
----
NULL
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7338
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + SUM ( ALL + - 46 ) col2, + ( + - 44 ) FROM tab0
----
NULL
-44

query I rowsort
SELECT ALL - col2 * 93 FROM tab1
----
-5487
-6324
-8928

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7340
SELECT DISTINCT * FROM tab0 WHERE NOT 45 = + 20 * + CAST( - col2 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7340
SELECT DISTINCT * FROM tab0 WHERE NOT 45 = + 20 * + CAST ( - col2 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * - - col0 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * + ( 12 ) - - 27 * 11 col0 FROM tab0
----
849
849
849

query III rowsort
SELECT * FROM tab2 WHERE - 1 / + + 42 IS NULL
----

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

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

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

query I rowsort
SELECT ALL + ( - col2 ) FROM tab0 WHERE ( - col2 ) <> NULL
----

query I rowsort
SELECT ALL + 86 * - - col1 FROM tab1
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT COUNT( * ) * 46 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-7348
SELECT COUNT ( * ) * 46 FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-7349
SELECT ALL 53 + 37, ( + - COUNT( ALL col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
90
0

skipif mysql # not compatible
query II rowsort label-7349
SELECT ALL 53 + 37, ( + - COUNT ( ALL col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
90
0

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT - col1 <> - 97 * + + 97 + 87 + col0 + 23
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + col0 ) / + - ( - 67 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT DISTINCT 84 DIV - - COUNT( * ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT 84 / - - COUNT ( * ) AS col1 FROM tab1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col2 * + col1 col2 FROM tab0
----
-1
99
-21
210
-81
3807

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 49 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 75 + + col2 AS col1 FROM tab1
----
134
143
171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT + SUM( 60 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-7361
SELECT + SUM ( 60 ) FROM tab1
----
180

query I rowsort
SELECT ALL + 62 + - col2 - 81 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-115
-78
-87

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

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

query I rowsort
SELECT + 35 + 1 FROM tab0 AS cor0
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= - 80 + + 52 + col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7367
SELECT 76 - + + col1 + col1 DIV + 92 * - - col1 AS col2 FROM tab2 AS cor0
----
-1
25
9

skipif mysql # not compatible
query I rowsort label-7367
SELECT 76 - + + col1 + col1 / + 92 * - - col1 AS col2 FROM tab2 AS cor0
----
-1
25
9

query I rowsort
SELECT ALL - + col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - col0 - - - col1 * 61 AS col1 FROM tab1 AS cor0
----
-2958
-390
-905

query I rowsort
SELECT 91 - 53 * + col0 FROM tab2 AS cor0
----
-2347
-3301
-3884

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

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

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

skipif mysql # not compatible
query I rowsort label-7372
SELECT 75 + + + col2 / - col1 AS col0 FROM tab2
----
75
75
75

query I rowsort
SELECT DISTINCT 41 - + 8 * - - ( + col2 ) AS col2 FROM tab0
----
-335
-39
-751

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

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

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

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

skipif mysql # not compatible
query III rowsort label-7376
SELECT * FROM tab2 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT DISTINCT + + CAST( + + ( - col0 ) AS SIGNED ) * + col1 * + + ( - CAST( NULL AS SIGNED ) ) - + - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT + + CAST ( + + ( - col0 ) AS INTEGER ) * + col1 * + + ( - CAST ( NULL AS INTEGER ) ) - + - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( + 23 ) * - 73 - ( col0 ) FROM tab2 AS cor0
----
-1725
-1743
-1754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT DISTINCT ( + COUNT( ALL + - 86 ) ) DIV - + MAX( ALL + - 14 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT ( + COUNT ( ALL + - 86 ) ) / - + MAX ( ALL + - 14 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT - 20 DIV col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT - 20 / col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT col1 * + col2 * - ( - col2 ) FROM tab1 WHERE NOT - + 43 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 col1 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT - col1 * - - 95 FROM tab2 AS cor0
----
-4845
-6365
-7315

query I rowsort
SELECT col0 * - - 73 FROM tab2 AS cor0
----
3358
4672
5475

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT - 63 DIV + col1 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-7386
SELECT - 63 / + col1 FROM tab1 AS cor0
----
-1
-12
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT DISTINCT - + 21 * + 45 + col1 DIV + - col1 FROM tab2 AS cor0
----
-946

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - + 21 * + 45 + col1 / + - col1 FROM tab2 AS cor0
----
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT COUNT( * ) + + + 38 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7388
SELECT COUNT ( * ) + + + 38 FROM tab2 AS cor0
----
41

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 55 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 97 - - 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 65 + + ( - - col0 ) FROM tab1
----
-14
20
26

query III rowsort
SELECT * FROM tab1 WHERE - + col2 - + + col0 <= - 87 - - col1 * col1 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT + MAX( ALL + 92 ) / CAST( NULL AS SIGNED ) + + + 89 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + MAX ( ALL + 92 ) / CAST ( NULL AS INTEGER ) + + + 89 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - 52 + + - COUNT( * ) AS col2 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-7394
SELECT - 52 + + - COUNT ( * ) AS col2 FROM tab2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7395
SELECT DISTINCT 92 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7395
SELECT DISTINCT 92 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT - 59 + + ( - - col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
-4955
-5074
-6247

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 93 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7398
SELECT - 63 + MIN( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT - 63 + MIN ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - 31 ) * - 5 + - col1 FROM tab2 cor0
----
-206
-222
-232

query I rowsort
SELECT DISTINCT + col1 * - col2 - 46 AS col1 FROM tab1 AS cor0
----
-1390
-3242
-341

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 32 * - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 - + + 57 AS col0 FROM tab0 cor0
----
-144
-154
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT ALL - + 42 DIV col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - + 42 / col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4
0
0

query I rowsort
SELECT ALL ( - - 30 ) AS col2 FROM tab1
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + col2 + + col2 col0 FROM tab2 AS cor0
----
1081
2600
4408

query I rowsort
SELECT DISTINCT + 24 * col0 * + col1 AS col0 FROM tab2 AS cor0
----
118272
120600
56304

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col2 - + + col2 * - col1 OR NULL < + col2
----

query I rowsort
SELECT DISTINCT col1 * + col0 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL > + 42 * - 54 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7409
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE + - col1 BETWEEN + col2 * + col1 + 0 AND - col2 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE + - col1 BETWEEN + col2 * + col1 + 0 AND - col2 + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT MIN( DISTINCT + + 48 ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
48

skipif mysql # not compatible
query I rowsort label-7412
SELECT MIN ( DISTINCT + + 48 ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 29 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT DISTINCT - COUNT( * ) * COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT - COUNT ( * ) * COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 4
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT + 74 <> col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col1 col0 FROM tab2 AS cor0 WHERE NOT + 2 + - ( col1 ) IN ( col1 + - - col0, 94 * - - col2 * - 4 )
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT ALL + - MIN( - CAST( - - 85 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT ( + 6 + col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + - MIN ( - CAST ( - - 85 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT ( + 6 + col2 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT DISTINCT COUNT( * ) * - COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT COUNT ( * ) * - COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7420
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 50 + CAST( NULL AS SIGNED ) BETWEEN + - col2 AND - col0
----

skipif mysql # not compatible
query III rowsort label-7420
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 50 + CAST ( NULL AS INTEGER ) BETWEEN + - col2 AND - col0
----

query II rowsort
SELECT DISTINCT 46 * col1 AS col2, col2 FROM tab2 AS cor0
----
2346
23
3082
58
3542
40

query I rowsort
SELECT ALL + + col1 FROM tab2 cor0 WHERE NOT ( 53 > - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT - 75 + - MAX( ALL + col0 ) AS col2 FROM tab0
----
-172

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT - 75 + - MAX ( ALL + col0 ) AS col2 FROM tab0
----
-172

query II rowsort
SELECT ALL 64, col2 FROM tab1
----
64
59
64
68
64
96

query II rowsort
SELECT - col2 AS col2, + col2 * + col2 AS col0 FROM tab2
----
-23
529
-40
1600
-58
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT MIN( DISTINCT - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT MIN ( DISTINCT - col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT + 48 + - COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + 48 + - COUNT ( * ) FROM tab2
----
45

query I rowsort
SELECT col2 * + - col0 + - 56 FROM tab0 WHERE NULL < + ( + 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT - 71 + - 38 + - + CAST( + 15 AS SIGNED ) FROM tab1
----
-124
-124
-124

skipif mysql # not compatible
query I rowsort label-7429
SELECT - 71 + - 38 + - + CAST ( + 15 AS INTEGER ) FROM tab1
----
-124
-124
-124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7430
SELECT DISTINCT + 46 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-7430
SELECT DISTINCT + 46 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
46
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT + 58 - - MIN( col0 ) - - - ( + COUNT( * ) ) AS col0 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + 58 - - MIN ( col0 ) - - - ( + COUNT ( * ) ) AS col0 FROM tab2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL COUNT( * ) - - 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL COUNT ( * ) - - 87 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT COUNT( * ) - + COUNT( * ) DIV - 77 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7434
SELECT COUNT ( * ) - + COUNT ( * ) / - 77 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT 51 + - col0 FROM tab1 cor0
----
-34
-40
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL COUNT( * ) - COUNT( * ) + 18 * COUNT( ALL CAST( 0 AS SIGNED ) ) + - 16 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL COUNT ( * ) - COUNT ( * ) + 18 * COUNT ( ALL CAST ( 0 AS INTEGER ) ) + - 16 FROM tab0 AS cor0
----
38

query I rowsort
SELECT col1 - - 79 * - col1 AS col0 FROM tab2 AS cor0
----
-3978
-5226
-6006

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - col2 + - 43 + + - col1 * col0 + + col0 * + 85 - + 82 + + col0 * + - col1 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT - + ( - COUNT( ALL col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7439
SELECT - + ( - COUNT ( ALL col0 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT ALL + col0 DIV - - 62 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + col0 / - - 62 FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 >= NULL
----

query I rowsort
SELECT - - ( - 73 ) AS col1 FROM tab2 AS cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab0 cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + SUM( DISTINCT - - col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7444
SELECT + SUM ( DISTINCT - - col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT DISTINCT - 85 * - col1 * - col1 + col2 FROM tab0 WHERE NOT col0 * + 50 + 85 * - - col2 IS NULL
----
-37475
-557638
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT DISTINCT MIN( - ( - col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT MIN ( - ( - col2 ) ) FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + - col1
----

query I rowsort
SELECT + col0 * + 15 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1305
1455
225

query II rowsort
SELECT + 54 AS col0, - 17 FROM tab0 cor0
----
54
-17
54
-17
54
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7450
SELECT DISTINCT - + 22 + - + CAST( NULL AS DECIMAL ) + - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - + 22 + - + CAST ( NULL AS REAL ) + - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 51 * col1 * 49 FROM tab2 AS cor0
----
127449
167433
192423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + - ( 89 ) AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + - ( 89 ) AS col1 FROM tab0 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT + + COUNT( * ) + + - 43 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7453
SELECT + + COUNT ( * ) + + - 43 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL - COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL - COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT + col0 DIV col0 + + col1 AS col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-7455
SELECT + col0 / col0 + + col1 AS col0 FROM tab2
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL - COUNT( * ) FROM tab0, tab0 AS cor0 WHERE NOT - 38 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL - COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE NOT - 38 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 19 * - col1 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT ALL 55 + + col0 AS col2 FROM tab2
----
101
119
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL + ( - COUNT( * ) ) + 23 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + ( - COUNT ( * ) ) + 23 FROM tab1 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 45 >= + - col0 - col1 + + - col1 + - - col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 60 * + - col2 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 77 AS col2 FROM tab2 AS cor0
----
1771
3080
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT + + CAST( - + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7464
SELECT + + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7465
SELECT ALL - COUNT( * ), 30 col2 FROM tab0 AS cor0
----
-3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7465
SELECT ALL - COUNT ( * ), 30 col2 FROM tab0 AS cor0
----
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT + COUNT( + - col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + COUNT ( + - col2 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT ALL CAST( + 14 AS SIGNED ) * + - col0 FROM tab1
----
-1190
-1274
-714

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL CAST ( + 14 AS INTEGER ) * + - col0 FROM tab1
----
-1190
-1274
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT 92 * + + ( + COUNT( * ) ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT 92 * + + ( + COUNT ( * ) ) FROM tab0
----
276

onlyif mysql # DIV for integer division: 
query II rowsort label-7470
SELECT ALL col1 DIV 86, + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-7470
SELECT ALL col1 / 86, + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col1 OR + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL + MAX( DISTINCT - ( + col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL + MAX ( DISTINCT - ( + col0 ) ) FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NOT 9 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7475
SELECT - COUNT( * ) DIV - 32 + + COUNT( ALL - col0 ) + + 92 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-7475
SELECT - COUNT ( * ) / - 32 + + COUNT ( ALL - col0 ) + + 92 FROM tab0 AS cor0
----
95

query III rowsort
SELECT * FROM tab2 WHERE - - 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 + - 7 AS col1 FROM tab1 AS cor0
----
-12
-21
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT - COUNT( ALL + col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT - COUNT ( ALL + col2 ) FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND + - ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT ALL - - col1 + - ( 0 ) * CAST( + col0 AS SIGNED ) + col1 FROM tab0 cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - - col1 + - ( 0 ) * CAST ( + col0 AS INTEGER ) + col1 FROM tab0 cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * - col1 * - 16 col2 FROM tab1 cor0
----
18592
62416
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL - MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - 78 ) + - 2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 + - + ( + + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7485
SELECT + col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT + col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7486
SELECT ALL + col2, CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-7486
SELECT ALL + col2, CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT DISTINCT - col1 * + - col1 * 38 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - col1 * + - col1 * 38 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT COUNT( * ) - - ( + - 8 ) AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7488
SELECT COUNT ( * ) - - ( + - 8 ) AS col2 FROM tab2
----
-5

query I rowsort
SELECT DISTINCT - col2 * 8 AS col1 FROM tab2
----
-184
-320
-464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7490
SELECT 7 + + SUM( ALL - col0 ) * + 11 + - CAST( + MAX( - - col2 ) AS SIGNED ) FROM tab0
----
-2281

skipif mysql # not compatible
query I rowsort label-7490
SELECT 7 + + SUM ( ALL - col0 ) * + 11 + - CAST ( + MAX ( - - col2 ) AS INTEGER ) FROM tab0
----
-2281

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL - ( + 91 ) * + COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - ( + 91 ) * + COUNT ( * ) FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT MAX( + + 68 ) + - COUNT( ( - col2 ) ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-7492
SELECT MAX ( + + 68 ) + - COUNT ( ( - col2 ) ) FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7493
SELECT * FROM tab1 WHERE - ( + - 31 ) IS NULL AND + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7493
SELECT * FROM tab1 WHERE - ( + - 31 ) IS NULL AND + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 + col1 col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL - 72 + - + SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - 72 + - + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col2 * - col1 AS col1 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

query II rowsort
SELECT col0, 92 * - col0 FROM tab0 AS cor0
----
15
-1380
87
-8004
97
-8924

query I rowsort
SELECT DISTINCT + col0 - - 87 - + 93 * + - col1 FROM tab2 AS cor0
----
4876
6393
7312

query II rowsort
SELECT DISTINCT + col2 + - col0, + col1 * 24 AS col2 FROM tab2 AS cor0
----
-17
1608
-23
1224
-24
1848

query I rowsort
SELECT ALL + col2 * - 16 - - - 69 * - - 39 * + col1 AS col0 FROM tab2 AS cor0
----
-137609
-181225
-207847

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT SUM( - - col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7501
SELECT SUM ( - - col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT DISTINCT - MAX( DISTINCT + - 80 ) col0 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7502
SELECT DISTINCT - MAX ( DISTINCT + - 80 ) col0 FROM tab1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7503
SELECT DISTINCT - CAST( col0 AS SIGNED ), col0 AS col0 FROM tab1
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-7503
SELECT DISTINCT - CAST ( col0 AS INTEGER ), col0 AS col0 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + + 81 * + 51 + COUNT( * ) FROM tab1 AS cor0
----
4134

skipif mysql # not compatible
query I rowsort label-7504
SELECT + + 81 * + 51 + COUNT ( * ) FROM tab1 AS cor0
----
4134

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 * + col0
----

query I rowsort
SELECT DISTINCT + - 92 AS col2 FROM tab2 AS cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7507
SELECT DISTINCT - + col0 * - col1 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

skipif mysql # not compatible
query II rowsort label-7507
SELECT DISTINCT - + col0 * - col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT DISTINCT 2 * 50 DIV + + col1 FROM tab1 AS cor0
----
2
20
7

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT 2 * 50 / + + col1 FROM tab1 AS cor0
----
2
20
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT + col2 DIV - - col2 + 29 + - col0 * + - col1 col1 FROM tab1 AS cor0
----
4307
455
744

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7509
SELECT + col2 / - - col2 + 29 + - col0 * + - col1 col1 FROM tab1 AS cor0
----
4307
455
744

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + MIN( ALL + 18 ) col0 FROM tab0 cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7510
SELECT + MIN ( ALL + 18 ) col0 FROM tab0 cor0
----
18

query I rowsort
SELECT DISTINCT - col2 * - 27 + col1 FROM tab2 AS cor0
----
1157
1633
672

query I rowsort
SELECT ALL - + 72 * + col1 * - 41 + + col2 AS col1 FROM tab0 AS cor0
----
239159
3051
62002

query II rowsort
SELECT ( - ( + - 14 ) ) AS col0, 93 FROM tab1
----
14
93
14
93
14
93

query I rowsort
SELECT DISTINCT 56 * ( col0 ) AS col0 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT - col1 + + col0 FROM tab1 WHERE NOT NULL <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7516
SELECT ALL * FROM tab2 WHERE ( col0 * + ( + CAST( NULL AS SIGNED ) ) + col1 - col0 < NULL )
----

skipif mysql # not compatible
query III rowsort label-7516
SELECT ALL * FROM tab2 WHERE ( col0 * + ( + CAST ( NULL AS INTEGER ) ) + col1 - col0 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT ALL COUNT( * ) DIV 27 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL COUNT ( * ) / 27 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 41 * - - 3 AS col1 FROM tab0, tab2 cor0
----
123

query II rowsort
SELECT 30 * + col0 + 22 AS col1, + col0 FROM tab2 AS cor0
----
1402
46
1942
64
2272
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 68 >= col2
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 70 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 88 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT ALL col1 * + ( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL col1 * + ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 90 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT SUM( DISTINCT 42 ) AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7526
SELECT SUM ( DISTINCT 42 ) AS col2 FROM tab1
----
42

query I rowsort
SELECT ( + 87 ) FROM tab2
----
87
87
87

query I rowsort
SELECT ALL 68 * + 68 FROM tab1
----
4624
4624
4624

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col1 + + col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT 91 * 11 FROM tab0
----
1001
1001
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL - 82 - + MIN( ALL 19 ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - 82 - + MIN ( ALL 19 ) FROM tab1
----
-101

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < 34
----

query I rowsort
SELECT ALL - 41 - + col0 FROM tab2
----
-105
-116
-87

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab0 WHERE NULL >= 85 * + col2
----

query I rowsort
SELECT - 48 * - ( 24 ) AS col0 FROM tab1
----
1152
1152
1152

query I rowsort
SELECT + 4 * + 52 FROM tab2
----
208
208
208

query I rowsort
SELECT ALL col1 - ( col0 ) FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT 99 * + col0 AS col0 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT COUNT( * ) FROM tab1 WHERE - col0 + + 14 IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7539
SELECT COUNT ( * ) FROM tab1 WHERE - col0 + + 14 IN ( col2 )
----
0

query I rowsort
SELECT col0 * - 71 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT 32 * COUNT( 27 * col0 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-7541
SELECT 32 * COUNT ( 27 * col0 ) FROM tab2
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 / + 21 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT ALL 33 * - col0 + col1 DIV + col0 FROM tab2
----
-1517
-2111
-2475

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL 33 * - col0 + col1 / + col0 FROM tab2
----
-1517
-2111
-2475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT DISTINCT - COUNT( * ) DIV - MAX( + 82 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - COUNT ( * ) / - MAX ( + 82 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( + 1 ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT DISTINCT - ( - 65 ) col1 FROM tab0 WHERE NOT 61 * + 27 - col0 BETWEEN ( - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7546
SELECT DISTINCT - ( - 65 ) col1 FROM tab0 WHERE NOT 61 * + 27 - col0 BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT ( + 69 ) AS col2 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT MAX( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-7548
SELECT MAX ( col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 + ( col2 + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7550
SELECT * FROM tab2 AS cor0 WHERE col2 * CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7550
SELECT * FROM tab2 AS cor0 WHERE col2 * CAST ( NULL AS INTEGER ) <> ( NULL )
----

query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND col1 * ( - 54 * - col0 )
----

query I rowsort
SELECT 3 * - col1 - + 67 FROM tab1 AS cor0
----
-109
-208
-82

query I rowsort
SELECT + 94 * col0 - col1 AS col2 FROM tab0 AS cor0
----
1329
8157
9117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT col0 - + CAST( col2 - + 54 AS SIGNED ) FROM tab1 AS cor0
----
77
80
9

skipif mysql # not compatible
query I rowsort label-7554
SELECT col0 - + CAST ( col2 - + 54 AS INTEGER ) FROM tab1 AS cor0
----
77
80
9

query I rowsort
SELECT + 43 AS col1 FROM tab1 AS cor0 WHERE ( - 14 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + + MAX( 96 ) * 72 AS col2 FROM tab0 AS cor0
----
6912

skipif mysql # not compatible
query I rowsort label-7556
SELECT + + MAX ( 96 ) * 72 AS col2 FROM tab0 AS cor0
----
6912

query I rowsort
SELECT + 84 * col1 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT ALL - - 23 * ( col2 * col2 ) AS col1 FROM tab1 cor0
----
106352
211968
80063

query I rowsort
SELECT DISTINCT ( col2 ) * + 98 AS col1 FROM tab0 AS cor0
----
4606
9702
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * col1 col1 FROM tab0 AS cor0
----
1281
4941
61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT - + 70 AS col2 FROM tab2 cor0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT DISTINCT + CAST( ( + MAX( ALL col2 ) ) AS SIGNED ) * 72 AS col0 FROM tab1 AS cor0
----
6912

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT + CAST ( ( + MAX ( ALL col2 ) ) AS INTEGER ) * 72 AS col0 FROM tab1 AS cor0
----
6912

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 * - col1 NOT IN ( col2 * 80 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + 43 - col1 / - 14 IS NULL
----
51
67
77

query I rowsort
SELECT + col2 * - col2 * - col0 FROM tab1
----
295885
420784
470016

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT ALL col2 DIV col0 - 76 AS col1 FROM tab2 WHERE - 34 + + col0 IS NOT NULL
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL col2 / col0 - 76 AS col1 FROM tab2 WHERE - 34 + + col0 IS NOT NULL
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT + ( COUNT( col1 ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7568
SELECT + ( COUNT ( col1 ) ) col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col1 * - col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 99 * 13 col1 FROM tab1
----
-1191
-1219
-1228

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT - ( MAX( col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT - ( MAX ( col1 ) ) FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT DISTINCT 23 * - col0 + CAST( - 99 AS SIGNED ) AS col2 FROM tab0
----
-2100
-2330
-444

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT 23 * - col0 + CAST ( - 99 AS INTEGER ) AS col2 FROM tab0
----
-2100
-2330
-444

query I rowsort
SELECT col1 + 96 * - 24 FROM tab2 AS cor0 WHERE col1 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = + 9 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT ALL ( - + col0 ) DIV col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL ( - + col0 ) / col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT - - 91 + + col0 * 68 FROM tab2 AS cor0
----
3219
4443
5191

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT DISTINCT + col1 DIV + 92 * + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT + col1 / + 92 * + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL + - MAX( ALL + 12 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + - MAX ( ALL + 12 ) FROM tab2 AS cor0
----
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 68 NOT IN ( 44 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + + 13 FROM tab0 AS cor0
----
14
34
94

query I rowsort
SELECT - 0 AS col1 FROM tab1 WHERE ( 94 * + col1 IS NULL )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT + ( + 77 ) + + - SUM( ALL col1 ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT + ( + 77 ) + + - SUM ( ALL col1 ) AS col2 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL - 32 + + COUNT( * ) * + COUNT( * ) FROM tab0 WHERE + + 39 IN ( 59 )
----
-32

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - 32 + + COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE + + 39 IN ( 59 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - COUNT( * ) * - 66 * + 80 FROM tab1, tab2 AS cor0
----
47520

skipif mysql # not compatible
query I rowsort label-7585
SELECT - COUNT ( * ) * - 66 * + 80 FROM tab1, tab2 AS cor0
----
47520

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 46 * + 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 12 * + - 64 + col2 = NULL
----

query I rowsort
SELECT ALL + col0 + + col0 - col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= ( - + col1 / col2 )
----

query II rowsort
SELECT 49 AS col1, col2 FROM tab1 AS cor0
----
49
59
49
68
49
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT DISTINCT ( - 39 ) * + col0 FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) NOT IN ( + 88 / 33 + + col1 )
----
-3393
-3783
-585

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT ( - 39 ) * + col0 FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) NOT IN ( + 88 / 33 + + col1 )
----
-3393
-3783
-585

query I rowsort
SELECT ALL + - 45 - - + col0 FROM tab1 AS cor0
----
40
46
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 + + - col2 ) NOT BETWEEN col1 + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - col1 * + 10 FROM tab1 AS cor0
----
-402
-44
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT - + col0 - - - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-7595
SELECT - + col0 - - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT col0 * + - 21 - + col0 + col2 AS col2 FROM tab2 AS cor0
----
-1368
-1592
-989

query I rowsort
SELECT + col0 * - col1 - col1 - - col1 AS col2 FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 78 - col2 + - col1 * col1 col1 FROM tab2
----
-23
-2849
-830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7599
SELECT 90 DIV + SUM( 55 ) + + + SUM( DISTINCT - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7599
SELECT 90 / + SUM ( 55 ) + + + SUM ( DISTINCT - col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + ( + + COUNT( * ) ) + + 7 * - + ( - 94 ) FROM tab2
----
661

skipif mysql # not compatible
query I rowsort label-7600
SELECT + ( + + COUNT ( * ) ) + + 7 * - + ( - 94 ) FROM tab2
----
661

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT ALL ( - + CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL ( - + CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ( col0 ) * + col2 FROM tab0 WHERE NOT ( 75 + + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + 78 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT COUNT( * ) * + + 31 AS col1 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7605
SELECT COUNT ( * ) * + + 31 AS col1 FROM tab0
----
93

query I rowsort
SELECT + 53 + - 77 / + 90 FROM tab2 WHERE NOT - col1 <> ( 80 + + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL col2 * - CAST( ( - col2 ) AS SIGNED ) * 22 col2 FROM tab0 AS cor0
----
215622
2200
48598

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7607
SELECT ALL col2 * - CAST ( ( - col2 ) AS INTEGER ) * 22 col2 FROM tab0 AS cor0
----
215622
2200
48598

query I rowsort
SELECT col2 * col2 * 82 FROM tab1 AS cor0
----
285442
379168
755712

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT - COUNT( * ) * + 62 AS col2 FROM tab2 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT - COUNT ( * ) * + 62 AS col2 FROM tab2 cor0
----
-186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 + - - col1 + - + col1 * 79 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT + + col0 DIV - 38 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7612
SELECT + + col0 / - 38 FROM tab1 AS cor0
----
-1
-2
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + 94 * + - col0 * - 5 IN ( col0 * 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT + MAX( ALL + ( 69 ) ) FROM tab2, tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT + MAX ( ALL + ( 69 ) ) FROM tab2, tab2 cor0
----
69

query I rowsort
SELECT DISTINCT 72 FROM tab0 WHERE ( 8 - - + col1 ) IS NOT NULL
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT + col0 FROM tab0 WHERE NOT - CAST( - col2 AS SIGNED ) NOT BETWEEN + - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7616
SELECT + col0 FROM tab0 WHERE NOT - CAST ( - col2 AS INTEGER ) NOT BETWEEN + - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT ALL COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7618
SELECT DISTINCT * FROM tab1 WHERE + 29 - CAST( ( col1 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7618
SELECT DISTINCT * FROM tab1 WHERE + 29 - CAST ( ( col1 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + COUNT( + 5 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7619
SELECT + COUNT ( + 5 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 14 AND NULL
----

query II rowsort
SELECT ALL - 28, + col0 - - + col1 AS col0 FROM tab0 AS cor0
----
-28
108
-28
96
-28
98

query III rowsort
SELECT * FROM tab0 WHERE - + col0 * - col2 < ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL - - MAX( + col1 ) - - 26 FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL - - MAX ( + col1 ) - - 26 FROM tab0 AS cor0
----
107

query I rowsort
SELECT - 28 + - - col1 FROM tab1 cor0
----
-14
-23
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7625
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 AS col1, col2 * - col1 * - col0 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
197043
NULL
291383
NULL
53907

skipif mysql # not compatible
query II rowsort label-7625
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 AS col1, col2 * - col1 * - col0 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
197043
NULL
291383
NULL
53907

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL + 91 - - + SUM( 84 ) col2 FROM tab1 AS cor0
----
343

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7626
SELECT ALL + 91 - - + SUM ( 84 ) col2 FROM tab1 AS cor0
----
343

query I rowsort
SELECT + 88 * - 50 FROM tab1
----
-4400
-4400
-4400

query I rowsort
SELECT - 54 * 97 AS col2 FROM tab2
----
-5238
-5238
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT 97 * + COUNT( * ) AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-7629
SELECT 97 * + COUNT ( * ) AS col0 FROM tab1
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7630
SELECT - 52 * COUNT( * ) * + AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT - 52 * COUNT ( * ) * + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col2 col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT - col1 * + col0 + - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col0 * - col1 col0 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7635
SELECT + col0 * col2 + - - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT + col0 * col2 + - - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7636
SELECT col1 * - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( + col1 AS DECIMAL ) IS NULL
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-7636
SELECT col1 * - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( + col1 AS REAL ) IS NULL
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 54 * + 83 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 + + + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT DISTINCT MIN( + - 54 ) AS col0, + 83 + COUNT( * ) FROM tab0 AS cor0
----
-54
86

skipif mysql # not compatible
query II rowsort label-7639
SELECT DISTINCT MIN ( + - 54 ) AS col0, + 83 + COUNT ( * ) FROM tab0 AS cor0
----
-54
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7640
SELECT DISTINCT - + 26 - - 6 + + 82 AS col2, ( COUNT( * ) ) * + + MAX( - ( col2 ) ) FROM tab0 WHERE NOT NULL <> - 35
----
62
NULL

skipif mysql # not compatible
query II rowsort label-7640
SELECT DISTINCT - + 26 - - 6 + + 82 AS col2, ( COUNT ( * ) ) * + + MAX ( - ( col2 ) ) FROM tab0 WHERE NOT NULL <> - 35
----
62
NULL

query I rowsort
SELECT ( - + 95 ) AS col2 FROM tab2
----
-95
-95
-95

query I rowsort
SELECT DISTINCT 44 * + col1 AS col2 FROM tab2
----
2244
2948
3388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col0 col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL - col2 * - col2 + + 91 + - ( + + col2 ) FROM tab1
----
3513
4647
9211

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7645
SELECT * FROM tab0 WHERE - CAST( + col0 AS SIGNED ) / + - CAST( 63 AS SIGNED ) * - + col0 BETWEEN + + col0 * - CAST( NULL AS SIGNED ) * + col1 * - 87 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7645
SELECT * FROM tab0 WHERE - CAST ( + col0 AS INTEGER ) / + - CAST ( 63 AS INTEGER ) * - + col0 BETWEEN + + col0 * - CAST ( NULL AS INTEGER ) * + col1 * - 87 AND NULL
----

query I rowsort
SELECT ALL 45 + - col0 * + col1 FROM tab2
----
-2301
-4883
-4980

query I rowsort
SELECT ALL - 72 + + col2 AS col1 FROM tab0 AS cor0
----
-25
-62
27

query I rowsort
SELECT col0 + + + 31 FROM tab1 AS cor0
----
116
122
82

query III rowsort
SELECT ALL + 31 AS col0, 63, - col1 AS col1 FROM tab0
----
9 values hashing to 5e53d67798b34bd1dd80883c888f145d

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - SUM( DISTINCT 56 ) - 20 AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7650
SELECT - SUM ( DISTINCT 56 ) - 20 AS col2 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT ALL + col2 - - - ( col0 ) FROM tab0 AS cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7653
SELECT + 6 - + 38 + - 88 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7653
SELECT + 6 - + 38 + - 88 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT DISTINCT + + col0 * + col1 * + - col2 AS col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col0 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT ( 32 ) FROM tab0 AS cor0
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 = + 8 * + - 7 + - - 17 * - col0 - + + 73 + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT + CAST( NULL AS SIGNED ) * - col0 * - ( + - col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT + CAST ( NULL AS INTEGER ) * - col0 * - ( + - col1 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT col2 * - - 68 FROM tab0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - ( SUM( ALL - 53 ) ) col2 FROM tab0 cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7661
SELECT - ( SUM ( ALL - 53 ) ) col2 FROM tab0 cor0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7662
SELECT + COUNT( * ) DIV 37 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7662
SELECT + COUNT ( * ) / 37 col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) BETWEEN 68 * - 91 + - 44 + + col0 AND + 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT 93 + AVG ( ALL - ( + - ( - col0 ) ) ) + - + ( - + COUNT( * ) ) AS col2 FROM tab2 WHERE - - col1 + + - col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT 93 + AVG ( ALL - ( + - ( - col0 ) ) ) + - + ( - + COUNT ( * ) ) AS col2 FROM tab2 WHERE - - col1 + + - col2 >= NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query II rowsort label-7666
SELECT 95, + COUNT( * ) AS col0 FROM tab2
----
95
3

skipif mysql # not compatible
query II rowsort label-7666
SELECT 95, + COUNT ( * ) AS col0 FROM tab2
----
95
3

query I rowsort
SELECT ALL + 5 FROM tab1 cor0 WHERE NULL = ( 30 + 80 * + + col0 )
----

query I rowsort
SELECT - 48 AS col1 FROM tab0 cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT + - col2 * - col0 / CAST( NULL AS SIGNED ) + + - col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT + - col2 * - col0 / CAST ( NULL AS INTEGER ) + + - col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1, col1 * col1 AS col0 FROM tab2 AS cor0
----
-51
2601
-67
4489
-77
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT - - ( + col1 ) DIV 73 + - + col1 + col0 AS col1 FROM tab0 AS cor0
----
-65
66
96

skipif mysql # not compatible
query I rowsort label-7671
SELECT - - ( + col1 ) / 73 + - + col1 + col0 AS col1 FROM tab0 AS cor0
----
-65
66
96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 - + col2 > NULL
----

query I rowsort
SELECT - ( - - 19 ) + + col0 * col2 + + + col0 AS col0 FROM tab0 AS cor0
----
701
938
9681

query I rowsort
SELECT + col0 + - + 9 * + 39 AS col2 FROM tab0
----
-254
-264
-336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT 21 DIV - + COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7675
SELECT 21 / - + COUNT ( * ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT DISTINCT - 5 + + COUNT( * ) + + 48 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - 5 + + COUNT ( * ) + + 48 FROM tab0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 1 NOT BETWEEN + col0 AND + ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab2 WHERE ( - col1 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7679
SELECT + CAST( NULL AS DECIMAL ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT + CAST ( NULL AS REAL ) + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT col2 DIV - + col2 - + - 42 + - + 91 AS col0 FROM tab0 cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-7680
SELECT col2 / - + col2 - + - 42 + - + 91 AS col0 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7681
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 > - CAST( + col1 AS SIGNED ) ) OR NOT - + col0 + - col1 - 67 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7681
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 > - CAST ( + col1 AS INTEGER ) ) OR NOT - + col0 + - col1 - 67 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - + COUNT( + 67 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - + COUNT ( + 67 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 65 * - + col2 NOT BETWEEN - + 20 AND - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT MAX( - 50 ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT MAX ( - 50 ) AS col1 FROM tab1 AS cor0
----
-50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col0 * + 81 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT ALL + col1 * - col1 * - col1 * + col2 AS col2, + col1 FROM tab0
----
24977727
81
92610
21
99
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7688
SELECT ALL col0, - col1 DIV - - col0 FROM tab0
----
15
-5
87
0
97
0

skipif mysql # not compatible
query II rowsort label-7688
SELECT ALL col0, - col1 / - - col0 FROM tab0
----
15
-5
87
0
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT DISTINCT + 10 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + 10 / col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( - - 83 ) FROM tab0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - COUNT( ALL + 47 ) * 97 AS col1 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-7691
SELECT - COUNT ( ALL + 47 ) * 97 AS col1 FROM tab2
----
-291

query I rowsort
SELECT col1 * - col2 * - ( 56 ) AS col2 FROM tab0
----
11760
213192
5544

query I rowsort
SELECT DISTINCT + ( + 36 ) AS col2 FROM tab2 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 58 * + col0 * - 76 + col0 < + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 76 * - col2 <> - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + 36
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 + - - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT ALL + col1 + + + CAST( - - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 + col1 * - + 61 <= + 61
----

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + col1 + + + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 + col1 * - + 61 <= + 61
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 71 * - 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 47 * - col0 AS col0, 74 col1 FROM tab0 AS cor0
----
-4089
74
-4559
74
-705
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7702
SELECT ALL COUNT( * ) DIV - 22 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL COUNT ( * ) / - 22 FROM tab2 AS cor0
----
0

query III rowsort
SELECT - col2 * + col2 AS col2, 4 AS col2, col0 FROM tab0 AS cor0
----
9 values hashing to f7b30812adf1a3cbea16ea02ca3d6540

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 7 * + col2 + - col2 AS col0 FROM tab0
----
282
594
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT - MAX( ALL - 16 ) AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT - MAX ( ALL - 16 ) AS col0 FROM tab0
----
16

query I rowsort
SELECT 59 + 24 + - - 5 FROM tab1
----
88
88
88

query II rowsort
SELECT - col0 AS col1, + col2 FROM tab0 WHERE ( + col2 / col1 IS NOT NULL )
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT 80 + + MIN( - ( col2 ) ) col1 FROM tab1
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7709
SELECT DISTINCT 80 + + MIN ( - ( col2 ) ) col1 FROM tab1
----
-16

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col0 ) + col0 col2 FROM tab1 WHERE NULL >= - col2
----

query I rowsort
SELECT ALL + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 76 col0 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT 47 DIV - COUNT( - col1 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7714
SELECT 47 / - COUNT ( - col1 ) FROM tab1 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col0 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7716
SELECT CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + ( + + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT + col0 AS col1, + col1 * - 67 AS col2 FROM tab2
----
46
-3417
64
-5159
75
-4489

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + + col0 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT DISTINCT - CAST( 73 AS SIGNED ) AS col1 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT - CAST ( 73 AS INTEGER ) AS col1 FROM tab2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL + col1 * + col0 AS col1 FROM tab0 WHERE NOT 13 + + col0 + CAST( NULL AS SIGNED ) + + col1 + + col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + col1 * + col0 AS col1 FROM tab0 WHERE NOT 13 + + col0 + CAST ( NULL AS INTEGER ) + + col1 + + col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1 * + col0 * - col1 AS col1, - col2 * ( - - ( + col0 ) ) AS col0 FROM tab1
----
-201019
-6188
-2125
-5015
-9996
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7723
SELECT DISTINCT * FROM tab2 WHERE NOT + 58 * + - col0 IN ( - - CAST( + + col1 AS SIGNED ), - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7723
SELECT DISTINCT * FROM tab2 WHERE NOT + 58 * + - col0 IN ( - - CAST ( + + col1 AS INTEGER ), - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7724
SELECT ALL - CAST( NULL AS SIGNED ) * - 87 + - col0 AS col2, - 99 col1 FROM tab1 AS cor0
----
NULL
-99
NULL
-99
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7724
SELECT ALL - CAST ( NULL AS INTEGER ) * - 87 + - col0 AS col2, - 99 col1 FROM tab1 AS cor0
----
NULL
-99
NULL
-99
NULL
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 IN ( + + 54, col1 + col2 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 66 FROM tab0 WHERE ( + col1 + + - col2 ) IS NOT NULL
----
66
66
66

query I rowsort
SELECT 50 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7731
SELECT DISTINCT - col1 AS col1, - ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7731
SELECT DISTINCT - col1 AS col1, - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT ALL - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT + COUNT( * ) + - SUM( + - col0 ) AS col0 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-7733
SELECT + COUNT ( * ) + - SUM ( + - col0 ) AS col0 FROM tab1 AS cor0
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT ALL + col2 + + col1 DIV + col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + col2 + + col1 / + col1 FROM tab0 AS cor0
----
100
11
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 50 + - 40 * 16 * + 85 * 76 col2 FROM tab0 AS cor0
----
-4134350
-4134350
-4134350

query I rowsort
SELECT ALL - col1 * - 13 FROM tab2 AS cor0
----
1001
663
871

query I rowsort
SELECT DISTINCT 14 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND - col0 + - - 31 + - + col2 * col1 * + col0
----

query I rowsort
SELECT col1 * + + col2 + + - col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT ALL - + col2 * - + 71 + + col0 AS col0 FROM tab2 AS cor0
----
1679
2904
4193

query I rowsort
SELECT ALL + col0 + 72 AS col0 FROM tab1
----
123
157
163

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 < col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT - 72 * + 38 - + COUNT( * ) AS col0 FROM tab0 cor0
----
-2739

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT - 72 * + 38 - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-2739

query II rowsort
SELECT ALL + - 60, + 15 * - 89 + 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 4e8655c9549b5d9942bf842586c07535

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT - COUNT( * ) * - 38 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-7744
SELECT - COUNT ( * ) * - 38 FROM tab2
----
114

query II rowsort
SELECT - 90, col2 AS col2 FROM tab1 cor0
----
-90
59
-90
68
-90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT SUM( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7746
SELECT SUM ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - 86 FROM tab0 AS cor0 WHERE - 40 + col0 = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 3 ) col1 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT ( + - 56 ) FROM tab2 cor0
----
-56

query I rowsort
SELECT + col1 * - + col2 + + + col0 FROM tab0 cor0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT ALL - CAST( + AVG ( ALL - - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - CAST ( + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ( - + 13 ) AS col1, - 87 FROM tab1
----
-13
-87
-13
-87
-13
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7753
SELECT 9 * + ( + - col1 ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT 9 * + ( + - col1 ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 64 + 8 >= NULL
----

query I rowsort
SELECT col2 * - + 70 AS col1 FROM tab2
----
-1610
-2800
-4060

query I rowsort
SELECT ALL col2 + - - col2 - + + col0 * + col1 AS col0 FROM tab2
----
-2300
-4848
-4909

query I rowsort
SELECT + + 45 * col1 * - + 61 + 36 FROM tab0 AS cor0
----
-222309
-2709
-57609

query I rowsort
SELECT + col0 + 84 - + col2 * 84 * 94 AS col0 FROM tab1 AS cor0
----
-465695
-536753
-757881

query I rowsort
SELECT + col2 / + 91 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + - col0 col1 FROM tab0 AS cor0
----
-67
-77
5

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) <= col2 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + + col0 * + + ( - - col2 ) FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT col0 * col0 + 94 AS col1 FROM tab0
----
319
7663
9503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT CAST( + col1 AS SIGNED ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7764
SELECT CAST ( + col1 AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col2 * - col1 * 85 AS col1 FROM tab2 cor0 WHERE - ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT ALL + + COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + + COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 35 + + 43 * - col2 FROM tab0 AS cor0
----
-1986
-395
-4222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) / + 75 - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 75 - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * + 67 * + ( + + col0 ) col0 FROM tab2
----
252724
351616
412050

query I rowsort
SELECT ALL + col2 + - + col0 AS col1 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT col1 * - 42 * col1 * + 17 AS col0 FROM tab2
----
-1857114
-3205146
-4233306

query I rowsort
SELECT ALL ( + col2 ) + + 25 * col0 + 62 FROM tab2 AS cor0
----
1235
1702
1995

query II rowsort
SELECT - + col1 AS col2, 66 AS col0 FROM tab1 cor0
----
-14
66
-47
66
-5
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 > NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7775
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR + + CAST( - col0 AS DECIMAL ) * col2 + - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7775
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR + + CAST ( - col0 AS REAL ) * col2 + - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * + + col2 col2 FROM tab1 AS cor0
----
1593
1836
2592

query II rowsort
SELECT - - 14 * + 17, + col0 FROM tab1 AS cor0
----
238
51
238
85
238
91

query II rowsort
SELECT + + ( - col0 ) AS col2, col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT - ( + 89 ) AS col0 FROM tab2 cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col2, + ( SUM( + - col2 ) ) col2 FROM tab1 AS cor0
----
59
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7780
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col2, + ( SUM ( + - col2 ) ) col2 FROM tab1 AS cor0
----
59
-223

query II rowsort
SELECT DISTINCT col1 AS col1, col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - ( - - 61 ) + 8 + - COUNT( * ) AS col2 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-7782
SELECT - ( - - 61 ) + 8 + - COUNT ( * ) AS col2 FROM tab0
----
-56

query II rowsort
SELECT DISTINCT - + 39 AS col2, - 53 AS col0 FROM tab2 WHERE NULL IS NULL
----
-39
-53

query I rowsort
SELECT DISTINCT + ( + - 88 ) FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT 32 + + MIN( + col2 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT 32 + + MIN ( + col2 ) FROM tab1
----
91

query II rowsort
SELECT 2, - ( - + col2 ) FROM tab0 WHERE 20 * - + col1 * + col2 / + 89 NOT IN ( + col0 * - col0, - col1, + - 36 ) AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - - 36 + + MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - - 36 + + MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL - COUNT( * ) + + - 80 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - COUNT ( * ) + + - 80 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT ALL - - col1 + + col1 AS col1 FROM tab2 cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * + col1 col2 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT + ( + 2 ) AS col2 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND 32
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT + - CAST( + 96 AS SIGNED ) + 61 AS col1 FROM tab2 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-7793
SELECT + - CAST ( + 96 AS INTEGER ) + 61 AS col1 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7794
SELECT DISTINCT col1 + 60 DIV + + 11 FROM tab2 AS cor0
----
56
72
82

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT col1 + 60 / + + 11 FROM tab2 AS cor0
----
56
72
82

query I rowsort
SELECT + + 71 AS col0 FROM tab1 AS cor0 WHERE 2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT 55 * col2 DIV 7 * - col0 + + - 99 DIV col0 AS col2 FROM tab2 AS cor0
----
-20097
-34126
-8282

skipif mysql # not compatible
query I rowsort label-7796
SELECT 55 * col2 / 7 * - col0 + + - 99 / col0 AS col2 FROM tab2 AS cor0
----
-20097
-34126
-8282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + 2 col0 FROM tab1 AS cor0
----
-49
-83
-89

query I rowsort
SELECT ALL 74 * col1 AS col1 FROM tab0 AS cor0
----
1554
5994
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL + ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE 90 / 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE 90 / 29 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT ALL + col0 * + col2 DIV + col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + col0 * + col2 / + col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT 69 - - - col2 FROM tab2
----
11
29
46

query I rowsort
SELECT - col2 * - - col2 * 91 FROM tab1 WHERE ( ( + col1 ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL + COUNT( * ) * - 96 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL + COUNT ( * ) * - 96 FROM tab1
----
-288

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7804
SELECT - col1 - - CAST( - col0 AS SIGNED ) + + 28 DIV + col1 AS col2 FROM tab1
----
-138
-63
-85

skipif mysql # not compatible
query I rowsort label-7804
SELECT - col1 - - CAST ( - col0 AS INTEGER ) + + 28 / + col1 AS col2 FROM tab1
----
-138
-63
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7805
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * - - 32 AS col1, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7805
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * - - 32 AS col1, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <= ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT - col1 DIV + col0 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7807
SELECT - col1 / + col0 * col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= NULL OR + 96 NOT IN ( + 32, + ( + ( 56 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 37 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 cor0 WHERE + 20 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT - COUNT( ( - 35 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - COUNT ( ( - 35 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT - col0 * + ( + col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7812
SELECT - col0 * + ( + col1 ) / col1 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + + col1 * + col1 * + + col0 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 75 >= + col0 * 66
----
119595
336608
379379

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 AS col2, col2 * + ( + col1 ) AS col2 FROM tab0
----
-15
3807
-87
210
-97
99

query I rowsort
SELECT col1 * + col2 FROM tab0 WHERE NOT + 1 IN ( ( col0 ) * + - col2 * + - 87 + - 50 / + + 41 + ( - col2 ) + + col0 )
----
210
3807
99

query II rowsort
SELECT 40, 71 AS col0 FROM tab0
----
40
71
40
71
40
71

query II rowsort
SELECT 33, col2 FROM tab1
----
33
59
33
68
33
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + MIN( DISTINCT + + 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7819
SELECT + MIN ( DISTINCT + + 24 ) AS col1 FROM tab2 AS cor0
----
24

query II rowsort
SELECT + + 45 AS col2, 43 * + col1 FROM tab1 AS cor0
----
45
2021
45
215
45
602

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT ALL - + COUNT( DISTINCT - - col1 ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7821
SELECT ALL - + COUNT ( DISTINCT - - col1 ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7822
SELECT DISTINCT + - 72, + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-72
3

skipif mysql # not compatible
query II rowsort label-7822
SELECT DISTINCT + - 72, + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-72
3

query I rowsort
SELECT DISTINCT - + 35 * + 84 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 76 * col0 FROM tab2 cor0
----
3496
4864
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT - - COUNT( + - col2 ) FROM tab0 AS cor0 WHERE NOT ( NOT col2 / - - col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT - - COUNT ( + - col2 ) FROM tab0 AS cor0 WHERE NOT ( NOT col2 / - - col0 IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT - - col0 * - 42 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7826
SELECT - - col0 * - 42 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT + col0 * 8 DIV - 95 FROM tab0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-7827
SELECT + col0 * 8 / - 95 FROM tab0
----
-1
-7
-8

query I rowsort
SELECT DISTINCT + col1 + - 18 AS col1 FROM tab2
----
33
49
59

query I rowsort
SELECT + 52 AS col2 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT + - 15 + + - SUM( ALL + 97 ) FROM tab0 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT + - 15 + + - SUM ( ALL + 97 ) FROM tab0 AS cor0
----
-306

query I rowsort
SELECT DISTINCT + ( 55 ) AS col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT - - 88 + + + col0 FROM tab0 AS cor0
----
103
175
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 33 ) col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
33
33
33

query I rowsort
SELECT DISTINCT 94 + - + ( + + ( col0 ) ) FROM tab1
----
3
43
9

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7836
SELECT DISTINCT + col1 DIV CAST( + + col1 AS SIGNED ) + - - col2 * + col2 + - col2 + + - 18 AS col0 FROM tab1 cor0
----
3405
4539
9103

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT + col1 / CAST ( + + col1 AS INTEGER ) + - - col2 * + col2 + - col2 + + - 18 AS col0 FROM tab1 cor0
----
3405
4539
9103

query I rowsort
SELECT + 64 AS col2 FROM tab2 AS cor0 WHERE + col2 * + - col1 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= - col2 * - + col0 + + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7839
SELECT * FROM tab2 AS cor0 WHERE - CAST( - ( + 42 ) AS SIGNED ) < - + ( + 80 ) * col2
----

skipif mysql # not compatible
query III rowsort label-7839
SELECT * FROM tab2 AS cor0 WHERE - CAST ( - ( + 42 ) AS INTEGER ) < - + ( + 80 ) * col2
----

query I rowsort
SELECT - 92 - - - col1 + + col0 AS col1 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - col1
----

query I rowsort
SELECT + + col1 - + - col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT 42 AS col1 FROM tab0 AS cor0 WHERE NULL >= - 82
----

query I rowsort
SELECT ALL col1 * 22 * + col1 FROM tab0
----
144342
22
9702

query I rowsort
SELECT ALL + 99 * + col1 * - ( col1 ) AS col0 FROM tab0
----
-43659
-649539
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 55 * + + col2 AS col1 FROM tab0
----
-2585
-5445
-550

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 = 46 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 36 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 NOT BETWEEN + - col1 + + 45 AND - col0 / + col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7850
SELECT 93 * CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT 93 * CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL - 10 * - COUNT( * ) AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - 10 * - COUNT ( * ) AS col1 FROM tab1
----
30

query II rowsort
SELECT + - 98 AS col2, col2 * + + col1 FROM tab1 AS cor0
----
-98
1344
-98
295
-98
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT COUNT( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT col2 * + 79 BETWEEN + - ( - + ( + 31 ) ) AND 14 * + 49 * + 23 + - - col1 * - col0 + + col2 * - - 75 / - 38
----
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT col2 * + 79 BETWEEN + - ( - + ( + 31 ) ) AND 14 * + 49 * + 23 + - - col1 * - col0 + + col2 * - - 75 / - 38
----
0

query I rowsort
SELECT + + col0 * + 17 AS col0 FROM tab1 AS cor0
----
1445
1547
867

query I rowsort
SELECT - col1 * - - col2 * + col1 * - col0 FROM tab2 AS cor0
----
15178240
19527150
2751858

query I rowsort
SELECT ALL - col0 * - 80 AS col1 FROM tab1 AS cor0
----
4080
6800
7280

query I rowsort
SELECT + col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - + 46 * + col2 FROM tab1 AS cor0
----
-2714
-3128
-4416

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 61 IN ( + - 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT ALL + ( - col1 ) * - 42 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + ( - col1 ) * - 42 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 / - 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT + COUNT( * ) + + ( 28 ) AS col0 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-7862
SELECT + COUNT ( * ) + + ( 28 ) AS col0 FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - MIN( ALL 29 ) + + + 6 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-7863
SELECT - MIN ( ALL 29 ) + + + 6 FROM tab0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7864
SELECT DISTINCT * FROM tab2 WHERE - 8 + + - 97 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7864
SELECT DISTINCT * FROM tab2 WHERE - 8 + + - 97 > - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7865
SELECT DISTINCT - col0 DIV + - 30 + - + 96 col0 FROM tab0
----
-93
-94
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7865
SELECT DISTINCT - col0 / + - 30 + - + 96 col0 FROM tab0
----
-93
-94
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + 7 FROM tab0
----
-15
7
-87
7
-97
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 91 * + 60 * + + ( + - col2 ), - ( 78 ) col1 FROM tab2
----
-125580
-78
-218400
-78
-316680
-78

query II rowsort
SELECT - + col1, + 38 AS col2 FROM tab0 AS cor0
----
-1
38
-21
38
-81
38

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IS NOT NULL OR - 63 + - 82 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL 70 - - ( col1 ) FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL > NULL
----

query II rowsort
SELECT + col0 + col1 * col1 AS col2, + col0 * col2 FROM tab0
----
528
870
6576
705
98
9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 88 + + col1 NOT IN ( + col2, + col2 + - col2 )
----

query I rowsort
SELECT col2 * + col2 + + + col0 FROM tab2 AS cor0
----
1664
3439
575

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NOT NULL < + col0 - + 79
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND - col1 * + 92 - - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL - COUNT( * ) + 6 AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - COUNT ( * ) + 6 AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - + col0 - 39 * 65 AS col0 FROM tab0 AS cor0
----
-2550
-2622
-2632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 - col0 + - + 47 col0, 3 FROM tab0 AS cor0
----
-221
3
-241
3
-77
3

query I rowsort
SELECT DISTINCT - - 46 AS col0 FROM tab0 AS cor0
----
46

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE col0 * - 78 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - ( 50 ) AS col0 FROM tab1
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + col1 col2 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT - ( - + ( - 80 ) ) AS col2 FROM tab2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + + col0 * + 17 AS col0 FROM tab2 cor0
----
1088
1275
782

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - + col1 ) / col2 NOT BETWEEN 78 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT ALL + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
87

query I rowsort
SELECT ALL col1 * 21 FROM tab1 cor0
----
105
294
987

query I rowsort
SELECT DISTINCT + col0 * + - 64 * col2 FROM tab0 AS cor0
----
-45120
-55680
-614592

query I rowsort
SELECT DISTINCT + 32 + - - 19 AS col0 FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - 28 col1 FROM tab0
----
-13
59
69

query III rowsort
SELECT * FROM tab1 WHERE - 18 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT col1 DIV - 42 + - 85 DIV col2 AS col1 FROM tab0
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT col1 / - 42 + - 85 / col2 AS col1 FROM tab0
----
-2
-8
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 71 >= + col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT ALL + - ( ( + col2 ) ) * - col0 + - + col0 + - col1 / - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + - ( ( + col2 ) ) * - col0 + - + col0 + - col1 / - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT MIN( - col2 ) + - + 73 FROM tab0 AS cor0
----
-172

skipif mysql # not compatible
query I rowsort label-7902
SELECT MIN ( - col2 ) + - + 73 FROM tab0 AS cor0
----
-172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 21 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT DISTINCT col2 DIV + col2 + + 67 * + col0 * + 70 FROM tab0
----
408031
454931
70351

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT col2 / + col2 + + 67 * + col0 * + 70 FROM tab0
----
408031
454931
70351

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 * col0 + col2 * - col0 + - - 1 FROM tab1
----
-51
-4181
-85
-4589
-91
-1910

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - + 88 + - COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-97

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - + 88 + - COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT - COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7907
SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT + - ( ( COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT + - ( ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 * + 93 - + 82 + + 10 AS col2 FROM tab2 AS cor0 WHERE + col1 * - col2 IS NOT NULL
----
4206
5880
6903

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7910
SELECT + + col1, 83 + + col2 - CAST( NULL AS SIGNED ) - - 26 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7910
SELECT + + col1, 83 + + col2 - CAST ( NULL AS INTEGER ) - - 26 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT - 49 AS col0, - ( - col2 ) FROM tab1 AS cor0
----
-49
59
-49
68
-49
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + 13 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7912
SELECT + 13 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT DISTINCT - col2 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - col1 FROM tab0 AS cor0 WHERE - ( 72 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - col2 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - col1 FROM tab0 AS cor0 WHERE - ( 72 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 6 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 40 * + - 23 * - col1 AS col1 FROM tab1 AS cor0
----
-12880
-43240
-4600

query III rowsort
SELECT DISTINCT - col0 AS col1, - col0 AS col0, + - col2 + - col1 FROM tab0 AS cor0
----
9 values hashing to 7f4602f16cc16e0c2eedb638bba8fca8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 26 * col0 ) IN ( - 8, 14 )
----

query I rowsort
SELECT + - ( - - 68 ) AS col0 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT COUNT( * ) FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7919
SELECT COUNT ( * ) FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7920
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT + col1 <> - col2 * - CAST( + ( + - col0 ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7920
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT + col1 <> - col2 * - CAST ( + ( + - col0 ) AS INTEGER ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 45 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NULL IS NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - - 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT + COUNT( ALL - col1 ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7924
SELECT + COUNT ( ALL - col1 ) / COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 * 7 FROM tab2
----
322
448
525

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT ALL + 26 DIV - col1 + 71 AS col2 FROM tab1
----
66
70
71

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + 26 / - col1 + 71 AS col2 FROM tab1
----
66
70
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT ( + + MAX( ALL 97 ) ), + 73 AS col2 FROM tab0
----
97
73

skipif mysql # not compatible
query II rowsort label-7927
SELECT ( + + MAX ( ALL 97 ) ), + 73 AS col2 FROM tab0
----
97
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT DISTINCT + - 80 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT + - 80 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - col0 / + - col1 IS NULL
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7930
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 14 * col0 NOT BETWEEN - + CAST( NULL AS DECIMAL ) * + col2 / - col2 AND 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7930
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 14 * col0 NOT BETWEEN - + CAST ( NULL AS REAL ) * + col2 / - col2 AND 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - - col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT 54 + - 6 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT ALL col1 * - + 31 FROM tab2 cor0
----
-1581
-2077
-2387

query III rowsort
SELECT * FROM tab2 WHERE - + 94 BETWEEN NULL AND NULL
----

query II rowsort
SELECT 52 * - col1 AS col2, col0 FROM tab1
----
-2444
91
-260
85
-728
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7936
SELECT ALL * FROM tab2 WHERE 41 NOT IN ( + col2 * col2 * - 3 + + CAST( NULL AS SIGNED ) * + col0, - col2, col1, - + ( - + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7936
SELECT ALL * FROM tab2 WHERE 41 NOT IN ( + col2 * col2 * - 3 + + CAST ( NULL AS INTEGER ) * + col0, - col2, col1, - + ( - + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT + 77 * - MAX( DISTINCT + + col0 ) FROM tab0
----
-7469

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + 77 * - MAX ( DISTINCT + + col0 ) FROM tab0
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL - 71 * - + COUNT( * ) + COUNT( + + col2 ) AS col0 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - 71 * - + COUNT ( * ) + COUNT ( + + col2 ) AS col0 FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT COUNT( + col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7939
SELECT COUNT ( + col0 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL - col2 * - + ( col0 ) AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL + ( COUNT( * ) ) + 12 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + ( COUNT ( * ) ) + 12 FROM tab1
----
15

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE - + 83 < ( col1 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT MAX( 52 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-7943
SELECT MAX ( 52 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + - - 3 * + col1 col2 FROM tab2 AS cor0
----
203
251
281

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT + COUNT( DISTINCT - + ( + 43 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-7945
SELECT + COUNT ( DISTINCT - + ( + 43 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT + 84 * - COUNT( * ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-7946
SELECT + 84 * - COUNT ( * ) FROM tab0
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT DISTINCT 62 * + CAST( + col2 AS SIGNED ) FROM tab0
----
2914
6138
620

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT 62 * + CAST ( + col2 AS INTEGER ) FROM tab0
----
2914
6138
620

query I rowsort
SELECT - 50 * - col0 FROM tab1
----
2550
4250
4550

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 52 + + - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * + 65 + + - 20 AS col2 FROM tab0 AS cor0
----
-1385
-5285
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col1 col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL + MIN( - 27 ) AS col0 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + MIN ( - 27 ) AS col0 FROM tab2 cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT - + CAST( - 79 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-7953
SELECT - + CAST ( - 79 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7954
SELECT ALL + 18 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
query II rowsort label-7954
SELECT ALL + 18 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
18
NULL
18
NULL
18
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + col2 IS NOT NULL AND NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - SUM( - col0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT - SUM ( - col0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----
NULL

query II rowsort
SELECT col0 AS col2, - ( col1 ) AS col2 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7959
SELECT ALL COUNT( * ) AS col2, + ( + COUNT( * ) ) * - MAX( - col0 ) AS col0 FROM tab1
----
3
153

skipif mysql # not compatible
query II rowsort label-7959
SELECT ALL COUNT ( * ) AS col2, + ( + COUNT ( * ) ) * - MAX ( - col0 ) AS col0 FROM tab1
----
3
153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7960
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 57 + + - col1 + ( col2 ) NOT BETWEEN NULL AND - CAST( + 65 AS SIGNED ) * - - col0
----

skipif mysql # not compatible
query III rowsort label-7960
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 57 + + - col1 + ( col2 ) NOT BETWEEN NULL AND - CAST ( + 65 AS INTEGER ) * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + - COUNT( * ) + 62 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7961
SELECT + - COUNT ( * ) + 62 FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT + COUNT( * ) + + MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7962
SELECT + COUNT ( * ) + + MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT 97 - + 54 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) + + ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) + + ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 col2 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + col2 - - + 95 AS col1 FROM tab1 AS cor0
----
154
163
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL - MIN( DISTINCT 37 ) AS col0 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - MIN ( DISTINCT 37 ) AS col0 FROM tab0 AS cor0
----
-37

query II rowsort
SELECT DISTINCT - col2 AS col0, 32 + + 7 * - - col1 AS col1 FROM tab0
----
-10
179
-47
599
-99
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT + COUNT( * ) * + 24 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + COUNT ( * ) * + 24 FROM tab2
----
72

query I rowsort
SELECT col1 + 1 * + + col1 AS col0 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL + CAST( + + col1 AS SIGNED ) * col0 AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + CAST ( + + col1 AS INTEGER ) * col0 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT - 87 + 88 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 + - 70 AS col0 FROM tab2
----
-121
-137
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col0 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7975
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col0 + - col1 IS NULL
----
0

query II rowsort
SELECT + 31, col0 AS col1 FROM tab0 AS cor0
----
31
15
31
87
31
97

query II rowsort
SELECT ALL - 15 * + col0 + + col0, col1 AS col2 FROM tab1 AS cor0
----
-1190
5
-1274
47
-714
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT MIN( + + col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT MIN ( + + col0 ) col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT - 51 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
-51
51
-51
67
-51
77

query I rowsort
SELECT 39 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT DISTINCT ( 45 ) * + ( - COUNT( * ) ) AS col0 FROM tab1 WHERE NOT ( - col1 ) NOT IN ( + ( - 10 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT ( 45 ) * + ( - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT ( - col1 ) NOT IN ( + ( - 10 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT CAST( NULL AS SIGNED ) + 9 / 9 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT CAST ( NULL AS INTEGER ) + 9 / 9 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * 12 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT COUNT( * ) FROM tab0 WHERE NOT - col2 + - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7984
SELECT COUNT ( * ) FROM tab0 WHERE NOT - col2 + - col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT ( - 87 ) FROM tab0
----
-87

query I rowsort
SELECT ALL 66 + + col1 AS col2 FROM tab1
----
113
71
80

query I rowsort
SELECT DISTINCT - col1 + 97 FROM tab2
----
20
30
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col2 BETWEEN 44 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col2 BETWEEN 44 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT + COUNT( * ) FROM tab0 WHERE + col2 * - 90 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7989
SELECT + COUNT ( * ) FROM tab0 WHERE + col2 * - 90 IS NOT NULL
----
3

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT col0 + col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + col0 - + 42 * col0 AS col0 FROM tab0 WHERE NULL <= - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - 74 * - col1 + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT - CAST( NULL AS SIGNED ) + SUM( + CAST( + col1 AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT - CAST ( NULL AS INTEGER ) + SUM ( + CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 73 + 74 * - col0 FROM tab2
----
-3477
-4809
-5623

query I rowsort
SELECT ALL 91 AS col0 FROM tab1 WHERE 34 NOT BETWEEN NULL AND 33
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL 18 * ( - COUNT( * ) ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL 18 * ( - COUNT ( * ) ) FROM tab2
----
-54

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * + 93 FROM tab0 cor0
----
4371
9207
930

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( col2 * - col0 ) AND + col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT - col1 / 46 col2 FROM tab1 WHERE 30 / CAST( col2 AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8000
SELECT - col1 / 46 col2 FROM tab1 WHERE 30 / CAST ( col2 AS INTEGER ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT MAX( ALL + col0 ) + - 88 AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT MAX ( ALL + col0 ) + - 88 AS col2 FROM tab1
----
3

query I rowsort
SELECT + 30 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 22 > ( col1 + 24 * + 94 )
----

query I rowsort
SELECT - col1 * col0 - col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 17 + ( 93 ) * - ( col0 ) FROM tab0
----
-1378
-8074
-9004

query I rowsort
SELECT 50 + col1 * - 9 AS col1 FROM tab0 AS cor0
----
-139
-679
41

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 * col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - - MAX( DISTINCT col2 ) + 90 FROM tab2 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-8008
SELECT - - MAX ( DISTINCT col2 ) + 90 FROM tab2 AS cor0
----
148

query I rowsort
SELECT DISTINCT + 80 + - col1 FROM tab2 AS cor0
----
13
29
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <= ( col1 + 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT + CAST( col0 AS SIGNED ) + + 81 * - col1 col1 FROM tab0 AS cor0
----
-1614
-6546
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT + CAST ( col0 AS INTEGER ) + + 81 * - col1 col1 FROM tab0 AS cor0
----
-1614
-6546
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL 65 + MIN( + col2 ) * COUNT( * ) FROM tab1 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL 65 + MIN ( + col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
242

query I rowsort
SELECT DISTINCT + - 92 - col0 AS col1 FROM tab0 AS cor0
----
-107
-179
-189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8014
SELECT - col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT - col1 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 22 * + ( + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( col2 ) * col0 AND ( + col1 + col0 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT + + 92 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4692
-7820
-8372

skipif mysql # not compatible
query I rowsort label-8018
SELECT + + 92 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4692
-7820
-8372

query III rowsort
SELECT * FROM tab0 WHERE + col0 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT col1 + - col2 <> NULL
----

query I rowsort
SELECT - 38 AS col0 FROM tab0 WHERE - col2 NOT IN ( + 19 )
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT CAST( ( 94 ) AS SIGNED ) + - col1 IN ( col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT CAST ( ( 94 ) AS INTEGER ) + - col1 IN ( col0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - MAX( DISTINCT - + col0 ) * + 69 FROM tab1
----
3519

skipif mysql # not compatible
query I rowsort label-8023
SELECT - MAX ( DISTINCT - + col0 ) * + 69 FROM tab1
----
3519

query I rowsort
SELECT ALL col0 + 84 * - col2 FROM tab1
----
-4871
-5621
-8013

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ( - 26 ) - + COUNT( * ) AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8025
SELECT ( - 26 ) - + COUNT ( * ) AS col1 FROM tab0
----
-29

query I rowsort
SELECT + 22 * + 38 - + col2 * - 8 FROM tab2
----
1020
1156
1300

query I rowsort
SELECT + 5 - 25 * - ( + ( + col2 ) * 64 + + ( + col1 + + 92 ) ) FROM tab1
----
112280
156255
96830

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= ( + 3 )
----

query I rowsort
SELECT - col1 - + + col2 + col0 AS col1 FROM tab2
----
-28
-50
-53

query I rowsort
SELECT DISTINCT col0 + - 42 AS col2 FROM tab2 AS cor0 WHERE NOT 6 IS NOT NULL AND NOT - col1 <= NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL = ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT 37 FROM tab1 cor0 WHERE NOT col0 + CAST( NULL AS SIGNED ) / - col2 > col2
----

skipif mysql # not compatible
query I rowsort label-8032
SELECT 37 FROM tab1 cor0 WHERE NOT col0 + CAST ( NULL AS INTEGER ) / - col2 > col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 * - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL 96 * SUM( col2 ) FROM tab1 AS cor0
----
21408

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL 96 * SUM ( col2 ) FROM tab1 AS cor0
----
21408

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT - COUNT( * ) + - 55 AS col0 FROM tab0, tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT - COUNT ( * ) + - 55 AS col0 FROM tab0, tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT - - COUNT( * ) + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - - COUNT ( * ) + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8038
SELECT ALL - 80, + COUNT( DISTINCT + col2 ) AS col2 FROM tab2
----
-80
3

skipif mysql # not compatible
query II rowsort label-8038
SELECT ALL - 80, + COUNT ( DISTINCT + col2 ) AS col2 FROM tab2
----
-80
3

query I rowsort
SELECT ALL + 58 * - 98 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d6519f2a827bb2a7ef02cbf0a32d2174

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 36 / - 62 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col0 >= + col1 + + ( 13 )
----

query I rowsort
SELECT - 55 * - 83 FROM tab2 cor0
----
4565
4565
4565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 52 * + ( 89 ) col1 FROM tab2 cor0
----
-4628
-4628
-4628

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT DISTINCT + - 57 * - col1 DIV + + ( + col1 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT + - 57 * - col1 / + + ( + col1 ) FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - + 70 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT SUM( DISTINCT + 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-8047
SELECT SUM ( DISTINCT + 11 ) FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT - MAX( DISTINCT + col2 ) FROM tab2 WHERE ( col2 * - col1 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - MAX ( DISTINCT + col2 ) FROM tab2 WHERE ( col2 * - col1 ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col1 * - 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT DISTINCT 89 DIV + 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT 89 / + 99 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 + 44 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT + MIN( - - col0 ) + 96 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + MIN ( - - col0 ) + 96 FROM tab0
----
111

query I rowsort
SELECT + ( - 61 ) AS col1 FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT + - col2 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - col2 * + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL 75 * + col2 * + + col0 FROM tab2
----
192000
326250
79350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT col2 + + 83 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + CAST( + col0 AS SIGNED ) ) <= ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-8056
SELECT col2 + + 83 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + CAST ( + col0 AS INTEGER ) ) <= ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8057
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col2 - + + col0 + col1 * CAST( NULL AS SIGNED ) > + col1
----

skipif mysql # not compatible
query III rowsort label-8057
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col2 - + + col0 + col1 * CAST ( NULL AS INTEGER ) > + col1
----

query I rowsort
SELECT ALL - 4 + col1 + - col2 + 87 AS col1 FROM tab0 AS cor0
----
-15
117
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT + COUNT( - col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + COUNT ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND + col2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - + ( + 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col2 FROM tab0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT DISTINCT MIN( ALL - 27 ) * - + COUNT( ALL + - col1 ) * + COUNT( * ) * COUNT( * ) - - 85 + 68 * 49 FROM tab1
----
4146

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT MIN ( ALL - 27 ) * - + COUNT ( ALL + - col1 ) * + COUNT ( * ) * COUNT ( * ) - - 85 + 68 * 49 FROM tab1
----
4146

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + + COUNT( * ) - + COUNT( * ) col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8063
SELECT + + COUNT ( * ) - + COUNT ( * ) col0 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT CAST( NULL AS SIGNED ) * - ( - COUNT( * ) ) + + 78 - + + 22 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) + + 78 - + + 22 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 56 AS col2, col0 * + - ( + col2 ) FROM tab2 AS cor0
----
-56
-1058
-56
-2560
-56
-4350

query I rowsort
SELECT - + col1 + - + col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT ALL - col2 - + 25 AS col0 FROM tab0 AS cor0
----
-124
-35
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT DISTINCT col1 - + 23 * - col2 + - col2 DIV + 16 col1 FROM tab2
----
1398
579
995

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8068
SELECT DISTINCT col1 - + 23 * - col2 + - col2 / + 16 col1 FROM tab2
----
1398
579
995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT 27 * + ( - CAST( NULL AS SIGNED ) ) + + - col0 * + ( + col1 ) / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT 27 * + ( - CAST ( NULL AS INTEGER ) ) + + - col0 * + ( + col1 ) / - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 65 + - - col2 + - col2 * + col1 * ( + + col1 ) * col0 FROM tab1
----
-125251
-13669159
-959455

query II rowsort
SELECT ALL 55 * - col2 + - 99 * - - 84, col1 FROM tab0
----
-10901
81
-13761
1
-8866
21

query I rowsort
SELECT ALL ( col0 ) FROM tab2 WHERE NOT NULL NOT IN ( 48, col2 * - 98 * - 60 )
----

query I rowsort
SELECT + ( 18 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT - - COUNT( + 44 ) col0 FROM tab1 AS cor0 WHERE NOT ( ( col1 ) ) <> - 6
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8075
SELECT DISTINCT - - COUNT ( + 44 ) col0 FROM tab1 AS cor0 WHERE NOT ( ( col1 ) ) <> - 6
----
0

query II rowsort
SELECT + 82 AS col0, + 14 FROM tab0 AS cor0
----
82
14
82
14
82
14

query I rowsort
SELECT + + col2 * col0 * + col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT ALL CAST( + 63 AS SIGNED ) * col0 * + 9 AS col1 FROM tab1 AS cor0
----
28917
48195
51597

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL CAST ( + 63 AS INTEGER ) * col0 * + 9 AS col1 FROM tab1 AS cor0
----
28917
48195
51597

query I rowsort
SELECT - + col0 * - + col0 - col0 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL + + SUM( DISTINCT + col1 ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + + SUM ( DISTINCT + col1 ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-309

query I rowsort
SELECT + col2 * + + 34 FROM tab1 AS cor0
----
2006
2312
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT - 34 * + - col0 * CAST( + + ( + col1 ) AS SIGNED ) * + + col0 FROM tab2 AS cor0
----
10723328
12813750
3669144

skipif mysql # not compatible
query I rowsort label-8083
SELECT - 34 * + - col0 * CAST ( + + ( + col1 ) AS INTEGER ) * + + col0 FROM tab2 AS cor0
----
10723328
12813750
3669144

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + - ( + col1 ) BETWEEN - - col1 + col1 AND ( + 49 * - ( 67 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( 24 ) * + col1 FROM tab0 cor0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - COUNT( ALL - + 16 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8086
SELECT - COUNT ( ALL - + 16 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 89 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT + MIN( - + col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + MIN ( - + col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT col0 + + 42 FROM tab0
----
129
139
57

query I rowsort
SELECT ALL + - ( + 6 ) AS col2 FROM tab2 WHERE + col0 + - + col1 > + 89
----

query II rowsort
SELECT - col2, col2 * 99 AS col0 FROM tab0
----
-10
990
-47
4653
-99
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 76 col1 FROM tab1
----
-123
-81
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT - CAST( + + col1 AS SIGNED ) * - - col2 + 87 AS col2 FROM tab2
----
-1086
-2993
-3799

skipif mysql # not compatible
query I rowsort label-8093
SELECT - CAST ( + + col1 AS INTEGER ) * - - col2 + 87 AS col2 FROM tab2
----
-1086
-2993
-3799

query I rowsort
SELECT DISTINCT - col0 + col0 * col0 + 4 + + col1 + + 73 - + ( col2 ) - 69 FROM tab0
----
252
7501
9222

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 70 * - - col1 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + col1 > + col2
----
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8097
SELECT - + col2 * ( - - CAST( + col2 AS SIGNED ) ), 76 + col1 col2 FROM tab1 AS cor0
----
-3481
81
-4624
123
-9216
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8097
SELECT - + col2 * ( - - CAST ( + col2 AS INTEGER ) ), 76 + col1 col2 FROM tab1 AS cor0
----
-3481
81
-4624
123
-9216
90

query I rowsort
SELECT + 59 * - col0 FROM tab1 cor0
----
-3009
-5015
-5369

query II rowsort
SELECT - col0 * col0 * + col1 + - col1 + - col0 + - - col1, + col2 + + + 39 + + col0 AS col0 FROM tab1 AS cor0
----
-36210
183
-36465
186
-389298
198

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL <> NULL ) )
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( ( NOT ( ( + 70 * col0 / col0 ) >= ( 9 ) ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 43 BETWEEN NULL AND col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col2 - + 90 FROM tab0 AS cor0
----
-43
-80
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - COUNT( - 27 ) + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT - COUNT ( - 27 ) + COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8106
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 - CAST( NULL AS SIGNED ) - - CAST( - ( + + col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8106
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 - CAST ( NULL AS INTEGER ) - - CAST ( - ( + + col1 ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8107
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( - - 40 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8108
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - - 40 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8109
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / - - 24 >= NULL
----

query II rowsort
SELECT DISTINCT + col2, col2 + - + col0 AS col1 FROM tab0
----
10
-77
47
32
99
2

query I rowsort
SELECT + col2 * - - col1 * - - col2 / col1 - col0 AS col0 FROM tab0 WHERE NOT - col1 + - + ( - 73 ) * - col2 <> + 43
----

query I rowsort
SELECT col0 * - 21 AS col0 FROM tab0
----
-1827
-2037
-315

onlyif mysql # DIV for integer division: 
query II rowsort label-8114
SELECT + ( ( + col0 ) ) * - col0 * - col1, - 36 DIV - col0 AS col2 FROM tab0
----
158949
0
18225
2
9409
0

skipif mysql # not compatible
query II rowsort label-8114
SELECT + ( ( + col0 ) ) * - col0 * - col1, - 36 / - col0 AS col2 FROM tab0
----
158949
0
18225
2
9409
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT ALL + + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab2 AS cor0 WHERE NULL < + 56 / + 3 / - + 23 * - 97
----

query I rowsort
SELECT DISTINCT 63 * - 31 FROM tab2
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - COUNT( * ) + + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 91 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8119
SELECT - COUNT ( * ) + + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 91 IS NULL
----
0

query II rowsort
SELECT ALL - col1, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT - MAX( + 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - MAX ( + 80 ) FROM tab2 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col0 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, - col1 col0 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT - col2 * + 54 * + + col0 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 39 - 97 + - - col0 IS NULL
----
-1789290
-469800
-51337638

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL + MAX( DISTINCT + 48 ) col0 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8125
SELECT ALL + MAX ( DISTINCT + 48 ) col0 FROM tab0 AS cor0
----
48

query II rowsort
SELECT - col1 AS col1, - 44 FROM tab2 AS cor0
----
-51
-44
-67
-44
-77
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - CAST( NULL AS SIGNED ), - col1, - - col1 )
----

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - CAST ( NULL AS INTEGER ), - col1, - - col1 )
----

query I rowsort
SELECT DISTINCT col2 + - col1 - + col0 AS col1 FROM tab1
----
-31
-70
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8129
SELECT + CAST( CAST( + col1 AS DECIMAL ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8129
SELECT + CAST ( CAST ( + col1 AS REAL ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT MAX( 12 ) * COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT MAX ( 12 ) * COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT col0 + + CAST( + - col2 AS SIGNED ) * + 34 - 23 FROM tab2
----
-1319
-1920
-759

skipif mysql # not compatible
query I rowsort label-8131
SELECT col0 + + CAST ( + - col2 AS INTEGER ) * + 34 - 23 FROM tab2
----
-1319
-1920
-759

query I rowsort
SELECT ALL - col2 * + ( - 97 ) FROM tab0
----
4559
9603
970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT 66 + - + 63 - + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT 66 + - + 63 - + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 84 + - - col0 AS col0 FROM tab0
----
171
181
99

query I rowsort
SELECT + 10 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 62 * - col2 + - - 15 * + 42 FROM tab2 cor0
----
2056
3110
4226

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT DISTINCT MIN( + - 1 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8137
SELECT DISTINCT MIN ( + - 1 ) col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE col0 - - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL SUM( ALL + + 89 ) + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
313

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL SUM ( ALL + + 89 ) + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT - 38 * ( COUNT( * ) ) + + - 6 DIV - - MIN( + - ( col2 ) ) * MAX( ALL + ( ( + col0 ) ) ) FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8140
SELECT - 38 * ( COUNT ( * ) ) + + - 6 / - - MIN ( + - ( col2 ) ) * MAX ( ALL + ( ( + col0 ) ) ) FROM tab1 AS cor0
----
-114

query I rowsort
SELECT ALL 29 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( + col1 * col0 )
----

query I rowsort
SELECT ALL + 94 + - 54 FROM tab0 cor0
----
40
40
40

query II rowsort
SELECT ( - col2 ) * + - col2 - - + col2, + col0 FROM tab2 cor0
----
1640
64
3422
75
552
46

query II rowsort
SELECT - 87, + col0 AS col1 FROM tab0 AS cor0
----
-87
15
-87
87
-87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8147
SELECT ALL COUNT( * ) AS col2, - 12 AS col1 FROM tab0 AS cor0
----
3
-12

skipif mysql # not compatible
query II rowsort label-8147
SELECT ALL COUNT ( * ) AS col2, - 12 AS col1 FROM tab0 AS cor0
----
3
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT + col0 * - ( + + col2 ) * - CAST( 53 AS SIGNED ) * - ( 31 ) FROM tab2 AS cor0
----
-1738294
-4206080
-7147050

skipif mysql # not compatible
query I rowsort label-8148
SELECT + col0 * - ( + + col2 ) * - CAST ( 53 AS INTEGER ) * - ( 31 ) FROM tab2 AS cor0
----
-1738294
-4206080
-7147050

query I rowsort
SELECT ( + + col1 ) * 70 AS col2 FROM tab2
----
3570
4690
5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT - + COUNT( * ) FROM tab0 WHERE NOT - 87 NOT BETWEEN NULL AND CAST( - - col1 AS SIGNED ) * - - col2
----
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - 87 NOT BETWEEN NULL AND CAST ( - - col1 AS INTEGER ) * - - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT DISTINCT - col2 DIV 43 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT - col2 / 43 FROM tab2
----
-1
0

query I rowsort
SELECT ALL - col2 * ( + col0 ) AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT COUNT( - 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT COUNT ( - 1 ) FROM tab2
----
3

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT - + 80 NOT BETWEEN col2 AND col1
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE - 37 = NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + 70 AS col0 FROM tab1 cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8157
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 16 AND + ( - - CAST( + ( + + col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8157
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 16 AND + ( - - CAST ( + ( + + col1 ) AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT - - 17 DIV + + col1 + + + 50 FROM tab0 AS cor0
----
50
50
67

skipif mysql # not compatible
query I rowsort label-8158
SELECT - - 17 / + + col1 + + + 50 FROM tab0 AS cor0
----
50
50
67

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT ( - 63 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT - 91 * CAST( NULL AS SIGNED ) + - col0 * + col0 * - - col2 AS col0 FROM tab0 WHERE NOT col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8160
SELECT - 91 * CAST ( NULL AS INTEGER ) + - col0 * + col0 * - - col2 AS col0 FROM tab0 WHERE NOT col2 = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 15 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT MAX( CAST( NULL AS SIGNED ) ) * + 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT MAX ( CAST ( NULL AS INTEGER ) ) * + 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 84 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8164
SELECT - CAST( NULL AS DECIMAL ) * - + 27 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT - CAST ( NULL AS REAL ) * - + 27 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + - MAX( ALL + col1 ) col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8166
SELECT + - MAX ( ALL + col1 ) col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + col1 + + - 93 FROM tab1 cor0
----
-46
-79
-88

query I rowsort
SELECT + + 53 * - - 22 + col2 * - 79 AS col2 FROM tab2 AS cor0
----
-1994
-3416
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT MIN( + - 14 ) AS col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT MIN ( + - 14 ) AS col2 FROM tab0 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT + CAST( - col1 AS SIGNED ) - + ( - + 36 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) - + ( - + 36 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT + COUNT( 9 ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8171
SELECT DISTINCT + COUNT ( 9 ) col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + 90 + + col0 AS col1 FROM tab2
----
136
154
165

query I rowsort
SELECT DISTINCT - 68 * - 52 AS col2 FROM tab1
----
3536

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT MAX( - 94 ) AS col0 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-8174
SELECT MAX ( - 94 ) AS col0 FROM tab0
----
-94

query I rowsort
SELECT ALL ( + col0 ) + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 46 + 55 AS col0 FROM tab0
----
101
101
101

query II rowsort
SELECT - 91 AS col0, col0 * col1 FROM tab0
----
-91
1215
-91
1827
-91
97

query I rowsort
SELECT ALL + col0 + - col1 FROM tab0 WHERE ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT + - col2 AS col1 FROM tab2 WHERE NULL IN ( - col1, + 66 + - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * 6 + col2 <= col0
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT ALL + 19 DIV + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + 19 / + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + - col1 * - + col0 * + - 6 AS col0 FROM tab0
----
-230202
-582
-590490

query I rowsort
SELECT DISTINCT - + 50 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT + col0 DIV ( 44 ) + - col0 FROM tab1 AS cor0
----
-50
-84
-89

skipif mysql # not compatible
query I rowsort label-8184
SELECT + col0 / ( 44 ) + - col0 FROM tab1 AS cor0
----
-50
-84
-89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT DISTINCT - COUNT( * ) * + + 50, COUNT( * ) col0 FROM tab1 AS cor0
----
-150
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8186
SELECT DISTINCT - COUNT ( * ) * + + 50, COUNT ( * ) col0 FROM tab1 AS cor0
----
-150
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL - - MIN( col2 ) * 24 AS col1 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - - MIN ( col2 ) * 24 AS col1 FROM tab0 AS cor0
----
240

query I rowsort
SELECT + 86 * + - col2 AS col1 FROM tab0
----
-4042
-8514
-860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8189
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 3 + col1 * - - ( + col0 ) FROM tab0
----
NULL
100
NULL
1218
NULL
1830

skipif mysql # not compatible
query II rowsort label-8189
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 3 + col1 * - - ( + col0 ) FROM tab0
----
NULL
100
NULL
1218
NULL
1830

query II rowsort
SELECT - + col2 AS col1, - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-59
-68
-68
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + COUNT( * ) * + 26 * 79 FROM tab1
----
6162

skipif mysql # not compatible
query I rowsort label-8191
SELECT + COUNT ( * ) * + 26 * 79 FROM tab1
----
6162

query II rowsort
SELECT DISTINCT col2, 30 AS col1 FROM tab2
----
23
30
40
30
58
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 79 ) col1 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT DISTINCT + 89 AS col0, + ( + COUNT( + col1 ) ) AS col2 FROM tab1 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-8194
SELECT DISTINCT + 89 AS col0, + ( + COUNT ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
89
3

query I rowsort
SELECT + 23 + + - 63 AS col1 FROM tab1
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT ALL - col1 DIV col0 * + col0 col0 FROM tab0
----
-75
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8196
SELECT ALL - col1 / col0 * + col0 col0 FROM tab0
----
-75
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - SUM( - ( - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8197
SELECT - SUM ( - ( - col1 ) ) FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT + col2 * col1 DIV col0 * col0 + + col0 FROM tab1 AS cor0
----
1377
3276
340

skipif mysql # not compatible
query I rowsort label-8198
SELECT + col2 * col1 / col0 * col0 + + col0 FROM tab1 AS cor0
----
1377
3276
340

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL + COUNT( * ) * - 72 FROM tab1 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + COUNT ( * ) * - 72 FROM tab1 cor0
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT + col2 * - col2 + + 70 DIV + 1 FROM tab1 AS cor0
----
-3411
-4554
-9146

skipif mysql # not compatible
query I rowsort label-8200
SELECT + col2 * - col2 + + 70 / + 1 FROM tab1 AS cor0
----
-3411
-4554
-9146

query I rowsort
SELECT - col0 * col2 - - col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
3

query I rowsort
SELECT + col1 + + - 89 - + col1 AS col0 FROM tab1
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - 93 * - COUNT( * ) + - - ( 45 ) AS col0 FROM tab2
----
324

skipif mysql # not compatible
query I rowsort label-8204
SELECT - 93 * - COUNT ( * ) + - - ( 45 ) AS col0 FROM tab2
----
324

query I rowsort
SELECT DISTINCT - 35 * - col2 AS col1 FROM tab0
----
1645
3465
350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 8 col2 FROM tab0
----
29
89
9

query I rowsort
SELECT + 23 + 61 FROM tab1
----
84
84
84

query I rowsort
SELECT DISTINCT - 10 - col2 FROM tab2 AS cor0
----
-33
-50
-68

query I rowsort
SELECT DISTINCT + col1 - + col2 + + 81 FROM tab1 AS cor0
----
-1
27
60

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
31

query I rowsort
SELECT DISTINCT + ( 56 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL ( - 26 ) AS col1 FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT MIN( + + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT MIN ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8215
SELECT - 35 DIV - + ( + SUM( - 67 ) ) + + 65 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8215
SELECT - 35 / - + ( + SUM ( - 67 ) ) + + 65 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - 16 * + - col2 AS col2 FROM tab2 AS cor0
----
368
640
928

query I rowsort
SELECT + + col1 * - 9 * + col2 AS col0 FROM tab1 AS cor0
----
-12096
-2655
-28764

query I rowsort
SELECT ALL ( + + 40 ) * col1 * col2 AS col0 FROM tab2 AS cor0
----
123200
155440
46920

onlyif mysql # aggregate syntax: 
query II rowsort label-8219
SELECT 51 AS col0, COUNT( * ) FROM tab2 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-8219
SELECT 51 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
51
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT DISTINCT CAST( + 53 AS SIGNED ) * col1 + - 98 + + 45 * - - col1 + - + col1 AS col2 FROM tab1
----
1260
387
4461

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT CAST ( + 53 AS INTEGER ) * col1 + - 98 + + 45 * - - col1 + - + col1 AS col2 FROM tab1
----
1260
387
4461

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT ALL 95 DIV + col0 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL 95 / + col0 AS col2 FROM tab0
----
0
1
6

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND + col2 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL 47 * - + col1 FROM tab0
----
-3807
-47
-987

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 9 <= + ( - col1 ) * + col0 - - - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col0 >= - - col0 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col0 col1 FROM tab0 cor0
----
-225
-7569
-9409

query I rowsort
SELECT col0 * - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT - - 75 + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-8229
SELECT - - 75 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query I rowsort
SELECT 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + col0 + - + 24 AS col1 FROM tab0 AS cor0
----
-9
63
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT DISTINCT - 72 DIV + ( - - col2 ) + - - col1 FROM tab2 AS cor0
----
48
66
76

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT - 72 / + ( - - col2 ) + - - col1 FROM tab2 AS cor0
----
48
66
76

query I rowsort
SELECT 52 FROM tab1 cor0 WHERE 26 IS NOT NULL
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 28 * + - col2 / col0 * - col0 ) NOT IN ( + 64, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + - COUNT( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + - COUNT ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 17, 28 AS col0 FROM tab2, tab1 AS cor0
----
17
28

query I rowsort
SELECT DISTINCT - col1 + - - 50 * - col2 * - + col0 AS col0 FROM tab0
----
35169
43479
480149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8240
SELECT + COUNT( * ) DIV - COUNT( * ) AS col0, COUNT( * ) DIV - + 1 FROM tab2
----
-1
-3

skipif mysql # not compatible
query II rowsort label-8240
SELECT + COUNT ( * ) / - COUNT ( * ) AS col0, COUNT ( * ) / - + 1 FROM tab2
----
-1
-3

query II rowsort
SELECT ( + col2 ) AS col1, col2 * - col2 * + 60 * col2 FROM tab0
----
10
-60000
47
-6229380
99
-58217940

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * 25 <= 81 / ( - col1 ) * 92 )
----

query I rowsort
SELECT DISTINCT - col0 + - 94 FROM tab2 AS cor0
----
-140
-158
-169

query I rowsort
SELECT 27 AS col2 FROM tab0 cor0 WHERE + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - 80 - - ( - MAX( DISTINCT + ( col0 ) ) ) FROM tab2 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-8245
SELECT - 80 - - ( - MAX ( DISTINCT + ( col0 ) ) ) FROM tab2 AS cor0
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL col2 DIV + 5 - - col1 AS col1 FROM tab2 AS cor0
----
55
78
85

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL col2 / + 5 - - col1 AS col1 FROM tab2 AS cor0
----
55
78
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + + 72 ) * - - col2 / col0 - + 46 + - + col2 < 60 + + + 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 86 + - col2 + - 85
----

query I rowsort
SELECT ALL - ( + - 90 ) FROM tab0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT + - col1 DIV - col2 * 49 DIV col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8250
SELECT + - col1 / - col2 * 49 / col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8252
SELECT CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8253
SELECT - + MAX( - 25 ) DIV + SUM( + + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8253
SELECT - + MAX ( - 25 ) / + SUM ( + + col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT + col1 DIV - 54 * + 32 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8254
SELECT + col1 / - 54 * + 32 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT + + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8255
SELECT + + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 0 * + col0 * - - col0
----

query I rowsort
SELECT DISTINCT - + ( col1 ) * - + 93 AS col2 FROM tab0 cor0
----
1953
7533
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col1 FROM tab2
----
-7
-7
-7

query III rowsort
SELECT ALL * FROM tab1 WHERE + 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + - 10 ) FROM tab1
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 33 + col2 col0, + ( - 88 ) AS col0 FROM tab0 WHERE - + col1 - 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ( ( MAX( + + col1 ) ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8263
SELECT ( ( MAX ( + + col1 ) ) ) FROM tab2
----
77

query I rowsort
SELECT ALL + col0 * - ( col1 ) + + 44 AS col1 FROM tab1
----
-381
-4233
-670

query II rowsort
SELECT + 87, + col0 FROM tab2
----
87
46
87
64
87
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT + CAST( NULL AS SIGNED ) * 40 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT + CAST ( NULL AS INTEGER ) * 40 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT - 41 * + COUNT( * ) * - 23 * - - COUNT( * ) FROM tab1
----
8487

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT - 41 * + COUNT ( * ) * - 23 * - - COUNT ( * ) FROM tab1
----
8487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8268
SELECT DISTINCT - COUNT( * ) DIV - 55 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - COUNT ( * ) / - 55 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8269
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT DISTINCT - col1 * 97 AS col2 FROM tab2 cor0
----
-4947
-6499
-7469

query II rowsort
SELECT DISTINCT col0 AS col1, 95 * - - 92 * col1 + col1 FROM tab0 AS cor0
----
15
708021
87
183561
97
8741

query I rowsort
SELECT ALL ( - 83 ) FROM tab1
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT - MAX( ALL + col2 ) + - COUNT( * ) FROM tab0 WHERE - + 0 < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT - MAX ( ALL + col2 ) + - COUNT ( * ) FROM tab0 WHERE - + 0 < - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT ALL col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - + 91 - MIN( ALL - + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT - + 91 - MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT DISTINCT SUM( ALL - + 43 ), + 13 AS col1 FROM tab1 AS cor0
----
-129
13

skipif mysql # not compatible
query II rowsort label-8276
SELECT DISTINCT SUM ( ALL - + 43 ), + 13 AS col1 FROM tab1 AS cor0
----
-129
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 + col1 - + - col2 + ( ( + + 28 ) ) + - col1 * - col2 * - col2 col1 FROM tab2 AS cor0
----
-123014
-225194
-26836

query I rowsort
SELECT col2 + - + col1 + + col0 AS col2 FROM tab1
----
112
133
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL 97 - + COUNT( * ) col0 FROM tab0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8279
SELECT ALL 97 - + COUNT ( * ) col0 FROM tab0
----
94

query I rowsort
SELECT DISTINCT ( + - 65 ) * ( - - 7 ) AS col0 FROM tab2
----
-455

query I rowsort
SELECT DISTINCT - 7 * col0 AS col2 FROM tab2
----
-322
-448
-525

query II rowsort
SELECT ALL 71, col2 AS col0 FROM tab1
----
71
59
71
68
71
96

query I rowsort
SELECT DISTINCT col2 + + 32 FROM tab0
----
131
42
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 26 * - + 87 + col1 IS NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8286
SELECT DISTINCT - + 2 DIV - + SUM( ALL + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT - + 2 / - + SUM ( ALL + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8287
SELECT - ( + AVG ( 5 ) ) * + COUNT( * ) + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8287
SELECT - ( + AVG ( 5 ) ) * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col2 FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL - MIN( 27 ) AS col2 FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - MIN ( 27 ) AS col2 FROM tab1 cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8290
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 64 AS col1 FROM tab0 AS cor0
----
-1344
-5184
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT + ( - + col0 ) DIV + 13 AS col0 FROM tab1 AS cor0
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-8292
SELECT + ( - + col0 ) / + 13 AS col0 FROM tab1 AS cor0
----
-3
-6
-7

query I rowsort
SELECT ( col2 ) * + - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT - 84 * + 85 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-21420

skipif mysql # not compatible
query I rowsort label-8294
SELECT - 84 * + 85 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-21420

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col1 FROM tab0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT COUNT( * ) + + MIN( ALL col1 ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-8297
SELECT COUNT ( * ) + + MIN ( ALL col1 ) AS col0 FROM tab1
----
8

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 55 + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT DISTINCT + + SUM( DISTINCT - - 20 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + + SUM ( DISTINCT - - 20 ) FROM tab2 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 + - col2 - + col1 * + col2 col0 FROM tab0
----
-156
-178
-3812

query I rowsort
SELECT + - ( - 28 ) + - col2 FROM tab0 AS cor0
----
-19
-71
18

query I rowsort
SELECT DISTINCT col1 * col0 + + col0 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT ( + - 36 ) * col0 + + col1 AS col2 FROM tab0 AS cor0
----
-3111
-3491
-459

query II rowsort
SELECT - + 61 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
-61
59
-61
68
-61
96

query I rowsort
SELECT DISTINCT col0 - - col1 AS col0 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT ALL - 74 * + + 62, 74 AS col0 FROM tab1
----
-4588
74
-4588
74
-4588
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col1 FROM tab1 WHERE NOT 38 <> - col0
----

query II rowsort
SELECT + 93 - - col0 AS col1, col0 AS col2 FROM tab0
----
108
15
180
87
190
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8309
SELECT col0 - + + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8309
SELECT col0 - + + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT ALL SUM( 89 ) DIV - 21 AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL SUM ( 89 ) / - 21 AS col1 FROM tab0
----
-12

query I rowsort
SELECT + col1 * - ( - col1 ) AS col2 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT - col0 * - col0 * + 15 FROM tab2 AS cor0
----
31740
61440
84375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 + col1 + 33 * + - col1 / 41 * - col0 + col1 col0, col1 FROM tab1 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

query II rowsort
SELECT + 20 * + - 53 AS col2, + 85 AS col0 FROM tab2 AS cor0
----
-1060
85
-1060
85
-1060
85

query I rowsort
SELECT DISTINCT + 42 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query II rowsort
SELECT DISTINCT - ( - 64 ) AS col2, 26 AS col1 FROM tab0 AS cor0
----
64
26

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT + COUNT( * ) * + + MIN( 72 ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-8318
SELECT + COUNT ( * ) * + + MIN ( 72 ) FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT - ( COUNT( * ) ) * + 26 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8319
SELECT - ( COUNT ( * ) ) * + 26 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-234

query I rowsort
SELECT 90 * - + col1 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT DISTINCT + 19 * - 4 * + col0 * col2 FROM tab0 AS cor0
----
-53580
-66120
-729828

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT DISTINCT - ( ( - ( - + col1 ) ) ) DIV + 64 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT - ( ( - ( - + col1 ) ) ) / + 64 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL + SUM( DISTINCT ( - col1 ) ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + SUM ( DISTINCT ( - col1 ) ) AS col0 FROM tab0 cor0
----
-103

query I rowsort
SELECT + AVG ( DISTINCT + col0 ) * + ( + 90 ) FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT ALL 13 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
13
3

skipif mysql # not compatible
query II rowsort label-8325
SELECT ALL 13 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
13
3

query I rowsort
SELECT ALL AVG ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT 1 * - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8327
SELECT 1 * - COUNT ( * ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL <> - + ( - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL <> - + ( - + col1 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8329
SELECT col1 DIV + 48 AS col2, col0 AS col0 FROM tab0
----
0
87
0
97
1
15

skipif mysql # not compatible
query II rowsort label-8329
SELECT col1 / + 48 AS col2, col0 AS col0 FROM tab0
----
0
87
0
97
1
15

query I rowsort
SELECT DISTINCT col0 * + 35 + - col0 FROM tab2
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT MIN( DISTINCT - 79 ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT MIN ( DISTINCT - 79 ) FROM tab2
----
-79

query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 FROM tab1
----
1248
236
3128

query I rowsort
SELECT + col1 * - ( + 28 ) + + - col2 FROM tab2
----
-1451
-1934
-2196

query I rowsort
SELECT - 99 + - col0 * col0 FROM tab2 AS cor0
----
-2215
-4195
-5724

query I rowsort
SELECT DISTINCT - 6 + - 88 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT - SUM( ALL + 41 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-369

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - SUM ( ALL + 41 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-369

query I rowsort
SELECT ALL + col2 + - 52 - - 9 FROM tab1
----
16
25
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT ALL CAST( ( - + 30 ) AS SIGNED ) + - col0 * - 47 AS col0 FROM tab1
----
2367
3965
4247

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL CAST ( ( - + 30 ) AS INTEGER ) + - col0 * - 47 AS col0 FROM tab1
----
2367
3965
4247

query I rowsort
SELECT DISTINCT - + 87 + - 55 - + col1 * - col0 FROM tab1 cor0
----
283
4135
572

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL - + 58 * 28 - - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
-1618

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - + 58 * 28 - - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
-1618

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 7 * 7 > - - col1
----

query I rowsort
SELECT DISTINCT + - col1 - - 98 * + col0 FROM tab2 AS cor0
----
4457
6195
7283

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT SUM( DISTINCT col0 ) + COUNT( + + 84 ) FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-8343
SELECT SUM ( DISTINCT col0 ) + COUNT ( + + 84 ) FROM tab2 AS cor0
----
188

query I rowsort
SELECT - col2 + - + col0 AS col0 FROM tab1 cor0
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NOT ( NOT - + 42 + 32 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) col0 FROM tab2 WHERE NOT + - col1 / col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT + - 16 * - col2 * + + col1 FROM tab1 AS cor0
----
21504
4720
51136

query II rowsort
SELECT - - 21 AS col0, col2 + + 46 + 98 * + col0 + col2 * 86 AS col2 FROM tab1 cor0
----
21
13396
21
13509
21
14880

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8351
SELECT DISTINCT + col1 DIV + col1 col2, 30 AS col1 FROM tab0
----
1
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8351
SELECT DISTINCT + col1 / + col1 col2, 30 AS col1 FROM tab0
----
1
30

query I rowsort
SELECT ALL - + 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT COUNT( * ) * - 92 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT COUNT ( * ) * - 92 FROM tab0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL COUNT( * ) * + 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL COUNT ( * ) * + 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
63

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 87 * + col1 / + col2 >= - col2
----

query I rowsort
SELECT - 25 * - 82 AS col1 FROM tab2 AS cor0
----
2050
2050
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + - 22 * - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8358
SELECT + - 22 * - COUNT ( * ) FROM tab0 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 * - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 83 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 + - 8 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 75 + - - col2 FROM tab1
----
-16
-7
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - + col0, + col2, + ( + 39 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT DISTINCT CAST( + + col1 AS SIGNED ) + col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) + col2 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 + - col0 col1 FROM tab2
----
-104
-75
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + ( + SUM( 31 ) ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8366
SELECT + ( + SUM ( 31 ) ) FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT COUNT( * ) AS col2 FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL 61 + + + col1 FROM tab2
----
112
128
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 cor0 WHERE NOT NULL = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8370
SELECT DISTINCT + - COUNT( * ), COUNT( * ) col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8370
SELECT DISTINCT + - COUNT ( * ), COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT DISTINCT - + 9 - + COUNT( + - 18 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - + 9 - + COUNT ( + - 18 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT col1 + + + col0 AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT 25 + 9 AS col1 FROM tab0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT - 81 + + + CAST( - 49 AS SIGNED ) AS col2 FROM tab2
----
-130
-130
-130

skipif mysql # not compatible
query I rowsort label-8374
SELECT - 81 + + + CAST ( - 49 AS INTEGER ) AS col2 FROM tab2
----
-130
-130
-130

query II rowsort
SELECT - col0 * - 17 * + col1 + - col1, + col1 FROM tab2
----
39831
51
83699
77
85358
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 60 * - - 97 < - - col1 + - 95 + + 7
----

query I rowsort
SELECT DISTINCT - - 32 * - col2 FROM tab2 cor0 WHERE + 17 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 11 * col1 AS col2, col1 FROM tab2 AS cor0
----
561
51
737
67
847
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 63 ) col0 FROM tab1
----
-63
-63
-63

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 69 / + + ( 31 ) - - col2 IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT + COUNT( * ) * 14 * - 31 AS col0 FROM tab0
----
-1302

skipif mysql # not compatible
query I rowsort label-8383
SELECT + COUNT ( * ) * 14 * - 31 AS col0 FROM tab0
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL 87 + + MAX( ALL - 85 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL 87 + + MAX ( ALL - 85 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL + COUNT( * ) * - - 76 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + COUNT ( * ) * - - 76 FROM tab1 AS cor0
----
228

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= 70 * col2 / + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT DISTINCT - COUNT( * ) * + COUNT( + col0 ) col0, - 44 FROM tab0 cor0
----
-9
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8387
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + col0 ) col0, - 44 FROM tab0 cor0
----
-9
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - 52 + + COUNT( * ) AS col2 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-8388
SELECT - 52 + + COUNT ( * ) AS col2 FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT + MIN( col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + MIN ( col1 ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT DISTINCT + + 34 * + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
2958
3298
510

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + + 34 * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
2958
3298
510

query I rowsort
SELECT ALL 15 FROM tab0 AS cor0 WHERE NOT NULL <> 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + SUM( ALL 89 ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + SUM ( ALL 89 ) FROM tab1 AS cor0
----
267

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 46 / - col0 NOT BETWEEN NULL AND + col1 * + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8394
SELECT COUNT( * ) * + - 38, + COUNT( * ) col0 FROM tab0
----
-114
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8394
SELECT COUNT ( * ) * + - 38, + COUNT ( * ) col0 FROM tab0
----
-114
3

query II rowsort
SELECT - col1 * - col0 AS col2, - col2 AS col0 FROM tab1
----
425
-59
4277
-68
714
-96

query III rowsort
SELECT * FROM tab2 WHERE + + 43 = 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL - - COUNT( * ) * 62 FROM tab1 WHERE NULL IS NULL
----
186

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - - COUNT ( * ) * 62 FROM tab1 WHERE NULL IS NULL
----
186

query I rowsort
SELECT + 91 + 90 AS col0 FROM tab2
----
181
181
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8401
SELECT ALL - - col0 AS col0, - col1 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8401
SELECT ALL - - col0 AS col0, - col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT ALL - 58 AS col0, - col2 FROM tab2 cor0
----
-58
-23
-58
-40
-58
-58

query I rowsort
SELECT DISTINCT - + ( + 53 ) AS col2 FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT DISTINCT COUNT( * ) AS col1, + 14 * + - 24 - - COUNT( * ) + COUNT( * ) col0 FROM tab2 AS cor0
----
3
-330

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8404
SELECT DISTINCT COUNT ( * ) AS col1, + 14 * + - 24 - - COUNT ( * ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
3
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT - MIN( DISTINCT - + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8405
SELECT - MIN ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + ( col2 ) AS col1 FROM tab1 WHERE NOT - col1 + col2 NOT BETWEEN + 2 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8407
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN + + col1 + - 79 AND + - 65
----

skipif mysql # not compatible
query III rowsort label-8407
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN + + col1 + - 79 AND + - 65
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) = 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL - MAX( - - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - MAX ( - - col0 ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) * + 10 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) * + 10 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN + col0 * + - col2 * - - col1 AND NULL
----

query I rowsort
SELECT - 35 + + 13 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT - col1 * - col2 + - col0 AS col2 FROM tab2 cor0
----
1127
3016
3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT ALL + CAST( NULL AS SIGNED ) / + 18 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + CAST ( NULL AS INTEGER ) / + 18 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 + + + 61 + - col1 + 8 * + - 65 AS col0, + 2 AS col1 FROM tab2 AS cor0
----
-533
2
-576
2
-584
2

query I rowsort
SELECT 83 + - col1 FROM tab2 cor0
----
16
32
6

query II rowsort
SELECT col1 + - 5 + 59 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
135
-81
55
-1
75
-21

query I rowsort
SELECT + 58 * - + col1 FROM tab1 cor0 WHERE col2 NOT IN ( 68, - col0, col0 + 81 / - 99 )
----
-290
-812

query I rowsort
SELECT + col0 * - ( + 65 ) FROM tab0
----
-5655
-6305
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE + + ( col1 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE + + ( col1 ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8421
SELECT * FROM tab0 WHERE 57 < CAST( NULL AS SIGNED ) * + 2 * + 39 * + col2
----

skipif mysql # not compatible
query III rowsort label-8421
SELECT * FROM tab0 WHERE 57 < CAST ( NULL AS INTEGER ) * + 2 * + 39 * + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8422
SELECT 88 col1, 24 DIV - COUNT( * ) col0 FROM tab1
----
88
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8422
SELECT 88 col1, 24 / - COUNT ( * ) col0 FROM tab1
----
88
-8

query I rowsort
SELECT DISTINCT col0 + + 12 FROM tab2 AS cor0
----
58
76
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - col0 / + + col2 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT + - COUNT( * ) * + 66 AS col2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + - COUNT ( * ) * + 66 AS col2 FROM tab0 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT DISTINCT col2 DIV + + col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT col2 / + + col1 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8427
SELECT ALL - COUNT( * ) AS col0, + 49 AS col1 FROM tab1 cor0 WHERE - col1 IS NULL
----
0
49

skipif mysql # not compatible
query II rowsort label-8427
SELECT ALL - COUNT ( * ) AS col0, + 49 AS col1 FROM tab1 cor0 WHERE - col1 IS NULL
----
0
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 + col1 + + - 59 col1 FROM tab0 AS cor0 WHERE NOT - 56 IS NULL
----
-56
184
4

query I rowsort
SELECT ALL + col2 * + ( + 90 ) FROM tab1 cor0
----
5310
6120
8640

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col2 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL + MAX( ALL - ( + col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + MAX ( ALL - ( + col0 ) ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( + col2 ) > - col0 / + + 99 * - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT DISTINCT - COUNT( * ), + COUNT( * ) AS col0 FROM tab1 WHERE 24 + + + col0 + col1 IS NOT NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-8433
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 WHERE 24 + + + col0 + col1 IS NOT NULL
----
-3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT ALL COUNT( * ) DIV - - 23 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL COUNT ( * ) / - - 23 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - 67 * col0 + + col0 * - - 69 * - col0 * + col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT + COUNT( - - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + COUNT ( - - col0 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2, col1 col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 96 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 46 AS col1 FROM tab1 WHERE col0 < ( - col2 - col2 * ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT ( col1 ) FROM tab1 WHERE col0 / + 35 < ( CAST( NULL AS SIGNED ) * + col2 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-8440
SELECT ( col1 ) FROM tab1 WHERE col0 / + 35 < ( CAST ( NULL AS INTEGER ) * + col2 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL col0 + - CAST( 62 AS SIGNED ) * + col1 col2 FROM tab1
----
-225
-2823
-817

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8441
SELECT ALL col0 + - CAST ( 62 AS INTEGER ) * + col1 col2 FROM tab1
----
-225
-2823
-817

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT + 62 * COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT + 62 * COUNT ( * ) FROM tab2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT MIN( 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8444
SELECT MIN ( 13 ) FROM tab1
----
13

query I rowsort
SELECT DISTINCT 7 * - 96 + 47 AS col1 FROM tab2
----
-625

query I rowsort
SELECT ALL - col2 * + col0 + col1 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ALL MIN( col2 ) * 44 FROM tab1
----
2596

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL MIN ( col2 ) * 44 FROM tab1
----
2596

query I rowsort
SELECT 76 - 10 FROM tab0
----
66
66
66

query III rowsort
SELECT * FROM tab2 WHERE col0 + + col1 NOT BETWEEN ( 2 ) AND - col1 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col0 ) AS col2 FROM tab2 WHERE NOT - ( - col1 ) IN ( - 72 )
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - col0 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE - col2 * col2 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE - col2 * col2 >= col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT MIN( ( - CAST( - col2 AS SIGNED ) ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8453
SELECT MIN ( ( - CAST ( - col2 AS INTEGER ) ) ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - MAX( + 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8454
SELECT - MAX ( + 23 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8455
SELECT ALL - CAST( + 18 AS SIGNED ) DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL - CAST ( + 18 AS INTEGER ) / col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT ALL 56 DIV 7 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL 56 / 7 FROM tab1
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 WHERE ( - 41 ) NOT IN ( col0 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 WHERE ( - 41 ) NOT IN ( col0 + col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 2 / + col0 ) IS NULL
----

query I rowsort
SELECT ALL 16 FROM tab2 WHERE ( + col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT - 41 - + 83 FROM tab2
----
-124

query I rowsort
SELECT ALL ( + col2 ) * 32 + + 3 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
1891
2179
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL COUNT( * ) * 31 AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL COUNT ( * ) * 31 AS col2 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT MAX( col2 ) - - 40 * + 81 FROM tab0
----
3339

skipif mysql # not compatible
query I rowsort label-8464
SELECT MAX ( col2 ) - - 40 * + 81 FROM tab0
----
3339

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT - col0 DIV + 56 + - ( col1 ) FROM tab1
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-8465
SELECT - col0 / + 56 + - ( col1 ) FROM tab1
----
-14
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT + COUNT( * ) + SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + COUNT ( * ) + SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
69

query I rowsort
SELECT + 36 FROM tab0 AS cor0 WHERE NULL IN ( 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 57 * col0 AND col0
----

query I rowsort
SELECT DISTINCT - 45 * 73 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + ( 92 ) AS col0 FROM tab0 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 32 col2 FROM tab0 WHERE col1 = ( - col0 )
----

query I rowsort
SELECT DISTINCT 38 FROM tab1 AS cor0 CROSS JOIN tab0
----
38

query I rowsort
SELECT 11 FROM tab1 AS cor0 LEFT JOIN tab0 ON 80 = 70
----
11
11
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8474
SELECT DISTINCT MAX( ALL - col2 ) DIV 17 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT MAX ( ALL - col2 ) / 17 FROM tab1
----
-3

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( + 20 - - col0 ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * - col0 AND + 86
----

query I rowsort
SELECT DISTINCT - ( 5 ) AS col2 FROM tab2 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + ( MIN( + col1 ) ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8478
SELECT + ( MIN ( + col1 ) ) col2 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8479
SELECT CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL 74 * col1 AS col0 FROM tab0 AS cor0
----
1554
5994
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT 86 DIV col0 col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8481
SELECT 86 / col0 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 46 * + col2 AS col1 FROM tab2 AS cor0
----
1058
1840
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT MIN( + ( col2 ) ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8483
SELECT DISTINCT MIN ( + ( col2 ) ) col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * 93 NOT BETWEEN + 17 AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8484
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * 93 NOT BETWEEN + 17 AND ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 14 IS NULL OR ( col1 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + - 33 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-108
-79
-97

query I rowsort
SELECT col1 + 61 * col0 AS col2 FROM tab0 WHERE NOT col0 NOT BETWEEN 60 + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8488
SELECT * FROM tab1 WHERE NOT + col2 * - CAST( + col0 * + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8488
SELECT * FROM tab1 WHERE NOT + col2 * - CAST ( + col0 * + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL - CAST( - - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + ( + - 15 ) FROM tab0 cor0
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND ( col2 )
----

query I rowsort
SELECT DISTINCT col1 * col1 AS col2 FROM tab2 AS cor0 WHERE + 39 IS NOT NULL
----
2601
4489
5929

query I rowsort
SELECT ALL - 4 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT * FROM tab2 WHERE ( ( ( col0 ) ) IN ( col1 ) )
----

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
72

query I rowsort
SELECT DISTINCT - - 42 * + - 72 + + col2 * col1 - col1 AS col0 FROM tab1 AS cor0
----
-1694
-2734
125

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT + + 98 DIV - 63 + - col0 FROM tab1 cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-8497
SELECT + + 98 / - 63 + - col0 FROM tab1 cor0
----
-52
-86
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT ALL + SUM( - + 78 ) DIV COUNT( * ) + 90 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + SUM ( - + 78 ) / COUNT ( * ) + 90 FROM tab1 AS cor0
----
12

query I rowsort
SELECT - col1 + + 40 FROM tab1 AS cor0
----
-7
26
35

query II rowsort
SELECT DISTINCT col2, 28 AS col0 FROM tab2 AS cor0
----
23
28
40
28
58
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 - + col2 + + col0 + + col0 col1 FROM tab2 AS cor0
----
39
58
62

query I rowsort
SELECT DISTINCT - col0 * col2 AS col0 FROM tab1 AS cor0 WHERE col2 + 31 <> NULL OR NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT DISTINCT - 0 * + + 3 DIV - - col1 * col1 + col0 * 6 AS col2 FROM tab1 AS cor0
----
306
510
546

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT - 0 * + + 3 / - - col1 * col1 + col0 * 6 AS col2 FROM tab1 AS cor0
----
306
510
546

query III rowsort
SELECT * FROM tab2 WHERE ( + - 4 * - 90 ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( + + col1 * - col1 * col2 ) <= CAST( - 0 AS SIGNED ) - 79 * col2
----

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( + + col1 * - col1 * col2 ) <= CAST ( - 0 AS INTEGER ) - 79 * col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT 87 DIV - col0 + + 63 * + col1 FROM tab0
----
1322
5098
63

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT 87 / - col0 + + 63 * + col1 FROM tab0
----
1322
5098
63

query I rowsort
SELECT - ( + col2 ) - + ( col1 ) + + 85 AS col0 FROM tab2
----
-32
-40
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT SUM( DISTINCT + col2 ) * - ( - COUNT( * ) ) * CAST( 8 AS SIGNED ) col1 FROM tab0 cor0
----
3744

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8509
SELECT SUM ( DISTINCT + col2 ) * - ( - COUNT ( * ) ) * CAST ( 8 AS INTEGER ) col1 FROM tab0 cor0
----
3744

query I rowsort
SELECT - 9 - 41 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( + + col2 ) IS NULL )
----
-50
-50
-50

query I rowsort
SELECT ALL col0 * + - ( + ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT 40 * - - col0 IS NOT NULL
----

query I rowsort
SELECT - 81 * + col0 AS col1 FROM tab2
----
-3726
-5184
-6075

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT ( + col2 ) < col2
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 - + + col0 - + col1 + + + 83 * + col2 >= + 37 + + col1 * + col1
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab1 AS cor0 WHERE NOT 41 * + + col1 / + + ( - 60 ) / + col0 + col2 <= NULL
----

query I rowsort
SELECT DISTINCT - 25 * - col1 AS col0 FROM tab2 AS cor0
----
1275
1675
1925

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - 62 + + col1 <> ( - col1 * - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 92 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col1 FROM tab2
----
-91

query II rowsort
SELECT col0, + ( 93 ) * col0 FROM tab2
----
46
4278
64
5952
75
6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL + AVG ( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8524
SELECT ALL 79 DIV - COUNT( * ) AS col1 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 79 / - COUNT ( * ) AS col1 FROM tab1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT ALL CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 4 + + col2 AS col2 FROM tab1 WHERE ( NULL BETWEEN NULL AND NULL )
----

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( - 54 )
----

query I rowsort
SELECT - - col0 * col1 + + - col1 AS col2 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8530
SELECT ALL + COUNT( * ) DIV - 11 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + COUNT ( * ) / - 11 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col1 + - + col0 + - - col1 FROM tab1 AS cor0
----
-23
-75
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col1 * 15 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8533
SELECT col1 DIV - col1 AS col2, - 80 + + - col1 col1 FROM tab1
----
-1
-127
-1
-85
-1
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8533
SELECT col1 / - col1 AS col2, - 80 + + - col1 col1 FROM tab1
----
-1
-127
-1
-85
-1
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT col0 DIV - + 90 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT col0 / - + 90 FROM tab1
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 61 + col2 AS col0, ( 5 ) AS col2 FROM tab2 cor0
----
-21
5
-3
5
-38
5

query I rowsort
SELECT ALL col1 - + + col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 13 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * 45 FROM tab2 AS cor0 WHERE + col1 + 30 - - - col2 / - - col2 / - col0 + col1 + col2 * + 2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT - ( - CAST( NULL AS SIGNED ) ) * col0 AS col1 FROM tab2 AS cor0 WHERE col2 * - col0 / + + col0 * + col2 < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8540
SELECT - ( - CAST ( NULL AS INTEGER ) ) * col0 AS col1 FROM tab2 AS cor0 WHERE col2 * - col0 / + + col0 * + col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col0 col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL col1 - col0 + + col1 * + col2 * - - col1 + + - col1 FROM tab2 AS cor0
----
237096
260287
59777

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT 79 * + + 93 * 31 + - COUNT( + col0 ) FROM tab2
----
227754

skipif mysql # not compatible
query I rowsort label-8543
SELECT 79 * + + 93 * 31 + - COUNT ( + col0 ) FROM tab2
----
227754

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT COUNT( * ) + 45 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8544
SELECT COUNT ( * ) + 45 FROM tab0
----
48

query II rowsort
SELECT ALL 76, col0 FROM tab0
----
76
15
76
87
76
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8546
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 93 + + + col1 + + 34 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 93 + + + col1 + + 34 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - COUNT( * ) * - + 82 AS col2 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - COUNT ( * ) * - + 82 AS col2 FROM tab0 AS cor0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col1 col0 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + col0 IN ( - - col0, 75 + + col1 )
----

query I rowsort
SELECT DISTINCT ( - 44 ) AS col2 FROM tab1
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 89 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL - COUNT( + 2 ) - + 53 * - 19 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
998

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL - COUNT ( + 2 ) - + 53 * - 19 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
998

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8555
SELECT ALL col1 * + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8555
SELECT ALL col1 * + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT ALL COUNT( * ) * + CAST( CAST( - + MAX( ALL - col1 ) AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 * + col0 + - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL COUNT ( * ) * + CAST ( CAST ( - + MAX ( ALL - col1 ) AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 * + col0 + - col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT 73 * - COUNT( * ) col1 FROM tab1 cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8557
SELECT 73 * - COUNT ( * ) col1 FROM tab1 cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT ALL - 47 * + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - 47 * + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 43 * col0 FROM tab0 AS cor0
----
-3741
-4171
-645

query I rowsort
SELECT - 30 * - 1 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT ALL + col1 DIV + + 37 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + col1 / + + 37 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8562
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8562
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT - - col2 + - - col1 + - + col1 * + col0 FROM tab1 AS cor0
----
-361
-4162
-604

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT DISTINCT col0 DIV 5 FROM tab2 AS cor0
----
12
15
9

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT col0 / 5 FROM tab2 AS cor0
----
12
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT + MAX( DISTINCT + col0 ) + + 41 AS col1 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-8565
SELECT + MAX ( DISTINCT + col0 ) + + 41 AS col1 FROM tab2 AS cor0
----
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col0 col2 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + - col0 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + - col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + + 92 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + + 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8570
SELECT - 75 - - CAST( NULL AS SIGNED ) FROM tab1 WHERE + CAST( + col0 AS DECIMAL ) <> - col0 * 44 + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT - 75 - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + CAST ( + col0 AS REAL ) <> - col0 * 44 + col1
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col1, col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT ( + + CAST( NULL AS SIGNED ) ) * 97 + col0 - - + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT ( + + CAST ( NULL AS INTEGER ) ) * 97 + col0 - - + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 74 * + ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
192474
534650
612794

query II rowsort
SELECT DISTINCT col0, col1 + - col1 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - 63 + + + 22 + - + COUNT( * ) - - 81 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-8576
SELECT - 63 + + + 22 + - + COUNT ( * ) - - 81 FROM tab1
----
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT + col1 + + - col2 DIV + + col1 FROM tab1 AS cor0
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-8578
SELECT + col1 + + - col2 / + + col1 FROM tab1 AS cor0
----
-6
46
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> - + col0 + - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 48 AND - col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 <> ( - - 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + 40 FROM tab0 AS cor0
----
121
41
61

query II rowsort
SELECT - col0 AS col0, ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT COUNT( ALL - - 45 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8584
SELECT COUNT ( ALL - - 45 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL ( + col2 ) - col0 + + 40 AS col0 FROM tab1 AS cor0
----
14
17
85

query I rowsort
SELECT ALL 87 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
4136
8712
880

query I rowsort
SELECT DISTINCT + ( + 8 ) FROM tab1
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-8588
SELECT col2 DIV - - col0, 40 AS col2 FROM tab2
----
0
40
0
40
0
40

skipif mysql # not compatible
query II rowsort label-8588
SELECT col2 / - - col0, 40 AS col2 FROM tab2
----
0
40
0
40
0
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT + CAST( NULL AS SIGNED ) * + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8589
SELECT + CAST ( NULL AS INTEGER ) * + col0 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8590
SELECT * FROM tab0 WHERE NOT + + CAST( 8 AS DECIMAL ) = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8590
SELECT * FROM tab0 WHERE NOT + + CAST ( 8 AS REAL ) = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT 43 / ( - + CAST( - 69 AS SIGNED ) ) * + - col1 + + - CAST( NULL AS SIGNED ) * - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT 43 / ( - + CAST ( - 69 AS INTEGER ) ) * + - col1 + + - CAST ( NULL AS INTEGER ) * - + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8592
SELECT SUM( ALL + col2 ) DIV - - COUNT( * ) + - COUNT( * ) + - SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
248

skipif mysql # not compatible
query I rowsort label-8592
SELECT SUM ( ALL + col2 ) / - - COUNT ( * ) + - COUNT ( * ) + - SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
248

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8593
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 * CAST( NULL AS SIGNED ) + + col0 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-8593
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2 * CAST ( NULL AS INTEGER ) + + col0 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8594
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 BETWEEN + CAST( - - col1 AS SIGNED ) + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8594
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 BETWEEN + CAST ( - - col1 AS INTEGER ) + CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT + col1 AS col2, - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT - 34 AS col0, MIN( + + col1 ) FROM tab0
----
-34
1

skipif mysql # not compatible
query II rowsort label-8596
SELECT - 34 AS col0, MIN ( + + col1 ) FROM tab0
----
-34
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8597
SELECT ALL 96 col1, CAST( + - 36 AS SIGNED ) DIV - 23 FROM tab0
----
96
1
96
1
96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8597
SELECT ALL 96 col1, CAST ( + - 36 AS INTEGER ) / - 23 FROM tab0
----
96
1
96
1
96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT DISTINCT - COUNT( * ), - 78 * - 69 * COUNT( * ) * 49 + - COUNT( * ) + + 92 AS col1 FROM tab0
----
-3
791243

skipif mysql # not compatible
query II rowsort label-8598
SELECT DISTINCT - COUNT ( * ), - 78 * - 69 * COUNT ( * ) * 49 + - COUNT ( * ) + + 92 AS col1 FROM tab0
----
-3
791243

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT SUM( - 37 ) AS col0 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT SUM ( - 37 ) AS col0 FROM tab1
----
-111

query I rowsort
SELECT ALL + col0 * - 81 + - - col2 FROM tab2 AS cor0
----
-3703
-5144
-6017

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT 48 * + col2 DIV - ( col2 ) FROM tab0 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-8601
SELECT 48 * + col2 / - ( col2 ) FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL + MAX( DISTINCT 20 ) FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + MAX ( DISTINCT 20 ) FROM tab1 cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 > + 44 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 56 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - 13 + - + 24 + 71 >= + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL - SUM( ALL - - col0 ) col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8605
SELECT ALL - SUM ( ALL - - col0 ) col1 FROM tab0 cor0
----
-199

query II rowsort
SELECT col1 * - col2, col1 AS col2 FROM tab1
----
-1344
14
-295
5
-3196
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 87 + - 67 AS col0 FROM tab0
----
20
20
20

query I rowsort
SELECT + col0 + + - 24 AS col0 FROM tab1
----
27
61
67

query I rowsort
SELECT - ( + - ( + 49 ) ) + 76 FROM tab1
----
125
125
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT DISTINCT - col1 + + CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - col1 + + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
37
44
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 74 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * - 86 * + col0 col0 FROM tab0 AS cor0
----
-411510
-458810
-70950

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ( MAX( - - 36 ) ) * + 80 AS col0 FROM tab1
----
2880

skipif mysql # not compatible
query I rowsort label-8614
SELECT ( MAX ( - - 36 ) ) * + 80 AS col0 FROM tab1
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT MAX( ALL - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8615
SELECT MAX ( ALL - col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT - + ( + 48 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT 90 + + - COUNT( * ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT 90 + + - COUNT ( * ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT + 12 AS col1 FROM tab2 cor0 WHERE NOT + col1 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8619
SELECT + + 77 AS col2, - 26 DIV + - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
77
11

skipif mysql # not compatible
query II rowsort label-8619
SELECT + + 77 AS col2, - 26 / + - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
77
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, ( col1 ) col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT + 83 * + - 79 AS col1 FROM tab0 AS cor0
----
-6557
-6557
-6557

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - 25 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + COUNT( DISTINCT - - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + COUNT ( DISTINCT - - ( col0 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 81 * + col0 * - col1 FROM tab0
----
147987
7857
98415

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT - - col2 <> NULL
----

query I rowsort
SELECT ALL - 89 * - col2 FROM tab0 WHERE - col1 IS NOT NULL
----
4183
8811
890

query II rowsort
SELECT DISTINCT - col0, + col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8628
SELECT * FROM tab0 WHERE NOT col2 + - col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8628
SELECT * FROM tab0 WHERE NOT col2 + - col2 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 + - 87 AS col2 FROM tab0 WHERE NOT col2 BETWEEN - + col1 + - 65 AND + 18
----
-72
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + ( + col0 ), 29 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8631
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - ( col0 ) * col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - CAST ( NULL AS REAL ) * - ( col0 ) * col2 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT ALL + col0 / 30 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL + col0 / 30 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 75 FROM tab0 WHERE NOT ( - col1 ) / + col1 + - col0 * 68 - + 73 * col1 * - col0 + 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8634
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + col0 * - - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8634
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + col0 * - - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT - + MIN( col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8635
SELECT - + MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - 69 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

skipif mysql # not compatible
query I rowsort label-8636
SELECT - 69 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

query I rowsort
SELECT ALL - col2 + - + col2 + - + 12 * + + col2 FROM tab1
----
-1344
-826
-952

query I rowsort
SELECT ALL + 1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND 79
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT DISTINCT - ( + 6 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT - ( + 6 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL + - COUNT( - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + - COUNT ( - col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT MAX( ALL + + col1 ) + + + 35 * - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8642
SELECT MAX ( ALL + + col1 ) + + + 35 * - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT DISTINCT - - 50 + - + col2 AS col1 FROM tab2 AS cor0
----
-8
10
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8645
SELECT - col2 + 32 AS col1, col1 * col2 * + col2 DIV - col2 FROM tab0 AS cor0
----
-15
-3807
-67
-99
22
-210

skipif mysql # not compatible
query II rowsort label-8645
SELECT - col2 + 32 AS col1, col1 * col2 * + col2 / - col2 FROM tab0 AS cor0
----
-15
-3807
-67
-99
22
-210

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL IN ( - col0, col0, + + 20, col1, - col2 ) )
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT - col0 * 11 <> - 51
----

query II rowsort
SELECT col1 AS col2, 58 AS col0 FROM tab1
----
14
58
47
58
5
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8649
SELECT ALL - CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - CAST ( NULL AS REAL ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 AS col2, + 95 AS col1 FROM tab0
----
1
95
21
95
81
95

query III rowsort
SELECT * FROM tab1 WHERE 62 * + + 81 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 19 + - ( - + col2 ) + col2 FROM tab2
----
135
65
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT - 96 AS col1, MIN( - 74 ) FROM tab2
----
-96
-74

skipif mysql # not compatible
query II rowsort label-8653
SELECT - 96 AS col1, MIN ( - 74 ) FROM tab2
----
-96
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT - + MAX( DISTINCT 95 ) FROM tab1 WHERE + 3 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - + MAX ( DISTINCT 95 ) FROM tab1 WHERE + 3 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT ALL CAST( NULL AS SIGNED ) - AVG ( - - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL CAST ( NULL AS INTEGER ) - AVG ( - - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 60 - col2 AS col0 FROM tab1 AS cor0
----
-36
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 73 col2 FROM tab0 AS cor0
----
-52
-72
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL SUM( ALL - 22 ) * - 84 * + - COUNT( * ) FROM tab2 AS cor0
----
-16632

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL SUM ( ALL - 22 ) * - 84 * + - COUNT ( * ) FROM tab2 AS cor0
----
-16632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8659
SELECT + col0 AS col0 FROM tab2 WHERE - - col0 >= - + CAST( + - 80 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8659
SELECT + col0 AS col0 FROM tab2 WHERE - - col0 >= - + CAST ( + - 80 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 + + - col1 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8663
SELECT - COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8663
SELECT - COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT SUM( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT 10 + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT SUM ( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT 10 + + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + COUNT( * ) * + 17 AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8665
SELECT + COUNT ( * ) * + 17 AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - 61 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * ( + + col0 ) FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - col1 * + col2 * - + col1 FROM tab0 AS cor0
----
308367
4410
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * + col1 * col2 / ( + col1 ) + - 27 / col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0, - 20 + - ( + 42 ) FROM tab1
----
51
-62
85
-62
91
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8672
SELECT 16 * + 16 * col0 - + col1 * col1, + 33 / ( - + col2 ) + + - col0 / col2 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-8672
SELECT 16 * + 16 * col0 - + col1 * col1, + 33 / ( - + col2 ) + + - col0 / col2 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8673
SELECT DISTINCT + col0 AS col1, col1 DIV - 44 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-8673
SELECT DISTINCT + col0 AS col1, col1 / - 44 col0 FROM tab2
----
46
-1
64
-1
75
-1

query I rowsort
SELECT 74 * - + col2 * + 33 FROM tab2
----
-141636
-56166
-97680

query I rowsort
SELECT DISTINCT col0 * + 19 FROM tab0
----
1653
1843
285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT ALL - 25 DIV - COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - 25 / - COUNT ( * ) FROM tab0
----
8

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 = - col1
----

query I rowsort
SELECT DISTINCT + 86 * - col0 * 41 FROM tab1
----
-179826
-299710
-320866

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND 67 / 44 + - 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT DISTINCT - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT - col0 / - col0 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
96

query I rowsort
SELECT ALL + 97 + 9 FROM tab2
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT ALL + col1, ( - col0 ) * - 94 + - col1 * - + 49 + + col1 + + col0 FROM tab2 AS cor0
----
51
6920
67
10475
77
9930

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT + COUNT( + col2 ) + + 81 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT + COUNT ( + col2 ) + + 81 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL + col2 * - ( - 16 ) AS col1 FROM tab1
----
1088
1536
944

query I rowsort
SELECT - ( + 40 ) FROM tab0 WHERE 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL ( + MAX( col2 ) ) + + COUNT( * ) + - 47 * - SUM( ALL - ( + + ( + - 73 ) ) ) AS col1 FROM tab2
----
10354

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL ( + MAX ( col2 ) ) + + COUNT ( * ) + - 47 * - SUM ( ALL - ( + + ( + - 73 ) ) ) AS col1 FROM tab2
----
10354

query II rowsort
SELECT 73 + - + col1 * + - 78 AS col2, col0 FROM tab1
----
1165
51
3739
91
463
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT + col0 * - + CAST( NULL AS SIGNED ) + + + col2 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT + col0 * - + CAST ( NULL AS INTEGER ) + + + col2 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 34 FROM tab0 WHERE - ( 62 ) * - 42 IS NOT NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8694
SELECT - MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 11 + + + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - - 66 col0, col0 + 19 FROM tab0 AS cor0
----
-21
106
-31
116
51
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT - + col1 DIV + - 31 + - + col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8697
SELECT - + col1 / + - 31 + - + col2 / - col0 AS col0 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT ( + 78 ) FROM tab1 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT ALL - CAST( NULL AS SIGNED ) / + + 66 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - CAST ( NULL AS INTEGER ) / + + 66 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT COUNT( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8702
SELECT COUNT ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT SUM( - col0 ) * + 0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT SUM ( - col0 ) * + 0 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NULL BETWEEN + col2 + col2 - + 99 + - col1 AND + col0
----

query I rowsort
SELECT DISTINCT + col2 * + col0 - + col0 - - - col2 + + - 91 AS col2 FROM tab0 AS cor0
----
552
682
9316

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL + - MIN( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL + - MIN ( DISTINCT 86 ) AS col2 FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT + 36 DIV COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8707
SELECT + 36 / COUNT ( * ) FROM tab2 AS cor0
----
12

query III rowsort
SELECT ALL col2, col0 * + + col0 AS col0, + col1 AS col2 FROM tab2
----
9 values hashing to eba6d44cb95bbb461caf707312a511ee

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8709
SELECT DISTINCT - col1 + - - 5 - - + col0, col0 * + + col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-61
NULL
101
NULL
71
NULL

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT - col1 + - - 5 - - + col0, col0 * + + col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-61
NULL
101
NULL
71
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 * col0 + - 40 col0 FROM tab0
----
-1480
-8392
-9352

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT MIN( col1 ) + - 18 * + ( + MAX( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-1633

skipif mysql # not compatible
query I rowsort label-8711
SELECT MIN ( col1 ) + - 18 * + ( + MAX ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-1633

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 = - col0 + - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT ALL + col2 - 93 DIV + 25 AS col0 FROM tab1 AS cor0
----
56
65
93

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + col2 - 93 / + 25 AS col0 FROM tab1 AS cor0
----
56
65
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <> - col1 )
----

query I rowsort
SELECT DISTINCT - col2 * - + 79 + col1 * col0 + col2 AS col2 FROM tab0
----
2627
4975
8017

query II rowsort
SELECT DISTINCT col1 + + 60, + col0 * col2 AS col2 FROM tab2
----
111
1058
127
4350
137
2560

query I rowsort
SELECT + ( + col0 ) - col1 + col2 FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL COUNT( * ) * 73 + 84 AS col0 FROM tab2
----
303

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL COUNT ( * ) * 73 + 84 AS col0 FROM tab2
----
303

query I rowsort
SELECT - ( + 42 ) - - 16 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT DISTINCT col1 * 61 + 96 DIV - col0 FROM tab1 AS cor0
----
2866
304
853

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT col1 * 61 + 96 / - col0 FROM tab1 AS cor0
----
2866
304
853

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + COUNT( * ) - - - ( - 17 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + COUNT ( * ) - - - ( - 17 ) FROM tab2 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 74 > + + col1 AND NULL <= - 92 - + 21 * - ( 84 )
----

query II rowsort
SELECT col1, - 26 - + + col0 FROM tab2 AS cor0
----
51
-72
67
-101
77
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 15 + - col0 * + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT - 16 DIV + + 78 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT - 16 / + + 78 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT DISTINCT col1 * - CAST( + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT col1 * - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT + + MAX( ALL col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + + MAX ( ALL col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = col1 / - + col2 * - 32 + - col2
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT SUM( ALL - + 16 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 49 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT SUM ( ALL - + 16 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 49 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + - 8 ) AS col0 FROM tab1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8734
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / - 82 <> NULL
----

skipif mysql # not compatible
query III rowsort label-8734
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / - 82 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL + MAX( DISTINCT - 9 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + MAX ( DISTINCT - 9 ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT + 30 col0, MIN( ALL col1 ) AS col0 FROM tab0
----
30
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8736
SELECT + 30 col0, MIN ( ALL col1 ) AS col0 FROM tab0
----
30
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - ( - col1 )
----

query II rowsort
SELECT + 20, - col0 + col2 - + - col0 AS col2 FROM tab0
----
20
10
20
47
20
99

query I rowsort
SELECT ( 23 ) FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT + - col1 + col2 + + 3 FROM tab0 AS cor0
----
-31
-8
101

query I rowsort
SELECT - 42 + - 41 AS col1 FROM tab1 cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT + col1 DIV - - col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8742
SELECT + col1 / - - col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 66 FROM tab2 WHERE + ( - + col1 ) IS NOT NULL
----
66

query II rowsort
SELECT DISTINCT - 87 - col2 * col2 * + col2 + - col2, col2 - + + col0 AS col0 FROM tab1
----
-205525
-26
-314587
-23
-884919
45

query I rowsort
SELECT ALL - 27 - - col1 FROM tab0 AS cor0
----
-26
-6
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL SUM( - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL SUM ( - - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8747
SELECT + 85 + 21 AS col1, MIN( + col1 ) DIV + - COUNT( * ) FROM tab0 AS cor0
----
106
0

skipif mysql # not compatible
query II rowsort label-8747
SELECT + 85 + 21 AS col1, MIN ( + col1 ) / + - COUNT ( * ) FROM tab0 AS cor0
----
106
0

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL AND NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL - MAX( DISTINCT + + 59 ) AS col2 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - MAX ( DISTINCT + + 59 ) AS col2 FROM tab2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL - - ( col0 ) * - col2 * - - col0 AS col2 FROM tab1 WHERE NOT NULL > - CAST( - + 86 AS SIGNED ) + + 45
----

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - - ( col0 ) * - col2 * - - col0 AS col2 FROM tab1 WHERE NOT NULL > - CAST ( - + 86 AS INTEGER ) + + 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL - col2 + col1 + - + CAST( NULL AS SIGNED ) + + 39 / col0 * ( - col2 ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL - col2 + col1 + - + CAST ( NULL AS INTEGER ) + + 39 / col0 * ( - col2 ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 40 * + + col2 FROM tab0
----
1880
3960
400

query I rowsort
SELECT + 19 * + col0 FROM tab1
----
1615
1729
969

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT - col1 * 75 DIV - ( - + col2 ) FROM tab2 AS cor0
----
-144
-166
-86

skipif mysql # not compatible
query I rowsort label-8755
SELECT - col1 * 75 / - ( - + col2 ) FROM tab2 AS cor0
----
-144
-166
-86

query III rowsort
SELECT + 97 AS col1, - col2 AS col1, + 59 FROM tab2 AS cor0
----
9 values hashing to 0ccaf0ef1e7f2296dc0f2120d09cc40c

query I rowsort
SELECT DISTINCT - - 75 AS col0 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8758
SELECT ( - CAST( NULL AS SIGNED ) ) + - + col2 AS col2, 28 FROM tab2
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-8758
SELECT ( - CAST ( NULL AS INTEGER ) ) + - + col2 AS col2, 28 FROM tab2
----
NULL
28
NULL
28
NULL
28

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT + 70 + - + COUNT( * ) AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + 70 + - + COUNT ( * ) AS col0 FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL - col2 * + col2 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3566
-4715
-9267

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - col2 * + col2 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3566
-4715
-9267

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col1 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT + 2 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8764
SELECT + 2 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 + - + col0 * - col1 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + COUNT( + - 74 ) AS col1 FROM tab1 WHERE - + col0 <> ( - + ( - col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-8766
SELECT + COUNT ( + - 74 ) AS col1 FROM tab1 WHERE - + col0 <> ( - + ( - col2 ) )
----
3

query I rowsort
SELECT col2 + - ( + col2 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 59 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT ALL - CAST( NULL AS SIGNED ) - col1 + - 26 - - col2 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL - CAST ( NULL AS INTEGER ) - col1 + - 26 - - col2 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + 3 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT - col2 + 15 + - ( - 87 ) AS col0 FROM tab2 AS cor0
----
44
62
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - - col2 OR NULL = - + col0
----

query I rowsort
SELECT ALL - + col2 - 83 * + + 96 AS col0 FROM tab0 cor0
----
-7978
-8015
-8067

query II rowsort
SELECT - - 25, 73 * + col2 AS col2 FROM tab2 cor0
----
25
1679
25
2920
25
4234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + ( + - col0 ) - col0 col2 FROM tab2 cor0 WHERE ( - col0 / + - col0 ) <= ( NULL )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 20
----

query I rowsort
SELECT - col1 FROM tab0 WHERE + + col2 = + col0
----

query I rowsort
SELECT ALL - col0 * - + col0 AS col2 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 WHERE NOT - 91 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL 71 * + - col1 AS col1 FROM tab2
----
-3621
-4757
-5467

onlyif mysql # DIV for integer division: 
query II rowsort label-8781
SELECT DISTINCT + col2 DIV - 24, + col0 * - col1 col2 FROM tab0 AS cor0
----
-1
-1215
-4
-97
0
-1827

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8781
SELECT DISTINCT + col2 / - 24, + col0 * - col1 col2 FROM tab0 AS cor0
----
-1
-1215
-4
-97
0
-1827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 - - - col1 * + col2 * ( ( - - col0 ) ) * + col1 + - + col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR 69 / - col0 + - col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT - col0 DIV - 71 AS col1 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8785
SELECT - col0 / - 71 AS col1 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + ( - 28 ) AS col1 FROM tab1 AS cor0
----
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col2 + ( col1 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 22 NOT BETWEEN NULL AND + 95 - + col2
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col2 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT ( - 91 ) FROM tab2
----
-91
-91
-91

query II rowsort
SELECT - 43 * + - 36 AS col0, col0 FROM tab0
----
1548
15
1548
87
1548
97

query II rowsort
SELECT DISTINCT 53, col0 FROM tab2
----
53
46
53
64
53
75

query I rowsort
SELECT ALL + + col1 + col2 AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT 49 * + + ( col2 ) AS col1 FROM tab1 WHERE - col2 + + col2 IN ( - 28 )
----

query I rowsort
SELECT DISTINCT - col2 + 0 * col1 AS col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT COUNT( * ) + COUNT( * ) * 77 * - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-690

skipif mysql # not compatible
query I rowsort label-8796
SELECT COUNT ( * ) + COUNT ( * ) * 77 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-690

query I rowsort
SELECT col0 + col2 * - - 71 FROM tab0 AS cor0
----
3352
7126
797

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8798
SELECT - col0 DIV + + 29 AS col1, CAST( NULL AS SIGNED ) DIV + 75 col1 FROM tab2 AS cor0
----
-1
NULL
-2
NULL
-2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8798
SELECT - col0 / + + 29 AS col1, CAST ( NULL AS INTEGER ) / + 75 col1 FROM tab2 AS cor0
----
-1
NULL
-2
NULL
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT - + COUNT( * ) - - - 31 * - MAX( ALL - - col0 ) AS col1 FROM tab2 cor0
----
2322

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT - + COUNT ( * ) - - - 31 * - MAX ( ALL - - col0 ) AS col1 FROM tab2 cor0
----
2322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col1 col0 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND + - 71
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT - 35 + + - COUNT( * ), - 79 AS col2 FROM tab0 AS cor0
----
-38
-79

skipif mysql # not compatible
query II rowsort label-8801
SELECT - 35 + + - COUNT ( * ), - 79 AS col2 FROM tab0 AS cor0
----
-38
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8802
SELECT - - COUNT( * ) + 64 AS col0, 55 FROM tab2 AS cor0
----
67
55

skipif mysql # not compatible
query II rowsort label-8802
SELECT - - COUNT ( * ) + 64 AS col0, 55 FROM tab2 AS cor0
----
67
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 48 col2 FROM tab0
----
1008
3888
48

query I rowsort
SELECT DISTINCT + 14 * + 64 AS col1 FROM tab1
----
896

query II rowsort
SELECT col2 AS col1, + col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT ALL + col0 DIV - col1 col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8806
SELECT ALL + col0 / - col1 col2 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + MIN( DISTINCT + 1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8807
SELECT + MIN ( DISTINCT + 1 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= - col0 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON 98 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 <> + 31 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT + - COUNT( * ) + + 51 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-8811
SELECT + - COUNT ( * ) + + 51 FROM tab2 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col1 FROM tab1 cor0
----
-88
-88
-88

query I rowsort
SELECT + + col2 + + 54 * col2 * col0 FROM tab0 AS cor0
----
38117
46990
518661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL AVG ( DISTINCT + + 89 ) + - MIN( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL AVG ( DISTINCT + + 89 ) + - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT SUM( - col0 ) + - 43 FROM tab2 cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8815
SELECT SUM ( - col0 ) + - 43 FROM tab2 cor0
----
-228

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8816
SELECT CAST( NULL AS SIGNED ) DIV col1 + + col0 * - + col2 + + 69 col1, + ( + - ( - + col0 ) ) DIV col1 + 7 FROM tab0 cor0
----
NULL
104
NULL
11
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8816
SELECT CAST ( NULL AS INTEGER ) / col1 + + col0 * - + col2 + + 69 col1, + ( + - ( - + col0 ) ) / col1 + 7 FROM tab0 cor0
----
NULL
104
NULL
11
NULL
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT CAST( - - col1 AS SIGNED ) * + - col1 AS col0 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-8817
SELECT CAST ( - - col1 AS INTEGER ) * + - col1 AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - + 70 * - ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT COUNT( - 98 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8820
SELECT COUNT ( - 98 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + - 78 + 20 AS col2 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT - 66 + + 76 FROM tab1 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT DISTINCT - ( + - CAST( - + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - ( + - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col0 + + col1 col0 FROM tab0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE 95 + col1 <> + - ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 40 + - col2 FROM tab1 AS cor0
----
-108
-136
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - MIN( DISTINCT - 90 ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8829
SELECT - MIN ( DISTINCT - 90 ) AS col0 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + 1 + COUNT( * ) + + MAX( - - ( + 76 ) ) AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + 1 + COUNT ( * ) + + MAX ( - - ( + 76 ) ) AS col0 FROM tab1 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE col0 * - col0 * + col0 + col2 = - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE col0 * - col0 * + col0 + col2 = - col2
----
NULL

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT + 62 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( ( NOT NULL <> - + 61 * 44 + 72 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 71 * + col0 + + - 3 * + + 93 = - 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT - COUNT( * ) * ( MIN( ALL + + col2 ) ) FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - COUNT ( * ) * ( MIN ( ALL + + col2 ) ) FROM tab0 cor0
----
-30

query I rowsort
SELECT - + ( - 9 ) + + - ( + col2 ) FROM tab1 AS cor0
----
-50
-59
-87

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
63

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + + 65 * + 29 + + + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col2, col0 + - col2 FROM tab0
----
-10
77
-47
-32
-99
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT - COUNT( * ) * + + 11 AS col2 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT - COUNT ( * ) * + + 11 AS col2 FROM tab0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT DISTINCT + + MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 >= - col1 + - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT COUNT( * ) * + 46 + - + 68 AS col1 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-8843
SELECT COUNT ( * ) * + 46 + - + 68 AS col1 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
70

query I rowsort
SELECT 59 + - + 58 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT CAST( - + col2 AS SIGNED ) * + col2 + + col2 FROM tab2
----
-1560
-3306
-506

skipif mysql # not compatible
query I rowsort label-8845
SELECT CAST ( - + col2 AS INTEGER ) * + col2 + + col2 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT 0 + col2 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE 41 >= col2
----
87
21
10

query I rowsort
SELECT ALL + 84 * + - col2 AS col0 FROM tab0 WHERE col1 NOT BETWEEN - 67 AND - col1
----
-3948
-8316
-840

query I rowsort
SELECT - 62 + + + col0 AS col2 FROM tab2
----
-16
13
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT 7 + - + ( - - CAST( NULL AS SIGNED ) ) + - + 39 + + 55 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT 7 + - + ( - - CAST ( NULL AS INTEGER ) ) + - + 39 + + 55 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT DISTINCT - 50 * + - 82 + - COUNT( * ) AS col1 FROM tab0
----
4097

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT - 50 * + - 82 + - COUNT ( * ) AS col1 FROM tab0
----
4097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT - - 0 AS col0 FROM tab1 AS cor0 WHERE + CAST( - + col0 AS SIGNED ) * - col2 - - col0 + + + 8 > + + 98 * + col2 * - 67
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT - - 0 AS col0 FROM tab1 AS cor0 WHERE + CAST ( - + col0 AS INTEGER ) * - col2 - - col0 + + + 8 > + + 98 * + col2 * - 67
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT 92 + - 2 * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < - 83 + - - CAST( NULL AS SIGNED ) * + 68
----
92

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT 92 + - 2 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < - 83 + - - CAST ( NULL AS INTEGER ) * + 68
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT + col0 * col2 DIV + + col2 AS col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8854
SELECT + col0 * col2 / + + col2 AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT ALL - col0 - + CAST( - col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8855
SELECT ALL - col0 - + CAST ( - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL - + 48 + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL - + 48 + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

query I rowsort
SELECT - ( - 64 ) - - 30 FROM tab2
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT MIN( + + 77 ) AS col0 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8858
SELECT MIN ( + + 77 ) AS col0 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col1 * 83 + - col1 * + ( + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-10
-376
448

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8861
SELECT + COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + 71 AS col0 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + MIN ( col0 ) FROM tab2 AS cor0
----
46

query II rowsort
SELECT - col0 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - ( + 96 ) AS col1 FROM tab2
----
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 >= - 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 92 + + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 + - - 74 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT 43 + + + col0 > - col2 )
----
-3
106
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT + + SUM( + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + + SUM ( + col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL - COUNT( * ) + - 89 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - COUNT ( * ) + - 89 FROM tab1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + + 25 + + 12 * + 89 + - col0 AS col0 FROM tab2 AS cor0
----
1018
1029
1047

query II rowsort
SELECT - 71 + + - col1 AS col0, 77 AS col1 FROM tab0 AS cor0
----
-152
77
-72
77
-92
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL SUM( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL SUM ( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL COUNT( * ) * + + 78 FROM tab1 cor0 WHERE NOT 74 + - ( + col0 ) <> - + col1
----
0

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL COUNT ( * ) * + + 78 FROM tab1 cor0 WHERE NOT 74 + - ( + col0 ) <> - + col1
----
0

query I rowsort
SELECT ALL + col2 * + col2 + - col0 * + - 67 * - - col2 * - - 31 AS col0 FROM tab2
----
2197995
5318720
9038314

query III rowsort
SELECT * FROM tab0 WHERE ( - 90 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT COUNT( * ) AS col1 FROM tab0 WHERE + col2 >= col1
----
1

skipif mysql # not compatible
query I rowsort label-8879
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE + col2 >= col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT SUM( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 61 - + + col0 + - - 14 FROM tab1
----
-132
-138
-98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8882
SELECT - col0, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + CAST( + + 3 AS SIGNED ), ( + + col0 ), - col1 )
----

skipif mysql # not compatible
query II rowsort label-8882
SELECT - col0, - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + CAST ( + + 3 AS INTEGER ), ( + + col0 ), - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8883
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - - col1 + col0 - - 63 AND ( - col2 + - CAST( + ( col2 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8883
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - - col1 + col0 - - 63 AND ( - col2 + - CAST ( + ( col2 ) AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - col1 * - 43 * - ( - 13 ) * + 45 + col1 * - col2 * + col0 col1, col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT + CAST( NULL AS SIGNED ) + - 7 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT + CAST ( NULL AS INTEGER ) + - 7 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( col0 * col2 + + ( - col0 - + 77 * 68 ) ) NOT IN ( ( + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( col0 * col2 + + ( - col0 - + 77 * 68 ) ) NOT IN ( ( + col0 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT + 30 FROM tab2 WHERE ( NULL ) NOT IN ( col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8888
SELECT + 30 FROM tab2 WHERE ( NULL ) NOT IN ( col0 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab0 WHERE NOT ( 66 ) >= ( - col2 + + col1 )
----

query I rowsort
SELECT 80 * + col2 FROM tab2 WHERE NULL IS NULL
----
1840
3200
4640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT CAST( NULL AS SIGNED ) * col1 - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT CAST ( NULL AS INTEGER ) * col1 - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE + 59 * col1 + 72 IN ( col1 * + 62 + 33 )
----

query I rowsort
SELECT col0 + - 75 * col1 AS col1 FROM tab0 WHERE ( + col1 / - ( - 79 * col2 ) ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8894
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8894
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * 99 FROM tab2 WHERE NOT ( - col1 ) IN ( - col2 * ( 77 ) )
----
-297

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * 99 FROM tab2 WHERE NOT ( - col1 ) IN ( - col2 * ( 77 ) )
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 92 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 92 FROM tab1
----
NULL

query I rowsort
SELECT - 12 + - col2 * + 50 AS col2 FROM tab0
----
-2362
-4962
-512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT CAST( + 39 AS SIGNED ) AS col1 FROM tab1
----
39
39
39

skipif mysql # not compatible
query I rowsort label-8898
SELECT CAST ( + 39 AS INTEGER ) AS col1 FROM tab1
----
39
39
39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 60 ) <> ( + col2 )
----

query I rowsort
SELECT col2 * + col0 FROM tab2 WHERE NOT col2 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL COUNT( 26 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL COUNT ( 26 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 1 ) BETWEEN col2 * - col1 + col2 AND NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 * - 24 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT COUNT( * ) * - COUNT( + col0 ) FROM tab0 AS cor0 WHERE NOT 51 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT COUNT ( * ) * - COUNT ( + col0 ) FROM tab0 AS cor0 WHERE NOT 51 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + col0 ) + col2 col0 FROM tab0 AS cor0
----
-658
-860
-9504

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT 6 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - 98 * col0 + 23 AS col2 FROM tab1
----
-4975
-8307
-8895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8908
SELECT ALL COUNT( * ) DIV - ( + SUM( - ( col0 ) ) ) + - MAX( - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL COUNT ( * ) / - ( + SUM ( - ( col0 ) ) ) + - MAX ( - col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT ALL - CAST( NULL AS SIGNED ) * + 26 + 39 * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL - CAST ( NULL AS INTEGER ) * + 26 + 39 * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 96 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT - - 98 + 85 * MAX( ALL - col2 ) FROM tab2 cor0
----
-1857

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT - - 98 + 85 * MAX ( ALL - col2 ) FROM tab2 cor0
----
-1857

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT 60 DIV col0 + + col0 FROM tab2 AS cor0
----
47
64
75

skipif mysql # not compatible
query I rowsort label-8913
SELECT 60 / col0 + + col0 FROM tab2 AS cor0
----
47
64
75

query I rowsort
SELECT + col1 FROM tab1 WHERE col0 IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) <= ( col2 * col0 + col0 / col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 + 1 >= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL + MIN( + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + MIN ( + - col0 ) FROM tab1
----
-91

query I rowsort
SELECT - 89 + col2 AS col2 FROM tab0
----
-42
-79
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + COUNT( * ) + 20 * 20 FROM tab0
----
403

skipif mysql # not compatible
query I rowsort label-8919
SELECT + COUNT ( * ) + 20 * 20 FROM tab0
----
403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + col2 + + col0 - col1 * 85 FROM tab1
----
-1043
-281
-3836

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE + col1 <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE + col1 <> + col1
----
0

query I rowsort
SELECT - col2 FROM tab2 WHERE col1 NOT IN ( - col2 )
----
-23
-40
-58

query I rowsort
SELECT ALL 5 - + col1 FROM tab0 cor0
----
-16
-76
4

query I rowsort
SELECT DISTINCT - col1 - + ( col1 ) FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT 37 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
37
37
37

query I rowsort
SELECT ALL + 6 - col1 AS col2 FROM tab2 AS cor0 WHERE - ( - 46 ) * ( 85 + - col2 ) IS NOT NULL
----
-45
-61
-71

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8929
SELECT DISTINCT - CAST( - - 76 AS SIGNED ) DIV + - COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - CAST ( - - 76 AS INTEGER ) / + - COUNT ( * ) FROM tab2
----
25

query I rowsort
SELECT ALL - 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT + - ( 11 ) FROM tab1 AS cor0
----
-11

query II rowsort
SELECT - col0 AS col0, - col1 + + ( + ( col2 ) ) + col0 * - col0 FROM tab0 AS cor0
----
-15
-259
-87
-7580
-97
-9311

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT DISTINCT + 16 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 32 <= NULL
----
16

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT + 16 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 32 <= NULL
----
16

query I rowsort
SELECT DISTINCT + - 72 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( + ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8936
SELECT * FROM tab1 WHERE NOT + 51 * - col1 + - col1 NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND - 94 * + col2
----

skipif mysql # not compatible
query III rowsort label-8936
SELECT * FROM tab1 WHERE NOT + 51 * - col1 + - col1 NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND - 94 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2, SUM( DISTINCT + + 61 ) AS col2 FROM tab0
----
9
61

skipif mysql # not compatible
query II rowsort label-8937
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2, SUM ( DISTINCT + + 61 ) AS col2 FROM tab0
----
9
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT ALL - 93 DIV - ( col0 ) + - col0 col1 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8938
SELECT ALL - 93 / - ( col0 ) + - col0 col1 FROM tab2
----
-44
-63
-74

query I rowsort
SELECT ALL col0 * + col2 * + col2 + - 96 + col0 FROM tab2
----
102368
24284
252279

query I rowsort
SELECT DISTINCT + 91 * col1 + - 22 AS col1 FROM tab1
----
1252
4255
433

query I rowsort
SELECT ALL col1 * + - ( - 86 ) + - + col2 FROM tab0 cor0
----
-13
1796
6919

query I rowsort
SELECT ALL col1 - 36 / col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8943
SELECT ALL + MAX( ALL + - ( - CAST( col1 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + MAX ( ALL + - ( - CAST ( col1 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT col2 * - - col2 * + CAST( ( + 57 ) AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
125898
558560
5613

skipif mysql # not compatible
query I rowsort label-8944
SELECT col2 * - - col2 * + CAST ( ( + 57 ) AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
125898
558560
5613

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT - MIN( + - 85 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
85

skipif mysql # not compatible
query I rowsort label-8945
SELECT - MIN ( + - 85 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
85

query III rowsort
SELECT * FROM tab0 WHERE ( - 39 / - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT - col0 DIV + col0 + col2 + - - 63 AS col0 FROM tab2 cor0
----
102
120
85

skipif mysql # not compatible
query I rowsort label-8947
SELECT - col0 / + col0 + col2 + - - 63 AS col0 FROM tab2 cor0
----
102
120
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT - 23 + COUNT( * ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8948
SELECT - 23 + COUNT ( * ) FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ALL + col2 + - 78 + + 44 FROM tab0 AS cor0
----
-24
13
65

query I rowsort
SELECT DISTINCT - 61 + - + col1 FROM tab0 AS cor0
----
-142
-62
-82

query I rowsort
SELECT ALL - col1 + + col0 FROM tab1 AS cor0 WHERE NOT - 44 / 49 IS NOT NULL
----

query I rowsort
SELECT - 77 * + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT 92 - col0 AS col2 FROM tab1
----
1
41
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT 52 + + + col2 DIV + 78 FROM tab0
----
52
53

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT 52 + + + col2 / + 78 FROM tab0
----
52
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 + - 13 - 75 ) <> col2 + - col1
----

query I rowsort
SELECT DISTINCT + - 89 * ( - 90 ) AS col2 FROM tab2 AS cor0
----
8010

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND - + 94 OR ( - col2 ) NOT BETWEEN col0 / + 99 AND 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL - COUNT( * ) * + - 8 AS col1 FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - COUNT ( * ) * + - 8 AS col1 FROM tab2 cor0
----
24

query II rowsort
SELECT - 73 * col1 AS col1, - 6 + 59 AS col2 FROM tab0
----
-1533
53
-5913
53
-73
53

query I rowsort
SELECT - + col0 * - - ( - + 20 ) AS col2 FROM tab1 AS cor0
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT - COUNT( * ) + + + 63 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 80 AND - - col0
----
63

skipif mysql # not compatible
query I rowsort label-8961
SELECT - COUNT ( * ) + + + 63 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 80 AND - - col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT - MAX( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col0 + col0 * + 22 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT - MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col0 + col0 * + 22 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL > + col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8964
SELECT DISTINCT 71 DIV - - COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT 71 / - - COUNT ( * ) FROM tab2
----
23

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE + col2 + col1 + + col0 NOT IN ( 74 * col0 + col0 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT DISTINCT col2 DIV + - col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT col2 / + - col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 59 + - col0 AS col0 FROM tab0
----
-28
-38
44

query I rowsort
SELECT ALL - ( - 71 ) AS col2 FROM tab0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8969
SELECT CAST( NULL AS SIGNED ) AS col1, 93 AS col0 FROM tab1
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
query II rowsort label-8969
SELECT CAST ( NULL AS INTEGER ) AS col1, 93 AS col0 FROM tab1
----
NULL
93
NULL
93
NULL
93

query II rowsort
SELECT col0, col0 * 61 FROM tab0
----
15
915
87
5307
97
5917

query I rowsort
SELECT ALL 2 * col0 + 23 * + - col1 FROM tab2
----
-1081
-1391
-1643

query I rowsort
SELECT DISTINCT + col2 * - + col0 * + col1 + ( - col0 ) FROM tab1
----
-25160
-290927
-68595

query I rowsort
SELECT 39 + - col2 FROM tab1
----
-20
-29
-57

query I rowsort
SELECT + 60 + 95 AS col1 FROM tab2 AS cor0
----
155
155
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT + COUNT( * ) DIV 22 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT + COUNT ( * ) / 22 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT ALL 21 AS col0, + 69 * COUNT( * ) FROM tab0 AS cor0 JOIN tab1 AS cor1 ON - 63 IS NOT NULL
----
21
621

skipif mysql # not compatible
query II rowsort label-8977
SELECT ALL 21 AS col0, + 69 * COUNT ( * ) FROM tab0 AS cor0 JOIN tab1 AS cor1 ON - 63 IS NOT NULL
----
21
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - + col2 * + - col1 - col2 AS col1, - 73 col1 FROM tab0
----
-97
-73
113
-73
3745
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT - CAST( + SUM( ALL - col1 ) AS SIGNED ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8979
SELECT - CAST ( + SUM ( ALL - col1 ) AS INTEGER ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT - + col1 + + col0 * - - 64 FROM tab2 AS cor0
----
2893
4019
4733

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab1 AS cor0 WHERE ( NULL ) = + 94
----

query I rowsort
SELECT DISTINCT + col0 * - + 45 + + col2 AS col2 FROM tab2 AS cor0
----
-2047
-2840
-3317

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0 WHERE - 35 * + col1 * + col0 * - - 88 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8984
SELECT - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0 WHERE - 35 * + col1 * + col0 * - - 88 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 - + + col0 + col2 col2 FROM tab2 cor0
----
16
17
23

query I rowsort
SELECT DISTINCT + col2 - + + 85 AS col1 FROM tab1
----
-17
-26
11

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL MIN( col2 ) - - 95 AS col2 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL MIN ( col2 ) - - 95 AS col2 FROM tab1
----
154

query I rowsort
SELECT - col2 + - + 43 / - 81 + col2 AS col0 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT 12 * 60 FROM tab0
----
720
720
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT col0 * - - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT col0 * - - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT ALL 98 AS col0, COUNT( * ) FROM tab2
----
98
3

skipif mysql # not compatible
query II rowsort label-8992
SELECT ALL 98 AS col0, COUNT ( * ) FROM tab2
----
98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT COUNT( * ) + - 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT COUNT ( * ) + - 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-77

query I rowsort
SELECT ALL - 10 + col0 AS col1 FROM tab2 AS cor0
----
36
54
65

query I rowsort
SELECT + + 70 * col2 - + - 2 AS col0 FROM tab0 cor0
----
3292
6932
702

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8996
SELECT DISTINCT col0 DIV + CAST( + 49 AS SIGNED ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT col0 / + CAST ( + 49 AS INTEGER ) FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8997
SELECT DISTINCT + COUNT( * ) DIV 97 + + 48 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT + COUNT ( * ) / 97 + + 48 FROM tab2 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 + + col0 col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - - 68 * + col1 * + col1 FROM tab2 AS cor0
----
176868
305252
403172

onlyif mysql # DIV for integer division: 
query II rowsort label-9000
SELECT + col1 + + col2 + + col1 * + col2 AS col0, - 14 DIV - col2 col2 FROM tab1 AS cor0
----
1454
0
3311
0
359
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9000
SELECT + col1 + + col2 + + col1 * + col2 AS col0, - 14 / - col2 col2 FROM tab1 AS cor0
----
1454
0
3311
0
359
0

query I rowsort
SELECT DISTINCT - col2 * - + 9 FROM tab2 AS cor0
----
207
360
522

onlyif mysql # DIV for integer division: 
query III rowsort label-9002
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 DIV - - col1 * + - col1 * - - col1 >= + 0
----

skipif mysql # not compatible
query III rowsort label-9002
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 / - - col1 * + - col1 * - - col1 >= + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9003
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9003
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + ( + + col1 ) AS col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + - 22 - COUNT( * ) + - 94 FROM tab2 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-9005
SELECT + - 22 - COUNT ( * ) + - 94 FROM tab2 AS cor0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - - col2 * col0 AS col2 FROM tab0 cor0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT + + ( - + COUNT( DISTINCT + 48 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT + + ( - + COUNT ( DISTINCT + 48 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9009
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-9009
SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT col2 DIV + + 57 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9010
SELECT col2 / + + 57 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT 73, col0 AS col0 FROM tab0 AS cor0
----
73
15
73
87
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL - + COUNT( * ) - - ( + - ( COUNT( * ) ) ) + + 60 + - - 60 + 28 * - MAX( DISTINCT - col1 ) * 25 FROM tab1 AS cor0
----
3614

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - + COUNT ( * ) - - ( + - ( COUNT ( * ) ) ) + + 60 + - - 60 + 28 * - MAX ( DISTINCT - col1 ) * 25 FROM tab1 AS cor0
----
3614

query II rowsort
SELECT ALL + + col1 AS col2, col0 FROM tab0 cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 AS col0, 77 col1 FROM tab2 cor0
----
23
77
40
77
58
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - col2 * - - col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - col2 * - - col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 91 * 3 * - col2 FROM tab0
----
-12831
-27027
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9017
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - + col2 = ( 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 3 * + + ( + 31 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT MAX( - + 95 ) * - COUNT( + + col2 ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-9020
SELECT MAX ( - + 95 ) * - COUNT ( + + col2 ) FROM tab2
----
285

query I rowsort
SELECT 13 + + 28 FROM tab1 cor0 WHERE NOT ( + 75 ) NOT BETWEEN + col1 + - col2 AND ( + 13 * + col0 )
----
41
41
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9022
SELECT - COUNT( ALL col0 ) DIV - COUNT( * ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9022
SELECT - COUNT ( ALL col0 ) / - COUNT ( * ) AS col0 FROM tab1 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT + SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT + SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9025
SELECT ALL * FROM tab0 AS cor0 WHERE - 42 * CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9025
SELECT ALL * FROM tab0 AS cor0 WHERE - 42 * CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT 92 * - MAX( col0 ) AS col0 FROM tab2 AS cor0
----
-6900

skipif mysql # not compatible
query I rowsort label-9026
SELECT 92 * - MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
-6900

query I rowsort
SELECT ALL + + col2 + - 62 AS col1 FROM tab1 AS cor0
----
-3
34
6

query II rowsort
SELECT DISTINCT - - col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT - - ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT - - ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + col1 / - col2 AS col2, col0 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT col0 + - + 59 * - col2 + - + col2 AS col2 FROM tab1
----
3507
4035
5619

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 < - col0 * + col2 AND NOT col2 * + col1 * col1 * + - col0 IS NOT NULL
----

query I rowsort
SELECT 7 * col2 + + ( + 97 ) * - - col1 FROM tab1
----
2030
5035
898

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT MAX( DISTINCT + + col0 ) + - 4 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9034
SELECT MAX ( DISTINCT + + col0 ) + - 4 FROM tab1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9035
SELECT 71 DIV + 90 + - ( COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9035
SELECT 71 / + 90 + - ( COUNT ( * ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT col1 + col1 - - 71 * + + col2 * col0 * - 86 - col2 FROM tab2
----
-15631246
-26561024
-6460069

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9037
SELECT DISTINCT 12 / + COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT 12 / + COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT + COUNT( * ) + ( + COUNT( * ) ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9038
SELECT + COUNT ( * ) + ( + COUNT ( * ) ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9039
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) - - 35 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-9039
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) - - 35 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9040
SELECT * FROM tab1 WHERE - 55 BETWEEN - 85 AND 92 + - ( + col2 ) + - CAST( NULL AS SIGNED ) * + col1 / - + col2
----

skipif mysql # not compatible
query III rowsort label-9040
SELECT * FROM tab1 WHERE - 55 BETWEEN - 85 AND 92 + - ( + col2 ) + - CAST ( NULL AS INTEGER ) * + col1 / - + col2
----

query I rowsort
SELECT DISTINCT + + col1 * + + col0 * + col1 - - col1 AS col1 FROM tab0 AS cor0
----
38388
98
98496

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT ALL col0 - + col2 + - + col1 DIV + col0 FROM tab2 AS cor0
----
17
22
23

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL col0 - + col2 + - + col1 / + col0 FROM tab2 AS cor0
----
17
22
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9043
SELECT - - COUNT( * ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9043
SELECT - - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + - col0 * + - 79 AS col0 FROM tab2 AS cor0
----
3634
5056
5925

query I rowsort
SELECT ALL - col0 * + 65 AS col2 FROM tab0
----
-5655
-6305
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT - MIN( ALL col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT - MIN ( ALL col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-9047
SELECT + - MAX( - 64 ), MAX( 15 ) col0 FROM tab0 AS cor0
----
64
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9047
SELECT + - MAX ( - 64 ), MAX ( 15 ) col0 FROM tab0 AS cor0
----
64
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9048
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 48 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9048
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 48 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9049
SELECT DISTINCT - CAST( - MAX( - 13 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - CAST ( - MAX ( - 13 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + - COUNT( - ( - + 60 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9050
SELECT + - COUNT ( - ( - + 60 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9051
SELECT + - COUNT( - 86 ) AS col1, ( - MAX( ALL - col0 ) ) FROM tab1 cor0
----
-3
51

skipif mysql # not compatible
query II rowsort label-9051
SELECT + - COUNT ( - 86 ) AS col1, ( - MAX ( ALL - col0 ) ) FROM tab1 cor0
----
-3
51

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( col2 ) * + - 68 > 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 24, col0 FROM tab2
----
-24
46
-24
64
-24
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - SUM( DISTINCT 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9054
SELECT - SUM ( DISTINCT 47 ) FROM tab1
----
-47

query II rowsort
SELECT - 42, - 29 AS col0 FROM tab0
----
-42
-29
-42
-29
-42
-29

query I rowsort
SELECT ALL + - 49 AS col2 FROM tab0 WHERE NULL > + col1
----

query I rowsort
SELECT ALL col2 * 96 AS col2 FROM tab2
----
2208
3840
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - 69 * + COUNT( * ) AS col1 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-9058
SELECT - 69 * + COUNT ( * ) AS col1 FROM tab0
----
-207

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( 28 * - + col0 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT ALL + col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL + col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT 29 - COUNT( * ) col1 FROM tab1 WHERE NOT NULL = + 27 - + 8 * col1
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9061
SELECT DISTINCT 29 - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL = + 27 - + 8 * col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL MIN( - 72 ) AS col1 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL MIN ( - 72 ) AS col1 FROM tab0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT + col2 DIV - col0 FROM tab2 AS cor0 WHERE NOT col2 + - col0 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT + col2 / - col0 FROM tab2 AS cor0 WHERE NOT col2 + - col0 IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, - ( - 66 ) + + - ( col0 ) col1 FROM tab1 AS cor0
----
59
-19
68
-25
96
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9065
SELECT - CAST( NULL AS SIGNED ) AS col2, + ( + 44 ) FROM tab1 AS cor0
----
NULL
44
NULL
44
NULL
44

skipif mysql # not compatible
query II rowsort label-9065
SELECT - CAST ( NULL AS INTEGER ) AS col2, + ( + 44 ) FROM tab1 AS cor0
----
NULL
44
NULL
44
NULL
44

query I rowsort
SELECT + 47 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL 91 * - 2 * + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1638

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL 91 * - 2 * + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1638

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT - col1 DIV col1 * + + col2 * + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9068
SELECT - col1 / col1 * + + col2 * + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT 95 * + 56 * + - COUNT( * ) * - 53 AS col1 FROM tab1 AS cor0
----
845880

skipif mysql # not compatible
query I rowsort label-9069
SELECT 95 * + 56 * + - COUNT ( * ) * - 53 AS col1 FROM tab1 AS cor0
----
845880

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col0 * - + 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT - + ( + - 52 ) + + COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT - + ( + - 52 ) + + COUNT ( * ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT - - col2 * + + col2 + - - col2 FROM tab2 AS cor0
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9073
SELECT + MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT 6 + - 52 AS col1 FROM tab1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9075
SELECT ALL - COUNT( - - col2 ) * - - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL - COUNT ( - - col2 ) * - - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * - col2 AS col1 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col2 * 30 FROM tab0
----
-1410
-2970
-300

query I rowsort
SELECT ALL + 77 + - col0 AS col0 FROM tab2
----
13
2
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * + col0 + - col0 col0 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT - ( - + 25 ) FROM tab2
----
25
25
25

query I rowsort
SELECT DISTINCT + + col1 * - + 62 + col2 FROM tab1 AS cor0
----
-251
-2846
-772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT - CAST( 79 AS SIGNED ) - - MAX( - col0 ) + 13 AS col1 FROM tab2 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - CAST ( 79 AS INTEGER ) - - MAX ( - col0 ) + 13 AS col1 FROM tab2 AS cor0
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT DISTINCT - 31 DIV + COUNT( * ) + - COUNT( * ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT - 31 / + COUNT ( * ) + - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + SUM( ALL 53 ) * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
4293

skipif mysql # not compatible
query I rowsort label-9084
SELECT + SUM ( ALL 53 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + COUNT( * ) * + - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-189

skipif mysql # not compatible
query I rowsort label-9085
SELECT + COUNT ( * ) * + - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-189

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - 50 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 * + - 99 AS col0 FROM tab0 AS cor0
----
-5247

query II rowsort
SELECT ALL + col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 12 > - col2 * - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 72 * + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-1104
-3452
-419

query II rowsort
SELECT DISTINCT col1, + col1 + - 75 FROM tab1 AS cor0
----
14
-61
47
-28
5
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9092
SELECT MAX( 95 ) DIV + 81 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9092
SELECT MAX ( 95 ) / + 81 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9094
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 31 AS col1 FROM tab0 cor0
----
NULL
-31
NULL
-31
NULL
-31

skipif mysql # not compatible
query II rowsort label-9094
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 31 AS col1 FROM tab0 cor0
----
NULL
-31
NULL
-31
NULL
-31

query I rowsort
SELECT + col2 * + ( - col0 ) AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT DISTINCT + 83 DIV - col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + 83 / - col2 FROM tab0
----
-1
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT ALL - 50 DIV + 56 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - 50 / + 56 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT CAST( col2 AS SIGNED ) col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9098
SELECT CAST ( col2 AS INTEGER ) col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT COUNT( * ) * - + 66 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-9099
SELECT COUNT ( * ) * - + 66 FROM tab2
----
-198

query II rowsort
SELECT + col0 * - ( + - 10 ) AS col2, - col1 AS col2 FROM tab1
----
510
-14
850
-5
910
-47

query I rowsort
SELECT + 19 * - col1 AS col0 FROM tab1
----
-266
-893
-95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col1 * + - col1 AND NULL
----

query II rowsort
SELECT - col2 * col1 AS col1, 42 AS col0 FROM tab2
----
-1173
42
-3080
42
-3886
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, + ( + 37 ) + - ( - + col1 ) FROM tab2 WHERE NULL IS NULL
----
23
88
40
114
58
104

query I rowsort
SELECT ALL - col0 + + - col1 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT DISTINCT - 93 + + MIN( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT - 93 + + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + 24 + - - col0 FROM tab0 AS cor0
----
1023
1095
1105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9109
SELECT ALL + col2, + col1 * 28 * - col0 FROM tab1 AS cor0 WHERE 31 * - - CAST( col0 AS SIGNED ) NOT BETWEEN - + 3 AND NULL
----

skipif mysql # not compatible
query II rowsort label-9109
SELECT ALL + col2, + col1 * 28 * - col0 FROM tab1 AS cor0 WHERE 31 * - - CAST ( col0 AS INTEGER ) NOT BETWEEN - + 3 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT ALL - col2 + - CAST( - col2 AS SIGNED ) * - + col1 * + 39 AS col1 FROM tab2 AS cor0
----
-120160
-151612
-45770

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - col2 + - CAST ( - col2 AS INTEGER ) * - + col1 * + 39 AS col1 FROM tab2 AS cor0
----
-120160
-151612
-45770

query I rowsort
SELECT + 11 - col2 FROM tab2 AS cor0
----
-12
-29
-47

query I rowsort
SELECT - col0 + - 90 FROM tab0 cor0
----
-105
-177
-187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + col2 * - col0 col0 FROM tab2
----
-1053
-2555
-4345

query I rowsort
SELECT DISTINCT - col2 * + + 7 AS col0 FROM tab1 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL - col0 - + col1 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - COUNT( * ) - - ( COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT - COUNT ( * ) - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9117
SELECT MIN( ALL + CAST( NULL AS DECIMAL ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9117
SELECT MIN ( ALL + CAST ( NULL AS REAL ) ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9118
SELECT - 76 AS col1, ( 30 ) AS col0 FROM tab0 WHERE NOT + CAST( - 73 AS SIGNED ) IS NULL
----
-76
30
-76
30
-76
30

skipif mysql # not compatible
query II rowsort label-9118
SELECT - 76 AS col1, ( 30 ) AS col0 FROM tab0 WHERE NOT + CAST ( - 73 AS INTEGER ) IS NULL
----
-76
30
-76
30
-76
30

query II rowsort
SELECT 18, col2 AS col0 FROM tab0
----
18
10
18
47
18
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT - 24 + 7 DIV COUNT( ALL + 72 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-24

skipif mysql # not compatible
query I rowsort label-9120
SELECT - 24 + 7 / COUNT ( ALL + 72 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT + + 1 * + 53 FROM tab2 AS cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col0 col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT + - 66 * + MIN( DISTINCT - + 10 ) + 74 FROM tab0 AS cor0
----
734

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT + - 66 * + MIN ( DISTINCT - + 10 ) + 74 FROM tab0 AS cor0
----
734

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL 76 * + - COUNT( * ) FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL 76 * + - COUNT ( * ) FROM tab0
----
-228

query I rowsort
SELECT + 43 * col0 FROM tab2
----
1978
2752
3225

query II rowsort
SELECT ALL col2, col0 AS col2 FROM tab0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 89 + + col1 col1 FROM tab0
----
-9
100
123

query I rowsort
SELECT DISTINCT - 66 * - col2 AS col2 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT DISTINCT col0 * + + ( - 10 ) FROM tab2 AS cor0
----
-460
-640
-750

query I rowsort
SELECT + ( - 89 ) AS col2 FROM tab1 AS cor0
----
-89
-89
-89

query II rowsort
SELECT ALL - - col0 AS col1, - 81 + + - 39 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9133
SELECT + CAST( NULL AS SIGNED ), + 0 * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9133
SELECT + CAST ( NULL AS INTEGER ), + 0 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + - col0 col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - ( col2 ) * + col0 * - col0 FROM tab2 cor0
----
163840
326250
48668

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE + col0 <= - + 98 * - col1 + - 88
----
59
68
96

query I rowsort
SELECT + + 3 * - col0 * - col1 + - col1 FROM tab0 AS cor0
----
290
3564
5460

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT col0 * col2 DIV + 93 + ( col0 ) * + - ( + col0 ) * - 78 + col0 FROM tab0 AS cor0 WHERE 80 IS NOT NULL
----
17572
590478
734102

skipif mysql # not compatible
query I rowsort label-9140
SELECT col0 * col2 / + 93 + ( col0 ) * + - ( + col0 ) * - 78 + col0 FROM tab0 AS cor0 WHERE 80 IS NOT NULL
----
17572
590478
734102

query II rowsort
SELECT col1 - - 36 + - + col2 AS col0, - col0 * + col2 AS col2 FROM tab0
----
-62
-9603
47
-870
70
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT 66 NOT BETWEEN NULL AND NULL AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT 66 NOT BETWEEN NULL AND NULL AND NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + 93 FROM tab1
----
152
161
189

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9144
SELECT CAST( NULL AS SIGNED ) + - col2 + col2 + + - col1 * - - col2 * - ( - col0 ) * col0 + - col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT CAST ( NULL AS INTEGER ) + - col2 + col2 + + - col1 * - - col2 * - ( - col0 ) * col0 + - col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 83 col2 FROM tab2 AS cor0
----
46
83
64
83
75
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL - 74 * - MIN( 68 ) FROM tab1 AS cor0
----
5032

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - 74 * - MIN ( 68 ) FROM tab1 AS cor0
----
5032

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) + + col0 + 18 + + col0 * - col2 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
-4841
-4917
-6126

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) + + col0 + 18 + + col0 * - col2 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
-4841
-4917
-6126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9149
SELECT CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT CAST ( NULL AS REAL ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 91 AS col1 FROM tab1 cor0 WHERE NOT - col1 * - col0 + col1 > + - col1 - + col2
----

query I rowsort
SELECT - col0 * - 83 AS col0 FROM tab2 AS cor0
----
3818
5312
6225

query I rowsort
SELECT - + 83 * 34 FROM tab1 AS cor0
----
-2822
-2822
-2822

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT + col1 DIV - 86 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT + col1 / - 86 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - 53 AS col0 FROM tab2 AS cor0 WHERE NOT + 47 * - - 97 * - + col2 / + col0 + + col0 * + col0 + - 63 IS NULL
----
-53
-53
-53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 81 NOT IN ( col2, col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 12 + + - col0 * + 3 BETWEEN + col0 AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 38 / + - col0 + + + ( + col0 ) * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 62 col0, - col0 AS col2 FROM tab0
----
62
-15
62
-87
62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - - col2 IS NULL
----
0

query I rowsort
SELECT 25 * col0 * col2 * - + col2 AS col0 FROM tab0
----
-217500
-23767425
-828375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + - + col2 AS col2 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + - + col2 AS col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL col1 + + - 52 AS col2 FROM tab1
----
-38
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT 96 > NULL
----

query I rowsort
SELECT col0 + - + 60 * + col1 * - col1 AS col0 FROM tab0
----
157
26547
393675

query II rowsort
SELECT ALL - + 22, 36 * 87 / + + 99 + + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 49 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col0 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9167
SELECT - - col0 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1, + col1 + + col2 * + + 69 * - col2 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
-110323
NULL
-232049
NULL
-36450

skipif mysql # not compatible
query II rowsort label-9167
SELECT - - col0 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1, + col1 + + col2 * + + 69 * - col2 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
-110323
NULL
-232049
NULL
-36450

query I rowsort
SELECT DISTINCT - + 46 * - + col1 FROM tab0 AS cor0
----
3726
46
966

query I rowsort
SELECT 52 * + col2 + + 62 + col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT DISTINCT 82 DIV + 16 + COUNT( * ) AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT 82 / + 16 + COUNT ( * ) AS col2 FROM tab0
----
8

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL NOT BETWEEN - 15 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9172
SELECT col1 AS col1, - CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9172
SELECT col1 AS col1, - CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT + col2 * - ( + - 62 ) * 17 * + col2 * - - CAST( NULL AS SIGNED ) - + + 44 FROM tab1 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + col2 * - ( + - 62 ) * 17 * + col2 * - - CAST ( NULL AS INTEGER ) - + + 44 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + + col2 + - col0 * col1 * - + ( + col1 ) FROM tab0 AS cor0
----
196
38377
98462

query I rowsort
SELECT - 58 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 - ( col0 ) + + + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 <= - col1
----
3

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 <= - col1
----
3

query I rowsort
SELECT col1 + ( col1 ) - - col1 FROM tab0
----
243
3
63

query III rowsort
SELECT * FROM tab0 WHERE + 96 IS NULL
----

query III rowsort
SELECT col1 + - 30 AS col1, 31, - col0 AS col2 FROM tab2
----
9 values hashing to 2ca93e181afe80d242614e3cc67ea382

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT MAX( + - col2 ) FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN + col1 AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT MAX ( + - col2 ) FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN + col1 AND - col1
----
NULL

query I rowsort
SELECT - 68 AS col1 FROM tab0 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT MAX( ALL + ( - col1 ) ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9184
SELECT MAX ( ALL + ( - col1 ) ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT DISTINCT 97 DIV col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT 97 / col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9186
SELECT + col0, ( + col1 ) * CAST( - col1 AS SIGNED ) + + ( + 67 ) AS col1 FROM tab0
----
15
-6494
87
-374
97
66

skipif mysql # not compatible
query II rowsort label-9186
SELECT + col0, ( + col1 ) * CAST ( - col1 AS INTEGER ) + + ( + 67 ) AS col1 FROM tab0
----
15
-6494
87
-374
97
66

query I rowsort
SELECT - col2 * + - 15 AS col1 FROM tab2
----
345
600
870

query II rowsort
SELECT ALL + 92 AS col1, col0 AS col1 FROM tab0
----
92
15
92
87
92
97

query I rowsort
SELECT + col1 * - col2 * - ( ( + col0 ) ) FROM tab2
----
197120
291450
53958

query I rowsort
SELECT - 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query II rowsort
SELECT + col0 AS col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( ( col0 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT - ( COUNT( DISTINCT + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT - ( COUNT ( DISTINCT + + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT COUNT( * ) col1, MIN( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
3
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9194
SELECT COUNT ( * ) col1, MIN ( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
3
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9196
SELECT ALL COUNT( * ) AS col0, 58 AS col0 FROM tab2 AS cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-9196
SELECT ALL COUNT ( * ) AS col0, 58 AS col0 FROM tab2 AS cor0
----
3
58

query I rowsort
SELECT DISTINCT + ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT 24 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9198
SELECT 24 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + col2 = - + col0 / + + 57 + + 13
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + - col1
----

query I rowsort
SELECT ALL 23 + col0 * - col1 AS col2 FROM tab0
----
-1192
-1804
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT + MIN( ALL + col1 ) * - COUNT( * ) FROM tab2 WHERE + col2 + - col1 IS NOT NULL
----
-153

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT + MIN ( ALL + col1 ) * - COUNT ( * ) FROM tab2 WHERE + col2 + - col1 IS NOT NULL
----
-153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 68 * ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9204
SELECT COUNT( ALL - col1 ) * + CAST( NULL AS SIGNED ) * + + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT COUNT ( ALL - col1 ) * + CAST ( NULL AS INTEGER ) * + + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - - ( - col2 ) * - - col1 + - - col1 AS col2, - col0 FROM tab0 AS cor0
----
-189
-87
-3726
-15
-98
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + - 8 + - SUM( + col1 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9206
SELECT + - 8 + - SUM ( + col1 ) FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + + SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9209
SELECT + + SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT col1 - 74 * - 86 AS col2 FROM tab2 AS cor0
----
6415
6431
6441

query I rowsort
SELECT ALL - 29 * + - col1 FROM tab1 AS cor0
----
1363
145
406

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9212
SELECT DISTINCT + COUNT( * ) * 89 * + CAST( NULL AS DECIMAL ) / ( + 5 ) AS col0 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + COUNT ( * ) * 89 * + CAST ( NULL AS REAL ) / ( + 5 ) AS col0 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9213
SELECT - col1 DIV + 81, + col1 col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9213
SELECT - col1 / + 81, + col1 col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT + SUM( 53 ) FROM tab2 WHERE NOT ( 8 * + + col2 IS NULL )
----
159

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + SUM ( 53 ) FROM tab2 WHERE NOT ( 8 * + + col2 IS NULL )
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT ALL CAST( + 79 AS SIGNED ) * + col0 FROM tab2
----
3634
5056
5925

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL CAST ( + 79 AS INTEGER ) * + col0 FROM tab2
----
3634
5056
5925

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT + col0 DIV 42 * - - 10 FROM tab0
----
0
20
20

skipif mysql # not compatible
query I rowsort label-9216
SELECT + col0 / 42 * - - 10 FROM tab0
----
0
20
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9217
SELECT DISTINCT CAST( - 6 AS SIGNED ) DIV - - 55 * col1 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT CAST ( - 6 AS INTEGER ) / - - 55 * col1 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9218
SELECT - col1 * - col2 AS col1, CAST( col1 AS SIGNED ) - col1 FROM tab1
----
1344
0
295
0
3196
0

skipif mysql # not compatible
query II rowsort label-9218
SELECT - col1 * - col2 AS col1, CAST ( col1 AS INTEGER ) - col1 FROM tab1
----
1344
0
295
0
3196
0

query I rowsort
SELECT + - 2 + + 57 / + + col2 + col0 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * col2 col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9221
SELECT 33 DIV + COUNT( * ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-9221
SELECT 33 / + COUNT ( * ) FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT ALL ( + + CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL ( + + CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT - - CAST( NULL AS SIGNED ) * + 2 * 52 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT - - CAST ( NULL AS INTEGER ) * + 2 * 52 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * - ( 5 ) + col0 + + + 82 col2 FROM tab2 AS cor0
----
603
621
632

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL SUM( - + 99 ) col1 FROM tab1 cor0
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9226
SELECT ALL SUM ( - + 99 ) col1 FROM tab1 cor0
----
-297

query II rowsort
SELECT DISTINCT ( + col2 ) AS col2, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT + 0 * + - 88 * + col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 22 ) > col1 / - col1 * + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT 83 AS col2, COUNT( * ) + MAX( col2 ) AS col0 FROM tab2
----
83
61

skipif mysql # not compatible
query II rowsort label-9231
SELECT 83 AS col2, COUNT ( * ) + MAX ( col2 ) AS col0 FROM tab2
----
83
61

query I rowsort
SELECT + 32 + - - col1 * + 81 + + - col1 + - 62 * ( - - col2 ) AS col2 FROM tab0
----
-6026
1092
3598

onlyif mysql # aggregate syntax: 
query II rowsort label-9233
SELECT ALL - COUNT( * ) col2, 78 + + 52 FROM tab2 AS cor0
----
-3
130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9233
SELECT ALL - COUNT ( * ) col2, 78 + + 52 FROM tab2 AS cor0
----
-3
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + COUNT( - + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9234
SELECT + COUNT ( - + col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ( 60 ) AS col2 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9236
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-9236
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT + COUNT( * ) * - SUM( ALL - - 26 ) + - 69 AS col2 FROM tab0
----
-303

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + COUNT ( * ) * - SUM ( ALL - - 26 ) + - 69 AS col2 FROM tab0
----
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + + COUNT( * ) + - - 17 * + 97 AS col1 FROM tab1 AS cor0
----
1652

skipif mysql # not compatible
query I rowsort label-9238
SELECT + + COUNT ( * ) + - - 17 * + 97 AS col1 FROM tab1 AS cor0
----
1652

query I rowsort
SELECT DISTINCT + 58 * + - 72 AS col1 FROM tab2 AS cor0
----
-4176

query I rowsort
SELECT ALL col2 * 50 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 * + - 84 * 34 FROM tab2
----
138995808
467927040
931770000

query I rowsort
SELECT DISTINCT - col2 * 27 FROM tab0 WHERE - col2 = 90 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT DISTINCT - col2 DIV - 4 AS col2 FROM tab0
----
11
2
24

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - col2 / - 4 AS col2 FROM tab0
----
11
2
24

query I rowsort
SELECT + + 58 - 91 AS col0 FROM tab1 WHERE NOT + ( - col0 ) * col1 + col0 + + 75 IS NULL
----
-33
-33
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT ALL - SUM( + col2 ) DIV + 38 AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - SUM ( + col2 ) / + 38 AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + COUNT( * ) * - 84 AS col0 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-9246
SELECT + COUNT ( * ) * - 84 AS col0 FROM tab1
----
-252

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 + + 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT - + 27 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT - + 27 / col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT COUNT( * ) * + 83 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT COUNT ( * ) * + 83 FROM tab1 AS cor0
----
249

query I rowsort
SELECT 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT DISTINCT - COUNT( * ), ( - SUM( - + col0 ) ) AS col0 FROM tab2
----
-3
185

skipif mysql # not compatible
query II rowsort label-9251
SELECT DISTINCT - COUNT ( * ), ( - SUM ( - + col0 ) ) AS col0 FROM tab2
----
-3
185

query I rowsort
SELECT ALL + 22 + - 34 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL + 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 + 37 col0 FROM tab0
----
82

query II rowsort
SELECT ALL - 37 + - - col1, + col2 FROM tab2 AS cor0
----
14
23
30
58
40
40

query I rowsort
SELECT ALL + + 43 + - + 15 AS col2 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT col0 + - + col1 DIV - 2 AS col2 FROM tab0 AS cor0
----
55
97
97

skipif mysql # not compatible
query I rowsort label-9257
SELECT col0 + - + col1 / - 2 AS col2 FROM tab0 AS cor0
----
55
97
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9258
SELECT col1 + - + col2 AS col1, 53 DIV - + 13 FROM tab1 cor0
----
-21
-4
-54
-4
-82
-4

skipif mysql # not compatible
query II rowsort label-9258
SELECT col1 + - + col2 AS col1, 53 / - + 13 FROM tab1 cor0
----
-21
-4
-54
-4
-82
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT 46 + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9259
SELECT 46 + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT col2 * - - ( + col1 ) FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - col1 + - - 11 FROM tab2 AS cor0
----
-40
-56
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 / + 58 ) NOT BETWEEN + col1 * - ( ( 0 ) ) + + 31 - col2 + - + 34 / 4 AND 55 + - + col1
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND + - 90 * 53 * col1 + + 99
----

query I rowsort
SELECT DISTINCT - col0 + 90 FROM tab1
----
-1
39
5

query I rowsort
SELECT ALL col2 * 28 + - - 41 AS col2 FROM tab1
----
1693
1945
2729

query I rowsort
SELECT + + 56 + - + 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61, + 1 * + + col2 * + col1 col2 FROM tab1
----
-61
1344
-61
295
-61
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL COUNT( * ) * - COUNT( * ) + - - 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - - 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - col2 + + 51 * 45 AS col0 FROM tab2
----
2237
2255
2272

query I rowsort
SELECT ( - 74 ) * col1 * - col2 * - col0 AS col0 FROM tab0 AS cor0
----
-1351980
-4225770
-710622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9272
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + col0 ) * - 32 + 34 + + ( - 59 ) * + - 97 AS col2 FROM tab0 AS cor0
----
2653
2973
5277

query I rowsort
SELECT ALL + - 69 AS col0 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT SUM( DISTINCT + 18 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT SUM ( DISTINCT + 18 ) FROM tab0 cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 > - CAST( + col2 AS SIGNED ) / + + col0 + + CAST( + + 16 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 > - CAST ( + col2 AS INTEGER ) / + + col0 + + CAST ( + + 16 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + ( col1 ) * - - 47 AS col1 FROM tab0 AS cor0
----
3807
47
987

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT - COUNT( * ) * - COUNT( DISTINCT col2 ) * ( + 12 ) col1 FROM tab0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9279
SELECT DISTINCT - COUNT ( * ) * - COUNT ( DISTINCT col2 ) * ( + 12 ) col1 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - SUM( - 56 ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-9280
SELECT - SUM ( - 56 ) FROM tab1
----
168

query I rowsort
SELECT col2 * + + 27 AS col0 FROM tab0
----
1269
2673
270

query I rowsort
SELECT col1 * 30 FROM tab1
----
1410
150
420

query I rowsort
SELECT DISTINCT - col2 + + col1 + - - col0 + + 74 * - col1 * 73 AS col0 FROM tab0
----
-113344
-437513
-5403

query I rowsort
SELECT DISTINCT + + 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col0 FROM tab0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL MIN( ALL - - 13 ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL MIN ( ALL - - 13 ) AS col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT - COUNT( + 55 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - COUNT ( + 55 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT - - col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT ALL + + 38 DIV - col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + + 38 / - col0 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT - 74 + + 8 FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL + ( - ( COUNT( * ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + ( - ( COUNT ( * ) ) ) AS col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT col2 + + + 20 DIV + - col1 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9295
SELECT col2 + + + 20 / + - col1 AS col1 FROM tab2
----
23
40
58

query II rowsort
SELECT DISTINCT col0, 47 * - ( - + 35 ) + 18 AS col1 FROM tab0
----
15
1663
87
1663
97
1663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT ALL + 80 * 14 + - COUNT( * ) DIV - - SUM( DISTINCT - - 81 ) AS col1 FROM tab0
----
1120

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + 80 * 14 + - COUNT ( * ) / - - SUM ( DISTINCT - - 81 ) AS col1 FROM tab0
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT COUNT( * ) + 39 + - 28 col1 FROM tab1
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9298
SELECT COUNT ( * ) + 39 + - 28 col1 FROM tab1
----
14

query I rowsort
SELECT DISTINCT + col1 * - col1 + col1 AS col2 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT DISTINCT - col2 + 76 * + col0 * - ( + col0 ) AS col0 FROM tab1
----
-197772
-549159
-629424

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - 33
----

query II rowsort
SELECT 20 AS col2, + 8 AS col2 FROM tab2 AS cor0
----
20
8
20
8
20
8

query II rowsort
SELECT DISTINCT + col2, + col0 AS col0 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT + 40 * - + CAST( - col0 AS SIGNED ) * 70 - - col0 - - col0 FROM tab0
----
243774
271794
42030

skipif mysql # not compatible
query I rowsort label-9304
SELECT + 40 * - + CAST ( - col0 AS INTEGER ) * 70 - - col0 - - col0 FROM tab0
----
243774
271794
42030

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 23 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9307
SELECT CAST( 18 AS SIGNED ) col0, col1 FROM tab0 AS cor0
----
18
1
18
21
18
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9307
SELECT CAST ( 18 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
18
1
18
21
18
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL - MIN( + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - MIN ( + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9309
SELECT ALL - CAST( + 79 AS SIGNED ), + col1 * col0 AS col0 FROM tab2 AS cor0
----
-79
2346
-79
4928
-79
5025

skipif mysql # not compatible
query II rowsort label-9309
SELECT ALL - CAST ( + 79 AS INTEGER ), + col1 * col0 AS col0 FROM tab2 AS cor0
----
-79
2346
-79
4928
-79
5025

query I rowsort
SELECT DISTINCT + col2 * - 18 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # DIV for integer division: 
query II rowsort label-9311
SELECT ( col2 ) AS col2, - col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-9311
SELECT ( col2 ) AS col2, - col0 / - col0 AS col1 FROM tab1 AS cor0
----
59
1
68
1
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT + COUNT( + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9312
SELECT + COUNT ( + col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT - SUM( DISTINCT 82 ) AS col2 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT - SUM ( DISTINCT 82 ) AS col2 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9314
SELECT + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9314
SELECT + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9315
SELECT CAST( NULL AS DECIMAL ) * - - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT CAST ( NULL AS REAL ) * - - COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 59 NOT IN ( + - 65, 67 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * + 83 col2 FROM tab2 AS cor0
----
-664
-664
-664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9318
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( 86 AS SIGNED ) * - col0 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9318
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT CAST ( 86 AS INTEGER ) * - col0 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - SUM( ALL + 40 ) FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9319
SELECT - SUM ( ALL + 40 ) FROM tab0 AS cor0
----
-120

query I rowsort
SELECT DISTINCT + 25 * + col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT - col2 - col0 * col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT ALL + 66 * col2 FROM tab0
----
3102
6534
660

onlyif mysql # DIV for integer division: 
query III rowsort label-9323
SELECT ALL * FROM tab0 WHERE ( - 1 + col1 DIV - col2 ) NOT BETWEEN ( - col1 ) AND ( + col0 - - 28 )
----

skipif mysql # not compatible
query III rowsort label-9323
SELECT ALL * FROM tab0 WHERE ( - 1 + col1 / - col2 ) NOT BETWEEN ( - col1 ) AND ( + col0 - - 28 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9324
SELECT col1 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT col1 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 74 * col1 FROM tab2
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT COUNT( * ) * - 77 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-9326
SELECT COUNT ( * ) * - 77 FROM tab0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT 85 - + COUNT( * ) AS col0 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-9327
SELECT 85 - + COUNT ( * ) AS col0 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL 23 * + MAX( DISTINCT col1 ) FROM tab2
----
1771

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL 23 * + MAX ( DISTINCT col1 ) FROM tab2
----
1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 54 col0 FROM tab1
----
113
122
150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9330
SELECT * FROM tab1 WHERE CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9330
SELECT * FROM tab1 WHERE CAST ( - col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL + COUNT( * ) * 51 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + COUNT ( * ) * 51 FROM tab1
----
153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <> col0 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL 96 * COUNT( * ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL 96 * COUNT ( * ) FROM tab0
----
288

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9334
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( CAST( NULL AS DECIMAL ) - col1 )
----

skipif mysql # not compatible
query III rowsort label-9334
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ) - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9335
SELECT DISTINCT + 4 DIV - COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9335
SELECT DISTINCT + 4 / - COUNT ( * ) col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL 65 * + MIN( - 83 ) FROM tab2
----
-5395

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL 65 * + MIN ( - 83 ) FROM tab2
----
-5395

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 * + 88 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - COUNT( * ) + + 43 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-9339
SELECT - COUNT ( * ) + + 43 FROM tab1
----
40

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 32 ) * col1 + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9341
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9341
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL - COUNT( * ) + 19 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - COUNT ( * ) + 19 FROM tab1
----
16

query I rowsort
SELECT + col2 * col2 AS col2 FROM tab0 WHERE NOT + ( col0 ) = NULL
----

query I rowsort
SELECT + col1 - col0 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ( + col1 ) + col0 DIV + col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9346
SELECT ( + col1 ) + col0 / + col0 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9347
SELECT col2 DIV CAST( 28 AS SIGNED ) FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-9347
SELECT col2 / CAST ( 28 AS INTEGER ) FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL col1 / + CAST( NULL AS SIGNED ) + 96 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL col1 / + CAST ( NULL AS INTEGER ) + 96 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 19 * - 99 + 20 FROM tab2 AS cor0
----
-1861
-1861
-1861

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT + 50 - CAST( NULL AS SIGNED ) * col0 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-9351
SELECT + 50 - CAST ( NULL AS INTEGER ) * col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9352
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( - col0 AS SIGNED ) + - 30 / col0 )
----

skipif mysql # not compatible
query III rowsort label-9352
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( - col0 AS INTEGER ) + - 30 / col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT col2 + col0 DIV - 29 FROM tab0 AS cor0
----
47
7
96

skipif mysql # not compatible
query I rowsort label-9353
SELECT col2 + col0 / - 29 FROM tab0 AS cor0
----
47
7
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * ( + col2 ) + col1 * col2 col1 FROM tab0 AS cor0
----
6534
6862
860

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL MIN( ALL 45 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL MIN ( ALL 45 ) AS col2 FROM tab0
----
45

query I rowsort
SELECT ALL + - 54 AS col0 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9358
SELECT ALL * FROM tab2 WHERE - 95 + - col0 <> CAST( NULL AS SIGNED ) * - 24
----

skipif mysql # not compatible
query III rowsort label-9358
SELECT ALL * FROM tab2 WHERE - 95 + - col0 <> CAST ( NULL AS INTEGER ) * - 24
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col0 / + col1 + col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE 58 < NULL
----

query I rowsort
SELECT ( ( col2 ) ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT + COUNT( - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT + COUNT ( - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab2 WHERE NOT ( + col2 / 84 ) IS NULL
----
44

query I rowsort
SELECT - 28 * col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col1 AND - ( + 12 ) + col1
----

query I rowsort
SELECT + 22 FROM tab1 WHERE NOT ( + 44 - 96 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT - col0 * + + 93 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT - col0 * + + 93 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT col2 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT col2 / + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 * + + 56 + - ( + col1 ) AS col0 FROM tab2
----
1237
2163
3181

query I rowsort
SELECT ALL 78 - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 45 * - 9 FROM tab1 AS cor0
----
-405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9371
SELECT DISTINCT - 1 DIV - 58 + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - 1 / - 58 + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 63 + - 37 FROM tab1
----
26

query I rowsort
SELECT 2 * - + col0 AS col2 FROM tab2
----
-128
-150
-92

query III rowsort
SELECT * FROM tab2 WHERE - 91 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - 91 - + + COUNT( - col2 ) AS col1 FROM tab1 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - 91 - + + COUNT ( - col2 ) AS col1 FROM tab1 cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45, col1 + col0 + col2 col1 FROM tab1 AS cor0
----
-45
149
-45
161
-45
206

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT SUM( col0 ) * 90 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
20430

skipif mysql # not compatible
query I rowsort label-9377
SELECT SUM ( col0 ) * 90 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
20430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 + + + 22 * - 5 col1 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 43 * col0 * + 34 <> ( - col0 + 31 )
----
3

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 43 * col0 * + 34 <> ( - col0 + 31 )
----
3

query II rowsort
SELECT ALL - col2, ( - 62 ) AS col2 FROM tab0 cor0
----
-10
-62
-47
-62
-99
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL - + 77 + - MAX( col2 ) FROM tab1 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - + 77 + - MAX ( col2 ) FROM tab1 AS cor0
----
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT + col2 * col2 + + - 83 + 99 + + 17 DIV 19 FROM tab0 AS cor0
----
116
2225
9817

skipif mysql # not compatible
query I rowsort label-9382
SELECT + col2 * col2 + + - 83 + 99 + + 17 / 19 FROM tab0 AS cor0
----
116
2225
9817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( + + 8 ) * + col1 = ( CAST( 83 AS SIGNED ) * + 32 )
----

skipif mysql # not compatible
query I rowsort label-9383
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( + + 8 ) * + col1 = ( CAST ( 83 AS INTEGER ) * + 32 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9384
SELECT MIN( - 96 ) + + ( 99 ) DIV 29 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9384
SELECT MIN ( - 96 ) + + ( 99 ) / 29 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT + 22 + + - col0 FROM tab2 AS cor0
----
-24
-42
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT col2 + CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-9386
SELECT col2 + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9387
SELECT DISTINCT - 64 AS col2, + CAST( NULL AS SIGNED ) * col1 + 79 / + ( + 45 ) AS col2 FROM tab1 AS cor0
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-9387
SELECT DISTINCT - 64 AS col2, + CAST ( NULL AS INTEGER ) * col1 + 79 / + ( + 45 ) AS col2 FROM tab1 AS cor0
----
-64
NULL

query I rowsort
SELECT - 67 + + col2 + - col0 FROM tab0
----
-144
-35
-65

query III rowsort
SELECT * FROM tab1 WHERE 38 >= NULL
----

query I rowsort
SELECT col0 + + - 69 * + 11 * + 21 * - 73 AS col0 FROM tab1
----
1163598
1163632
1163638

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT COUNT( + col2 ) + 7 AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9391
SELECT COUNT ( + col2 ) + 7 AS col0 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT COUNT( * ) FROM tab2 WHERE - 36 * 71 BETWEEN ( - col0 + col2 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT COUNT ( * ) FROM tab2 WHERE - 36 * 71 BETWEEN ( - col0 + col2 ) AND ( NULL )
----
0

query II rowsort
SELECT + 60 + - col2 AS col0, + 20 FROM tab1
----
-36
20
-8
20
1
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 = col0 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + + 83 + + col1 FROM tab1
----
3
39
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 78 * + col1 - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT col1 / - 6 IS NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9398
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col0 AS DECIMAL ) + CAST( col0 AS DECIMAL ) / - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9398
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS REAL ) + CAST ( col0 AS REAL ) / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9399
SELECT + MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 * + - 68 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 37 + - + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE NOT 64 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT 64 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * + col0 * col1 ) BETWEEN NULL AND - 76 + - 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9404
SELECT CAST( + col0 AS SIGNED ) DIV - 7 FROM tab2
----
-10
-6
-9

skipif mysql # not compatible
query I rowsort label-9404
SELECT CAST ( + col0 AS INTEGER ) / - 7 FROM tab2
----
-10
-6
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - ( 81 ) )
----

query I rowsort
SELECT - 88 FROM tab2 WHERE NOT 94 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, + col0 col2 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 25 + 38 * + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT + 24 * + - 68 * + COUNT( - - 38 ) FROM tab0
----
-4896

skipif mysql # not compatible
query I rowsort label-9409
SELECT + 24 * + - 68 * + COUNT ( - - 38 ) FROM tab0
----
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT - + col2 + + 22 * 29 * - ( col1 ) * + - CAST( ( ( - col1 ) ) AS SIGNED ) FROM tab0 cor0
----
-281368
-4185965
-737

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - + col2 + + 22 * 29 * - ( col1 ) * + - CAST ( ( ( - col1 ) ) AS INTEGER ) FROM tab0 cor0
----
-281368
-4185965
-737

query II rowsort
SELECT DISTINCT + col1, 29 + - col0 * col1 * + col0 * + col1 FROM tab1 AS cor0
----
14
-509767
47
-18292700
5
-180596

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT + - COUNT( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9412
SELECT + - COUNT ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + COUNT( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9413
SELECT + COUNT ( DISTINCT + - col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + col0 + + - 56 - col0 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL COUNT( DISTINCT 62 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL COUNT ( DISTINCT 62 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col1 FROM tab1 AS cor0 WHERE ( + col2 * col0 ) NOT IN ( col2 / 24, col2 )
----
-90
-90
-90

query II rowsort
SELECT DISTINCT + 13 - - 45 AS col1, + col2 FROM tab2 AS cor0
----
58
23
58
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + SUM( DISTINCT col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-9418
SELECT + SUM ( DISTINCT col2 ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9419
SELECT 71 * + - 91 + CAST( + col1 AS DECIMAL ) + 12 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9419
SELECT 71 * + - 91 + CAST ( + col1 AS REAL ) + 12 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT + - 94 * - + ( CAST( NULL AS SIGNED ) ) / - col0 / - col1 * 90 * - + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT + - 94 * - + ( CAST ( NULL AS INTEGER ) ) / - col0 / - col1 * 90 * - + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 88 * col2 FROM tab1 AS cor0
----
430848
441320
544544

query I rowsort
SELECT DISTINCT + 29 * + - ( - + 56 ) - col0 + - 38 AS col2 FROM tab1 AS cor0
----
1495
1501
1535

query I rowsort
SELECT ALL - + 17 AS col2 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT + col2 FROM tab0 AS cor0 WHERE CAST( - - col1 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9424
SELECT + col2 FROM tab0 AS cor0 WHERE CAST ( - - col1 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT + col1 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL ( + 80 ) * + - ( COUNT( * ) ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL ( + 80 ) * + - ( COUNT ( * ) ) FROM tab1
----
-240

query I rowsort
SELECT DISTINCT col1 * ( - 34 ) + + col1 FROM tab0
----
-2673
-33
-693

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( col1 + + col2 / col1 + + + 11 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - MIN( DISTINCT 61 ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-9430
SELECT - MIN ( DISTINCT 61 ) AS col2 FROM tab0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT DISTINCT - col2 DIV - - 13 AS col0 FROM tab0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - col2 / - - 13 AS col0 FROM tab0
----
-3
-7
0

query II rowsort
SELECT col1 * - col2, 69 + 29 AS col2 FROM tab0
----
-210
98
-3807
98
-99
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT 7 DIV + 31 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9434
SELECT 7 / + 31 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query I rowsort
SELECT - 19 * - 20 FROM tab0 AS cor0
----
380
380
380

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL + COUNT( * ) * - ( SUM( col2 ) ) AS col2 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + COUNT ( * ) * - ( SUM ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT + CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT + CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + 84 ) AS col1 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL + SUM( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL + + COUNT( * ) * 93 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + + COUNT ( * ) * 93 FROM tab0 AS cor0
----
279

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 27 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL - - SUM( col1 ) FROM tab2 AS cor0 WHERE 46 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - - SUM ( col1 ) FROM tab2 AS cor0 WHERE 46 BETWEEN NULL AND + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + MIN( + col1 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9446
SELECT ALL + MIN ( + col1 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT + COUNT( * ) * 20 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT + COUNT ( * ) * 20 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT MAX( ALL - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9448
SELECT MAX ( ALL - col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL CAST( - col1 AS SIGNED ) + col1 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9449
SELECT ALL CAST ( - col1 AS INTEGER ) + col1 col0 FROM tab0
----
0
0
0

query III rowsort
SELECT + 51 AS col2, - col0 - - 28 AS col0, - - col2 FROM tab0
----
9 values hashing to 6a9ce83aaffc17f15f584f42ad18b960

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE + - col2 IS NULL
----

query II rowsort
SELECT 10, col1 * + + col2 AS col1 FROM tab1
----
10
1344
10
295
10
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-9453
SELECT DISTINCT 35 + - COUNT( ALL col0 ) AS col1, + COUNT( * ) * + 23 FROM tab2
----
32
69

skipif mysql # not compatible
query II rowsort label-9453
SELECT DISTINCT 35 + - COUNT ( ALL col0 ) AS col1, + COUNT ( * ) * + 23 FROM tab2
----
32
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT - COUNT( * ) AS col1, + MAX( + - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9454
SELECT - COUNT ( * ) AS col1, + MAX ( + - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

query II rowsort
SELECT ALL col1, - col0 * - 19 AS col0 FROM tab0
----
1
1843
21
1653
81
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + 67 * COUNT( * ) + - - 94 FROM tab2
----
295

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 67 * COUNT ( * ) + - - 94 FROM tab2
----
295

query II rowsort
SELECT ALL - - 41 AS col2, + 97 * col2 AS col1 FROM tab0 AS cor0
----
41
4559
41
9603
41
970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT - - 56 - - 11 * - col0 FROM tab0 AS cor0 WHERE col0 + - - col2 - - col1 * col0 * col1 NOT IN ( + - 59, CAST( + 0 AS SIGNED ) )
----
-1011
-109
-901

skipif mysql # not compatible
query I rowsort label-9458
SELECT - - 56 - - 11 * - col0 FROM tab0 AS cor0 WHERE col0 + - - col2 - - col1 * col0 * col1 NOT IN ( + - 59, CAST ( + 0 AS INTEGER ) )
----
-1011
-109
-901

query III rowsort
SELECT * FROM tab1 WHERE - ( - ( - col1 ) ) IS NULL
----

query I rowsort
SELECT + 89 * col2 FROM tab1
----
5251
6052
8544

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - MAX( ALL + col1 ) * - 28 * + 83 AS col1 FROM tab2
----
178948

skipif mysql # not compatible
query I rowsort label-9461
SELECT - MAX ( ALL + col1 ) * - 28 * + 83 AS col1 FROM tab2
----
178948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <> col0
----

skipif mysql # not compatible
query I rowsort label-9462
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <> col0
----

query I rowsort
SELECT DISTINCT + + 15 + - col1 AS col2 FROM tab2 cor0
----
-36
-52
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT ALL + col2 DIV - - col1 + col0 * - + col0 - - 95 DIV + col0 AS col0 FROM tab0 AS cor0
----
-219
-7568
-9310

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + col2 / - - col1 + col0 * - + col0 - - 95 / + col0 AS col0 FROM tab0 AS cor0
----
-219
-7568
-9310

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9465
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 80 NOT BETWEEN ( + col2 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9465
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 80 NOT BETWEEN ( + col2 ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 99 + - 13 FROM tab2
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT + 20 * + col2 * 27 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT + 20 * + col2 * 27 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 * + + col1 FROM tab2
----
-4437
-5829
-6699

query I rowsort
SELECT + col0 * - 41 FROM tab1
----
-2091
-3485
-3731

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 95 <= ( + - 27 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 7 + + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT - 63 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 63 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-189

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 31 <> + - 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT DISTINCT + + CAST( - 84 AS SIGNED ) * col0 FROM tab0 cor0
----
-1260
-7308
-8148

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + + CAST ( - 84 AS INTEGER ) * col0 FROM tab0 cor0
----
-1260
-7308
-8148

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT col2 DIV + + col1 + - col0 col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9476
SELECT col2 / + + col1 + - col0 col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL + COUNT( - 90 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + COUNT ( - 90 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT - MAX( - 3 ) + COUNT( * ), + 66 AS col2 FROM tab1 AS cor0
----
6
66

skipif mysql # not compatible
query II rowsort label-9478
SELECT - MAX ( - 3 ) + COUNT ( * ), + 66 AS col2 FROM tab1 AS cor0
----
6
66

query I rowsort
SELECT DISTINCT + col1 * + ( + + 17 ) FROM tab0 AS cor0
----
1377
17
357

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 79 = NULL
----

query I rowsort
SELECT 31 + 52 + + col1 * col0 FROM tab2 AS cor0
----
2429
5011
5108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT - ( + MIN( ALL CAST( 13 AS SIGNED ) ) ) + - COUNT( + col0 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9482
SELECT - ( + MIN ( ALL CAST ( 13 AS INTEGER ) ) ) + - COUNT ( + col0 ) FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT - COUNT( * ) * + ( ( + 96 ) ) AS col1 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT - COUNT ( * ) * + ( ( + 96 ) ) AS col1 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT col1 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
2397
5005
5092

query II rowsort
SELECT + 92, - 76 * - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT + 57 DIV - 10 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9486
SELECT + 57 / - 10 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT + col1 DIV col1 * 23 AS col1 FROM tab2
----
23
23
23

skipif mysql # not compatible
query I rowsort label-9487
SELECT + col1 / col1 * 23 AS col1 FROM tab2
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL - col0 DIV + + 96 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - col0 / + + 96 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - 13 + + - col0 * - - ( + - 6 ) * + col2 FROM tab2
----
15347
26087
6335

onlyif mysql # DIV for integer division: 
query II rowsort label-9490
SELECT DISTINCT + 86 DIV - 53, col1 AS col2 FROM tab2
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-9490
SELECT DISTINCT + 86 / - 53, col1 AS col2 FROM tab2
----
-1
51
-1
67
-1
77

query I rowsort
SELECT ALL col2 * + - 73 * col0 + + col2 FROM tab1
----
-357312
-366036
-451656

query I rowsort
SELECT + - col1 FROM tab2 WHERE - 61 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 + + + 32 FROM tab1
----
150
168
224

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9494
SELECT ALL - CAST( NULL AS DECIMAL ) + - 23 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - CAST ( NULL AS REAL ) + - 23 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - col0 * - + col2 FROM tab0
----
786
891
9604

query I rowsort
SELECT - col1 * + 24 * + col0 FROM tab1 AS cor0
----
-10200
-102648
-17136

query I rowsort
SELECT DISTINCT col1 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT ALL col1 + + - 58 FROM tab1 AS cor0
----
-11
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT DISTINCT COUNT( ALL - - 2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT COUNT ( ALL - - 2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) + COUNT( * ) * + + COUNT( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) + COUNT ( * ) * + + COUNT ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( + 37 ) col0 FROM tab1 WHERE col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9503
SELECT 75 DIV + 1 FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-9503
SELECT 75 / + 1 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - - 64 * + + 97 * - col2 - - 30 FROM tab2 AS cor0
----
-142754
-248290
-360034

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL + 54 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + 54 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - + ( + col2 ) ) col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9507
SELECT DISTINCT - CAST( NULL AS SIGNED ), + 86 * col0 + col1 col0 FROM tab2 AS cor0
----
NULL
4007
NULL
5581
NULL
6517

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9507
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + 86 * col0 + col1 col0 FROM tab2 AS cor0
----
NULL
4007
NULL
5581
NULL
6517

onlyif mysql # aggregate syntax: 
query II rowsort label-9508
SELECT - COUNT( * ), + 99 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
99

skipif mysql # not compatible
query II rowsort label-9508
SELECT - COUNT ( * ), + 99 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col1, - 31 + - col0 + + 49 col1 FROM tab1 AS cor0
----
51
-33
85
-67
91
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) * - + col1 col0 FROM tab1 WHERE NOT NULL > + col2
----

query I rowsort
SELECT - 38 * - col1 FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT COUNT( ALL + - 13 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9512
SELECT COUNT ( ALL + - 13 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT ( col1 ) + - col1 + - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND - col1
----

skipif mysql # not compatible
query I rowsort label-9513
SELECT ( col1 ) + - col1 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL - SUM( 98 ) AS col0 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - SUM ( 98 ) AS col0 FROM tab2 AS cor0
----
-294

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 AS col0 FROM tab1 cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9516
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( CAST( NULL AS SIGNED ) ) * - + col0 * col0 * - col0 * + + col0 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9516
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) * - + col0 * col0 * - col0 * + + col0 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, + col0 FROM tab0 cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - col2 * 14 AS col2 FROM tab1
----
-1344
-826
-952

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - col1 NOT BETWEEN + 35 * - 68 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT ( + MIN( DISTINCT 35 ) ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT ( + MIN ( DISTINCT 35 ) ) FROM tab2
----
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 48 AND NULL
----

query I rowsort
SELECT ALL 50 * col1 - + - col1 + + + col1 + - col2 + - col0 * + 15 AS col0 FROM tab2 AS cor0
----
1939
2301
3004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 + 45 / + + 63 AS col2 FROM tab1 AS cor0 WHERE + 71 > - - col0 * + + ( 34 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 IN ( - 36 * + col2 )
----

query I rowsort
SELECT DISTINCT + 2 * - - ( col2 ) AS col1 FROM tab0 AS cor0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 51 col1 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - 12 FROM tab0 AS cor0 WHERE ( NULL ) IN ( 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT col2 DIV + - col1 + col2 FROM tab1
----
48
67
90

skipif mysql # not compatible
query I rowsort label-9529
SELECT col2 / + - col1 + col2 FROM tab1
----
48
67
90

query I rowsort
SELECT + col0 * - col2 + - + ( + col1 ) FROM tab2
----
-1109
-2637
-4417

query I rowsort
SELECT DISTINCT - col1 * - + col2 + - + col2 FROM tab1
----
1248
236
3128

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE ( NOT + col0 IS NULL )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT ALL col2 DIV + col1 - - col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL col2 / + col1 - - col0 AS col0 FROM tab2
----
46
64
75

query II rowsort
SELECT + col0 AS col0, 6 AS col1 FROM tab1 cor0
----
51
6
85
6
91
6

query I rowsort
SELECT - col0 * - 76 * + + col2 * 56 FROM tab0 AS cor0
----
3000480
3702720
40870368

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + 42 - + COUNT( * ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 42 - + COUNT ( * ) AS col1 FROM tab2
----
39

query I rowsort
SELECT + 9 - - - col1 * - + col0 FROM tab0
----
106
1224
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT + SUM( - ( ( 51 ) ) ) * + + 70 * ( - - 8 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-257040

skipif mysql # not compatible
query I rowsort label-9538
SELECT + SUM ( - ( ( 51 ) ) ) * + + 70 * ( - - 8 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-257040

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT - - COUNT( 32 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - - COUNT ( 32 ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 75 * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + + MIN( ( 50 ) ) FROM tab2 cor0
----
50

skipif mysql # not compatible
query I rowsort label-9541
SELECT + + MIN ( ( 50 ) ) FROM tab2 cor0
----
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT + CAST( - col1 AS SIGNED ) * col2 col0 FROM tab1 cor0
----
-1344
-295
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9543
SELECT + CAST ( - col1 AS INTEGER ) * col2 col0 FROM tab1 cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - + COUNT( - + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9545
SELECT - + COUNT ( - + col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - - COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9546
SELECT - - COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL + col1 FROM tab2 WHERE NOT col1 BETWEEN - - col2 - + CAST( + 80 AS SIGNED ) + - - 25 AND col0 / + col0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + col1 FROM tab2 WHERE NOT col1 BETWEEN - - col2 - + CAST ( + 80 AS INTEGER ) + - - 25 AND col0 / + col0
----
51
67
77

query II rowsort
SELECT col0, - 74 AS col2 FROM tab2
----
46
-74
64
-74
75
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 78 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 78 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - COUNT( * ) + + - COUNT( * ) FROM tab2 WHERE NOT - col1 * + col2 * + - ( + col1 ) + col1 <= - col2
----
-6

skipif mysql # not compatible
query I rowsort label-9550
SELECT - COUNT ( * ) + + - COUNT ( * ) FROM tab2 WHERE NOT - col1 * + col2 * + - ( + col1 ) + col1 <= - col2
----
-6

query I rowsort
SELECT - - 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9552
SELECT + MAX( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0, tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 * - - col0 + 95 / + + col1 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT 59 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-9554
SELECT 59 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

query I rowsort
SELECT + 82 * + + 20 + - col2 AS col1 FROM tab0 AS cor0
----
1541
1593
1630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col0 FROM tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT - COUNT( ALL - - 81 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT - COUNT ( ALL - - 81 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + - col1 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT ALL - + 88 AS col0, COUNT( * ) * + 43 FROM tab2 AS cor0
----
-88
129

skipif mysql # not compatible
query II rowsort label-9559
SELECT ALL - + 88 AS col0, COUNT ( * ) * + 43 FROM tab2 AS cor0
----
-88
129

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 93 + col2 / - 72 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col2 * + 86, col0 FROM tab0
----
4042
15
8514
97
860
87

query I rowsort
SELECT DISTINCT col0 * + + 68 * - col2 + - + col2 FROM tab2
----
-174120
-295858
-71967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT ALL 52 * + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL 52 * + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT - + CAST( 4 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-50
-68
-79

skipif mysql # not compatible
query I rowsort label-9564
SELECT - + CAST ( 4 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-50
-68
-79

query III rowsort
SELECT - 72 + + col1 AS col2, + 36 AS col2, - - col1 FROM tab0 AS cor0
----
9 values hashing to e0bd6d9f51a4a9d2ad2dc77b137e7c76

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT DISTINCT col2 DIV + - col0 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9566
SELECT DISTINCT col2 / + - col0 col2 FROM tab2
----
0

query II rowsort
SELECT - col2 AS col0, 34 FROM tab2
----
-23
34
-40
34
-58
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( + col1, + ( - 3 ), - col2 * - 80 / + - 77 )
----

query I rowsort
SELECT col2 * - 92 FROM tab1
----
-5428
-6256
-8832

query II rowsort
SELECT + 47, - col1 AS col1 FROM tab1 cor0
----
47
-14
47
-47
47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT + CAST( - 65 AS SIGNED ) FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-9571
SELECT + CAST ( - 65 AS INTEGER ) FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 + col1 + + col2 / - + 58 * + 5 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL - - COUNT( + 91 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL - - COUNT ( + 91 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 41 * col1 FROM tab0
----
-3321
-41
-861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ( + - col2 ) * + - CAST( + 74 AS SIGNED ) AS col1 FROM tab2
----
1702
2960
4292

skipif mysql # not compatible
query I rowsort label-9575
SELECT ( + - col2 ) * + - CAST ( + 74 AS INTEGER ) AS col1 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT MAX( DISTINCT - - 44 ) FROM tab0 WHERE NOT + 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT MAX ( DISTINCT - - 44 ) FROM tab0 WHERE NOT + 43 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT MAX( + 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9577
SELECT MAX ( + 14 ) FROM tab0
----
14

query I rowsort
SELECT 49 * + 8 FROM tab2
----
392
392
392

query II rowsort
SELECT 67 * + 30 AS col2, col0 FROM tab0
----
2010
15
2010
87
2010
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT ALL - col0 DIV - ( col0 ) AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL - col0 / - ( col0 ) AS col2 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT ( ( NULL IS NULL ) ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT + 41 DIV + - 90 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9582
SELECT + 41 / + - 90 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 + + 13 * - col2 * - col1 col2 FROM tab2
----
15295
40120
50634

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9584
SELECT - col2 / + col2 * + col2 FROM tab0 WHERE ( col2 ) * + CAST( + - 71 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9584
SELECT - col2 / + col2 * + col2 FROM tab0 WHERE ( col2 ) * + CAST ( + - 71 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - col0 + - - col1 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 35 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col1, col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab0 WHERE col2 < - 37 * + + col0
----

query I rowsort
SELECT ALL + 75 * + col1 AS col1 FROM tab2
----
3825
5025
5775

query I rowsort
SELECT + col0 + - - 28 * - - 21 + + col1 AS col1 FROM tab1
----
653
678
726

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT MIN( - + col2 ) * - - 54 AS col2 FROM tab2
----
-3132

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT MIN ( - + col2 ) * - - 54 AS col2 FROM tab2
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL 49 + COUNT( * ) AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL 49 + COUNT ( * ) AS col2 FROM tab1
----
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - 36 + + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL - COUNT( * ) * - COUNT( - - col2 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL - COUNT ( * ) * - COUNT ( - - col2 ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT 67 + + + col2 FROM tab0
----
114
166
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9596
SELECT + col1 AS col2, col2 / CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE + 39 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9596
SELECT + col1 AS col2, col2 / CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE + 39 IS NULL
----

query I rowsort
SELECT ALL + col2 * + 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT - 94 + col2 FROM tab2
----
-36
-54
-71

query II rowsort
SELECT ALL + 85 * - - 61 AS col2, col2 FROM tab0
----
5185
10
5185
47
5185
99

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 92 col1 FROM tab0 cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9602
SELECT CAST( + col2 AS SIGNED ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-9602
SELECT CAST ( + col2 AS INTEGER ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT col0 * - col0, + col0 * - + col2 * - 52 AS col1 FROM tab1 AS cor0
----
-2601
254592
-7225
260780
-8281
321776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab2 AS cor0 WHERE NOT col1 + 2 BETWEEN NULL AND - col0 + + col2 * - col1
----
46
64
75

query I rowsort
SELECT DISTINCT - + col0 * col0 + col2 - + 57 * col0 FROM tab0 AS cor0
----
-1033
-12518
-14839

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT MAX( DISTINCT - - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9606
SELECT MAX ( DISTINCT - - col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT + col1 * - - col1 * col2 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9608
SELECT DISTINCT MIN( ALL + col0 ) * + 65 AS col1, + SUM( col0 ) col0 FROM tab2
----
2990
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9608
SELECT DISTINCT MIN ( ALL + col0 ) * + 65 AS col1, + SUM ( col0 ) col0 FROM tab2
----
2990
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT ALL col2 DIV 72 col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9609
SELECT ALL col2 / 72 col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9610
SELECT ALL col1 * CAST( col1 AS SIGNED ) + + col2 col2, - col2 AS col0 FROM tab0
----
100
-99
451
-10
6608
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9610
SELECT ALL col1 * CAST ( col1 AS INTEGER ) + + col2 col2, - col2 AS col0 FROM tab0
----
100
-99
451
-10
6608
-47

query I rowsort
SELECT DISTINCT + ( - 57 ) AS col2 FROM tab0
----
-57

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + + 82 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + 41 + 12 - - col0 + - col0 * - + col2 FROM tab0 WHERE ( - 63 ) IS NULL
----

query I rowsort
SELECT ALL - 73 + - - 88 * 48 + + + 72 FROM tab0
----
4223
4223
4223

query II rowsort
SELECT ALL 87 + - 16 + col2, 83 AS col0 FROM tab2
----
111
83
129
83
94
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT DISTINCT ( + SUM( + - 83 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-249

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT ( + SUM ( + - 83 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-249

query II rowsort
SELECT + col1 * + + col0 + + + col2 AS col0, - 59 * col0 FROM tab2 AS cor0
----
2369
-2714
4968
-3776
5083
-4425

onlyif mysql # aggregate syntax: 
query II rowsort label-9618
SELECT 77 AS col1, COUNT( * ) col2 FROM tab0 WHERE + + col1 IS NOT NULL
----
77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9618
SELECT 77 AS col1, COUNT ( * ) col2 FROM tab0 WHERE + + col1 IS NOT NULL
----
77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT DISTINCT - + col0 + col1 DIV + col2 AS col1 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT - + col0 + col1 / + col2 AS col1 FROM tab2 AS cor0
----
-44
-63
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT col1 DIV + ( + col2 ) + - - col0 FROM tab0 AS cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-9620
SELECT col1 / + ( + col2 ) + - - col0 FROM tab0 AS cor0
----
16
89
97

query II rowsort
SELECT DISTINCT - col1 + + col0 AS col2, - 68 + - + col1 FROM tab1 AS cor0
----
37
-82
44
-115
80
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col0 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT MAX( ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9623
SELECT MAX ( ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 - + 10 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 14 * + 25 / - col0 + + + 97 + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - 27 - + 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * - 15 * + + 10 * - + 31 col1 FROM tab1
----
1976250
19888050
3320100

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT - ( MAX( 42 ) ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - ( MAX ( 42 ) ) FROM tab2
----
-42

query I rowsort
SELECT DISTINCT - 77 FROM tab1 WHERE + 1 <> 72 * + 73
----
-77

query I rowsort
SELECT + 13 - + col2 AS col2 FROM tab1
----
-46
-55
-83

query I rowsort
SELECT DISTINCT - 46 + - - 29 FROM tab1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT COUNT( * ) + + + MAX( DISTINCT col2 ) * + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT COUNT ( * ) + + + MAX ( DISTINCT col2 ) * + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 + + 59 * + 75 >= + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL + CAST( + + col1 AS SIGNED ) * col2 * ( - col0 ) FROM tab1 cor0 WHERE + col1 <> + 30 / - col0
----
-25075
-290836
-68544

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + CAST ( + + col1 AS INTEGER ) * col2 * ( - col0 ) FROM tab1 cor0 WHERE + col1 <> + 30 / - col0
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9637
SELECT ALL + col2 * CAST( + + col2 AS SIGNED ) DIV - col0 AS col0, col1 * - col1 FROM tab1
----
-180
-196
-40
-25
-50
-2209

skipif mysql # not compatible
query II rowsort label-9637
SELECT ALL + col2 * CAST ( + + col2 AS INTEGER ) / - col0 AS col0, col1 * - col1 FROM tab1
----
-180
-196
-40
-25
-50
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT - COUNT( * ) * + 93 AS col1 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT - COUNT ( * ) * + 93 AS col1 FROM tab2
----
-279

query II rowsort
SELECT DISTINCT + col2 AS col2, 29 AS col0 FROM tab2 AS cor0
----
23
29
40
29
58
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT MAX( DISTINCT + 19 ) AS col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-9640
SELECT MAX ( DISTINCT + 19 ) AS col1 FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - SUM( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT - SUM ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 20
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col2 AS col2 FROM tab2 cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT - SUM( DISTINCT - + 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT - SUM ( DISTINCT - + 0 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9645
SELECT CAST( 87 AS SIGNED ) + COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9645
SELECT CAST ( 87 AS INTEGER ) + COUNT ( * ) FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL - COUNT( * ) + + + SUM( - col2 ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - COUNT ( * ) + + + SUM ( - col2 ) FROM tab0
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT - col1 + - col2 + col0 DIV - 75 AS col2 FROM tab0
----
-101
-128
-32

skipif mysql # not compatible
query I rowsort label-9647
SELECT - col1 + - col2 + col0 / - 75 AS col2 FROM tab0
----
-101
-128
-32

query II rowsort
SELECT ALL - col1 * - 38, col1 * + col1 AS col0 FROM tab2
----
1938
2601
2546
4489
2926
5929

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 5 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9650
SELECT ALL + col0 * + col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-9650
SELECT ALL + col0 * + col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + + 41 IS NULL
----

query I rowsort
SELECT col2 - - 81 FROM tab2 AS cor0
----
104
121
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT + - 68 + col2 FROM tab1 AS cor0
----
-9
0
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 - 94 AS col1 FROM tab0 AS cor0
----
116
3713
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT - 23 + - + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-28
-37
-70

skipif mysql # not compatible
query I rowsort label-9657
SELECT - 23 + - + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-28
-37
-70

query II rowsort
SELECT + ( 99 ), + 1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
99
1
99
1
99
1

query I rowsort
SELECT + - 20 + - + col1 AS col1 FROM tab2 AS cor0
----
-71
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9660
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - col1 AS col0, col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9660
SELECT DISTINCT - CAST ( NULL AS REAL ) - - col1 AS col0, col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT 71 * - - COUNT( * ) AS col2 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-9661
SELECT 71 * - - COUNT ( * ) AS col2 FROM tab1
----
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 96 ) col1 FROM tab0
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL - ( + CAST( - COUNT( * ) AS SIGNED ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9663
SELECT ALL - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9664
SELECT - col2 DIV - 32, + col1 AS col0 FROM tab1
----
1
5
2
47
3
14

skipif mysql # not compatible
query II rowsort label-9664
SELECT - col2 / - 32, + col1 AS col0 FROM tab1
----
1
5
2
47
3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( 60 ) AS col0 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT 16 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT + ( - MAX( ALL col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9668
SELECT + ( - MAX ( ALL col0 ) ) FROM tab2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL + 74 + ( + COUNT( * ) ) + + - 99 + - 14 / + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL + 74 + ( + COUNT ( * ) ) + + - 99 + - 14 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT ( + MIN( + 57 ) ) AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT ( + MIN ( + 57 ) ) AS col0 FROM tab2 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col1 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT DISTINCT + + 22 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) IN ( + col0, + col0, - col0 + 44 / + + 56 )
----
22

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + + 22 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) IN ( + col0, + col0, - col0 + 44 / + + 56 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT DISTINCT col2 DIV col1 + - col2 * + ( - + col1 ) DIV + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT col2 / col1 + - col2 * + ( - + col1 ) / + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
10
198
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, + col1 + 22 + - + col2 * + - col0 * - - 23 * - col2 col0 FROM tab2 AS cor0
----
-23
-559609
-40
-2355101
-58
-5802811

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9675
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col1 * + col0 AS col1, + 56 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-9675
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col1 * + col0 AS col1, + 56 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT - col0, col0 AS col2 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + COUNT( * ) + + + 41 * + COUNT( * ) * + COUNT( * ) + 53 FROM tab2, tab0 AS cor0
----
3383

skipif mysql # not compatible
query I rowsort label-9677
SELECT + COUNT ( * ) + + + 41 * + COUNT ( * ) * + COUNT ( * ) + 53 FROM tab2, tab0 AS cor0
----
3383

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 66 ) * - 75 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9679
SELECT - CAST( - - 12 AS SIGNED ) * col1 * 13 AS col2, col0 FROM tab0
----
-12636
15
-156
97
-3276
87

skipif mysql # not compatible
query II rowsort label-9679
SELECT - CAST ( - - 12 AS INTEGER ) * col1 * 13 AS col2, col0 FROM tab0
----
-12636
15
-156
97
-3276
87

query II rowsort
SELECT DISTINCT - 78 * col1 * + + col0 + + - col0, col1 AS col2 FROM tab2
----
-183034
51
-384448
77
-392025
67

query III rowsort
SELECT * FROM tab2 WHERE col2 = 41 / 34
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 88 - - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - - col2 ) BETWEEN col0 AND ( - col2 + - + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT - COUNT( * ) + - MAX( ALL + col0 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT - COUNT ( * ) + - MAX ( ALL + col0 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 - - 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + 99 NOT BETWEEN - col1 AND + 58 * + 25
----

query I rowsort
SELECT ALL - + ( - - col0 ) * - col0 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - - 45
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 / - ( ( + col1 ) ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 11 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( - - ( col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + - ( + ( - 84 ) ) FROM tab0
----
105
165
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9693
SELECT ALL col2 / + CAST( NULL AS DECIMAL ) + + col1 + + + 92 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL col2 / + CAST ( NULL AS REAL ) + + col1 + + + 92 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 33 + - - col2 + - + col0 + col2 FROM tab2
----
33
49
74

query II rowsort
SELECT DISTINCT 22 * ( + - ( + - col2 ) ) - + 83 + - 58 + col0, 4 + + - 62 + col0 AS col1 FROM tab2 AS cor0
----
1210
17
411
-12
803
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT - MIN( col2 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-9696
SELECT - MIN ( col2 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-59
3

query I rowsort
SELECT + 34 * - 67 AS col1 FROM tab0 AS cor0
----
-2278
-2278
-2278

query I rowsort
SELECT DISTINCT - col1 - 66 - + 48 FROM tab2 AS cor0
----
-165
-181
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - SUM( DISTINCT 78 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9699
SELECT - SUM ( DISTINCT 78 ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - 21 + - col0 AS col1 FROM tab0 AS cor0
----
-108
-118
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <= - 68 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + 0 * col1 + - - col0 AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - 67 - + ( - 9 ) FROM tab1 AS cor0
----
-58

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL <> col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= + - 56
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9706
SELECT ALL MAX( col1 ) * - COUNT( * ) col2, 54 + - 56 AS col1 FROM tab0
----
-243
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9706
SELECT ALL MAX ( col1 ) * - COUNT ( * ) col2, 54 + - 56 AS col1 FROM tab0
----
-243
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL - MAX( - 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL - MAX ( - 90 ) FROM tab0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9708
SELECT * FROM tab1 WHERE NOT - - col2 * + + col0 * - 90 - + CAST( NULL AS SIGNED ) * + col0 - - + 50 + CAST( NULL AS SIGNED ) + + 39 <> - col0
----

skipif mysql # not compatible
query III rowsort label-9708
SELECT * FROM tab1 WHERE NOT - - col2 * + + col0 * - 90 - + CAST ( NULL AS INTEGER ) * + col0 - - + 50 + CAST ( NULL AS INTEGER ) + + 39 <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col2 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9710
SELECT ALL + MAX( ALL - col2 ) DIV - + COUNT( * ) AS col0, SUM( + + col1 ) FROM tab1
----
19
66

skipif mysql # not compatible
query II rowsort label-9710
SELECT ALL + MAX ( ALL - col2 ) / - + COUNT ( * ) AS col0, SUM ( + + col1 ) FROM tab1
----
19
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9711
SELECT ALL - 48 AS col0, + CAST( - + col0 AS SIGNED ) FROM tab1
----
-48
-51
-48
-85
-48
-91

skipif mysql # not compatible
query II rowsort label-9711
SELECT ALL - 48 AS col0, + CAST ( - + col0 AS INTEGER ) FROM tab1
----
-48
-51
-48
-85
-48
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT - COUNT( * ) AS col0, COUNT( + + col0 ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9712
SELECT - COUNT ( * ) AS col0, COUNT ( + + col0 ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - ( COUNT( - col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9714
SELECT - ( COUNT ( - col0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL ( - 78 ) FROM tab1 AS cor0 WHERE 21 + - col1 IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT DISTINCT 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
67

query I rowsort
SELECT ALL 70 * col0 AS col1 FROM tab0
----
1050
6090
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT - SUM( - + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - SUM ( - + col1 ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 - 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE + col2 + - - col0 <> - - col0
----
51
85
91

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + col0 >= - + col0 / col2 AND NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9722
SELECT ALL - CAST( - + 63 AS SIGNED ) + 97, ( col2 ) AS col0 FROM tab0
----
160
10
160
47
160
99

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL - CAST ( - + 63 AS INTEGER ) + 97, ( col2 ) AS col0 FROM tab0
----
160
10
160
47
160
99

query I rowsort
SELECT - col1 + - 48 FROM tab0
----
-129
-49
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 > - 49 + 72
----
15
81
47
97
1
99

query I rowsort
SELECT col0 + - 26 FROM tab1
----
25
59
65

query I rowsort
SELECT ALL 57 + - col2 FROM tab0
----
-42
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT COUNT( * ) + - 31 + - 8 AS col1 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9727
SELECT COUNT ( * ) + - 31 + - 8 AS col1 FROM tab2
----
-36

query I rowsort
SELECT + + ( - col1 ) * + col0 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT DISTINCT - 13 * + - MAX( DISTINCT - col1 ) FROM tab2
----
-663

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - 13 * + - MAX ( DISTINCT - col1 ) FROM tab2
----
-663

query I rowsort
SELECT ALL + col2 - + col2 - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT + - ( + - MAX( DISTINCT + - 15 ) ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9731
SELECT + - ( + - MAX ( DISTINCT + - 15 ) ) FROM tab2 cor0
----
-15

query I rowsort
SELECT 0 FROM tab2 WHERE NOT NULL IN ( 63 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9733
SELECT ALL 64 DIV - 99, col1 FROM tab0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-9733
SELECT ALL 64 / - 99, col1 FROM tab0
----
0
1
0
21
0
81

query II rowsort
SELECT DISTINCT - col1 * - col1 AS col0, - 45 AS col0 FROM tab0
----
1
-45
441
-45
6561
-45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 57 <= - 25 + + ( col0 ) + + - col0 * + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 71 * - 27 AS col1, + col2 * + col2 FROM tab0
----
-1917
100
-1917
2209
-1917
9801

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( col2 ) > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT DISTINCT COUNT( * ) AS col0, 67 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0
67

skipif mysql # not compatible
query II rowsort label-9738
SELECT DISTINCT COUNT ( * ) AS col0, 67 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * + 37 * - - 26 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9740
SELECT * FROM tab0 WHERE NOT - CAST( + col2 AS DECIMAL ) / + 13 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9740
SELECT * FROM tab0 WHERE NOT - CAST ( + col2 AS REAL ) / + 13 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL < 66
----

query I rowsort
SELECT - 65 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + 67 + + 93 AS col2 FROM tab2 AS cor0
----
3510
4582
5252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 26 * - 4 AS col2 FROM tab1 AS cor0
----
-104
-104
-104

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col1 AND + + col1
----

query II rowsort
SELECT ALL + col2 + col0 AS col0, + col1 FROM tab2
----
104
77
133
67
69
51

query I rowsort
SELECT DISTINCT + col2 * - ( - + 85 ) * - col2 - 55 AS col0 FROM tab2
----
-136055
-285995
-45020

query I rowsort
SELECT + 44 - - ( + + 88 ) AS col0 FROM tab2 AS cor0
----
132
132
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT ALL col1 + col0 - + CAST( NULL AS SIGNED ) + + 55 / + 18 + + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL col1 + col0 - + CAST ( NULL AS INTEGER ) + + 55 / + 18 + + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9751
SELECT DISTINCT + 16 * - MAX( - + col1 ) - + + CAST( NULL AS SIGNED ), COUNT( - 18 ) * COUNT( * ) col1 FROM tab0 AS cor0
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9751
SELECT DISTINCT + 16 * - MAX ( - + col1 ) - + + CAST ( NULL AS INTEGER ), COUNT ( - 18 ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL
9

query I rowsort
SELECT DISTINCT 73 + 75 AS col0 FROM tab1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN col2 + col0 * - col1 * + 15 * - + col2 AND + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT col0 DIV + col1 - + col2 * + - col1 * 52 * col2 FROM tab2 AS cor0
----
11720177
1402908
6406400

skipif mysql # not compatible
query I rowsort label-9755
SELECT col0 / + col1 - + col2 * + - col1 * 52 * col2 FROM tab2 AS cor0
----
11720177
1402908
6406400

query I rowsort
SELECT DISTINCT - - col1 * col1 * - + 30 FROM tab0 AS cor0
----
-13230
-196830
-30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col2 - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 53 FROM tab0 cor0
----
1113
4293
53

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col2 ) - - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL col1 * - CAST( - 38 AS SIGNED ) FROM tab2
----
1938
2546
2926

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL col1 * - CAST ( - 38 AS INTEGER ) FROM tab2
----
1938
2546
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22, col1 col1 FROM tab2
----
22
51
22
67
22
77

query I rowsort
SELECT + col0 * - ( 51 ) FROM tab0
----
-4437
-4947
-765

query I rowsort
SELECT ALL 46 * col0 FROM tab1
----
2346
3910
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + - 61 * + 92 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
16836

skipif mysql # not compatible
query I rowsort label-9764
SELECT + - 61 * + 92 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
16836

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT DISTINCT + 42 * + SUM( + col1 ) FROM tab0 AS cor0
----
4326

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT + 42 * + SUM ( + col1 ) FROM tab0 AS cor0
----
4326

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 33 * - + col1 >= - - 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 34 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - ( - col0 ), col0 * + col2 AS col1 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT - COUNT( * ) * + + MAX( ALL + col0 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT - COUNT ( * ) * + + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT DISTINCT + ( + ( col2 ) ) DIV + 61 + + col2 + + + col0 AS col0 FROM tab1 AS cor0
----
144
148
160

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + ( + ( col2 ) ) / + 61 + + col2 + + + col0 AS col0 FROM tab1 AS cor0
----
144
148
160

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT + 86 = NULL
----

query II rowsort
SELECT ALL ( col2 ), + col0 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT + MIN( + - ( - ( col1 ) ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + MIN ( + - ( - ( col1 ) ) ) AS col0 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT + col1 * - ( - col2 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT + col1 * - ( - col2 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT - ( + MAX( + col0 ) ) + + + 15 + 2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - ( + MAX ( + col0 ) ) + + + 15 + 2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT COUNT( * ) + - COUNT( * ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9776
SELECT COUNT ( * ) + - COUNT ( * ) col0 FROM tab1
----
0

query I rowsort
SELECT ALL + col1 + + 21 AS col0 FROM tab2
----
72
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL + + MIN( + 85 ) FROM tab0 WHERE NULL < - col1 * 46 + + - col1 * 69 * col2 * - - col1 / col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + + MIN ( + 85 ) FROM tab0 WHERE NULL < - col1 * 46 + + - col1 * 69 * col2 * - - col1 / col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT + + 94 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT + + 94 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - + - col1 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + 3 - - + 2 AS col1 FROM tab0 cor0
----
5
5
5

query I rowsort
SELECT ALL + col1 + 17 * - 46 FROM tab2
----
-705
-715
-731

query I rowsort
SELECT col1 * + ( - 16 ) FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT + 90 DIV 10 FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9785
SELECT + 90 / 10 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9786
SELECT + COUNT( * ) DIV + 93 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT + COUNT ( * ) / + 93 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL col0 + + ( + col1 ) * - col1 FROM tab2
----
-2555
-4414
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT DISTINCT - 37 * + col1 FROM tab1 WHERE ( - 31 ) NOT IN ( - CAST( NULL AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - 37 * + col1 FROM tab1 WHERE ( - 31 ) NOT IN ( - CAST ( NULL AS INTEGER ) + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL - SUM( + 97 ) AS col2 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - SUM ( + 97 ) AS col2 FROM tab1
----
-291

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 17 + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 66 * col2 + + col2 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT NULL < 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT - MAX( - 7 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9794
SELECT - MAX ( - 7 ) FROM tab2
----
7

query I rowsort
SELECT - 31 FROM tab2 WHERE NOT - 74 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT - 94 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9796
SELECT - ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT - 94 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9797
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( + CAST( NULL AS SIGNED ) + 64 )
----

skipif mysql # not compatible
query III rowsort label-9797
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( + CAST ( NULL AS INTEGER ) + 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT MAX( - 11 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9798
SELECT MAX ( - 11 ) FROM tab2
----
-11

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 - - 28 ) = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + 98 * - col1 BETWEEN - 92 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + col0 / - col1 NOT IN ( - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT COUNT( ALL - col2 ) AS col1 FROM tab1 WHERE NOT - 85 + 41 * 51 NOT BETWEEN NULL AND + 49
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT COUNT ( ALL - col2 ) AS col1 FROM tab1 WHERE NOT - 85 + 41 * 51 NOT BETWEEN NULL AND + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL + 40 - - COUNT( * ) FROM tab1 WHERE - col2 * - col2 - + 61 <> + ( ( - 75 ) )
----
43

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + 40 - - COUNT ( * ) FROM tab1 WHERE - col2 * - col2 - + 61 <> + ( ( - 75 ) )
----
43

query I rowsort
SELECT DISTINCT 1 * + col2 + col1 * - col0 AS col1 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT - col2 FROM tab1 WHERE ( col1 * - 97 ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - col2 < col2 + - CAST( - col0 AS SIGNED ) * col2
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - col2 < col2 + - CAST ( - col0 AS INTEGER ) * col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT MIN( ALL ( - col2 ) ) FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT MIN ( ALL ( - col2 ) ) FROM tab0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 71 + + 80 FROM tab0 AS cor0
----
151

query I rowsort
SELECT ALL - col1 * - 25 AS col1 FROM tab2 cor0
----
1275
1675
1925

query I rowsort
SELECT ALL 2 * + col2 AS col0 FROM tab1 cor0
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT + 76 DIV col0 col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9811
SELECT + 76 / col0 col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT - col1 * - col2 FROM tab2 WHERE - ( 95 ) IN ( col2 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT ALL CAST( + 40 AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL CAST ( + 40 AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT col1 + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9814
SELECT col1 + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL 7 * col0 + + 10 AS col2 FROM tab1 AS cor0
----
367
605
647

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL - COUNT( * ) + 55 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - COUNT ( * ) + 55 FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9817
SELECT * FROM tab1 cor0 WHERE - col0 - - 41 IN ( ( col2 ) * + col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9817
SELECT * FROM tab1 cor0 WHERE - col0 - - 41 IN ( ( col2 ) * + col2 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 + + 66 FROM tab0 AS cor0
----
147
67
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9819
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) <= + col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9819
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) <= + col2 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT SUM( 50 ) col2 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT SUM ( 50 ) col2 FROM tab2 AS cor0
----
150

query I rowsort
SELECT - 44 FROM tab0 AS cor0 WHERE - 60 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - + 71 * 21 FROM tab1 AS cor0
----
-1491
-1491
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT DISTINCT COUNT( * ) - - 21 AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT COUNT ( * ) - - 21 AS col1 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - SUM( DISTINCT col1 ) * + 20 FROM tab0 AS cor0
----
-2060

skipif mysql # not compatible
query I rowsort label-9825
SELECT - SUM ( DISTINCT col1 ) * + 20 FROM tab0 AS cor0
----
-2060

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + MAX( DISTINCT + 24 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + MAX ( DISTINCT + 24 ) FROM tab2
----
24

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT col1 BETWEEN 0 AND col2
----
46
64
75

query I rowsort
SELECT ALL + 13 + 13 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
26
26
26

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + ( - ( col2 ) ) ) ) NOT BETWEEN 97 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT - 62 - + col1 * ( col2 + col0 * + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT - 62 - + col1 * ( col2 + col0 * + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 46 + + 92 * - 32 NOT BETWEEN ( NULL ) AND ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN col1 + - 28 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT COUNT( * ) col0 FROM tab0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9833
SELECT COUNT ( * ) col0 FROM tab0 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL COUNT( * ) FROM tab2 WHERE - col2 * - 96 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL COUNT ( * ) FROM tab2 WHERE - col2 * - 96 + - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT - 47 + - + col2 + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9835
SELECT - 47 + - + col2 + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 68 * col2 FROM tab1 WHERE NULL BETWEEN - 51 + - col1 AND NULL
----

query I rowsort
SELECT ALL + col0 - 98 FROM tab1 AS cor0
----
-13
-47
-7

query I rowsort
SELECT - col0 + + col0 + 16 AS col0 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT 4 FROM tab1 cor0 WHERE col0 * ( col1 ) IS NOT NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL MIN( DISTINCT 97 ) - + 11 AS col0 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL MIN ( DISTINCT 97 ) - + 11 AS col0 FROM tab0 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT + col2 DIV + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9841
SELECT + col2 / + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT DISTINCT - CAST( - - 5 AS SIGNED ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT - CAST ( - - 5 AS INTEGER ) FROM tab2 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 64 / col0 ) >= col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9844
SELECT 68 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
68
68
68

skipif mysql # not compatible
query I rowsort label-9844
SELECT 68 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 + CAST ( NULL AS REAL ) ) IS NOT NULL
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT col2 + - col0 / - CAST( 41 + - 40 * - 80 AS SIGNED ) FROM tab1 WHERE NOT ( NOT ( + col0 * + ( + col2 ) ) <= ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-9845
SELECT col2 + - col0 / - CAST ( 41 + - 40 * - 80 AS INTEGER ) FROM tab1 WHERE NOT ( NOT ( + col0 * + ( + col2 ) ) <= ( col1 ) )
----

query I rowsort
SELECT + col0 * - 96 AS col2 FROM tab0
----
-1440
-8352
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL COUNT( ALL + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL COUNT ( ALL + + col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT ALL COUNT( * ) AS col2, 21 AS col0 FROM tab0 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-9848
SELECT ALL COUNT ( * ) AS col2, 21 AS col0 FROM tab0 AS cor0
----
3
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + - ( - MAX( + 35 ) ) col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9849
SELECT + - ( - MAX ( + 35 ) ) col1 FROM tab2 AS cor0
----
35

query II rowsort
SELECT DISTINCT col1, col1 AS col2 FROM tab2 cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL + 64, col2 AS col0 FROM tab0 AS cor0
----
64
10
64
47
64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL - COUNT( ALL 71 ) * - 68 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - COUNT ( ALL 71 ) * - 68 FROM tab1 AS cor0
----
204

query I rowsort
SELECT ALL - 6 * 64 AS col0 FROM tab0 AS cor0 WHERE ( - 55 + - + ( col0 ) + + 18 ) < NULL
----

query I rowsort
SELECT - 75 FROM tab2 cor0 WHERE NOT ( 42 ) IS NULL
----
-75
-75
-75

query II rowsort
SELECT DISTINCT 72, + col0 FROM tab2 AS cor0
----
72
46
72
64
72
75

query II rowsort
SELECT - ( - col0 ) AS col2, col1 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - + 95
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 = NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 * + + col0 FROM tab1
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - 16 col0 FROM tab0
----
209
7553
9393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 99 col0 FROM tab1
----
150
184
190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9862
SELECT DISTINCT * FROM tab1 WHERE NOT - - 73 - - + 46 - CAST( NULL AS SIGNED ) * - col0 / col2 BETWEEN ( NULL ) AND 18 * col2
----

skipif mysql # not compatible
query III rowsort label-9862
SELECT DISTINCT * FROM tab1 WHERE NOT - - 73 - - + 46 - CAST ( NULL AS INTEGER ) * - col0 / col2 BETWEEN ( NULL ) AND 18 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - 54 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9864
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN ( NULL ) AND ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9864
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN ( NULL ) AND ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND + 91 )
----

query I rowsort
SELECT col0 * + 75 FROM tab2 AS cor0
----
3450
4800
5625

query I rowsort
SELECT 84 FROM tab2 WHERE NOT ( NOT - 32 IS NULL ) OR + 80 >= + col0
----
84
84
84

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT DISTINCT col1 DIV - 72 + + 63 AS col0 FROM tab2
----
62
63

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT col1 / - 72 + + 63 AS col0 FROM tab2
----
62
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 98 col2 FROM tab0 AS cor0
----
-17
-77
-97

query I rowsort
SELECT ALL - col2 - col1 + - col0 + - + 32 * - col2 + - col2 * - 36 FROM tab1 AS cor0
----
3863
4418
6367

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - 67 ) AND NULL = col0
----

query II rowsort
SELECT ALL - 92, + col2 AS col2 FROM tab2 AS cor0
----
-92
23
-92
40
-92
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT 2 * 87 - + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT 2 * 87 - + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT - + MIN( - - 80 ) AS col0 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - + MIN ( - - 80 ) AS col0 FROM tab1 AS cor0
----
-80

query II rowsort
SELECT DISTINCT col2, 38 AS col0 FROM tab1 AS cor0
----
59
38
68
38
96
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT + col1 + 92 - + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT + col1 + 92 - + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + 4 * - MIN( DISTINCT - 49 ) * - MAX( DISTINCT + - 85 ) FROM tab0
----
16660

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + 4 * - MIN ( DISTINCT - 49 ) * - MAX ( DISTINCT + - 85 ) FROM tab0
----
16660

query I rowsort
SELECT ALL 71 * - col0 FROM tab2
----
-3266
-4544
-5325

query I rowsort
SELECT col2 FROM tab1 WHERE ( NOT NULL BETWEEN col2 * + ( + 50 ) / + col0 + 37 AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 96 + - col0 < - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 96 + - col0 < - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9882
SELECT col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT + col0 DIV - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 DIV col0 * + col2 ) IS NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9883
SELECT + col0 / - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 / col0 * + col2 ) IS NULL
----
-1
-17
-3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 + + col0 ) IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE + 88 * + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 * + 74 * + ( 88 ) FROM tab1 cor0
----
-332112
-553520
-592592

query I rowsort
SELECT col1 * + col1 * - 64 FROM tab2 cor0
----
-166464
-287296
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + SUM( - ( + 51 ) ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9888
SELECT + SUM ( - ( + 51 ) ) AS col2 FROM tab2 AS cor0
----
-153

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( - - 21 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 62 + + 94 AS col0 FROM tab1
----
156

query III rowsort
SELECT * FROM tab0 WHERE - col0 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9892
SELECT ALL + col0 DIV + col2 + - 75 AS col1, col0 AS col2 FROM tab2
----
-73
46
-74
64
-74
75

skipif mysql # not compatible
query II rowsort label-9892
SELECT ALL + col0 / + col2 + - 75 AS col1, col0 AS col2 FROM tab2
----
-73
46
-74
64
-74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL COUNT( * ) + COUNT( * ) * - ( - 7 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL COUNT ( * ) + COUNT ( * ) * - ( - 7 ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT DISTINCT - 8 * - ( + 47 ) FROM tab1 AS cor0
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - COUNT( * ) + + + 38 + + 96 AS col2 FROM tab1 WHERE ( NOT col0 + + + col0 IS NULL )
----
131

skipif mysql # not compatible
query I rowsort label-9895
SELECT - COUNT ( * ) + + + 38 + + 96 AS col2 FROM tab1 WHERE ( NOT col0 + + + col0 IS NULL )
----
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT DISTINCT CAST( + - 35 AS SIGNED ) + - 70 col2 FROM tab0
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9897
SELECT DISTINCT CAST ( + - 35 AS INTEGER ) + - 70 col2 FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9898
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT - col1 - + col2 * - + ( col0 ) * 9 AS col1 FROM tab2 AS cor0
----
22963
39083
9471

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL MIN( ALL + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL MIN ( ALL + + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL + - col0 + + col1 + 17 * 74 AS col2 FROM tab2 cor0
----
1250
1263
1271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - 94 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - 94 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + - ( + - MAX( 55 ) ) col2 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9903
SELECT + - ( + - MAX ( 55 ) ) col2 FROM tab1 AS cor0
----
55

query I rowsort
SELECT - 89 - - - col0 FROM tab1 cor0
----
-140
-174
-180

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 98 / col2 = NULL
----

query I rowsort
SELECT DISTINCT col0 * - 72 AS col2 FROM tab2 AS cor0
----
-3312
-4608
-5400

query I rowsort
SELECT col2 - ( - col1 ) - + col0 FROM tab2
----
28
50
53

query I rowsort
SELECT ALL - col2 - + - col1 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL 69 * + 14 FROM tab1
----
966
966
966

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9910
SELECT * FROM tab2 WHERE - - 21 > ( + col2 + - ( CAST( - 12 AS SIGNED ) ) + - + 14 * + 75 * + - col1 )
----

skipif mysql # not compatible
query III rowsort label-9910
SELECT * FROM tab2 WHERE - - 21 > ( + col2 + - ( CAST ( - 12 AS INTEGER ) ) + - + 14 * + 75 * + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9911
SELECT ALL 36 DIV col1 * + + col1 * + - col2 FROM tab1
----
-2065
-2688
0

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL 36 / col1 * + + col1 * + - col2 FROM tab1
----
-2065
-2688
0

query II rowsort
SELECT ALL col1, 88 AS col0 FROM tab2
----
51
88
67
88
77
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT COUNT( * ) * COUNT( * ) * - ( - + ( - - 82 ) ) FROM tab2
----
738

skipif mysql # not compatible
query I rowsort label-9913
SELECT COUNT ( * ) * COUNT ( * ) * - ( - + ( - - 82 ) ) FROM tab2
----
738

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9914
SELECT col1 / + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT col1 / + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + SUM( ALL + 36 ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( + + col0 ) BETWEEN - + col1 + col0 * + col2 / + col2 AND - + col0
----
108

skipif mysql # not compatible
query I rowsort label-9915
SELECT + SUM ( ALL + 36 ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( + + col0 ) BETWEEN - + col1 + col0 * + col2 / + col2 AND - + col0
----
108

query I rowsort
SELECT DISTINCT + col1 * - - 92 AS col1 FROM tab0 AS cor0
----
1932
7452
92

query I rowsort
SELECT DISTINCT 73 * - ( - + col2 ) * col0 * + col2 FROM tab2
----
1776382
18417900
7475200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT DISTINCT - 65 DIV COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - 65 / COUNT ( * ) FROM tab1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT - - CAST( NULL AS SIGNED ) * + AVG ( ALL + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT - - CAST ( NULL AS INTEGER ) * + AVG ( ALL + col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT - + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT - + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col2 * + + col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT COUNT( + - 12 ) + - 35 AS col1 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9922
SELECT COUNT ( + - 12 ) + - 35 AS col1 FROM tab2
----
-32

query I rowsort
SELECT + col0 * + + col1 FROM tab0 WHERE - - col2 IN ( - 5 + + ( - 7 ), - 66, + col1 )
----

query I rowsort
SELECT + col0 + + - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1 WHERE ( NULL ) IN ( - col0 )
----

query I rowsort
SELECT ALL - col1 + + - 68 * + col2 FROM tab1
----
-4017
-4671
-6542

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + 21 * ( - COUNT( * ) ) + COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9927
SELECT + 21 * ( - COUNT ( * ) ) + COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 * 72 / - 21 * - - 4 + - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 * 72 / - 21 * - - 4 + - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col2 * - 18 + + 30 FROM tab2 AS cor0
----
-21084
-55410
-69918

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - + MAX( + - 24 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-9930
SELECT - + MAX ( + - 24 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 64 col1, - col1 * + 13 AS col2 FROM tab0
----
64
-1053
64
-13
64
-273

onlyif mysql # DIV for integer division: 
query II rowsort label-9932
SELECT + col1 DIV + - col0 + + col1 AS col0, + col0 * - + col2 FROM tab0
----
1
-9603
21
-870
76
-705

skipif mysql # not compatible
query II rowsort label-9932
SELECT + col1 / + - col0 + + col1 AS col0, + col0 * - + col2 FROM tab0
----
1
-9603
21
-870
76
-705

query I rowsort
SELECT - - col2 + - 69 - + - col0 FROM tab0 AS cor0
----
-7
127
28

query I rowsort
SELECT + 49 + + col0 - - col2 FROM tab0 AS cor0
----
111
146
245

query I rowsort
SELECT DISTINCT + 55 - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-44
45
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT - + col2 + + col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9936
SELECT - + col2 + + col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT CAST( NULL AS SIGNED ) * - 76 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT CAST ( NULL AS INTEGER ) * - 76 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + ( - 15 ) AS col1 FROM tab0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL MIN( - ( - col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL MIN ( - ( - col1 ) ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT COUNT( 32 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT COUNT ( 32 ) FROM tab0
----
3

query I rowsort
SELECT ALL + - ( + 55 ) + - col0 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-101
-119
-130

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 57 = 30 * + 13 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( 49, col1, - - 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT ALL col0 DIV + col0 + + col1 DIV + + col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-13
-85
-95

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL col0 / + col0 + + col1 / + + col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-13
-85
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 55 <> 51 * + col1 + + + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT - MAX( + 8 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - MAX ( + 8 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT COUNT( * ) * + COUNT( col0 ) * 6 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT COUNT ( * ) * + COUNT ( col0 ) * 6 FROM tab1
----
54

query I rowsort
SELECT - ( + 82 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + ( + 55 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + ( + 55 ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL - MAX( ALL + col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - MAX ( ALL + col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9951
SELECT ALL ( + - COUNT( - 31 ) ) DIV + + ( - 41 ) * 95 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL ( + - COUNT ( - 31 ) ) / + + ( - 41 ) * 95 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 6 * col0 AS col1 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT col2 DIV - 78 * + col2 col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9953
SELECT col2 / - 78 * + col2 col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9954
SELECT ALL + CAST( 7 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + CAST ( 7 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL SUM( ALL + - 63 ) col2 FROM tab2
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9955
SELECT ALL SUM ( ALL + - 63 ) col2 FROM tab2
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT ALL + col2 DIV - ( + col1 ) AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + col2 / - ( + col1 ) AS col1 FROM tab1
----
-1
-11
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN + 46 AND NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 58 AS col1, col0 AS col0 FROM tab2
----
58
46
58
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9960
SELECT ALL - 82 * col1, col1 + - col2 + col1 col1 FROM tab2 WHERE + + CAST( + col1 AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9960
SELECT ALL - 82 * col1, col1 + - col2 + col1 col1 FROM tab2 WHERE + + CAST ( + col1 AS INTEGER ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT + 31 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT + 31 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT CAST( ( ( - col1 ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9962
SELECT CAST ( ( ( - col1 ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - 9 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT ALL col0 * + col0 + - - ( + ( + 64 ) ) DIV - + col1 - - col0 * + col1 FROM tab2 AS cor0
----
10650
4461
9024

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL col0 * + col0 + - - ( + ( + 64 ) ) / - + col1 - - col0 * + col1 FROM tab2 AS cor0
----
10650
4461
9024

query I rowsort
SELECT + - ( 83 ) + - col0 FROM tab0 AS cor0
----
-170
-180
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * + col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL COUNT( DISTINCT - + 56 ) + + 15 * - + 26 FROM tab2
----
-389

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL COUNT ( DISTINCT - + 56 ) + + 15 * - + 26 FROM tab2
----
-389

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT DISTINCT - MIN( - 1 ) + COUNT( * ), - MIN( + col0 ) AS col0 FROM tab1
----
4
-51

skipif mysql # not compatible
query II rowsort label-9969
SELECT DISTINCT - MIN ( - 1 ) + COUNT ( * ), - MIN ( + col0 ) AS col0 FROM tab1
----
4
-51

query III rowsort
SELECT * FROM tab1 WHERE + 55 = NULL
----

query I rowsort
SELECT DISTINCT + - 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-33

query I rowsort
SELECT ALL col2 + + col2 * + + 31 - + col0 FROM tab2 AS cor0
----
1216
1781
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9973
SELECT ALL COUNT( DISTINCT + + 12 ) DIV - - 20 - + COUNT( * ) * 17 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL COUNT ( DISTINCT + + 12 ) / - - 20 - + COUNT ( * ) * 17 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 - - + col0 * + 12 + - 86 + + 35 * 60 col0 FROM tab2 AS cor0
----
2621
2837
2969

query I rowsort
SELECT - + 92 - col1 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
1042
1714
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9976
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) + + col0 + - col0 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9976
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) + + col0 + - col0 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - 21 * - col2
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE 67 + - 6 <> ( NULL )
----

query I rowsort
SELECT ALL + ( 58 ) AS col1 FROM tab1
----
58
58
58

query I rowsort
SELECT ( 3 ) * 79 AS col0 FROM tab1
----
237
237
237

query I rowsort
SELECT DISTINCT - - 90 AS col1 FROM tab1 WHERE NOT - col0 * 52 IS NULL
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL - MIN( DISTINCT - col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9983
SELECT ALL - MIN ( DISTINCT - col1 ) col0 FROM tab1
----
47

query I rowsort
SELECT ( + + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * - col2 IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT col1, + 43 FROM tab0 AS cor0
----
1
43
21
43
81
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col1 ) BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT col1 IN ( + 5, 58 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9989
SELECT * FROM tab1 AS cor0 WHERE CAST( + col1 AS SIGNED ) * - 49 NOT IN ( - - CAST( NULL AS DECIMAL ) * col1, col2 - + 22, - - 21 )
----

skipif mysql # not compatible
query III rowsort label-9989
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col1 AS INTEGER ) * - 49 NOT IN ( - - CAST ( NULL AS REAL ) * col1, col2 - + 22, - - 21 )
----

query I rowsort
SELECT DISTINCT col1 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9991
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 71 NOT IN ( CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9991
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 71 NOT IN ( CAST ( col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT - 53 + - COUNT( * ) AS col0 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - 53 + - COUNT ( * ) AS col0 FROM tab0
----
-56

query II rowsort
SELECT DISTINCT - 24 AS col1, + 29 AS col2 FROM tab0
----
-24
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT ALL col2 * - CAST( - col2 AS SIGNED ) * 84 + + + col0 AS col2 FROM tab2 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL col2 * - CAST ( - col2 AS INTEGER ) * 84 + + + col0 AS col2 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + 60 + 31 FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT 54 * + 71 + + COUNT( * ) AS col2 FROM tab2
----
3837

skipif mysql # not compatible
query I rowsort label-9996
SELECT 54 * + 71 + + COUNT ( * ) AS col2 FROM tab2
----
3837

query I rowsort
SELECT col1 + - - col0 * - - col1 * + - 25 FROM tab1
----
-10620
-106878
-17836

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( - col1, - col0, col1, + col2 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9999
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( - col1, - col0, col1, + col2 * + col1 )
----
0

