sqllogictest
Artifact Content
Not logged in

Artifact 8db95b301ce82e183d1c86ba6cbfb765a23acb43:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - + 47 >= NULL
----

query I rowsort
SELECT + col0 + - - col2 * + col2 FROM tab1 cor0 WHERE + col2 + 84 IS NOT NULL
----
3566
4715
9267

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

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

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT - ( + - COUNT ( * ) ) + + CAST ( 53 AS INTEGER ) FROM tab2 AS cor0
----
56

query I rowsort
SELECT + col0 - col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col1 - 46 FROM tab1 AS cor0
----
-51
-60
-93

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = - 88
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = col1 AND NOT 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT - COUNT( DISTINCT + col0 ) - + + SUM( DISTINCT - ( - 11 ) ) + 32 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-10
SELECT - COUNT ( DISTINCT + col0 ) - + + SUM ( DISTINCT - ( - 11 ) ) + 32 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col2 + - - 40 AS col0 FROM tab0
----
-59
-7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL MAX( - col2 ) AS col0 FROM tab0 WHERE - - col1 * - + col2 IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL MAX ( - col2 ) AS col0 FROM tab0 WHERE - - col1 * - + col2 IS NOT NULL
----
-10

query I rowsort
SELECT + 51 - + col0 + + col2 FROM tab1
----
25
28
96

query I rowsort
SELECT + ( col2 ) - + - col1 + col1 - col2 * - + col2 + - 14 FROM tab2
----
1780
3542
640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE - + ( - col2 ) NOT BETWEEN NULL AND ( ( col0 ) )
----
51

query II rowsort
SELECT ALL col0, - 52 * col0 AS col0 FROM tab0
----
15
-780
87
-4524
97
-5044

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-17
SELECT ALL col1, + ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-17
SELECT ALL col1, + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT - 40 AS col0, ( - - col1 ) FROM tab0 AS cor0
----
-40
1
-40
21
-40
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-20
SELECT DISTINCT COUNT( * ) DIV 63 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 <= ( col1 + 25 * - col0 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT COUNT ( * ) / 63 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 <= ( col1 + 25 * - col0 + + col0 )
----
0

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

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

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

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

query I rowsort
SELECT + ( + col1 ) * col0 + - - 43 * col0 FROM tab2 AS cor0
----
4324
7680
8250

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

query I rowsort
SELECT + col1 FROM tab0 WHERE ( - 44 ) BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL col1, + col1 FROM tab0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + 61 + ( - col1 ) FROM tab2
----
-16
-6
10

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-30
SELECT - MIN( DISTINCT + col2 ) + 15 col0, COUNT( * ) AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-30
SELECT - MIN ( DISTINCT + col2 ) + 15 col0, COUNT ( * ) AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT - CAST( + col2 AS SIGNED ) * + 58 + - + col0 FROM tab1
----
-3507
-4035
-5619

skipif mysql # not compatible
query I rowsort label-32
SELECT - CAST ( + col2 AS INTEGER ) * + 58 + - + col0 FROM tab1
----
-3507
-4035
-5619

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-33
SELECT ALL * FROM tab2 WHERE NOT NULL >= col0 + - col0 * - + CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-33
SELECT ALL * FROM tab2 WHERE NOT NULL >= col0 + - col0 * - + CAST ( col2 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = ( + col2 )
----

query I rowsort
SELECT DISTINCT - 9 + col0 FROM tab2 AS cor0
----
37
55
66

query I rowsort
SELECT ALL ( + 33 ) + + col1 FROM tab1 cor0
----
38
47
80

query I rowsort
SELECT ALL - - col0 + col0 * - - 45 AS col0 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT DISTINCT + col0 + - 65 FROM tab0
----
-50
22
32

query I rowsort
SELECT 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT + MIN( - 24 ) + + + 1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-41
SELECT + MIN ( - 24 ) + + + 1 FROM tab1 AS cor0
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - + 45 + + SUM( DISTINCT - - 42 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-43
SELECT - + 45 + + SUM ( DISTINCT - - 42 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - 49, 19 col2 FROM tab1 AS cor0
----
-108
19
-117
19
-145
19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 <= NULL
----

query II rowsort
SELECT col1, 47 * col2 FROM tab1
----
14
4512
47
3196
5
2773

query I rowsort
SELECT + col0 - - 31 FROM tab2 WHERE NOT + col0 * + 71 IS NULL
----
106
77
95

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 61 / + col0 AND NOT ( NOT col1 IS NOT NULL )
----

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

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

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

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

skipif mysql # not compatible
query III rowsort label-52
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) NOT BETWEEN + + col2 AND + - col1 * col1
----

query II rowsort
SELECT + col1 AS col1, 63 FROM tab1
----
14
63
47
63
5
63

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

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

query I rowsort
SELECT DISTINCT + 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
30

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

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

query I rowsort
SELECT ALL + 35 * - 53 + + - 20 AS col1 FROM tab0 AS cor0
----
-1875
-1875
-1875

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT SUM( + 93 ) FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-59
SELECT SUM ( + 93 ) FROM tab0 AS cor0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 + - col2 col2 FROM tab2 AS cor0
----
14
32
49

query II rowsort
SELECT ALL + col0 * col0 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
2601
-51
7225
-85
8281
-91

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

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

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

query II rowsort
SELECT - col0 * + 37, col1 AS col0 FROM tab0
----
-3219
21
-3589
1
-555
81

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT COUNT( * ) * + 53 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-65
SELECT COUNT ( * ) * + 53 FROM tab1
----
159

query I rowsort
SELECT + + col2 / - 97 - - col1 - - + 50 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( + + col1 ), - col1 AS col0 FROM tab1
----
14
-14
47
-47
5
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - 31 + - COUNT( * ) - + - 99 - - SUM( ALL + 48 ) * 44 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
19073

skipif mysql # not compatible
query I rowsort label-70
SELECT - 31 + - COUNT ( * ) - + - 99 - - SUM ( ALL + 48 ) * 44 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
19073

query I rowsort
SELECT DISTINCT + col2 - + 30 AS col0 FROM tab2 AS cor0
----
-7
10
28

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT - + col1 + + 92 DIV + 86 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-73
SELECT - + col1 + + 92 / + 86 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-74
SELECT + MAX( DISTINCT + - 63 ) + CAST( - COUNT( ALL - 15 ) AS SIGNED ) AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-74
SELECT + MAX ( DISTINCT + - 63 ) + CAST ( - COUNT ( ALL - 15 ) AS INTEGER ) AS col0 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT col2 + - 78 * - - col1 FROM tab2
----
-3955
-5168
-5966

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

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

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

query I rowsort
SELECT DISTINCT col0 - + 69 AS col1 FROM tab2
----
-23
-5
6

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 72 * - - col1 * + col2 <= NULL
----

query I rowsort
SELECT DISTINCT 76 * 8 - + + col0 AS col0 FROM tab2 AS cor0
----
533
544
562

query I rowsort
SELECT ALL - + col2 * 71 FROM tab2 AS cor0
----
-1633
-2840
-4118

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT - 56 DIV + - col1 - col1 * - ( 34 ) * - - col1 * - 11 AS col1 FROM tab1 AS cor0
----
-73300
-826165
-9339

skipif mysql # not compatible
query I rowsort label-83
SELECT - 56 / + - col1 - col1 * - ( 34 ) * - - col1 * - 11 AS col1 FROM tab1 AS cor0
----
-73300
-826165
-9339

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT ALL + 28 DIV - 21 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + 28 / - 21 FROM tab1 AS cor0
----
-1
-1
-1

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-86
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT DISTINCT MIN( + ( - ( - + 73 ) ) ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT MIN ( + ( - ( - + 73 ) ) ) FROM tab0
----
73

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

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

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

query I rowsort
SELECT ALL - 27 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-27
-27
-27

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

query I rowsort
SELECT ALL + col2 + - 86 - + col0 FROM tab2 AS cor0
----
-103
-109
-110

query I rowsort
SELECT - 99 AS col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - 50 * - col2 + - + col0 FROM tab0 AS cor0
----
2335
413
4853

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 94 NOT IN ( + col2 * + col2 + - 54, col1 - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL ( 77 ) + COUNT( * ) FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL ( 77 ) + COUNT ( * ) FROM tab0 cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-97
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col0 * 68 * + + CAST( col2 AS SIGNED ) * - 22 / + - 51 )
----

skipif mysql # not compatible
query III rowsort label-97
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col0 * 68 * + + CAST ( col2 AS INTEGER ) * - 22 / + - 51 )
----

query I rowsort
SELECT DISTINCT 39 + + col0 * + - 39 + col0 FROM tab1 AS cor0
----
-1899
-3191
-3419

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

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

query I rowsort
SELECT + col1 + 65 * - ( + - col0 ) FROM tab1
----
3329
5530
5962

query I rowsort
SELECT - 3 * col2 AS col2 FROM tab2
----
-120
-174
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT + 82 DIV + - 66 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-102
SELECT + 82 / + - 66 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 64 + col2 FROM tab2 AS cor0
----
-24
-41
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - - 46 * - + col1 <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE - col2 * col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - MIN( - - col2 ) - 9 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-107
SELECT - MIN ( - - col2 ) - 9 FROM tab0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-108
SELECT col1 * + CAST( NULL AS DECIMAL ) * + col1 - + 4 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - 88 + - MAX( DISTINCT + col1 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-109
SELECT - 88 + - MAX ( DISTINCT + col1 ) FROM tab1
----
-135

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT DISTINCT + - 52 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN CAST( col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT + - 52 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN CAST ( col0 AS INTEGER ) AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT ALL + 60 DIV - - col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + 60 / - - col0 FROM tab0 AS cor0
----
0
0
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT DISTINCT + + ( - + col1 ) DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT + + ( - + col1 ) / col2 AS col2 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-116
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 * CAST( + ( 50 ) AS SIGNED ) NOT IN ( + - CAST( NULL AS SIGNED ), - ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-116
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 * CAST ( + ( 50 ) AS INTEGER ) NOT IN ( + - CAST ( NULL AS INTEGER ), - ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-117
SELECT ( 70 ) DIV col1 DIV 97 + col1 col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-117
SELECT ( 70 ) / col1 / 97 + col1 col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT - + SUM( ALL 5 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-118
SELECT - + SUM ( ALL 5 ) FROM tab2 AS cor0
----
-15

query I rowsort
SELECT + 88 * - + col1 FROM tab0
----
-1848
-7128
-88

query II rowsort
SELECT + 67 AS col2, 14 FROM tab1
----
67
14
67
14
67
14

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <> 48 - + col0
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <> 48 - + col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT 87 DIV + 97 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-122
SELECT 87 / + 97 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - col2 IS NOT NULL
----
51
67
77

query II rowsort
SELECT col0, - col0 * - 96 + - col2 FROM tab1 AS cor0
----
51
4800
85
8101
91
8668

query II rowsort
SELECT + col0 AS col2, - col1 + - + 62 AS col0 FROM tab1 cor0 WHERE NOT ( - 88 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + 98 IS NOT NULL
----

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

query I rowsort
SELECT ALL ( - 39 ) AS col1 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT ALL + + col1 + ( col2 ) + + + col1 AS col1 FROM tab2 AS cor0
----
125
192
194

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - 10 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + 68 * - 29 - + col0 AS col2 FROM tab2 AS cor0
----
-2018
-2036
-2047

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

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

query I rowsort
SELECT ALL - 29 + - col1 AS col2 FROM tab1
----
-34
-43
-76

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) * ( - 93 ) + - + col1 IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT DISTINCT - col0 DIV - + col1 + col0 FROM tab2 AS cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT - col0 / - + col1 + col0 FROM tab2 AS cor0
----
46
64
76

query I rowsort
SELECT ALL col0 * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL - - COUNT( * ) + - 42 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-33

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL - - COUNT ( * ) + - 42 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-33

query I rowsort
SELECT + 14 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

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

query I rowsort
SELECT col0 * - - col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT + - col0 AS col2, - col1 * 97 AS col1 FROM tab0 AS cor0
----
-15
-7857
-87
-2037
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT + col1 DIV col1 * 10 AS col0 FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-148
SELECT + col1 / col1 * 10 AS col0 FROM tab1
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT 17 * - MIN( DISTINCT col1 ) * 39 * + COUNT( * ) FROM tab2
----
-101439

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT 17 * - MIN ( DISTINCT col1 ) * 39 * + COUNT ( * ) FROM tab2
----
-101439

query I rowsort
SELECT - 36 * + + col2 AS col0 FROM tab2
----
-1440
-2088
-828

query I rowsort
SELECT ALL col0 * - - 27 AS col2 FROM tab0
----
2349
2619
405

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT DISTINCT - 24 DIV - ( - col2 ) FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT - 24 / - ( - col2 ) FROM tab0
----
-2
0

query I rowsort
SELECT - col0 * - col2 + - 33 AS col1 FROM tab2 AS cor0
----
1025
2527
4317

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT 4 * SUM( DISTINCT 51 ) + + - 56 + - 30 FROM tab0 cor0
----
118

skipif mysql # not compatible
query I rowsort label-154
SELECT 4 * SUM ( DISTINCT 51 ) + + - 56 + - 30 FROM tab0 cor0
----
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + + - col1 col1 FROM tab1 AS cor0
----
41
74
83

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= 61 * - 97
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN - + col1 AND + - 23 / + 17 + - col0
----

query I rowsort
SELECT ALL - ( + col0 ) + - col2 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT + col1 + + CAST( + 57 AS SIGNED ) AS col2 FROM tab2
----
108
124
134

skipif mysql # not compatible
query I rowsort label-159
SELECT + col1 + + CAST ( + 57 AS INTEGER ) AS col2 FROM tab2
----
108
124
134

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT ALL + col0 DIV 87 - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + col0 / 87 - col1 FROM tab2
----
-51
-67
-77

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

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

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 / 69 / - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 <= - ( - col0 ) * + col1 * + - 77 + - col0
----
3

skipif mysql # not compatible
query I rowsort label-163
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 <= - ( - col0 ) * + col1 * + - 77 + - col0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + 70 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-165
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - col1, 7 + + CAST( NULL AS SIGNED ) / - col2, - col0, + ( col1 ) * - - 25 + - - 38 + - + col1, - col0 - - col0, - + col2 )
----

skipif mysql # not compatible
query III rowsort label-165
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - col1, 7 + + CAST ( NULL AS INTEGER ) / - col2, - col0, + ( col1 ) * - - 25 + - - 38 + - + col1, - col0 - - col0, - + col2 )
----

query I rowsort
SELECT DISTINCT ( - 0 ) AS col1 FROM tab1 cor0
----
0

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

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

query I rowsort
SELECT 47 * + col0 FROM tab2 AS cor0
----
2162
3008
3525

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-169
SELECT DISTINCT - + 81 AS col0, MAX( - col2 ) DIV - + 72 AS col1 FROM tab2 AS cor0
----
-81
0

skipif mysql # not compatible
query II rowsort label-169
SELECT DISTINCT - + 81 AS col0, MAX ( - col2 ) / - + 72 AS col1 FROM tab2 AS cor0
----
-81
0

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN + 88 * - col1 AND + + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-173
SELECT - CAST( NULL AS SIGNED ) AS col2, + 88 * - + 99 * - + col2 FROM tab0 AS cor0
----
NULL
409464
NULL
862488
NULL
87120

skipif mysql # not compatible
query II rowsort label-173
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 88 * - + 99 * - + col2 FROM tab0 AS cor0
----
NULL
409464
NULL
862488
NULL
87120

query I rowsort
SELECT + 56 AS col0 FROM tab1 cor0
----
56
56
56

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

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

query I rowsort
SELECT 12 * + 18 AS col2 FROM tab0
----
216
216
216

query I rowsort
SELECT DISTINCT - 86 * + col2 AS col2 FROM tab2
----
-1978
-3440
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL - MAX( DISTINCT - 53 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL - MAX ( DISTINCT - 53 ) FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - - 13 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-179
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - 13 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-180
SELECT ALL MAX( DISTINCT ( + 49 ) ) DIV + COUNT( * ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL MAX ( DISTINCT ( + 49 ) ) / + COUNT ( * ) AS col2 FROM tab0
----
16

query II rowsort
SELECT DISTINCT + col0, + 47 FROM tab0
----
15
47
87
47
97
47

onlyif mysql # DIV for integer division: 
query I rowsort label-182
SELECT DISTINCT - col2 DIV 90 + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT - col2 / 90 + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT ALL MIN( col0 ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL MIN ( col0 ) / - - COUNT ( * ) FROM tab1 AS cor0
----
17

query I rowsort
SELECT - - 83 + - - col0 FROM tab2 AS cor0
----
129
147
158

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 + - 28 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT ALL - col0 DIV col1 + - - col1 * + col0 col1 FROM tab1
----
408
4276
711

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-186
SELECT ALL - col0 / col1 + - - col1 * + col0 col1 FROM tab1
----
408
4276
711

query I rowsort
SELECT DISTINCT + + 34 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query II rowsort
SELECT - 20 AS col2, + 5 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT DISTINCT + ( + COUNT( * ) ) col1, - 2 FROM tab2 AS cor0
----
3
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-189
SELECT DISTINCT + ( + COUNT ( * ) ) col1, - 2 FROM tab2 AS cor0
----
3
-2

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

query I rowsort
SELECT - col0 * col0 + + 62 FROM tab1 AS cor0
----
-2539
-7163
-8219

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT col0 DIV - 25 - - col0 FROM tab1 cor0
----
49
82
88

skipif mysql # not compatible
query I rowsort label-192
SELECT col0 / - 25 - - col0 FROM tab1 cor0
----
49
82
88

query II rowsort
SELECT - col1 - - 75 AS col1, col2 FROM tab0 AS cor0
----
-6
47
54
10
74
99

query I rowsort
SELECT DISTINCT - - col2 + + + 66 AS col0 FROM tab2 AS cor0
----
106
124
89

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

query I rowsort
SELECT DISTINCT 6 - + col2 FROM tab0
----
-4
-41
-93

query I rowsort
SELECT DISTINCT + 84 - col0 AS col1 FROM tab2
----
20
38
9

query I rowsort
SELECT ALL - ( + col2 ) - - col0 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - 46 * - - col2 * - + col0 FROM tab1
----
225216
230690
284648

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

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-202
SELECT 81 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-202
SELECT 81 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT + + SUM( col1 ), - 13 AS col0 FROM tab2 AS cor0
----
195
-13

skipif mysql # not compatible
query II rowsort label-203
SELECT + + SUM ( col1 ), - 13 AS col0 FROM tab2 AS cor0
----
195
-13

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

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT + MIN ( - + 95 ) AS col1 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= col1 * + 88 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 * - col1 * + col0 col1 FROM tab1 AS cor0
----
29325
295113
49266

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-207
SELECT + CAST( NULL AS DECIMAL ) / - + 97 * + + ( - col0 ) + - 54 + - col0 * - col0 + + + 45 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 + + col1 + - CAST( + 61 AS SIGNED ) + 49 * 45 - 81 * col0 / col0 * + 47 - 71 - col0 )
----

skipif mysql # not compatible
query I rowsort label-207
SELECT + CAST ( NULL AS REAL ) / - + 97 * + + ( - col0 ) + - 54 + - col0 * - col0 + + + 45 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 + + col1 + - CAST ( + 61 AS INTEGER ) + 49 * 45 - 81 * col0 / col0 * + 47 - 71 - col0 )
----

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

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

query I rowsort
SELECT DISTINCT - col1 * 61 FROM tab0
----
-1281
-4941
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ALL ( - ( + + MAX( DISTINCT col2 ) ) ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL ( - ( + + MAX ( DISTINCT col2 ) ) ) AS col1 FROM tab0
----
-99

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

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

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

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

query I rowsort
SELECT + col1 + + ( - ( - col1 ) ) FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT ALL + SUM( ALL - + 52 ) FROM tab2 WHERE NOT + col0 IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL + SUM ( ALL - + 52 ) FROM tab2 WHERE NOT + col0 IS NULL
----
-156

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 <= col2 / col2
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 22 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-221
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL MIN( - - 55 ) + COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL MIN ( - - 55 ) + COUNT ( * ) FROM tab1 AS cor0
----
58

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

query I rowsort
SELECT ALL + 61 + - col1 AS col0 FROM tab2 AS cor0
----
-16
-6
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT DISTINCT - 23 + + + CAST( ( - 43 ) AS SIGNED ) + + col1 FROM tab2
----
-15
1
11

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - 23 + + + CAST ( ( - 43 ) AS INTEGER ) + + col1 FROM tab2
----
-15
1
11

query II rowsort
SELECT + 76, - col2 AS col1 FROM tab1
----
76
-59
76
-68
76
-96

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

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

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

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

query I rowsort
SELECT + + 65 + 11 FROM tab1 AS cor0
----
76
76
76

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

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

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

query I rowsort
SELECT ALL - - 97 - + + col2 AS col0 FROM tab0 AS cor0
----
-2
50
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-233
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-233
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND - 52
----

query I rowsort
SELECT - 84 * + + 7 AS col2 FROM tab0
----
-588
-588
-588

onlyif mysql # aggregate syntax: 
query II rowsort label-236
SELECT - MAX( DISTINCT col1 ) AS col2, + 27 + - SUM( DISTINCT + col0 ) AS col2 FROM tab0
----
-81
-172

skipif mysql # not compatible
query II rowsort label-236
SELECT - MAX ( DISTINCT col1 ) AS col2, + 27 + - SUM ( DISTINCT + col0 ) AS col2 FROM tab0
----
-81
-172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-237
SELECT DISTINCT + ( - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) ) + + - 75 * - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT + ( - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) + + - 75 * - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 + col2 * col1 * - col1 AS col2 FROM tab2
----
-237120
-260304
-59800

query I rowsort
SELECT ALL 68 - + col1 * col2 AS col2 FROM tab1
----
-1276
-227
-3128

query I rowsort
SELECT ALL + - 28 FROM tab2 WHERE NULL IS NULL
----
-28
-28
-28

query II rowsort
SELECT ALL ( - col1 ) AS col2, col1 + col0 FROM tab1
----
-14
65
-47
138
-5
90

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-243
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-244
SELECT MIN ( DISTINCT 17 ) AS col1 FROM tab1 cor0
----
17

query I rowsort
SELECT ALL - + 47 * - col0 AS col2 FROM tab0 AS cor0
----
4089
4559
705

query I rowsort
SELECT ALL + - col2 + 25 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col2 + col0
----
-15
-33

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL 56 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

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

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - COUNT( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 2 BETWEEN col0 AND - col2
----
-3

skipif mysql # not compatible
query I rowsort label-250
SELECT - COUNT ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 2 BETWEEN col0 AND - col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-251
SELECT DISTINCT MIN( + + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT MIN ( + + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT DISTINCT col1 DIV - + col0 * - + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT col1 / - + col0 * - + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL 27 + + COUNT( * ) col2 FROM tab0 AS cor0
----
30

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

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

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

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( + 60, - col1 * - col0 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT ALL 9 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( + + 72 AS SIGNED ) IS NOT NULL
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL 9 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( + + 72 AS INTEGER ) IS NOT NULL
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query II rowsort label-258
SELECT DISTINCT + COUNT( + + col1 ) + - 93 * + ( 42 ) col1, - 15 + + 33 AS col2 FROM tab2
----
-3903
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-258
SELECT DISTINCT + COUNT ( + + col1 ) + - 93 * + ( 42 ) col1, - 15 + + 33 AS col2 FROM tab2
----
-3903
18

query I rowsort
SELECT col1 * - col1 * - 38 AS col2 FROM tab0 AS cor0
----
16758
249318
38

query I rowsort
SELECT DISTINCT 4 * - 88 + + col0 AS col1 FROM tab1 AS cor0
----
-261
-267
-301

query I rowsort
SELECT col2 * + 75 * - col0 AS col0 FROM tab1 AS cor0
----
-367200
-376125
-464100

query I rowsort
SELECT ALL - 53 + - col2 AS col0 FROM tab0 AS cor0
----
-100
-152
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-263
SELECT * FROM tab2 cor0 WHERE - 46 / - - 36 NOT IN ( - - col0, 22, col0, - - col2, - col0, + + col1 * - CAST( NULL AS DECIMAL ) + - + 23 )
----

skipif mysql # not compatible
query III rowsort label-263
SELECT * FROM tab2 cor0 WHERE - 46 / - - 36 NOT IN ( - - col0, 22, col0, - - col2, - col0, + + col1 * - CAST ( NULL AS REAL ) + - + 23 )
----

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

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - - 9 + 89 + + col0 / + col2 FROM tab0 AS cor0
----
106
98
98

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

query II rowsort
SELECT - col1 - - 73 - - col0 + - col2 + + 28, col1 AS col2 FROM tab2 cor0
----
48
77
51
67
73
51

query I rowsort
SELECT - col0 * - col0 - 68 FROM tab0 AS cor0
----
157
7501
9341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 - - col1 col1 FROM tab2 AS cor0
----
101
111
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 90 * + 97 * + + col0 * - col1 + - col0 + - col1 ) IS NULL
----

query I rowsort
SELECT ALL - ( + - col0 ) + 23 FROM tab1 AS cor0
----
108
114
74

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

query I rowsort
SELECT - col0 * col1 * 64 FROM tab0 AS cor0
----
-116928
-6208
-77760

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

query I rowsort
SELECT ALL col0 * + + col0 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-275
SELECT 3 AS col2, 94 * MIN( DISTINCT - col2 ) FROM tab0
----
3
-9306

skipif mysql # not compatible
query II rowsort label-275
SELECT 3 AS col2, 94 * MIN ( DISTINCT - col2 ) FROM tab0
----
3
-9306

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

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

query I rowsort
SELECT DISTINCT - col0 * - 92 FROM tab0 AS cor0
----
1380
8004
8924

query I rowsort
SELECT ALL 62 * + - col0 AS col1 FROM tab2 AS cor0
----
-2852
-3968
-4650

query II rowsort
SELECT col1 AS col2, + 5 + col2 AS col0 FROM tab1 AS cor0
----
14
101
47
73
5
64

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

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 WHERE NOT - col0 / + 97 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT DISTINCT - 99 DIV + col2 - col1 AS col0 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT - 99 / + col2 - col1 AS col0 FROM tab1 AS cor0
----
-15
-48
-6

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 86 + - - 59 <= ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-286
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 86 + - - 59 <= ( + col2 )
----
0

query II rowsort
SELECT ALL - - col1 * + 13 AS col0, 65 AS col0 FROM tab0 AS cor0
----
1053
65
13
65
273
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT DISTINCT - SUM( - + 4 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT - SUM ( - + 4 ) FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + col1 + + 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-291
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-292
SELECT DISTINCT - + col0 DIV 54 * - - col2 AS col1, - col0 FROM tab2 AS cor0
----
-40
-64
-58
-75
0
-46

skipif mysql # not compatible
query II rowsort label-292
SELECT DISTINCT - + col0 / 54 * - - col2 AS col1, - col0 FROM tab2 AS cor0
----
-40
-64
-58
-75
0
-46

query I rowsort
SELECT DISTINCT - col2 + + 25 AS col1 FROM tab2 AS cor0
----
-15
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT + MAX( DISTINCT + 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
69

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT + MAX ( DISTINCT + 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT DISTINCT + 23 + - COUNT( * ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
14

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT + 23 + - COUNT ( * ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
14

query I rowsort
SELECT + 37 + + ( - 43 ) AS col2 FROM tab2
----
-6
-6
-6

query III rowsort
SELECT * FROM tab0 WHERE - 10 NOT BETWEEN - - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT + + CAST( + 44 AS SIGNED ) FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-298
SELECT + + CAST ( + 44 AS INTEGER ) FROM tab2 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT ALL ( + 81 ) * - 5 * - - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL ( + 81 ) * - 5 * - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT 54 * + COUNT( DISTINCT col1 ) col0 FROM tab1 cor0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-301
SELECT 54 * + COUNT ( DISTINCT col1 ) col0 FROM tab1 cor0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col2, - col1 + + 98 * + col1 * 27 col1 FROM tab2 AS cor0
----
-1058
134895
-2560
203665
-4350
177215

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-303
SELECT CAST( col1 AS SIGNED ) DIV + 71 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-303
SELECT CAST ( col1 AS INTEGER ) / + 71 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT 44 DIV + + col0 * + ( - col1 ) * - + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-304
SELECT 44 / + + col0 * + ( - col1 ) * - + col0 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT col2 * - col0 * + 78 AS col0, col0 FROM tab0
----
-54990
15
-67860
87
-749034
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-306
SELECT ALL + col2 * + CAST( - + col2 AS SIGNED ) FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + col2 * + CAST ( - + col2 AS INTEGER ) FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT col0 + - 64 * - col0, 7 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL ( - + col2 ) * 32 AS col2 FROM tab1
----
-1888
-2176
-3072

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

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

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

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

query II rowsort
SELECT + col0, - 92 FROM tab0 AS cor0
----
15
-92
87
-92
97
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-313
SELECT ALL + 34 DIV COUNT( * ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + 34 / COUNT ( * ) FROM tab0 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT - 21 DIV - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-314
SELECT - 21 / - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-318
SELECT - + 98, col1 + + CAST( - 3 AS SIGNED ) + + ( - - col2 ) * + col0 AS col2, + col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to c326c134fb78036502b2a6e65115e39f

skipif mysql # not compatible
query III rowsort label-318
SELECT - + 98, col1 + + CAST ( - 3 AS INTEGER ) + + ( - - col2 ) * + col0 AS col2, + col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to c326c134fb78036502b2a6e65115e39f

query I rowsort
SELECT DISTINCT + col1 * + - col2 * - col1 + + - col2 + + ( + col0 ) * - 99 FROM tab1 AS cor0
----
-6999
13671
141135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-320
SELECT + - 33, + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

skipif mysql # not compatible
query II rowsort label-320
SELECT + - 33, + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

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

query II rowsort
SELECT - col0 AS col2, - col1 * + - col2 + + 72 FROM tab1 cor0
----
-51
1416
-85
367
-91
3268

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 0 <> - col2 + col2
----

query II rowsort
SELECT - + col0 AS col0, - 9 AS col1 FROM tab0 AS cor0
----
-15
-9
-87
-9
-97
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-325
SELECT DISTINCT + 39 * - - COUNT( * ) + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + 39 * - - COUNT ( * ) + + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-326
SELECT - - col0, + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-326
SELECT - - col0, + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT + COUNT( * ) + + MAX( + + 82 ) FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT + COUNT ( * ) + + MAX ( + + 82 ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + COUNT( * ) + + 81 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-329
SELECT + COUNT ( * ) + + 81 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT 37 + - + COUNT( * ) * + + 80 + - COUNT( * ) FROM tab2 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-330
SELECT 37 + - + COUNT ( * ) * + + 80 + - COUNT ( * ) FROM tab2 AS cor0
----
-206

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT DISTINCT + COUNT( * ) * - 56 + + 42 AS col1, + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-126
-3

skipif mysql # not compatible
query II rowsort label-331
SELECT DISTINCT + COUNT ( * ) * - 56 + + 42 AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-126
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT ALL - col0 - col2 DIV col0 * - + 70 col2 FROM tab1
----
-85
-91
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-332
SELECT ALL - col0 - col2 / col0 * - + 70 col2 FROM tab1
----
-85
-91
19

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT MAX( DISTINCT + + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT MAX ( DISTINCT + + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

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

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

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

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( + col1 ) AND + - 64 * 45 + + + col0 * + - 61
----

query I rowsort
SELECT 10 * - 44 * 40 + - 58 * + 5 * 69 FROM tab1 AS cor0
----
-37610
-37610
-37610

query I rowsort
SELECT + col2 * 24 AS col1 FROM tab2
----
1392
552
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT + 91 * col2 * col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT + col2 BETWEEN 73 AND NULL
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT + 91 * col2 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT + col2 BETWEEN 73 AND NULL
----
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - MAX( + + ( + ( - + col0 ) ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-343
SELECT - MAX ( + + ( + ( - + col0 ) ) ) AS col2 FROM tab0
----
15

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

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

query II rowsort
SELECT ALL + + col0 * 18 AS col2, 2 AS col0 FROM tab0 AS cor0
----
1566
2
1746
2
270
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + 7 IN ( - + 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL - + 83 + COUNT( * ) FROM tab1 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - + 83 + COUNT ( * ) FROM tab1 cor0
----
-80

query I rowsort
SELECT DISTINCT + 52 * + 8 FROM tab1
----
416

onlyif mysql # aggregate syntax: 
query II rowsort label-349
SELECT 43, - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
43
-9

skipif mysql # not compatible
query II rowsort label-349
SELECT 43, - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
43
-9

query I rowsort
SELECT col1 FROM tab2 WHERE ( 81 >= + 20 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab1
----
33

query II rowsort
SELECT DISTINCT + 30 + - + 62 + - col1 AS col2, col1 * + col2 AS col2 FROM tab2 AS cor0
----
-109
3080
-83
1173
-99
3886

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-355
SELECT 38 * CAST( + col2 AS SIGNED ) * col0 DIV + + col0 + col2 FROM tab2 AS cor0
----
1560
2262
897

skipif mysql # not compatible
query I rowsort label-355
SELECT 38 * CAST ( + col2 AS INTEGER ) * col0 / + + col0 + col2 FROM tab2 AS cor0
----
1560
2262
897

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT + col0 DIV + 51 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-356
SELECT + col0 / + 51 + - col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-357
SELECT - CAST( + - col1 AS SIGNED ) + + 43 + col0 * - - 67 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-357
SELECT - CAST ( + - col1 AS INTEGER ) + + 43 + col0 * - - 67 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 < - col2
----

query I rowsort
SELECT - + 88 AS col0 FROM tab0 cor0 WHERE + col2 <> col0 * - 50 - + col1 + + col1
----
-88
-88
-88

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

query I rowsort
SELECT ALL col2 * 57 - - col2 + + + 23 AS col2 FROM tab2 cor0
----
1357
2343
3387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT - 24 * COUNT( DISTINCT col1 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-364
SELECT - 24 * COUNT ( DISTINCT col1 ) FROM tab1
----
-72

query I rowsort
SELECT DISTINCT - ( - col1 ) * + 77 - + col2 FROM tab2
----
3904
5101
5889

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

query I rowsort
SELECT - ( col0 ) - + col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT - 58 * + - 4 - + 8 + - COUNT( * ) FROM tab0
----
221

skipif mysql # not compatible
query I rowsort label-368
SELECT - 58 * + - 4 - + 8 + - COUNT ( * ) FROM tab0
----
221

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 68 FROM tab2 AS cor0
----
3468
4556
5236

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

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT + + col2 * - - 81, col2 * + col2 AS col2 FROM tab1 AS cor0
----
4779
3481
5508
4624
7776
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-375
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-376
SELECT + col1 DIV - col2 + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-16
-89
-97

skipif mysql # not compatible
query I rowsort label-376
SELECT + col1 / - col2 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-16
-89
-97

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

query II rowsort
SELECT - 90 AS col2, + 55 * + - col1 AS col1 FROM tab0
----
-90
-1155
-90
-4455
-90
-55

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab1, tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - - MIN( ALL - col2 ) + 69 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-380
SELECT - - MIN ( ALL - col2 ) + 69 FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-381
SELECT ALL col2 DIV CAST( + ( col2 ) * col1 AS SIGNED ) - - 24 * col2 AS col0 FROM tab0
----
1128
2377
240

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL col2 / CAST ( + ( col2 ) * col1 AS INTEGER ) - - 24 * col2 AS col0 FROM tab0
----
1128
2377
240

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT DISTINCT - MIN( - col2 ) col2 FROM tab1
----
96

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

query I rowsort
SELECT col1 * 3 FROM tab1
----
141
15
42

query I rowsort
SELECT - 85 - + col2 * col0 FROM tab2
----
-1143
-2645
-4435

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * + 81 col1 FROM tab2 WHERE ( + 30 + - col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-387
SELECT - MIN( + col2 ) FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT - MIN ( + col2 ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col2 <> NULL
----
NULL

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT COUNT( 34 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-389
SELECT COUNT ( 34 ) FROM tab0
----
3

query I rowsort
SELECT ALL - 12 * + col0 AS col2 FROM tab2
----
-552
-768
-900

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL + COUNT( * ) * + 91 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + COUNT ( * ) * + 91 FROM tab0
----
273

query I rowsort
SELECT - 94 AS col2 FROM tab1 WHERE ( - col2 ) * col1 < NULL
----

query I rowsort
SELECT col0 * + col2 FROM tab1 WHERE ( NULL ) = col0 + - col2 * - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-397
SELECT - ( - SUM( - col1 ) ) DIV 18 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-397
SELECT - ( - SUM ( - col1 ) ) / 18 FROM tab0
----
-5

query I rowsort
SELECT ALL - col0 - col1 * col0 AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT col2 / - col0 + - 92 * 35 FROM tab1 WHERE col2 + 7 IS NULL
----

query I rowsort
SELECT ALL 47 + 96 * col0 FROM tab1
----
4943
8207
8783

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 30 <= ( + 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT DISTINCT 37 DIV 34 col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-404
SELECT DISTINCT 37 / 34 col0 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-405
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) NOT BETWEEN - col0 / col1 + 48 * col0 AND + col0 / ( col1 ) - + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-405
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 WHERE - CAST ( NULL AS REAL ) NOT BETWEEN - col0 / col1 + 48 * col0 AND + col0 / ( col1 ) - + col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT DISTINCT 88 DIV 15 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT 88 / 15 AS col0 FROM tab1 AS cor0
----
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL col0 + - CAST( + col2 AS SIGNED ) * + 62 AS col2 FROM tab1 AS cor0
----
-3573
-4125
-5901

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL col0 + - CAST ( + col2 AS INTEGER ) * + 62 AS col2 FROM tab1 AS cor0
----
-3573
-4125
-5901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-410
SELECT - COUNT( * ) + - 50 DIV - MAX( + 22 * ( - 87 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-410
SELECT - COUNT ( * ) + - 50 / - MAX ( + 22 * ( - 87 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 14 + - col0 IN ( + col2 )
----
-14
-47
-5

query I rowsort
SELECT ALL - 35 FROM tab0 cor0 WHERE NOT + col1 IN ( col2 )
----
-35
-35
-35

query I rowsort
SELECT + ( 83 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT + 42 * COUNT( * ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-416
SELECT + 42 * COUNT ( * ) FROM tab0 AS cor0
----
126

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT CAST( COUNT( * ) AS SIGNED ) * - 4 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-418
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 4 FROM tab1 cor0
----
-12

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab0 cor0 WHERE NOT 34 + + col1 IN ( + col1 + + 47 )
----
15
87
97

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT 87 <> + col0 * col1
----

query I rowsort
SELECT + - col0 * 20 AS col1 FROM tab1 cor0
----
-1020
-1700
-1820

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-423
SELECT ALL * FROM tab2 WHERE NOT ( + 56 / col2 - CAST( - col0 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-423
SELECT ALL * FROM tab2 WHERE NOT ( + 56 / col2 - CAST ( - col0 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT COUNT( * ) + - - SUM( DISTINCT 70 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-424
SELECT COUNT ( * ) + - - SUM ( DISTINCT 70 ) FROM tab2
----
73

query I rowsort
SELECT - col2 + - 44 AS col2 FROM tab1
----
-103
-112
-140

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-427
SELECT + COUNT( * ) * 67 FROM tab1 WHERE NOT NULL < - CAST( + 1 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-427
SELECT + COUNT ( * ) * 67 FROM tab1 WHERE NOT NULL < - CAST ( + 1 AS REAL )
----
0

query I rowsort
SELECT - 12 + 80 FROM tab2
----
68
68
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-429
SELECT DISTINCT MIN( ALL + - ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT DISTINCT + COUNT( * ) + 34 * + 36 FROM tab1
----
1227

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT + COUNT ( * ) + 34 * + 36 FROM tab1
----
1227

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT DISTINCT 55 * SUM( col2 ) FROM tab2 WHERE NOT ( - 41 * + 51 + - 98 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT 55 * SUM ( col2 ) FROM tab2 WHERE NOT ( - 41 * + 51 + - 98 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab1 WHERE - col0 + + 79 IS NULL
----

query I rowsort
SELECT ALL - - 83 AS col2 FROM tab1 AS cor0
----
83
83
83

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

query I rowsort
SELECT DISTINCT 56 + - 59 FROM tab2 AS cor0 WHERE 81 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT DISTINCT + 5 DIV col0 DIV col2 + ( + ( col2 ) ) + - 38 * 90 FROM tab0 cor0
----
-3321
-3373
-3410

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT + 5 / col0 / col2 + ( + ( col2 ) ) + - 38 * 90 FROM tab0 cor0
----
-3321
-3373
-3410

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

query I rowsort
SELECT - 95 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT - - COUNT( * ) + + SUM( + ( - col1 ) ) - - 70 col2 FROM tab1 AS cor0
----
7

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

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

query I rowsort
SELECT DISTINCT - col0 + - col1 + - 8 - + col2 FROM tab0 AS cor0
----
-126
-151
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT DISTINCT + - 81 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT + - 81 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-78

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

query I rowsort
SELECT ALL - ( - 59 ) * col2 + col2 AS col1 FROM tab2 AS cor0
----
1380
2400
3480

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * 99 - + - col1 + + 47 col2 FROM tab0
----
9453
9473
9533

query I rowsort
SELECT ALL - 4 * 53 FROM tab1
----
-212
-212
-212

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ( - COUNT( * ) ) - 29 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-452
SELECT ( - COUNT ( * ) ) - 29 FROM tab1
----
-32

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT SUM( + col0 ) FROM tab0 WHERE NOT ( - - 78 - + 91 ) NOT BETWEEN ( col2 ) AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT SUM ( + col0 ) FROM tab0 WHERE NOT ( - - 78 - + 91 ) NOT BETWEEN ( col2 ) AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-456
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( - CAST( + col2 AS SIGNED ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-456
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( - CAST ( + col2 AS INTEGER ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT + + 84 FROM tab0 cor0
----
84
84
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 * + CAST( NULL AS SIGNED ) + - col1 * + 57 )
----

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 * + CAST ( NULL AS INTEGER ) + - col1 * + 57 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE - col0 + col2 IN ( + 57 * col0 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 IN ( - col2 + + 70 )
----

query I rowsort
SELECT + ( col1 ) - + 39 FROM tab2 WHERE NOT col2 <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-467
SELECT DISTINCT col2 DIV - ( 21 ) AS col1, - CAST( NULL AS SIGNED ) * - - col0 AS col0 FROM tab1 AS cor0
----
-2
NULL
-3
NULL
-4
NULL

skipif mysql # not compatible
query II rowsort label-467
SELECT DISTINCT col2 / - ( 21 ) AS col1, - CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab1 AS cor0
----
-2
NULL
-3
NULL
-4
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL 2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 / - 93 = + col1
----
2
2
2

query I rowsort
SELECT + col2 * - col1 * + + col0 + - col1 FROM tab2 cor0
----
-197197
-291517
-54009

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT 95 * COUNT( - - col1 ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-474
SELECT 95 * COUNT ( - - col1 ) FROM tab2
----
285

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

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

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

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

query III rowsort
SELECT 0, + col0, - + col1 + + col2 AS col2 FROM tab2
----
9 values hashing to 71c895de43f8e6d0e2f84d72a1682bc1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT DISTINCT + col2 + + + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT + col2 + + + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

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

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

query I rowsort
SELECT DISTINCT col1 + - col2 + + col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + 12 * - - col0 FROM tab0 AS cor0
----
1044
1164
180

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE + col1 * - col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 72 FROM tab0 AS cor0 WHERE + 38 + col2 / - ( + col0 ) IS NOT NULL
----
-72

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

query I rowsort
SELECT col1 + - + 63 + - - 3 AS col1 FROM tab1
----
-13
-46
-55

query I rowsort
SELECT DISTINCT + col1 * + - 91 AS col0 FROM tab0
----
-1911
-7371
-91

query II rowsort
SELECT col2, + 56 AS col2 FROM tab1
----
59
56
68
56
96
56

query III rowsort
SELECT ALL * FROM tab0 WHERE + 22 <= - col2 + col0 + col2
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT 77 AS col2, + col1 + + + col1 FROM tab1
----
77
10
77
28
77
94

query II rowsort
SELECT - col2, - col1 * col2 * - - col2 AS col2 FROM tab1
----
-59
-17405
-68
-217328
-96
-129024

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - col1 + 62 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - col1 + 62 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-497
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 36 FROM tab2 AS cor0 WHERE NOT col0 + + - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-497
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 36 FROM tab2 AS cor0 WHERE NOT col0 + + - col0 IS NOT NULL
----

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / - 18 IS NULL
----

query I rowsort
SELECT + - 46 AS col1 FROM tab1 AS cor0
----
-46
-46
-46

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

query II rowsort
SELECT DISTINCT + col2 * + + ( col1 ) + col1 AS col2, + col1 + + col0 FROM tab2 AS cor0
----
1224
97
3157
141
3953
142

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT DISTINCT - 37 DIV - col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT - 37 / - col1 FROM tab1
----
0
2
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NOT - ( + ( col0 ) ) IS NULL AND ( 6 ) NOT IN ( col1 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT ALL - 43 DIV + col1 col0 FROM tab0
----
-2
-43
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-508
SELECT ALL - 43 / + col1 col0 FROM tab0
----
-2
-43
0

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

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

query I rowsort
SELECT + 51 + col0 FROM tab1 WHERE NULL IS NULL
----
102
136
142

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL 24 + - COUNT( * ) AS col1 FROM tab1 WHERE NOT - col2 + + col2 NOT IN ( - 62 )
----
24

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL 24 + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 + + col2 NOT IN ( - 62 )
----
24

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-513
SELECT + - col1 / - - col0 col2 FROM tab2 AS cor0
----
-1
-1
0

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

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

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

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

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

query I rowsort
SELECT + 38 - - col2 AS col2 FROM tab2
----
61
78
96

query I rowsort
SELECT - col0 - - 2 FROM tab0
----
-13
-85
-95

query I rowsort
SELECT + col2 FROM tab2 WHERE - + col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + - col2 * + 56 + - 83 AS col1 FROM tab0 AS cor0
----
-2715
-5627
-643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 18 ) col2 FROM tab1 cor0 WHERE NOT col0 + - + 63 IS NOT NULL
----

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE - col0 / + + ( + - 1 ) + col0 <= + col0
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + 44 IN ( + - col2, col0, + 95 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT - SUM( ALL 6 ) col2 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-526
SELECT DISTINCT - SUM ( ALL 6 ) col2 FROM tab0
----
-18

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT + col0 ) FROM tab2 WHERE NOT - col1 NOT IN ( col2 + + 55, + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT + col0 ) FROM tab2 WHERE NOT - col1 NOT IN ( col2 + + 55, + col0 )
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col1 + col2 AS col1 FROM tab0 AS cor0
----
101
472
6689

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

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

query I rowsort
SELECT - ( + 51 ) AS col1 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-532
SELECT DISTINCT col0 + - + CAST( NULL AS SIGNED ) / + col0 + - col1 + 96 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT col0 + - + CAST ( NULL AS INTEGER ) / + col0 + - col1 + 96 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * ( - col0 ) + + + 89 + + col0 FROM tab1 AS cor0
----
-4756
-4841
-6008

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col0 + - 81 - 43 FROM tab2 AS cor0
----
46
-170
64
-188
75
-199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col0 + - 66
----

query I rowsort
SELECT + + 95 * + 24 * - 93 + + + col0 AS col1 FROM tab2 AS cor0
----
-211965
-211976
-211994

query I rowsort
SELECT ALL - - col2 + - col0 + + - col2 - - 85 * + 63 * - + 89 * - 98 AS col0 FROM tab0 AS cor0
----
46706213
46706223
46706295

query II rowsort
SELECT 52 AS col1, col2 * - col1 AS col1 FROM tab0 AS cor0
----
52
-210
52
-3807
52
-99

query I rowsort
SELECT + 44 * col0 AS col0 FROM tab2
----
2024
2816
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL - 14 * + ( - COUNT( * ) ) AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - 14 * + ( - COUNT ( * ) ) AS col2 FROM tab1
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT + 4 + + 26 * - COUNT( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT + 4 + + 26 * - COUNT ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT - + 31 + + 75 AS col2 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-545
SELECT col2 + + col2 FROM tab1 WHERE + 97 BETWEEN - col0 AND + CAST( - 61 AS DECIMAL ) * + col1 + - - 7 + - + col0
----

skipif mysql # not compatible
query I rowsort label-545
SELECT col2 + + col2 FROM tab1 WHERE + 97 BETWEEN - col0 AND + CAST ( - 61 AS REAL ) * + col1 + - - 7 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-546
SELECT - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + ( - + 16 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT DISTINCT COUNT( * ) * - 17 * - - COUNT( * ) - + MIN( - + col0 ) DIV + COUNT( * ) col0 FROM tab2
----
-128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-548
SELECT DISTINCT COUNT ( * ) * - 17 * - - COUNT ( * ) - + MIN ( - + col0 ) / + COUNT ( * ) col0 FROM tab2
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT + COUNT( * ) DIV + + 4 - + - 86 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-549
SELECT + COUNT ( * ) / + + 4 - + - 86 FROM tab0
----
86

query I rowsort
SELECT - col0 * - col1 * + col0 AS col0 FROM tab2 AS cor0
----
107916
315392
376875

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + COUNT( * ) * 42 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-552
SELECT + COUNT ( * ) * 42 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
129

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

skipif mysql # not compatible
query I rowsort label-553
SELECT COUNT ( * ) * - 27 AS col2 FROM tab0 AS cor0
----
-81

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-557
SELECT - ( - - CAST( + col0 AS SIGNED ) ) * + col0, col0 FROM tab1
----
-2601
51
-7225
85
-8281
91

skipif mysql # not compatible
query II rowsort label-557
SELECT - ( - - CAST ( + col0 AS INTEGER ) ) * + col0, col0 FROM tab1
----
-2601
51
-7225
85
-8281
91

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT - ( MAX( DISTINCT + 75 ) ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-558
SELECT - ( MAX ( DISTINCT + 75 ) ) FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT DISTINCT MAX( DISTINCT + col2 ) * + COUNT( * ) - - 92 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
573

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT MAX ( DISTINCT + col2 ) * + COUNT ( * ) - - 92 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
573

query II rowsort
SELECT col1, + col1 - + + col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT ALL - col0 DIV col0 + - 12 AS col1 FROM tab2 cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - col0 / col0 + - 12 AS col1 FROM tab2 cor0
----
-13
-13
-13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-563
SELECT ALL - CAST( 27 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - CAST ( 27 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-27
-27
-27

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 67 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 > - - 29 + + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + 14 + - - 72 AS col2 FROM tab2 AS cor0
----
86
86
86

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

query I rowsort
SELECT + 19 + - 99 + + - col1 FROM tab1 cor0
----
-127
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL - 27 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - 27 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( col0, - col0, + 40, - col0 + - 41 + - + col1, ( + - col1 ) )
----

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

query I rowsort
SELECT ALL + + col0 * + - col0 + - - 71 AS col2 FROM tab2 AS cor0
----
-2045
-4025
-5554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-575
SELECT DISTINCT + 2 * - + CAST( col2 AS SIGNED ) + - + col0 * - col2 + col0 FROM tab2 AS cor0
----
1058
2544
4309

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT + 2 * - + CAST ( col2 AS INTEGER ) + - + col0 * - col2 + col0 FROM tab2 AS cor0
----
1058
2544
4309

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - COUNT( * ) + - - SUM( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0 WHERE col2 + - + col2 * + ( + 37 ) * + col1 + + - col2 IN ( col2 - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT - COUNT ( * ) + - - SUM ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0 WHERE col2 + - + col2 * + ( + 37 ) * + col1 + + - col2 IN ( col2 - col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < 48
----

onlyif mysql # DIV for integer division: 
query II rowsort label-578
SELECT col1, + 63 DIV - - col1 col1 FROM tab2
----
51
1
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-578
SELECT col1, + 63 / - - col1 col1 FROM tab2
----
51
1
67
0
77
0

query II rowsort
SELECT col2, + col0 * col2 FROM tab2
----
23
1058
40
2560
58
4350

query I rowsort
SELECT - 56 - + 86 * 78 * - 7 AS col1 FROM tab0 AS cor0
----
46900
46900
46900

query I rowsort
SELECT DISTINCT - col2 * - col2 * + 56 AS col2 FROM tab0 AS cor0
----
123704
548856
5600

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL - 22 * - - COUNT( * ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - 22 * - - COUNT ( * ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT DISTINCT + col1 DIV - + col2 + - col2 FROM tab0 cor0
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + col1 / - + col2 + - col2 FROM tab0 cor0
----
-12
-48
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-584
SELECT DISTINCT CAST( NULL AS SIGNED ) * 30, - MAX( ALL - + 76 ) AS col1 FROM tab0 cor0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-584
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 30, - MAX ( ALL - + 76 ) AS col1 FROM tab0 cor0
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT ALL - 83 DIV + - 80 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - 83 / + - 80 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 cor0 WHERE NOT ( NULL NOT IN ( 85 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - SUM( + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 * 42 * - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - SUM ( + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 * 42 * - col1 > NULL
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - - 16 < + col0 * 14
----

query I rowsort
SELECT + ( + 10 ) AS col0 FROM tab0
----
10
10
10

query II rowsort
SELECT - - col2 - - - col0 AS col2, col0 * - + 22 FROM tab1 WHERE NOT 37 IS NOT NULL
----

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

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 12 * - 49 FROM tab1
----
-588
-588
-588

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

skipif mysql # not compatible
query I rowsort label-596
SELECT - COUNT ( - + 43 ) / COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 30 * + + 6 FROM tab0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT SUM( ALL - col1 ) * + 3 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-598
SELECT SUM ( ALL - col1 ) * + 3 FROM tab0
----
-309

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

skipif mysql # not compatible
query I rowsort label-599
SELECT CAST ( + + 21 AS INTEGER ) AS col2 FROM tab0
----
21
21
21

query I rowsort
SELECT ALL - col0 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-601
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <> - CAST( + + 0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-601
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <> - CAST ( + + 0 AS REAL )
----

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

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

query II rowsort
SELECT col0 + - col2 AS col0, + 47 FROM tab2
----
17
47
23
47
24
47

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT - MAX( ALL + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-604
SELECT - MAX ( ALL + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

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

query I rowsort
SELECT ALL + ( 29 ) * - ( + col2 ) AS col1 FROM tab2
----
-1160
-1682
-667

query II rowsort
SELECT 21 AS col1, - 73 FROM tab1 AS cor0
----
21
-73
21
-73
21
-73

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

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

query II rowsort
SELECT - 21, + 72 AS col1 FROM tab0 AS cor0
----
-21
72
-21
72
-21
72

query I rowsort
SELECT ALL + col2 * col2 + col1 + + + col0 AS col2 FROM tab0 AS cor0
----
208
2305
9899

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-611
SELECT DISTINCT - 55 + COUNT ( * ) col1 FROM tab1 AS cor0
----
-52

query II rowsort
SELECT ALL - + 91 - col2 AS col0, 48 FROM tab2 AS cor0
----
-114
48
-131
48
-149
48

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

query I rowsort
SELECT DISTINCT - col0 - col0 - + - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-615
SELECT DISTINCT col0 + + + CAST( - col1 AS SIGNED ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT col0 + + + CAST ( - col1 AS INTEGER ) FROM tab2
----
-13
-5
8

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

query I rowsort
SELECT DISTINCT col1 - - + col2 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT col2 + - 32 AS col0 FROM tab0
----
-22
15
67

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

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

query I rowsort
SELECT DISTINCT + col2 + - col0 + 65 AS col2 FROM tab1 AS cor0
----
110
39
42

query I rowsort
SELECT ALL col2 * 1 + - 0 AS col1 FROM tab1 cor0 WHERE NOT 15 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT MAX( - 93 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-622
SELECT MAX ( - 93 ) FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT + 4 * + MIN( ALL - col0 ) FROM tab1 cor0
----
-364

skipif mysql # not compatible
query I rowsort label-623
SELECT + 4 * + MIN ( ALL - col0 ) FROM tab1 cor0
----
-364

onlyif mysql # DIV for integer division: 
query II rowsort label-624
SELECT DISTINCT col1 AS col2, - col2 DIV + 27 + - col2 AS col0 FROM tab1 AS cor0
----
14
-99
47
-70
5
-61

skipif mysql # not compatible
query II rowsort label-624
SELECT DISTINCT col1 AS col2, - col2 / + 27 + - col2 AS col0 FROM tab1 AS cor0
----
14
-99
47
-70
5
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL SUM( 18 ) col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-626
SELECT ALL SUM ( 18 ) col1 FROM tab2 AS cor0
----
54

query II rowsort
SELECT + col0 AS col0, col1 + - col1 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL + MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + ( + - col1 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-632
SELECT ( + + MAX( DISTINCT col2 ) ) DIV - 10 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-632
SELECT ( + + MAX ( DISTINCT col2 ) ) / - 10 FROM tab2
----
-5

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - 24 + - col2 * - col1 BETWEEN col0 * 64 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + - col0 * col0 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - COUNT( * ) FROM tab1 WHERE NOT + 26 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + 26 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 * 42 FROM tab1
----
-2142
-3570
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT 65 + + COUNT( + + 49 ) AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-638
SELECT 65 + + COUNT ( + + 49 ) AS col1 FROM tab1
----
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT NULL <> NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT + MAX( - 18 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-640
SELECT + MAX ( - 18 ) FROM tab0
----
-18

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

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - SUM ( DISTINCT col0 ) FROM tab0
----
-199

query I rowsort
SELECT - col2 * - + 15 + - col1 AS col0 FROM tab0 AS cor0
----
129
1484
624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT - + 27 + + COUNT( * ) - COUNT( ALL + + 84 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-644
SELECT - + 27 + + COUNT ( * ) - COUNT ( ALL + + 84 ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + 87 + - col0 AS col1 FROM tab0 cor0
----
-10
0
72

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

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

query I rowsort
SELECT DISTINCT - - 20 + col0 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT ALL - col2 - 2 AS col0 FROM tab0 AS cor0
----
-101
-12
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-649
SELECT ALL + col1 + - 40 - - - 76 + + CAST( + 65 AS SIGNED ) * + col2 * + + 84 * col1 - + ( ( + col0 ) ) + - col1 AS col2, - col0 * col2 * col1 FROM tab2
----
16816620
-197120
21217369
-291450
6404418
-53958

skipif mysql # not compatible
query II rowsort label-649
SELECT ALL + col1 + - 40 - - - 76 + + CAST ( + 65 AS INTEGER ) * + col2 * + + 84 * col1 - + ( ( + col0 ) ) + - col1 AS col2, - col0 * col2 * col1 FROM tab2
----
16816620
-197120
21217369
-291450
6404418
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 * col2 * - col0 col0 FROM tab1
----
-186048
-190570
-235144

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT 38 * + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2
----
342

skipif mysql # not compatible
query I rowsort label-651
SELECT 38 * + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2
----
342

query I rowsort
SELECT + col1 * + 58 AS col2 FROM tab2
----
2958
3886
4466

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-655
SELECT DISTINCT 12, col0 DIV + - col1 AS col0 FROM tab0
----
12
-4
12
-97
12
0

skipif mysql # not compatible
query II rowsort label-655
SELECT DISTINCT 12, col0 / + - col1 AS col0 FROM tab0
----
12
-4
12
-97
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL MIN( DISTINCT 36 ) - 82 * SUM( DISTINCT - - col1 ) FROM tab0
----
-8410

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL MIN ( DISTINCT 36 ) - 82 * SUM ( DISTINCT - - col1 ) FROM tab0
----
-8410

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL - SUM( - - 19 ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - SUM ( - - 19 ) AS col1 FROM tab2
----
-57

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

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

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> - ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - + 96 * 42 FROM tab1 WHERE NOT - + col1 IS NULL
----
-4032
-4032
-4032

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

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

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

query I rowsort
SELECT 48 AS col0 FROM tab0 cor0
----
48
48
48

query I rowsort
SELECT ALL col0 * + - 3 AS col1 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-667
SELECT + col2 * + col0 * - 73 AS col2, ( - CAST( NULL AS DECIMAL ) ) col0 FROM tab2
----
-186880
NULL
-317550
NULL
-77234
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-667
SELECT + col2 * + col0 * - 73 AS col2, ( - CAST ( NULL AS REAL ) ) col0 FROM tab2
----
-186880
NULL
-317550
NULL
-77234
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT + COUNT( * ) * - 48 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT + COUNT ( * ) * - 48 FROM tab2
----
-144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT 76 DIV + 4 FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-670
SELECT 76 / + 4 FROM tab1
----
19
19
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-672
SELECT ALL - col2, - 30 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-672
SELECT ALL - col2, - 30 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

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

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

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL MAX ( - ( + 8 ) ) FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-675
SELECT DISTINCT col1 * ( + col1 ) + - + ( - ( + col0 ) ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
110
NULL
2300
NULL
247
NULL

skipif mysql # not compatible
query II rowsort label-675
SELECT DISTINCT col1 * ( + col1 ) + - + ( - ( + col0 ) ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
110
NULL
2300
NULL
247
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - ( COUNT( * ) ) + + + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-676
SELECT - ( COUNT ( * ) ) + + + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
12

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

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

query I rowsort
SELECT DISTINCT + + col1 + + + col2 AS col0 FROM tab1 AS cor0
----
110
115
64

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

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

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL + 0 + - ( - COUNT ( * ) ) - + - 20 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
29

query II rowsort
SELECT DISTINCT + + col0 + + col2 AS col0, col2 + col0 AS col2 FROM tab1 AS cor0
----
144
144
147
147
159
159

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT + 72 * + MAX( ALL + 77 ) AS col2 FROM tab2 AS cor0
----
5544

skipif mysql # not compatible
query I rowsort label-682
SELECT + 72 * + MAX ( ALL + 77 ) AS col2 FROM tab2 AS cor0
----
5544

query I rowsort
SELECT ALL + ( + 40 ) FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT COUNT( * ) + 65 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT COUNT ( * ) + 65 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT MAX( + col2 ) col2, + 46 AS col1 FROM tab1 AS cor0
----
96
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-685
SELECT MAX ( + col2 ) col2, + 46 AS col1 FROM tab1 AS cor0
----
96
46

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

query I rowsort
SELECT + ( col1 ) - + - ( + + ( 35 ) ) - + col2 FROM tab2 AS cor0
----
44
63
72

query I rowsort
SELECT + + 1 * + col2 * col1 + - col1 - - - 13 * - col1 AS col0 FROM tab1 AS cor0
----
1512
355
3760

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT - 32 - COUNT( * ) AS col2, ( - - 1 ) AS col0 FROM tab2 AS cor0
----
-35
1

skipif mysql # not compatible
query II rowsort label-690
SELECT - 32 - COUNT ( * ) AS col2, ( - - 1 ) AS col0 FROM tab2 AS cor0
----
-35
1

query I rowsort
SELECT col1 - - 14 FROM tab2
----
65
81
91

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NOT NULL = NULL )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-694
SELECT + 87, col0 + col0 * ( - ( - col0 ) ) * col0 DIV - - 48 + - col1 DIV col2 - 68 col0 FROM tab2
----
87
2003
87
5456
87
8795

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-694
SELECT + 87, col0 + col0 * ( - ( - col0 ) ) * col0 / - - 48 + - col1 / col2 - 68 col0 FROM tab2
----
87
2003
87
5456
87
8795

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + 37 * + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1887
3145
3367

query II rowsort
SELECT ALL col0, - 71 FROM tab0 cor0
----
15
-71
87
-71
97
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-699
SELECT - MAX( + - ( + - CAST( + col0 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-699
SELECT - MAX ( + - ( + - CAST ( + col0 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT ALL - col1 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-701
SELECT ALL + 46, - 53 - - + COUNT( + - col2 ) AS col0 FROM tab2 cor0
----
46
-50

skipif mysql # not compatible
query II rowsort label-701
SELECT ALL + 46, - 53 - - + COUNT ( + - col2 ) AS col0 FROM tab2 cor0
----
46
-50

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

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

query I rowsort
SELECT DISTINCT + 37 * - 44 FROM tab1 AS cor0
----
-1628

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

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

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + + COUNT ( * ) * + - MAX ( col2 ) FROM tab0 AS cor0
----
-297

query I rowsort
SELECT col0 + - + 29 FROM tab1
----
22
56
62

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

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

query I rowsort
SELECT + 68 + col1 FROM tab0
----
149
69
89

query I rowsort
SELECT - col2 * + col0 + - 1 AS col0 FROM tab0 AS cor0 WHERE - 60 <= - col0 * + col2 + - 42 * 90
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

query II rowsort
SELECT ALL - 93 + - 58, col0 + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-151
111
-151
114
-151
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-713
SELECT - CAST( + MAX( + - col0 ) AS SIGNED ) AS col1, 37 FROM tab0 AS cor0
----
15
37

skipif mysql # not compatible
query II rowsort label-713
SELECT - CAST ( + MAX ( + - col0 ) AS INTEGER ) AS col1, 37 FROM tab0 AS cor0
----
15
37

query I rowsort
SELECT ( - + 76 ) - - + col1 FROM tab1
----
-29
-62
-71

query II rowsort
SELECT DISTINCT 61, + 82 AS col0 FROM tab1
----
61
82

query I rowsort
SELECT col0 + + - 66 AS col2 FROM tab0 AS cor0
----
-51
21
31

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT ALL + + 73 DIV + + 19 + - col2 + - - 73 FROM tab2 AS cor0
----
18
36
53

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + + 73 / + + 19 + - col2 + - - 73 FROM tab2 AS cor0
----
18
36
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT DISTINCT - 33 + + MAX( DISTINCT col2 ) + - 88 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT - 33 + + MAX ( DISTINCT col2 ) + - 88 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - - col2 AS col1 FROM tab2 cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL 26 + COUNT( * ) + - + SUM( col0 ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL 26 + COUNT ( * ) + - + SUM ( col0 ) FROM tab1 AS cor0
----
-198

query I rowsort
SELECT DISTINCT + 9 + + col0 AS col0 FROM tab0 AS cor0
----
106
24
96

query I rowsort
SELECT DISTINCT col1 - col2 * + - 89 AS col0 FROM tab1
----
5256
6099
8558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT DISTINCT - COUNT( * ) * 17 DIV MAX( DISTINCT - 51 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - COUNT ( * ) * 17 / MAX ( DISTINCT - 51 ) FROM tab0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT + - MIN( DISTINCT col2 ) * 39 + + 97 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
-293

skipif mysql # not compatible
query I rowsort label-726
SELECT + - MIN ( DISTINCT col2 ) * 39 + + 97 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
-293

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT - col1 DIV - + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-727
SELECT - col1 / - + col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-728
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + MAX( 67 ) * + SUM( 7 ) FROM tab2
----
NULL
1407

skipif mysql # not compatible
query II rowsort label-728
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + MAX ( 67 ) * + SUM ( 7 ) FROM tab2
----
NULL
1407

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

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

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

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

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

query II rowsort
SELECT DISTINCT 60 AS col0, + ( 12 ) AS col1 FROM tab1 AS cor0
----
60
12

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-736
SELECT ALL * FROM tab1 cor0 WHERE NOT - 42 + - CAST( NULL AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-736
SELECT ALL * FROM tab1 cor0 WHERE NOT - 42 + - CAST ( NULL AS INTEGER ) NOT IN ( col1 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT + - COUNT( * ) AS col0, - 99 - - COUNT( * ) FROM tab2 WHERE - ( - col2 ) + + 48 IS NOT NULL
----
-3
-96

skipif mysql # not compatible
query II rowsort label-738
SELECT + - COUNT ( * ) AS col0, - 99 - - COUNT ( * ) FROM tab2 WHERE - ( - col2 ) + + 48 IS NOT NULL
----
-3
-96

query II rowsort
SELECT + 57 AS col2, + col0 * + col0 FROM tab0
----
57
225
57
7569
57
9409

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

query I rowsort
SELECT + col2 * + + col0 * 39 FROM tab2
----
169650
41262
99840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL + MIN( DISTINCT + - 76 ) * + COUNT( * ) FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL + MIN ( DISTINCT + - 76 ) * + COUNT ( * ) FROM tab0
----
-228

query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT + + col0 + 3 * col1 AS col0 FROM tab0 AS cor0
----
100
150
258

query I rowsort
SELECT col0 + + col0 * col0 FROM tab0 AS cor0
----
240
7656
9506

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT DISTINCT - COUNT( * ) * + COUNT( * ), + MAX( + + col2 ) AS col2 FROM tab2
----
-9
58

skipif mysql # not compatible
query II rowsort label-747
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ), + MAX ( + + col2 ) AS col2 FROM tab2
----
-9
58

query I rowsort
SELECT - + col1 - col2 * - col2 + 29 - + col1 AS col1 FROM tab0 AS cor0
----
2076
87
9828

query I rowsort
SELECT - 13 - + col0 AS col1 FROM tab2 cor0
----
-59
-77
-88

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-751
SELECT DISTINCT + + 59 DIV - CAST( MAX( + + 62 ) AS SIGNED ) * SUM( DISTINCT - col0 ) + + + 45 + - 79 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT + + 59 / - CAST ( MAX ( + + 62 ) AS INTEGER ) * SUM ( DISTINCT - col0 ) + + + 45 + - 79 FROM tab2 AS cor0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - MAX( ALL col0 ) * 45 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - MAX ( ALL col0 ) * 45 FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-753
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
6

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

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

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

query I rowsort
SELECT - col2 * - - col1 + - col2 FROM tab0 AS cor0
----
-198
-220
-3854

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-757
SELECT + CAST ( - 56 AS INTEGER ) col0 FROM tab2
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT 18 * + - MAX( ALL col2 ) FROM tab2
----
-1044

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT 18 * + - MAX ( ALL col2 ) FROM tab2
----
-1044

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 7 NOT BETWEEN - - col0 - - 57 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT DISTINCT COUNT( * ) * 64 AS col0 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT COUNT ( * ) * 64 AS col0 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - - MAX( DISTINCT - - col2 ) * ( + COUNT( * ) ) col1 FROM tab1 AS cor0
----
288

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

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

query II rowsort
SELECT col2 AS col2, + 83 AS col0 FROM tab1 AS cor0
----
59
83
68
83
96
83

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

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

query I rowsort
SELECT ALL 3 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query II rowsort
SELECT ALL 36 + col2, + col2 AS col2 FROM tab1
----
104
68
132
96
95
59

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

skipif mysql # not compatible
query II rowsort label-771
SELECT col2 * - col0 * + CAST ( NULL AS INTEGER ) + - col0 - - col2 + 42 * - + 24 + - 12 * + col2 AS col2, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT DISTINCT + col1 DIV col0 + - 10 AS col0 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT + col1 / col0 + - 10 AS col0 FROM tab1 cor0
----
-10

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

query I rowsort
SELECT - col2 + - col2 * - + col0 FROM tab0
----
658
860
9504

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT - MIN( + + 26 ) DIV + + 27 * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-778
SELECT - MIN ( + + 26 ) / + + 27 * - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 * col2 * - + col2 AS col0 FROM tab0
----
-1000
-103823
-970299

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT SUM( - 53 ) AS col1 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-780
SELECT SUM ( - 53 ) AS col1 FROM tab2
----
-159

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-782
SELECT ALL - col0, 85 * - col2 * col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-782
SELECT ALL - col0, 85 * - col2 * col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL + ( - - col2 ) * - + col0 + col1 + - col0 FROM tab0 AS cor0
----
-639
-936
-9699

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) * - + ( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 31 AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 31 AS col2 FROM tab2 AS cor0
----
40

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 - - 46 FROM tab2
----
110
121
92

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT - + COUNT( * ) DIV 3 + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 97 * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - + COUNT ( * ) / 3 + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 97 * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AND NULL
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-795
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN NULL AND col0 * - 1 / CAST( + col2 AS SIGNED ) / - col2 - - 54 * 34 + - ( col0 ) + + + col0
----

skipif mysql # not compatible
query III rowsort label-795
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN NULL AND col0 * - 1 / CAST ( + col2 AS INTEGER ) / - col2 - - 54 * 34 + - ( col0 ) + + + col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT col2 DIV ( col1 ) * - col2 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-797
SELECT DISTINCT col2 / ( col1 ) * - col2 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT + 98 * + - COUNT( * ) AS col0 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT + 98 * + - COUNT ( * ) AS col0 FROM tab1
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT CAST( ( - - 8 ) AS SIGNED ) FROM tab0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-799
SELECT CAST ( ( - - 8 ) AS INTEGER ) FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT SUM( DISTINCT + col1 ) DIV - + 90 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-800
SELECT SUM ( DISTINCT + col1 ) / - + 90 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL COUNT( * ) * - 78 AS col1 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL COUNT ( * ) * - 78 AS col1 FROM tab1
----
-234

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

skipif mysql # not compatible
query I rowsort label-802
SELECT ( + COUNT ( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

query II rowsort
SELECT col0 AS col1, - 21 FROM tab2 AS cor0
----
46
-21
64
-21
75
-21

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

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

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

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

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

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NOT col2 <= + col1 * - col1 * + 94
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE + 5 NOT IN ( - - col1, col0 / - col1, - col0, 50, - + 30, - 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + 32 + col1 FROM tab0 cor0
----
113
33
53

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

query I rowsort
SELECT DISTINCT + 97 + - col1 FROM tab0 AS cor0
----
16
76
96

query I rowsort
SELECT + 88 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT - ( - - 98 ) FROM tab0
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT + col1 * - col1 DIV + - col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-818
SELECT + col1 * - col1 / + - col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + + 42 * - col0 FROM tab1 AS cor0
----
-2142
-3570
-3822

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-821
SELECT ALL ( - col0 ) FROM tab1 AS cor0 WHERE NOT - CAST( col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL ( - col0 ) FROM tab1 AS cor0 WHERE NOT - CAST ( col2 AS REAL ) IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col2, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

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

skipif mysql # not compatible
query II rowsort label-823
SELECT ALL + COUNT ( * ) AS col1, + 86 - - - 63 FROM tab1
----
3
23

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

query I rowsort
SELECT 30 * + col1 AS col0 FROM tab0
----
2430
30
630

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT - 21 AS col0, - COUNT( + + col1 ) AS col0 FROM tab0
----
-21
-3

skipif mysql # not compatible
query II rowsort label-826
SELECT - 21 AS col0, - COUNT ( + + col1 ) AS col0 FROM tab0
----
-21
-3

query II rowsort
SELECT + col1 AS col2, - 74 FROM tab1
----
14
-74
47
-74
5
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + - col1 ) col1 FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT + 31 * + - ( col0 ) FROM tab0
----
-2697
-3007
-465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-831
SELECT DISTINCT + CAST( + col0 AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL OR NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + CAST ( + col0 AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 * 73 * + 28 FROM tab1
----
-120596
-138992
-196224

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= + col2 AND NOT + col2 + + + 20 <> NULL
----

query I rowsort
SELECT DISTINCT 55 + 34 * - col2 + col0 FROM tab0 cor0
----
-1528
-198
-3214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT ALL - - COUNT( * ) * + ( COUNT( * ) ) DIV + ( - - COUNT( * ) ) + - 4 + - 37 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL - - COUNT ( * ) * + ( COUNT ( * ) ) / + ( - - COUNT ( * ) ) + - 4 + - 37 FROM tab0 AS cor0
----
-38

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

query I rowsort
SELECT + ( ( + - col2 ) ) * - col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT ALL + col1 - - CAST( - col0 AS SIGNED ) FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + col1 - - CAST ( - col0 AS INTEGER ) FROM tab0
----
-66
-96
66

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

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

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

query I rowsort
SELECT 37 * - - 29 FROM tab0
----
1073
1073
1073

onlyif mysql # aggregate syntax: 
query II rowsort label-842
SELECT ALL COUNT( * ), + 98 AS col2 FROM tab1
----
3
98

skipif mysql # not compatible
query II rowsort label-842
SELECT ALL COUNT ( * ), + 98 AS col2 FROM tab1
----
3
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 62 NOT IN ( - - 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + + COUNT( * ) - + SUM( DISTINCT - 76 ) FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-844
SELECT + + COUNT ( * ) - + SUM ( DISTINCT - 76 ) FROM tab1 cor0
----
79

query II rowsort
SELECT DISTINCT - 6 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-6
-23
-6
-40
-6
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - 28 NOT BETWEEN col0 + 71 AND + col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - 60 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE + 83 BETWEEN ( + 18 ) AND 20
----

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

skipif mysql # not compatible
query I rowsort label-851
SELECT COUNT ( DISTINCT + 55 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT SUM( DISTINCT + col0 ) * + 27 FROM tab2 WHERE NOT ( col2 * col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT SUM ( DISTINCT + col0 ) * + 27 FROM tab2 WHERE NOT ( col2 * col1 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( - 68 ) FROM tab1 WHERE NOT NULL < ( - 81 )
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT - col2 > col2 + 89
----
-59
-68
-96

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

query I rowsort
SELECT col0 + + ( col2 ) * 42 FROM tab1 WHERE col2 IS NOT NULL
----
2563
2947
4083

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * - 61 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-860
SELECT * FROM tab1 WHERE NOT col1 < ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-860
SELECT * FROM tab1 WHERE NOT col1 < ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 + col1 * + col1 FROM tab0
----
528
6576
98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 ) AND - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE ( col2 * 89 ) = + 32
----
0

skipif mysql # not compatible
query I rowsort label-863
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE ( col2 * 89 ) = + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT + COUNT( 43 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-864
SELECT + COUNT ( 43 ) FROM tab0
----
3

query I rowsort
SELECT col0 FROM tab1 WHERE col1 < ( 91 )
----
51
85
91

query I rowsort
SELECT + 47 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col1 * 96 - + col0 FROM tab0 WHERE + 95 * col2 IS NOT NULL
----
-193
-2103
-7791

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-868
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) >= ( - col1 * - 74 )
----

skipif mysql # not compatible
query III rowsort label-868
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) >= ( - col1 * - 74 )
----

query I rowsort
SELECT DISTINCT col2 + - 10 * col0 FROM tab0 AS cor0
----
-103
-860
-871

query I rowsort
SELECT DISTINCT + - col1 * 31 AS col0 FROM tab0 AS cor0
----
-2511
-31
-651

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

skipif mysql # not compatible
query I rowsort label-871
SELECT - COUNT ( - 74 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 + col1 * - 75 FROM tab2 AS cor0
----
-3848
-5083
-5815

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

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( + ( col0 ) ) BETWEEN ( + col1 ) AND + col1 * col0
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL - 47 + + COUNT( * ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - 47 + + COUNT ( * ) FROM tab1 AS cor0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col0 + col1 col2 FROM tab2 AS cor0
----
-2065
-4019
-5558

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

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

query I rowsort
SELECT - col0 * + 43 - + col1 FROM tab2 AS cor0
----
-2029
-2829
-3292

query I rowsort
SELECT ALL - 53 + - 18 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT col0 DIV col2 - 98 * + col2 FROM tab1 AS cor0
----
-5781
-6663
-9408

skipif mysql # not compatible
query I rowsort label-880
SELECT col0 / col2 - 98 * + col2 FROM tab1 AS cor0
----
-5781
-6663
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT DISTINCT col1 DIV + col1 - col2 * 49 AS col0 FROM tab0
----
-2302
-4850
-489

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT col1 / + col1 - col2 * 49 AS col0 FROM tab0
----
-2302
-4850
-489

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT ALL + col0 DIV - 28 - - col2 AS col0 FROM tab2
----
22
38
56

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL + col0 / - 28 - - col2 AS col0 FROM tab2
----
22
38
56

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 < ( + 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL 25 - + + COUNT( * ) col2 FROM tab1
----
22

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

query I rowsort
SELECT ALL - 58 + col2 * col1 FROM tab0 WHERE NOT + 68 + 44 IS NULL
----
152
3749
41

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-887
SELECT + COUNT ( * ) + + 54 col1 FROM tab1
----
57

query I rowsort
SELECT DISTINCT col0 - - + col1 * col2 FROM tab0
----
196
297
3822

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

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

query I rowsort
SELECT DISTINCT 94 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 / - ( - 86 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + 64 * - + SUM( DISTINCT 99 ) AS col0 FROM tab2 cor0
----
-6336

skipif mysql # not compatible
query I rowsort label-891
SELECT + 64 * - + SUM ( DISTINCT 99 ) AS col0 FROM tab2 cor0
----
-6336

query I rowsort
SELECT + + col1 * + 44 AS col2 FROM tab0 AS cor0
----
3564
44
924

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 96 + + col1 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 + col1 col1 FROM tab0 WHERE - 38 IN ( col0 * 4 )
----

query II rowsort
SELECT - col0 AS col2, col2 * + - 82 FROM tab0 cor0
----
-15
-3854
-87
-820
-97
-8118

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

query II rowsort
SELECT 79 AS col2, 99 FROM tab2 AS cor0
----
79
99
79
99
79
99

query II rowsort
SELECT ALL col0 AS col0, + 47 AS col2 FROM tab2 AS cor0
----
46
47
64
47
75
47

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT + + MAX( + 78 ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + + MAX ( + 78 ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT + - 15 AS col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT - ( - - col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT col1 * - + 63 * - col1 AS col1 FROM tab2 AS cor0
----
163863
282807
373527

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

query I rowsort
SELECT ALL - ( ( 12 ) ) FROM tab1
----
-12
-12
-12

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

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

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

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

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

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + - col1 = - + 70
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-910
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) - + col2 + col1 * - CAST( NULL AS SIGNED ) BETWEEN ( col1 + 27 ) AND + 87 + + 24 * 9 AND NOT ( + 3 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-910
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) - + col2 + col1 * - CAST ( NULL AS INTEGER ) BETWEEN ( col1 + 27 ) AND + 87 + + 24 * 9 AND NOT ( + 3 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * - - col0, + 50 * col2 AS col1 FROM tab2
----
2116
1150
4096
2000
5625
2900

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

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

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

skipif mysql # not compatible
query I rowsort label-913
SELECT + 84 / + + col1 AS col0 FROM tab2
----
1
1
1

query II rowsort
SELECT 38 * + - col0, col2 FROM tab0
----
-3306
10
-3686
99
-570
47

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT + col2 + 39 * col1 NOT IN ( - col2 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 91 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT ALL + 75 col0, COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
75
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-920
SELECT ALL + 75 col0, COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
75
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT ALL - col2 + CAST( - col1 AS SIGNED ) * - 59 + + col1 FROM tab1 AS cor0
----
241
2752
744

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - col2 + CAST ( - col1 AS INTEGER ) * - 59 + + col1 FROM tab1 AS cor0
----
241
2752
744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-922
SELECT col0 + col1 - + CAST( - col1 AS SIGNED ) + + + CAST( col0 AS SIGNED ) + + col2 * + col1 col0 FROM tab2 cor0
----
1367
3362
4170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-922
SELECT col0 + col1 - + CAST ( - col1 AS INTEGER ) + + + CAST ( col0 AS INTEGER ) + + col2 * + col1 col0 FROM tab2 cor0
----
1367
3362
4170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT ALL - CAST( - + col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - CAST ( - + col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + ( + col0 ) - + col1 AS col2 FROM tab0
----
-66
66
96

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT CAST( - col2 AS SIGNED ) + + col1 + - col2 AS col1 FROM tab1 WHERE NULL <= ( + + 27 )
----

skipif mysql # not compatible
query I rowsort label-928
SELECT CAST ( - col2 AS INTEGER ) + + col1 + - col2 AS col1 FROM tab1 WHERE NULL <= ( + + 27 )
----

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

query I rowsort
SELECT col1 * + col2 * col2 AS col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT DISTINCT - ( + col0 ) - col1 AS col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + 34 * + col0 * - col1 FROM tab0 AS cor0
----
-3298
-41310
-62118

query II rowsort
SELECT ALL col0, - col0 * + col0 FROM tab1 cor0
----
51
-2601
85
-7225
91
-8281

query I rowsort
SELECT ALL 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

query I rowsort
SELECT - ( 15 ) * + + col0 * col0 AS col1 FROM tab2
----
-31740
-61440
-84375

query I rowsort
SELECT - 34 AS col1 FROM tab2 cor0 WHERE NOT ( - 92 ) IS NULL
----
-34
-34
-34

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

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

query I rowsort
SELECT - ( 28 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-940
SELECT DISTINCT - - 3 * col0 AS col2, 78 DIV - 52 FROM tab0 cor0
----
261
-1
291
-1
45
-1

skipif mysql # not compatible
query II rowsort label-940
SELECT DISTINCT - - 3 * col0 AS col2, 78 / - 52 FROM tab0 cor0
----
261
-1
291
-1
45
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-942
SELECT ALL + COUNT( * ) DIV - ( + MIN( - col0 ) ) + 31 AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + COUNT ( * ) / - ( + MIN ( - col0 ) ) + 31 AS col0 FROM tab2 AS cor0
----
31

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

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

query II rowsort
SELECT + - col1 * + 36 AS col2, 27 + - + 71 * + 91 * + ( col1 ) FROM tab2 cor0
----
-1836
-329484
-2412
-432860
-2772
-497470

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * col1 col2, - col1 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
-210
18270
-3807
57105
-99
9603

query I rowsort
SELECT ALL + 82 + ( + 0 ) FROM tab0 cor0 WHERE NOT 13 / + 99 * - col2 NOT IN ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT DISTINCT + SUM( + 37 ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT + SUM ( + 37 ) FROM tab2
----
111

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

query I rowsort
SELECT + col2 FROM tab1 WHERE - + 18 < - 4
----
59
68
96

query I rowsort
SELECT ALL 24 + + + 71 AS col0 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT + - 7 + col1 FROM tab0 AS cor0
----
-6
14
74

query I rowsort
SELECT ALL - 31 + - + col1 AS col0 FROM tab0 AS cor0
----
-112
-32
-52

query I rowsort
SELECT DISTINCT + ( - - col0 ) + + + 90 * + 93 + + - 61 + - - col2 FROM tab0 AS cor0
----
8371
8406
8505

query I rowsort
SELECT DISTINCT + col2 + - ( - col1 ) * - + col0 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT - - col1 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 <> 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

skipif mysql # not compatible
query I rowsort label-959
SELECT + - ( + 43 ) * + COUNT ( * ) FROM tab2 cor0
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col0 col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT + + 3 DIV + + col1 - 31 AS col0 FROM tab2 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-961
SELECT + + 3 / + + col1 - 31 AS col0 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + - MIN( ALL col0 ) + 83 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + - MIN ( ALL col0 ) + 83 FROM tab1 AS cor0
----
32

query I rowsort
SELECT + col0 - col1 * 97 AS col0 FROM tab0 AS cor0
----
-1950
-7842
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * + 81 + - 47 + 62 + + col0 - + col1 col1 FROM tab0 AS cor0
----
1002
1134
1164

query II rowsort
SELECT + 72 * + ( - 49 ) - col2, 49 AS col0 FROM tab0 cor0
----
-3538
49
-3575
49
-3627
49

onlyif mysql # DIV for integer division: 
query II rowsort label-966
SELECT + 75 DIV col1 - + + col2 + + - col1 AS col1, col1 * - 80 * + col1 - - col0 AS col2 FROM tab2 cor0
----
-117
-474256
-124
-359045
-73
-208034

skipif mysql # not compatible
query II rowsort label-966
SELECT + 75 / col1 - + + col2 + + - col1 AS col1, col1 * - 80 * + col1 - - col0 AS col2 FROM tab2 cor0
----
-117
-474256
-124
-359045
-73
-208034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-967
SELECT ALL - - ( + SUM( DISTINCT col1 ) ) - - + SUM( col0 ) DIV COUNT( * ) col2 FROM tab2 AS cor0
----
256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-967
SELECT ALL - - ( + SUM ( DISTINCT col1 ) ) - - + SUM ( col0 ) / COUNT ( * ) col2 FROM tab2 AS cor0
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL + COUNT( - col0 ) - + 61 AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL + COUNT ( - col0 ) - + 61 AS col0 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT + col2 + - 34 + 40 - col1 * + 9 FROM tab1
----
-24
-349
20

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

query I rowsort
SELECT + - 24 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 19 AS col0 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT 55, 95 * ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
55
-285

skipif mysql # not compatible
query II rowsort label-973
SELECT 55, 95 * ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
55
-285

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

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT ALL - 22 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - 22 / + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-976
SELECT + ( + col1 ) AS col2, 53 * - col0 * - - CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-976
SELECT + ( + col1 ) AS col2, 53 * - col0 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL SUM( 41 ) FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL SUM ( 41 ) FROM tab2 AS cor0
----
123

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab0 AS cor0 WHERE - col0 = - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT DISTINCT + COUNT( * ) + - AVG ( ALL + col0 ) + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT + COUNT ( * ) + - AVG ( ALL + col0 ) + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 68 FROM tab0 WHERE NOT ( - col2 * + col0 + + - col1 + + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 91 / ( + - 60 ) * col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND 39
----

query I rowsort
SELECT ALL 91 * + col1 FROM tab0
----
1911
7371
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT DISTINCT - MIN( col1 ) DIV - - 42 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - MIN ( col1 ) / - - 42 AS col1 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + col0 + - col0 + + col0 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-991
SELECT ALL + + col0 + + col0 DIV - col2, col0 * - col1 AS col2 FROM tab2 AS cor0
----
44
-2346
63
-4928
74
-5025

skipif mysql # not compatible
query II rowsort label-991
SELECT ALL + + col0 + + col0 / - col2, col0 * - col1 AS col2 FROM tab2 AS cor0
----
44
-2346
63
-4928
74
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-992
SELECT DISTINCT 1 * - + CAST( NULL AS DECIMAL ) + - col1 / - - ( - + col0 ) AS col2, - 90 FROM tab0 AS cor0
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-992
SELECT DISTINCT 1 * - + CAST ( NULL AS REAL ) + - col1 / - - ( - + col0 ) AS col2, - 90 FROM tab0 AS cor0
----
NULL
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-993
SELECT ALL - SUM( - col1 ) * + COUNT( * ) AS col0, - COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
198
0

skipif mysql # not compatible
query II rowsort label-993
SELECT ALL - SUM ( - col1 ) * + COUNT ( * ) AS col0, - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
198
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) + + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
118
136
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - 25 NOT BETWEEN 76 - - col1 AND - col0
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-998
SELECT - CAST ( - - MAX ( DISTINCT + 38 ) AS INTEGER ) AS col2 FROM tab2
----
-38

query I rowsort
SELECT ALL + col0 + - col0 * 69 AS col2 FROM tab2 WHERE NULL >= NULL
----

query II rowsort
SELECT 58 * - + 50 AS col1, col2 * + + 24 + - + 89 * + ( - 91 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2900
10475
-2900
8339
-2900
9227

query I rowsort
SELECT 11 * col1 * col0 * + 11 FROM tab2
----
283866
596288
608025

query I rowsort
SELECT - + 76 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * col0 < NULL
----

query I rowsort
SELECT DISTINCT - 95 * + ( - - ( col0 ) ) FROM tab1
----
-4845
-8075
-8645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1004
SELECT + COUNT( * ) AS col2, CAST( + - MAX( - 63 ) AS SIGNED ) col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1004
SELECT + COUNT ( * ) AS col2, CAST ( + - MAX ( - 63 ) AS INTEGER ) col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1005
SELECT - 73 AS col0, 54 / + + AVG ( ALL + - CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-73
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1005
SELECT - 73 AS col0, 54 / + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-73
NULL

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

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

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

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

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

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

query I rowsort
SELECT + ( col1 ) * 41 * - col2 AS col2 FROM tab0 AS cor0
----
-156087
-4059
-8610

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL - COUNT( * ) * - COUNT( - col1 ) + + 28 AS col0 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - COUNT ( * ) * - COUNT ( - col1 ) + + 28 AS col0 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT ALL + COUNT( * ) * - COUNT( * ), - 58 AS col1 FROM tab2
----
-9
-58

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL + COUNT ( * ) * - COUNT ( * ), - 58 AS col1 FROM tab2
----
-9
-58

query II rowsort
SELECT DISTINCT 51 AS col0, 8 FROM tab1
----
51
8

query I rowsort
SELECT + 18 * - ( + + AVG ( ALL 83 ) ) FROM tab0 WHERE col1 + + 89 IS NULL
----
NULL

query I rowsort
SELECT - col2 / col2 AS col2 FROM tab0 cor0 WHERE NULL > - col1 + 45 + col2 + - 88 + 43
----

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

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

query I rowsort
SELECT ALL - col1 * + 12 + col2 * + - 0 + ( + col1 ) + + 53 AS col1 FROM tab1 AS cor0
----
-101
-2
-464

query I rowsort
SELECT + col2 + col1 + + + 17 AS col2 FROM tab1 AS cor0
----
127
132
81

query I rowsort
SELECT + col2 * + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1019
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col1 - + + col2, col2 col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT DISTINCT - 66 - - col2 + - 0 DIV - ( + + col1 ) AS col0 FROM tab0
----
-19
-56
33

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - 66 - - col2 + - 0 / - ( + + col1 ) AS col0 FROM tab0
----
-19
-56
33

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( + col2 ) <> ( + col0 + + col1 + col1 )
----

query I rowsort
SELECT - + col0 * + 42 * + + 64 FROM tab1 AS cor0
----
-137088
-228480
-244608

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1023
SELECT ALL - col0 / + - col2 col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1024
SELECT ALL + COUNT( * ) DIV - 50 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL + COUNT ( * ) / - 50 AS col0 FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab2, tab1 AS cor0
----
7

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col1 * - col0 FROM tab2 AS cor0
----
-23
-2346
-40
-4928
-58
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT 62 AS col0, COUNT( * ) AS col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
62
0

skipif mysql # not compatible
query II rowsort label-1031
SELECT 62 AS col0, COUNT ( * ) AS col1 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----
62
0

query I rowsort
SELECT - col2 * col2 + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-3391
-4486
-9151

query I rowsort
SELECT col2 + - col0 + col0 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + + 26 col0 FROM tab0 AS cor0
----
731
896
9629

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 55 > + 29 + 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT + MAX( DISTINCT col0 ) + + + SUM( ALL - ( - + col0 ) ) col0 FROM tab1 AS cor0
----
318

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1036
SELECT DISTINCT + MAX ( DISTINCT col0 ) + + + SUM ( ALL - ( - + col0 ) ) col0 FROM tab1 AS cor0
----
318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT - - 25 FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST( - - col1 AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query I rowsort label-1037
SELECT - - 25 FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST ( - - col1 AS INTEGER ), - col0 )
----

query I rowsort
SELECT ALL - col0 * - 10 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT 70 + + - COUNT( * ) * - + 77 FROM tab2
----
301

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT 70 + + - COUNT ( * ) * - + 77 FROM tab2
----
301

query I rowsort
SELECT DISTINCT + col0 - + - 1 + col2 AS col0 FROM tab2
----
105
134
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT COUNT( 76 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1042
SELECT COUNT ( 76 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1043
SELECT + 64 DIV + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1043
SELECT + 64 / + COUNT ( * ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT SUM( DISTINCT - 69 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1044
SELECT SUM ( DISTINCT - 69 ) FROM tab0
----
-69

query I rowsort
SELECT DISTINCT col1 + col1 + + + 95 * + 30 FROM tab2 cor0 WHERE NOT ( NULL ) <> + - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL + 67 + + MIN( + col0 ) FROM tab2 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL + 67 + + MIN ( + col0 ) FROM tab2 AS cor0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT + 23 + - 59 DIV - COUNT( * ) AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-1047
SELECT + 23 + - 59 / - COUNT ( * ) AS col2 FROM tab2
----
42

query I rowsort
SELECT col1 * - 32 * + + 61 FROM tab2
----
-130784
-150304
-99552

query I rowsort
SELECT DISTINCT + 67 * + col1 AS col1 FROM tab1
----
3149
335
938

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 98 <> ( + col0 )
----

query I rowsort
SELECT + + 57 AS col0 FROM tab1 AS cor0
----
57
57
57

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT COUNT( DISTINCT 68 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT COUNT ( DISTINCT 68 ) AS col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT + 78 DIV - + 2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT + 78 / - + 2 FROM tab0
----
-39

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 16 + 50 * - 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT + + SUM( ALL - col0 ) + 1 + - COUNT( * ) col0 FROM tab0 cor0
----
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1057
SELECT DISTINCT + + SUM ( ALL - col0 ) + 1 + - COUNT ( * ) col0 FROM tab0 cor0
----
-201

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + 24 + + ( - - COUNT( + - col0 ) ) AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 24 + + ( - - COUNT ( + - col0 ) ) AS col1 FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - 58 * col0 * + - 83 IN ( col1, 45 + + col0 )
----

query I rowsort
SELECT col0 * - col2 + - + col1 FROM tab0
----
-786
-891
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT 31 + + COUNT( * ) AS col0 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1063
SELECT 31 + + COUNT ( * ) AS col0 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL 40 + - COUNT( * ) AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL 40 + - COUNT ( * ) AS col0 FROM tab2
----
37

query II rowsort
SELECT DISTINCT - 57, col0 FROM tab2 AS cor0
----
-57
46
-57
64
-57
75

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

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

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

query I rowsort
SELECT - - 77 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT - - 72 col2, SUM( col1 ) AS col0 FROM tab1 AS cor0
----
72
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1069
SELECT - - 72 col2, SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
72
66

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - ( - 9 ) - + COUNT( + + 2 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1072
SELECT - ( - 9 ) - + COUNT ( + + 2 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + 60 - + ( col2 ) AS col2 FROM tab0
----
-39
13
50

query II rowsort
SELECT 15 * col2 - col1 * col0, col0 FROM tab1
----
-3257
91
460
85
726
51

query I rowsort
SELECT - - 54 AS col0 FROM tab2 WHERE - col2 <= - + 34
----
54
54

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 51 AND + 32 * - ( - - 61 )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE - col0 + 1 * - 6 >= - + 63 + + col2
----

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

skipif mysql # not compatible
query I rowsort label-1078
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL NOT IN ( - col0 * col1 ) )
----
0

query I rowsort
SELECT DISTINCT - + ( + col2 ) * col2 FROM tab0 cor0
----
-100
-2209
-9801

query I rowsort
SELECT - - 23 + 42 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT ( + col0 ) FROM tab2 WHERE NOT + - col0 = + col1
----
46
64
75

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

query I rowsort
SELECT DISTINCT - 40 * 64 FROM tab1
----
-2560

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT DISTINCT + 57 DIV col1 col2 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1084
SELECT DISTINCT + 57 / col1 col2 FROM tab2
----
0
1

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

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

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

query I rowsort
SELECT ALL 76 * - col1 AS col1 FROM tab1 AS cor0
----
-1064
-3572
-380

query II rowsort
SELECT ALL 78, - col1 * - col2 + - + col1 + - 15 * - - 3 * + 68 AS col2 FROM tab2 AS cor0
----
78
-1938
78
-57
78
759

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab2 AS cor0 WHERE NOT col0 * - col1 = 92 * col0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col1 < col1
----
51
85
91

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

query III rowsort
SELECT DISTINCT 30, col2, + col2 FROM tab0
----
9 values hashing to 5eb4d9ef53ce8b20be1002eabc5511f8

query I rowsort
SELECT col1 - + 66 FROM tab1 WHERE NOT - - 19 <> col1 + + + col1 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 col2, ( - col2 ) FROM tab2 WHERE NOT col1 = NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT DISTINCT - col0 DIV 98 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT - col0 / 98 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1098
SELECT - - 4 AS col0, col2 - ( - + CAST( + col1 AS SIGNED ) ) + col1 FROM tab1 AS cor0
----
4
124
4
162
4
69

skipif mysql # not compatible
query II rowsort label-1098
SELECT - - 4 AS col0, col2 - ( - + CAST ( + col1 AS INTEGER ) ) + col1 FROM tab1 AS cor0
----
4
124
4
162
4
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1099
SELECT ALL - + 12 DIV + COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - + 12 / + COUNT ( * ) FROM tab2 AS cor0
----
-4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT SUM( col1 ) + - COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT SUM ( col1 ) + - COUNT ( * ) AS col2 FROM tab1
----
63

query I rowsort
SELECT ALL - AVG ( - - 26 ) AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT 0 + 27 * + - ( - - col0 ) * + - col1 FROM tab2
----
133056
135675
63342

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT COUNT( * ) * - 8 + - COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-1106
SELECT COUNT ( * ) * - 8 + - COUNT ( * ) AS col0 FROM tab1
----
-27

query I rowsort
SELECT 25 + - 27 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT - col2 + + - 29 + col2 * + 71 + col2 + - + col0 * col1 * + 78 AS col1 FROM tab1 AS cor0
----
-28990
-328807
-48905

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT - + COUNT( - col2 ) + 11 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - + COUNT ( - col2 ) + 11 FROM tab0 AS cor0
----
8

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

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

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

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

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

query I rowsort
SELECT ALL + ( + - 78 ) AS col2 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - - 22 AS col1 FROM tab1 AS cor0
----
22

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

query I rowsort
SELECT ALL + 81 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL - SUM( ALL - 89 ) col0 FROM tab0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1119
SELECT ALL - SUM ( ALL - 89 ) col0 FROM tab0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT COUNT( - + col1 ) col0 FROM tab1
----
3

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

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

skipif mysql # not compatible
query I rowsort label-1121
SELECT COUNT ( - col2 ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

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

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT + 0 * + + SUM ( + 4 ) FROM tab0
----
0

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

skipif mysql # not compatible
query II rowsort label-1123
SELECT - col0 * - + CAST ( NULL AS REAL ) / col1 AS col2, - col0 / 65 AS col2 FROM tab1
----
NULL
-1
NULL
-1
NULL
0

query I rowsort
SELECT ALL 81 * - col2 FROM tab0
----
-3807
-8019
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT - CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1125
SELECT - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

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

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

query I rowsort
SELECT + col2 * 66 AS col2 FROM tab1
----
3894
4488
6336

query I rowsort
SELECT DISTINCT 54 * 33 + + col2 AS col2 FROM tab0
----
1792
1829
1881

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT + ( - 19 ) + 60 DIV + col2 AS col0 FROM tab0 AS cor0
----
-13
-18
-19

skipif mysql # not compatible
query I rowsort label-1129
SELECT + ( - 19 ) + 60 / + col2 AS col0 FROM tab0 AS cor0
----
-13
-18
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT COUNT( * ) + - 84 + + + MAX( - - 58 ) AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-1130
SELECT COUNT ( * ) + - 84 + + + MAX ( - - 58 ) AS col0 FROM tab0
----
-23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT + - 32 DIV - - col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT + - 32 / - - col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT ALL COUNT( * ) * 84 AS col1 FROM tab1 cor0
----
252

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL COUNT ( * ) * 84 AS col1 FROM tab1 cor0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT DISTINCT + 13 + col1 + - + col2 + - col1 - - col0 + - CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-4
108
177

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT + 13 + col1 + - + col2 + - col1 - - col0 + - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-4
108
177

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

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

query II rowsort
SELECT DISTINCT + - 41 AS col0, ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE col2 * - - col0 IS NULL
----

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

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

query I rowsort
SELECT + col2 - - - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + ( + - 99 ) FROM tab2 AS cor0
----
-22
-32
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - - + 56 col2 FROM tab2 AS cor0
----
114
79
96

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

query I rowsort
SELECT DISTINCT col0 + - 41 FROM tab1
----
10
44
50

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

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

query I rowsort
SELECT + - 67 * col0 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + + 98 IS NOT NULL
----

query I rowsort
SELECT ALL + + 95 AS col2 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT - 18 FROM tab2 cor0 WHERE NULL > col1
----

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

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

query I rowsort
SELECT DISTINCT + 57 * + col2 AS col1 FROM tab1
----
3363
3876
5472

query I rowsort
SELECT - 45 * - 46 AS col1 FROM tab0 AS cor0
----
2070
2070
2070

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

skipif mysql # not compatible
query II rowsort label-1152
SELECT col2 AS col2, + col1 / - + 86 * - - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT + col1 * - 48 * + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
124871
215530
284632

query I rowsort
SELECT ALL + - 69 + - - col0 AS col0 FROM tab1 AS cor0
----
-18
16
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT MIN( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1155
SELECT MIN ( DISTINCT col0 ) col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + + 33 * + col1 + - col0 + col2 FROM tab1 AS cor0
----
139
1528
507

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - MIN( col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
-51

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

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

query I rowsort
SELECT ALL 11 * - col2 AS col1 FROM tab1
----
-1056
-649
-748

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

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

query I rowsort
SELECT col1 * 2 FROM tab2
----
102
134
154

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

query I rowsort
SELECT - 61 AS col1 FROM tab2 WHERE ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT 95 DIV 68 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1164
SELECT 95 / 68 AS col2 FROM tab1
----
1
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 61 + - col2 AS col1, - col2 + col0 col2 FROM tab0 AS cor0
----
-38
-2
14
-32
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT DISTINCT - MAX( ALL + + 78 ) + 28 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT - MAX ( ALL + + 78 ) + 28 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col1 NOT BETWEEN - + col2 AND NULL
----
15
87

query I rowsort
SELECT - col0 - + 72 + - + 18 * + 48 + + col1 AS col0 FROM tab0
----
-1002
-1032
-870

query I rowsort
SELECT col1 FROM tab1 WHERE ( - - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT MAX( ALL - 23 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT MAX ( ALL - 23 ) FROM tab0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = col2 * 11
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL + + 85 * - COUNT( * ) AS col1 FROM tab0 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + + 85 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-255

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

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

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

query I rowsort
SELECT 37 * + 12 FROM tab0
----
444
444
444

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT COUNT( * ) * - AVG ( - + 11 ) * - ( COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT COUNT ( * ) * - AVG ( - + 11 ) * - ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - SUM( ALL - - 74 ) AS col1 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-1181
SELECT - SUM ( ALL - - 74 ) AS col1 FROM tab1
----
-222

query II rowsort
SELECT col2, col0 + col0 FROM tab1
----
59
170
68
182
96
102

query II rowsort
SELECT DISTINCT 39, 54 AS col1 FROM tab2
----
39
54

query I rowsort
SELECT ALL + col1 * + 9 AS col1 FROM tab1
----
126
423
45

query II rowsort
SELECT + 23 AS col2, ( col2 ) + + 80 + + col1 AS col1 FROM tab0 AS cor0
----
23
111
23
180
23
208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT - ( - COUNT( * ) ) + - 16 AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT - ( - COUNT ( * ) ) + - 16 AS col1 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT col1 * col0 + + col0 + - col1 FROM tab2 AS cor0
----
2341
4915
5033

query I rowsort
SELECT DISTINCT + col1 + 27 + + + col1 - + - 87 * - 80 AS col0 FROM tab2 AS cor0
----
-6779
-6799
-6831

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

query I rowsort
SELECT ALL - 74 AS col2 FROM tab2 WHERE NOT + 21 BETWEEN NULL AND - col1 * - 38
----

query I rowsort
SELECT + col1 * col1 * - 16 + + - ( + - col2 ) FROM tab1
----
-3040
-341
-35276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 62 AS col1, 96 col0 FROM tab2 cor0
----
-62
96
-62
96
-62
96

query I rowsort
SELECT + col2 + - col1 - col2 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + 76 * - 26 + - + col2 AS col1 FROM tab2 AS cor0
----
-126504
-148258
-90919

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + 76 * - 26 + - + col2 AS col1 FROM tab2 AS cor0
----
-126504
-148258
-90919

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

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

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

query I rowsort
SELECT - 95 - col2 AS col2 FROM tab1
----
-154
-163
-191

query II rowsort
SELECT col0 - - col0 AS col0, col2 FROM tab0 AS cor0
----
174
10
194
99
30
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 60 col1 FROM tab0 AS cor0
----
-1260
-4860
-60

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

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + 24 AS col2 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT + + 25 AS col1 FROM tab2 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT + + 11 * - MIN( - ( + - 17 ) ) FROM tab1 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + + 11 * - MIN ( - ( + - 17 ) ) FROM tab1 AS cor0
----
-187

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1208
SELECT ALL MIN ( + col0 ) col1 FROM tab2
----
46

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

query I rowsort
SELECT ALL col0 * - - 54 FROM tab2
----
2484
3456
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT - + MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT - + MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT - + 34 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-34

query I rowsort
SELECT ALL + 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - 17 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL - SUM( - - 82 ) + - - 21 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - SUM ( - - 82 ) + - - 21 FROM tab1 AS cor0
----
-225

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

query I rowsort
SELECT col2 FROM tab0 WHERE + + 68 < + + col0
----
10
99

query I rowsort
SELECT - 0 * + 12 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1222
SELECT DISTINCT + MIN( DISTINCT col1 ) AS col1, COUNT( * ) AS col0 FROM tab2
----
51
3

skipif mysql # not compatible
query II rowsort label-1222
SELECT DISTINCT + MIN ( DISTINCT col1 ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
51
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT ALL - 26 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + col1 * + col1 NOT BETWEEN NULL AND - + 67 * - + ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - 26 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + col1 * + col1 NOT BETWEEN NULL AND - + 67 * - + ( + col0 )
----

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

query I rowsort
SELECT DISTINCT + col1 * - col2 * + 78 * - + col2 AS col0 FROM tab1 AS cor0
----
10063872
1357590
16951584

query I rowsort
SELECT ALL + col2 * 91 + col0 FROM tab2 AS cor0
----
2139
3704
5353

query II rowsort
SELECT col1, + col1 - + + col2 AS col2 FROM tab1 AS cor0
----
14
-82
47
-21
5
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT ALL col2 * + col2 + - - 99 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + col0 * + 73 NOT BETWEEN + CAST( NULL AS SIGNED ) AND + + 43 + 60
----

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL col2 * + col2 + - - 99 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + col0 * + 73 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + + 43 + 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT 37 DIV + 57 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1229
SELECT 37 / + 57 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1230
SELECT - 3 DIV COUNT( DISTINCT - ( - col2 ) ), 64 * + ( + - COUNT( ALL + 4 ) ) AS col1 FROM tab2
----
-1
-192

skipif mysql # not compatible
query II rowsort label-1230
SELECT - 3 / COUNT ( DISTINCT - ( - col2 ) ), 64 * + ( + - COUNT ( ALL + 4 ) ) AS col1 FROM tab2
----
-1
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL COUNT( * ) * - 4 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL COUNT ( * ) * - 4 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - 83 * 99 col1 FROM tab0 WHERE + - col2 + - col2 * ( + col1 ) IS NOT NULL
----
15
-8217
87
-8217
97
-8217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1233
SELECT DISTINCT - - ( + COUNT( * ) ) DIV CAST( + + MAX( DISTINCT col2 ) AS SIGNED ) * 78 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT - - ( + COUNT ( * ) ) / CAST ( + + MAX ( DISTINCT col2 ) AS INTEGER ) * 78 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT ALL - ( - - col1 ) DIV + 28 FROM tab2 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - ( - - col1 ) / + 28 FROM tab2 cor0
----
-1
-2
-2

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

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - + col0 / 42 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + - 22 AND - col1 * ( + col1 ) * col2 * + - 11 / 14 / + ( - 7 ) + + col1 * - 25 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT DISTINCT - ( 80 ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
-80
10
-80
47
-80
99

query I rowsort
SELECT col1 + + 33 AS col0 FROM tab2
----
100
110
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT MAX( DISTINCT + - CAST( col2 AS SIGNED ) ) * + 45 * - - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
-7968

skipif mysql # not compatible
query I rowsort label-1240
SELECT MAX ( DISTINCT + - CAST ( col2 AS INTEGER ) ) * + 45 * - - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT 14 + 28 + + COUNT( + + col0 ) * + MIN( - col1 ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-1241
SELECT 14 + 28 + + COUNT ( + + col0 ) * + MIN ( - col1 ) FROM tab2
----
-189

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 * col2 AND - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT SUM( DISTINCT - ( + col1 ) ) FROM tab1 WHERE ( NULL <= + col2 + + col0 + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT SUM ( DISTINCT - ( + col1 ) ) FROM tab1 WHERE ( NULL <= + col2 + + col0 + 80 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1244
SELECT ALL - + AVG ( DISTINCT - col0 ) / CAST( NULL AS SIGNED ) * - - CAST( 24 AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - + AVG ( DISTINCT - col0 ) / CAST ( NULL AS INTEGER ) * - - CAST ( 24 AS REAL ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT + 68 AS col1, - COUNT( * ) AS col2 FROM tab2 cor0 WHERE - 93 IS NOT NULL
----
68
-3

skipif mysql # not compatible
query II rowsort label-1246
SELECT + 68 AS col1, - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE - 93 IS NOT NULL
----
68
-3

query II rowsort
SELECT - col1 AS col2, 85 AS col0 FROM tab2 AS cor0
----
-51
85
-67
85
-77
85

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

query I rowsort
SELECT ALL + - col2 + - col1 + - - col1 FROM tab2 AS cor0
----
-23
-40
-58

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 54 IS NULL AND NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 - ( 24 ) col1 FROM tab2
----
52
52
52

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

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

query I rowsort
SELECT DISTINCT - 29 + col1 - - + col2 * + + col1 * - col0 FROM tab2
----
-197072
-291412
-53936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 72 col0 FROM tab0
----
-15
-25
57

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

query I rowsort
SELECT + col1 * + - 34 + - 96 FROM tab2
----
-1830
-2374
-2714

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

skipif mysql # not compatible
query I rowsort label-1258
SELECT + + CAST ( NULL AS INTEGER ) * - - 53 + + + COUNT ( * ) * - 77 / - 5 + + COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1259
SELECT DISTINCT + ( - + 25 ), + COUNT ( + 10 ) AS col0 FROM tab0 AS cor0
----
-25
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT + 86 AS col0, + SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
86
-66

skipif mysql # not compatible
query II rowsort label-1260
SELECT + 86 AS col0, + SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
86
-66

query I rowsort
SELECT DISTINCT 95 - + - col0 AS col1 FROM tab1
----
146
180
186

query I rowsort
SELECT DISTINCT - col0 + - 82 * + col1 FROM tab2
----
-4228
-5569
-6378

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1265
SELECT - - col0 * + CAST( + 95 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4845
8075
8645

skipif mysql # not compatible
query I rowsort label-1265
SELECT - - col0 * + CAST ( + 95 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4845
8075
8645

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

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

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

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

query II rowsort
SELECT - + col2 * - - col2, + col1 * 38 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
-1600
-225238
-3364
-170507
-529
-98792

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

query II rowsort
SELECT + + col0 * + - col2 AS col2, + 75 + - col2 AS col2 FROM tab1 AS cor0
----
-4896
-21
-5015
16
-6188
7

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + ( - - 34 ) * + col0 + - 7 col2 FROM tab0
----
15
503
87
2951
97
3291

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL - COUNT( * ) * 93 AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - COUNT ( * ) * 93 AS col1 FROM tab0
----
-279

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 53 = + - 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 37 * + + 24 * + + col1 * + col0, + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
377400
59
3797976
68
634032
96

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

query I rowsort
SELECT - ( + - 86 ) AS col0 FROM tab0
----
86
86
86

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

query I rowsort
SELECT + col1 * 26 AS col2 FROM tab0 AS cor0
----
2106
26
546

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

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

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

query I rowsort
SELECT DISTINCT - 75 + ( 15 ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT - CAST( col2 AS SIGNED ) * - col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1286
SELECT - CAST ( col2 AS INTEGER ) * - col1 FROM tab0
----
210
3807
99

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

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

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

query I rowsort
SELECT ALL col1 + - col1 * col2 AS col0 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT - CAST( + col1 AS SIGNED ) * col0 AS col2 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-1290
SELECT - CAST ( + col1 AS INTEGER ) * col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - 17 * - col1 FROM tab1
----
238
799
85

query I rowsort
SELECT ALL 28 - - col1 AS col1 FROM tab1
----
33
42
75

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

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL SUM ( + col0 ) * COUNT ( * ) FROM tab1
----
681

query I rowsort
SELECT ALL - col0 * col1 + col0 AS col2 FROM tab0
----
-1200
-1740
0

query III rowsort
SELECT * FROM tab2 WHERE col0 < + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT + SUM( 87 ) + 29 AS col1 FROM tab2
----
290

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + SUM ( 87 ) + 29 AS col1 FROM tab2
----
290

query I rowsort
SELECT 50 * col0 AS col1 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT DISTINCT + col1 * 94 FROM tab0
----
1974
7614
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1299
SELECT ALL - COUNT( * ) DIV 36 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - COUNT ( * ) / 36 AS col0 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT - 79 * col1 FROM tab1
----
-1106
-3713
-395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1302
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) col0 FROM tab2
----
1

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

query I rowsort
SELECT - ( ( 83 ) ) FROM tab1
----
-83
-83
-83

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

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT - ( MIN ( ALL - 97 ) ) AS col1 FROM tab1
----
97

query I rowsort
SELECT 36 AS col2 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
36
36
36

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - 18 + + COUNT ( * ) FROM tab0
----
-15

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

query I rowsort
SELECT ALL 26 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT DISTINCT 39 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT 39 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT MAX( 2 ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1313
SELECT MAX ( 2 ) AS col0 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1314
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ALL - COUNT( * ) * 93 FROM tab2 WHERE NULL NOT IN ( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - COUNT ( * ) * 93 FROM tab2 WHERE NULL NOT IN ( 53 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col1 FROM tab0 AS cor0 WHERE NOT col2 <> + col2 * 35 - 23
----

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

query I rowsort
SELECT 43 FROM tab1 AS cor0 WHERE NOT 26 * + col1 <= col0 + - col2 / col0
----
43
43
43

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

query I rowsort
SELECT ALL - 69 FROM tab2 AS cor0 WHERE NOT ( 20 ) NOT BETWEEN ( - col0 ) AND ( col0 )
----
-69
-69
-69

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

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

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

query I rowsort
SELECT 62 * - col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + 4 * + 70 AS col2 FROM tab1 AS cor0
----
280
280
280

query I rowsort
SELECT DISTINCT - ( 20 ) FROM tab2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT ( + + col0 ) DIV - col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1326
SELECT ( + + col0 ) / - col1 FROM tab1
----
-1
-17
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + col0 * col1 col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL >= ( - col0 * + 92 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * 12 ) NOT IN ( 2 * + col2 )
----

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

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

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

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL = ( col2 * + 52 )
----

query I rowsort
SELECT DISTINCT col0 + + col0 * + 3 FROM tab2
----
184
256
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 12 col0 FROM tab0 AS cor0
----
3
75
85

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

query I rowsort
SELECT DISTINCT col2 + - + col2 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - - 49 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT + SUM( ALL 97 ) * + 77 AS col0 FROM tab0
----
22407

skipif mysql # not compatible
query I rowsort label-1339
SELECT + SUM ( ALL 97 ) * + 77 AS col0 FROM tab0
----
22407

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

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

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

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT SUM ( ALL + col0 ) * COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
678

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

query I rowsort
SELECT 96 - + 92 FROM tab0 cor0
----
4
4
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT - 98 - 53 DIV + col2 * - 82 AS col1 FROM tab1 cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-1346
SELECT - 98 - 53 / + col2 * - 82 AS col1 FROM tab1 cor0
----
-98
-98
-98

query I rowsort
SELECT - col2 * + - col2 - 69 AS col1 FROM tab2 AS cor0
----
1531
3295
460

query I rowsort
SELECT col2 - + 30 FROM tab0 AS cor0
----
-20
17
69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 - - col1 col2 FROM tab0 AS cor0
----
-97
115
32

query I rowsort
SELECT ALL col2 + - + 79 + + col2 FROM tab2
----
-33
1
37

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT 91 IS NULL AND NOT - col0 NOT BETWEEN - col1 + col0 AND ( NULL )
----

query I rowsort
SELECT col1 * + col1 + - col2 + + 33 AS col0 FROM tab2
----
2611
4464
5922

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1356
SELECT CAST( NULL AS SIGNED ) * + + CAST( 88 AS DECIMAL ) * - - 70 - + 12 * - COUNT( * ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1356
SELECT CAST ( NULL AS INTEGER ) * + + CAST ( 88 AS REAL ) * - - 70 - + 12 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT ALL + 24 DIV - + 29 * - + col0 + - 65 AS col2 FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL + 24 / - + 29 * - + col0 + - 65 AS col2 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT - - col1 DIV - + col1 - col1 - - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1359
SELECT - - col1 / - + col1 - col1 - - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col2 * + 64 AS col1 FROM tab1 AS cor0
----
3776
4352
6144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 36 / - - 45 NOT IN ( - col1 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - + 40 * col2 col0 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT 58 / col2 FROM tab2 WHERE NOT NULL = - col1 * col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT 91 AS col1, + COUNT( * ) col0 FROM tab2 AS cor0
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1365
SELECT 91 AS col1, + COUNT ( * ) col0 FROM tab2 AS cor0
----
91
3

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

query I rowsort
SELECT 41 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
28905
35670
393723

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

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL + - COUNT ( * ) / - 5 AS col2 FROM tab1 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT - CAST( NULL AS SIGNED ) / 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT - CAST ( NULL AS INTEGER ) / 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - MAX ( DISTINCT 45 ) FROM tab2 cor0
----
-45

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

query I rowsort
SELECT DISTINCT + - 85 * + col2 * col0 + - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-60006
-73971
-816256

query II rowsort
SELECT col2, col2 + - col1 AS col0 FROM tab2
----
23
-28
40
-37
58
-9

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT 38 + + col2 BETWEEN - col2 AND NULL
----

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

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

query III rowsort
SELECT ALL + col1 AS col0, 7 AS col0, 68 - - 45 FROM tab1
----
9 values hashing to b52eb173ab7100d81c3e19362fe11607

query I rowsort
SELECT DISTINCT - + 53 + + + col0 AS col1 FROM tab2 AS cor0
----
-7
11
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col0 FROM tab0 AS cor0 WHERE col0 IN ( - 82 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 89 <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1384
SELECT ALL + CAST( + 98 AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1384
SELECT ALL + CAST ( + 98 AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT + 72 + + COUNT( * ) AS col1, COUNT( * ) FROM tab2 cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-1385
SELECT + 72 + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 cor0
----
75
3

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

query I rowsort
SELECT - col0 + - 47 FROM tab0 AS cor0
----
-134
-144
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1388
SELECT * FROM tab0 AS cor0 WHERE ( NOT - - CAST( NULL AS SIGNED ) < NULL )
----

skipif mysql # not compatible
query III rowsort label-1388
SELECT * FROM tab0 AS cor0 WHERE ( NOT - - CAST ( NULL AS INTEGER ) < NULL )
----

query I rowsort
SELECT ALL + 47 * + ( ( - col1 ) ) FROM tab0 cor0
----
-3807
-47
-987

query I rowsort
SELECT ALL + 46 FROM tab2 AS cor0 WHERE + col1 < NULL
----

query II rowsort
SELECT - 81, 13 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-81
13
-81
13
-81
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL + 18 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL + 18 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 53 <= ( + - col1 )
----

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

query I rowsort
SELECT DISTINCT col0 - ( 1 ) AS col0 FROM tab0 AS cor0
----
14
86
96

query II rowsort
SELECT ALL 99 - 76 * 52, col2 FROM tab2
----
-3853
23
-3853
40
-3853
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - SUM( ALL - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1397
SELECT - SUM ( ALL - col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT DISTINCT + MIN( ALL + ( - - 10 ) ) - - COUNT( * ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT + MIN ( ALL + ( - - 10 ) ) - - COUNT ( * ) AS col2 FROM tab2
----
13

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT DISTINCT COUNT( * ) AS col1, SUM( - col2 ) FROM tab1
----
3
-223

skipif mysql # not compatible
query II rowsort label-1400
SELECT DISTINCT COUNT ( * ) AS col1, SUM ( - col2 ) FROM tab1
----
3
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT - COUNT( * ) * + - COUNT( * ) * 75 AS col2 FROM tab2
----
675

skipif mysql # not compatible
query I rowsort label-1401
SELECT - COUNT ( * ) * + - COUNT ( * ) * 75 AS col2 FROM tab2
----
675

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( - col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT DISTINCT + ( - CAST( + col0 AS SIGNED ) ) * col0 + - col1 FROM tab2
----
-2167
-4173
-5692

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + ( - CAST ( + col0 AS INTEGER ) ) * col0 + - col1 FROM tab2
----
-2167
-4173
-5692

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

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL 0 / + col2 AS col1 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1407
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * 64 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1407
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * 64 FROM tab0 AS cor0
----
-192

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

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

query I rowsort
SELECT - ( - 77 ) FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT 0 * col2 * - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT col2 * 16 DIV + - ( - col2 ) AS col2 FROM tab0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-1412
SELECT col2 * 16 / + - ( - col2 ) AS col2 FROM tab0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + col1 + 33 col2 FROM tab2
----
-4
24
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT ALL col2 DIV + + 58 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL col2 / + + 58 FROM tab0
----
0
0
1

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

query I rowsort
SELECT - 51 + col2 FROM tab2
----
-11
-28
7

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

query I rowsort
SELECT + - col1 + + 70 FROM tab0 AS cor0
----
-11
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL + MAX( + 44 ) + - 75 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + MAX ( + 44 ) + - 75 FROM tab2 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT 86 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1420
SELECT 86 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL + + col0 * + col0 * col2 + - 82 AS col0 FROM tab2 AS cor0
----
163758
326168
48586

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * - col0 * - col2 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 10 - - - 13 + - 77 FROM tab1
----
-80

query II rowsort
SELECT DISTINCT 79 AS col0, 86 FROM tab0 AS cor0
----
79
86

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT + - col1 / - 53 - ( col0 ) / - 51 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 + + col1 + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT 9 - col2 DIV + 78 AS col0 FROM tab1 AS cor0
----
8
9
9

skipif mysql # not compatible
query I rowsort label-1427
SELECT 9 - col2 / + 78 AS col0 FROM tab1 AS cor0
----
8
9
9

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

query I rowsort
SELECT - col2 - + ( 71 ) AS col2 FROM tab1 AS cor0
----
-130
-139
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT - col0 + + col1 FROM tab0 AS cor0 WHERE NOT ( + ( + - ( + 48 ) ) ) < col2 + - CAST( + col0 AS SIGNED ) * - col1 AND NOT 64 IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-1430
SELECT - col0 + + col1 FROM tab0 AS cor0 WHERE NOT ( + ( + - ( + 48 ) ) ) < col2 + - CAST ( + col0 AS INTEGER ) * - col1 AND NOT 64 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL - COUNT( * ) + - 8 AS col1 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COUNT ( * ) + - 8 AS col1 FROM tab2 AS cor0
----
-11

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

query I rowsort
SELECT DISTINCT + ( - 28 ) FROM tab0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 86, col1 col0 FROM tab2 WHERE NOT ( + ( + col1 ) ) <= 70
----
86
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT DISTINCT CAST( - - col1 AS SIGNED ) * - col2 AS col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * - col2 AS col2 FROM tab1
----
-1344
-295
-3196

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

query I rowsort
SELECT - - col1 * 12 AS col2 FROM tab0 AS cor0
----
12
252
972

query I rowsort
SELECT col0 * - col1 * + + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1439
SELECT + CAST( NULL AS SIGNED ) * - col2, col1 * - col1 + - col0 AS col2, + + CAST( NULL AS SIGNED ) + ( - 83 ) FROM tab1 AS cor0
----
9 values hashing to 195d416c50d5da4afe021791e58171aa

skipif mysql # not compatible
query III rowsort label-1439
SELECT + CAST ( NULL AS INTEGER ) * - col2, col1 * - col1 + - col0 AS col2, + + CAST ( NULL AS INTEGER ) + ( - 83 ) FROM tab1 AS cor0
----
9 values hashing to 195d416c50d5da4afe021791e58171aa

query I rowsort
SELECT DISTINCT 28 * + 53 AS col1 FROM tab2
----
1484

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT ALL - 6 + - 65 DIV 2 FROM tab0 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - 6 + - 65 / 2 FROM tab0 AS cor0
----
-38
-38
-38

query II rowsort
SELECT DISTINCT 48 AS col2, - 32 - - - 61 AS col2 FROM tab0 AS cor0
----
48
-93

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT DISTINCT + 33 + - 0 * - COUNT( DISTINCT + 52 ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT + 33 + - 0 * - COUNT ( DISTINCT + 52 ) AS col2 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1447
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1447
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT + CAST( NULL AS SIGNED ) + 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-1448
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 > - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT - 72 DIV col1 + col2 * - - col2 FROM tab1 AS cor0
----
3467
4623
9211

skipif mysql # not compatible
query I rowsort label-1450
SELECT - 72 / col1 + col2 * - - col2 FROM tab1 AS cor0
----
3467
4623
9211

query I rowsort
SELECT col0 * col0 * col1 - - + col2 + - 86 FROM tab1 AS cor0
----
36098
36424
389189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1452
SELECT - 73 + + 64 + col1 + CAST( NULL AS DECIMAL ) / - ( - - 20 ) * 86 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1452
SELECT - 73 + + 64 + col1 + CAST ( NULL AS REAL ) / - ( - - 20 ) * 86 col2 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 92 ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

query I rowsort
SELECT ALL + - 23 FROM tab2 cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab0 cor0
----
98

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

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

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

query I rowsort
SELECT ( + ( + 85 ) ) FROM tab0
----
85
85
85

query II rowsort
SELECT DISTINCT 10, col2 AS col0 FROM tab1
----
10
59
10
68
10
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT SUM( ALL + + CAST( col0 AS SIGNED ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1462
SELECT SUM ( ALL + + CAST ( col0 AS INTEGER ) ) FROM tab1
----
227

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

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

query II rowsort
SELECT + + 93 * - col1, col2 FROM tab1 AS cor0
----
-1302
96
-4371
68
-465
59

query I rowsort
SELECT - + 39 * col2 FROM tab1 AS cor0
----
-2301
-2652
-3744

query I rowsort
SELECT DISTINCT - + col1 * - col2 * - + col1 * + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 49 + col1 FROM tab1 AS cor0
----
-2
-35
-44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 50 * - 3 + - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT - MIN( ALL + 55 ) AS col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1470
SELECT - MIN ( ALL + 55 ) AS col1 FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1471
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col1 * - 57 AS col2, - 51 * + col1 + - col1 col1 FROM tab2
----
NULL
-2652
NULL
-3484
NULL
-4004

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1471
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col1 * - 57 AS col2, - 51 * + col1 + - col1 col1 FROM tab2
----
NULL
-2652
NULL
-3484
NULL
-4004

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

query I rowsort
SELECT DISTINCT - col0 - - 78 AS col2 FROM tab0
----
-19
-9
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 20 <= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1475
SELECT ALL CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + + + COUNT( * ) AS col0, - COUNT( * ) AS col0, + 61 FROM tab1 AS cor0
----
NULL
-3
61

skipif mysql # not compatible
query III rowsort label-1475
SELECT ALL CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + + + COUNT ( * ) AS col0, - COUNT ( * ) AS col0, + 61 FROM tab1 AS cor0
----
NULL
-3
61

query I rowsort
SELECT DISTINCT - - col2 + col0 + 82 FROM tab0 AS cor0
----
144
179
278

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

query II rowsort
SELECT DISTINCT + col1 * + col0 + + 98 * col0, col0 FROM tab0 AS cor0
----
10353
87
2685
15
9603
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1479
SELECT - COUNT( col0 ) DIV + - 20 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT - COUNT ( col0 ) / + - 20 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1480
SELECT + + 41 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT + + 41 / - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * 67 FROM tab0 AS cor0
----
1005
5829
6499

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * 67 FROM tab0 AS cor0
----
1005
5829
6499

query II rowsort
SELECT ( + col0 ) AS col2, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL - - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT col0 + + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1485
SELECT col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1486
SELECT - + 26 * MIN( ALL + - 60 ) / + - ( MAX( ALL - col2 ) ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT - + 26 * MIN ( ALL + - 60 ) / + - ( MAX ( ALL - col2 ) ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT - MAX( DISTINCT - col1 ) col1 FROM tab1 WHERE NOT + 12 / - col0 IS NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT - MAX ( DISTINCT - col1 ) col1 FROM tab1 WHERE NOT + 12 / - col0 IS NULL
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, 39 * + col0 FROM tab2 AS cor0
----
-23
1794
-40
2496
-58
2925

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <= 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 21 AS col1, - 18 FROM tab2
----
21
-18

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

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

query I rowsort
SELECT col2 + 93 + col1 FROM tab0 AS cor0
----
124
193
221

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT + col2 + - + ( - col2 ) DIV + + col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT + col2 + - + ( - col2 ) / + + col2 FROM tab2 AS cor0
----
24
41
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL - - MIN( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL - - MIN ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT ALL col0 + - + col1 DIV col0 AS col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL col0 + - + col1 / col0 AS col0 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 = 24
----

query II rowsort
SELECT + + col2 + col2 AS col0, + col1 * - col1 FROM tab2 AS cor0
----
116
-4489
46
-2601
80
-5929

query I rowsort
SELECT DISTINCT + ( + - 34 ) + col0 FROM tab2 cor0
----
12
30
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL + COUNT( * ) * - 32 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND - - 23 + - + 85
----
-96

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL + COUNT ( * ) * - 32 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND - - 23 + - + 85
----
-96

query III rowsort
SELECT * FROM tab1 WHERE - 21 / - 1 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - 87 + - col1 FROM tab2
----
-138
-154
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT + COUNT( * ) * - - 13 AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1503
SELECT + COUNT ( * ) * - - 13 AS col0 FROM tab1
----
39

query I rowsort
SELECT + col1 * ( + - ( 22 ) ) FROM tab1
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - MAX( DISTINCT 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-1505
SELECT - MAX ( DISTINCT 24 ) FROM tab1
----
-24

query I rowsort
SELECT + col0 + 75 AS col0 FROM tab1 AS cor0 WHERE - 77 IN ( + - col1 )
----

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT ALL COUNT( * ) * COUNT( * ) * + + 62 + COUNT( * ) FROM tab1
----
561

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL COUNT ( * ) * COUNT ( * ) * + + 62 + COUNT ( * ) FROM tab1
----
561

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

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT + SUM ( - - 61 ) FROM tab0
----
183

query I rowsort
SELECT - 43 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / + col1 <> - + col2 / + 38
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, - col0 + + col2 col0 FROM tab0 AS cor0
----
10
-77
47
32
99
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT CAST( NULL AS SIGNED ) * 42 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT CAST ( NULL AS INTEGER ) * 42 AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1517
SELECT CAST( 83 AS SIGNED ) * - - col0 AS col0 FROM tab0
----
1245
7221
8051

skipif mysql # not compatible
query I rowsort label-1517
SELECT CAST ( 83 AS INTEGER ) * - - col0 AS col0 FROM tab0
----
1245
7221
8051

query III rowsort
SELECT ALL * FROM tab1 WHERE 68 NOT BETWEEN col1 * col2 + col0 * 81 + - + col2 AND 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1520
SELECT DISTINCT + 14 DIV + - COUNT( * ) + + + 96 + - 81 col2, + 43 AS col0 FROM tab1 AS cor0
----
11
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1520
SELECT DISTINCT + 14 / + - COUNT ( * ) + + + 96 + - 81 col2, + 43 AS col0 FROM tab1 AS cor0
----
11
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT - col0 DIV + 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT - col0 / + 95 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - 17 + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
181
3
77

query I rowsort
SELECT - - col1 * + + 27 AS col1 FROM tab2 AS cor0
----
1377
1809
2079

query I rowsort
SELECT ALL + 10 + - 39 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - 64 - col0 AS col1 FROM tab2 AS cor0
----
-110
-128
-139

query II rowsort
SELECT ALL col1 + - ( col2 ), 95 * + col2 AS col0 FROM tab2 AS cor0
----
28
2185
37
3800
9
5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT + CAST( - 3 AS SIGNED ) - - col1 AS col1 FROM tab1 AS cor0
----
11
2
44

skipif mysql # not compatible
query I rowsort label-1527
SELECT + CAST ( - 3 AS INTEGER ) - - col1 AS col1 FROM tab1 AS cor0
----
11
2
44

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

query I rowsort
SELECT + 30 * + col2 + col1 AS col0 FROM tab1
----
1775
2087
2894

query I rowsort
SELECT ALL - col0 * + + col0 * - col1 + col0 * 22 FROM tab1
----
37536
37995
391209

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

query I rowsort
SELECT ALL col1 * + 23 + - col1 FROM tab0 WHERE - + 13 IS NOT NULL
----
1782
22
462

query I rowsort
SELECT 80 + - + col2 FROM tab0
----
-19
33
70

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

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * - + 40 FROM tab1
----
360

query I rowsort
SELECT DISTINCT - 20 * + - ( + col1 ) FROM tab0
----
1620
20
420

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

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

query I rowsort
SELECT ALL ( + 66 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT - - col2 * + - 88 + - - col0 AS col1 FROM tab0 AS cor0
----
-4121
-793
-8615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + + 13 col1 FROM tab2 AS cor0
----
299
520
754

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - COUNT( * ) * - COUNT( * ) - + SUM( + + col0 ) FROM tab0 AS cor0
----
-190

skipif mysql # not compatible
query I rowsort label-1540
SELECT - COUNT ( * ) * - COUNT ( * ) - + SUM ( + + col0 ) FROM tab0 AS cor0
----
-190

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

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

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

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

query II rowsort
SELECT DISTINCT - 53 * col0 + + col1 * + 72 - + col0 AS col0, col0 AS col2 FROM tab2 WHERE NOT + 50 * + col0 + - 68 > col1
----

query I rowsort
SELECT ALL + 13 * - col1 AS col1 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT ALL - 86 * - col0 FROM tab1
----
4386
7310
7826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT 71 DIV MIN( ALL col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1547
SELECT 71 / MIN ( ALL col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT DISTINCT COUNT( * ) * - - 51 AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT COUNT ( * ) * - - 51 AS col0 FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT DISTINCT CAST( + 4 AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT CAST ( + 4 AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT col1, 54 AS col0 FROM tab0
----
1
54
21
54
81
54

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

query I rowsort
SELECT ALL 22 + - col2 AS col0 FROM tab1 AS cor0
----
-37
-46
-74

query I rowsort
SELECT - - col2 * + 91 * col1 * ( col1 ) + ( - + 82 ) FROM tab0 AS cor0
----
28061315
401228
8927

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT 32 * - ( + - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
288

skipif mysql # not compatible
query I rowsort label-1554
SELECT 32 * - ( + - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
288

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT ALL - + col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - + col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL - + 56 - col2 FROM tab0 AS cor0
----
-103
-155
-66

query I rowsort
SELECT ALL + col1 * ( + 35 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1785
2345
2695

query I rowsort
SELECT ALL + col1 * - col0 + + - col0 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT 15 - + col1 AS col2 FROM tab1
----
-32
1
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT + 48 - col0 DIV + 11 + + + col1 + - col0 AS col2 FROM tab2
----
34
49
56

skipif mysql # not compatible
query I rowsort label-1564
SELECT + 48 - col0 / + 11 + + + col1 + - col0 AS col2 FROM tab2
----
34
49
56

query I rowsort
SELECT - 14 - 65 FROM tab2
----
-79
-79
-79

query I rowsort
SELECT ALL 2 * - 55 AS col2 FROM tab2
----
-110
-110
-110

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

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

query I rowsort
SELECT - - 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT - + ( COUNT( * ) ) DIV - + 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1570
SELECT - + ( COUNT ( * ) ) / - + 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 BETWEEN + + 99 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT DISTINCT - + col1 DIV + 7 + 70 + + 3 FROM tab0 AS cor0
----
62
70
73

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT - + col1 / + 7 + 70 + + 3 FROM tab0 AS cor0
----
62
70
73

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

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

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

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

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

query I rowsort
SELECT + col2 * - - 74 AS col1 FROM tab2
----
1702
2960
4292

query I rowsort
SELECT ALL - 58 * + col0 AS col0 FROM tab1
----
-2958
-4930
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL - 53 * - 62 * - ( 77 ) * + COUNT( * ) + + 38 AS col0 FROM tab0
----
-759028

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - 53 * - 62 * - ( 77 ) * + COUNT ( * ) + + 38 AS col0 FROM tab0
----
-759028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT - ( + CAST( - 85 AS SIGNED ) ) * + col0 AS col1 FROM tab2
----
3910
5440
6375

skipif mysql # not compatible
query I rowsort label-1582
SELECT - ( + CAST ( - 85 AS INTEGER ) ) * + col0 AS col1 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL COUNT( + 0 ) * + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL COUNT ( + 0 ) * + - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT COUNT( * ) DIV - + 16 FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1585
SELECT DISTINCT col2 DIV + - 44, - 52 AS col2 FROM tab1
----
-1
-52
-2
-52

skipif mysql # not compatible
query II rowsort label-1585
SELECT DISTINCT col2 / + - 44, - 52 AS col2 FROM tab1
----
-1
-52
-2
-52

query I rowsort
SELECT DISTINCT + + ( ( + col2 ) ) * + col2 * col1 AS col1 FROM tab0 WHERE 41 * - - 85 IS NULL
----

query I rowsort
SELECT ALL - - col2 * - ( col0 ) * 73 + - 60 - col2 FROM tab2 AS cor0 WHERE col2 + col2 IS NOT NULL
----
-186980
-317668
-77317

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT + + 26 + + SUM( ALL + 84 ) AS col1 FROM tab1 AS cor0
----
278

skipif mysql # not compatible
query I rowsort label-1588
SELECT + + 26 + + SUM ( ALL + 84 ) AS col1 FROM tab1 AS cor0
----
278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * - - 88 col0 FROM tab0 AS cor0
----
1367
7666
8635

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

query I rowsort
SELECT - - 12 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col0 FROM tab0 WHERE ( - col2 IN ( - col1, 69 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1593
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < CAST( NULL AS SIGNED ) * - col2
----
0

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

query I rowsort
SELECT ALL - + col2 + - + col1 + + 99 + - col1 FROM tab0 AS cor0
----
-110
-2
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT + col2 DIV - - col1 - col2 + 28 FROM tab0 AS cor0
----
-19
18
28

skipif mysql # not compatible
query I rowsort label-1596
SELECT + col2 / - - col1 - col2 + 28 FROM tab0 AS cor0
----
-19
18
28

query I rowsort
SELECT ALL - 36 + - col2 AS col2 FROM tab0 AS cor0
----
-135
-46
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1598
SELECT + MIN( DISTINCT 46 ) - - COUNT( 13 ) * - - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1598
SELECT + MIN ( DISTINCT 46 ) - - COUNT ( 13 ) * - - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
46

query I rowsort
SELECT - col0 + - 67 - + - 55 + + + col2 AS col0 FROM tab0 AS cor0
----
-10
-89
20

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

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

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

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

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

query I rowsort
SELECT ALL ( - 59 ) FROM tab0
----
-59
-59
-59

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

query I rowsort
SELECT ALL + col1 * + + col1 - + 38 FROM tab2 AS cor0 WHERE NOT 76 IS NULL
----
2563
4451
5891

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT 77 * + COUNT( * ) AS col1 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-1607
SELECT 77 * + COUNT ( * ) AS col1 FROM tab1
----
231

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

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

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

query II rowsort
SELECT ALL + 18 AS col2, 29 FROM tab0 AS cor0
----
18
29
18
29
18
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - SUM( 72 ) FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1611
SELECT - SUM ( 72 ) FROM tab1 AS cor0
----
-216

query I rowsort
SELECT ALL - 8 + + col2 * + col0 FROM tab1 AS cor0
----
4888
5007
6180

onlyif mysql # aggregate syntax: 
query II rowsort label-1613
SELECT ALL - ( COUNT( * ) ) * + + COUNT( * ) AS col0, + 46 FROM tab0 AS cor0
----
-9
46

skipif mysql # not compatible
query II rowsort label-1613
SELECT ALL - ( COUNT ( * ) ) * + + COUNT ( * ) AS col0, + 46 FROM tab0 AS cor0
----
-9
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1614
SELECT DISTINCT col1 + + - CAST( + + 60 AS SIGNED ) DIV 69 FROM tab0 AS cor0
----
1
21
81

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

query I rowsort
SELECT ALL + 69 * + - col0 FROM tab0 cor0
----
-1035
-6003
-6693

query I rowsort
SELECT - 85 + + 58 FROM tab0 cor0 WHERE NOT + col0 * + - col1 / - col2 * + col2 = NULL
----

query I rowsort
SELECT ALL + col2 * - col2 + - col2 AS col0 FROM tab2
----
-1640
-3422
-552

query III rowsort
SELECT * FROM tab0 WHERE - + 62 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 88 AS col2 FROM tab1 WHERE NULL IS NULL
----
88
88
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL + 67 * - COUNT( * ) * - SUM( ALL + col0 ) - + 38 FROM tab0 WHERE NOT 49 <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + 67 * - COUNT ( * ) * - SUM ( ALL + col0 ) - + 38 FROM tab0 WHERE NOT 49 <> col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT MIN( - - col1 ) * - - COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1622
SELECT MIN ( - - col1 ) * - - COUNT ( * ) FROM tab1
----
15

query I rowsort
SELECT + col2 * col0 * - - 87 * - col0 FROM tab1
----
-21723552
-37085925
-48990396

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

skipif mysql # not compatible
query II rowsort label-1624
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
0

query I rowsort
SELECT ALL 75 * col0 * + ( col0 ) + col1 + - ( + + 76 ) AS col2 FROM tab0
----
16880
567620
705600

query II rowsort
SELECT + 16 * - + 9, col1 AS col1 FROM tab1 AS cor0
----
-144
14
-144
47
-144
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 30 * + col0 + + 48 col2 FROM tab0 cor0
----
2658
2958
498

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT ALL col2 + 3 + col2 DIV + col0 AS col2 FROM tab0 cor0
----
103
13
53

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL col2 + 3 + col2 / + col0 AS col2 FROM tab0 cor0
----
103
13
53

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col0 FROM tab0 WHERE NULL IS NULL
----
100
128
31

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

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

query II rowsort
SELECT - col2 AS col2, col0 * - col1 FROM tab1
----
-59
-425
-68
-4277
-96
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL - MIN( - col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - MIN ( - col2 ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1637
SELECT DISTINCT - 8 * - - SUM( DISTINCT - + 9 ) col0, - ( + 25 ) FROM tab1
----
72
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1637
SELECT DISTINCT - 8 * - - SUM ( DISTINCT - + 9 ) col0, - ( + 25 ) FROM tab1
----
72
-25

query I rowsort
SELECT + 41 * - col2 AS col0 FROM tab0
----
-1927
-4059
-410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT ALL CAST( col1 AS SIGNED ) * + + 13 AS col1 FROM tab0
----
1053
13
273

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL CAST ( col1 AS INTEGER ) * + + 13 AS col1 FROM tab0
----
1053
13
273

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 82 <> - 58 * - + 73
----

query II rowsort
SELECT + 11, 38 AS col0 FROM tab2 AS cor0
----
11
38
11
38
11
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT + 16 DIV - - col2 + col1 * - + 91 FROM tab2 AS cor0
----
-4641
-6097
-7007

skipif mysql # not compatible
query I rowsort label-1642
SELECT + 16 / - - col2 + col1 * - + 91 FROM tab2 AS cor0
----
-4641
-6097
-7007

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

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

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

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

query I rowsort
SELECT DISTINCT 57 + + col0 AS col2 FROM tab2 AS cor0
----
103
121
132

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - ( 80 ) FROM tab0
----
-80
-80
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT + ( MAX( DISTINCT + col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1651
SELECT + ( MAX ( DISTINCT + col2 ) ) AS col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - 76 * col0 * 55 + + + col1 - + 44 AS col1 FROM tab0
----
-363683
-405503
-62663

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - - COUNT( * ) FROM tab1 WHERE NULL > col0 / - + col2 * + col1 * + - 41
----
0

skipif mysql # not compatible
query I rowsort label-1653
SELECT - - COUNT ( * ) FROM tab1 WHERE NULL > col0 / - + col2 * + col1 * + - 41
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 + col0 col0 FROM tab1 AS cor0
----
115
121
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - SUM( + col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-1655
SELECT - SUM ( + col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-188

query I rowsort
SELECT col2 + + 17 AS col0 FROM tab1 AS cor0
----
113
76
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1657
SELECT + + COUNT( * ) * AVG ( ALL CAST( + col1 AS SIGNED ) ) * + MIN( DISTINCT - + ( ( col2 ) ) ) + CAST( NULL AS SIGNED ) + 62 * + + 43 + 28 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT + + COUNT ( * ) * AVG ( ALL CAST ( + col1 AS INTEGER ) ) * + MIN ( DISTINCT - + ( ( col2 ) ) ) + CAST ( NULL AS INTEGER ) + 62 * + + 43 + 28 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT + COUNT( * ) + + MIN( DISTINCT + 60 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1658
SELECT + COUNT ( * ) + + MIN ( DISTINCT + 60 ) FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1659
SELECT DISTINCT + + 32 / + col1 - - CAST( NULL AS SIGNED ) FROM tab2 WHERE col2 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + + 32 / + col1 - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col2 * + col0 IS NULL
----

query I rowsort
SELECT - - 87 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 * + 99 * - col0 col0 FROM tab0
----
163647
182457
28215

query I rowsort
SELECT ALL + col1 * - + ( + 66 ) FROM tab0 AS cor0
----
-1386
-5346
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + - SUM( DISTINCT - - col0 ) * - 77 col2 FROM tab1 AS cor0
----
17479

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1664
SELECT + - SUM ( DISTINCT - - col0 ) * - 77 col2 FROM tab1 AS cor0
----
17479

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT 52 * - MIN( ALL + col0 ) + 28 - ( MIN( ALL + col0 ) ) FROM tab2 AS cor0
----
-2410

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT 52 * - MIN ( ALL + col0 ) + 28 - ( MIN ( ALL + col0 ) ) FROM tab2 AS cor0
----
-2410

query I rowsort
SELECT + - ( + ( + 89 ) ) * - col1 AS col1 FROM tab2 AS cor0
----
4539
5963
6853

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT DISTINCT + 17 DIV + - col2 * - 64 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1667
SELECT DISTINCT + 17 / + - col2 * - 64 col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT 2 DIV + - 72 * + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT 2 / + - 72 * + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT ALL 65 DIV + 6 + - 91 FROM tab1 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL 65 / + 6 + - 91 FROM tab1 AS cor0
----
-81
-81
-81

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

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

query I rowsort
SELECT 55 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - 86 )
----
55
55
55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT + SUM( - CAST( - col2 AS SIGNED ) ) * - - COUNT( * ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-1673
SELECT + SUM ( - CAST ( - col2 AS INTEGER ) ) * - - COUNT ( * ) FROM tab0
----
468

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col0 ) * col2 - + 3 > + ( + - 23 ) + - col1 - col1 + + col0 + - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1677
SELECT DISTINCT COUNT( * ) * 53 AS col1, + MAX( + col0 ) AS col1 FROM tab0
----
159
97

skipif mysql # not compatible
query II rowsort label-1677
SELECT DISTINCT COUNT ( * ) * 53 AS col1, + MAX ( + col0 ) AS col1 FROM tab0
----
159
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT DISTINCT - col1 DIV - + 63 * - - col0 * + 96 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - col1 / - + 63 * - - col0 * + 96 AS col1 FROM tab1
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1680
SELECT DISTINCT ( + 26 ) col0, COUNT ( * ) FROM tab1 AS cor0
----
26
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT DISTINCT + col2 DIV 46 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT + col2 / 46 AS col0 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 24 ) col2 FROM tab1 AS cor0
----
-24

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

query I rowsort
SELECT ALL 76 + col1 AS col1 FROM tab1 AS cor0
----
123
81
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 39 NOT BETWEEN - col0 AND + col1 + - + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + COUNT( * ) * + + COUNT( * ) + - COUNT( ALL - col1 ) col2 FROM tab1 AS cor0
----
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - ( + ( - COUNT( * ) ) ) + - MAX( ALL - 66 ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1687
SELECT - ( + ( - COUNT ( * ) ) ) + - MAX ( ALL - 66 ) AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT + 57 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-30
-40
42

query I rowsort
SELECT + - 89 + - 55 FROM tab1 AS cor0
----
-144
-144
-144

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1691
SELECT ALL + 24, ( + col2 ) FROM tab2 WHERE + + ( - col0 ) >= ( col0 * CAST( + + col2 AS DECIMAL ) + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-1691
SELECT ALL + 24, ( + col2 ) FROM tab2 WHERE + + ( - col0 ) >= ( col0 * CAST ( + + col2 AS REAL ) + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1692
SELECT DISTINCT CAST( + col1 AS SIGNED ), - 88 * + + col1 + - 90 - + ( - col2 ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-1692
SELECT DISTINCT CAST ( + col1 AS INTEGER ), - 88 * + + col1 + - 90 - + ( - col2 ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----

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

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

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

query II rowsort
SELECT + col1 * - col1 AS col0, 40 AS col2 FROM tab2
----
-2601
40
-4489
40
-5929
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1696
SELECT + col1 DIV + col2 AS col1, + 28 - + + col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
1
NULL
1
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-1696
SELECT + col1 / + col2 AS col1, + 28 - + + col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
1
NULL
1
NULL
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT COUNT( * ) * 48 * + + COUNT( * ) FROM tab1 cor0
----
432

skipif mysql # not compatible
query I rowsort label-1697
SELECT COUNT ( * ) * 48 * + + COUNT ( * ) FROM tab1 cor0
----
432

query I rowsort
SELECT DISTINCT + - col0 * - ( + col0 ) * - col1 - - col1 AS col2 FROM tab1 AS cor0
----
-36120
-36400
-389160

query I rowsort
SELECT - col0 * - + col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT + col1 - - - 90 + col1 FROM tab2 AS cor0
----
12
44
64

query I rowsort
SELECT DISTINCT - col1 + - col2 - + + 61 FROM tab2 AS cor0
----
-135
-178
-186

query II rowsort
SELECT DISTINCT + 50 + col1, col2 AS col0 FROM tab0 cor0
----
131
47
51
99
71
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL COUNT( * ) - - 56 + + - 93 * COUNT( * ) col0 FROM tab2
----
-220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1703
SELECT ALL COUNT ( * ) - - 56 + + - 93 * COUNT ( * ) col0 FROM tab2
----
-220

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

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

query I rowsort
SELECT - 20 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query II rowsort
SELECT DISTINCT 60 AS col2, - col1 + + + col2 AS col1 FROM tab0
----
60
-11
60
-34
60
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT - 10 DIV + 2 AS col1 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-1707
SELECT - 10 / + 2 AS col1 FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT - 80 DIV + MAX( + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - 80 / + MAX ( + col1 ) FROM tab0 AS cor0
----
0

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

query II rowsort
SELECT - col0, 50 + + + col0 AS col1 FROM tab1 cor0
----
-51
101
-85
135
-91
141

query I rowsort
SELECT + 10 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
16000
33640
5290

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT ALL - COUNT( * ) * - 57 * + - 81 FROM tab2
----
-13851

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - COUNT ( * ) * - 57 * + - 81 FROM tab2
----
-13851

query II rowsort
SELECT col2 AS col1, col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - col2 NOT BETWEEN - col1 + - col0 AND + col2 * - 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT SUM( - col1 ) AS col2, + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 - + 88 + + 0 + 15 / - 65 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1715
SELECT SUM ( - col1 ) AS col2, + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 - + 88 + + 0 + 15 / - 65 IS NOT NULL
----
NULL
0

query I rowsort
SELECT DISTINCT col2 * + + 72 FROM tab1
----
4248
4896
6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1717
SELECT DISTINCT 68 DIV - - COUNT( * ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT 68 / - - COUNT ( * ) AS col1 FROM tab0
----
22

query I rowsort
SELECT DISTINCT - 54 * col1 - - + col0 AS col0 FROM tab2 AS cor0
----
-2708
-3543
-4094

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1719
SELECT + col1 AS col2, CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
query II rowsort label-1719
SELECT + col1 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT col0 * - + 67 * CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-171520
-291450
-70886

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT col0 * - + 67 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-171520
-291450
-70886

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - COUNT( * ) * + + 8 col1 FROM tab0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1724
SELECT - COUNT ( * ) * + + 8 col1 FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL - MIN( DISTINCT - 39 ) + - 52 * + + 51 AS col1 FROM tab2 AS cor0
----
-2613

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - MIN ( DISTINCT - 39 ) + - 52 * + + 51 AS col1 FROM tab2 AS cor0
----
-2613

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

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

query I rowsort
SELECT ALL - - 61 + 93 AS col1 FROM tab2 AS cor0
----
154
154
154

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

query I rowsort
SELECT ALL + - col0 * + col0 + + col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT DISTINCT - col2 + - 86 AS col1 FROM tab0 AS cor0
----
-133
-185
-96

query I rowsort
SELECT DISTINCT - 12 + col1 AS col2 FROM tab0 AS cor0
----
-11
69
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT DISTINCT COUNT( * ) DIV 9 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT COUNT ( * ) / 9 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT DISTINCT MAX( 29 ) * + 24 - - MAX( col2 ) + - 52 + COUNT( * ) FROM tab2
----
705

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT MAX ( 29 ) * + 24 - - MAX ( col2 ) + - 52 + COUNT ( * ) FROM tab2
----
705

query I rowsort
SELECT ALL + col1 * 11 - col0 + - col0 + - + col1 FROM tab1
----
-120
288
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT ALL 21 DIV col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL 21 / col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + + 6 AS col2 FROM tab1
----
102
65
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1739
SELECT ALL + 20 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 / 92 < + col0 ) OR + CAST( - col1 AS SIGNED ) IS NULL
----
20
20
20

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + 20 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 / 92 < + col0 ) OR + CAST ( - col1 AS INTEGER ) IS NULL
----
20
20
20

query I rowsort
SELECT DISTINCT + col1 * col0 * col1 * - 40 * 12 - - + col2 * - col2 FROM tab1 AS cor0
----
-1023481
-4807296
-96493744

query I rowsort
SELECT DISTINCT + col0 - + 30 FROM tab0 AS cor0
----
-15
57
67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1742
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - col0 + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1742
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - col0 + + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 70 - - col2 AS col1 FROM tab0
----
-23
-60
29

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NOT col2 * col1 <> col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1745
SELECT DISTINCT 41 * 70 + + col1 AS col2 FROM tab0 WHERE ( + CAST( NULL AS DECIMAL ) + 13 * col1 ) > ( col2 * 19 )
----

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT 41 * 70 + + col1 AS col2 FROM tab0 WHERE ( + CAST ( NULL AS REAL ) + 13 * col1 ) > ( col2 * 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT + col0 FROM tab0 WHERE NOT + 51 BETWEEN col0 AND CAST( NULL AS SIGNED )
----
87
97

skipif mysql # not compatible
query I rowsort label-1746
SELECT + col0 FROM tab0 WHERE NOT + 51 BETWEEN col0 AND CAST ( NULL AS INTEGER )
----
87
97

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

query I rowsort
SELECT DISTINCT 41 + 8 AS col1 FROM tab0
----
49

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

query I rowsort
SELECT + ( + 32 ) AS col1 FROM tab1
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT DISTINCT + col1 + - 0 DIV - col2 col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT DISTINCT + col1 + - 0 / - col2 col2 FROM tab0
----
1
21
81

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( - col2 ) IN ( col2 )
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) > + ( - 82 )
----

query I rowsort
SELECT ALL col1 * 94 - - 11 AS col1 FROM tab0
----
105
1985
7625

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT - col2 DIV - col1 + - ( + col1 ) AS col1 FROM tab1
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-1757
SELECT - col2 / - col1 + - ( + col1 ) AS col1 FROM tab1
----
-46
-8
6

query I rowsort
SELECT DISTINCT + col2 + 81 AS col0 FROM tab1
----
140
149
177

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT SUM( - 39 ) * 60 AS col0 FROM tab2 AS cor0
----
-7020

skipif mysql # not compatible
query I rowsort label-1760
SELECT SUM ( - 39 ) * 60 AS col0 FROM tab2 AS cor0
----
-7020

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT DISTINCT + 83 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + 83 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-249

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 42 + - col1 IS NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - 83 + 94 * + col0 )
----

query I rowsort
SELECT - 98 + 72 FROM tab0
----
-26
-26
-26

query I rowsort
SELECT - + col0 * 70 + col0 FROM tab1 AS cor0
----
-3519
-5865
-6279

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT + - 18 + col1 * + ( + col1 + - col2 DIV - 78 ) AS col1 FROM tab1 AS cor0
----
192
2191
7

skipif mysql # not compatible
query I rowsort label-1771
SELECT + - 18 + col1 * + ( + col1 + - col2 / - 78 ) AS col1 FROM tab1 AS cor0
----
192
2191
7

query I rowsort
SELECT ALL - 90 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) > 94
----
-90
-90
-90

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

query I rowsort
SELECT DISTINCT - col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT ( 56 ) + + col2 AS col2 FROM tab0 AS cor0
----
103
155
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL + + 39 DIV + col0 + ( col1 + + col0 ) * + col0 col1 FROM tab0 AS cor0
----
1442
9396
9506

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1776
SELECT ALL + + 39 / + col0 + ( col1 + + col0 ) * + col0 col1 FROM tab0 AS cor0
----
1442
9396
9506

query I rowsort
SELECT ALL + col2 + - 70 FROM tab2 cor0
----
-12
-30
-47

query I rowsort
SELECT col1 / - 11 AS col2 FROM tab2 AS cor0 WHERE + col2 >= + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT MIN( + col1 ) + + 88 FROM tab2 cor0
----
139

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT MIN ( + col1 ) + + 88 FROM tab2 cor0
----
139

query I rowsort
SELECT ALL 42 FROM tab2 AS cor0 WHERE col1 - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1782
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) IS NOT NULL OR CAST( NULL AS SIGNED ) BETWEEN - ( + col2 ) AND 52 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1782
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) IS NOT NULL OR CAST ( NULL AS INTEGER ) BETWEEN - ( + col2 ) AND 52 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + col1 * col2 + col1 ) BETWEEN 1 AND ( NULL )
----
NULL

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

query I rowsort
SELECT 10 * + col1 AS col0 FROM tab1 WHERE NULL BETWEEN + col0 AND col2 + + 6
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * + 39 BETWEEN col1 * + col2 + - 54 AND NULL
----

query I rowsort
SELECT + 64 * + 14 FROM tab0
----
896
896
896

query I rowsort
SELECT DISTINCT 47 * 48 - + col0 * 97 FROM tab1
----
-2691
-5989
-6571

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

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

query I rowsort
SELECT + 82 - - - ( - 26 ) FROM tab0
----
108
108
108

query I rowsort
SELECT DISTINCT 30 + - col2 AS col0 FROM tab2
----
-10
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - COUNT( * ) - + 72 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1791
SELECT - COUNT ( * ) - + 72 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL col2 + - + col2 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + 24 * - 58 FROM tab0, tab2 AS cor0
----
9 values hashing to 12e43be0fbb7b08a2bb4a6d1998605f5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT DISTINCT MIN( DISTINCT 49 ) FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT MIN ( DISTINCT 49 ) FROM tab2 cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( 29 ) NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> + ( col2 ) * - 4
----

query II rowsort
SELECT DISTINCT + 0, 66 AS col1 FROM tab0 AS cor0
----
0
66

query II rowsort
SELECT DISTINCT + + col0, - ( + - col1 ) * + col2 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT CAST( 23 AS SIGNED ) * - + col0 col2 FROM tab0 cor0
----
-2001
-2231
-345

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1803
SELECT CAST ( 23 AS INTEGER ) * - + col0 col2 FROM tab0 cor0
----
-2001
-2231
-345

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0 + - col0 - + 20 / + 50 )
----

query I rowsort
SELECT col0 * + - 72 * 20 FROM tab0
----
-125280
-139680
-21600

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

query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab2 WHERE NOT 80 IS NOT NULL
----

query II rowsort
SELECT - ( - col1 ), - ( - + 12 ) * col2 AS col2 FROM tab0
----
1
1188
21
120
81
564

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

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL > - col0
----

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

skipif mysql # not compatible
query I rowsort label-1812
SELECT - col1 / + 97 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT MAX( 77 ) FROM tab0 WHERE NOT + ( + 83 ) <= col2
----
77

skipif mysql # not compatible
query I rowsort label-1813
SELECT MAX ( 77 ) FROM tab0 WHERE NOT + ( + 83 ) <= col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT - - col2 + - - 67 + - + col1 DIV + col2 col2 FROM tab0 AS cor0
----
113
166
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1814
SELECT - - col2 + - - 67 + - + col1 / + col2 col2 FROM tab0 AS cor0
----
113
166
75

query I rowsort
SELECT col0 * + 99 AS col0 FROM tab2 AS cor0 WHERE 50 NOT BETWEEN - ( + col1 ) AND 77
----

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

query I rowsort
SELECT DISTINCT + - 6 + ( - ( + 89 ) ) FROM tab0 cor0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT - col2 + col0 - + 74 + col2 DIV + col2 + - col0 * 39 AS col0 FROM tab2
----
-1844
-2545
-2981

skipif mysql # not compatible
query I rowsort label-1818
SELECT - col2 + col0 - + 74 + col2 / + col2 + - col0 * 39 AS col0 FROM tab2
----
-1844
-2545
-2981

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL + - MAX( - 57 ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL + - MAX ( - 57 ) AS col2 FROM tab0 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 87 >= col1 + + col0 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab2 cor0
----
37

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL - + col1 * CAST( - - col2 AS SIGNED ) + 52 FROM tab1 AS cor0
----
-1292
-243
-3144

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - + col1 * CAST ( - - col2 AS INTEGER ) + 52 FROM tab1 AS cor0
----
-1292
-243
-3144

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT + SUM( DISTINCT - 80 ) - + - COUNT( * ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1826
SELECT + SUM ( DISTINCT - 80 ) - + - COUNT ( * ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + 66 - - col2 * + 77 AS col0 FROM tab1 AS cor0
----
4609
5302
7458

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

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

query I rowsort
SELECT DISTINCT - col2 + - col2 * + 30 * + 73 * - + 8 FROM tab0 AS cor0
----
1734381
175190
823393

query I rowsort
SELECT + col0 + 12 + 66 * + col2 * col1 AS col0 FROM tab2 AS cor0
----
203356
256563
77476

query I rowsort
SELECT col0 + + col1 - - + col1 AS col1 FROM tab0 AS cor0
----
129
177
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 89 - + col2 * + col2 col0 FROM tab1 AS cor0
----
-3387
-4488
-9113

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

query I rowsort
SELECT + 74 + + + col1 AS col0 FROM tab0
----
155
75
95

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

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

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

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE - 97 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( + col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT - + ( + col2 ) + - 10 FROM tab0 WHERE + 33 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1840
SELECT - + ( + col2 ) + - 10 FROM tab0 WHERE + 33 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab2 WHERE NOT - + 20 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 51 ) * + 97 col2 FROM tab0
----
-4947
-4947
-4947

query II rowsort
SELECT DISTINCT col1 * + col1 + - - col0 + 49, col0 FROM tab1 AS cor0
----
159
85
2349
91
296
51

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

query I rowsort
SELECT - - 32 * col0 FROM tab1 AS cor0
----
1632
2720
2912

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

query I rowsort
SELECT ALL + 63 * col1 AS col2 FROM tab1 AS cor0
----
2961
315
882

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1849
SELECT - col1 col2, CAST( NULL AS SIGNED ) - - - CAST( col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1849
SELECT - col1 col2, CAST ( NULL AS INTEGER ) - - - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1850
SELECT DISTINCT + col0 DIV - + col1 AS col2, col1 col2 FROM tab0
----
-4
21
-97
1
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1850
SELECT DISTINCT + col0 / - + col1 AS col2, col1 col2 FROM tab0
----
-4
21
-97
1
0
81

query I rowsort
SELECT + 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + 51 * + - ( - col0 ) + 8 * - col0 FROM tab0 AS cor0 WHERE NOT + 41 NOT BETWEEN 8 AND + col0
----
3741
4171

query I rowsort
SELECT - + col2 * - 29 FROM tab0 AS cor0
----
1363
2871
290

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1854
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST( - col2 AS DECIMAL ) * + + 55 + 61, 53 )
----

skipif mysql # not compatible
query III rowsort label-1854
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST ( - col2 AS REAL ) * + + 55 + 61, 53 )
----

query II rowsort
SELECT ALL - 16 * - + ( + + 53 ), col2 FROM tab1
----
848
59
848
68
848
96

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

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + + 68 > ( + col1 )
----
77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 40 col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1861
SELECT ( CAST ( - 97 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( + 25 ) BETWEEN ( NULL ) AND - 36
----
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + 25 ) BETWEEN ( NULL ) AND - 36
----
0

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

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

query I rowsort
SELECT 10 * col2 FROM tab0 WHERE - col2 / - ( col0 ) + + - col2 NOT IN ( - + 93, + 70 * 38 / - 87 )
----
100
470
990

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

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

query I rowsort
SELECT DISTINCT + 10 + + - col1 * - 48 * 49 FROM tab2 AS cor0
----
119962
157594
181114

query I rowsort
SELECT DISTINCT - col1 + + col2 + + + col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT + MAX( ALL col0 ) + - 65 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
32

skipif mysql # not compatible
query I rowsort label-1868
SELECT + MAX ( ALL col0 ) + - 65 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
32

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - - col1 - + 86, + 51 * - + col2 col2 FROM tab1
----
-58
-4896
-76
-3009
8
-3468

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT - COUNT ( ALL - + 44 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL COUNT( * ) * 37 AS col1 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL COUNT ( * ) * 37 AS col1 FROM tab1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT 35 * + COUNT( * ) * - + COUNT( * ) col1 FROM tab0
----
-315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1874
SELECT 35 * + COUNT ( * ) * - + COUNT ( * ) col1 FROM tab0
----
-315

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT - ( CAST( + 78 AS SIGNED ) ) AS col2 FROM tab2
----
-78
-78
-78

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

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

query I rowsort
SELECT 76 * + + 28 * + 70 FROM tab0
----
148960
148960
148960

query I rowsort
SELECT DISTINCT + col1 * - 48 FROM tab2
----
-2448
-3216
-3696

query I rowsort
SELECT - - col0 * + - 51 + - 77 FROM tab0 AS cor0
----
-4514
-5024
-842

query I rowsort
SELECT DISTINCT + 46 * - 93 AS col0 FROM tab0 AS cor0
----
-4278

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

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

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

query I rowsort
SELECT DISTINCT + + 37 FROM tab0 WHERE col2 <= - col2 + - ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT + + 28 AS col0, 35 - - + 28 + 59 * - COUNT( * ) * - 33 AS col0 FROM tab2 AS cor0
----
28
5904

skipif mysql # not compatible
query II rowsort label-1886
SELECT + + 28 AS col0, 35 - - + 28 + 59 * - COUNT ( * ) * - 33 AS col0 FROM tab2 AS cor0
----
28
5904

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL + COUNT( * ) + MAX( + - col2 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + COUNT ( * ) + MAX ( + - col2 ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT DISTINCT col1 + - col1 * + - col1 AS col2 FROM tab1 cor0
----
210
2256
30

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

query I rowsort
SELECT - + 92 * + col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT - col1 * - + 89 + + col1 FROM tab0 AS cor0
----
1890
7290
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL - COUNT( * ) * - + 20 AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - COUNT ( * ) * - + 20 AS col0 FROM tab1
----
60

query I rowsort
SELECT + 63 * ( col2 ) AS col2 FROM tab1
----
3717
4284
6048

query III rowsort
SELECT * FROM tab1 WHERE - 53 * - + col2 + 30 >= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - MIN( - 71 ) * - - COUNT( * ) - + + COUNT( * ) col0 FROM tab0 WHERE NOT col1 > ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1896
SELECT ALL - MIN ( - 71 ) * - - COUNT ( * ) - + + COUNT ( * ) col0 FROM tab0 WHERE NOT col1 > ( NULL )
----
NULL

query I rowsort
SELECT col2 + + col1 * - col1 AS col2 FROM tab0
----
-431
-6514
98

query I rowsort
SELECT DISTINCT - 65 - + col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT DISTINCT 10 + - 51 AS col2, ( col0 ) AS col0 FROM tab1
----
-41
51
-41
85
-41
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1900
SELECT ALL + 6 * 65 AS col0, ( - CAST( NULL AS SIGNED ) ) * - ( + - col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
390
NULL
390
NULL
390
NULL

skipif mysql # not compatible
query II rowsort label-1900
SELECT ALL + 6 * 65 AS col0, ( - CAST ( NULL AS INTEGER ) ) * - ( + - col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
390
NULL
390
NULL
390
NULL

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 71, 69 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - 82 NOT BETWEEN 7 AND + - col2 + + 4 * - 70 * - ( col2 ) * - col1
----

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

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

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

query I rowsort
SELECT DISTINCT - + 4 * - col2 AS col1 FROM tab1 AS cor0
----
236
272
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 55 + + 82 + - col1 AS col1, - col1 - - + col0 * + + col1 AS col2, + col1 col0 FROM tab0 AS cor0
----
9 values hashing to 4968ae7c2a95df3cdb4f928ba3e34529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1908
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + CAST( - 92 AS SIGNED ) * col1 - col0 )
----

skipif mysql # not compatible
query III rowsort label-1908
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + CAST ( - 92 AS INTEGER ) * col1 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - ( - - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1909
SELECT - ( - - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col2 FROM tab0
----
51

query I rowsort
SELECT DISTINCT + 22 * + + ( 31 ) FROM tab1
----
682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) * + + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - ( - 14 ) AS col1 FROM tab1 AS cor0
----
14
14
14

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT DISTINCT COUNT( * ) * - - ( COUNT( * ) ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1915
SELECT DISTINCT COUNT ( * ) * - - ( COUNT ( * ) ) col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= + 42
----
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= + 42
----
0

query II rowsort
SELECT + + col0 * col1 AS col1, - col0 * - - col0 * - 82 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT + 66 * - CAST( NULL AS SIGNED ) + 57 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT + 66 * - CAST ( NULL AS INTEGER ) + 57 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 63 + - col2 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1920
SELECT ALL CAST( - 80 AS SIGNED ) col2, + col1 * - + col2 * - 51 / + col0 * - ( 70 ) FROM tab0 AS cor0 WHERE NOT 14 NOT IN ( + col2 + - ( + col2 ) + + + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1920
SELECT ALL CAST ( - 80 AS INTEGER ) col2, + col1 * - + col2 * - 51 / + col0 * - ( 70 ) FROM tab0 AS cor0 WHERE NOT 14 NOT IN ( + col2 + - ( + col2 ) + + + col1 )
----

query I rowsort
SELECT col1 + - col2 * col1 FROM tab0 cor0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT + 5 * - col0 FROM tab0 AS cor0
----
-435
-485
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-1923
SELECT DISTINCT 11 DIV - 63 AS col0, - col2 * - - col0 * - - col2 FROM tab2
----
0
-102400
0
-24334
0
-252300

skipif mysql # not compatible
query II rowsort label-1923
SELECT DISTINCT 11 / - 63 AS col0, - col2 * - - col0 * - - col2 FROM tab2
----
0
-102400
0
-24334
0
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT 87 * - + SUM( + - col0 ) FROM tab2
----
16095

skipif mysql # not compatible
query I rowsort label-1924
SELECT 87 * - + SUM ( + - col0 ) FROM tab2
----
16095

query II rowsort
SELECT col1, 67 * - - 49 * + col2 FROM tab1
----
14
315168
47
223244
5
193697

query II rowsort
SELECT ALL - 99 AS col1, col0 AS col1 FROM tab2 AS cor0
----
-99
46
-99
64
-99
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT DISTINCT 17 DIV col2 * - col0 + - col1 + + col0 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT 17 / col2 * - col0 + - col1 + + col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT + col0 * + - col2 AS col2 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT - + col0 * - col1 + + 36 * - col0 AS col0 FROM tab1 AS cor0
----
-1122
-2635
1001

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1931
SELECT + SUM( 5 ) DIV - COUNT( ALL + col1 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1931
SELECT + SUM ( 5 ) / - COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-1932
SELECT DISTINCT 9 AS col0, - 28 DIV - col0 + - + col1 AS col1 FROM tab2
----
9
-51
9
-67
9
-77

skipif mysql # not compatible
query II rowsort label-1932
SELECT DISTINCT 9 AS col0, - 28 / - col0 + - + col1 AS col1 FROM tab2
----
9
-51
9
-67
9
-77

query II rowsort
SELECT col2 AS col0, 18 FROM tab1
----
59
18
68
18
96
18

query II rowsort
SELECT + 72, col2 AS col0 FROM tab2
----
72
23
72
40
72
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1935
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) col0 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL > + col0 - + - col0
----
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL > + col0 - + - col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - - col2 + - 80 >= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1938
SELECT 48, COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 1 * + 82 IS NULL
----
48
0

skipif mysql # not compatible
query II rowsort label-1938
SELECT 48, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 1 * + 82 IS NULL
----
48
0

query I rowsort
SELECT ALL - col1 + - - col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + + col0 AS col2 FROM tab1 AS cor0 WHERE 51 > NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col2 * + - col1 AS col1 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT 0 + - 74 FROM tab2
----
-74
-74
-74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 = col2 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + ( 0 ) ) + - - 77 FROM tab0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT COUNT( * ) + + MIN( - col2 ) * + 31 AS col1 FROM tab2
----
-1795

skipif mysql # not compatible
query I rowsort label-1945
SELECT COUNT ( * ) + + MIN ( - col2 ) * + 31 AS col1 FROM tab2
----
-1795

query II rowsort
SELECT DISTINCT col1, 31 FROM tab2
----
51
31
67
31
77
31

query I rowsort
SELECT col2 + col0 - ( - col2 ) * + 74 FROM tab1
----
4510
5191
7251

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - + col1 IS NOT NULL
----
0

query I rowsort
SELECT 5 + + + 81 AS col2 FROM tab2
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT + MIN( - 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT + MIN ( - 20 ) FROM tab2
----
-20

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT + col2 / + 21 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col0 FROM tab1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1953
SELECT DISTINCT - 60 DIV - + MAX( - 8 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT - 60 / - + MAX ( - 8 ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL + MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL + MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - 61 + + + COUNT( * ) + + + 32 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1955
SELECT - 61 + + + COUNT ( * ) + + + 32 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL = 78 * col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1957
SELECT CAST( NULL AS DECIMAL ), col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1957
SELECT CAST ( NULL AS REAL ), col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT col0 + - + ( + col2 ) FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + COUNT( DISTINCT + col1 ) - + + SUM( col1 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-1959
SELECT + COUNT ( DISTINCT + col1 ) - + + SUM ( col1 ) FROM tab1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 69 col1, - 71 AS col2 FROM tab2
----
69
-71

query I rowsort
SELECT + - 2 * + 63 FROM tab1 AS cor0
----
-126
-126
-126

query I rowsort
SELECT - - col0 * + ( col2 ) AS col1 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL - - COUNT( + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL - - COUNT ( + col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT - MIN( ALL + - 45 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - MIN ( ALL + - 45 ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT + 75 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col1 < + col2
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1969
SELECT DISTINCT 5 * + CAST( NULL AS DECIMAL ) + + + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 5 * + CAST ( NULL AS REAL ) + + + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + col1 * + - col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - - COUNT( * ) * 55 AS col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1971
SELECT - - COUNT ( * ) * 55 AS col2 FROM tab2 AS cor0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + ( + 69 ) col1, - col0 * + col1 + + - col1 AS col1, - 54 FROM tab0 AS cor0
----
9 values hashing to 114a42a666a373906a79bdf00540c8be

query I rowsort
SELECT - col2 + + 78 + col1 * + col1 FROM tab1
----
178
2219
44

query I rowsort
SELECT + col1 FROM tab2 WHERE col1 + 21 * + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= ( + + 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL + + 93 * + 75 + + COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
6978

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL + + 93 * + 75 + + COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
6978

query I rowsort
SELECT 71 + + 17 AS col2 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT ALL + + col2 + - 16 FROM tab2 cor0
----
24
42
7

query I rowsort
SELECT - 92 + + 84 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1980
SELECT DISTINCT CAST( 22 AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT CAST ( 22 AS REAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + + col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1982
SELECT DISTINCT - - CAST( - - 35 AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL < col2
----

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT - - CAST ( - - 35 AS REAL ) FROM tab1 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT ALL - 70 FROM tab0 AS cor0 WHERE - 74 + col2 - - + col1 IS NOT NULL
----
-70
-70
-70

query I rowsort
SELECT ALL + - col2 + + 49 FROM tab0 AS cor0
----
-50
2
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1985
SELECT 91 * - 56 + MAX( DISTINCT - - ( - + col2 ) ) * + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 64 col1, SUM( ALL - col0 ) FROM tab1 AS cor0
----
NULL
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1985
SELECT 91 * - 56 + MAX ( DISTINCT - - ( - + col2 ) ) * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 64 col1, SUM ( ALL - col0 ) FROM tab1 AS cor0
----
NULL
-227

query I rowsort
SELECT 30 + + - col2 + 62 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 - + - 91 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col1 * - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col2 ) - - 94 AS col1 FROM tab2
----
117
134
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL + COUNT( * ) * + 31 AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + COUNT ( * ) * + 31 AS col2 FROM tab2
----
93

query I rowsort
SELECT + col0 * + - 6 - + - col2 AS col2 FROM tab1
----
-210
-451
-478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1992
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1992
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1993
SELECT + 33 - SUM( ALL col1 ) * - 83 AS col1, COUNT( * ) FROM tab2 AS cor0
----
16218
3

skipif mysql # not compatible
query II rowsort label-1993
SELECT + 33 - SUM ( ALL col1 ) * - 83 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
16218
3

query II rowsort
SELECT ALL + col0 * + - col1 AS col0, 72 AS col1 FROM tab0 AS cor0
----
-1215
72
-1827
72
-97
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - - 26 AS col0 FROM tab1 cor0
----
31
40
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT ALL - 82 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - 82 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT ALL - + 20 DIV + 99 * - + col2 + - + 72 AS col2 FROM tab1 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - + 20 / + 99 * - + col2 + - + 72 AS col2 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT + - col2 * - ( + col1 ) + - 96 AS col1 FROM tab0 AS cor0
----
114
3
3711

query II rowsort
SELECT - 59 AS col0, col1 FROM tab1
----
-59
14
-59
47
-59
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2001
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
3

query I rowsort
SELECT ALL - ( - + col0 ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT + col1 DIV - + col2 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT + col1 / - + col2 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2004
SELECT ALL - 93 DIV col2 DIV - col2 * - col1 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-2004
SELECT ALL - 93 / col2 / - col2 * - col1 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

query I rowsort
SELECT DISTINCT 3 * + 89 FROM tab0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2006
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT + ( + + MIN( + col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + ( + + MIN ( + col2 ) ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT + SUM( - 42 ) AS col1, - 2 AS col0 FROM tab0
----
-126
-2

skipif mysql # not compatible
query II rowsort label-2008
SELECT + SUM ( - 42 ) AS col1, - 2 AS col0 FROM tab0
----
-126
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT col0 FROM tab1 WHERE NOT NULL <= - - ( + CAST( + - 11 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2009
SELECT col0 FROM tab1 WHERE NOT NULL <= - - ( + CAST ( + - 11 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + col1 * + + 52 + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 59 NOT BETWEEN + - col0 * + 36 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT + - ( - col0 ) + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT + - ( - col0 ) + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col0 FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 IN ( + 39, - ( + - col0 ), col0, - - 14 )
----

query I rowsort
SELECT - col0 - - - col0 - - - col0 AS col2 FROM tab0 AS cor0
----
-261
-291
-45

query I rowsort
SELECT ALL col2 + + - ( 97 ) * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-4924
-6441
-7429

query I rowsort
SELECT col2 - + 26 * - col1 AS col2 FROM tab1 AS cor0
----
1290
189
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + - 47 - + 81 col1 FROM tab0 AS cor0
----
-4170
-4640
-786

query I rowsort
SELECT ALL col1 + - - col2 + + 85 FROM tab1 AS cor0
----
149
195
200

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT DISTINCT + 77 - + - 7 DIV col0 DIV - col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + 77 - + - 7 / col0 / - col2 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT + ( + col0 ) + - + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT + ( + col0 ) + - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - 31 AS col0 FROM tab0
----
-1457
-3069
-310

query I rowsort
SELECT ALL - 50 * + col2 FROM tab0
----
-2350
-4950
-500

query I rowsort
SELECT DISTINCT + col2 * + - 16 * - + col0 AS col2 FROM tab2 WHERE NOT ( - 96 ) IS NULL
----
16928
40960
69600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT - COUNT( * ) DIV + + 93 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT - COUNT ( * ) / + + 93 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT DISTINCT - col0 DIV + 6 + - col2 col0 FROM tab1 AS cor0
----
-104
-73
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2026
SELECT DISTINCT - col0 / + 6 + - col2 col0 FROM tab1 AS cor0
----
-104
-73
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT - ( COUNT( * ) ) * - + 72 AS col1 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT - ( COUNT ( * ) ) * - + 72 AS col1 FROM tab2
----
216

query I rowsort
SELECT col1 * col1 * + col1 AS col2 FROM tab0
----
1
531441
9261

query I rowsort
SELECT DISTINCT - col2 * - col0 * - col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL 41 * - - MIN( + 66 ) FROM tab0 AS cor0
----
2706

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL 41 * - - MIN ( + 66 ) FROM tab0 AS cor0
----
2706

query I rowsort
SELECT col1 * - 76 * 71 * + + col0 AS col1 FROM tab0 AS cor0
----
-523412
-6556140
-9858492

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + col1 NOT IN ( + - 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT ALL - CAST( + - 92 AS SIGNED ) FROM tab1 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - CAST ( + - 92 AS INTEGER ) FROM tab1 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL - + COUNT( * ) * COUNT( * ) - - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - + COUNT ( * ) * COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + 87 * + + col1 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL + 44 * MIN( DISTINCT col1 ) AS col1 FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + 44 * MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
220

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - col1 * + - col1 - + - 4 BETWEEN + col1 AND ( + col0 + col0 )
----
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT CAST( + col1 AS SIGNED ) col1 FROM tab1 WHERE NOT ( - + 70 ) >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2038
SELECT CAST ( + col1 AS INTEGER ) col1 FROM tab1 WHERE NOT ( - + 70 ) >= NULL
----

query I rowsort
SELECT + 20 * + - col1 AS col2 FROM tab2
----
-1020
-1340
-1540

query I rowsort
SELECT ALL - col1 * + col2 * + col0 + + col1 - + col0 * + - col0 FROM tab2 AS cor0
----
-192947
-285758
-51791

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT DISTINCT + + col0 DIV col0 col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2041
SELECT DISTINCT + + col0 / col0 col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col0 FROM tab0 AS cor0 WHERE - 68 + 54 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 33 + - - ( 28 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 33 + - - ( 28 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= - 56 / + 65 + + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( 78 ) + + col0 AS col2 FROM tab0
----
-63
19
9

query I rowsort
SELECT ALL + ( 78 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT DISTINCT + 65 DIV - col0 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + 65 / - col0 AS col0 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT 31 + + col1 - + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT 31 + + col1 - + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) + col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - 86 * col1 FROM tab2 AS cor0
----
-223686
-386054
-509894

query I rowsort
SELECT ALL - 65 + - 14 AS col1 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + + COUNT( ALL col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2053
SELECT + + COUNT ( ALL col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col0 - - col1 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
119692
336750
379520

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL + 16 + MIN( DISTINCT + col2 ) col0 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2056
SELECT ALL + 16 + MIN ( DISTINCT + col2 ) col0 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT CAST( NULL AS SIGNED ) - + 71 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT CAST ( NULL AS INTEGER ) - + 71 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + col2 - + col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2059
SELECT ALL 95 * + 57 + CAST( NULL AS SIGNED ) + 81 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2059
SELECT ALL 95 * + 57 + CAST ( NULL AS INTEGER ) + 81 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2061
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( - + col1 AS SIGNED ) + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2061
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( - + col1 AS INTEGER ) + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT - 88 + + MIN( ALL ( col1 ) ) col1 FROM tab2 cor0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2062
SELECT DISTINCT - 88 + + MIN ( ALL ( col1 ) ) col1 FROM tab2 cor0
----
-37

query I rowsort
SELECT ALL - col0 * 42 AS col0 FROM tab1 AS cor0
----
-2142
-3570
-3822

query II rowsort
SELECT ALL col0, - col0 * - col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT ALL 82 * + - col0 FROM tab0
----
-1230
-7134
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT SUM( + - col0 ) * + 92 * - 61 FROM tab0
----
1116788

skipif mysql # not compatible
query I rowsort label-2067
SELECT SUM ( + - col0 ) * + 92 * - 61 FROM tab0
----
1116788

query I rowsort
SELECT - col1 + ( 21 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 98 * - 82 AS col1 FROM tab1
----
-8036
-8036
-8036

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - 22 BETWEEN + 47 * - 57 + - col2 * 77 + 62 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT COUNT( * ) + + 68 col0 FROM tab1
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT COUNT ( * ) + + 68 col0 FROM tab1
----
71

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IS NOT NULL AND 12 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * col2 col1 FROM tab0
----
4136
8712
880

query I rowsort
SELECT ALL - col0 + - 54 + 52 AS col2 FROM tab0 AS cor0
----
-17
-89
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT + col2 * - - 41 + 25 - - col1 DIV - ( 68 ) + + col1 DIV col0 FROM tab0 AS cor0
----
1956
4084
435

skipif mysql # not compatible
query I rowsort label-2075
SELECT + col2 * - - 41 + 25 - - col1 / - ( 68 ) + + col1 / col0 FROM tab0 AS cor0
----
1956
4084
435

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT - col1 - - col2 * + col0 DIV + col0 FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2076
SELECT - col1 - - col2 * + col0 / + col0 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2077
SELECT + 92 * 5 - CAST( NULL AS SIGNED ) * AVG ( CAST( + col1 AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 92 * 5 - CAST ( NULL AS INTEGER ) * AVG ( CAST ( + col1 AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT + + 75 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2078
SELECT + + 75 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col2 * col2 AS col2, 92 col1 FROM tab1 AS cor0
----
3486
92
4671
92
9230
92

query I rowsort
SELECT - 77 + + - col1 FROM tab1 AS cor0
----
-124
-82
-91

query I rowsort
SELECT ALL - 97 * 26 + - col2 AS col1 FROM tab0
----
-2532
-2569
-2621

onlyif mysql # aggregate syntax: 
query II rowsort label-2082
SELECT DISTINCT - COUNT( * ) AS col2, - 70 FROM tab2
----
-3
-70

skipif mysql # not compatible
query II rowsort label-2082
SELECT DISTINCT - COUNT ( * ) AS col2, - 70 FROM tab2
----
-3
-70

query I rowsort
SELECT + 21 - + + col1 FROM tab0 WHERE NOT NULL NOT IN ( + col1, + col1 )
----

query I rowsort
SELECT + 66 * AVG ( 88 ) * + 78 AS col0 FROM tab0 WHERE NOT - col1 * col2 NOT BETWEEN ( NULL ) AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT SUM( + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT SUM ( + + col1 ) FROM tab0
----
103

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / + col2 + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL col1, - 98 * - col0 AS col1 FROM tab0
----
1
9506
21
8526
81
1470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col1 - - col1 + - - col0 - + col2 col0 FROM tab0 AS cor0
----
308
3856
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT - 37 * MIN( + col2 ) FROM tab1 AS cor0
----
-2183

skipif mysql # not compatible
query I rowsort label-2089
SELECT - 37 * MIN ( + col2 ) FROM tab1 AS cor0
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT + MIN( ALL + - ( col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + MIN ( ALL + - ( col2 ) ) FROM tab0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 52 * - col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT ALL + col1 * - 23 * col0 FROM tab0 AS cor0
----
-2231
-27945
-42021

query I rowsort
SELECT - ( - - col0 ) + col2 FROM tab1 cor0 WHERE NOT 55 <= NULL
----

query I rowsort
SELECT - ( + col1 ) + - 35 AS col1 FROM tab2 AS cor0
----
-102
-112
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 24 + + - col2 + - - col2 col0 FROM tab0 cor0
----
-1944
-24
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + 8, - col0 * - col0 - 83 * - + 19 col1 FROM tab1 AS cor0
----
-39
9858
-6
4178
3
8802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL - - CAST( - ( COUNT( * ) ) AS SIGNED ) * MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - - CAST ( - ( COUNT ( * ) ) AS INTEGER ) * MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
291

query II rowsort
SELECT 14 + - 16 AS col1, - 63 FROM tab0 AS cor0
----
-2
-63
-2
-63
-2
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - - 80 + + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT ALL - - 80 + + - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT ALL + col0 DIV + + col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + col0 / + + col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT DISTINCT col1 + + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT - col1 FROM tab1 WHERE - - col2 - CAST( NULL AS SIGNED ) <> col2
----

skipif mysql # not compatible
query I rowsort label-2103
SELECT - col1 FROM tab1 WHERE - - col2 - CAST ( NULL AS INTEGER ) <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2104
SELECT ALL * FROM tab0 WHERE NOT - - 5 NOT IN ( - 54, - col1, CAST( NULL AS SIGNED ), - - col0, - col1, + col2 / + - col0 )
----

skipif mysql # not compatible
query III rowsort label-2104
SELECT ALL * FROM tab0 WHERE NOT - - 5 NOT IN ( - 54, - col1, CAST ( NULL AS INTEGER ), - - col0, - col1, + col2 / + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT COUNT( * ) * + COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2105
SELECT COUNT ( * ) * + COUNT ( * ) col2 FROM tab2
----
9

query I rowsort
SELECT + col2 + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT + CAST( 39 AS SIGNED ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + CAST ( 39 AS INTEGER ) FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - 80 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - 80 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2109
SELECT ALL + COUNT( * ) AS col1, + MIN( ALL - - ( - 55 ) ) col1 FROM tab0 AS cor0
----
3
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2109
SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL - - ( - 55 ) ) col1 FROM tab0 AS cor0
----
3
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / + col0 NOT BETWEEN col2 * 16 * + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL COUNT( * ) - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE - - col1 NOT BETWEEN NULL AND + + 15
----
91
47
68

query I rowsort
SELECT + 19 * + - col2 + ( - + col0 ) * - - col0 AS col2 FROM tab2
----
-2553
-4856
-6727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT - 39 * - COUNT( * ) * - COUNT( - col1 ) + + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-354

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 39 * - COUNT ( * ) * - COUNT ( - col1 ) + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-354

query I rowsort
SELECT + 74 * - - col0 FROM tab2 AS cor0
----
3404
4736
5550

query I rowsort
SELECT ( + 31 ) * + col0 FROM tab0 AS cor0
----
2697
3007
465

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 <= + col1 * + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT MIN( - col2 ) + - 34 FROM tab0 cor0
----
-133

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT MIN ( - col2 ) + - 34 FROM tab0 cor0
----
-133

query I rowsort
SELECT + col0 * + - col2 * + 14 FROM tab1 AS cor0
----
-68544
-70210
-86632

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE - 50 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + - 92 AS col1 FROM tab1 AS cor0 WHERE NOT 61 - col1 BETWEEN NULL AND - col1
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT ALL 20 AS col2 FROM tab1 AS cor0 WHERE + 19 + - + 83 * - CAST( NULL AS SIGNED ) < ( + 80 )
----

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL 20 AS col2 FROM tab1 AS cor0 WHERE + 19 + - + 83 * - CAST ( NULL AS INTEGER ) < ( + 80 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT + MIN( ( 66 ) ) * + + 21 AS col0 FROM tab1
----
1386

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + MIN ( ( 66 ) ) * + + 21 AS col0 FROM tab1
----
1386

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab2 WHERE - + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - ( + - 79 ) FROM tab0
----
79
79
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 14 * 71
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2128
SELECT DISTINCT - COUNT( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT - COUNT ( + + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - 85 * - COUNT( + + 87 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 85 * - COUNT ( + + 87 ) FROM tab2
----
255

query II rowsort
SELECT + col2 AS col1, + col0 * - - col1 FROM tab2
----
23
2346
40
4928
58
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + - ( - 88 ) > col1
----
85
5
59

query I rowsort
SELECT DISTINCT + col2 / col1 / - + 62 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col2 * 59 FROM tab0 AS cor0
----
2692
569
5840

query II rowsort
SELECT DISTINCT col0, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT - + ( - - COUNT( * ) ) * - COUNT( * ) + - ( 33 ) AS col1 FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT - + ( - - COUNT ( * ) ) * - COUNT ( * ) + - ( 33 ) AS col1 FROM tab2 cor0
----
-24

query II rowsort
SELECT DISTINCT + col2, ( + col2 ) * - + col1 FROM tab1 AS cor0
----
59
-295
68
-3196
96
-1344

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT + COUNT( * ) + - ( - - ( - ( - COUNT( * ) ) ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT + COUNT ( * ) + - ( - - ( - ( - COUNT ( * ) ) ) ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2139
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( 94 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2139
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( 94 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 BETWEEN + 42 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2141
SELECT + 43 AS col1, + col2 DIV + col1 FROM tab2 AS cor0
----
43
0
43
0
43
0

skipif mysql # not compatible
query II rowsort label-2141
SELECT + 43 AS col1, + col2 / + col1 FROM tab2 AS cor0
----
43
0
43
0
43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT SUM( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT + 41 BETWEEN - - col1 AND NULL
----
81

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT SUM ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT + 41 BETWEEN - - col1 AND NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 83 NOT IN ( + + 85, ( - col1 ) - + 72 )
----
-3

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 83 NOT IN ( + + 85, ( - col1 ) - + 72 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT ALL ( CAST( - + col1 AS SIGNED ) ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL ( CAST ( - + col1 AS INTEGER ) ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col1 + - 77 + - 22 FROM tab1
----
-52
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT MAX( ALL + col0 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2146
SELECT DISTINCT MAX ( ALL + col0 ) col2 FROM tab2
----
75

query I rowsort
SELECT ( - col1 ) + - col1 FROM tab2
----
-102
-134
-154

query III rowsort
SELECT * FROM tab0 WHERE + + 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - col0 ) * - col0 + - col0 FROM tab0
----
210
7482
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL SUM( ALL - - 93 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL SUM ( ALL - - 93 ) FROM tab1
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 92 col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2151
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 92 col1 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + + + 65 FROM tab1 AS cor0
----
-20
-26
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + 91 col0, 45 AS col1 FROM tab0 cor0
----
112
45
172
45
92
45

query II rowsort
SELECT DISTINCT col1 * - col2 + - col1 AS col1, ( - - 93 ) FROM tab0 AS cor0
----
-100
93
-231
93
-3888
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - + COUNT( DISTINCT 16 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2155
SELECT - + COUNT ( DISTINCT 16 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT ( - 44 BETWEEN - col2 AND NULL )
----
-51
-77

query I rowsort
SELECT + 43 * 93 * col1 * - col1 FROM tab1 AS cor0
----
-783804
-8833791
-99975

query I rowsort
SELECT 31 * - 76 FROM tab0 AS cor0
----
-2356
-2356
-2356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT DISTINCT - CAST( - 47 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT - CAST ( - 47 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT + 53 DIV - col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT + 53 / - col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT - col1 DIV - + 18 AS col2 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2161
SELECT - col1 / - + 18 AS col2 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT DISTINCT + + ( - 38 ) FROM tab2 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT COUNT( ALL + 85 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2163
SELECT COUNT ( ALL + 85 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ( + 38 ) AS col1 FROM tab1
----
38
38
38

query I rowsort
SELECT DISTINCT - - 12 AS col0 FROM tab1 cor0
----
12

query I rowsort
SELECT DISTINCT - ( - + 11 ) AS col1 FROM tab2
----
11

query I rowsort
SELECT + - 20 + col1 AS col1 FROM tab2 AS cor0
----
31
47
57

query I rowsort
SELECT + col1 * 90 + col2 FROM tab1 cor0
----
1356
4298
509

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - COUNT( * ) + + + 67 col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT - COUNT ( * ) + + + 67 col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT - - 66 + + + col0 FROM tab0 AS cor0
----
153
163
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT DISTINCT 37 + - COUNT( * ) * - 14 AS col2, + 9 AS col1 FROM tab2 AS cor0
----
79
9

skipif mysql # not compatible
query II rowsort label-2171
SELECT DISTINCT 37 + - COUNT ( * ) * - 14 AS col2, + 9 AS col1 FROM tab2 AS cor0
----
79
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL MIN( DISTINCT + + 90 ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL MIN ( DISTINCT + + 90 ) AS col0 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - COUNT( - col0 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2173
SELECT - COUNT ( - col0 ) col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2174
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2175
SELECT DISTINCT COUNT( DISTINCT + - ( - - CAST( NULL AS DECIMAL ) ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT COUNT ( DISTINCT + - ( - - CAST ( NULL AS REAL ) ) ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT - col0 DIV - 92 - + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - col0 / - 92 - + col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 87 * + col1 AS col1 FROM tab1
----
1218
4089
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - + 20 - + col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - + 20 - + col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col1 FROM tab1 WHERE col0 * - 89 * - col0 * - - col0 / + 99 NOT BETWEEN 49 AND + col0
----
3

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col1 FROM tab1 WHERE col0 * - 89 * - col0 * - - col0 / + 99 NOT BETWEEN 49 AND + col0
----
3

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
35

query III rowsort
SELECT * FROM tab2 WHERE NOT 83 * + col2 >= - col1
----

query I rowsort
SELECT ALL ( - col2 ) * - + col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col0 * - col1 + - - 57 FROM tab2 AS cor0
----
-2289
-4871
-4968

query II rowsort
SELECT ALL + col0, 78 + + col0 AS col1 FROM tab1 AS cor0 WHERE + col2 * - col1 * + - 54 NOT BETWEEN + col0 AND - + 48
----
51
129
85
163
91
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2185
SELECT DISTINCT + CAST( MIN( - col1 ) AS SIGNED ) DIV + 70 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + CAST ( MIN ( - col1 ) AS INTEGER ) / + 70 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - col2, 83, + col1, - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT + + col2 * 40 DIV col0 * + col0 + - 67 AS col1 FROM tab2 AS cor0
----
1533
2183
853

skipif mysql # not compatible
query I rowsort label-2187
SELECT + + col2 * 40 / col0 * + col0 + - 67 AS col1 FROM tab2 AS cor0
----
1533
2183
853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - - 72 ) * - col2 col2 FROM tab2 AS cor0
----
1656
2880
4176

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 30 BETWEEN col2 AND - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 7 * + - col0 AS col0 FROM tab0
----
105
609
679

query II rowsort
SELECT col0, 49 * 15 AS col0 FROM tab0 AS cor0
----
15
735
87
735
97
735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 71 AS col0, + col2 col1 FROM tab0 cor0
----
71
10
71
47
71
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT CAST( 12 AS SIGNED ) * ( + ( 91 ) ) - 75 * + 37 AS col2 FROM tab0
----
-1683
-1683
-1683

skipif mysql # not compatible
query I rowsort label-2193
SELECT CAST ( 12 AS INTEGER ) * ( + ( 91 ) ) - 75 * + 37 AS col2 FROM tab0
----
-1683
-1683
-1683

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( + ( 96 ) ) > ( - 35 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 * col0 ) < + col0 + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 77 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT + 12 + - MIN( DISTINCT - col2 ) FROM tab2 WHERE NULL = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT + 12 + - MIN ( DISTINCT - col2 ) FROM tab2 WHERE NULL = col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 19 + + col0 <> + col0 * 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 36 * + col0 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT ALL + col0 * + 78 AS col2 FROM tab1
----
3978
6630
7098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 73 col0 FROM tab1
----
3723
6205
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT + ( ( + COUNT( * ) ) ) * 48 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( + 8 )
----
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT + ( ( + COUNT ( * ) ) ) * 48 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( + 8 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2203
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + CAST( NULL AS DECIMAL ) / col1 < + CAST( - 36 AS SIGNED ) + col1
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + CAST ( NULL AS REAL ) / col1 < + CAST ( - 36 AS INTEGER ) + col1
----
0

query I rowsort
SELECT - col2 + - 40 * col2 FROM tab0
----
-1927
-4059
-410

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + 30 IS NULL
----

query I rowsort
SELECT 66 * - col2 AS col1 FROM tab0
----
-3102
-6534
-660

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2207
SELECT ALL col0 DIV CAST( + ( + 47 ) * + col1 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL col0 / CAST ( + ( + 47 ) * + col1 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + 21 * COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-2208
SELECT + 21 * COUNT ( * ) AS col2 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2209
SELECT - COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) BETWEEN 55 * + ( - col1 ) AND - col1
----
75
67
58

query I rowsort
SELECT ALL col0 + 33 FROM tab1
----
118
124
84

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 67 + 78 AS col2 FROM tab1
----
145

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 91 * 21 + col1 AS col2 FROM tab2
----
1962
1978
1988

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE ( - col2 * - 43 ) >= NULL
----

query I rowsort
SELECT ALL - 80 + 75 FROM tab2
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2218
SELECT CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT ( + col0 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT COUNT( * ) * - 38 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-2221
SELECT COUNT ( * ) * - 38 FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2222
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2222
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT ( - COUNT( * ) ) * 70 col1 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2223
SELECT DISTINCT ( - COUNT ( * ) ) * 70 col1 FROM tab0 AS cor0
----
-210

query I rowsort
SELECT 11 * 54 AS col2 FROM tab1 AS cor0
----
594
594
594

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + MIN( ALL col2 ) AS col2 FROM tab2 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + MIN ( ALL col2 ) AS col2 FROM tab2 WHERE ( NULL ) = NULL
----
NULL

query I rowsort
SELECT 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT + COUNT( * ) * - 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-171

skipif mysql # not compatible
query I rowsort label-2227
SELECT + COUNT ( * ) * - 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ( + 45 ) * COUNT( * ) + MIN( - 67 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 * - col0 ) IN ( + col2 )
----
68

skipif mysql # not compatible
query I rowsort label-2228
SELECT ( + 45 ) * COUNT ( * ) + MIN ( - 67 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 * - col0 ) IN ( + col2 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - ( - MIN( - 67 ) ) AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2229
SELECT - ( - MIN ( - 67 ) ) AS col2 FROM tab2 AS cor0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 AS cor0 WHERE NULL >= ( 84 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 73 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 97 * - 45 AS col2 FROM tab2 AS cor0
----
-4365
-4365
-4365

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN 31 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 49 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT COUNT( ALL + 41 ) FROM tab2 AS cor0 WHERE NOT - 84 + col1 * + CAST( NULL AS SIGNED ) > col2 - - col2 * + 94
----
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT COUNT ( ALL + 41 ) FROM tab2 AS cor0 WHERE NOT - 84 + col1 * + CAST ( NULL AS INTEGER ) > col2 - - col2 * + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2236
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) col0 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT + col0 * - 78 FROM tab1
----
-3978
-6630
-7098

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - col1 BETWEEN ( col2 ) AND + ( + 31 ) + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 68 * + 39 AS col0 FROM tab0
----
2652

query I rowsort
SELECT col0 * 84 FROM tab0 WHERE NOT + col2 NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1 + - 99 * 27 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2242
SELECT * FROM tab1 WHERE NOT - 78 / + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2242
SELECT * FROM tab1 WHERE NOT - 78 / + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT ALL col0 * - CAST( NULL AS SIGNED ) * 41 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) * 41 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT DISTINCT + COUNT( * ) * 62 * COUNT( * ) FROM tab2
----
558

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT + COUNT ( * ) * 62 * COUNT ( * ) FROM tab2
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL 70 * + COUNT( DISTINCT 27 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL 70 * + COUNT ( DISTINCT 27 ) FROM tab1
----
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( ( + ( 75 ) ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 38 + - 28 - - 36 * 21 FROM tab2 AS cor0
----
766
766
766

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NULL >= ( + col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT 9 * - COUNT( * ) + + 67 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2250
SELECT 9 * - COUNT ( * ) + + 67 FROM tab0 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT ALL - + col0 * - col1 - + 34 DIV + col0 + col0 FROM tab0 cor0
----
1228
1914
194

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - + col0 * - col1 - + 34 / + col0 + col0 FROM tab0 cor0
----
1228
1914
194

query I rowsort
SELECT + + 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col2 col0 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL COUNT( * ) + COUNT( * ) * SUM( ALL - col0 ) FROM tab1
----
-678

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL COUNT ( * ) + COUNT ( * ) * SUM ( ALL - col0 ) FROM tab1
----
-678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col2 FROM tab2, tab2 cor0
----
-23

query I rowsort
SELECT + col1 + - - ( + 11 ) AS col1 FROM tab2
----
62
78
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - col0 ) + col0 IS NULL
----

query II rowsort
SELECT ALL - 50, col1 AS col0 FROM tab1 AS cor0
----
-50
14
-50
47
-50
5

query I rowsort
SELECT DISTINCT - - 97 + ( + - col0 ) * 32 FROM tab0 AS cor0
----
-2687
-3007
-383

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL BETWEEN NULL AND + 75
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT - - 26 + - MAX( CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2261
SELECT - - 26 + - MAX ( CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-65

query I rowsort
SELECT ALL + + 1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT + 93 DIV - col2 + + col0 FROM tab2 AS cor0
----
42
62
74

skipif mysql # not compatible
query I rowsort label-2263
SELECT + 93 / - col2 + + col0 FROM tab2 AS cor0
----
42
62
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT ALL - 37 + - col2 + + col2 DIV col2 FROM tab2 cor0
----
-59
-76
-94

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - 37 + - col2 + + col2 / col2 FROM tab2 cor0
----
-59
-76
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT DISTINCT - col1 DIV col2 - - col0 col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2265
SELECT DISTINCT - col1 / col2 - - col0 col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL 70 + + + 22 + + - col0 + + 82 FROM tab2 AS cor0
----
110
128
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= - 78 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE + col1 <> ( - col0 * + col1 )
----
51
85
91

query I rowsort
SELECT ALL - col0 * + col0 - - 61 + + + col1 * + col2 FROM tab0
----
-7298
-9249
3643

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2270
SELECT DISTINCT * FROM tab0 WHERE CAST( - 38 AS SIGNED ) + 36 < NULL
----

skipif mysql # not compatible
query III rowsort label-2270
SELECT DISTINCT * FROM tab0 WHERE CAST ( - 38 AS INTEGER ) + 36 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + 35 - - 10 + + ( - - 71 ) * - COUNT( * ) * - 18 AS col2 FROM tab2
----
3879

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + 35 - - 10 + + ( - - 71 ) * - COUNT ( * ) * - 18 AS col2 FROM tab2
----
3879

query I rowsort
SELECT ALL 7 + + + col2 FROM tab0
----
106
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT - SUM( ALL col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + ( - col2 ) * - + col2 - - + 58 FROM tab1
----
3539
4682
9274

onlyif mysql # aggregate syntax: 
query II rowsort label-2275
SELECT DISTINCT COUNT( ALL - + col0 ), + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2275
SELECT DISTINCT COUNT ( ALL - + col0 ), + COUNT ( * ) AS col2 FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - - col2 AS col1, - col2 col2 FROM tab2
----
104
-40
133
-58
69
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2277
SELECT DISTINCT 4 * + ( - + COUNT( * ) ) - - + CAST( NULL AS DECIMAL ) * SUM( ALL + col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT 4 * + ( - + COUNT ( * ) ) - - + CAST ( NULL AS REAL ) * SUM ( ALL + col0 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT ALL - col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT COUNT( ALL col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT COUNT ( ALL col2 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT 55 * - COUNT( * ) FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT 55 * - COUNT ( * ) FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - MAX( DISTINCT + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2281
SELECT - MAX ( DISTINCT + col1 ) AS col0 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 + - 32 - - + col1 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2283
SELECT ALL SUM( + - CAST( + CAST( col0 AS DECIMAL ) AS SIGNED ) ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL SUM ( + - CAST ( + CAST ( col0 AS REAL ) AS INTEGER ) ) FROM tab2 cor0
----
-185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + + col0 AND - + col0
----

query I rowsort
SELECT + 76 * + - 95 AS col2 FROM tab2 AS cor0
----
-7220
-7220
-7220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - 11 col0 FROM tab0
----
-396
-396
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT DISTINCT - 25 AS col0, COUNT( * ) * + COUNT( * ) + + 53 AS col2 FROM tab2
----
-25
62

skipif mysql # not compatible
query II rowsort label-2287
SELECT DISTINCT - 25 AS col0, COUNT ( * ) * + COUNT ( * ) + + 53 AS col2 FROM tab2
----
-25
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL ( - CAST( + AVG ( ALL - - 44 ) AS SIGNED ) ) FROM tab1, tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL ( - CAST ( + AVG ( ALL - - 44 ) AS INTEGER ) ) FROM tab1, tab0 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT + 33 DIV - + col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-2289
SELECT + 33 / - + col1 FROM tab1
----
-2
-6
0

query I rowsort
SELECT - ( - - ( - - col2 ) ) * + + 74 FROM tab2
----
-1702
-2960
-4292

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2291
SELECT col0 DIV + CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2291
SELECT col0 / + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
0
0
8

query I rowsort
SELECT DISTINCT + - col0 + - 72 AS col1 FROM tab2 cor0
----
-118
-136
-147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 31 BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT col2 AS col2, 61 + col1 + col0 AS col2 FROM tab0 AS cor0
----
10
169
47
157
99
159

query II rowsort
SELECT ALL ( - 23 ) AS col0, + col1 AS col1 FROM tab1
----
-23
14
-23
47
-23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT - MAX( - ( + 98 ) ) FROM tab2 cor0
----
98

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - MAX ( - ( + 98 ) ) FROM tab2 cor0
----
98

query I rowsort
SELECT + col0 - + + col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT ( col1 ) + col1 FROM tab2 AS cor0 WHERE NOT - col1 / + col1 IN ( ( + - col1 ) - - - col0 - + 38 / col0 )
----
102
134
154

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - col1 ) NOT IN ( - col0 / ( + 77 ) + + - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - 60 col2, 2 AS col1 FROM tab0 cor0
----
-45
2
27
2
37
2

query I rowsort
SELECT DISTINCT + + 26 * + col2 FROM tab1 AS cor0
----
1534
1768
2496

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 49 NOT BETWEEN NULL AND + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2303
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 54 AND - + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2303
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 54 AND - + CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT - + 50 + - col0 FROM tab1 AS cor0
----
-101
-135
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT + col1 + + CAST( + - 49 AS SIGNED ) + - - col2 * - + 58 AS col2 FROM tab1 AS cor0
----
-3466
-3946
-5603

skipif mysql # not compatible
query I rowsort label-2305
SELECT + col1 + + CAST ( + - 49 AS INTEGER ) + - - col2 * - + 58 AS col2 FROM tab1 AS cor0
----
-3466
-3946
-5603

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - - 20 + - - COUNT( * ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2306
SELECT - - 20 + - - COUNT ( * ) col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT 24 * + col1 * + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10200
102648
17136

query I rowsort
SELECT DISTINCT 32 - 96 AS col1 FROM tab1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT ALL col0 * + 93 / 61 + + + CAST( NULL AS SIGNED ) * 66 - - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL col0 * + 93 / 61 + + + CAST ( NULL AS INTEGER ) * 66 - - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 / + col2 IS NULL
----

query I rowsort
SELECT ALL - ( - - col0 ) - + - 77 FROM tab0
----
-10
-20
62

query I rowsort
SELECT DISTINCT + col2 * + - 51 AS col0 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 29 * - + COUNT( - + 72 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-2313
SELECT 29 * - + COUNT ( - + 72 ) FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL 0 + - - SUM( ALL + col2 ) FROM tab0 cor0 WHERE - col0 BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL 0 + - - SUM ( ALL + col2 ) FROM tab0 cor0 WHERE - col0 BETWEEN + col1 AND NULL
----
NULL

query I rowsort
SELECT + col1 * 2 + + col0 + - col2 FROM tab0 AS cor0
----
0
119
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT ALL + 36 DIV - 40 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + 36 / - 40 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + ( - ( 7 ) ) NOT BETWEEN - - ( col1 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 44 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-44

query I rowsort
SELECT + 29 + - col2 FROM tab1 AS cor0
----
-30
-39
-67

query II rowsort
SELECT - 37 + col1 AS col2, + ( 79 ) AS col2 FROM tab2 cor0
----
14
79
30
79
40
79

query I rowsort
SELECT DISTINCT + 76 FROM tab0 AS cor0 WHERE NOT NULL <= + 20
----

query I rowsort
SELECT DISTINCT - ( - 51 ) AS col0 FROM tab0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT DISTINCT - 8 + COUNT( * ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT - 8 + COUNT ( * ) FROM tab2
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2325
SELECT - - CAST( + + col2 AS SIGNED ) DIV - - 3 FROM tab2 AS cor0
----
13
19
7

skipif mysql # not compatible
query I rowsort label-2325
SELECT - - CAST ( + + col2 AS INTEGER ) / - - 3 FROM tab2 AS cor0
----
13
19
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT ALL - + col1 + col2 DIV + col0 FROM tab1 AS cor0
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL - + col1 + col2 / + col0 FROM tab1 AS cor0
----
-13
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col1, col0 col1 FROM tab0 cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL + MIN( DISTINCT + - 79 ) + - - 25 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + MIN ( DISTINCT + - 79 ) + - - 25 FROM tab0 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT + CAST( + 55 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif mysql # not compatible
query I rowsort label-2329
SELECT + CAST ( + 55 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query II rowsort
SELECT DISTINCT 81, col0 FROM tab2
----
81
46
81
64
81
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE + col2 <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE + col2 <> + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL COUNT( * ) * - MIN( + col2 ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL COUNT ( * ) * - MIN ( + col2 ) AS col1 FROM tab1
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT ALL + col1 * col1 * col2 * - - col2 DIV + + col2 FROM tab0 AS cor0
----
308367
4410
99

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL + col1 * col1 * col2 * - - col2 / + + col2 FROM tab0 AS cor0
----
308367
4410
99

query II rowsort
SELECT + 64, col1 AS col0 FROM tab1 AS cor0
----
64
14
64
47
64
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 81 - + col1, col0 col2 FROM tab2
----
14
75
30
46
4
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <> ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 14 * + col0 AS col2 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT ALL col2 * + 40 AS col2 FROM tab0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + 80 * - COUNT( * ) AS col2 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-2339
SELECT + 80 * - COUNT ( * ) AS col2 FROM tab1
----
-240

query I rowsort
SELECT DISTINCT - - 34 * col2 AS col1 FROM tab2 WHERE NOT ( 15 IS NOT NULL )
----

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + ( - 78 ) FROM tab2
----
-78
-78
-78

query I rowsort
SELECT DISTINCT 95 * col1 * + + 0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 + + col0 - col0 col1 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col1 * col2 * + 59 FROM tab0 AS cor0
----
12390
224613
5841

query I rowsort
SELECT DISTINCT - 19 * + + col1 + - 57 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, ( - col2 ) + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2347
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * + + 77, - 53 AS col1 FROM tab1
----
NULL
-53
NULL
-53
NULL
-53

skipif mysql # not compatible
query II rowsort label-2347
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * + + 77, - 53 AS col1 FROM tab1
----
NULL
-53
NULL
-53
NULL
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE 86 + - col0 - 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT col1 FROM tab0 AS cor0 WHERE NOT 87 * - - 80 / - 30 BETWEEN + + col0 AND - CAST( NULL AS SIGNED ) + + + 6 + ( col0 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2349
SELECT col1 FROM tab0 AS cor0 WHERE NOT 87 * - - 80 / - 30 BETWEEN + + col0 AND - CAST ( NULL AS INTEGER ) + + + 6 + ( col0 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2350
SELECT DISTINCT + CAST( + 60 AS SIGNED ), - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 50 * - + 47 NOT IN ( - 49, + col1, col1 )
----
60
0

skipif mysql # not compatible
query II rowsort label-2350
SELECT DISTINCT + CAST ( + 60 AS INTEGER ), - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 50 * - + 47 NOT IN ( - 49, + col1, col1 )
----
60
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + - CAST( NULL AS SIGNED ), col2, + 97 * - + 19 )
----

skipif mysql # not compatible
query I rowsort label-2351
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + - CAST ( NULL AS INTEGER ), col2, + 97 * - + 19 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2352
SELECT ALL - ( ( - CAST( NULL AS DECIMAL ) ) ), 75 AS col0 FROM tab2 AS cor0
----
NULL
75
NULL
75
NULL
75

skipif mysql # not compatible
query II rowsort label-2352
SELECT ALL - ( ( - CAST ( NULL AS REAL ) ) ), 75 AS col0 FROM tab2 AS cor0
----
NULL
75
NULL
75
NULL
75

query I rowsort
SELECT - col1 * + - ( - col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT - MAX( - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - MAX ( - col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT - ( - - 39 ) + + col1 - - - col2 AS col2 FROM tab1
----
-121
-60
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 56 ) col0 FROM tab2
----
-56

query I rowsort
SELECT col0 + 14 AS col2 FROM tab1
----
105
65
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + MIN( - col2 ) + 99 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2358
SELECT + MIN ( - col2 ) + 99 FROM tab2
----
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 / col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 84 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT DISTINCT COUNT( * ) - - - SUM( - + CAST( + - ( - col1 ) AS SIGNED ) ) col2 FROM tab2
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2361
SELECT DISTINCT COUNT ( * ) - - - SUM ( - + CAST ( + - ( - col1 ) AS INTEGER ) ) col2 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL 74 * - + ( - SUM( DISTINCT + col0 ) ) - - 10 FROM tab2
----
13700

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL 74 * - + ( - SUM ( DISTINCT + col0 ) ) - - 10 FROM tab2
----
13700

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT COUNT( * ) - - COUNT( + + col2 ) + + + 38 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2363
SELECT COUNT ( * ) - - COUNT ( + + col2 ) + + + 38 FROM tab0 AS cor0
----
44

query I rowsort
SELECT - col1 + + 63 + - col2 AS col0 FROM tab2 AS cor0
----
-11
-54
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT - 18 + COUNT( * ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2365
SELECT - 18 + COUNT ( * ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 19 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT - - col2 DIV + - ( 25 ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2367
SELECT - - col2 / + - ( 25 ) FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT - col0 * - ( ( + ( - 97 ) ) ) AS col0 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-2369
SELECT - + COUNT( * ), - 30 AS col1 FROM tab0 AS cor0
----
-3
-30

skipif mysql # not compatible
query II rowsort label-2369
SELECT - + COUNT ( * ), - 30 AS col1 FROM tab0 AS cor0
----
-3
-30

query II rowsort
SELECT ALL + 60, + 57 FROM tab1 cor0 WHERE NULL = + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2371
SELECT + + COUNT( * ), 30 AS col2 FROM tab2 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-2371
SELECT + + COUNT ( * ), 30 AS col2 FROM tab2 AS cor0
----
3
30

query II rowsort
SELECT DISTINCT 50, col0 FROM tab1
----
50
51
50
85
50
91

query I rowsort
SELECT DISTINCT + 74 * - col1 AS col0 FROM tab0
----
-1554
-5994
-74

query I rowsort
SELECT ALL + 77 FROM tab0 WHERE NOT NULL IS NOT NULL
----
77
77
77

query II rowsort
SELECT ALL - col2 AS col1, 91 AS col1 FROM tab0
----
-10
91
-47
91
-99
91

query I rowsort
SELECT DISTINCT + col2 * - - 27 AS col1 FROM tab1
----
1593
1836
2592

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 12 - + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 78 * - 75 AS col2, - col2 AS col0 FROM tab0
----
-5850
-10
-5850
-47
-5850
-99

query I rowsort
SELECT DISTINCT 91 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + + 51 * col2 FROM tab0 cor0
----
2397
5049
510

query I rowsort
SELECT + + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT - 41, ( col0 ) FROM tab2 AS cor0
----
-41
46
-41
64
-41
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 * + 79 + 94, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 + - col0 IS NULL
----
4123
23
5387
58
6177
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL COUNT( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT + ( col0 ) * - CAST( NULL AS SIGNED ) + + ( + col0 ) * + 34 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT + ( col0 ) * - CAST ( NULL AS INTEGER ) + + ( + col0 ) * + 34 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2387
SELECT DISTINCT - 7 * - + 77 AS col0, - CAST( NULL AS SIGNED ) + + + col2 FROM tab0
----
539
NULL

skipif mysql # not compatible
query II rowsort label-2387
SELECT DISTINCT - 7 * - + 77 AS col0, - CAST ( NULL AS INTEGER ) + + + col2 FROM tab0
----
539
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2388
SELECT DISTINCT col0 AS col0, - CAST( NULL AS SIGNED ) - + - col2 * - - col0 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2388
SELECT DISTINCT col0 AS col0, - CAST ( NULL AS INTEGER ) - + - col2 * - - col0 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + col1 + + col0, col2 AS col2 FROM tab0 AS cor0
----
-66
47
66
10
96
99

query I rowsort
SELECT DISTINCT - col0 + - + 55 * - col2 * - col1 FROM tab2 AS cor0
----
-169464
-213805
-64561

query I rowsort
SELECT DISTINCT col1 * + col1 * + ( 48 ) AS col2 FROM tab1 AS cor0
----
106032
1200
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT COUNT( * ) + 35 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2392
SELECT COUNT ( * ) + 35 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-102

query II rowsort
SELECT DISTINCT + - 95 + + - col1 * + ( col0 ) * + col0 AS col0, - 21 FROM tab1 AS cor0
----
-36220
-21
-36509
-21
-389302
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE + col2 / col0 * - col2 >= 86 * col1 + + col2 + + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-2394
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE + col2 / col0 * - col2 >= 86 * col1 + + col2 + + CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT ALL - col2 * + 36 - - 26 AS col2 FROM tab0 AS cor0
----
-1666
-334
-3538

query I rowsort
SELECT + col2 + col1 + ( - 52 ) * + - 4 + - col1 FROM tab1 AS cor0
----
267
276
304

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab2 cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT DISTINCT + col2 AS col1, col2 - + CAST( + 68 AS SIGNED ) - - 57 FROM tab2
----
23
12
40
29
58
47

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT + col2 AS col1, col2 - + CAST ( + 68 AS INTEGER ) - - 57 FROM tab2
----
23
12
40
29
58
47

query I rowsort
SELECT ALL + col2 + + - col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + + 68 FROM tab1 WHERE NOT 92 IN ( col1, col0 )
----
4012
4624
6528

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT ALL + col1 DIV + 32 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + col1 / + 32 FROM tab0
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT col2 DIV + 13 AS col2 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT col2 / + 13 AS col2 FROM tab0
----
0
3
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT col2 + - CAST( + 15 AS SIGNED ) FROM tab2 WHERE ( NOT col0 - + col0 < + - 89 )
----
25
43
8

skipif mysql # not compatible
query I rowsort label-2403
SELECT col2 + - CAST ( + 15 AS INTEGER ) FROM tab2 WHERE ( NOT col0 - + col0 < + - 89 )
----
25
43
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 45 col1, - col0 FROM tab1 AS cor0
----
45
-51
45
-85
45
-91

query I rowsort
SELECT + col0 - + 9 AS col2 FROM tab1 cor0
----
42
76
82

query I rowsort
SELECT DISTINCT - ( ( - 78 ) ) FROM tab1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 71 ) col0 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT + + 82 AS col2 FROM tab0 cor0
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL BETWEEN 4 AND - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL BETWEEN 4 AND - col0 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 78 * + 23
----

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 / - + 83 * - + 97 BETWEEN - - col2 AND NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 * + col1 < NULL
----

query II rowsort
SELECT DISTINCT ( ( - - col2 ) ), + col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL < 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - COUNT( - - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2416
SELECT - COUNT ( - - col0 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 18 * - col1 FROM tab2
----
1206
1386
918

query I rowsort
SELECT DISTINCT + + 84 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) + - 37 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + ( + 74 ) + + col1 AS col1 FROM tab0 cor0
----
155
75
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT ALL CAST( col1 AS SIGNED ) * - + col0 - - col1 FROM tab2
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL CAST ( col1 AS INTEGER ) * - + col0 - - col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT DISTINCT + 7 DIV col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + 7 / col1 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 55 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT DISTINCT - col1 * 93 * + col0 DIV + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1866
-7518
4

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT - col1 * 93 * + col0 / + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1866
-7518
4

query II rowsort
SELECT - col2, + 29 AS col1 FROM tab2 AS cor0
----
-23
29
-40
29
-58
29

query I rowsort
SELECT DISTINCT ( - col1 ) + - 28 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + - 9 AND NULL
----
-42
-75

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2
----

query I rowsort
SELECT DISTINCT - col2 + + 66 AS col0 FROM tab2 AS cor0
----
26
43
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 + - col1 * - col0 col0 FROM tab1 AS cor0
----
345
4233
677

query I rowsort
SELECT DISTINCT + 11 * - 30 AS col0 FROM tab0
----
-330

query I rowsort
SELECT ( + 35 ) * col1 + col2 AS col0 FROM tab1
----
1713
234
586

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + col2 + col2 + - col2 / col2 * 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 * + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2436
SELECT + col0 DIV + ( + col2 ) - col0 col0 FROM tab0 AS cor0
----
-15
-79
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2436
SELECT + col0 / + ( + col2 ) - col0 col0 FROM tab0 AS cor0
----
-15
-79
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT + + col2 * col1 DIV ( + col1 ) col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2437
SELECT + + col2 * col1 / ( + col1 ) col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2438
SELECT ALL - + col2 - - CAST( NULL AS SIGNED ) AS col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2438
SELECT ALL - + col2 - - CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL - 97 - - col1 AS col2 FROM tab1 AS cor0
----
-50
-83
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2440
SELECT ALL * FROM tab1 cor0 WHERE + ( col1 ) * - + 3 + + CAST( + + 11 AS SIGNED ) + + - ( + col2 ) / - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2440
SELECT ALL * FROM tab1 cor0 WHERE + ( col1 ) * - + 3 + + CAST ( + + 11 AS INTEGER ) + + - ( + col2 ) / - col2 IS NULL
----

query I rowsort
SELECT ALL col0 - - - 47 AS col0 FROM tab1
----
38
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT MAX( ALL - 9 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT MAX ( ALL - 9 ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL + SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = - col0 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT 89 * - - SUM( + - ( + col0 ) ) * + 23 AS col1 FROM tab2 AS cor0
----
-378695

skipif mysql # not compatible
query I rowsort label-2445
SELECT 89 * - - SUM ( + - ( + col0 ) ) * + 23 AS col1 FROM tab2 AS cor0
----
-378695

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT + 58 DIV col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2447
SELECT + 58 / col2 FROM tab0 AS cor0
----
0
1
5

query II rowsort
SELECT col0 AS col0, + 1 FROM tab0 AS cor0
----
15
1
87
1
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT - 63 DIV - 55 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 63 / - 55 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 / - col0 <= - - col0
----

query I rowsort
SELECT + 8 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
8
8
8

query I rowsort
SELECT DISTINCT - col1 + + col2 + - - 45 + - col1 + col1 FROM tab2 AS cor0
----
17
36
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL + MIN( - 41 ) AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + MIN ( - 41 ) AS col2 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT + 79 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 88 col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2456
SELECT ALL CAST( NULL AS SIGNED ), col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2456
SELECT ALL CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT - 23 + col0 AS col1 FROM tab0
----
-8
64
74

query I rowsort
SELECT ALL + - 33 + + 87 AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT col2 - + 81 FROM tab0 AS cor0
----
-34
-71
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL + 13 + ( - 81 ) * + SUM( DISTINCT 66 ) FROM tab0 AS cor0
----
-5333

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + 13 + ( - 81 ) * + SUM ( DISTINCT 66 ) FROM tab0 AS cor0
----
-5333

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - 6 ) IS NULL
----

query I rowsort
SELECT ALL + 89 + 67 + col0 AS col2 FROM tab2 cor0
----
202
220
231

query I rowsort
SELECT ALL + 51 + + col1 FROM tab2
----
102
118
128

query I rowsort
SELECT 61 * + col2 AS col0 FROM tab1 WHERE - - col2 IS NOT NULL
----
3599
4148
5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2466
SELECT + + CAST( NULL AS SIGNED ) * + col0 + - col1 + + 4 * - col1 / + 33 FROM tab0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2466
SELECT + + CAST ( NULL AS INTEGER ) * + col0 + - col1 + + 4 * - col1 / + 33 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT MIN( - - col1 ) - - - COUNT( * ) * - ( - 0 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2467
SELECT MIN ( - - col1 ) - - - COUNT ( * ) * - ( - 0 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT ALL - 74 - - - col0 AS col2 FROM tab0
----
-161
-171
-89

query I rowsort
SELECT - - 92 AS col2 FROM tab0 WHERE NOT ( NOT - + col2 > - - col1 ) OR NOT 13 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2470
SELECT + 44 - - 63 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT + 44 - - 63 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN + - 86 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT - AVG ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT 63 * CAST( NULL AS SIGNED ) * + 93 + + + col1 IN ( - - col2 - + + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT - AVG ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT 63 * CAST ( NULL AS INTEGER ) * + 93 + + + col1 IN ( - - col2 - + + 99 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT - ( CAST( - + 2 AS SIGNED ) ) FROM tab2 WHERE NOT - col1 IS NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2473
SELECT - ( CAST ( - + 2 AS INTEGER ) ) FROM tab2 WHERE NOT - col1 IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL SUM( ALL + + 12 ) AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL SUM ( ALL + + 12 ) AS col2 FROM tab2
----
36

query III rowsort
SELECT * FROM tab2 WHERE NOT - 15 + - col2 + + col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + + 88 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL OR + col1 + ( + col2 ) + col1 + col0 IS NOT NULL
----
139
155
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 45 col2 FROM tab1 AS cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 9 col2, + col2 * 95 AS col2 FROM tab0
----
-9
4465
-9
9405
-9
950

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 + + 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + col1 + + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-21
24
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99, - 31 col0 FROM tab0
----
99
-31
99
-31
99
-31

query II rowsort
SELECT col2 * col1 * - col1, - 43 * - col1 AS col1 FROM tab1
----
-1475
215
-150212
2021
-18816
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 38 ) col2 FROM tab0 AS cor0
----
-38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 8 * col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 93 + - col0 > + 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT ALL + - COUNT( ALL - col1 ) col1, 34 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
0
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2486
SELECT ALL + - COUNT ( ALL - col1 ) col1, 34 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----
0
34

query I rowsort
SELECT ALL col0 + - col1 + 43 AS col0 FROM tab1
----
123
80
87

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 > + 92
----
0

skipif mysql # not compatible
query I rowsort label-2489
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 > + 92
----
0

query I rowsort
SELECT DISTINCT + - col1 * - ( + - ( col2 ) ) + col1 * - col1 * + - 25 FROM tab1 AS cor0
----
330
3556
52029

query I rowsort
SELECT - - 75 * - col0 + - col2 FROM tab2 AS cor0
----
-3473
-4840
-5683

query I rowsort
SELECT + - ( + ( - 87 ) ) * + col0 + + col1 FROM tab1 AS cor0
----
4451
7400
7964

query I rowsort
SELECT 15 + + 96 * - col2 FROM tab0
----
-4497
-945
-9489

onlyif mysql # aggregate syntax: 
query II rowsort label-2494
SELECT DISTINCT - COUNT( * ) - - MIN( ALL col2 ) AS col0, + 82 + - - COUNT( * ) FROM tab2
----
20
85

skipif mysql # not compatible
query II rowsort label-2494
SELECT DISTINCT - COUNT ( * ) - - MIN ( ALL col2 ) AS col0, + 82 + - - COUNT ( * ) FROM tab2
----
20
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT + SUM( 98 ) DIV + + 15 + 95 * COUNT( * ) * - 95 FROM tab0
----
-27056

skipif mysql # not compatible
query I rowsort label-2495
SELECT + SUM ( 98 ) / + + 15 + 95 * COUNT ( * ) * - 95 FROM tab0
----
-27056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT DISTINCT ( - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) * - SUM( ALL - 45 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2496
SELECT DISTINCT ( - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) * - SUM ( ALL - 45 ) col1 FROM tab1
----
NULL

query I rowsort
SELECT 55 + col0 FROM tab0
----
142
152
70

query I rowsort
SELECT + col2 * col2 + - col1 FROM tab1
----
3476
4577
9202

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 * - col0 + + 69 / - col0 BETWEEN col0 - + + col1 AND NULL
----

query I rowsort
SELECT ALL 73 * - col1 * 63 AS col0 FROM tab0
----
-372519
-4599
-96579

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT DISTINCT - - col1 DIV - + 60 - - - 95 - + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-111
-182
-192

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - - col1 / - + 60 - - - 95 - + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-111
-182
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NOT + col1 * - - col2 <= + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NOT + col1 * - - col2 <= + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT + CAST( NULL AS SIGNED ) * + 65 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT + CAST ( NULL AS INTEGER ) * + 65 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT ALL 83 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL 83 / col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 28 * + col1 * col0 col1 FROM tab1 AS cor0
----
-11900
-119756
-19992

query I rowsort
SELECT DISTINCT 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT ALL col0 DIV + 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL col0 / + 99 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - + COUNT( * ) FROM tab2 WHERE NOT + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2508
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT + col1 >= NULL
----
0

query I rowsort
SELECT - 43 * 23 + + col1 FROM tab0 AS cor0
----
-908
-968
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + + SUM( - col0 ) * - 56 + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
10366

skipif mysql # not compatible
query I rowsort label-2510
SELECT + + SUM ( - col0 ) * - 56 + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
10366

query I rowsort
SELECT DISTINCT col0 / - + 38 * col2 AS col0 FROM tab2 AS cor0 WHERE + 83 <= + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT + MAX( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2512
SELECT + MAX ( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - + COUNT( + col2 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - + COUNT ( + col2 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - + ( 6 ) * + + COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2514
SELECT - + ( 6 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT col1 + 95 FROM tab2 cor0
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT - SUM( DISTINCT + - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - SUM ( DISTINCT + - col1 ) FROM tab0
----
103

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT col0 + - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT ALL 78 DIV - + 34 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL 78 / - + 34 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT col0 * + + 93 * + col2 + + 14 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT MIN( DISTINCT + 59 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2520
SELECT MIN ( DISTINCT + 59 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - - MAX( DISTINCT 88 ) * + 57 * - 78 FROM tab0 AS cor0
----
-391248

skipif mysql # not compatible
query I rowsort label-2521
SELECT - - MAX ( DISTINCT 88 ) * + 57 * - 78 FROM tab0 AS cor0
----
-391248

query I rowsort
SELECT col1 + - ( + 1 ) AS col1 FROM tab2
----
50
66
76

query I rowsort
SELECT DISTINCT - 97 + - + col2 AS col1 FROM tab2 AS cor0
----
-120
-137
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT col0 * col1 DIV col2 - + col0 * - + 44 FROM tab1 AS cor0
----
2251
3747
4066

skipif mysql # not compatible
query I rowsort label-2524
SELECT col0 * col1 / col2 - + col0 * - + 44 FROM tab1 AS cor0
----
2251
3747
4066

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, + col2 * 62 FROM tab1 cor0
----
14
5952
47
4216
5
3658

query I rowsort
SELECT - 90 * - col2 * col2 FROM tab2 cor0
----
144000
302760
47610

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2527
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2527
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT ALL COUNT( * ) - 71 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL COUNT ( * ) - 71 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + 50 - - col1 AS col1 FROM tab0
----
131
51
71

query I rowsort
SELECT col0 * - 17 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT ( + 1 ) AS col0 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL - ( col1 ) AS col1, 78 AS col0 FROM tab1
----
-14
78
-47
78
-5
78

query I rowsort
SELECT ALL - + 60 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL - ( - - 38 ) * COUNT( * ) col0 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2534
SELECT ALL - ( - - 38 ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
-114

query II rowsort
SELECT ALL - 81 AS col2, col0 FROM tab1
----
-81
51
-81
85
-81
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT COUNT( * ) * + - 67 AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-2536
SELECT COUNT ( * ) * + - 67 AS col2 FROM tab2
----
-201

query I rowsort
SELECT DISTINCT 17 * 44 AS col1 FROM tab1
----
748

query I rowsort
SELECT DISTINCT + 69 * - - 83 AS col1 FROM tab0
----
5727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT - + ( + SUM( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT - + ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT DISTINCT col2 DIV + col1 * - - col2 * + + col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT col2 / + col1 * - - col2 * + + col0 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT col2 * + 98 * - + CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
131712
28910
313208

skipif mysql # not compatible
query I rowsort label-2541
SELECT col2 * + 98 * - + CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
131712
28910
313208

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL + + MIN( ALL + col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2542
SELECT ALL + + MIN ( ALL + col0 ) col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + 10 * col1 + col0 AS col2 FROM tab1 AS cor0
----
135
191
561

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT + - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 79 FROM tab1 AS cor0 WHERE NOT 28 IS NULL
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT - 77 DIV - 85 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 77 / - 85 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col1 * + col1 + + - col0 AS col0 FROM tab0 cor0
----
-194
-38454
-98430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT + col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + 0, 76 col0 FROM tab2
----
0
76
0
76
0
76

query I rowsort
SELECT ( col0 ) + - + col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT ( ( ( NULL IS NOT NULL ) ) )
----
-14
-47
-5

query I rowsort
SELECT + 69 + 20 + + - col2 FROM tab2
----
31
49
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT DISTINCT col0 DIV + - 67 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT col0 / + - 67 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT - 46 * - + col2 FROM tab1
----
2714
3128
4416

query II rowsort
SELECT - col0 + col1 AS col2, + col1 + + col1 * - col2 + - col1 + - + 87 FROM tab0
----
-66
-297
-96
-186
66
-3894

query I rowsort
SELECT DISTINCT - 60 + - - 55 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL COUNT( * ) + - + 71 AS col1 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL COUNT ( * ) + - + 71 AS col1 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT - 47 + - - 53 AS col1 FROM tab1 AS cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 + + 65 col1 FROM tab2 cor0
----
29

query I rowsort
SELECT DISTINCT + 97 - - - col0 FROM tab1 AS cor0
----
12
46
6

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE 71 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + - col2 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE col0 + + - 38 NOT BETWEEN + - ( - 58 ) - 36 + 56 / + - col0 AND NULL
----
96

query I rowsort
SELECT + + 6 + + col2 AS col1 FROM tab1 cor0
----
102
65
74

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 3 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + + 67 + + COUNT( * ) col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2566
SELECT ALL + + 67 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
70

query I rowsort
SELECT DISTINCT + + col2 - - 5 + + + ( - 2 ) AS col2 FROM tab0 AS cor0
----
102
13
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + col2 col1 FROM tab2 AS cor0 WHERE NULL <= col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT MIN( + + 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-2569
SELECT MIN ( + + 71 ) FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL - MIN( 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - MIN ( 63 ) FROM tab2
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 WHERE NOT ( NULL ) < col1
----

query II rowsort
SELECT ALL + 12 AS col0, - col2 * + col2 FROM tab0
----
12
-100
12
-2209
12
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT + MAX( - 55 ) AS col2 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT + MAX ( - 55 ) AS col2 FROM tab1
----
-55

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( - - col1 - - col2, col1 * col1, - col1, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - col1 * - 87 + + col0 - - - 84 * - col0 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2576
SELECT - - CAST( + AVG ( - + col2 ) AS SIGNED ), + 4 AS col1 FROM tab2 cor0
----
-40
4

skipif mysql # not compatible
query II rowsort label-2576
SELECT - - CAST ( + AVG ( - + col2 ) AS INTEGER ), + 4 AS col1 FROM tab2 cor0
----
-40
4

query I rowsort
SELECT ALL + - 64 * col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2579
SELECT - + CAST( NULL AS SIGNED ), + col2 * col0 AS col2 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-2579
SELECT - + CAST ( NULL AS INTEGER ), + col2 * col0 AS col2 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - + col2 ) / + col0 / + col0 * col0 + col2 + 56 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2581
SELECT + COUNT( * ) DIV COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT col1 - + - col1 IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-2581
SELECT + COUNT ( * ) / COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT col1 - + - col1 IS NULL
----
4

query I rowsort
SELECT ALL col2 * 85 FROM tab0
----
3995
8415
850

query I rowsort
SELECT + 4 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + 90 <= col2
----
0

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + 90 <= col2
----
0

query I rowsort
SELECT ALL + col2 + - col0 + - col0 - + - 80 FROM tab1 AS cor0
----
-31
-34
74

query I rowsort
SELECT - col0 * - + 51 + - col0 AS col2 FROM tab1 AS cor0
----
2550
4250
4550

query I rowsort
SELECT col2 + + ( col1 ) * + ( - 95 ) - + col0 FROM tab2 AS cor0
----
-4868
-6382
-7339

query I rowsort
SELECT ALL - + 13 * col2 + - - col0 FROM tab0 AS cor0
----
-1190
-43
-596

query I rowsort
SELECT col0 * - col0 * - + col1 + + - 93 + + + col0 AS col0 FROM tab1 cor0
----
36117
36372
389205

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT + - col2 + + col2 DIV + 54 AS col0 FROM tab2 cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-2590
SELECT + - col2 + + col2 / + 54 AS col0 FROM tab2 cor0
----
-23
-40
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 50 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL COUNT( * ) * + ( - - COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL COUNT ( * ) * + ( - - COUNT ( * ) ) FROM tab0
----
9

query II rowsort
SELECT ALL + col1 + + 79 AS col1, col2 / - + 55 AS col1 FROM tab2 WHERE NOT - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT 18 * - COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2595
SELECT 18 * - COUNT ( * ) FROM tab1
----
-54

query I rowsort
SELECT ALL - 88 + - col1 * - - col1 FROM tab2 AS cor0
----
-2689
-4577
-6017

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + COUNT( * ) * + SUM( col1 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2597
SELECT + COUNT ( * ) * + SUM ( col1 ) FROM tab1 AS cor0
----
198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + - + 60 <> + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT DISTINCT + col0 DIV + col0 col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT DISTINCT + col0 / + col0 col1 FROM tab1
----
1

query I rowsort
SELECT - 74 * - col2 AS col2 FROM tab1 AS cor0
----
4366
5032
7104

query I rowsort
SELECT ALL + + ( col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + COUNT( * ) AS col2, - 76 FROM tab0 AS cor0
----
3
-76

skipif mysql # not compatible
query II rowsort label-2602
SELECT + COUNT ( * ) AS col2, - 76 FROM tab0 AS cor0
----
3
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2603
SELECT DISTINCT col0 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT col0 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2 + - 42 + col2 * col0 * + 61
----

skipif mysql # not compatible
query I rowsort label-2605
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2 + - 42 + col2 * col0 * + 61
----

query I rowsort
SELECT ALL + ( - - col2 ) * 66 FROM tab1 AS cor0
----
3894
4488
6336

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + 15
----

query I rowsort
SELECT ALL - ( - + col2 ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT col2 * 83 FROM tab1
----
4897
5644
7968

query I rowsort
SELECT - 27 FROM tab2 cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL BETWEEN NULL AND 29
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + - 13 - - col1 + + + 97 FROM tab2 WHERE NOT + - ( + - col1 ) IS NULL
----
135
151
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT - MIN( + 89 ) AS col1 FROM tab2 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2612
SELECT - MIN ( + 89 ) AS col1 FROM tab2 cor0
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2613
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col0 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2613
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col0 + CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NOT 39 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2615
SELECT MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + 83 FROM tab0 AS cor0 WHERE 86 + ( + col2 ) IS NOT NULL
----
83

query II rowsort
SELECT col1 * + + 39 * col1 + - + col2 - + col1 + + col1 * - - 90 AS col2, + col2 * 72 AS col1 FROM tab1
----
1361
4248
8794
6912
90266
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2618
SELECT COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT 67 + + - 73 FROM tab2
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT 11 DIV + col0 + + - col1 AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2620
SELECT 11 / + col0 + + - col1 AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + col2 * + + col1 + + col0 AS col0 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE - ( - - col2 ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE ( - - 67 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 14 * - col2 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE - + 78 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE - + 78 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + col2 + - + 70 AS col0 FROM tab0 AS cor0
----
-117
-169
-80

query I rowsort
SELECT DISTINCT col0 + 73 AS col1 FROM tab2 AS cor0
----
119
137
148

query II rowsort
SELECT DISTINCT + col0 + col2, 94 AS col1 FROM tab1 AS cor0
----
144
94
147
94
159
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT ALL + - col2 DIV + col0 + - 94 AS col1 FROM tab1 AS cor0
----
-94
-94
-95

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + - col2 / + col0 + - 94 AS col1 FROM tab1 AS cor0
----
-94
-94
-95

query I rowsort
SELECT ALL - col1 * - col1 + - col1 FROM tab1
----
182
20
2162

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 91 * - - 82 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL - + col2 - + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = col2 * - 29 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT COUNT( ALL + col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT COUNT ( ALL + col2 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + col1 * + - 28 FROM tab2 cor0
----
-1428
-1876
-2156

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT ALL + col0 * + - ( + 59 ) FROM tab0 AS cor0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT + + SUM( DISTINCT - col2 ) DIV - COUNT( * ) col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT + + SUM ( DISTINCT - col2 ) / - COUNT ( * ) col2 FROM tab2 AS cor0
----
40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <= - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT DISTINCT 37 DIV + col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT 37 / + col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 4 * + 41 + col0 * + - 99 * - 80 + - ( - col0 ) FROM tab0 AS cor0
----
118651
688963
768173

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2642
SELECT ALL CAST( NULL AS SIGNED ) / + + CAST( NULL AS DECIMAL ) * + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS REAL ) * + - COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT ALL 0, ( + col1 ) FROM tab0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + 44 AS col1, - 94 + - - COUNT( * ) AS col0 FROM tab2
----
44
-91

skipif mysql # not compatible
query II rowsort label-2644
SELECT + 44 AS col1, - 94 + - - COUNT ( * ) AS col0 FROM tab2
----
44
-91

query I rowsort
SELECT DISTINCT col2 * 32 AS col0 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT + col1 * - - col0 + - 64 * col1 AS col1 FROM tab2 AS cor0
----
-918
0
737

query I rowsort
SELECT col0 * - 68 FROM tab2 WHERE NULL <= NULL
----

query II rowsort
SELECT - col2 + - col0 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-104
77
-133
67
-69
51

query I rowsort
SELECT + 11 + - ( - col2 ) FROM tab0 AS cor0
----
110
21
58

query II rowsort
SELECT - 15 + + col0 AS col2, 46 AS col2 FROM tab2 AS cor0
----
31
46
49
46
60
46

query I rowsort
SELECT col2 + - 99 FROM tab1 AS cor0
----
-3
-31
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 + + col1 col0, - 84 + - col1 FROM tab2 AS cor0
----
28
-135
37
-161
9
-151

query I rowsort
SELECT - ( col0 ) + + col0 + + col1 * 97 AS col0 FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + 29 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 29 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE 7 * - - col1 / + col0 * - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2655
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE 7 * - - col1 / + col0 * - CAST ( + col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL + 39, - 89 AS col2 FROM tab2 AS cor0 WHERE col0 * + col2 + col1 IS NULL
----

query I rowsort
SELECT ALL - 29 + + col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 71 BETWEEN + - col1 AND col1 * - + ( col2 ) - + 54 * + - col1
----
115
118
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2658
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 * + + col2, col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2658
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 * + + col2, col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ( - - 85 ) * + - col2 * - col1 AS col0 FROM tab0
----
17850
323595
8415

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT ALL - COUNT( * ), + 84 AS col2 FROM tab1
----
-3
84

skipif mysql # not compatible
query II rowsort label-2660
SELECT ALL - COUNT ( * ), + 84 AS col2 FROM tab1
----
-3
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT - col0 * + - 44 * ( col0 ) * + - col2 - + 4 - - col0 DIV - col1 + - 72 AS col0 FROM tab2
----
-14355077
-2141468
-7209036

skipif mysql # not compatible
query I rowsort label-2661
SELECT - col0 * + - 44 * ( col0 ) * + - col2 - + 4 - - col0 / - col1 + - 72 AS col0 FROM tab2
----
-14355077
-2141468
-7209036

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * 68 * - - col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - - MAX( - + 88 ) AS col2 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - - MAX ( - + 88 ) AS col2 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + MIN( ALL - - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( 30 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT + MIN ( ALL - - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( 30 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + 45 + + - 26 * + + col2 * col1 FROM tab0 cor0
----
-2529
-5415
-98937

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2666
SELECT ALL + + CAST( NULL AS SIGNED ) * + COUNT( * ) - - MIN( ALL col2 ) + + ( - MAX( 47 ) ) / - - COUNT( ALL col0 ), MAX( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - MIN ( ALL col2 ) + + ( - MAX ( 47 ) ) / - - COUNT ( ALL col0 ), MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2667
SELECT ALL - 56 DIV ( + SUM( DISTINCT + col2 ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2667
SELECT ALL - 56 / ( + SUM ( DISTINCT + col2 ) ) col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT COUNT( * ) FROM tab0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT COUNT ( * ) FROM tab0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col2 FROM tab1
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT IN ( - 35 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2671
SELECT DISTINCT - CAST( 70 AS SIGNED ) DIV col0 + col1 AS col1 FROM tab0
----
1
21
77

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT - CAST ( 70 AS INTEGER ) / col0 + col1 AS col1 FROM tab0
----
1
21
77

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - col0 * col2 NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL 62 * COUNT( * ) + COUNT( DISTINCT - col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL 62 * COUNT ( * ) + COUNT ( DISTINCT - col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + COUNT( - 4 ) AS col1 FROM tab2 WHERE - 47 + + 53 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + COUNT ( - 4 ) AS col1 FROM tab2 WHERE - 47 + + 53 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT - MIN( DISTINCT 68 ) AS col0 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-2676
SELECT - MIN ( DISTINCT 68 ) AS col0 FROM tab0
----
-68

query I rowsort
SELECT ALL - col2 + - 12 * + 52 AS col1 FROM tab1
----
-683
-692
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT COUNT( + col2 ) + 92 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT COUNT ( + col2 ) + 92 FROM tab2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col1 FROM tab1 WHERE NOT ( NULL ) <= col1 + ( - 4 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - ( MAX( - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2681
SELECT - ( MAX ( - col1 ) ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 * 22 + col0 < - col2 + - 44
----
3

skipif mysql # not compatible
query I rowsort label-2682
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 * 22 + col0 < - col2 + - 44
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT 82 + + CAST( 79 AS SIGNED ) AS col2 FROM tab0
----
161
161
161

skipif mysql # not compatible
query I rowsort label-2683
SELECT 82 + + CAST ( 79 AS INTEGER ) AS col2 FROM tab0
----
161
161
161

query I rowsort
SELECT ALL 24 FROM tab1 WHERE NOT - 89 - col0 IN ( - 32 + + col2 )
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT MAX( + 79 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2685
SELECT MAX ( + 79 ) FROM tab2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT 74 * - col0 NOT IN ( ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-2686
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT 74 * - col0 NOT IN ( ( CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 62 + - 35 = + col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 < col1
----
1

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 < col1
----
1

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 35 + + col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 5 = - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL - COUNT( - col1 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2691
SELECT ALL - COUNT ( - col1 ) col2 FROM tab0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT ALL 7 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL 7 / col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2694
SELECT * FROM tab0 AS cor0 WHERE ( 46 * - CAST( + col2 AS SIGNED ) ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2694
SELECT * FROM tab0 AS cor0 WHERE ( 46 * - CAST ( + col2 AS INTEGER ) ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT + - MIN( + 98 ) AS col1 FROM tab2 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + - MIN ( + 98 ) AS col1 FROM tab2 cor0
----
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 62 / - col2 IN ( 51 + ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT - col0 * - 17 - CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT - col0 * - 17 - CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT CAST( 30 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE ( 21 * - 18 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2698
SELECT CAST ( 30 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE ( 21 * - 18 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) = - col0 / - ( - col1 )
----

query I rowsort
SELECT col0 + + 7 FROM tab2 AS cor0
----
53
71
82

query I rowsort
SELECT ALL 74 - col0 * - col1 AS col2 FROM tab2 AS cor0
----
2420
5002
5099

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN col1 AND col1 * 21
----
23
40
58

query I rowsort
SELECT ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT col0 + - - col1 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL col2 - col2 * 97 AS col1 FROM tab1
----
-5664
-6528
-9216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + 41 <= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT CAST( NULL AS SIGNED ) + + MIN( + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT CAST ( NULL AS INTEGER ) + + MIN ( + col2 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2709
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2709
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + + col0 col2 FROM tab1
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL - COUNT( * ) - + 19 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - COUNT ( * ) - + 19 FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL + col1 * col0 AS col2 FROM tab0 WHERE + CAST( NULL AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + col1 * col0 AS col2 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 55 <= ( + col2 )
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - ( col2 ) AND ( - 49 * - col0 + col2 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT DISTINCT + 65 DIV col2 - col1 AS col2 FROM tab0
----
-1
-15
-80

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + 65 / col2 - col1 AS col2 FROM tab0
----
-1
-15
-80

query I rowsort
SELECT DISTINCT - col0 * col2 AS col2 FROM tab1 WHERE NOT - 25 * + col2 IS NULL
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT ALL MAX( DISTINCT CAST( 76 AS SIGNED ) ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL MAX ( DISTINCT CAST ( 76 AS INTEGER ) ) AS col2 FROM tab1
----
76

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE 29 / col1 NOT IN ( col2 )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL = ( col1 * 91 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT + col2 * + 19 - col2 AS col1 FROM tab1 WHERE NOT - + col2 NOT BETWEEN col2 + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 49 - - col0 * + col2 AS col1 FROM tab2 WHERE 97 > ( NULL )
----

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query II rowsort
SELECT ALL + col2, - col0 + - col2 AS col1 FROM tab2 AS cor0
----
23
-69
40
-104
58
-133

query II rowsort
SELECT 1, + 40 AS col1 FROM tab0 AS cor0
----
1
40
1
40
1
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT col0 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-2726
SELECT col0 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT ALL CAST( NULL AS SIGNED ) + col1 / col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL CAST ( NULL AS INTEGER ) + col1 / col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT DISTINCT + MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT + MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - + col0 * - + 17 - - 11 - + 69 * col0 FROM tab1 AS cor0
----
-2641
-4409
-4721

query I rowsort
SELECT + col0 * - + 79 FROM tab2 AS cor0
----
-3634
-5056
-5925

query I rowsort
SELECT - col1 * ( + - col0 ) FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + ( + - col1 ) * - col1
----

query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) * - col1 + - 83 FROM tab2
----
-237243
-260445
-59906

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL + + COUNT( - col1 ) * + COUNT( * ) + 31 FROM tab1 WHERE ( NULL ) = + 68
----
31

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + + COUNT ( - col1 ) * + COUNT ( * ) + 31 FROM tab1 WHERE ( NULL ) = + 68
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2735
SELECT 89 - + 47 FROM tab1 WHERE NOT + CAST( col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2735
SELECT 89 - + 47 FROM tab1 WHERE NOT + CAST ( col0 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + 32 AS col0 FROM tab1
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT - 52 + col2 AS col2 FROM tab2 AS cor0
----
-12
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT - + ( - SUM( - 17 ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2739
SELECT - + ( - SUM ( - 17 ) ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2740
SELECT 24 + MIN( ALL col0 ) col2, + 33 col0 FROM tab1
----
75
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2740
SELECT 24 + MIN ( ALL col0 ) col2, + 33 col0 FROM tab1
----
75
33

query I rowsort
SELECT + 55 + 99 * col1 FROM tab1 WHERE + col0 IN ( + col2 )
----

query I rowsort
SELECT - ( - col0 ) * 69 + col1 + 10 AS col0 FROM tab0
----
1126
6034
6704

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT MAX( + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2743
SELECT MAX ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 74 col1, + col2 FROM tab0 AS cor0
----
74
10
74
47
74
99

query II rowsort
SELECT ALL - 63, 33 AS col2 FROM tab0 AS cor0
----
-63
33
-63
33
-63
33

query I rowsort
SELECT DISTINCT col1 + + col0 * + 27 FROM tab1 AS cor0
----
1391
2300
2504

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 = 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT DISTINCT 34 FROM tab1 AS cor0 WHERE + col2 * CAST( NULL AS SIGNED ) BETWEEN ( - - col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT 34 FROM tab1 AS cor0 WHERE + col2 * CAST ( NULL AS INTEGER ) BETWEEN ( - - col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL < + 45 )
----

query II rowsort
SELECT DISTINCT col0, - ( - + col1 ) FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + 65 - - col0 AS col2 FROM tab2
----
111
129
140

query I rowsort
SELECT DISTINCT - col1 - - 11 FROM tab2
----
-40
-56
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL SUM( DISTINCT + + CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL SUM ( DISTINCT + + CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT + col2 * - col1 + 2 AS col1 FROM tab0
----
-208
-3805
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 32 ) <= + 85
----

query I rowsort
SELECT ALL + - ( 67 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2757
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT - SUM( 2 ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - SUM ( 2 ) AS col0 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT ( - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2759
SELECT ( - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT + 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2761
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 * - + ( - 7 ) * - col1 + + CAST( NULL AS SIGNED ) + + + ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-2761
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 * - + ( - 7 ) * - col1 + + CAST ( NULL AS INTEGER ) + + + ( col1 ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 <= ( - col2 )
----

query I rowsort
SELECT ALL - + ( + 18 ) AS col2 FROM tab1 cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT - ( + + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT - ( + + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT + col1 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL COUNT( - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL COUNT ( - col2 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT DISTINCT COUNT( ALL - 56 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT COUNT ( ALL - 56 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT - col0 + CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-2768
SELECT - col0 + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT 25 + - - col2 FROM tab2 AS cor0
----
48
65
83

query I rowsort
SELECT 97 * + - col1 AS col0 FROM tab1 AS cor0
----
-1358
-4559
-485

query I rowsort
SELECT ALL + 3 + - col1 AS col2 FROM tab0 AS cor0
----
-18
-78
2

query I rowsort
SELECT ( + 34 ) * - col1 AS col1 FROM tab0
----
-2754
-34
-714

query I rowsort
SELECT 3 * + col0 * 82 FROM tab2
----
11316
15744
18450

query II rowsort
SELECT DISTINCT ( + 21 ), col0 FROM tab1
----
21
51
21
85
21
91

query I rowsort
SELECT DISTINCT + col1 + - 63 FROM tab1
----
-16
-49
-58

query I rowsort
SELECT ALL 28 FROM tab1 AS cor0 WHERE ( col0 + - 13 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - MIN( col1 ) col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2777
SELECT ALL - MIN ( col1 ) col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NULL > + col1 * - col0 - - 43
----

query I rowsort
SELECT 37 + + 8 * + col2 AS col0 FROM tab0 AS cor0
----
117
413
829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) - ( + SUM( DISTINCT + col0 ) ) + CAST( + - 99 AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) - ( + SUM ( DISTINCT + col0 ) ) + CAST ( + - 99 AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL 62 + + - ( - MAX( + col2 ) ) - ( 30 ) col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2781
SELECT ALL 62 + + - ( - MAX ( + col2 ) ) - ( 30 ) col2 FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT - - 58 + + - col1 * - - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-138
-2151
33

skipif mysql # not compatible
query I rowsort label-2782
SELECT - - 58 + + - col1 * - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-138
-2151
33

query II rowsort
SELECT DISTINCT + col2 + col1, 97 AS col1 FROM tab2 AS cor0
----
117
97
125
97
74
97

query II rowsort
SELECT - col2 + + col1 AS col0, + 63 * col1 FROM tab1 AS cor0
----
-21
2961
-54
315
-82
882

query I rowsort
SELECT col0 * + col2 * + col2 + + col2 AS col1 FROM tab0
----
33182
8710
950796

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + col0 )
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query II rowsort
SELECT ALL + 7 * ( col2 ), + 64 AS col0 FROM tab0 AS cor0
----
329
64
693
64
70
64

query I rowsort
SELECT + 94 * - col0 FROM tab2 AS cor0
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT - - 47 * COUNT( * ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - - 47 * COUNT ( * ) FROM tab2 AS cor0
----
141

query I rowsort
SELECT - 68 * + + col2 FROM tab1 AS cor0 WHERE NOT - col0 <= + ( - col1 )
----

query I rowsort
SELECT + col1 * 83 FROM tab0 AS cor0
----
1743
6723
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2793
SELECT - + col1 * CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2793
SELECT - + col1 * CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col2 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 40 * - 53 * - ( col2 ) * - + 82 - - col1 BETWEEN col0 AND ( - col1 / + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col1
----

query I rowsort
SELECT + 44 * - col0 AS col1 FROM tab1 AS cor0
----
-2244
-3740
-4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + ( + col2 ) AS col0 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - 29 + ( col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
105
125
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT - col2 + ( 46 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT - col2 + ( 46 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT + + ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2802
SELECT + + ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT AVG ( - + col2 ) AS col0 FROM tab2 WHERE ( NULL BETWEEN ( NULL ) AND NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 68 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2806
SELECT ALL + 98 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + 98 / - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ( - SUM( ALL + col1 ) ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2807
SELECT ( - SUM ( ALL + col1 ) ) col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT ALL ( - MIN( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + col0 * + col0 * + col0 IS NOT NULL )
----
58

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL ( - MIN ( - col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + col0 * + col0 * + col0 IS NOT NULL )
----
58

query I rowsort
SELECT col2 * - col2 * + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-295944
-420852
-470112

query I rowsort
SELECT + - 80 * + - col2 FROM tab2 AS cor0
----
1840
3200
4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 66 * - 31 * ( + - col1 ) + - 20 + col1 col2, + col2 * - ( - col2 ) * + col1 FROM tab1 AS cor0
----
-10245
17405
-28650
129024
-96135
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - MIN( ALL - col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2812
SELECT - MIN ( ALL - col0 ) AS col0 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT DISTINCT - SUM( + + 90 ) * - MAX( DISTINCT - col2 ), 14 AS col0 FROM tab1 AS cor0
----
-15930
14

skipif mysql # not compatible
query II rowsort label-2814
SELECT DISTINCT - SUM ( + + 90 ) * - MAX ( DISTINCT - col2 ), 14 AS col0 FROM tab1 AS cor0
----
-15930
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT - 21 DIV + + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT - 21 / + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 27 FROM tab2 AS cor0 WHERE + col0 * + col0 <= - col1 + - 18
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT - col0 DIV - + 17 AS col0 FROM tab0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-2817
SELECT - col0 / - + 17 AS col0 FROM tab0
----
0
5
5

query I rowsort
SELECT ALL + ( + 19 ) AS col1 FROM tab0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT - CAST( - + col2 AS SIGNED ), col1 + col2 AS col0 FROM tab1
----
59
64
68
115
96
110

skipif mysql # not compatible
query II rowsort label-2819
SELECT - CAST ( - + col2 AS INTEGER ), col1 + col2 AS col0 FROM tab1
----
59
64
68
115
96
110

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 17 ) NOT BETWEEN NULL AND - col1 + - col2
----

query I rowsort
SELECT ALL - - 64 AS col1 FROM tab0 WHERE NOT + 98 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL col0 DIV 74 + + - col2 AS col1 FROM tab0 AS cor0
----
-47
-9
-98

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL col0 / 74 + + - col2 AS col1 FROM tab0 AS cor0
----
-47
-9
-98

query II rowsort
SELECT - 63 AS col1, - col2 + + col2 FROM tab2
----
-63
0
-63
0
-63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT + COUNT( + 98 ) + 20 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + COUNT ( + 98 ) + 20 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT + MAX( + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2825
SELECT + MAX ( + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL col1 * + - col0 * + - col2 + + + 70 + + col2 - + col0 * - col2 * 45 * - col2 AS col1 FROM tab1 cor0
----
-13289621
-18644306
-21082010

query I rowsort
SELECT DISTINCT - 17 + 39 AS col2 FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT MIN( ALL + - ( + - col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT MIN ( ALL + - ( + - col2 ) ) FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 col2 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT MAX( DISTINCT - 43 ) col0 FROM tab2
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2830
SELECT DISTINCT MAX ( DISTINCT - 43 ) col0 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT ( + 41 ) FROM tab0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT 81 + COUNT( * ) * + 9 * - AVG ( DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT 81 + COUNT ( * ) * + 9 * - AVG ( DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL ( - + MIN( + col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL ( - + MIN ( + col1 ) ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT ( - + ( 35 ) ) FROM tab1
----
-35

query I rowsort
SELECT - col1 * + + 68 + + - 6 FROM tab1
----
-3202
-346
-958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT + CAST( COUNT( * ) AS SIGNED ) + - + 31 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2837
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - + 31 FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2838
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( - + col1 AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2838
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( - + col1 AS REAL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 - col0 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2840
SELECT * FROM tab1 cor0 WHERE CAST( col0 AS SIGNED ) + - col1 + - col2 NOT IN ( - col1 / - + col0 * ( + 57 ) + + col0, + CAST( NULL AS SIGNED ), - 68 * + CAST( + 2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2840
SELECT * FROM tab1 cor0 WHERE CAST ( col0 AS INTEGER ) + - col1 + - col2 NOT IN ( - col1 / - + col0 * ( + 57 ) + + col0, + CAST ( NULL AS INTEGER ), - 68 * + CAST ( + 2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - COUNT( ALL - - 29 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2841
SELECT - COUNT ( ALL - - 29 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 63 + col1 AS col1 FROM tab0 AS cor0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - - COUNT( ALL + + 22 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2843
SELECT - - COUNT ( ALL + + 22 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - COUNT( ALL 83 ) AS col0 FROM tab1 WHERE - 78 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT - COUNT ( ALL 83 ) AS col0 FROM tab1 WHERE - 78 < NULL
----
0

query I rowsort
SELECT DISTINCT + 59 * 10 AS col0 FROM tab0
----
590

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 73 * + col2 FROM tab2 cor0
----
-1679
-2920
-4234

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + 5 + + col2 + - col1 * - - col1 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col0 FROM tab2 AS cor0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + + 65 IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 * - - 67 AS col0 FROM tab2 AS cor0
----
-3082
-4288
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2852
SELECT + + ( + col1 ), - col1 * - col0 * 5 * + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2852
SELECT + + ( + col1 ), - col1 * - col0 * 5 * + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 17
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 21 / - - col0 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - 36 * - COUNT( * ) AS col2 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - 36 * - COUNT ( * ) AS col2 FROM tab0
----
108

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + 84 * col2 + - + 65, + col0 / - col0 )
----

query I rowsort
SELECT ALL 88 * - + col1 FROM tab0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL + COUNT( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL + COUNT ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - 48, col2 FROM tab2 AS cor0
----
-48
23
-48
40
-48
58

query I rowsort
SELECT DISTINCT - col2 * - 63 FROM tab1 AS cor0
----
3717
4284
6048

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2862
SELECT + 0 DIV CAST( + col1 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 0 / CAST ( + col1 AS INTEGER ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 36 col1 FROM tab2 AS cor0
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT COUNT( * ) * + ( - COUNT( * ) ) + COUNT( DISTINCT + 88 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2864
SELECT COUNT ( * ) * + ( - COUNT ( * ) ) + COUNT ( DISTINCT + 88 ) FROM tab2 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT - 57 * + CAST( col0 AS SIGNED ) + 95 + - 63 FROM tab0 AS cor0
----
-4927
-5497
-823

skipif mysql # not compatible
query I rowsort label-2865
SELECT - 57 * + CAST ( col0 AS INTEGER ) + 95 + - 63 FROM tab0 AS cor0
----
-4927
-5497
-823

query I rowsort
SELECT + col0 + ( 60 ) FROM tab2 AS cor0
----
106
124
135

query I rowsort
SELECT DISTINCT 62 + + col1 + + col1 FROM tab1 cor0
----
156
72
90

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - 27 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 91 + 13 col1 FROM tab2 cor0
----
-4628
-6084
-6994

query I rowsort
SELECT DISTINCT - - col2 + + 44 FROM tab0 AS cor0
----
143
54
91

query I rowsort
SELECT DISTINCT 92 * + 48 FROM tab1
----
4416

query III rowsort
SELECT * FROM tab2 WHERE + 50 > NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 57 AS col1 FROM tab1
----
2907
4845
5187

query III rowsort
SELECT * FROM tab0 WHERE 72 NOT IN ( - - 9 * + - col2 - + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT MIN( ALL - 61 ) AS col1 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-2875
SELECT MIN ( ALL - 61 ) AS col1 FROM tab1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2876
SELECT 36 col2, ( + 92 ) * + ( AVG ( DISTINCT ( col0 ) ) ) + + + CAST( NULL AS SIGNED ) FROM tab2
----
36
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2876
SELECT 36 col2, ( + 92 ) * + ( AVG ( DISTINCT ( col0 ) ) ) + + + CAST ( NULL AS INTEGER ) FROM tab2
----
36
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 1 * + 45 + - - col0, col2 + - col2 col0 FROM tab1
----
40
0
46
0
6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2878
SELECT CAST( - 44 AS SIGNED ) - COUNT( * ) AS col1, - 24 FROM tab0
----
-47
-24

skipif mysql # not compatible
query II rowsort label-2878
SELECT CAST ( - 44 AS INTEGER ) - COUNT ( * ) AS col1, - 24 FROM tab0
----
-47
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT - col2 - + 7 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2879
SELECT - col2 - + 7 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 85 + + + 92 AS col2 FROM tab1 AS cor0
----
177

query I rowsort
SELECT DISTINCT - 45 + col2 FROM tab2 AS cor0
----
-22
-5
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT DISTINCT - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT - MIN( + col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT - MIN ( + col0 ) AS col1 FROM tab1 cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT col1 DIV - 31 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT col1 / - 31 FROM tab0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT ( + col0 ) DIV - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2887
SELECT ( + col0 ) / - col1 FROM tab0
----
-4
-97
0

query I rowsort
SELECT DISTINCT - col0 * - 65 * - 6 FROM tab2
----
-17940
-24960
-29250

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL ( 7 ) * - + COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL ( 7 ) * - + COUNT ( * ) FROM tab2
----
-21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + 84 * - 48 * col1 + ( ( - col0 ) ) + 96
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT MAX( + 87 ) AS col1, ( 85 ) FROM tab0
----
87
85

skipif mysql # not compatible
query II rowsort label-2891
SELECT MAX ( + 87 ) AS col1, ( 85 ) FROM tab0
----
87
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT ALL - ( - 10 ) AS col0, SUM( ALL - + col0 ) FROM tab1 AS cor0
----
10
-227

skipif mysql # not compatible
query II rowsort label-2892
SELECT ALL - ( - 10 ) AS col0, SUM ( ALL - + col0 ) FROM tab1 AS cor0
----
10
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT + COUNT( * ) + - - 63 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + COUNT ( * ) + - - 63 AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT ALL + CAST( NULL AS SIGNED ) + + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL + CAST ( NULL AS INTEGER ) + + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 24 AS col0 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT 21 - 35 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query II rowsort
SELECT + 92 AS col1, col1 FROM tab2
----
92
51
92
67
92
77

query I rowsort
SELECT ALL + col2 + - + 28 * + - col1 * + 62 AS col1 FROM tab0 AS cor0
----
140663
1835
36466

query I rowsort
SELECT - col1 * + col0 + - + col1 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - col0 col0 FROM tab2 AS cor0 WHERE 24 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + - col1 * + 40 * - 48 AS col0 FROM tab0 cor0
----
155520
1920
40320

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT ALL - 87 DIV - col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - 87 / - col0 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2903
SELECT + col1 + + col0 AS col0, + CAST( - - col0 AS SIGNED ) * 55 AS col0 FROM tab2
----
141
3520
142
4125
97
2530

skipif mysql # not compatible
query II rowsort label-2903
SELECT + col1 + + col0 AS col0, + CAST ( - - col0 AS INTEGER ) * 55 AS col0 FROM tab2
----
141
3520
142
4125
97
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + SUM( ALL + col2 ) AS col0 FROM tab0 WHERE ( ( NULL ) > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT + SUM ( ALL + col2 ) AS col0 FROM tab0 WHERE ( ( NULL ) > NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT - + COUNT( + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - + COUNT ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - ( 49 ) AS col1 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + + col1 - + ( + + 53 ) + + - col0 FROM tab2 AS cor0
----
-40
-48
-61

query I rowsort
SELECT + col0 - + 60 + - - 68 AS col0 FROM tab2 AS cor0
----
54
72
83

query I rowsort
SELECT 17 - 54 AS col0 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2911
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2911
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query II rowsort
SELECT ALL 79, + col2 FROM tab0 AS cor0
----
79
10
79
47
79
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL + MAX( ALL - 39 ) col0 FROM tab2 cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2914
SELECT ALL + MAX ( ALL - 39 ) col0 FROM tab2 cor0
----
-39

query I rowsort
SELECT ALL + ( + 18 ) AS col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT 69 * - col1 FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + COUNT( * ) * + 35 AS col0 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2918
SELECT + COUNT ( * ) * + 35 AS col0 FROM tab2 AS cor0
----
105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + col1 + + + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT COUNT( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT COUNT ( col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 2 + + 60 FROM tab1 WHERE + col0 IS NOT NULL
----
58
58
58

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 NOT IN ( - col0 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 91 ) col2 FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - COUNT( ALL - + 29 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2925
SELECT - COUNT ( ALL - + 29 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2926
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + - COUNT( * ) * + 76 FROM tab0 cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2927
SELECT + - COUNT ( * ) * + 76 FROM tab0 cor0
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2928
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - CAST( + ( - 74 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2928
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - CAST ( + ( - 74 ) AS INTEGER )
----

query I rowsort
SELECT ALL 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT 13 + + col1 FROM tab2 AS cor0
----
64
80
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL - + col1 + - + 64 AS col2 FROM tab2 AS cor0
----
-115
-131
-141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2934
SELECT DISTINCT - col2 - - - CAST( NULL AS DECIMAL ) + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - col2 - - - CAST ( NULL AS REAL ) + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2935
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + + col1 * 44, CAST( NULL AS SIGNED ) / + col0 * - - col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-2935
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + + col1 * 44, CAST ( NULL AS INTEGER ) / + col0 * - - col1, col0 )
----

query I rowsort
SELECT - 1 * - 37 * + 28 FROM tab1
----
1036
1036
1036

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 - + col1 AND 52
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE - col0 * - 37 + + - col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + COUNT( * ) * - 12 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + COUNT ( * ) * - 12 FROM tab2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT 42 - + + col1 + col0 * + col2 * col0 - - col2 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - col0 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT 42 - + + col1 + col0 * + col2 * col0 - - col2 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - col0 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 67 - + + col0 + - 43 FROM tab0
----
-63
-73
9

query I rowsort
SELECT + 96 + - col0 FROM tab1 AS cor0
----
11
45
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( - + col0 ) col0 FROM tab0 AS cor0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61 * 40 + + col2 AS col1, - 1 + + col1 col2 FROM tab1 AS cor0
----
-2344
13
-2372
46
-2381
4

query I rowsort
SELECT 52 + + + 26 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL + - ( - col0 ) + - col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + - ( - col0 ) + - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 51, + col1 FROM tab2 WHERE NOT + col0 IS NULL
----
51
51
51
67
51
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col1
----

query I rowsort
SELECT DISTINCT col1 * - ( 37 ) AS col0 FROM tab0 AS cor0
----
-2997
-37
-777

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * - col2 / 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT SUM( + 50 ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2951
SELECT SUM ( + 50 ) FROM tab1 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT DISTINCT 11 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL > 21
----

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT 11 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL > 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT MAX( DISTINCT + 47 ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT MAX ( DISTINCT + 47 ) AS col1 FROM tab0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2954
SELECT * FROM tab2 WHERE NOT + - 90 / - 95 - col0 + + CAST( - + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2954
SELECT * FROM tab2 WHERE NOT + - 90 / - 95 - col0 + + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2955
SELECT ALL + col1, - CAST( NULL AS SIGNED ) + - ( + + col1 ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2955
SELECT ALL + col1, - CAST ( NULL AS INTEGER ) + - ( + + col1 ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col0 FROM tab2
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT - col2 DIV + - col0 col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2957
SELECT - col2 / + - col0 col1 FROM tab0
----
0
1
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + 6 + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 4 BETWEEN NULL AND + 93 + col0
----

query I rowsort
SELECT ( - 95 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT SUM( DISTINCT col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ALL + 92 + + col1 AS col2 FROM tab2
----
143
159
169

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - 93 NOT BETWEEN col2 AND - 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + ( - 80 ) + col2 AS col2, col0 FROM tab1 AS cor0
----
-12
91
-21
85
16
51

query I rowsort
SELECT DISTINCT - + 48 * + 87 * - + col0 + col2 FROM tab0 AS cor0
----
363322
405171
62687

query III rowsort
SELECT * FROM tab1 WHERE 99 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 24 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT + MIN( DISTINCT 65 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + MIN ( DISTINCT 65 ) FROM tab0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL - CAST( - 5 AS SIGNED ) col1 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2970
SELECT ALL - CAST ( - 5 AS INTEGER ) col1 FROM tab2 AS cor0
----
5
5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 69 + + + col2 FROM tab1 cor0
----
128
137
165

query I rowsort
SELECT + + col2 + - 48 FROM tab2 cor0
----
-25
-8
10

query I rowsort
SELECT ALL 87 + + 22 FROM tab0 AS cor0 WHERE 8 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col1 * - - col2 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT CAST( NULL AS SIGNED ) * + + ( + col2 ) * 11 + 53 - + ( + 50 ) * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2976
SELECT CAST ( NULL AS INTEGER ) * + + ( + col2 ) * 11 + 53 - + ( + 50 ) * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * col1 + + - col2 AS col1 FROM tab1
----
-34
100
2141

query I rowsort
SELECT ALL - col2 * - - col1 + col1 AS col1 FROM tab0
----
-189
-3726
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-2979
SELECT 96 + 65, col2 DIV col0 AS col0 FROM tab2
----
161
0
161
0
161
0

skipif mysql # not compatible
query II rowsort label-2979
SELECT 96 + 65, col2 / col0 AS col0 FROM tab2
----
161
0
161
0
161
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + 77 + + + 26 + + COUNT( * ) col0 FROM tab0
----
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2980
SELECT + 77 + + + 26 + + COUNT ( * ) col0 FROM tab0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT 44 * + - CAST( - - col2 AS SIGNED ) + 59 AS col1 FROM tab1
----
-2537
-2933
-4165

skipif mysql # not compatible
query I rowsort label-2981
SELECT 44 * + - CAST ( - - col2 AS INTEGER ) + 59 AS col1 FROM tab1
----
-2537
-2933
-4165

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL - - MIN( DISTINCT + 31 ) FROM tab1 WHERE NOT 49 IS NULL
----
31

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - - MIN ( DISTINCT + 31 ) FROM tab1 WHERE NOT 49 IS NULL
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT DISTINCT COUNT( * ) - - MIN( col1 ) * + 8 + + COUNT( * ) + + COUNT( * ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT COUNT ( * ) - - MIN ( col1 ) * + 8 + + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL - SUM( - col1 ) - + + ( + 72 ) * - + 98 FROM tab0
----
7159

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - SUM ( - col1 ) - + + ( + 72 ) * - + 98 FROM tab0
----
7159

query III rowsort
SELECT * FROM tab1 WHERE + + col1 + - 5 + - col0 NOT BETWEEN NULL AND + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL MAX( ALL - col2 ) * COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL MAX ( ALL - col2 ) * COUNT ( * ) FROM tab1
----
-177

query I rowsort
SELECT DISTINCT - col0 * + - col0 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT DISTINCT - COUNT( * ) DIV - + 37 * - + 4 * - 54 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - COUNT ( * ) / - + 37 * - + 4 * - 54 AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL + - MIN( ALL - col2 ) * - + 33 col0 FROM tab1 AS cor0
----
-3168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2989
SELECT ALL + - MIN ( ALL - col2 ) * - + 33 col0 FROM tab1 AS cor0
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0, + col1 + + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0, + col1 + + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT MIN( ALL + - 99 ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2991
SELECT MIN ( ALL + - 99 ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ALL + + ( - + col0 ) * - 74 FROM tab2 AS cor0
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * - + SUM( 69 ) FROM tab2
----
1863

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - + SUM ( 69 ) FROM tab2
----
1863

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + - 60 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT SUM( ALL - + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2995
SELECT SUM ( ALL - + col0 ) AS col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL + 75 * MAX( ALL - ( + col2 ) ) AS col2 FROM tab0
----
-750

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + 75 * MAX ( ALL - ( + col2 ) ) AS col2 FROM tab0
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL 8 * - COUNT( * ) col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2997
SELECT ALL 8 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-24

query II rowsort
SELECT ALL col2, + 76 AS col1 FROM tab1 AS cor0
----
59
76
68
76
96
76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2999
SELECT - CAST( NULL AS DECIMAL ) AS col2, + col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2999
SELECT - CAST ( NULL AS REAL ) AS col2, + col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - + ( + 24 ) FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT + - COUNT( * ) * - - ( - 70 ) + + COUNT( * ) FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT + - COUNT ( * ) * - - ( - 70 ) + + COUNT ( * ) FROM tab0 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT ALL - 78 AS col0, COUNT( * ) * 77 FROM tab2 AS cor0
----
-78
231

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL - 78 AS col0, COUNT ( * ) * 77 FROM tab2 AS cor0
----
-78
231

query II rowsort
SELECT DISTINCT - - col2, col0 AS col1 FROM tab2 cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL + 91 * - col1 FROM tab0
----
-1911
-7371
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT DISTINCT 37 * - ( - CAST( - + 24 AS SIGNED ) ) FROM tab2 WHERE + 60 / col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT 37 * - ( - CAST ( - + 24 AS INTEGER ) ) FROM tab2 WHERE + 60 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ( - - COUNT( * ) ) * 41 col2 FROM tab2
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3007
SELECT ( - - COUNT ( * ) ) * 41 col2 FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3008
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN col1 AND - col2 + + - col1 + + 56 * - - ( - col1 ) / col2 + - + ( + ( + - col2 ) ) * + - CAST( + ( - col0 ) AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-3008
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN col1 AND - col2 + + - col1 + + 56 * - - ( - col1 ) / col2 + - + ( + ( + - col2 ) ) * + - CAST ( + ( - col0 ) AS INTEGER ) + + col1
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE + col0 <> NULL
----

query I rowsort
SELECT DISTINCT 13 FROM tab0 AS cor0 WHERE col0 * 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL - 60 - - SUM( DISTINCT - ( + 20 ) ) AS col0 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - 60 - - SUM ( DISTINCT - ( + 20 ) ) AS col0 FROM tab2
----
-80

query I rowsort
SELECT + col1 * + 29 FROM tab2
----
1479
1943
2233

query I rowsort
SELECT - 10 FROM tab2 AS cor0 WHERE - col1 + - col2 * + col0 + + col1 < col2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 99 BETWEEN NULL AND + 0
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 99 BETWEEN NULL AND + 0
----
0

query I rowsort
SELECT + 98 * 55 AS col0 FROM tab2 AS cor0 WHERE col2 * + + 53 + - 17 IS NOT NULL
----
5390
5390
5390

query I rowsort
SELECT - + ( - + 40 ) FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT ALL - col0 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + + COUNT( * ) + + - 4 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + + COUNT ( * ) + + - 4 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS SIGNED ) / col1 = - - 14
----

skipif mysql # not compatible
query III rowsort label-3019
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) / col1 = - - 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT 93 * + + CAST( 54 AS SIGNED ) AS col0 FROM tab1
----
5022

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT 93 * + + CAST ( 54 AS INTEGER ) AS col0 FROM tab1
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT - SUM( - 15 ) AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - SUM ( - 15 ) AS col2 FROM tab2
----
45

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3023
SELECT + 32, COUNT( * ) * - 71 * - - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
32
-642

skipif mysql # not compatible
query II rowsort label-3023
SELECT + 32, COUNT ( * ) * - 71 * - - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
32
-642

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3024
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - 99 * - 94 + col1 + - + ( - - CAST( NULL AS SIGNED ) ) * + col0 * + - CAST( + + 48 AS SIGNED ) AND + 74
----

skipif mysql # not compatible
query III rowsort label-3024
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - 99 * - 94 + col1 + - + ( - - CAST ( NULL AS INTEGER ) ) * + col0 * + - CAST ( + + 48 AS INTEGER ) AND + 74
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 27 * - 66 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3026
SELECT DISTINCT - + 16 col2, 16 DIV + 41 FROM tab0 AS cor0
----
-16
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3026
SELECT DISTINCT - + 16 col2, 16 / + 41 FROM tab0 AS cor0
----
-16
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 57 IS NOT NULL
----

query I rowsort
SELECT - 79 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT COUNT( * ) DIV - + 48 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT COUNT ( * ) / - + 48 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 57 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT - + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 68 FROM tab2 AS cor0 WHERE NOT + 84 IS NULL
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL COUNT( * ) + - 33 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL COUNT ( * ) + - 33 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * col1 col0 FROM tab2
----
4998
6566
7546

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT col1 DIV col1 * - col2 * + - col0 * - + 12 FROM tab2
----
-12696
-30720
-52200

skipif mysql # not compatible
query I rowsort label-3035
SELECT col1 / col1 * - col2 * + - col0 * - + 12 FROM tab2
----
-12696
-30720
-52200

query I rowsort
SELECT DISTINCT + 48 * + - col0 FROM tab1
----
-2448
-4080
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT + COUNT( * ) * 75 AS col2 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT + COUNT ( * ) * 75 AS col2 FROM tab1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT MIN( ALL 61 ) + + 5 * - COUNT( * ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3038
SELECT MIN ( ALL 61 ) + + 5 * - COUNT ( * ) FROM tab2
----
46

query I rowsort
SELECT col2 + ( + + 20 ) AS col1 FROM tab1
----
116
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + COUNT( + 3 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3040
SELECT + COUNT ( + 3 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + COUNT( ALL + 60 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + COUNT ( ALL + 60 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col2, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT DISTINCT - MIN( DISTINCT col0 ) - + - 45 AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT - MIN ( DISTINCT col0 ) - + - 45 AS col0 FROM tab0
----
30

query I rowsort
SELECT + 79 + - ( - 98 ) FROM tab0 AS cor0
----
177
177
177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3045
SELECT ALL + - CAST( - - col2 AS SIGNED ), - 75 AS col2 FROM tab1 AS cor0
----
-59
-75
-68
-75
-96
-75

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL + - CAST ( - - col2 AS INTEGER ), - 75 AS col2 FROM tab1 AS cor0
----
-59
-75
-68
-75
-96
-75

query II rowsort
SELECT ALL + + col1 + + col0 AS col1, ( - col0 ) + + - col2 * 76 + + 52 * + 12 + - col1 + - col1 * + 8 FROM tab0 AS cor0
----
108
-412
96
-3692
98
-7006

query I rowsort
SELECT ALL + ( + ( + 76 ) ) - - col1 FROM tab2 AS cor0
----
127
143
153

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 6 ) col1 FROM tab2
----
6
6
6

query II rowsort
SELECT 16 AS col2, col1 AS col1 FROM tab2
----
16
51
16
67
16
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query II rowsort label-3054
SELECT DISTINCT + 82 AS col0, + COUNT( * ) FROM tab2
----
82
3

skipif mysql # not compatible
query II rowsort label-3054
SELECT DISTINCT + 82 AS col0, + COUNT ( * ) FROM tab2
----
82
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL < + col1 * + col2 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT - CAST( + col1 AS SIGNED ) + + 9 FROM tab2 AS cor0
----
-42
-58
-68

skipif mysql # not compatible
query I rowsort label-3056
SELECT - CAST ( + col1 AS INTEGER ) + + 9 FROM tab2 AS cor0
----
-42
-58
-68

query I rowsort
SELECT - col2 * + ( - col1 ) * + - 38 + + col1 - - - 62 - - col1 FROM tab1 cor0
----
-11262
-121416
-51106

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3058
SELECT DISTINCT + + CAST( 59 AS SIGNED ) AS col1, - col1 DIV col2 AS col0 FROM tab2 AS cor0
----
59
-1
59
-2

skipif mysql # not compatible
query II rowsort label-3058
SELECT DISTINCT + + CAST ( 59 AS INTEGER ) AS col1, - col1 / col2 AS col0 FROM tab2 AS cor0
----
59
-1
59
-2

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) * - col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - 66
----

query I rowsort
SELECT ALL - 42 AS col2 FROM tab1 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query II rowsort
SELECT + col1 * col1, + ( - 93 ) AS col2 FROM tab2 AS cor0
----
2601
-93
4489
-93
5929
-93

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col0 + - + col0 + + + ( 52 ) AS col1 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL SUM( ALL 88 ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL SUM ( ALL 88 ) FROM tab2
----
264

query I rowsort
SELECT 31 * + 69 FROM tab0 cor0
----
2139
2139
2139

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT DISTINCT + + COUNT( * ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3068
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT col1 * - - 81 * - col0 FROM tab0 cor0
----
-147987
-7857
-98415

query I rowsort
SELECT DISTINCT + col2 * 53 AS col0 FROM tab2 AS cor0
----
1219
2120
3074

query I rowsort
SELECT DISTINCT - - 10 * + ( + 54 ) AS col0 FROM tab1 AS cor0
----
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col2 col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT - - 33 DIV + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - - 33 / + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + ( + col2 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col1 + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - 6 AND 94 * 47
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 26 * 86 / + ( + 33 ) + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL SUM( DISTINCT 57 ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL SUM ( DISTINCT 57 ) AS col0 FROM tab2
----
57

query I rowsort
SELECT DISTINCT col2 * 31 FROM tab1
----
1829
2108
2976

query I rowsort
SELECT 65 * - - col1 AS col2 FROM tab1
----
3055
325
910

query I rowsort
SELECT col1 * - + 48 AS col2 FROM tab1
----
-2256
-240
-672

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT ALL - - CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 WHERE NOT + 88 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 WHERE NOT + 88 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL - CAST( 37 AS SIGNED ) * COUNT( * ) + - + 35 AS col0 FROM tab0 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - CAST ( 37 AS INTEGER ) * COUNT ( * ) + - + 35 AS col0 FROM tab0 AS cor0
----
-146

query I rowsort
SELECT ALL col1 + - ( + - 42 ) + + 99 + 42 * - ( - - col0 ) * - col1 * - 45 AS col2 FROM tab2
----
-4433748
-9313702
-9497042

query I rowsort
SELECT - col0 * 75 + - 4 - - 32 * + col2 FROM tab1
----
-4491
-4653
-757

query II rowsort
SELECT + col2, + 85 AS col0 FROM tab2 AS cor0
----
23
85
40
85
58
85

query I rowsort
SELECT ALL 59 + col0 AS col2 FROM tab1 AS cor0
----
110
144
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * + 92 col2 FROM tab1 AS cor0
----
-1380
-1380
-1380

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT - col2 DIV 52 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT - col2 / 52 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT + col1 * - 3 FROM tab1 cor0
----
-141
-15
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT col0 DIV - 26 FROM tab0 AS cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT col0 / - 26 FROM tab0 AS cor0
----
-3
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT + col0 + col1 + col2 DIV - + col0 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
148
209
218

skipif mysql # not compatible
query I rowsort label-3092
SELECT + col0 + col1 + col2 / - + col0 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
148
209
218

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT - + COUNT( ALL 92 ) col1, - 76 AS col2 FROM tab0 AS cor0
----
-3
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3093
SELECT - + COUNT ( ALL 92 ) col1, - 76 AS col2 FROM tab0 AS cor0
----
-3
-76

query I rowsort
SELECT 54 * 62 AS col2 FROM tab2
----
3348
3348
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - SUM( DISTINCT + + col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - SUM ( DISTINCT + + col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + COUNT( 35 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3096
SELECT + COUNT ( 35 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - - 76 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 11 * + 19 AS col1 FROM tab1
----
209

query I rowsort
SELECT ALL - ( - 23 ) AS col1 FROM tab2
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - COUNT( - - 65 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3100
SELECT - COUNT ( - - 65 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT col2 * - - 75 + + + col2 + + col1 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN + 84 * + + col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3101
SELECT col2 * - - 75 + + + col2 + + col1 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN + 84 * + + col0 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT 38 col2, SUM( DISTINCT - + col2 ) AS col1 FROM tab1
----
38
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3102
SELECT 38 col2, SUM ( DISTINCT - + col2 ) AS col1 FROM tab1
----
38
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 92 AS col1, 35 col2 FROM tab2 AS cor0
----
-92
35
-92
35
-92
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT CAST( + 10 AS SIGNED ) FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-3104
SELECT CAST ( + 10 AS INTEGER ) FROM tab0 AS cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + col2 * - 72 * + col0 col2 FROM tab1 AS cor0
----
352563
361165
445627

query I rowsort
SELECT ALL - ( - 62 ) AS col2 FROM tab2
----
62
62
62

query I rowsort
SELECT ALL col0 * col1 FROM tab2 WHERE NOT col0 / - 47 <> - 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + COUNT( + 84 ) AS col1 FROM tab0 WHERE NOT + col1 * - col0 > col2 + col1
----
3

skipif mysql # not compatible
query I rowsort label-3109
SELECT + COUNT ( + 84 ) AS col1 FROM tab0 WHERE NOT + col1 * - col0 > col2 + col1
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3110
SELECT ALL CAST( col0 AS SIGNED ) + col2 DIV - 86 col0 FROM tab0
----
15
87
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT ALL CAST ( col0 AS INTEGER ) + col2 / - 86 col0 FROM tab0
----
15
87
96

query I rowsort
SELECT DISTINCT col1 - 61 AS col2 FROM tab2
----
-10
16
6

query III rowsort
SELECT ALL * FROM tab2 WHERE - 8 + col1 * - 64 NOT IN ( 52 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT 98 * + COUNT( * ) + COUNT( * ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT 98 * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
297

query I rowsort
SELECT col2 * - 22 FROM tab0
----
-1034
-2178
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL MIN( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL MIN ( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT COUNT( * ) + 5 * + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT COUNT ( * ) + 5 * + COUNT ( * ) FROM tab0
----
18

query III rowsort
SELECT * FROM tab2 WHERE NOT - 66 NOT BETWEEN col0 AND - col1 - col0 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT COUNT( * ) * + 34 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3118
SELECT COUNT ( * ) * + 34 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + COUNT( * ) * + 61 AS col2 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + COUNT ( * ) * + 61 AS col2 FROM tab2
----
183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3120
SELECT ALL + CAST( - 82 AS SIGNED ) DIV - ( 58 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + CAST ( - 82 AS INTEGER ) / - ( 58 ) AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - 87 * + 62 FROM tab1
----
-5394
-5394
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT SUM( + 54 ) - 72 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT SUM ( + 54 ) - 72 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 4 )
----
NULL

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab0 WHERE ( - 18 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + col1 + - col1 NOT BETWEEN NULL AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + ( - COUNT( + col0 ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3125
SELECT + ( - COUNT ( + col0 ) ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL COUNT( 67 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL COUNT ( 67 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 68 NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT + ( + CAST( - col2 AS SIGNED ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3128
SELECT + ( + CAST ( - col2 AS INTEGER ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL - MIN( - 46 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - MIN ( - 46 ) FROM tab1
----
46

query I rowsort
SELECT ALL + ( col0 ) + col2 AS col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - 84 + + col1 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT ALL 75 - + col2 AS col1 FROM tab2
----
17
35
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT CAST( NULL AS SIGNED ) / + ( + AVG ( DISTINCT 52 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT CAST ( NULL AS INTEGER ) / + ( + AVG ( DISTINCT 52 ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT 74 DIV 30 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3134
SELECT 74 / 30 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT 75 * COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT 75 * COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 50 + + col2 AS col1 FROM tab0 AS cor0
----
149
60
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT MIN( ALL col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT MIN ( ALL col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 96 AS col2 FROM tab0 AS cor0
----
-49
-86
3

query I rowsort
SELECT - col0 * + col0 + + 91 AS col2 FROM tab2 AS cor0
----
-2025
-4005
-5534

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 * - col1 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col2 * - col1 + col0 )
----
0

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 ) WHERE NULL <> NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE + 87 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 59 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col1 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * 55 AS col2 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT ALL CAST( NULL AS SIGNED ) / MIN( + col2 ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3146
SELECT ALL CAST ( NULL AS INTEGER ) / MIN ( + col2 ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT 59 FROM tab1 AS cor0 WHERE NOT 11 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 * - col0 col2 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 59 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT ALL + col1 DIV + ( - col0 DIV - 10 ) FROM tab1 cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + col1 / + ( - col0 / - 10 ) FROM tab1 cor0
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - + COUNT( * ) * 96 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-3152
SELECT - + COUNT ( * ) * 96 FROM tab0 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT MIN( ALL + - 64 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-3153
SELECT MIN ( ALL + - 64 ) FROM tab0
----
-64

query I rowsort
SELECT ALL col2 * 76 FROM tab0
----
3572
7524
760

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT ALL + ( - 57 ) DIV col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + ( - 57 ) / col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT COUNT( ALL - col0 ) DIV - 68 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT COUNT ( ALL - col0 ) / - 68 AS col1 FROM tab0
----
0

query I rowsort
SELECT 64 + + - 39 FROM tab1
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - col0 / + ( ( + col1 ) / col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - ( col1 ) + col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL + + MAX( - ( - col0 ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + + MAX ( - ( - col0 ) ) FROM tab0 cor0
----
97

query I rowsort
SELECT DISTINCT + 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
98

query I rowsort
SELECT - ( + - col2 ) AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT - ( 22 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query II rowsort
SELECT - col2 AS col1, col1 * col0 + + col1 AS col2 FROM tab1
----
-59
430
-68
4324
-96
728

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 - + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL - SUM( DISTINCT 57 ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - SUM ( DISTINCT 57 ) AS col2 FROM tab2
----
-57

query III rowsort
SELECT * FROM tab2 WHERE ( ( 73 ) >= 72 + + col1 * + 59 )
----

query I rowsort
SELECT + 84 + + 96 * - 50 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fc2e1f4803adaca24cb9dc9e449e23fa

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL - COUNT( * ) + + - 67 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - COUNT ( * ) + + - 67 FROM tab2 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT 50 * + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 50 * + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT 0 * col2 FROM tab2 cor0 WHERE col0 + 95 + + col2 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL - - COUNT( ALL - col2 ) FROM tab1 AS cor0 WHERE 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL - - COUNT ( ALL - col2 ) FROM tab1 AS cor0 WHERE 75 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT DISTINCT + col1 * + + 10 + - col1 DIV - 16 FROM tab0 AS cor0
----
10
211
815

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + col1 * + + 10 + - col1 / - 16 FROM tab0 AS cor0
----
10
211
815

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT + 60 - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + 60 - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT 89 + 63 + - col1 AS col1 FROM tab2
----
101
75
85

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT - 27 + - 69 DIV 82 col0 FROM tab1
----
-27
-27
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT - 27 + - 69 / 82 col0 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT ( + + col0 ) + + 68 AS col2 FROM tab2
----
114
132
143

query I rowsort
SELECT - 93 + - col1 + - col2 FROM tab2
----
-167
-210
-218

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( - 61 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * + - 65 FROM tab0
----
-3055
-6435
-650

query I rowsort
SELECT DISTINCT 66 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab2 AS cor0 WHERE ( NOT + col0 <= ( + 74 ) )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT - + col0 DIV 75 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT - + col0 / 75 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col0 + - 43 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3187
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 / col0 * + CAST( + - 2 AS SIGNED ) AND - col1 * col0
----

skipif mysql # not compatible
query III rowsort label-3187
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 / col0 * + CAST ( + - 2 AS INTEGER ) AND - col1 * col0
----

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT NULL IN ( - col0 * + col2 )
----

query II rowsort
SELECT + - col1 * - + ( - col2 ) AS col0, col0 AS col0 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) - ( + col1 ) + + 30 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) - ( + col1 ) + + 30 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT + - COUNT( DISTINCT - 78 ) * 19 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3191
SELECT + - COUNT ( DISTINCT - 78 ) * 19 FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + 65 * + - MAX( ALL + 46 ) FROM tab0 AS cor0
----
-2990

skipif mysql # not compatible
query I rowsort label-3192
SELECT + 65 * + - MAX ( ALL + 46 ) FROM tab0 AS cor0
----
-2990

query I rowsort
SELECT - 69 * - - col1 AS col1 FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT - MIN( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - MIN ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 42 <= col0
----
15
81
47

query I rowsort
SELECT 10 * + col2 + + + col1 AS col1 FROM tab2 cor0
----
281
477
647

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL COUNT( ALL - 26 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL COUNT ( ALL - 26 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT - COUNT( * ) + + ( 84 ) col2 FROM tab0 AS cor0 WHERE NOT 95 IS NOT NULL
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3198
SELECT DISTINCT - COUNT ( * ) + + ( 84 ) col2 FROM tab0 AS cor0 WHERE NOT 95 IS NOT NULL
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT - 95 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT - 95 < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > - col1 * + ( ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT col2 FROM tab1 WHERE NOT ( NOT ( NULL NOT BETWEEN CAST( col2 AS SIGNED ) AND 64 - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-3202
SELECT col2 FROM tab1 WHERE NOT ( NOT ( NULL NOT BETWEEN CAST ( col2 AS INTEGER ) AND 64 - col0 ) )
----

query II rowsort
SELECT - col2, col2 * + 83 AS col1 FROM tab1 AS cor0
----
-59
4897
-68
5644
-96
7968

query II rowsort
SELECT ALL + col0 + + ( + ( - - col0 ) ), col2 FROM tab1 AS cor0
----
102
96
170
59
182
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + - col0 AS col2, + 16 col0 FROM tab0
----
-1215
16
-1827
16
-97
16

query I rowsort
SELECT DISTINCT + 60 * 14 AS col2 FROM tab2
----
840

query I rowsort
SELECT col1 + - 22 + - col0 FROM tab1
----
-102
-59
-66

query I rowsort
SELECT + col0 * + 51 + - col2 FROM tab2 cor0
----
2323
3224
3767

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( + col2 + + 45 IS NULL )
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( ( NOT ( ( NOT ( + col2 * 67 ) IS NOT NULL ) ) ) )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL 51 + MIN( ALL col2 ) col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3211
SELECT ALL 51 + MIN ( ALL col2 ) col2 FROM tab2 AS cor0
----
74

query I rowsort
SELECT DISTINCT + 82 + - - col0 - + 73 FROM tab2 AS cor0
----
55
73
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 AS cor0 WHERE 65 * + + col1 / + col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - - col2 + + 76 + - col2 FROM tab1 AS cor0 WHERE ( col2 ) < ( NULL )
----

query II rowsort
SELECT DISTINCT col1 + - col0, + 52 + col0 AS col1 FROM tab0 AS cor0
----
-66
139
-96
149
66
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3216
SELECT * FROM tab1 AS cor0 WHERE + col1 > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3216
SELECT * FROM tab1 AS cor0 WHERE + col1 > ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 48 + + - col2 col1, 47 AS col0 FROM tab0 cor0
----
-147
47
-58
47
-95
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col0 * col1, col0 * + col0 )
----

query I rowsort
SELECT col0 - + ( + + ( + col2 ) ) + - - 47 FROM tab0
----
124
15
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( * ) + + 78 AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( * ) + + 78 AS col0 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT - 9 DIV col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 9 / col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( + 83 ) FROM tab2
----
83
83
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + 96 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3224
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3224
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL + - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - - 2 * 37 + - 59 * + col1 AS col2 FROM tab0 AS cor0
----
-1165
-4705
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT - 2 * - 20 DIV - ( - 67 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3228
SELECT - 2 * - 20 / - ( - 67 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT ALL col2 + + col1 + + CAST( NULL AS SIGNED ) * - 87 * - col0 + 97 / + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL col2 + + col1 + + CAST ( NULL AS INTEGER ) * - 87 * - col0 + 97 / + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL - 95 * - - col1 FROM tab0
----
-1995
-7695
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 52 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3232
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 52 IS NOT NULL
----
9

query I rowsort
SELECT - + 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT DISTINCT - SUM( ALL - 20 ) DIV - 3 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-60

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - SUM ( ALL - 20 ) / - 3 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-60

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT COUNT( * ) * - COUNT( - + 36 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3236
SELECT COUNT ( * ) * - COUNT ( - + 36 ) AS col2 FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - 37 ) col0 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT DISTINCT - + SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - + SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT col2 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1523
3297
478

query I rowsort
SELECT ALL 27 * - - 20 AS col0 FROM tab1
----
540
540
540

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + col0 * + 65 AS col2 FROM tab1
----
3315
5525
5915

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3243
SELECT * FROM tab0 WHERE col0 NOT IN ( + - ( - 24 ) + 78 + - 0 + col1, 46 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3243
SELECT * FROM tab0 WHERE col0 NOT IN ( + - ( - 24 ) + 78 + - 0 + col1, 46 * - - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT col2 * - 32 + + + col0 AS col2, - 20 * - + 93 FROM tab2
----
-1216
1860
-1781
1860
-690
1860

query I rowsort
SELECT + + col1 * - col2 + + 13 FROM tab1 cor0
----
-1331
-282
-3183

query I rowsort
SELECT ALL + col1 * + + col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3247
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS DECIMAL ) + - ( + - 69 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS REAL ) + - ( + - 69 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + col2 + + 9 + + 88 FROM tab2 AS cor0 WHERE col0 + ( - col0 ) + - + col2 > - col2
----

query II rowsort
SELECT ALL 31 AS col0, - col1 AS col1 FROM tab1
----
31
-14
31
-47
31
-5

query I rowsort
SELECT ALL 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT + CAST( + ( - col0 ) AS SIGNED ) + + col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + CAST ( + ( - col0 ) AS INTEGER ) + + col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL + col2 * col1 * - 29 * - + 95 + + col1 FROM tab0 AS cor0
----
10488366
272746
578571

query I rowsort
SELECT + 6 + col1 FROM tab1 cor0
----
11
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT + MAX( DISTINCT - + col0 ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + MAX ( DISTINCT - + col0 ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT ALL - col0 + - + 98 + - + col2 FROM tab1 AS cor0
----
-242
-245
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT MIN( + - 15 ) - + 92 FROM tab0
----
-107

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT MIN ( + - 15 ) - + 92 FROM tab0
----
-107

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0, + 32 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3258
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT + col1 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3261
SELECT - 59 DIV + COUNT( * ) col1 FROM tab0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3261
SELECT - 59 / + COUNT ( * ) col1 FROM tab0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT ALL - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE + col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE + col1 > NULL
----

query II rowsort
SELECT ALL + col2 + - + col0 * - col1 AS col1, col1 AS col0 FROM tab2 AS cor0
----
2369
51
4968
77
5083
67

query I rowsort
SELECT 7 + - 87 AS col2 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3265
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - col0 * + + 92 / + CAST( + + 48 AS DECIMAL ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-3265
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - col0 * + + 92 / + CAST ( + + 48 AS REAL ) + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3266
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 * CAST( + 98 AS SIGNED ) - + 78
----

skipif mysql # not compatible
query III rowsort label-3266
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 * CAST ( + 98 AS INTEGER ) - + 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT + - CAST( - col1 AS SIGNED ) + ( - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3267
SELECT + - CAST ( - col1 AS INTEGER ) + ( - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + AVG ( ALL - - col1 ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 59 / 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) * col2 <= NULL
----

query I rowsort
SELECT - 14 * + col0 + 34 AS col2 FROM tab2 AS cor0
----
-1016
-610
-862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT CAST( - + 10 AS SIGNED ) * + col0 + - col2 AS col1 FROM tab2
----
-483
-680
-808

skipif mysql # not compatible
query I rowsort label-3273
SELECT CAST ( - + 10 AS INTEGER ) * + col0 + - col2 AS col1 FROM tab2
----
-483
-680
-808

query II rowsort
SELECT - ( - 95 ) AS col1, col1 * - 70 FROM tab0
----
95
-1470
95
-5670
95
-70

query II rowsort
SELECT - col1 + 42, + 44 AS col1 FROM tab0 AS cor0
----
-39
44
21
44
41
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL + COUNT( * ) + + COUNT( * ) + 8 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + 8 FROM tab1 cor0
----
14

query I rowsort
SELECT DISTINCT - + 49 + + col0 FROM tab1 AS cor0
----
2
36
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT DISTINCT col1 * + col1 AS col1 FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) * + col1 IS NULL )
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT col1 * + col1 AS col1 FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) * + col1 IS NULL )
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3279
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT MIN( ALL col0 ) * + SUM( ALL - 48 ) col2 FROM tab0 AS cor0
----
-2160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3281
SELECT MIN ( ALL col0 ) * + SUM ( ALL - 48 ) col2 FROM tab0 AS cor0
----
-2160

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT SUM( ALL 99 ) AS col0 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3283
SELECT SUM ( ALL 99 ) AS col0 FROM tab2 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT + ( - - COUNT( * ) ) + - 41 + - COUNT( * ) - SUM( - col0 ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + ( - - COUNT ( * ) ) + - 41 + - COUNT ( * ) - SUM ( - col0 ) FROM tab1 AS cor0
----
186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3285
SELECT ALL col1 / + + CAST( NULL AS DECIMAL ) * - col2 + + col1 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL col1 / + + CAST ( NULL AS REAL ) * - col2 + + col1 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 + + 96 * + + col1 FROM tab1 AS cor0
----
1291
427
4459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 * ( 30 ) col2, - 15 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-450
-15
-450
-15
-450
-15

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE col1 - + 42 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3289
SELECT - col1 + col0 / - col1 - col1 + + 85 AS col1, CAST( NULL AS SIGNED ) + - - 52 AS col2 FROM tab2 AS cor0 WHERE NOT 17 * - 76 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3289
SELECT - col1 + col0 / - col1 - col1 + + 85 AS col1, CAST ( NULL AS INTEGER ) + - - 52 AS col2 FROM tab2 AS cor0 WHERE NOT 17 * - 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab2 WHERE NOT - + col1 > + col0
----
-56

query II rowsort
SELECT - 96 AS col1, + 9 FROM tab2
----
-96
9
-96
9
-96
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT DISTINCT + - 61 + - - SUM( - 34 ) AS col1 FROM tab0 WHERE + + col0 IS NOT NULL
----
-163

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + - 61 + - - SUM ( - 34 ) AS col1 FROM tab0 WHERE + + col0 IS NOT NULL
----
-163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col1 col2 FROM tab0 WHERE + + col0 NOT BETWEEN col1 - + col0 * + col0 AND NULL
----

query II rowsort
SELECT DISTINCT col0 * - col1, col0 FROM tab1
----
-425
85
-4277
91
-714
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * - 56 col1 FROM tab2
----
-1568

query I rowsort
SELECT - col2 * 1 * col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT - col1 * + + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - col1 * + + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 87 * - + col0 AS col2 FROM tab0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL + SUM( ALL - 34 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-306

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + SUM ( ALL - 34 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-306

query III rowsort
SELECT * FROM tab0 WHERE NOT 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3301
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT ALL - ( - col1 ) + - - col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT ALL - ( col2 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT COUNT( DISTINCT + 96 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3305
SELECT COUNT ( DISTINCT + 96 ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col1 * + + col2 + + col0 FROM tab2 cor0
----
1219
3144
3961

query I rowsort
SELECT - + 71 + + - col1 + 60 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-111
-139
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT ALL - col0 + - - 57 AS col0, 23 + + col0 + + 33 - + col0 DIV col2 col1 FROM tab1 AS cor0
----
-28
140
-34
146
6
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3308
SELECT ALL - col0 + - - 57 AS col0, 23 + + col0 + + 33 - + col0 / col2 col1 FROM tab1 AS cor0
----
-28
140
-34
146
6
107

query I rowsort
SELECT 57 + + 52 - + col2 * + col1 + - 18 FROM tab2
----
-1082
-2989
-3795

query I rowsort
SELECT col0 + col2 * - + col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT COUNT( + col1 ) + + + 4 col1 FROM tab0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3311
SELECT DISTINCT COUNT ( + col1 ) + + + 4 col1 FROM tab0
----
7

query II rowsort
SELECT DISTINCT 70, + col1 AS col2 FROM tab2
----
70
51
70
67
70
77

query II rowsort
SELECT ALL - col2 AS col1, + 66 FROM tab1
----
-59
66
-68
66
-96
66

query II rowsort
SELECT ALL col1, col0 * + - 90 FROM tab1
----
14
-4590
47
-8190
5
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + MAX( - col0 ) + - COUNT( * ) + - COUNT( * ) * - + COUNT( * ) + - + 83 AS col0 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-3315
SELECT + MAX ( - col0 ) + - COUNT ( * ) + - COUNT ( * ) * - + COUNT ( * ) + - + 83 AS col0 FROM tab2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - SUM( ALL col2 ) FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-3316
SELECT - SUM ( ALL col2 ) FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT DISTINCT - 9 * + COUNT( * ) + - AVG ( + CAST( NULL AS SIGNED ) ) * + 68 / + + 46 + 27 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3317
SELECT DISTINCT - 9 * + COUNT ( * ) + - AVG ( + CAST ( NULL AS INTEGER ) ) * + 68 / + + 46 + 27 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 70 * + 3 + + 1 * + col2 AS col1 FROM tab0 AS cor0
----
220
257
309

query I rowsort
SELECT + 63 * - col1 - - - col0 AS col0 FROM tab1
----
-3052
-400
-933

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - SUM( + - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - SUM ( + - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3322
SELECT + 87, ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query II rowsort label-3322
SELECT + 87, ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT - MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3323
SELECT - MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 26, + col0 * col0 AS col1 FROM tab0
----
-26
225
-26
7569
-26
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + SUM( DISTINCT - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3326
SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3327
SELECT + MAX( - CAST( + col1 AS SIGNED ) ) * + COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-3327
SELECT + MAX ( - CAST ( + col1 AS INTEGER ) ) * + COUNT ( * ) FROM tab2
----
-153

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 <= NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - - 2 IN ( - col0, + 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT ALL col0 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL col0 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - col1 * + 52 FROM tab0 cor0
----
-1092
-4212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT + MAX( ALL - col2 ) col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3332
SELECT DISTINCT + MAX ( ALL - col2 ) col2 FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3333
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3333
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 >= - - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * col2 col1 FROM tab0 AS cor0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - SUM( DISTINCT - 26 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3335
SELECT - SUM ( DISTINCT - 26 ) FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3337
SELECT + 24 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3337
SELECT + 24 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
8

query I rowsort
SELECT - 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT 62 + col2 AS col2 FROM tab0
----
109
161
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 68 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3341
SELECT CAST( NULL AS DECIMAL ) + COUNT( * ) + + COUNT( * ) * - + 53 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT CAST ( NULL AS REAL ) + COUNT ( * ) + + COUNT ( * ) * - + 53 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3342
SELECT + 90 + - col1 + ( 76 ) col2, + col2 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
145
NULL
165
NULL
85
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3342
SELECT + 90 + - col1 + ( 76 ) col2, + col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
145
NULL
165
NULL
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - - COUNT( * ) + + 18 AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - - COUNT ( * ) + + 18 AS col0 FROM tab1 AS cor0
----
21

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE - 50 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - - col1 col1 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT ALL 11 * - + col1 * + 3, 3 AS col2 FROM tab1
----
-1551
3
-165
3
-462
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 61 + col2 col1, - col0 + + - 85 AS col1 FROM tab2
----
101
-149
119
-160
84
-131

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT ALL COUNT( ALL + col0 ) AS col2, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3348
SELECT ALL COUNT ( ALL + col0 ) AS col2, + COUNT ( * ) FROM tab1
----
3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 69 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT IN ( + ( + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT ( + MAX( DISTINCT + - col0 ) ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3351
SELECT DISTINCT ( + MAX ( DISTINCT + - col0 ) ) col1 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - + 70 col1, - col0 FROM tab1
----
-19
-51
15
-85
21
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - - ( col0 ) * - col0 - col0, + ( - col1 ) col1 FROM tab0
----
-193
-81
-7646
-21
-9407
-1

query I rowsort
SELECT - 7 + col1 * 92 + + col2 FROM tab1 AS cor0
----
1377
4385
512

query I rowsort
SELECT DISTINCT 71 - - - 68 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT CAST( 14 AS SIGNED ) FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3356
SELECT CAST ( 14 AS INTEGER ) FROM tab1
----
14
14
14

query I rowsort
SELECT + ( - 98 ) AS col2 FROM tab2
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT + 34 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
34
3

skipif mysql # not compatible
query II rowsort label-3358
SELECT + 34 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
34
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3359
SELECT DISTINCT - + col0, + col0 DIV - ( - col1 ) col2 FROM tab1 AS cor0
----
-51
3
-85
17
-91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3359
SELECT DISTINCT - + col0, + col0 / - ( - col1 ) col2 FROM tab1 AS cor0
----
-51
3
-85
17
-91
1

query I rowsort
SELECT - + 6 AS col1 FROM tab1 cor0
----
-6
-6
-6

query II rowsort
SELECT DISTINCT 11 AS col1, 45 * + col0 AS col0 FROM tab2 cor0
----
11
2070
11
2880
11
3375

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 2
----

query I rowsort
SELECT + - 66 * - 36 AS col2 FROM tab2 WHERE NOT ( NOT - 63 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT + ( - ( - COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3364
SELECT + ( - ( - COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT CAST( + - 2 AS SIGNED ) * - - col2 AS col0 FROM tab0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-3365
SELECT CAST ( + - 2 AS INTEGER ) * - - col2 AS col0 FROM tab0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT - 22 DIV + - 44 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 22 / + - 44 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT - MIN( DISTINCT + 54 ) * + COUNT( * ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT - MIN ( DISTINCT + 54 ) * + COUNT ( * ) FROM tab1
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3368
SELECT 58 * + SUM( + CAST( + + col0 AS SIGNED ) ) AS col1, - COUNT( * ) AS col1 FROM tab2
----
10730
-3

skipif mysql # not compatible
query II rowsort label-3368
SELECT 58 * + SUM ( + CAST ( + + col0 AS INTEGER ) ) AS col1, - COUNT ( * ) AS col1 FROM tab2
----
10730
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3369
SELECT ALL col2 DIV col2 AS col1, col2 FROM tab1
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-3369
SELECT ALL col2 / col2 AS col1, col2 FROM tab1
----
1
59
1
68
1
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT CAST( - + ( + col0 ) AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3370
SELECT CAST ( - + ( + col0 ) AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL - col1 * - + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-308367
-4410
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col1 FROM tab2
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + - 56 col2 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT ALL - ( + + ( + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT DISTINCT - col1 DIV 56 + + - col2 * + - col0 + + col1 + + col0 + - col0 + + - col2 AS col2 FROM tab1 AS cor0
----
4814
4961
6167

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT - col1 / 56 + + - col2 * + - col0 + + col1 + + col0 + - col0 + + - col2 AS col2 FROM tab1 AS cor0
----
4814
4961
6167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) + - + 27 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) + - + 27 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 35 * + col2 + + + 57 FROM tab0 AS cor0
----
1702
3522
407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3380
SELECT DISTINCT + COUNT( * ) DIV - 72 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT + COUNT ( * ) / - 72 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL 8 - 40 - COUNT( * ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL 8 - 40 - COUNT ( * ) FROM tab2
----
-35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 > col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + + col0 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3384
SELECT ALL - 21 / ( + CAST( NULL AS DECIMAL ) ) - + - col0 + col0 * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - 21 / ( + CAST ( NULL AS REAL ) ) - + - col0 + col0 * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, 56 col1 FROM tab1
----
-14
56
-47
56
-5
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT MAX( 1 ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT MAX ( 1 ) AS col2 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT ALL col0 * - col1 + + col0 * - ( + 99 ) * - col2 + + - CAST( - CAST( - 68 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
68512
84235
950532

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL col0 * - col1 + + col0 * - ( + 99 ) * - col2 + + - CAST ( - CAST ( - 68 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
68512
84235
950532

query I rowsort
SELECT - + 52 - + - 44 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT + - COUNT( * ) + + ( + 33 ) - + 37 * + SUM( ALL col0 ) FROM tab2 AS cor0
----
-6815

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT + - COUNT ( * ) + + ( + 33 ) - + 37 * + SUM ( ALL col0 ) FROM tab2 AS cor0
----
-6815

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 <= 55
----

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NOT + 87 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + - ( 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + - ( 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT + COUNT( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + COUNT ( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 - col1 <> - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - 15 * - ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3396
SELECT - 15 * - ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT 12 DIV - - COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-3397
SELECT 12 / - - COUNT ( * ) FROM tab1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT DISTINCT + COUNT( * ) * + 12 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + COUNT ( * ) * + 12 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT AVG ( + ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT SUM( - 73 ) * CAST( ( - MAX( 2 ) ) AS SIGNED ) FROM tab0 WHERE NOT + ( - 18 ) = + 0 + col2
----
438

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT SUM ( - 73 ) * CAST ( ( - MAX ( 2 ) ) AS INTEGER ) FROM tab0 WHERE NOT + ( - 18 ) = + 0 + col2
----
438

query II rowsort
SELECT + col1, ( - 70 ) FROM tab1
----
14
-70
47
-70
5
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT 27 * + ( - 50 ) * - COUNT( * ) AS col0 FROM tab2
----
4050

skipif mysql # not compatible
query I rowsort label-3402
SELECT 27 * + ( - 50 ) * - COUNT ( * ) AS col0 FROM tab2
----
4050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, + col1 col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + 5 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT DISTINCT + col2 + col1 / - + 67 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + col2 + col1 / - + 67 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 col1, - col1 FROM tab1 cor0
----
19
-14
19
-47
19
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT - ( + + ( col2 ) ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT - ( + + ( col2 ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 94 + col2 AS col1 FROM tab0
----
-47
-84
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT + MIN( ALL - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3409
SELECT + MIN ( ALL - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - - col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT ALL + 3 + col0 FROM tab0 AS cor0
----
100
18
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL - 63 + + MIN( col1 ) AS col0 FROM tab1 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - 63 + + MIN ( col1 ) AS col0 FROM tab1 cor0
----
-58

query I rowsort
SELECT ALL + col1 + 49 FROM tab0 AS cor0
----
130
50
70

query I rowsort
SELECT ALL - col1 - 32 AS col2 FROM tab1 AS cor0
----
-37
-46
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 IS NULL
----

query I rowsort
SELECT DISTINCT 90 - - - col0 AS col1 FROM tab1
----
-1
39
5

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 93 * + - col2 * + col1 <= NULL )
----

query I rowsort
SELECT ALL col2 * + - 64 * + col1 + col1 FROM tab1
----
-18875
-204497
-86002

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT COUNT( * ) - 83 * 58 - 97 AS col2 FROM tab2
----
-4908

skipif mysql # not compatible
query I rowsort label-3419
SELECT COUNT ( * ) - 83 * 58 - 97 AS col2 FROM tab2
----
-4908

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT + MAX( + - ( - col0 ) ) AS col1 FROM tab0 WHERE NOT - col0 = + col2
----
97

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + MAX ( + - ( - col0 ) ) AS col1 FROM tab0 WHERE NOT - col0 = + col2
----
97

query I rowsort
SELECT DISTINCT + 89 - - + ( + col1 ) FROM tab1
----
103
136
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + MIN( ALL - + col2 ) * ( + - 18 ) AS col2 FROM tab0
----
1782

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + MIN ( ALL - + col2 ) * ( + - 18 ) AS col2 FROM tab0
----
1782

query I rowsort
SELECT ALL col1 + + + ( col0 ) * col1 AS col0 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3424
SELECT DISTINCT + 94 DIV + - COUNT( DISTINCT - col1 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT + 94 / + - COUNT ( DISTINCT - col1 ) FROM tab2
----
-31

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT - 32 NOT BETWEEN NULL AND + ( + col0 ) * + + col2 + + ( + 78 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + ( + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - - 29 AS col2 FROM tab2 AS cor0
----
1479
1943
2233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab2 AS cor0 WHERE NOT 19 = - col2 + col1
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col2 * 8 BETWEEN - 48 * + - 67 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL + - SUM( ALL col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL + - SUM ( ALL col2 ) FROM tab1 cor0
----
-223

query II rowsort
SELECT DISTINCT + col2 * + - col1 AS col0, - col2 AS col0 FROM tab0
----
-210
-10
-3807
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT + 78 * + COUNT( * ) AS col0 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 78 * + COUNT ( * ) AS col0 FROM tab2
----
234

query II rowsort
SELECT ALL + ( 28 ), col1 * col2 AS col1 FROM tab2
----
28
1173
28
3080
28
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * - col0 col2 FROM tab0
----
-3828
-4268
-660

query II rowsort
SELECT DISTINCT - ( 73 ) AS col1, - 82 AS col1 FROM tab1
----
-73
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT col2 * + + 51 + 87 + col1 DIV col2 AS col2 FROM tab2
----
1262
2128
3046

skipif mysql # not compatible
query I rowsort label-3437
SELECT col2 * + + 51 + 87 + col1 / col2 AS col2 FROM tab2
----
1262
2128
3046

query I rowsort
SELECT - col0 * + + col2 * 37 AS col1 FROM tab2
----
-160950
-39146
-94720

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT - ( - 40 ) * 68, - MAX( + + 66 ) AS col1 FROM tab2
----
2720
-66

skipif mysql # not compatible
query II rowsort label-3439
SELECT - ( - 40 ) * 68, - MAX ( + + 66 ) AS col1 FROM tab2
----
2720
-66

query I rowsort
SELECT + ( - ( + col2 ) ) * col2 + + col2 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT - + ( + + col1 ) FROM tab0 WHERE - col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3443
SELECT col0 + - col2 DIV ( + col0 ) - + ( - - col2 ), col1 FROM tab0 AS cor0
----
-3
1
-35
81
77
21

skipif mysql # not compatible
query II rowsort label-3443
SELECT col0 + - col2 / ( + col0 ) - + ( - - col2 ), col1 FROM tab0 AS cor0
----
-3
1
-35
81
77
21

query I rowsort
SELECT ALL + + col1 + + col0 - - - col0 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL MIN( ALL - + col0 ) + - - COUNT( * ) + - + MIN( - - 3 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL MIN ( ALL - + col0 ) + - - COUNT ( * ) + - + MIN ( - - 3 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + 50 - - col1 AS col1 FROM tab1
----
55
64
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - COUNT( 43 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3447
SELECT - COUNT ( 43 ) FROM tab1
----
-3

query I rowsort
SELECT ALL col0 - 83 * - col2 * 0 AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + ( + - 40 ) FROM tab2
----
-40
-40
-40

query II rowsort
SELECT ( + col1 ), col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 >= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 25 > NULL
----

query I rowsort
SELECT + 86 * ( - 97 ) AS col1 FROM tab2
----
-8342
-8342
-8342

query I rowsort
SELECT DISTINCT + - 88 AS col2 FROM tab1 WHERE + - ( + col1 ) * + 13 < - 15
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT DISTINCT 7 DIV + SUM( + col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT 7 / + SUM ( + col2 ) AS col0 FROM tab1
----
0

query II rowsort
SELECT - col1 AS col0, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT - 80 AS col2, col1 * + + 85 - + + col2 FROM tab1 cor0
----
-80
1094
-80
366
-80
3927

query I rowsort
SELECT - 70 * + 67 FROM tab1 AS cor0
----
-4690
-4690
-4690

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + col2 / - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3460
SELECT col1 / ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT col1 / ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL + ( - SUM( DISTINCT + - 53 ) ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + ( - SUM ( DISTINCT + - 53 ) ) FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT DISTINCT - - 10 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT - - 10 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
13

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * - 37 * + + 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT + COUNT( * ) AS col0, COUNT( ALL 77 ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3464
SELECT + COUNT ( * ) AS col0, COUNT ( ALL 77 ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT + ( - ( - 35 ) ) + 60 - + COUNT( * ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + ( - ( - 35 ) ) + 60 - + COUNT ( * ) FROM tab1 AS cor0
----
92

query II rowsort
SELECT col1, - 97 FROM tab2 AS cor0
----
51
-97
67
-97
77
-97

query I rowsort
SELECT - col2 + 44 * - col1 FROM tab0 AS cor0
----
-143
-3611
-934

query I rowsort
SELECT - + col1 * - col0 + - col2 + - ( + + col0 ) FROM tab1 AS cor0
----
281
4118
567

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT DISTINCT col2 - + - 61 + + 12 DIV - 55 + + col0 * - + 72 FROM tab1
----
-3515
-6000
-6423

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT col2 - + - 61 + + 12 / - 55 + + col0 * - + 72 FROM tab1
----
-3515
-6000
-6423

query I rowsort
SELECT DISTINCT + 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + + col0 col2 FROM tab2
----
134
152
163

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT col1 DIV col2 * - - col0 FROM tab0 AS cor0
----
0
15
174

skipif mysql # not compatible
query I rowsort label-3473
SELECT col1 / col2 * - - col0 FROM tab0 AS cor0
----
0
15
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT - - col0 * - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT - - col0 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 7 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT - + 49 * - 65 * col1 + - 25 + + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
258041
3161
66881

skipif mysql # not compatible
query I rowsort label-3476
SELECT - + 49 * - 65 * col1 + - 25 + + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
258041
3161
66881

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT - 62 * col1 * - col0 - + 59 DIV + - col0 FROM tab2 AS cor0
----
145453
305536
311550

skipif mysql # not compatible
query I rowsort label-3477
SELECT - 62 * col1 * - col0 - + 59 / + - col0 FROM tab2 AS cor0
----
145453
305536
311550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL + CAST( NULL AS SIGNED ) * col1 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 43 ) * + col1 - - 99 AS col1 FROM tab0 AS cor0
----
-3384
-804
56

query I rowsort
SELECT DISTINCT - col0 + + ( + 67 ) AS col0 FROM tab2 AS cor0
----
-8
21
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= - col1 - - ( - + 65 )
----

query I rowsort
SELECT ALL + 92 * + col2 * + - col1 - col2 FROM tab0
----
-19330
-350291
-9207

query I rowsort
SELECT col2 * + + 43 FROM tab0
----
2021
4257
430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT + MAX( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3484
SELECT + MAX ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 WHERE - + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + ( - + 69 ) FROM tab0 AS cor0
----
-69
-69
-69

query II rowsort
SELECT col2 AS col0, - 58 AS col1 FROM tab2 AS cor0
----
23
-58
40
-58
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT - COUNT( * ) * - MAX( - col0 ) AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - COUNT ( * ) * - MAX ( - col0 ) AS col1 FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT MIN( - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3490
SELECT MIN ( - col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT + ( + 42 ) AS col2 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL + 80 AS col0 FROM tab2 cor0
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - 43 col2, + col2 AS col2 FROM tab0 AS cor0
----
-3741
10
-4171
99
-645
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL MIN( + 51 ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL MIN ( + 51 ) AS col0 FROM tab0 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT - + 92 DIV 5 FROM tab1 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-3497
SELECT - + 92 / 5 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + ( - col0 ) + - ( - col2 ) AS col1 FROM tab2
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col2 col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - COUNT( * ) + - + 97 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-3500
SELECT - COUNT ( * ) + - + 97 FROM tab2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - SUM( ALL + col0 ) + + COUNT( * ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-3501
SELECT - SUM ( ALL + col0 ) + + COUNT ( * ) FROM tab2
----
-182

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + - col2
----

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - col0 + + col2 + + col0 FROM tab0
----
10
47
99

query II rowsort
SELECT DISTINCT + ( + 52 ), col2 FROM tab2 AS cor0 WHERE - col0 + + col2 IS NOT NULL
----
52
23
52
40
52
58

query I rowsort
SELECT ALL + 11 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3507
SELECT ALL + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT DISTINCT 22 - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT 22 - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT ALL - - 65, + col1 AS col2 FROM tab0 AS cor0
----
65
1
65
21
65
81

query I rowsort
SELECT col0 * col0 * + - col1 FROM tab0 cor0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3512
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < CAST( NULL AS SIGNED ) * - col1 * - 47 - - + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3512
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < CAST ( NULL AS INTEGER ) * - col1 * - 47 - - + CAST ( - col2 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, 44 + - - col0 col0 FROM tab0 AS cor0
----
-15
59
-87
131
-97
141

query I rowsort
SELECT ALL - ( 63 ) AS col0 FROM tab1 AS cor0
----
-63
-63
-63

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN - 21 + + col2 + 77 + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col0 * col2 col0 FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - 62 NOT BETWEEN NULL AND - 76 * - + 71
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - 62 NOT BETWEEN NULL AND - 76 * - + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT CAST( - + col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3518
SELECT CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * - col0, + col1 * 50 * + col1 * - col2 col2 FROM tab1 cor0
----
2601
-940800
7225
-73750
8281
-7510600

query I rowsort
SELECT 98 FROM tab0 WHERE NOT + col0 IS NULL AND NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL - col0 * + col0 + 12 FROM tab0 AS cor0
----
-213
-7557
-9397

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + + 82 FROM tab0 AS cor0
----
-15
-5
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT + + COUNT( * ) + - COUNT( * ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3525
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL 35 * - SUM( ALL + col0 ) FROM tab1 AS cor0
----
-7945

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL 35 * - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
-7945

query I rowsort
SELECT ALL col2 + - 71 + + + 75 FROM tab2 AS cor0
----
27
44
62

query I rowsort
SELECT DISTINCT + + col0 + - col2 + col1 + col0 * + 27 * - 6 * col0 AS col0 FROM tab2 AS cor0
----
-342718
-663451
-911166

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 81 * - + col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 99 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT DISTINCT - col1 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - col1 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3532
SELECT ALL * FROM tab1 WHERE NOT - col0 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3532
SELECT ALL * FROM tab1 WHERE NOT - col0 + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT - col2 * col1 DIV + col0 FROM tab0
----
-1
-2
-253

skipif mysql # not compatible
query I rowsort label-3533
SELECT - col2 * col1 / + col0 FROM tab0
----
-1
-2
-253

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT DISTINCT - 50 * col1 DIV + 96 FROM tab1
----
-2
-24
-7

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - 50 * col1 / + 96 FROM tab1
----
-2
-24
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT - SUM( 36 ) col2 FROM tab0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3535
SELECT DISTINCT - SUM ( 36 ) col2 FROM tab0
----
-108

query I rowsort
SELECT + 53 - - col1 FROM tab0
----
134
54
74

query I rowsort
SELECT - + col2 * - col1 + col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # DIV for integer division: 
query II rowsort label-3538
SELECT DISTINCT col0 - 35 AS col1, col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
11
-1
29
-1
40
0

skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT col0 - 35 AS col1, col1 / - col0 AS col2 FROM tab2 AS cor0
----
11
-1
29
-1
40
0

query I rowsort
SELECT col0 / col0 * - col2 + - 4 AS col2 FROM tab1 WHERE NULL BETWEEN 37 / 20 AND + 47
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE + - 24 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3541
SELECT DISTINCT + col0 * - CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT - 14 DIV + + 64 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3542
SELECT - 14 / + + 64 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT DISTINCT - - COUNT( DISTINCT 67 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - - COUNT ( DISTINCT 67 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT - + ( + COUNT( * ) ) * 30 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - + ( + COUNT ( * ) ) * 30 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT + - 9 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3545
SELECT + - 9 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - col2 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3547
SELECT MAX( ALL + CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3547
SELECT MAX ( ALL + CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3548
SELECT - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( - + col0 ) * + 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL COUNT( ALL - col1 ) * + - 57 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL COUNT ( ALL - col1 ) * + - 57 FROM tab1
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 20 * - 26 col1 FROM tab2
----
26520
34840
40040

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN - col0 - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3553
SELECT 53 AS col0, col2 DIV col1 * - 40 AS col1 FROM tab1
----
53
-240
53
-40
53
-440

skipif mysql # not compatible
query II rowsort label-3553
SELECT 53 AS col0, col2 / col1 * - 40 AS col1 FROM tab1
----
53
-240
53
-40
53
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT + SUM( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT + SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3555
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3555
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + MIN( - - 97 ) AS col1 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + MIN ( - - 97 ) AS col1 FROM tab2
----
97

query II rowsort
SELECT - col2, - col2 * col2 + col2 AS col2 FROM tab0
----
-10
-90
-47
-2162
-99
-9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 62, 85 * col1 - - + col1 + - + col0 col2 FROM tab2 AS cor0
----
62
4340
62
5687
62
6558

query I rowsort
SELECT DISTINCT + + ( - 43 ) FROM tab1 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT DISTINCT CAST( - 90 AS SIGNED ) col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3560
SELECT DISTINCT CAST ( - 90 AS INTEGER ) col2 FROM tab2 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-3561
SELECT 17 DIV + col0, col1 DIV 65 * col0 FROM tab1
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-3561
SELECT 17 / + col0, col1 / 65 * col0 FROM tab1
----
0
0
0
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT SUM( - col1 ) * + ( + 43 ) AS col1 FROM tab2
----
-8385

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT SUM ( - col1 ) * + ( + 43 ) AS col1 FROM tab2
----
-8385

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - MAX( + ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3563
SELECT - MAX ( + ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT DISTINCT + 77 + - col1 AS col2 FROM tab0 AS cor0
----
-4
56
76

query II rowsort
SELECT ALL col1 + - col0, col1 FROM tab0 cor0
----
-66
21
-96
1
66
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + - 41 * - col0 col1, + col0 AS col2 FROM tab2 AS cor0
----
1909
46
2664
64
3133
75

query I rowsort
SELECT - 67 AS col1 FROM tab2 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT ALL + 70 * + + 9 - - - col0 * + + 89 AS col0 FROM tab1
----
-3909
-6935
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL 42 - COUNT( DISTINCT + 31 ) + + COUNT( ALL + col2 ) AS col2 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL 42 - COUNT ( DISTINCT + 31 ) + + COUNT ( ALL + col2 ) AS col2 FROM tab1
----
44

query II rowsort
SELECT DISTINCT col1 AS col2, col0 * col2 FROM tab0
----
1
9603
21
870
81
705

onlyif mysql # DIV for integer division: 
query II rowsort label-3572
SELECT col2 * col1 + + col1 DIV - col0, - ( col0 ) AS col0 FROM tab0
----
210
-87
3802
-15
99
-97

skipif mysql # not compatible
query II rowsort label-3572
SELECT col2 * col1 + + col1 / - col0, - ( col0 ) AS col0 FROM tab0
----
210
-87
3802
-15
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT DISTINCT 99, COUNT( col0 ) AS col1 FROM tab2
----
99
3

skipif mysql # not compatible
query II rowsort label-3573
SELECT DISTINCT 99, COUNT ( col0 ) AS col1 FROM tab2
----
99
3

query I rowsort
SELECT DISTINCT + col1 * 44 * + 83 * col0 AS col0 FROM tab0 AS cor0
----
354244
4437180
6672204

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - 23 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - 23 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - - ( - col2 ) + col2 col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 31 + - col2 AS col0 FROM tab2 WHERE + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT + CAST( col2 AS SIGNED ) - ( - col0 ) FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3578
SELECT + CAST ( col2 AS INTEGER ) - ( - col0 ) FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - ( 68 ) * + col0 FROM tab2
----
-3128
-4352
-5100

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * - col0 ) NOT IN ( - 5 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT MIN( 95 ) AS col2 FROM tab0 WHERE + 21 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT MIN ( 95 ) AS col2 FROM tab0 WHERE + 21 = NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col2 + + col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - col0 + ( 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT + 64 * + CAST( - 62 * + 58 AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - ( + 70 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 64 * + CAST ( - 62 * + 58 AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - ( + 70 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 4 - 89 FROM tab2 WHERE NULL IS NULL
----
-273
-345
-389

query I rowsort
SELECT ALL ( - 4 ) FROM tab1
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL COUNT( * ) * COUNT( * ) + + SUM( + col2 ) AS col1 FROM tab1
----
232

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL COUNT ( * ) * COUNT ( * ) + + SUM ( + col2 ) AS col1 FROM tab1
----
232

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3588
SELECT ALL * FROM tab1 WHERE NOT + 42 NOT IN ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3588
SELECT ALL * FROM tab1 WHERE NOT + 42 NOT IN ( CAST ( col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3589
SELECT CAST( NULL AS DECIMAL ) - + 29 AS col2 FROM tab2 WHERE - 71 / 77 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT CAST ( NULL AS REAL ) - + 29 AS col2 FROM tab2 WHERE - 71 / 77 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + MIN( ALL col2 ) FROM tab0 WHERE NOT + col1 NOT IN ( - col2 + col2 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + MIN ( ALL col2 ) FROM tab0 WHERE NOT + col1 NOT IN ( - col2 + col2 * col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3591
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - 54 - 81 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3591
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - 54 - 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 / - ( - 74 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 / - ( - 74 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 - - col0 * + col2 FROM tab1
----
4992
5074
6256

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT DISTINCT 15 DIV + 56 - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT 15 / + 56 - col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < + 97 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL + COUNT( * ) + + 30 AS col0 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + COUNT ( * ) + + 30 AS col0 FROM tab2
----
33

query I rowsort
SELECT DISTINCT col2 - col0 * col1 AS col2 FROM tab2
----
-2323
-4888
-4967

query III rowsort
SELECT * FROM tab0 WHERE col1 + col1 IN ( + col0 * col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 / col0 IN ( + 17 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT ALL + col2 DIV + 88 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + col2 / + 88 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-3602
SELECT CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT AVG ( + 71 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - col2 + 86 * 39 AND col2 * col2
----
NULL

query I rowsort
SELECT + 67 * + 26 FROM tab0 AS cor0
----
1742
1742
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT SUM( 65 ) AS col2 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3606
SELECT SUM ( 65 ) AS col2 FROM tab0 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT - CAST( - 49 AS SIGNED ) col0 FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3607
SELECT - CAST ( - 49 AS INTEGER ) col0 FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + ( + col2 ) ) <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT SUM( DISTINCT col0 ) col1 FROM tab1 cor0 WHERE - col1 * col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3610
SELECT SUM ( DISTINCT col0 ) col1 FROM tab1 cor0 WHERE - col1 * col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT 83 - + 35 - col0 * 42 DIV + 33 FROM tab1
----
-16
-60
-67

skipif mysql # not compatible
query I rowsort label-3611
SELECT 83 - + 35 - col0 * 42 / + 33 FROM tab1
----
-16
-60
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT 61 * + COUNT( * ) - - COUNT( ALL + 93 ) AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT 61 * + COUNT ( * ) - - COUNT ( ALL + 93 ) AS col1 FROM tab2
----
186

query I rowsort
SELECT ALL - col2 * 98 AS col0 FROM tab0 WHERE NOT - 38 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + ( 51 ) / + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 * - col2 col0 FROM tab2
----
184
320
464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3616
SELECT 49 + + COUNT( ALL + ( CAST( + 3 AS SIGNED ) ) ) col0 FROM tab1
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT 49 + + COUNT ( ALL + ( CAST ( + 3 AS INTEGER ) ) ) col0 FROM tab1
----
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < + 35
----

query I rowsort
SELECT ALL - col1 * - 22 FROM tab2 AS cor0
----
1122
1474
1694

query I rowsort
SELECT 47 * col0 + - ( col0 ) AS col2 FROM tab1 AS cor0 WHERE - col2 + - col0 NOT BETWEEN col0 AND NULL
----
2346
3910
4186

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3620
SELECT ALL * FROM tab0 AS cor0 WHERE - 84 * + CAST( NULL AS SIGNED ) IS NULL AND ( + col2 - + 42 ) NOT IN ( + 3 + 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3620
SELECT ALL * FROM tab0 AS cor0 WHERE - 84 * + CAST ( NULL AS INTEGER ) IS NULL AND ( + col2 - + 42 ) NOT IN ( + 3 + 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 * - col1 AND 65
----

query I rowsort
SELECT ( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 5 * + col1 + col1 FROM tab0 AS cor0
----
-324
-4
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 + col2 / + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + COUNT( ALL 51 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT + COUNT ( ALL 51 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL 8 + COUNT( * ) AS col1 FROM tab2 WHERE col0 IN ( + col2 + col1 )
----
8

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL 8 + COUNT ( * ) AS col1 FROM tab2 WHERE col0 IN ( + col2 + col1 )
----
8

query I rowsort
SELECT ALL - col2 * - + ( - col1 ) AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + 6 FROM tab0, tab2 AS cor0
----
6

query II rowsort
SELECT 87 AS col2, col1 AS col2 FROM tab2 AS cor0
----
87
51
87
67
87
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3630
SELECT - col0 AS col2, + CAST( - + col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
-15
66
-87
-66
-97
-96

skipif mysql # not compatible
query II rowsort label-3630
SELECT - col0 AS col2, + CAST ( - + col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
-15
66
-87
-66
-97
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT COUNT( - col1 ) * + 44 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3631
SELECT COUNT ( - col1 ) * + 44 FROM tab2 AS cor0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT - + 22 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - + 22 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-4
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 * col2 - col2 AND ( + 63 )
----

query I rowsort
SELECT - 92 * - col2 * - ( col2 ) * 5 AS col1 FROM tab1 AS cor0
----
-1601260
-2127040
-4239360

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 86 / - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3635
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 86 / - col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT + - 64 AS col0 FROM tab1 cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 9 col0, - col2 * + 58 + - col0 AS col1 FROM tab0 AS cor0
----
9
-2741
9
-5839
9
-667

query I rowsort
SELECT ALL + AVG ( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * - - 57 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * - - 57 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT COUNT( ALL - col0 ) col1 FROM tab0 AS cor0 WHERE NOT + col2 * + 24 NOT IN ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3641
SELECT COUNT ( ALL - col0 ) col1 FROM tab0 AS cor0 WHERE NOT + col2 * + 24 NOT IN ( col1 )
----
0

query I rowsort
SELECT ( + 87 ) + + col0 AS col1 FROM tab1 WHERE NOT - col1 NOT BETWEEN ( - - col2 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT - COUNT( * ) + + 53 AS col1, SUM( DISTINCT col2 ) + + 8 * COUNT( * ) col2 FROM tab2
----
50
145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3643
SELECT - COUNT ( * ) + + 53 AS col1, SUM ( DISTINCT col2 ) + + 8 * COUNT ( * ) col2 FROM tab2
----
50
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL SUM( ALL 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL SUM ( ALL 0 ) FROM tab2
----
0

query I rowsort
SELECT ALL 87 * - col0 + + ( - + 46 ) + - 85 + 24 * - col0 FROM tab1 AS cor0
----
-10232
-5792
-9566

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 29 / - + col2 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 18 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL MIN( - 58 ) * + 89 * 59 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-304558

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL MIN ( - 58 ) * + 89 * 59 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-304558

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT + COUNT( + + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + COUNT ( + + col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3651
SELECT + CAST( NULL AS SIGNED ) - - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT col2 + 87 * - 69 - - ( - - 0 ) FROM tab1 AS cor0
----
-5907
-5935
-5944

query I rowsort
SELECT ALL - + 82 + col1 FROM tab0 AS cor0
----
-1
-61
-81

query I rowsort
SELECT ALL col0 * + - col2 AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT col1 + - - col1 DIV + - 91 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3655
SELECT col1 + - - col1 / + - 91 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3656
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / + ( - + 45 ) * - 37 * 82 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3656
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + ( - + 45 ) * - 37 * 82 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) * + - SUM( - col0 ) + AVG ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + - SUM ( - col0 ) + AVG ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 53 * col2 + + col0 FROM tab1 AS cor0
----
3212
3695
5139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3659
SELECT DISTINCT - MAX( DISTINCT + col2 ) + + - 9 + + 56, CAST( - + 55 AS SIGNED ) + COUNT( * ) AS col1 FROM tab0
----
-52
-52

skipif mysql # not compatible
query II rowsort label-3659
SELECT DISTINCT - MAX ( DISTINCT + col2 ) + + - 9 + + 56, CAST ( - + 55 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0
----
-52
-52

query I rowsort
SELECT 14 + - + 33 FROM tab2
----
-19
-19
-19

query III rowsort
SELECT * FROM tab1 WHERE - - col1 = - + 15 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT + CAST( - col1 AS SIGNED ) * - col2 + col2 AS col1 FROM tab2
----
1196
3120
3944

skipif mysql # not compatible
query I rowsort label-3662
SELECT + CAST ( - col1 AS INTEGER ) * - col2 + col2 AS col1 FROM tab2
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query II rowsort label-3663
SELECT col0 DIV col0 AS col0, + col2 FROM tab1
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-3663
SELECT col0 / col0 AS col0, + col2 FROM tab1
----
1
59
1
68
1
96

query I rowsort
SELECT DISTINCT - 42 * - col2 FROM tab0
----
1974
4158
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 59 - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-37
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT - ( - col0 ) * - col2 DIV col2 + + col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3667
SELECT - ( - col0 ) * - col2 / col2 + + col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query II rowsort
SELECT ALL - col1, - 74 AS col1 FROM tab0 AS cor0
----
-1
-74
-21
-74
-81
-74

query I rowsort
SELECT DISTINCT + ( 44 ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT - col0 * + + ( + col2 ) AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + 26 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT + + col0 * - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0 WHERE NOT ( col1 ) NOT IN ( + col1 * + col2, + 0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3673
SELECT + + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 WHERE NOT ( col1 ) NOT IN ( + col1 * + col2, + 0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3674
SELECT ALL + col1 DIV col1 AS col0, - 99 * - 61 FROM tab1 AS cor0
----
1
6039
1
6039
1
6039

skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL + col1 / col1 AS col0, - 99 * - 61 FROM tab1 AS cor0
----
1
6039
1
6039
1
6039

query I rowsort
SELECT + - ( + - col2 ) * - + 85 + col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT 57 * - col1 + - CAST( NULL AS SIGNED ) / + 10 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT 57 * - col1 + - CAST ( NULL AS INTEGER ) / + 10 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3677
SELECT - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / ( + col0 * - col0 ) FROM tab0 AS cor0 WHERE NOT ( NOT - 28 >= 4 )
----

skipif mysql # not compatible
query I rowsort label-3677
SELECT - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / ( + col0 * - col0 ) FROM tab0 AS cor0 WHERE NOT ( NOT - 28 >= 4 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT + - 63 * 75 DIV + col1 FROM tab0 AS cor0
----
-225
-4725
-58

skipif mysql # not compatible
query I rowsort label-3678
SELECT + - 63 * 75 / + col1 FROM tab0 AS cor0
----
-225
-4725
-58

query I rowsort
SELECT - 32 * + col2 FROM tab2 AS cor0
----
-1280
-1856
-736

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 + col2 * 42 + col0 - + col2 + - - ( + 52 ) ) < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3681
SELECT 8 * + - ( COUNT( * ) ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3681
SELECT 8 * + - ( COUNT ( * ) ) / + + COUNT ( * ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT - + 9 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT + 17 * - 13 * 48 FROM tab0 cor0
----
-10608
-10608
-10608

query I rowsort
SELECT ALL + 41 * 90 FROM tab2
----
3690
3690
3690

query I rowsort
SELECT - col1 * + + col1 AS col2 FROM tab0 WHERE NOT - 85 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 2 IS NOT NULL
----

query I rowsort
SELECT + ( + - 37 ) FROM tab2
----
-37
-37
-37

query II rowsort
SELECT + col2, 38 FROM tab2 AS cor0
----
23
38
40
38
58
38

query I rowsort
SELECT - col1 * + + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT ALL - col1 * + ( ( CAST( NULL AS SIGNED ) ) ) + + 23 + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - col1 * + ( ( CAST ( NULL AS INTEGER ) ) ) + + 23 + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL - SUM( DISTINCT - 68 ) col2 FROM tab1
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3691
SELECT ALL - SUM ( DISTINCT - 68 ) col2 FROM tab1
----
68

query I rowsort
SELECT ALL - - 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3693
SELECT * FROM tab0 AS cor0 WHERE col1 + + col2 NOT IN ( + col2, col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3693
SELECT * FROM tab0 AS cor0 WHERE col1 + + col2 NOT IN ( + col2, col1 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 53 + + + col0 * - + col2 AS col0 FROM tab2 AS cor0
----
-1005
-2507
-4297

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - - 39 + - + COUNT( col0 ) AS col1 FROM tab2 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
36

skipif mysql # not compatible
query I rowsort label-3695
SELECT - - 39 + - + COUNT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
36

query I rowsort
SELECT ALL - - col1 * - - col1 - + - col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT DISTINCT + 0 - col2 * - 11 FROM tab2 AS cor0
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL COUNT( * ) + - - 90 * MIN( ( 8 ) ) FROM tab0 AS cor0
----
723

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL COUNT ( * ) + - - 90 * MIN ( ( 8 ) ) FROM tab0 AS cor0
----
723

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + SUM( - + col1 ) - COUNT( DISTINCT - col1 ) + + - 95 col2 FROM tab2 AS cor0
----
-293

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3699
SELECT + SUM ( - + col1 ) - COUNT ( DISTINCT - col1 ) + + - 95 col2 FROM tab2 AS cor0
----
-293

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 88 + col0 NOT BETWEEN + 11 + + col2 + + 71 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col0 FROM tab2 AS cor0 WHERE col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL COUNT( * ) - + 15 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL COUNT ( * ) - + 15 FROM tab1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL - 38 * + 21 - + SUM( DISTINCT + + col0 ) FROM tab0
----
-997

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - 38 * + 21 - + SUM ( DISTINCT + + col0 ) FROM tab0
----
-997

query I rowsort
SELECT + col0 + + 20 AS col1 FROM tab1
----
105
111
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT AVG ( DISTINCT - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT AVG ( DISTINCT - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE col0 - - 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE col0 - - 27 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col2 FROM tab2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT MIN( col0 ) col0 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT MIN ( col0 ) col0 FROM tab2
----
46

query II rowsort
SELECT - 14 AS col0, - 21 + + ( - ( + + 73 ) ) AS col1 FROM tab2
----
-14
-94
-14
-94
-14
-94

query I rowsort
SELECT + col0 + - 38 / col0 * - col2 + - 48 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * - col0 * - - col1 AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT + col1 IN ( + ( - col2 ) )
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3713
SELECT DISTINCT + ( - MAX( - 20 ) ) col2, CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
20
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3713
SELECT DISTINCT + ( - MAX ( - 20 ) ) col2, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
20
NULL

query II rowsort
SELECT - - 40, + col2 FROM tab0 AS cor0
----
40
10
40
47
40
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3716
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST( NULL AS DECIMAL ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-3716
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST ( NULL AS REAL ) AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 28 < col1 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL + COUNT( DISTINCT + 28 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + COUNT ( DISTINCT + 28 ) FROM tab2
----
1

query II rowsort
SELECT DISTINCT - + col0 AS col0, + col2 + - 86 AS col1 FROM tab2 AS cor0
----
-46
-63
-64
-46
-75
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + + COUNT( ALL + 23 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3721
SELECT + + COUNT ( ALL + 23 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - - col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( + col1 )
----

query I rowsort
SELECT - + col0 * col1 * + - col0 + - - col0 FROM tab1 AS cor0
----
36210
36465
389298

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT ALL - 42 DIV - - 98 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL - 42 / - - 98 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3729
SELECT * FROM tab1 WHERE NOT + ( + 25 ) * - CAST( + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - col2 + col1 * - - 30 + + CAST( col0 AS SIGNED ) < ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3729
SELECT * FROM tab1 WHERE NOT + ( + 25 ) * - CAST ( + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - col2 + col1 * - - 30 + + CAST ( col0 AS INTEGER ) < ( col2 )
----

query I rowsort
SELECT 46 + - 30 AS col1 FROM tab1
----
16
16
16

query III rowsort
SELECT * FROM tab1 WHERE - 2 * - ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 + + 45 FROM tab1 AS cor0
----
-40
-46
-6

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 84 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT - COUNT( DISTINCT - + col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - COUNT ( DISTINCT - + col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE - 32 + 41 = + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3738
SELECT - + CAST( NULL AS DECIMAL ) * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3738
SELECT - + CAST ( NULL AS REAL ) * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 + - 80 AS col0 FROM tab1
----
-29
11
5

query I rowsort
SELECT col1 - + 13 * - + 4 * 59 - + col1 AS col1 FROM tab2
----
3068
3068
3068

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE ( col1 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + + ( - 26 ) + + COUNT( * ) * - COUNT( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3742
SELECT + + ( - 26 ) + + COUNT ( * ) * - COUNT ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3744
SELECT - CAST( ( + + col1 ) AS SIGNED ) col0, - col2 FROM tab2 AS cor0 WHERE 75 * col2 >= - col0 * col1 / col2
----
-51
-23
-67
-58
-77
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3744
SELECT - CAST ( ( + + col1 ) AS INTEGER ) col0, - col2 FROM tab2 AS cor0 WHERE 75 * col2 >= - col0 * col1 / col2
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + 52 IN ( - col0 )
----

query I rowsort
SELECT 29 * + col1 + - + ( - col1 ) + - - col2 + - col2 + col0 FROM tab0 AS cor0
----
127
2445
717

query I rowsort
SELECT - + col1 + + + col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 6, col2 + + 13, - 28 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT + COUNT( * ) DIV COUNT( * ) * - 58 AS col1 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3749
SELECT + COUNT ( * ) / COUNT ( * ) * - 58 AS col1 FROM tab0 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3750
SELECT ALL - COUNT( * ), + MAX( - + col1 ) col2 FROM tab2 WHERE ( - + col1 ) IS NOT NULL
----
-3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3750
SELECT ALL - COUNT ( * ), + MAX ( - + col1 ) col2 FROM tab2 WHERE ( - + col1 ) IS NOT NULL
----
-3
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 83 + col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT DISTINCT - ( + 78 ) DIV col1 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - ( + 78 ) / col1 AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT MAX( col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT MAX ( col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT - - 33 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
33
33
33

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL SUM( ( col2 ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL SUM ( ( col2 ) ) AS col2 FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 = NULL
----

query I rowsort
SELECT ALL 46 * 49 FROM tab0 AS cor0
----
2254
2254
2254

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT COUNT( DISTINCT col2 ), 40 * - COUNT( * ) col0 FROM tab0 AS cor0
----
3
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3759
SELECT COUNT ( DISTINCT col2 ), 40 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
3
-120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3760
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL CAST( NULL AS SIGNED ) + - 48 - + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL CAST ( NULL AS INTEGER ) + - 48 - + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + + col2 * - col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col0 col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT - col1 * - - col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT DISTINCT - 30 * + - CAST( + + col2 AS SIGNED ) - CAST( + + 43 AS SIGNED ), 40 AS col1 FROM tab2 AS cor0
----
1157
40
1697
40
647
40

skipif mysql # not compatible
query II rowsort label-3766
SELECT DISTINCT - 30 * + - CAST ( + + col2 AS INTEGER ) - CAST ( + + 43 AS INTEGER ), 40 AS col1 FROM tab2 AS cor0
----
1157
40
1697
40
647
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3767
SELECT + + col1 * - col0 + - col1 DIV 62 AS col1 FROM tab0 AS cor0
----
-1216
-1827
-97

skipif mysql # not compatible
query I rowsort label-3767
SELECT + + col1 * - col0 + - col1 / 62 AS col1 FROM tab0 AS cor0
----
-1216
-1827
-97

query I rowsort
SELECT ALL + ( ( - + 47 ) ) FROM tab1
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT COUNT( * ) * + 73 AS col2 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT COUNT ( * ) * + 73 AS col2 FROM tab1
----
219

query II rowsort
SELECT + col1, - 45 AS col2 FROM tab1
----
14
-45
47
-45
5
-45

query III rowsort
SELECT * FROM tab1 WHERE 25 IS NULL
----

query II rowsort
SELECT - 63 AS col2, ( ( - - col0 ) ) FROM tab2
----
-63
46
-63
64
-63
75

query II rowsort
SELECT col2, + 46 - + col1 AS col2 FROM tab2
----
23
-5
40
-31
58
-21

query I rowsort
SELECT ALL - - 11 AS col1 FROM tab1 WHERE + - col0 = + + col1 / col2 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT ALL + col1 FROM tab0 cor0 WHERE + CAST( - col1 AS SIGNED ) <> ( col0 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + col1 FROM tab0 cor0 WHERE + CAST ( - col1 AS INTEGER ) <> ( col0 )
----
1
21
81

query I rowsort
SELECT + ( - 13 ) + + + col0 AS col2 FROM tab1 AS cor0
----
38
72
78

query I rowsort
SELECT + + 80 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - SUM( col2 ) * + + COUNT( * ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-3778
SELECT - SUM ( col2 ) * + + COUNT ( * ) FROM tab0
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT DISTINCT CAST( - - MIN( + 54 ) AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT CAST ( - - MIN ( + 54 ) AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3780
SELECT CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ( + 32 ) * + MIN( ALL col1 ) * - 53 * - 7 AS col2 FROM tab0 AS cor0
----
11872

skipif mysql # not compatible
query I rowsort label-3781
SELECT ( + 32 ) * + MIN ( ALL col1 ) * - 53 * - 7 AS col2 FROM tab0 AS cor0
----
11872

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + - col1
----

query I rowsort
SELECT - - 15 - - col1 FROM tab0 cor0
----
16
36
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + - col2 ) AND col0 * - 64 AND 64 * - + col2 NOT IN ( + col0 )
----

query I rowsort
SELECT - ( - - 59 ) AS col2 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT - ( + 13 ) FROM tab1
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3787
SELECT DISTINCT - col2 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - col2 FROM tab0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col2 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3789
SELECT + COUNT( * ) AS col1, + ( + CAST( - COUNT( * ) AS SIGNED ) ) * + CAST( NULL AS DECIMAL ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3789
SELECT + COUNT ( * ) AS col1, + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + CAST ( NULL AS REAL ) FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT - ( - + 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-3790
SELECT - ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + ( + MAX( - - 9 ) ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + ( + MAX ( - - 9 ) ) AS col1 FROM tab0
----
9

query II rowsort
SELECT ALL + 98, col1 AS col2 FROM tab1
----
98
14
98
47
98
5

query II rowsort
SELECT DISTINCT 64 AS col1, 76 AS col1 FROM tab0
----
64
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + 35 * - ( + - col2 ) - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - + + col2 * col2 NOT IN ( 62 + - - col0 )
----

query I rowsort
SELECT DISTINCT + 91 * - 34 * 65 FROM tab1 WHERE NOT - col0 > - 54
----
-201110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT - SUM( DISTINCT - 85 ) DIV + + ( - 6 ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-3799
SELECT - SUM ( DISTINCT - 85 ) / + + ( - 6 ) AS col0 FROM tab1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3800
SELECT COUNT( * ) DIV ( + 38 ) AS col0 FROM tab0 WHERE NOT CAST( col1 AS SIGNED ) * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT COUNT ( * ) / ( + 38 ) AS col0 FROM tab0 WHERE NOT CAST ( col1 AS INTEGER ) * - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 85 - + - col2 AS col2 FROM tab1 cor0 WHERE NULL > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3802
SELECT * FROM tab2 AS cor0 WHERE col2 < + col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3802
SELECT * FROM tab2 AS cor0 WHERE col2 < + col0 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 75 AS col2 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT ALL - 8 AS col1 FROM tab2 AS cor0 WHERE ( NULL <> NULL )
----

query I rowsort
SELECT DISTINCT + ( + 91 ) * - 46 FROM tab2 AS cor0
----
-4186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT - MAX( + 22 ) * - - 1 + + 64 AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT - MAX ( + 22 ) * - - 1 + + 64 AS col1 FROM tab1 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = - col0 * + col0
----

query I rowsort
SELECT DISTINCT + + 39 + col1 + + col2 + + + col1 AS col0 FROM tab1 AS cor0
----
108
163
201

query I rowsort
SELECT col0 + + col0 * + col0 AS col2 FROM tab1
----
2652
7310
8372

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + - col0 * - col1 + 34 AND - col0
----

query I rowsort
SELECT DISTINCT col0 + col2 + 70 + + col0 * - 0 - col1 AS col0 FROM tab1 cor0
----
182
203
209

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL 91 + - - MIN( + - col2 ) AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL 91 + - - MIN ( + - col2 ) AS col2 FROM tab2 AS cor0
----
33

query I rowsort
SELECT + - 84 - - col1 AS col0 FROM tab1 AS cor0
----
-37
-70
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL > + 80
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-3817
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 34 + + + 97 <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query IIIIII rowsort label-3817
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 34 + + + 97 <= CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > - col0 * col2 + + 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - + 66 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - + 66 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 19 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT col1 DIV + col0 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT col1 / + col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + + 4 * - col2 AS col1 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + ( ( - MAX( DISTINCT col2 ) ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3824
SELECT + ( ( - MAX ( DISTINCT col2 ) ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT 70 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 8 FROM tab1 AS cor0
----
-408
-680
-728

query I rowsort
SELECT + 46 * + 89 AS col2 FROM tab0 AS cor0
----
4094
4094
4094

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + - col0 AND col2 / - ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > - + col0
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3830
SELECT col2 AS col0 FROM tab1 WHERE NOT + col2 = - - CAST( NULL AS DECIMAL ) * col1 + - + 97
----

skipif mysql # not compatible
query I rowsort label-3830
SELECT col2 AS col0 FROM tab1 WHERE NOT + col2 = - - CAST ( NULL AS REAL ) * col1 + - + 97
----

query I rowsort
SELECT DISTINCT col0 * col2 + + + col1 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT - MIN( DISTINCT + 7 ) FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3832
SELECT - MIN ( DISTINCT + 7 ) FROM tab2 cor0
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-3833
SELECT ALL col1 DIV + + col2 col0, 6 FROM tab0 AS cor0
----
0
6
1
6
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3833
SELECT ALL col1 / + + col2 col0, 6 FROM tab0 AS cor0
----
0
6
1
6
2
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IS NULL OR NOT + 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + SUM( DISTINCT - 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-3835
SELECT + SUM ( DISTINCT - 45 ) FROM tab1
----
-45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 60 <= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3837
SELECT ALL - - COUNT( * ), 59 col0 FROM tab2 AS cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3837
SELECT ALL - - COUNT ( * ), 59 col0 FROM tab2 AS cor0
----
3
59

query II rowsort
SELECT 56, + col2 AS col0 FROM tab2 AS cor0
----
56
23
56
40
56
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( ( + 66 ) ) col0, col1 AS col2 FROM tab2 AS cor0
----
66
51
66
67
66
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col2 * + col2 + ( col2 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, ( + 32 ) * - 52 FROM tab1 AS cor0
----
-59
-1664
-68
-1664
-96
-1664

query I rowsort
SELECT + + 78 AS col0 FROM tab0 cor0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL + col0 * col1 * col0 DIV + col2 + - - col2 AS col2 FROM tab2 AS cor0
----
4715
6555
7924

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + col0 * col1 * col0 / + col2 + - - col2 AS col2 FROM tab2 AS cor0
----
4715
6555
7924

query II rowsort
SELECT ALL 93, + col1 FROM tab1 AS cor0
----
93
14
93
47
93
5

query I rowsort
SELECT DISTINCT - 25 + - 55 + col2 FROM tab1
----
-12
-21
16

query II rowsort
SELECT + ( - 66 ) - - 51 + - col1 AS col2, - col0 FROM tab1
----
-20
-85
-29
-51
-62
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT - AVG ( DISTINCT col0 ) * + MIN( + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - AVG ( DISTINCT col0 ) * + MIN ( + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - 9 + - + col0 FROM tab1
----
-100
-60
-94

query I rowsort
SELECT + col0 + + col0 + col1 AS col2 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3850
SELECT - ( col1 ) + - col0 + + col1 * col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-58
-76
-83

skipif mysql # not compatible
query I rowsort label-3850
SELECT - ( col1 ) + - col0 + + col1 * col0 / + col2 AS col0 FROM tab1 AS cor0
----
-58
-76
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL 3 + + ( - 93 ) + MAX( ALL + + col1 ) col1 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3851
SELECT ALL 3 + + ( - 93 ) + MAX ( ALL + + col1 ) col1 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - - ( + 11 ) - - + col2 + + - ( - 28 ) * + 21 FROM tab2 AS cor0
----
622
639
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT - 37 * + col0 * + CAST( - + col0 AS SIGNED ) FROM tab1
----
267325
306397
96237

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT - 37 * + col0 * + CAST ( - + col0 AS INTEGER ) FROM tab1
----
267325
306397
96237

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + 49 * + - COUNT( * ) + + 88 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 49 * + - COUNT ( * ) + + 88 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL - MAX( ALL + + 20 ) AS col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL - MAX ( ALL + + 20 ) AS col2 FROM tab1 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 40 + col2 * - 99 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 40 + col2 * - 99 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3857
SELECT + col1 DIV + col0 + + col0 AS col2, + CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab0 AS cor0
----
20
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3857
SELECT + col1 / + col0 + + col0 AS col2, + CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab0 AS cor0
----
20
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col2 ) IS NOT NULL )
----

query II rowsort
SELECT 66, 32 AS col2 FROM tab0
----
66
32
66
32
66
32

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT 41 AS col1, MIN( 23 ) FROM tab2
----
41
23

skipif mysql # not compatible
query II rowsort label-3861
SELECT 41 AS col1, MIN ( 23 ) FROM tab2
----
41
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - + col0, - 72 col1 FROM tab2
----
2346
-72
4928
-72
5025
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT COUNT( + 93 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT COUNT ( + 93 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 0 * 25 + col2 + + col0 BETWEEN - 71 - + col0 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( 96 ) * 72 AS col1 FROM tab1
----
6912
6912
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NULL <= - 9
----
0

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NULL <= - 9
----
0

query I rowsort
SELECT col1 * + col1 + - + col1 FROM tab2
----
2550
4422
5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3868
SELECT + ( - MIN( ALL - 31 ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT + ( - MIN ( ALL - 31 ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col1 col0 FROM tab0 AS cor0
----
121
2290
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + - SUM( col2 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-3870
SELECT + - SUM ( col2 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-669

query II rowsort
SELECT DISTINCT - - col1, 29 AS col1 FROM tab2 cor0
----
51
29
67
29
77
29

query I rowsort
SELECT DISTINCT 0 * + + ( - - 85 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3873
SELECT CAST( - col2 AS SIGNED ) DIV - 75 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3873
SELECT CAST ( - col2 AS INTEGER ) / - 75 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT + + MAX( ALL col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + + MAX ( ALL col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT ALL col2 + - + 43 FROM tab2 AS cor0
----
-20
-3
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT 2 AS col1, MIN( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
5

skipif mysql # not compatible
query II rowsort label-3876
SELECT 2 AS col1, MIN ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3877
SELECT DISTINCT - col2 + + - col2 + + + col2 + col1 * CAST( NULL AS SIGNED ) / - col0 * - col2 AS col1, + 39 + ( 89 ) FROM tab0 AS cor0
----
NULL
128

skipif mysql # not compatible
query II rowsort label-3877
SELECT DISTINCT - col2 + + - col2 + + + col2 + col1 * CAST ( NULL AS INTEGER ) / - col0 * - col2 AS col1, + 39 + ( 89 ) FROM tab0 AS cor0
----
NULL
128

query I rowsort
SELECT + 52 + - col1 * - col2 * + + col0 FROM tab1
----
25127
290888
68596

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT 97 AS col0, - col1 AS col2 FROM tab1
----
97
-14
97
-47
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - COUNT( + + 14 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3881
SELECT - COUNT ( + + 14 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT 5, 26 * - - 96 AS col2 FROM tab2
----
5
2496

query I rowsort
SELECT DISTINCT + ( + col1 ) * - 14 + + col1 + + col1 FROM tab0 AS cor0
----
-12
-252
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * + 3 FROM tab2 AS cor0 WHERE + 82 IS NOT NULL
----
-27

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + 3 FROM tab2 AS cor0 WHERE + 82 IS NOT NULL
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT + - 99 DIV + + ( - + col0 ) - - col2 AS col0 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-3885
SELECT + - 99 / + + ( - + col0 ) - - col2 AS col0 FROM tab1 AS cor0
----
60
69
97

query II rowsort
SELECT DISTINCT - col1, col0 AS col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL AVG ( ALL - col1 ) + - + COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( NOT + 68 / - col1 + - - col1 BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL AVG ( ALL - col1 ) + - + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( NOT + 68 / - col1 + - - col1 BETWEEN NULL AND NULL )
----
NULL

query II rowsort
SELECT - col0 AS col1, + ( + + 91 ) + + 50 FROM tab0 AS cor0
----
-15
141
-87
141
-97
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3889
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + ( ( + - ( col1 ) ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= 58
----

query I rowsort
SELECT + + col1 * - - 56 - 12 FROM tab2 cor0
----
2844
3740
4300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT + SUM( ALL + - CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3893
SELECT + SUM ( ALL + - CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT ALL - col2 * - 13 * + col2, col2 AS col0 FROM tab0
----
127413
99
1300
10
28717
47

query II rowsort
SELECT ALL - 77, 83 + col2 AS col0 FROM tab1
----
-77
142
-77
151
-77
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT + MAX( DISTINCT + - col0 ) AS col2 FROM tab1 WHERE NOT - col1 * + + ( + 42 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT + MAX ( DISTINCT + - col0 ) AS col2 FROM tab1 WHERE NOT - col1 * + + ( + 42 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL > col2 * - + col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL - 16 * + COUNT( * ) FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - 16 * + COUNT ( * ) FROM tab0 cor0
----
-48

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + SUM( ALL - - col1 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-3900
SELECT + SUM ( ALL - - col1 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
309

query II rowsort
SELECT DISTINCT + col1, ( + + col2 ) FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT - 23 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-3903
SELECT - 23 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
-23
3

query I rowsort
SELECT 40 - + 78 FROM tab2 AS cor0 WHERE col0 * + col0 + 35 >= col1 / + col0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL + COUNT( ALL - CAST( + 8 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + COUNT ( ALL - CAST ( + 8 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3906
SELECT DISTINCT + col0 + - col2 col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3906
SELECT DISTINCT + col0 + - col2 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT - 2 * - CAST( NULL AS SIGNED ) * - + SUM( + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3907
SELECT - 2 * - CAST ( NULL AS INTEGER ) * - + SUM ( + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 + + 16 FROM tab2 AS cor0
----
-30
-48
-59

query I rowsort
SELECT 99 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + 20 + + 4 FROM tab2 WHERE - - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT - COUNT( * ) - 39 - + ( + CAST( - 96 AS SIGNED ) ) - COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - COUNT ( * ) - 39 - + ( + CAST ( - 96 AS INTEGER ) ) - COUNT ( * ) FROM tab2
----
51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( NULL ) OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - col1 + + 52 AS col0 FROM tab2
----
-1121
-3028
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT COUNT( DISTINCT + - 17 ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3914
SELECT COUNT ( DISTINCT + - 17 ) AS col1 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT + - SUM( - 16 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + - SUM ( - 16 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT DISTINCT - - MAX( ALL col0 ) AS col0, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-3916
SELECT DISTINCT - - MAX ( ALL col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - COUNT( ALL - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3917
SELECT - COUNT ( ALL - col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + MIN( + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + MIN ( + - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - - ( - - ( + + col0 ) ) * - col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab1
----
91

query I rowsort
SELECT + ( + col1 ) * - col0 + + col1 + + - 33 FROM tab0
----
-1167
-129
-1839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * 79 + - col0 col2 FROM tab2
----
1426
1437
1455

query I rowsort
SELECT ALL col1 + + col2 + + + col0 * + - col0 + 24 - col2 + - - 91 AS col1 FROM tab1
----
-2472
-7105
-8119

query II rowsort
SELECT DISTINCT + + col1 + - 58 AS col2, col2 FROM tab1 AS cor0
----
-11
68
-44
96
-53
59

query I rowsort
SELECT ALL col0 - - - col1 AS col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL - 41 + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - 41 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

query I rowsort
SELECT DISTINCT - 32 * + 9 + 2 FROM tab1 cor0
----
-286

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT - col0 + + - 6 DIV col2 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3929
SELECT - col0 + + - 6 / col2 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 97 col2 FROM tab1 AS cor0
----
12
46
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 93 - + - 75 * + 90 / - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col2 * - col0 * - 80 + - col0 + - 92 * + + col2 AS col0, - col1 FROM tab2 AS cor0
----
201056
-77
342589
-67
82478
-51

query II rowsort
SELECT ALL - 97 AS col0, + 62 FROM tab0
----
-97
62
-97
62
-97
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3934
SELECT + 81, - 97 * + - COUNT( * ) * - MAX( ALL - + col2 ) AS col2 FROM tab0
----
81
2910

skipif mysql # not compatible
query II rowsort label-3934
SELECT + 81, - 97 * + - COUNT ( * ) * - MAX ( ALL - + col2 ) AS col2 FROM tab0
----
81
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT - COUNT( * ) * 62 AS col1 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - COUNT ( * ) * 62 AS col1 FROM tab2
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * + 72 col2 FROM tab1
----
6552
6552
6552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT DISTINCT + 75 / - col2 / + CAST( NULL AS SIGNED ) - 82 + - + 56 + col2 * col2 * - CAST( NULL AS SIGNED ) * - - col2 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT DISTINCT + 75 / - col2 / + CAST ( NULL AS INTEGER ) - 82 + - + 56 + col2 * col2 * - CAST ( NULL AS INTEGER ) * - - col2 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 65 col2, col1 FROM tab0 AS cor0
----
65
1
65
21
65
81

query I rowsort
SELECT ALL - 80 * + + col0 + 39 * + col1 - + - col2 FROM tab1 AS cor0
----
-3438
-5379
-6546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT MAX( CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3940
SELECT MAX ( CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3941
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-3941
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT CAST( ( + col1 ) AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-3942
SELECT CAST ( ( + col1 ) AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT DISTINCT - 63 DIV + ( col2 ) + + col1 * 22 FROM tab2 AS cor0
----
1120
1473
1693

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - 63 / + ( col2 ) + + col1 * 22 FROM tab2 AS cor0
----
1120
1473
1693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3944
SELECT ALL - - 45 DIV COUNT( * ) + - 72 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - - 45 / COUNT ( * ) + - 72 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT + MIN( - + 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT + MIN ( - + 32 ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 58 <> + + 85
----

query I rowsort
SELECT - ( - - 1 ) AS col0 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL col2 AS col1, - 19 * + - col0 FROM tab2
----
23
874
40
1216
58
1425

query III rowsort
SELECT ALL * FROM tab1 WHERE - 31 NOT BETWEEN col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 40, col2 FROM tab0
----
40
10
40
47
40
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT ALL - 46 + COUNT( * ) * CAST( + 73 AS SIGNED ) AS col0 FROM tab0
----
173

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - 46 + COUNT ( * ) * CAST ( + 73 AS INTEGER ) AS col0 FROM tab0
----
173

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 - 34 / - ( col0 ) * + - 92 NOT BETWEEN 5 + col2 AND - - col0 + 53
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT + - col0 * - col1 + + - 1 DIV - col2 * - + col2 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3953
SELECT + - col0 * - col1 + + - 1 / - col2 * - + col2 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 - - col1 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col2 ) + - col0 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3956
SELECT 62 DIV + + CAST( + - SUM( DISTINCT + + col1 ) AS SIGNED ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3956
SELECT 62 / + + CAST ( + - SUM ( DISTINCT + + col1 ) AS INTEGER ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 46 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT - 27 - + + COUNT( * ), COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-36
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3958
SELECT - 27 - + + COUNT ( * ), COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-36
9

query I rowsort
SELECT DISTINCT + - 36 * + - col1 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT - col0 * - - col1 FROM tab1 cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 96 col1 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT 77 - - + MAX( 26 ) AS col2 FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3962
SELECT 77 - - + MAX ( 26 ) AS col2 FROM tab1 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT + + COUNT( * ) - + + MIN( + col0 ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT + + COUNT ( * ) - + + MIN ( + col0 ) FROM tab0 cor0
----
-12

query II rowsort
SELECT + col2 - + + col1, col0 FROM tab2 AS cor0
----
-28
46
-37
64
-9
75

query I rowsort
SELECT ALL - col2 + + 94 AS col1 FROM tab1 cor0
----
-2
26
35

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 / - + col1 * - col1 AND - col2
----

query I rowsort
SELECT ALL 22 * + col0 * col1 * + - col2 AS col1 FROM tab0
----
-1256310
-211266
-401940

query I rowsort
SELECT + col0 * - 90 FROM tab1
----
-4590
-7650
-8190

query II rowsort
SELECT 89 * + ( + - col0 ) AS col0, - col2 AS col0 FROM tab0
----
-1335
-47
-7743
-10
-8633
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - ( - + COUNT( * ) ) + + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3970
SELECT - ( - + COUNT ( * ) ) + + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3971
SELECT ALL - + 75 + + COUNT( * ) AS col2, - COUNT( * ) DIV + + 46 col1 FROM tab1 AS cor0 WHERE NOT ( col0 + - col2 + - col2 >= ( 62 ) )
----
-72
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3971
SELECT ALL - + 75 + + COUNT ( * ) AS col2, - COUNT ( * ) / + + 46 col1 FROM tab1 AS cor0 WHERE NOT ( col0 + - col2 + - col2 >= ( 62 ) )
----
-72
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3972
SELECT ALL col0 + + 26 - - col1 DIV col1, col2 FROM tab2 AS cor0
----
102
58
73
23
91
40

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL col0 + + 26 - - col1 / col1, col2 FROM tab2 AS cor0
----
102
58
73
23
91
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3973
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3973
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 14 col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
1218
1358
210

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

query II rowsort
SELECT col2 + - + col2 AS col1, col0 AS col1 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT 31 + 60 DIV + col2 + - 84 FROM tab1
----
-52
-53
-53

skipif mysql # not compatible
query I rowsort label-3977
SELECT 31 + 60 / + col2 + - 84 FROM tab1
----
-52
-53
-53

query I rowsort
SELECT col2 + - 11 FROM tab0
----
-1
36
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT 27 + col2 DIV - ( + col1 ) AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT 27 + col2 / - ( + col1 ) AS col1 FROM tab2
----
27

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT ( NOT ( NOT - - 50 / col0 * + 74 * + col0 + col0 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT MIN( ALL 80 ) + + - 79 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3981
SELECT MIN ( ALL 80 ) + + - 79 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT ALL COUNT( * ) + - MAX( - 89 ) - + ( 96 ) AS col0, COUNT( * ) * + 68 AS col2 FROM tab1
----
-4
204

skipif mysql # not compatible
query II rowsort label-3982
SELECT ALL COUNT ( * ) + - MAX ( - 89 ) - + ( 96 ) AS col0, COUNT ( * ) * + 68 AS col2 FROM tab1
----
-4
204

query II rowsort
SELECT ALL + col0 + + 79 - col1 AS col1, + 18 FROM tab2 AS cor0
----
66
18
74
18
87
18

query II rowsort
SELECT - ( + col0 ) - - col0 AS col1, col0 + + - 78 AS col2 FROM tab0
----
0
-63
0
19
0
9

query I rowsort
SELECT - col2 - + + ( - col1 ) AS col0 FROM tab2
----
28
37
9

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - + 72 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 65 * - col0 + col0 * + col2 + - col2 + col1, col2 * - 2 + + + col2 AS col1 FROM tab0 cor0
----
15810
-99
1714
-47
6536
-10

query I rowsort
SELECT DISTINCT - 49 + col2 FROM tab0 AS cor0
----
-2
-39
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + SUM( DISTINCT col1 ) * + 60 col2 FROM tab1 AS cor0
----
3960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3990
SELECT + SUM ( DISTINCT col1 ) * + 60 col2 FROM tab1 AS cor0
----
3960

query I rowsort
SELECT + + 85 AS col1 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - 3 * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 3 * - COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT + 56 AS col0, + col1 + - - col0 FROM tab1 AS cor0
----
56
138
56
65
56
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 58 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) NOT BETWEEN NULL AND - 21 / col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3996
SELECT * FROM tab0 WHERE NOT - 62 + + 45 NOT BETWEEN + + CAST( NULL AS SIGNED ) * - 14 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3996
SELECT * FROM tab0 WHERE NOT - 62 + + 45 NOT BETWEEN + + CAST ( NULL AS INTEGER ) * - 14 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 <> col1
----

query II rowsort
SELECT DISTINCT + 84 + 48, col0 FROM tab1 WHERE + + col0 * ( col2 ) * + + col0 * + + ( + + col0 ) <> col0 * + col2
----
132
51
132
85
132
91

query I rowsort
SELECT + col1 + - 22 AS col1 FROM tab0 WHERE NOT col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + - ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 79 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT CAST( - 14 AS SIGNED ) FROM tab0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-4003
SELECT CAST ( - 14 AS INTEGER ) FROM tab0
----
-14
-14
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4004
SELECT DISTINCT COUNT( * ) DIV + 27 * + 94 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT COUNT ( * ) / + 27 * + 94 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + - 77 * + + col0 FROM tab1 AS cor0
----
-3927
-6545
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - - SUM( 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT - - SUM ( 0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT + + SUM( col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4007
SELECT + + SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4008
SELECT ALL - 26 + + - COUNT( * ) DIV + MAX( DISTINCT col0 ) * + 49 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - 26 + + - COUNT ( * ) / + MAX ( DISTINCT col0 ) * + 49 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT ALL col1 * + + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT - + MAX( + 24 ) + + 2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT - + MAX ( + 24 ) + + 2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT ALL + 67 * + 78 AS col2 FROM tab0 cor0
----
5226
5226
5226

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4012
SELECT DISTINCT 58 * col0 - - ( - col2 ) AS col1 FROM tab2 WHERE NOT - 91 * ( + CAST( + + col1 AS DECIMAL ) ) IS NULL
----
2645
3672
4292

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT 58 * col0 - - ( - col2 ) AS col1 FROM tab2 WHERE NOT - 91 * ( + CAST ( + + col1 AS REAL ) ) IS NULL
----
2645
3672
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + - 37 * - 48 + + + 58
----

query I rowsort
SELECT DISTINCT 3 * col2 * + col1 AS col0 FROM tab2
----
11658
3519
9240

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL - COUNT( * ) * + COUNT( * ) * + 78 col1 FROM tab1
----
-702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4016
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * + 78 col1 FROM tab1
----
-702

query I rowsort
SELECT - col2 - - 75 AS col1 FROM tab2
----
17
35
52

query I rowsort
SELECT - col2 + - - 15 * 4 AS col0 FROM tab2
----
2
20
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4019
SELECT - CAST( + + col2 AS SIGNED ) DIV - + col1 + - col1 FROM tab1
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-4019
SELECT - CAST ( + + col2 AS INTEGER ) / - + col1 + - col1 FROM tab1
----
-46
-8
6

query II rowsort
SELECT ALL col0, - 4 FROM tab2 AS cor0
----
46
-4
64
-4
75
-4

query I rowsort
SELECT - col1 + - 47 FROM tab2 AS cor0
----
-114
-124
-98

query I rowsort
SELECT ALL + col1 * - - 22 * - col0 + - + 24 + + - col2 AS col0 FROM tab0 AS cor0
----
-2257
-26801
-40228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4023
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( + col1 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4023
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( + col1 AS INTEGER ) IS NULL )
----

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col0 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT col0 * col2 * + col2 AS col2 FROM tab2
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT 25 DIV + col0 * + + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4026
SELECT 25 / + col0 * + + col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4027
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT ALL ( + - col2 ), + col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT - col1 * - col0 + + + 87 FROM tab1 AS cor0
----
4364
512
801

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - 13 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - col1 * + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 * ( - col1 ) AS col0 FROM tab1
----
-2256
-240
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT - COUNT( DISTINCT 39 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4035
SELECT - COUNT ( DISTINCT 39 ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT - MIN( col2 ) col2 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4036
SELECT DISTINCT - MIN ( col2 ) col2 FROM tab1
----
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE ( 80 ) IS NULL
----

query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT + MAX( DISTINCT 66 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT + MAX ( DISTINCT 66 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT COUNT( 84 ) - - 57 AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4041
SELECT COUNT ( 84 ) - - 57 AS col1 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 WHERE NOT - col2 * - col0 BETWEEN 76 AND - col0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL COUNT( + col2 ) + - ( 34 + + COUNT( * ) ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL COUNT ( + col2 ) + - ( 34 + + COUNT ( * ) ) FROM tab1
----
-34

query I rowsort
SELECT - 97 + ( col0 ) FROM tab0
----
-10
-82
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= ( col2 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + col1 >= ( col2 )
----
-14
-47
-5

query I rowsort
SELECT ALL - col2 / + 65 AS col2 FROM tab2 WHERE NOT col2 NOT IN ( - col2 )
----

query I rowsort
SELECT 13 + col0 FROM tab2 WHERE ( NULL ) >= col1 * col1
----

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT col1 FROM tab2 WHERE + 59 * + col2 NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 BETWEEN 83 * - col1 AND 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 49 * 70 FROM tab1
----
3430

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT - col1 - - 52 DIV - col1 AS col0 FROM tab0
----
-23
-53
-81

skipif mysql # not compatible
query I rowsort label-4053
SELECT - col1 - - 52 / - col1 AS col0 FROM tab0
----
-23
-53
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4054
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 - 37 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 - 37 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > 51
----

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND ( + col0 * col2 )
----

query I rowsort
SELECT DISTINCT - 31 - - col1 AS col0 FROM tab0
----
-10
-30
50

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - col2 ) AND + 78 - col0
----

query I rowsort
SELECT col0 FROM tab1 WHERE + 39 IN ( col0 )
----

query I rowsort
SELECT 5 * + 86 AS col0 FROM tab2
----
430
430
430

query I rowsort
SELECT 43 - - col1 FROM tab1
----
48
57
90

query I rowsort
SELECT ALL - 72 + - col1 AS col0 FROM tab2
----
-123
-139
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT + col1 DIV - col0 - - col2 FROM tab2
----
22
39
58

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + col1 / - col0 - - col2 FROM tab2
----
22
39
58

query I rowsort
SELECT col0 * - 44 FROM tab2
----
-2024
-2816
-3300

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 74 ) IS NULL
----

query I rowsort
SELECT DISTINCT 80 * - col1 FROM tab1
----
-1120
-3760
-400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4067
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) / + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4067
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) / + col1 IS NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NULL NOT IN ( col1 + col2 )
----

query I rowsort
SELECT + ( + col2 ) * - col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col2 + - 22 * ( + col1 * col1 + - col0 ) FROM tab2
----
-128990
-56187
-97050

query I rowsort
SELECT - 70 * col2 AS col1 FROM tab1
----
-4130
-4760
-6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col2 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab2 WHERE NOT ( col0 ) BETWEEN + 84 + col0 AND NULL
----
141
142
97

query I rowsort
SELECT - ( + 47 ) AS col2 FROM tab1
----
-47
-47
-47

query I rowsort
SELECT DISTINCT col2 * 22 FROM tab0
----
1034
2178
220

query I rowsort
SELECT + 48 + + 40 * + 29 AS col0 FROM tab2 AS cor0 WHERE NULL < 77
----

query I rowsort
SELECT + 41 - + col0 FROM tab1 cor0
----
-10
-44
-50

query I rowsort
SELECT ( - col2 ) - col1 AS col1 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 94 / + 67 IN ( col2 )
----

query I rowsort
SELECT ALL - 18 * 71 + col2 AS col2 FROM tab0 cor0
----
-1179
-1231
-1268

query I rowsort
SELECT - 7 - 50 FROM tab2 AS cor0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT col0 - 24 * 54 FROM tab1 AS cor0
----
-1205
-1211
-1245

query I rowsort
SELECT - col2 - - 75 FROM tab2 AS cor0
----
17
35
52

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE + col1 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT DISTINCT col0 FROM tab1 WHERE - CAST( 64 AS SIGNED ) + + col2 NOT BETWEEN 47 AND - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT col0 FROM tab1 WHERE - CAST ( 64 AS INTEGER ) + + col2 NOT BETWEEN 47 AND - col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4087
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT SUM( ALL ( col2 ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4088
SELECT SUM ( ALL ( col2 ) ) AS col0 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT + col1 DIV + 22 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + col1 / + 22 FROM tab1
----
0
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4090
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) * 47 <> - col1 - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4090
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) * 47 <> - col1 - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( col2 + ( - col2 + + col1 * - col1 ) * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT - SUM( DISTINCT + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT - SUM ( DISTINCT + col1 ) AS col1 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 14 * - col2 <> + 17
----

query I rowsort
SELECT ALL + 8 AS col2 FROM tab0 cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT + - CAST( NULL AS SIGNED ) * col2 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-4095
SELECT + - CAST ( NULL AS INTEGER ) * col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT col0 DIV + col2 col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4097
SELECT col0 / + col2 col0 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT MIN( 28 ) FROM tab2 AS cor0 WHERE NOT - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT MIN ( 28 ) FROM tab2 AS cor0 WHERE NOT - col0 = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT DISTINCT + - ( col1 ) DIV col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT + - ( col1 ) / col0 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + 53 col2 FROM tab1 AS cor0
----
-2703
-4505
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT - COUNT( ALL - 88 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - COUNT ( ALL - 88 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - MAX( + col1 ) * - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4103
SELECT - MAX ( + col1 ) * - COUNT ( * ) FROM tab0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * - col0 col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 35 - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4106
SELECT ALL * FROM tab1 WHERE col2 + ( - CAST( NULL AS SIGNED ) + - 27 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4106
SELECT ALL * FROM tab1 WHERE col2 + ( - CAST ( NULL AS INTEGER ) + - 27 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL + ( + MIN( - col0 ) ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT ALL + ( + MIN ( - col0 ) ) col2 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL 18 * - CAST( - 85 * col0 AS SIGNED ) AS col2 FROM tab0 WHERE + col1 + - col1 > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL 18 * - CAST ( - 85 * col0 AS INTEGER ) AS col2 FROM tab0 WHERE + col1 + - col1 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL 74 + + SUM( DISTINCT + col2 ) AS col1 FROM tab0 WHERE - 96 / + col1 IS NOT NULL
----
230

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL 74 + + SUM ( DISTINCT + col2 ) AS col1 FROM tab0 WHERE - 96 / + col1 IS NOT NULL
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL + MIN( col2 ) col2 FROM tab0 AS cor0 WHERE NOT + ( - 95 ) * col2 <> ( col1 / 5 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4110
SELECT ALL + MIN ( col2 ) col2 FROM tab0 AS cor0 WHERE NOT + ( - 95 ) * col2 <> ( col1 / 5 )
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col1 ) BETWEEN + col0 + 30 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT + - 16 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT + - 16 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT COUNT( * ) + + + 76 col2 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4113
SELECT COUNT ( * ) + + + 76 col2 FROM tab2
----
79

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE ( 50 ) NOT BETWEEN ( + 72 ) AND - 94 + 53 * 20
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE col1 BETWEEN NULL AND - 9
----
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE col1 BETWEEN NULL AND - 9
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT DISTINCT + ( + - col0 ) + - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + ( + - col0 ) + - col1 / col0 AS col1 FROM tab2 AS cor0
----
-47
-65
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT ALL col0 * + - col1 + + col0 DIV + col1 col2 FROM tab0 AS cor0
----
-1215
-1823
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4119
SELECT ALL col0 * + - col1 + + col0 / + col1 col2 FROM tab0 AS cor0
----
-1215
-1823
0

query II rowsort
SELECT col1, + 4 * + col2 FROM tab2 AS cor0
----
51
92
67
232
77
160

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + col0 )
----

query I rowsort
SELECT ALL - 81 + + col0 AS col0 FROM tab1 AS cor0
----
-30
10
4

query I rowsort
SELECT - - 67 * - 94 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4124
SELECT DISTINCT + - 88 - COUNT( * ) + AVG ( + CAST( NULL AS SIGNED ) ) * 3 * - 76 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT + - 88 - COUNT ( * ) + AVG ( + CAST ( NULL AS INTEGER ) ) * 3 * - 76 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col0 AS col2, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 49 / - 42 ) AND + 44 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4127
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( + col2 * 68 + + CAST( col1 AS SIGNED ) ) AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4127
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( + col2 * 68 + + CAST ( col1 AS INTEGER ) ) AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT ( + + MIN( DISTINCT - 32 ) ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT ( + + MIN ( DISTINCT - 32 ) ) FROM tab0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT MIN( ALL col1 ) FROM tab0 WHERE ( col1 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT MIN ( ALL col1 ) FROM tab0 WHERE ( col1 ) < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT - 85 + + COUNT( * ) + - - 52 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4131
SELECT - 85 + + COUNT ( * ) + - - 52 FROM tab1
----
-30

query I rowsort
SELECT DISTINCT + 33 * + - 13 AS col2 FROM tab2
----
-429

query I rowsort
SELECT + 51 + + col0 AS col1 FROM tab1
----
102
136
142

query I rowsort
SELECT col2 + + ( 93 ) FROM tab0
----
103
140
192

query II rowsort
SELECT ALL ( - - 42 ) AS col0, col0 FROM tab2
----
42
46
42
64
42
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 >= - + 6 + + 88 AND ( NULL ) <> col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT + COUNT( + col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4137
SELECT DISTINCT + COUNT ( + col1 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NULL ) NOT IN ( 23 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT - 34 + MIN( DISTINCT + col2 ) * 73 AS col0 FROM tab2 cor0
----
1645

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 34 + MIN ( DISTINCT + col2 ) * 73 AS col0 FROM tab2 cor0
----
1645

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT + col1 >= col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT ALL + + MIN( 78 ), 53 * + + COUNT( * ) AS col1 FROM tab1 cor0
----
78
159

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL + + MIN ( 78 ), 53 * + + COUNT ( * ) AS col1 FROM tab1 cor0
----
78
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4142
SELECT + CAST( NULL AS SIGNED ), 28 AS col2 FROM tab1 AS cor0
----
NULL
28
NULL
28
NULL
28

skipif mysql # not compatible
query II rowsort label-4142
SELECT + CAST ( NULL AS INTEGER ), 28 AS col2 FROM tab1 AS cor0
----
NULL
28
NULL
28
NULL
28

query I rowsort
SELECT 8 FROM tab2 AS cor0 WHERE NOT - 85 NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col0 * col0 + - col0
----

query I rowsort
SELECT ALL col0 * - - col0 + + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 58 * - - 49 FROM tab0 AS cor0
----
2842
2842
2842

query I rowsort
SELECT ALL - + 47 * - 20 AS col1 FROM tab0 AS cor0
----
940
940
940

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT DISTINCT - + ( col0 ) DIV col2 * - 59 FROM tab2 AS cor0
----
118
59

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - + ( col0 ) / col2 * - 59 FROM tab2 AS cor0
----
118
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 < + 19
----
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 51 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, + 14 + 44 col2 FROM tab0
----
1
58
21
58
81
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT - COUNT( - - col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT - COUNT ( - - col0 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL COUNT( * ) * 87 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL COUNT ( * ) * 87 FROM tab1
----
261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4155
SELECT + CAST( - 73 AS SIGNED ) DIV - - col0 + - col0 + - + 93 + - col1 AS col2 FROM tab0
----
-191
-193
-201

skipif mysql # not compatible
query I rowsort label-4155
SELECT + CAST ( - 73 AS INTEGER ) / - - col0 + - col0 + - + 93 + - col1 AS col2 FROM tab0
----
-191
-193
-201

query I rowsort
SELECT 11 + 89 AS col2 FROM tab0
----
100
100
100

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < + 55
----

query I rowsort
SELECT + col1 + + + ( ( - + ( - col1 ) ) ) * + + 76 AS col2 FROM tab1 AS cor0
----
1078
3619
385

query I rowsort
SELECT ALL col0 + col2 + 73 AS col0 FROM tab2 AS cor0
----
142
177
206

query I rowsort
SELECT - 85 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( + 80 + - + 11 ) AND + col1
----
-85
-85
-85

query I rowsort
SELECT + col0 + - col0 * - col1 FROM tab0 cor0 WHERE col1 + - col1 + + 29 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * col0 col2 FROM tab2 AS cor0
----
184
256
300

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 + + col2 = ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 + + col2 = ( - col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4164
SELECT ALL - CAST( + + 85 AS SIGNED ), + col0 FROM tab0
----
-85
15
-85
87
-85
97

skipif mysql # not compatible
query II rowsort label-4164
SELECT ALL - CAST ( + + 85 AS INTEGER ), + col0 FROM tab0
----
-85
15
-85
87
-85
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL MIN( + 47 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL MIN ( + 47 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL + + COUNT( * ) + - 60 col0 FROM tab0 AS cor0 WHERE NULL > + 36
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4166
SELECT ALL + + COUNT ( * ) + - 60 col0 FROM tab0 AS cor0 WHERE NULL > + 36
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT ALL - COUNT( ALL - + 55 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4167
SELECT ALL - COUNT ( ALL - + 55 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 49 + - col2 AS col0 FROM tab0 cor0
----
-50
2
39

query I rowsort
SELECT ALL - + 7 + + col2 + 93 FROM tab2 AS cor0
----
109
126
144

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + - 87 FROM tab0 AS cor0
----
-6
-66
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL + 60 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL + 60 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT - col2 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT ALL - col1 * - - ( + - col2 ) FROM tab1 cor0 WHERE NULL IS NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT - 0 * - ( SUM( col0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - 0 * - ( SUM ( col0 ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT DISTINCT 80 - + CAST( - col2 AS SIGNED ) FROM tab1
----
139
148
176

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT 80 - + CAST ( - col2 AS INTEGER ) FROM tab1
----
139
148
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col0 FROM tab1
----
9
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT DISTINCT - COUNT( * ), 2 * - 65 AS col0 FROM tab0
----
-3
-130

skipif mysql # not compatible
query II rowsort label-4179
SELECT DISTINCT - COUNT ( * ), 2 * - 65 AS col0 FROM tab0
----
-3
-130

query I rowsort
SELECT + - col1 * col1 AS col0 FROM tab0 WHERE 14 NOT BETWEEN NULL AND + col2
----
-441

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + col0 + + - col0 <> + 72 AND NULL < ( + 5 + + + col1 * 8 )
----

query II rowsort
SELECT + 76, - ( + 60 ) * - col1 AS col1 FROM tab2 AS cor0
----
76
3060
76
4020
76
4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT DISTINCT - CAST( ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - CAST ( ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL + col1, col1 + + + 41 * + + col2 + - col1 AS col2 FROM tab2 AS cor0
----
51
943
67
2378
77
1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT ( - CAST( + 10 AS SIGNED ) ) AS col0 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4185
SELECT ( - CAST ( + 10 AS INTEGER ) ) AS col0 FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT ALL + col0 * - - col2 * - col2 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-182700
-2683935
-950697

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + col0 * - - col2 * - col2 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-182700
-2683935
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL - + SUM( ALL + col0 ) * - ( - ( - ( - 98 ) ) ) FROM tab0 AS cor0
----
-19502

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL - + SUM ( ALL + col0 ) * - ( - ( - ( - 98 ) ) ) FROM tab0 AS cor0
----
-19502

query II rowsort
SELECT col2, + 94 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
94
68
94
96
94

query II rowsort
SELECT DISTINCT col2 * - col1, 81 AS col1 FROM tab2 AS cor0
----
-1173
81
-3080
81
-3886
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL - - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 32 * + ( - col2 ) FROM tab1 cor0
----
-1888
-2176
-3072

query I rowsort
SELECT ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + - col1 + col1 * col1 col1 FROM tab2 AS cor0
----
3774
8375
9009

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4194
SELECT * FROM tab2 WHERE NOT ( - - col1 * + - ( col2 ) + - col0 / ( col2 ) + + + CAST( NULL AS SIGNED ) ) > - 13 * col1 + + 12 * + col0
----

skipif mysql # not compatible
query III rowsort label-4194
SELECT * FROM tab2 WHERE NOT ( - - col1 * + - ( col2 ) + - col0 / ( col2 ) + + + CAST ( NULL AS INTEGER ) ) > - 13 * col1 + + 12 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4195
SELECT * FROM tab2 WHERE NOT - col2 / - 57 - 63 < - col1 + + 99 + + CAST( - - 47 AS SIGNED ) + - 50 / - col0
----

skipif mysql # not compatible
query III rowsort label-4195
SELECT * FROM tab2 WHERE NOT - col2 / - 57 - 63 < - col1 + + 99 + + CAST ( - - 47 AS INTEGER ) + - 50 / - col0
----

query I rowsort
SELECT DISTINCT - col2 * + + 24 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - 4 * - COUNT( * ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - 4 * - COUNT ( * ) AS col0 FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT DISTINCT + col2 DIV + 15 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + col2 / + 15 AS col2 FROM tab2
----
1
2
3

query III rowsort
SELECT * FROM tab1 WHERE + 30 * - col1 / ( col1 ) * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4200
SELECT COUNT( * ) DIV - 97 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4200
SELECT COUNT ( * ) / - 97 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + - 73 + - 94 AS col0 FROM tab2 AS cor0
----
-167
-167
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT + MAX( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + col1 + + col0 * - - col0 + col0 + - col0 * - 17 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-4202
SELECT + MAX ( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + col1 + + col0 * - - col0 + col0 + - col0 * - 17 IS NULL
----
-15

query I rowsort
SELECT DISTINCT + col2 + + 58 AS col1 FROM tab1 AS cor0
----
117
126
154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4204
SELECT col0 DIV col1 AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
1
NULL
17
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-4204
SELECT col0 / col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
1
NULL
17
NULL
3
NULL

query I rowsort
SELECT DISTINCT col0 * + - 72 * col2 * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-1751997
-18165533
-7372723

query I rowsort
SELECT - - col2 * - - 2 AS col0 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4207
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - + 5 * - - 82 - COUNT( * ) col1 FROM tab2 AS cor0
----
-413

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT - + 5 * - - 82 - COUNT ( * ) col1 FROM tab2 AS cor0
----
-413

query II rowsort
SELECT ALL col0 * - 61 AS col0, + col0 AS col0 FROM tab1
----
-3111
51
-5185
85
-5551
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT ALL - + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col0 IN ( + - col1 * ( - 93 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 69 * - - col2 AS col0 FROM tab0 AS cor0
----
-3243
-6831
-690

query II rowsort
SELECT DISTINCT - ( col1 ), col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT ALL - 19 * + + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0304955e69317860ccc86baec0cd580

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT MAX( ALL - - ( 42 ) ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4215
SELECT MAX ( ALL - - ( 42 ) ) FROM tab2
----
42

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 58 + + - 20 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT DISTINCT col2 + - 56 DIV - 49 AS col0 FROM tab0 cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT col2 + - 56 / - 49 AS col0 FROM tab0 cor0
----
100
11
48

query I rowsort
SELECT DISTINCT ( + 11 ) * - ( + 99 ) FROM tab2 AS cor0
----
-1089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL - 89 - - col1 + + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST( 71 AS SIGNED ), 21, - + col1 * + col0 * + 73 + - 48 - - - 36 )
----

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - 89 - - col1 + + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( 71 AS INTEGER ), 21, - + col1 * + col0 * + 73 + - 48 - - - 36 )
----

query I rowsort
SELECT - - col2 + - + 95 AS col2 FROM tab0 cor0 WHERE NOT + col1 * + col1 < NULL
----

query I rowsort
SELECT col1 * - ( + col2 ) * - col0 - + - col0 + + col2 FROM tab0 AS cor0
----
18367
57167
9799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT col0 + - - col1 + + col1 * - col1 * CAST( NULL AS SIGNED ) + + 69 * - 23 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT col0 + - - col1 + + col1 * - col1 * CAST ( NULL AS INTEGER ) + + 69 * - 23 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 22 + col0 * + col2 FROM tab0
----
727
892
9625

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - 10 + + + 83 * + 86 * - COUNT( * ) FROM tab2
----
-21424

skipif mysql # not compatible
query I rowsort label-4225
SELECT - 10 + + + 83 * + 86 * - COUNT ( * ) FROM tab2
----
-21424

query I rowsort
SELECT DISTINCT + col1 + - col2 + col1 FROM tab1 WHERE NULL > - col0
----

query I rowsort
SELECT + 76 + - - col1 FROM tab0
----
157
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - COUNT( * ) + 58 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4228
SELECT - COUNT ( * ) + 58 FROM tab1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT + CAST( - COUNT( * ) AS SIGNED ) + 68 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-4229
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + 68 FROM tab2
----
65

query I rowsort
SELECT - col0 + col1 + - - col2 * - 64 AS col2 FROM tab0
----
-2942
-6432
-706

query I rowsort
SELECT + 18 * col2 * - - col2 + - col0 FROM tab0
----
1713
176321
39747

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT MIN( ALL 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4232
SELECT MIN ( ALL 40 ) FROM tab1 AS cor0
----
40

query I rowsort
SELECT + col1 + - 98 AS col2 FROM tab2 AS cor0 WHERE ( col0 + + col0 ) = NULL
----

query I rowsort
SELECT DISTINCT - 27 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-27

query I rowsort
SELECT + 83 AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 7 * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 7 * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT ALL + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + 3 FROM tab2 AS cor0
----
49
67
78

query I rowsort
SELECT ALL col2 - 16 FROM tab1 AS cor0
----
43
52
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT - 6 + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - 6 + - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL + + COUNT( + 0 ) + - - COUNT( * ) + - 92 AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + + COUNT ( + 0 ) + - - COUNT ( * ) + - 92 AS col1 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT DISTINCT - 37 * - col2 AS col1 FROM tab0
----
1739
3663
370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT ALL COUNT( * ) DIV 64 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL COUNT ( * ) / 64 FROM tab2
----
0

query I rowsort
SELECT - col0 * + + col0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, + 10 col1 FROM tab2
----
-51
10
-67
10
-77
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT col2, - 19 FROM tab0
----
10
-19
47
-19
99
-19

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( - col0 ) - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - MIN( 79 ) * - ( + COUNT( * ) ) + - MIN( DISTINCT - col2 ) FROM tab1 cor0
----
333

skipif mysql # not compatible
query I rowsort label-4250
SELECT - MIN ( 79 ) * - ( + COUNT ( * ) ) + - MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT + 32 / - col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT + 32 / - col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + - 92 FROM tab1 AS cor0
----
-1
-41
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4253
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, col0, - - CAST( - - col2 AS SIGNED ) + - - col0 + - 71, - col1, + ( + - ( - 43 ) ) * + ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4253
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, col0, - - CAST ( - - col2 AS INTEGER ) + - - col0 + - 71, - col1, + ( + - ( - 43 ) ) * + ( - col0 ) )
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) * - - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT col1 * + col2 * + + 27 FROM tab1 cor0
----
36288
7965
86292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) IS NULL )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) IS NULL )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT + col1 * CAST( ( - ( col0 ) ) AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4257
SELECT + col1 * CAST ( ( - ( col0 ) ) AS INTEGER ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT col1 * + 90 * - col2 + + 43 AS col1 FROM tab2
----
-105527
-277157
-349697

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - SUM( ALL + + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4259
SELECT - SUM ( ALL + + col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL SUM( + 87 ) col1 FROM tab2
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4260
SELECT ALL SUM ( + 87 ) col1 FROM tab2
----
261

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 79 + + - col1 + - 77 * - - ( + 68 ) BETWEEN NULL AND 66 )
----

query II rowsort
SELECT - 43 + - col0 * - 63 AS col0, - col1 FROM tab2 AS cor0
----
2855
-51
3989
-77
4682
-67

query I rowsort
SELECT + 10 + - 91 AS col0 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT ALL + - col2 DIV + col0 - + col0 AS col2 FROM tab1 AS cor0
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL + - col2 / + col0 - + col0 AS col2 FROM tab1 AS cor0
----
-52
-85
-91

query I rowsort
SELECT DISTINCT - 41 * - col2 * 21 - 47 AS col2 FROM tab0 AS cor0
----
40420
85192
8563

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 AS col1 FROM tab2
----
-8
13
5

query II rowsort
SELECT - ( + col0 ) AS col2, 1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT DISTINCT + 48 - + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + 48 - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT 78 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 64 + + col0 col1 FROM tab1 AS cor0
----
3099
405
947

query II rowsort
SELECT - + ( + col2 ), + col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT DISTINCT COUNT( * ) * 4 DIV - 41 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT COUNT ( * ) * 4 / - 41 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT ALL col0 DIV - - col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL col0 / - - col2 FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + COUNT( ALL - + col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT + COUNT ( ALL - + col0 ) col0 FROM tab0
----
3

query I rowsort
SELECT - 97 * 42 FROM tab1
----
-4074
-4074
-4074

query I rowsort
SELECT col0 + - col1 FROM tab1 AS cor0 WHERE NOT ( - ( - - col2 ) ) IS NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - MIN( ALL 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4279
SELECT - MIN ( ALL 83 ) FROM tab0 AS cor0
----
-83

query II rowsort
SELECT ALL + ( - col2 ), 33 AS col2 FROM tab1
----
-59
33
-68
33
-96
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT 76 DIV - col2 AS col0 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-4281
SELECT 76 / - col2 AS col0 FROM tab2
----
-1
-1
-3

query I rowsort
SELECT ALL + 15 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 18 * col1 * 67 col2 FROM tab0
----
-1206
-531846
-7912566

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - ( + col0 ), + 11 AS col1 FROM tab2
----
-46
11
-64
11
-75
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4286
SELECT ALL - - COUNT( * ) AS col2, + COUNT( * ) + + COUNT( * ) * + COUNT( - col2 ) FROM tab1 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL - - COUNT ( * ) AS col2, + COUNT ( * ) + + COUNT ( * ) * + COUNT ( - col2 ) FROM tab1 AS cor0
----
3
12

query I rowsort
SELECT ALL + col1 * + 55 + + col2 AS col0 FROM tab0 cor0
----
1165
154
4502

query I rowsort
SELECT ALL col0 + + col2 + - + col2 * - 50 FROM tab2 AS cor0
----
1219
2104
3033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT + col0 - + col1 AS col1 FROM tab1 AS cor0 WHERE + CAST( + + col2 AS SIGNED ) IN ( - col1 * + 15, - col1 )
----

skipif mysql # not compatible
query I rowsort label-4289
SELECT + col0 - + col1 AS col1 FROM tab1 AS cor0 WHERE + CAST ( + + col2 AS INTEGER ) IN ( - col1 * + 15, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT + - COUNT( DISTINCT - col2 ) * + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + - COUNT ( DISTINCT - col2 ) * + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + + 6 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
6
6
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4292
SELECT DISTINCT col1 + - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT col1 + - CAST ( NULL AS REAL ) FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT - col0 + + - col2 AS col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT - col2 * - - col0 * - + 46 AS col1 FROM tab1
----
225216
230690
284648

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT COUNT( * ) * MIN( - col1 ) FROM tab2 WHERE NOT col0 * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT COUNT ( * ) * MIN ( - col1 ) FROM tab2 WHERE NOT col0 * - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 59 + + col1 FROM tab1
----
106
64
73

query II rowsort
SELECT ALL + col0 + 92 * col1 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
1339
-96
4415
-68
545
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - COUNT( * ) - COUNT( * ) col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4298
SELECT - COUNT ( * ) - COUNT ( * ) col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL col0 * col0 * - col0 - col1 FROM tab0
----
-3456
-658524
-912674

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT 88 - + ( - 74 ) + - SUM( - - 46 ) * + COUNT( * ) AS col2 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT 88 - + ( - 74 ) + - SUM ( - - 46 ) * + COUNT ( * ) AS col2 FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + + COUNT( * ) + + - 99 FROM tab0 WHERE NOT - + 29 NOT BETWEEN NULL AND NULL
----
-99

skipif mysql # not compatible
query I rowsort label-4301
SELECT + + COUNT ( * ) + + - 99 FROM tab0 WHERE NOT - + 29 NOT BETWEEN NULL AND NULL
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4302
SELECT DISTINCT SUM( DISTINCT - col2 ) * ( + 9 ) col1, - 7 FROM tab0
----
-1404
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4302
SELECT DISTINCT SUM ( DISTINCT - col2 ) * ( + 9 ) col1, - 7 FROM tab0
----
-1404
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + 92 * + col2 - + - col1 + - + col1 col1 FROM tab2 AS cor0
----
-147200
-309488
-48668

query I rowsort
SELECT DISTINCT - 97 * - + col2 AS col1 FROM tab0 AS cor0
----
4559
9603
970

query I rowsort
SELECT + col1 * - 69 FROM tab2 cor0
----
-3519
-4623
-5313

query II rowsort
SELECT - col1 AS col0, 72 AS col2 FROM tab2 AS cor0
----
-51
72
-67
72
-77
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT - MAX( DISTINCT - col2 ), + COUNT( * ) AS col1 FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-4307
SELECT - MAX ( DISTINCT - col2 ), + COUNT ( * ) AS col1 FROM tab0
----
10
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 53 - + col1 + col0 + 78 * + + col1
----

query I rowsort
SELECT DISTINCT 22 * - 75 FROM tab2
----
-1650

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT BETWEEN - - 5 * + 23 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 99 * - col1 * + col0 * - - col1 AS col1 FROM tab1
----
-19900881
-210375
-989604

query I rowsort
SELECT + col0 * - col2 * + 9 * - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
-1427625
-59265270
-813191643

query I rowsort
SELECT ALL - + col2 * + + col1 + - col0 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT - 42 + + MAX( + + 38 ) AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - 42 + + MAX ( + + 38 ) AS col0 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 34
----

query II rowsort
SELECT DISTINCT - - 19 + - - col0 - - col2, + 67 + - + col1 + col0 AS col1 FROM tab0 AS cor0
----
116
133
215
163
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT MAX( + + 21 ) AS col0 FROM tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-4319
SELECT MAX ( + + 21 ) AS col0 FROM tab2 cor0
----
21

query I rowsort
SELECT + - col0 * - - col0 FROM tab1 cor0
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 AS col1 FROM tab0 WHERE + - col1 IS NOT NULL
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 WHERE + - 71 + + + 92 <= + col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * - col1 NOT BETWEEN - - col1 + + col2 AND + ( + ( + col1 ) ) - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col1 ) + + 75 AS col1 FROM tab0
----
156
76
96

query III rowsort
SELECT * FROM tab0 WHERE + - ( + col2 ) IN ( col0, + col1, + - col0 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 46 col0, + col2 col2 FROM tab0
----
46
10
46
47
46
99

query I rowsort
SELECT DISTINCT + + 16 + - col1 FROM tab2 AS cor0
----
-35
-51
-61

query I rowsort
SELECT DISTINCT col0 + + + ( col0 ) AS col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL + col1 + 94 AS col0 FROM tab1 AS cor0
----
108
141
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4330
SELECT DISTINCT + ( col1 ) * + col2 * col0 - - + 61 * - CAST( - col2 AS SIGNED ) AS col0, + ( col0 ) * - col1 / - col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
28674
NULL
294984
NULL
74400
NULL

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT + ( col1 ) * + col2 * col0 - - + 61 * - CAST ( - col2 AS INTEGER ) AS col0, + ( col0 ) * - col1 / - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
28674
NULL
294984
NULL
74400
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT SUM( + 13 ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4332
SELECT SUM ( + 13 ) AS col1 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + SUM( DISTINCT - - col0 ) * + - COUNT( * ) FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + SUM ( DISTINCT - - col0 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-681

query I rowsort
SELECT 70 FROM tab2 AS cor0 WHERE NOT + ( + + col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 29 ) FROM tab0 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + + SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4336
SELECT + + SUM ( col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT col2 DIV 22 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4337
SELECT col2 / 22 AS col0 FROM tab2
----
1
1
2

query I rowsort
SELECT 5 + 84 FROM tab0
----
89
89
89

query I rowsort
SELECT col1 + - 89 FROM tab2
----
-12
-22
-38

query I rowsort
SELECT + ( - 3 ) + + col0 AS col0 FROM tab0
----
12
84
94

query II rowsort
SELECT ALL + col0 * + + col0 * - + col1 * col2, col2 FROM tab0
----
-1589490
10
-856575
47
-931491
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT ALL + col1 DIV - + col1 - 83 + 97 AS col1 FROM tab1 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + col1 / - + col1 - 83 + 97 AS col1 FROM tab1 AS cor0
----
13
13
13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 5 BETWEEN ( + + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT DISTINCT + col0, + CAST( NULL AS SIGNED ) / + 51 AS col2 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4344
SELECT DISTINCT + col0, + CAST ( NULL AS INTEGER ) / + 51 AS col2 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT SUM( DISTINCT - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT SUM ( DISTINCT - + col2 ) FROM tab1
----
-223

query III rowsort
SELECT * FROM tab0 cor0 WHERE 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 6 + ( + - col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-2203
-94
-9795

query II rowsort
SELECT DISTINCT + + col1 - + ( - ( - col0 ) ) * - - col2 AS col1, - col1 * - + col2 FROM tab2 AS cor0
----
-1007
1173
-2483
3080
-4283
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT ALL - 59 DIV - + 28 AS col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - 59 / - + 28 AS col1 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT MAX( DISTINCT + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4350
SELECT MAX ( DISTINCT + col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT 96 * - ( + 79 ) AS col2 FROM tab0
----
-7584
-7584
-7584

query I rowsort
SELECT DISTINCT + 55 FROM tab0 WHERE NOT NULL IN ( col0, + col0 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( NOT ( - + 16 ) IS NOT NULL )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 10 - + 9 AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL + MIN( col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL + MIN ( col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - 50 AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL < - col2 )
----

query I rowsort
SELECT DISTINCT col1 * col2 + - 3 FROM tab2 AS cor0
----
1170
3077
3883

query I rowsort
SELECT col1 * 16 FROM tab1 AS cor0
----
224
752
80

query I rowsort
SELECT DISTINCT + col0 / - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 70 * col0 AND + col2
----

query II rowsort
SELECT DISTINCT - + 78, + col0 FROM tab1 AS cor0
----
-78
51
-78
85
-78
91

query III rowsort
SELECT ALL + 18, col2, + + col1 FROM tab1 AS cor0
----
9 values hashing to 0e0962572dd0d3b831851af680e46f77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + col2
----

query I rowsort
SELECT col1 * + 59 FROM tab1
----
2773
295
826

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT + ( - COUNT( * ) ), - 64 AS col2 FROM tab2
----
-3
-64

skipif mysql # not compatible
query II rowsort label-4365
SELECT + ( - COUNT ( * ) ), - 64 AS col2 FROM tab2
----
-3
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4366
SELECT COUNT( * ) * - ( - + SUM( + ( + CAST( NULL AS DECIMAL ) ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT COUNT ( * ) * - ( - + SUM ( + ( + CAST ( NULL AS REAL ) ) ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + COUNT( * ) * 97 * - ( + + COUNT( * ) ) FROM tab0
----
-873

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + COUNT ( * ) * 97 * - ( + + COUNT ( * ) ) FROM tab0
----
-873

query I rowsort
SELECT ALL 1 * - + 89 FROM tab2
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT MIN( + 78 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT MIN ( + 78 ) FROM tab1
----
78

query I rowsort
SELECT - ( - + ( + + col2 ) ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE col0 + + 78 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col0 col2 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4372
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col0 col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - - 0 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT ALL + col1, + 56 - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + MIN( - 88 ) AS col2 FROM tab2 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4375
SELECT + MIN ( - 88 ) AS col2 FROM tab2 cor0
----
-88

query II rowsort
SELECT + col1 AS col1, col2 * 83 * 91 * 98 AS col0 FROM tab0 AS cor0
----
1
73279206
21
7401940
81
34789118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4377
SELECT - 90 DIV + + COUNT( ALL + 55 ) AS col1 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4377
SELECT - 90 / + + COUNT ( ALL + 55 ) AS col1 FROM tab0 cor0
----
-30

query II rowsort
SELECT col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT + col0 + 5 FROM tab2 AS cor0
----
51
69
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + 4 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4380
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 4 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT 84 * + 16 * - 40 * + COUNT( * ) + 95 FROM tab0
----
-161185

skipif mysql # not compatible
query I rowsort label-4381
SELECT 84 * + 16 * - 40 * + COUNT ( * ) + 95 FROM tab0
----
-161185

query II rowsort
SELECT - 20 * - col1 AS col2, col1 AS col2 FROM tab2
----
1020
51
1340
67
1540
77

query I rowsort
SELECT col1 + + - 22 AS col1 FROM tab2 AS cor0 WHERE NOT - 14 + col2 + + + 70 * col2 > + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4384
SELECT - + ( - + col0 ) DIV 49 * - col1 * col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-4384
SELECT - + ( - + col0 ) / 49 * - col1 * col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT + CAST( NULL AS SIGNED ) * 76 * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT + CAST ( NULL AS INTEGER ) * 76 * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL SUM( col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4388
SELECT ALL SUM ( col2 ) col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL ( - ( - + col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + + + col2 col1 FROM tab2
----
2624
4547
5969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 46 AS col0, + col1 - + col2 col1 FROM tab1
----
-46
-21
-46
-54
-46
-82

query II rowsort
SELECT DISTINCT col0 * - col1 AS col0, col2 AS col0 FROM tab1
----
-425
59
-4277
68
-714
96

query II rowsort
SELECT ALL 69, - 58 AS col1 FROM tab0
----
69
-58
69
-58
69
-58

query I rowsort
SELECT DISTINCT + ( - 90 ) FROM tab2
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 0 IS NULL
----

query I rowsort
SELECT + col0 - - col2 * + - col2 AS col2 FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT DISTINCT col0 - - 66 AS col0 FROM tab2
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL - COUNT( * ) * - 44 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - COUNT ( * ) * - 44 FROM tab1 AS cor0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT - - COUNT( * ) DIV - 55 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT - - COUNT ( * ) / - 55 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + ( - col1 )
----
0

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL col1 + 76 + - - 38 * - - col1 + + - col2 * - col1 * - ( - col0 ) AS col2, col2 FROM tab2 AS cor0
----
200199
40
294139
58
56023
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 IN ( - 47 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT + 57 + - 45 * - CAST( - col2 AS SIGNED ) * - 81 * - 48 + + 23 DIV + + 76 * - col2 AS col2 FROM tab2 AS cor0
----
-10147623
-4024023
-6998343

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT + 57 + - 45 * - CAST ( - col2 AS INTEGER ) * - 81 * - 48 + + 23 / + + 76 * - col2 AS col2 FROM tab2 AS cor0
----
-10147623
-4024023
-6998343

query I rowsort
SELECT ALL col2 + + 26 + - col2 AS col1 FROM tab1
----
26
26
26

query II rowsort
SELECT - 59 AS col0, + 52 FROM tab1
----
-59
52
-59
52
-59
52

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0 WHERE NOT + col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL ( + 5 ) FROM tab0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + 92 * - - COUNT( * ) AS col2 FROM tab1 cor0
----
276

skipif mysql # not compatible
query I rowsort label-4408
SELECT + 92 * - - COUNT ( * ) AS col2 FROM tab1 cor0
----
276

query III rowsort
SELECT + col0, - col1 * + col0 * - + col1 AS col2, - + 39 AS col2 FROM tab2 AS cor0
----
9 values hashing to f32780f2efd7a907754763fb1e40e79d

query I rowsort
SELECT DISTINCT 50 + - col1 AS col0 FROM tab0 AS cor0
----
-31
29
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4411
SELECT + MAX( ALL col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * 10, - col0, + col0, - CAST( NULL AS DECIMAL ), - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT + MAX ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * 10, - col0, + col0, - CAST ( NULL AS REAL ), - 70 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4412
SELECT ALL + MAX( DISTINCT - col2 ) * + ( 69 ) + - 52 + - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4412
SELECT ALL + MAX ( DISTINCT - col2 ) * + ( 69 ) + - 52 + - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT DISTINCT - 92 * 70 * - COUNT( * ) DIV - + COUNT( * ) + + + 54 + 97 AS col0 FROM tab0 AS cor0
----
-6289

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - 92 * 70 * - COUNT ( * ) / - + COUNT ( * ) + + + 54 + 97 AS col0 FROM tab0 AS cor0
----
-6289

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT DISTINCT + col0 DIV + col2 + - col1 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + col0 / + col2 + - col1 FROM tab2 AS cor0
----
-49
-66
-76

query I rowsort
SELECT DISTINCT - + col0 + 11 + 98 FROM tab2 AS cor0
----
34
45
63

query II rowsort
SELECT + 99 + - col0 + + ( 67 ) AS col2, col1 / + - 32 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT + 44 / + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT + 44 / + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab2 WHERE NOT - 99 IS NULL
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT - col1 * - - CAST( + col2 AS SIGNED ) + + 4 col1 FROM tab0 cor0
----
-206
-3803
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4420
SELECT - col1 * - - CAST ( + col2 AS INTEGER ) + + 4 col1 FROM tab0 cor0
----
-206
-3803
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4421
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT IN ( - col2, CAST( NULL AS DECIMAL ), + - 68, - + 77, - col2, 35 + 28 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-4421
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT IN ( - col2, CAST ( NULL AS REAL ), + - 68, - + 77, - col2, 35 + 28 * + col1 )
----

query I rowsort
SELECT + 64 * - col2 * 14 + - col2 + - col1 FROM tab2 AS cor0
----
-20682
-35957
-52093

query I rowsort
SELECT 68 + - col1 AS col0 FROM tab1 AS cor0
----
21
54
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + ( - + MIN( DISTINCT + - 3 ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
3

skipif mysql # not compatible
query I rowsort label-4424
SELECT + ( - + MIN ( DISTINCT + - 3 ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
3

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( col0 ) + + col0 AND col0 * - col2 + - col1 / - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4427
SELECT DISTINCT + MIN( DISTINCT + - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + MIN ( DISTINCT + - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 + col0 * + col1 col0 FROM tab2 AS cor0
----
2248
4830
4927

query I rowsort
SELECT ALL ( - ( + 16 ) ) AS col2 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - 29 - - 84 FROM tab0 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT + ( + MAX( + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + ( + MAX ( + col0 ) ) FROM tab1
----
91

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + 9 * + 11
----

query I rowsort
SELECT DISTINCT 12 * + - col1 AS col1 FROM tab2
----
-612
-804
-924

query II rowsort
SELECT 72 * + + 37, 77 - - col2 + + col0 * - col1 * + 48 * 22 AS col1 FROM tab0
----
2664
-102256
2664
-1282916
2664
-1929225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT CAST( NULL AS SIGNED ) * - ( col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT CAST ( NULL AS INTEGER ) * - ( col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + COUNT( ALL + + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4436
SELECT + COUNT ( ALL + + 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab2 WHERE NOT - 23 > + 81
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4438
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + col2 - + col1 AS col2 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT DISTINCT + col2 DIV + ( - + col2 ) + + ( - 12 ) + - col1 AS col2 FROM tab1 cor0
----
-18
-27
-60

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT + col2 / + ( - + col2 ) + + ( - 12 ) + - col1 AS col2 FROM tab1 cor0
----
-18
-27
-60

query I rowsort
SELECT ALL + ( 74 ) * + 45 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > 39 * + col1 / + ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL - - SUM( - - col0 ) col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4442
SELECT ALL - - SUM ( - - col0 ) col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
0

query II rowsort
SELECT ALL ( col0 ) AS col2, - 72 AS col0 FROM tab1
----
51
-72
85
-72
91
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + + COUNT( * ) + - 70 AS col0 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-4445
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) + - 70 AS col0 FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT + SUM( 69 ) AS col2 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + SUM ( 69 ) AS col2 FROM tab1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL 87 * + - COUNT( * ) + 47 col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4447
SELECT ALL 87 * + - COUNT ( * ) + 47 col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-214

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT DISTINCT col0 + - col2 DIV + + 38 FROM tab0 AS cor0
----
14
87
95

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT col0 + - col2 / + + 38 FROM tab0 AS cor0
----
14
87
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4449
SELECT * FROM tab1 WHERE + - col0 <> + - ( + col0 ) * + + ( - 47 ) - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4449
SELECT * FROM tab1 WHERE + - col0 <> + - ( + col0 ) * + + ( - 47 ) - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT col1 DIV 11 DIV - + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4450
SELECT col1 / 11 / - + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 51 + - + col0 AS col1 FROM tab0 AS cor0
----
-138
-148
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 63 + - 21 IS NOT NULL
----

query II rowsort
SELECT ALL + col1, 36 AS col2 FROM tab0 AS cor0
----
1
36
21
36
81
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + 32 ) <> - 26
----
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + 32 ) <> - 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL COUNT( * ) + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4456
SELECT ALL COUNT ( * ) + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT - ( + COUNT( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - ( + COUNT ( + - col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, col2 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT col0 AS col1, - 81 AS col1 FROM tab0
----
15
-81
87
-81
97
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4460
SELECT DISTINCT - 8, + SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-4460
SELECT DISTINCT - 8, + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
-8
NULL

query I rowsort
SELECT ( col1 ) + - col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * + 22 * + + col1 col0 FROM tab1
----
794750
801108
8562554

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 65 * col0 - + 91 + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 AS col0, 32 FROM tab2
----
-51
32
-67
32
-77
32

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + + col2 - - - 2 + + col2 AS col0 FROM tab0 AS cor0
----
196
218
3852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * + - col2 col2 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4469
SELECT 23 DIV SUM( col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT 23 / SUM ( col0 ) FROM tab2
----
0

query I rowsort
SELECT 59 + 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 17 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col2 ) + col2 * - + col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT + CAST( NULL AS SIGNED ) * + col1 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( NULL AS INTEGER ) * + col1 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + 52 + 77 AS col0, - col2 AS col0 FROM tab2 AS cor0
----
129
-23
129
-40
129
-58

query I rowsort
SELECT ( - col0 ) * + + 93 AS col0 FROM tab0 cor0
----
-1395
-8091
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + COUNT( * ) * + - 8 + + 4 AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + COUNT ( * ) * + - 8 + + 4 AS col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ALL - col1 * 23 * + ( col0 ) FROM tab2 AS cor0
----
-113344
-115575
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT ALL + col1 DIV 78 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + col1 / 78 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab0
----
-66

query III rowsort
SELECT * FROM tab2 WHERE + + col2 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - col0 * + col1 + col1 * - - col1 + - 71 FROM tab0
----
-1457
-167
5275

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 89 + - 47 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4483
SELECT + 48 + - CAST( - - col2 AS SIGNED ) + + col2, 67 AS col1 FROM tab2
----
48
67
48
67
48
67

skipif mysql # not compatible
query II rowsort label-4483
SELECT + 48 + - CAST ( - - col2 AS INTEGER ) + + col2, 67 AS col1 FROM tab2
----
48
67
48
67
48
67

query I rowsort
SELECT - 52 * col2 + - col1 + + 62 + - + col1 * + col1 + + col0 FROM tab0 AS cor0
----
-4991
-833
-9009

query I rowsort
SELECT + 88 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL ( + ( - col0 ) ) - - col1 + col0 * - col0 AS col2, - 20 FROM tab2 AS cor0
----
-2111
-20
-4083
-20
-5633
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4488
SELECT * FROM tab0 WHERE NOT + col1 * - col1 - + col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4488
SELECT * FROM tab0 WHERE NOT + col1 * - col1 - + col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + ( col2 ) AS col2 FROM tab2 WHERE NOT ( col2 * 60 ) IN ( col2 * col0 )
----
23
40
58

query I rowsort
SELECT DISTINCT col2 * + col0 + + 31 * col2 AS col1 FROM tab1
----
6844
7872
8296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col0 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL + 89 * - col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - 1 + + 33 FROM tab0
----
32
32
32

query I rowsort
SELECT + ( ( - col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + col0 - - 94 FROM tab1
----
145
179
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col0 FROM tab0
----
108
96
98

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE 56 + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 85 * ( 0 ) + 37 AS col1 FROM tab2
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + COUNT( DISTINCT + 42 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4501
SELECT + COUNT ( DISTINCT + 42 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) * - 44 FROM tab2 WHERE NOT ( col0 + + 74 / - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col2 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 62 / col0 ) BETWEEN ( + 68 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT - 3 + COUNT( * ) FROM tab0 WHERE NOT NULL >= NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4505
SELECT - 3 + COUNT ( * ) FROM tab0 WHERE NOT NULL >= NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE + 58 < NULL
----

query I rowsort
SELECT col2 * - col1 + - 93 * + col2 FROM tab2 WHERE + col1 < + col2 * + 55
----
-3312
-6800
-9280

query I rowsort
SELECT - 14 FROM tab0 WHERE 11 * - col2 + ( col0 ) * 12 <= ( - 50 + 61 * 9 )
----
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4509
SELECT ALL col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + col0 * + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + col0 * + col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 86 ) >= - col0
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + col1 + col1 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE 54 NOT IN ( ( col1 ) + - 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + 59 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( 13 / col0 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( col1 ) ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL 6 * - col0 FROM tab2 cor0
----
-276
-384
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - COUNT( + col2 ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4518
SELECT - COUNT ( + col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 92 * - col0 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT DISTINCT + 75 + col1 FROM tab2 WHERE 85 * 4 IS NULL
----

query I rowsort
SELECT DISTINCT - 55 + + col0 * col1 FROM tab2
----
2291
4873
4970

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 4 = ( + col1 )
----

query I rowsort
SELECT DISTINCT 58 + col1 * col2 FROM tab0 AS cor0
----
157
268
3865

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - COUNT( * ) + - 97 AS col1 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - COUNT ( * ) + - 97 AS col1 FROM tab2 AS cor0
----
-100

query I rowsort
SELECT ALL col1 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + 7 * COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + 7 * COUNT ( * ) FROM tab1 AS cor0
----
21

query I rowsort
SELECT + + col1 + + 38 AS col1 FROM tab2 AS cor0
----
105
115
89

query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> ( + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT - 53 + COUNT( * ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 53 + COUNT ( * ) FROM tab0 AS cor0
----
-50

query I rowsort
SELECT - col1 * 93 * col2 + - 83 AS col2 FROM tab2
----
-109172
-286523
-361481

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + COUNT( * ) * 58 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + COUNT ( * ) * 58 FROM tab0
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT ALL 79 DIV + - col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL 79 / + - col2 FROM tab2
----
-1
-1
-3

query I rowsort
SELECT + 58 * col0 * - col1 FROM tab2
----
-136068
-285824
-291450

query I rowsort
SELECT DISTINCT + 40 - 36 AS col2 FROM tab0
----
4

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( ( + col0 ) )
----

query I rowsort
SELECT 86 * - + col1 AS col1 FROM tab2
----
-4386
-5762
-6622

query I rowsort
SELECT ALL + col0 - + - col1 AS col2 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT col1 DIV + + col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4538
SELECT col1 / + + col1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + col1 + ( col1 ) - col2 FROM tab2 AS cor0
----
114
76
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT + ( - COUNT( * ) ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - ( - + 5 ) * col0 - col0 AS col2 FROM tab0 AS cor0
----
348
388
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) * col2 col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4542
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL - + COUNT( * ) - - COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - + COUNT ( * ) - - COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 NOT BETWEEN ( NULL ) AND 56 * col1 )
----

query II rowsort
SELECT DISTINCT - 29 AS col0, + col0 AS col0 FROM tab1
----
-29
51
-29
85
-29
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4546
SELECT ALL ( + COUNT( * ) ) * 27 FROM tab1 AS cor0 WHERE ( + 77 ) <> - col0 + CAST( + 99 AS DECIMAL )
----
81

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL ( + COUNT ( * ) ) * 27 FROM tab1 AS cor0 WHERE ( + 77 ) <> - col0 + CAST ( + 99 AS REAL )
----
81

query I rowsort
SELECT - 55 * - 22 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) = ( NULL )
----

query I rowsort
SELECT col1 * - - col0 * col1 + col2 FROM tab2 AS cor0
----
119669
336733
379496

query I rowsort
SELECT - col2 * + ( - col0 ) + col2 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # DIV for integer division: 
query I rowsort label-4550
SELECT ALL - + col2 DIV - 64 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - + col2 / - 64 AS col0 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - col2 ) NOT IN ( 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT - col2 DIV - + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - col2 / - + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + + 5 BETWEEN - col1 / col0 AND col2
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 43 * - col0 FROM tab1 cor0
----
-2193
-3655
-3913

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT + MAX( DISTINCT + col0 ) * COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4556
SELECT DISTINCT + MAX ( DISTINCT + col0 ) * COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT COUNT( ALL - 10 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT COUNT ( ALL - 10 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 + - + col0 ) BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT - 29 DIV + + 59 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT - 29 / + + 59 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - - col0 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 <> - 56 / + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT MAX( - - 72 ) col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT MAX ( - - 72 ) col2 FROM tab0 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4563
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( + col0 AS SIGNED ) ) NOT IN ( + 58 * col2 )
----

skipif mysql # not compatible
query III rowsort label-4563
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( + col0 AS INTEGER ) ) NOT IN ( + 58 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0 WHERE NOT 46 * + col1 >= - col1
----

skipif mysql # not compatible
query I rowsort label-4564
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0 WHERE NOT 46 * + col1 >= - col1
----

query I rowsort
SELECT + - 39 + + col2 FROM tab0 AS cor0
----
-29
60
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4566
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) * - col1 + - ( col0 ) ) IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-4566
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * - col1 + - ( col0 ) ) IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT + - ( - - col2 ) + + - col0 + + col0 * + ( - col2 - 36 * CAST( + ( + col2 ) AS SIGNED ) ) FROM tab1 cor0
----
-181299
-185699
-229115

skipif mysql # not compatible
query I rowsort label-4567
SELECT + - ( - - col2 ) + + - col0 + + col0 * + ( - col2 - 36 * CAST ( + ( + col2 ) AS INTEGER ) ) FROM tab1 cor0
----
-181299
-185699
-229115

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL MIN( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4568
SELECT ALL MIN ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 99 + + col1 + col0 FROM tab2 AS cor0
----
196
240
241

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4571
SELECT COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - col1 + + col1 * - col2 * col0 FROM tab1 AS cor0
----
-25080
-290883
-68558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT - 78 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = + - col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4573
SELECT - 78 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = + - col1 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 77 AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 5 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 63 IS NOT NULL AND 21 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 56 - - col1 col2 FROM tab0 AS cor0
----
137
57
77

query I rowsort
SELECT + 40 * + col2 + - col1 - + col2 * + 41 AS col1 FROM tab0 WHERE - 70 IS NOT NULL
----
-100
-128
-31

query I rowsort
SELECT col0 + ( - ( - col0 ) ) + - 11 * - col1 * - col1 FROM tab0 WHERE NULL IS NULL
----
-4677
-72141
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24 * + col2 * - col0 + - + col0, col0 col1 FROM tab0
----
-16935
15
-20967
87
-230569
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col0 * 42 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
107520
182700
44436

query I rowsort
SELECT DISTINCT 8 - + col2 FROM tab0
----
-2
-39
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL - ( + CAST( + col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - ( + CAST ( + col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - 74 + + col1 - + col0 FROM tab0
----
-140
-170
-8

query I rowsort
SELECT DISTINCT + 85 FROM tab1 WHERE NOT - - 73 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( - CAST( + 56 AS SIGNED ) ) NOT BETWEEN + 68 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( - CAST ( + 56 AS INTEGER ) ) NOT BETWEEN + 68 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT - MAX( DISTINCT + 82 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-4587
SELECT - MAX ( DISTINCT + 82 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + 85 - 34 + + col0 + - col0 * - - col2 + CAST( col1 AS SIGNED ) / ( ( + col0 ) ) IN ( + 82 / col0 )
----

skipif mysql # not compatible
query I rowsort label-4588
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + 85 - 34 + + col0 + - col0 * - - col2 + CAST ( col1 AS INTEGER ) / ( ( + col0 ) ) IN ( + 82 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + MIN( + 37 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
37

skipif mysql # not compatible
query I rowsort label-4589
SELECT + MIN ( + 37 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN - col2 * + - col0 + - 69 * col0 AND + 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( + col0 ) ) * - col2 - - col0 col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - + col1 IS NULL )
----

query I rowsort
SELECT col2 * - col0 * - col2 AS col2 FROM tab2 cor0
----
102400
24334
252300

query II rowsort
SELECT 7 * + - 6 AS col1, - 6 FROM tab1 AS cor0
----
-42
-6
-42
-6
-42
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT DISTINCT MIN( + + 11 ) DIV 55 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT MIN ( + + 11 ) / 55 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT col1 + - col2 DIV + + col0 + 65 * - - col0 col1 FROM tab2
----
3041
4237
4942

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT col1 + - col2 / + + col0 + 65 * - - col0 col1 FROM tab2
----
3041
4237
4942

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT col0 + col0 DIV 80 FROM tab0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-4597
SELECT col0 + col0 / 80 FROM tab0
----
15
88
98

query I rowsort
SELECT + col1 + - 96 AS col1 FROM tab2
----
-19
-29
-45

query I rowsort
SELECT ALL + 89 + 64 FROM tab0
----
153
153
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4600
SELECT COUNT( * ) AS col0, 68 AS col2 FROM tab0 AS cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-4600
SELECT COUNT ( * ) AS col0, 68 AS col2 FROM tab0 AS cor0
----
3
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - 16 ) > - col2 + + + ( + - col1 )
----

query II rowsort
SELECT DISTINCT + + col2 + ( + + 3 ), col1 FROM tab0 cor0
----
102
1
13
21
50
81

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 65 = col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( ( col0 + + - col2 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT COUNT( * ) + - + ( SUM( + col1 ) ) col1 FROM tab1
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4605
SELECT COUNT ( * ) + - + ( SUM ( + col1 ) ) col1 FROM tab1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT 51 + - MAX( ALL + CAST( - - col0 AS SIGNED ) ) + - + ( + 2 ) AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4606
SELECT 51 + - MAX ( ALL + CAST ( - - col0 AS INTEGER ) ) + - + ( + 2 ) AS col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL - 41 + 5 FROM tab0 cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 8 ) col1 FROM tab0 AS cor0 WHERE col1 + + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / 65 * + col1 * + 14 BETWEEN - - col1 + + 56 AND ( + + col1 + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL - COUNT( DISTINCT - 3 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL - COUNT ( DISTINCT - 3 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT - 12 + COUNT( * ) DIV COUNT( * ) + - 52 AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - 12 + COUNT ( * ) / COUNT ( * ) + - 52 AS col1 FROM tab2 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 95 ) * - col0 + + col2 - + col2 * - col2 * + col0, 20 * 33 col0 FROM tab0 AS cor0
----
31757
660
445
660
941581
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + + col2 ) - - col0 * - col0 + + + col1 col1 FROM tab1 AS cor0
----
-2491
-7161
-8166

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT - - COUNT( - col0 ) + + 19 + SUM( ALL col1 ) FROM tab2 AS cor0
----
217

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - - COUNT ( - col0 ) + + 19 + SUM ( ALL col1 ) FROM tab2 AS cor0
----
217

query I rowsort
SELECT - - 6 AS col0 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL + COUNT( * ) - 76 col1 FROM tab2
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4616
SELECT ALL + COUNT ( * ) - 76 col1 FROM tab2
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - col1 + + - 90 col2 FROM tab1
----
51
-104
85
-95
91
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4618
SELECT - MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT DISTINCT + col0 - 21 FROM tab1
----
30
64
70

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + + 2
----

query I rowsort
SELECT ALL + 62 - col2 FROM tab0
----
-37
15
52

query I rowsort
SELECT DISTINCT + 56 * + 48 AS col2 FROM tab2
----
2688

query I rowsort
SELECT ALL + col0 * - + 56 FROM tab2 WHERE NOT ( + 84 ) IS NULL
----
-2576
-3584
-4200

query I rowsort
SELECT ALL + 32 * - + col2 AS col0 FROM tab1 AS cor0
----
-1888
-2176
-3072

query I rowsort
SELECT ALL + + ( - + 73 ) AS col1 FROM tab1 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL SUM( - 15 ) * - 44 + 80 AS col1 FROM tab2
----
2060

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL SUM ( - 15 ) * - 44 + 80 AS col1 FROM tab2
----
2060

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT ALL + 7 * 67 DIV - - col2 AS col2 FROM tab2
----
11
20
8

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL + 7 * 67 / - - col2 AS col2 FROM tab2
----
11
20
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT col0 DIV + - 39 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT col0 / + - 39 FROM tab1
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL 13 * MAX( - ( + 44 ) ) FROM tab2 AS cor0
----
-572

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL 13 * MAX ( - ( + 44 ) ) FROM tab2 AS cor0
----
-572

query I rowsort
SELECT ALL + 68 * - 97 + - + col1 FROM tab0 cor0
----
-6597
-6617
-6677

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT COUNT( ALL - col0 ) * + + COUNT( * ) AS col2 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4631
SELECT COUNT ( ALL - col0 ) * + + COUNT ( * ) AS col2 FROM tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT - col0 DIV - - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT - col0 / - - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query II rowsort
SELECT - col0 AS col2, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - + MIN( DISTINCT - - 46 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4634
SELECT - + MIN ( DISTINCT - - 46 ) AS col0 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT ALL + + col0 AS col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - SUM( + + 48 ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4636
SELECT - SUM ( + + 48 ) FROM tab0
----
-144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + + col1, + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 84 * - + 88 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4639
SELECT * FROM tab0 WHERE col1 NOT IN ( col2, - 30 - - CAST( NULL AS SIGNED ) - + - col2 * + 67 )
----

skipif mysql # not compatible
query III rowsort label-4639
SELECT * FROM tab0 WHERE col1 NOT IN ( col2, - 30 - - CAST ( NULL AS INTEGER ) - + - col2 * + 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL - MIN( col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - MIN ( col1 ) AS col0 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 5 + - col0 + - col0 col1 FROM tab0
----
-10
-82
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - COUNT( * ) * 38 col0 FROM tab1, tab2 AS cor0
----
-342

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4642
SELECT - COUNT ( * ) * 38 col0 FROM tab1, tab2 AS cor0
----
-342

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + - 36 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - + col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + - SUM( ALL - 58 ) + - COUNT( * ) + - COUNT( * ) + COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + - SUM ( ALL - 58 ) + - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT - 4 * - - 14 + + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4646
SELECT - 4 * - - 14 + + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL 96 + COUNT( * ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL 96 + COUNT ( * ) AS col1 FROM tab0
----
99

query I rowsort
SELECT col1 + 52 + 73 AS col1 FROM tab1
----
130
139
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL MIN( ALL 66 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL MIN ( ALL 66 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT + + col0 + - + col0 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 < + 19
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL ( CAST( NULL AS SIGNED ) ) * col2 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * col2 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 - + col0 - ( + - col0 ) * - + 64 * col0, - col1 AS col2 FROM tab1 AS cor0
----
-166464
-14
-462400
-5
-529984
-47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <> - 40
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 BETWEEN NULL AND - + col2
----

query I rowsort
SELECT + + col2 + + col2 FROM tab0 WHERE NOT col2 * + + col0 BETWEEN ( + 73 ) + + col2 + - col0 AND + + 17 * - ( + col0 ) * + + 96
----
198
20
94

query I rowsort
SELECT 40 * col0 * + col1 FROM tab0
----
3880
48600
73080

query I rowsort
SELECT DISTINCT 14 * - col1 * - col0 FROM tab1
----
5950
59878
9996

query I rowsort
SELECT 48 * - + 98 AS col2 FROM tab1
----
-4704
-4704
-4704

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - col0 * - 90 + - + col1 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 8 col0 FROM tab1
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT + 46 + - + col0 FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 AND - CAST( - 23 AS SIGNED )
----
-39
-5

skipif mysql # not compatible
query I rowsort label-4662
SELECT + 46 + - + col0 FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 AND - CAST ( - 23 AS INTEGER )
----
-39
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + 64 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab0 cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 / - - 87 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query I rowsort
SELECT ALL 14 * + + 36 FROM tab1
----
504
504
504

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * - col2 + + - 33 IS NULL
----

query I rowsort
SELECT ALL + - 64 + - col2 FROM tab2 cor0
----
-104
-122
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT - CAST( NULL AS SIGNED ) * - 53 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT - CAST ( NULL AS INTEGER ) * - 53 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4671
SELECT * FROM tab0 cor0 WHERE NOT ( + ( CAST( - - col1 AS SIGNED ) ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4671
SELECT * FROM tab0 cor0 WHERE NOT ( + ( CAST ( - - col1 AS INTEGER ) ) ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col1 / - + 53 * - - 51 + + - col0
----

query I rowsort
SELECT + col0 + 98 AS col2 FROM tab1 AS cor0
----
149
183
189

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 72 + - col2 FROM tab1
----
-131
-140
-168

query II rowsort
SELECT DISTINCT + col2 * col2 AS col1, - col1 * - col2 AS col0 FROM tab1
----
3481
295
4624
3196
9216
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - 68 * - ( - - COUNT( * ) ) FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - 68 * - ( - - COUNT ( * ) ) FROM tab2
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT ALL + 62 DIV + + col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + 62 / + + col0 AS col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + col2 col1 FROM tab1
----
107
135
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( 95 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4681
SELECT + ( CAST( NULL AS DECIMAL ) ), COUNT( * ) col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4681
SELECT + ( CAST ( NULL AS REAL ) ), COUNT ( * ) col0 FROM tab0
----
NULL
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4682
SELECT col1 AS col1, - 33 DIV + + col1 + + - 24 * col0 * 41 AS col1 FROM tab1
----
14
-50186
47
-89544
5
-83646

skipif mysql # not compatible
query II rowsort label-4682
SELECT col1 AS col1, - 33 / + + col1 + + - 24 * col0 * 41 AS col1 FROM tab1
----
14
-50186
47
-89544
5
-83646

onlyif mysql # DIV for integer division: 
query II rowsort label-4683
SELECT + col1 col2, col0 DIV col0 AS col0 FROM tab1
----
14
1
47
1
5
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4683
SELECT + col1 col2, col0 / col0 AS col0 FROM tab1
----
14
1
47
1
5
1

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 3 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 94 ) col0 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL - col0 * - 22 + + 33 + + col0 * col1 FROM tab1 AS cor0
----
1869
2328
6312

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT - COUNT( ALL + 68 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4687
SELECT - COUNT ( ALL + 68 ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT 18 DIV + - col2 * + ( + - 36 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 18 / + - col2 * + ( + - 36 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 - - 84 AS col1 FROM tab0
----
3
63
83

query I rowsort
SELECT + 86 + col2 FROM tab1
----
145
154
182

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4692
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col0 * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4692
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col0 * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 24 + + - 46 AS col0 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT ALL + col1 DIV - col1 + + col0 col2 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4694
SELECT ALL + col1 / - col1 + + col0 col2 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4695
SELECT - MIN( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) * + col0 FROM tab2 AS cor0 WHERE + ( + - 38 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) * + col0 FROM tab2 AS cor0 WHERE + ( + - 38 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT COUNT( ALL 37 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4697
SELECT COUNT ( ALL 37 ) col1 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, 85 col0 FROM tab0 WHERE - 2 + + 28 * 69 IS NOT NULL
----
-10
85
-47
85
-99
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT ( - + COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4699
SELECT DISTINCT ( - + COUNT ( * ) ) col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT DISTINCT + CAST( + MIN( ( + 36 ) ) AS SIGNED ) AS col0 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + CAST ( + MIN ( ( + 36 ) ) AS INTEGER ) AS col0 FROM tab1
----
36

query I rowsort
SELECT col1 * + + col1 FROM tab1 WHERE NOT 2 + col2 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT DISTINCT + col2 FROM tab2 WHERE NULL NOT IN ( - ( + - CAST( - + col1 AS SIGNED ) ) - + + 39, col1 + + col1 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + col2 FROM tab2 WHERE NULL NOT IN ( - ( + - CAST ( - + col1 AS INTEGER ) ) - + + 39, col1 + + col1 * + col1 )
----

query II rowsort
SELECT DISTINCT - 1 AS col1, 21 FROM tab1 AS cor0
----
-1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT + ( 45 ) * + + CAST( NULL AS SIGNED ) - - col0 + col0 / CAST( NULL AS SIGNED ) NOT BETWEEN - col2 + - col0 / + col2 - - - 70 AND + col2 / - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4704
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT + ( 45 ) * + + CAST ( NULL AS INTEGER ) - - col0 + col0 / CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 + - col0 / + col2 - - - 70 AND + col2 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL - MAX( + + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL - MAX ( + + col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + 51 * col0 + - 99 - col0 / - + col2 + + + col0 * col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 12 * col0
----

query I rowsort
SELECT - 24 + - col2 FROM tab1
----
-120
-83
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4709
SELECT ALL - CAST( col0 AS SIGNED ) AS col0, col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

skipif mysql # not compatible
query II rowsort label-4709
SELECT ALL - CAST ( col0 AS INTEGER ) AS col0, col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - + col2 * - + 7
----

query I rowsort
SELECT 38 * - + col1 FROM tab2 cor0
----
-1938
-2546
-2926

query I rowsort
SELECT ALL 36 * col2 * ( + + col2 ) + col2 AS col0 FROM tab1 AS cor0
----
125375
166532
331872

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 / 31 = NULL
----

query I rowsort
SELECT DISTINCT ( + 69 ) + + col0 FROM tab1 AS cor0
----
120
154
160

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * col2 <> + - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 + 29, - col1 AS col1 FROM tab0 AS cor0
----
-18
-81
-70
-1
19
-21

query I rowsort
SELECT - - ( - - ( - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT + - COUNT( * ) * - COUNT( * ) AS col1, 88 FROM tab1 AS cor0
----
9
88

skipif mysql # not compatible
query II rowsort label-4718
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col1, 88 FROM tab1 AS cor0
----
9
88

query II rowsort
SELECT col2 * col1, + col0 AS col1 FROM tab0 AS cor0
----
210
87
3807
15
99
97

query I rowsort
SELECT DISTINCT + + col1 * - 60 + + 72 + + col1 + - col0 * 3 + + 27 AS col1 FROM tab2 AS cor0
----
-3048
-4079
-4636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT + ( - 11 ) * + - ( + ( - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT + ( - 11 ) * + - ( + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4722
SELECT DISTINCT - 2 DIV - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - 2 / - + COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4723
SELECT DISTINCT + COUNT( * ) AS col2, 5 * MAX( + CAST( - 68 AS SIGNED ) ) FROM tab1
----
3
-340

skipif mysql # not compatible
query II rowsort label-4723
SELECT DISTINCT + COUNT ( * ) AS col2, 5 * MAX ( + CAST ( - 68 AS INTEGER ) ) FROM tab1
----
3
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL MAX( ( col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL MAX ( ( col0 ) ) FROM tab2
----
75

query II rowsort
SELECT ALL + 28 + 58 + + 62 * + + ( - 58 ), col2 AS col1 FROM tab0
----
-3510
10
-3510
47
-3510
99

query I rowsort
SELECT ALL col0 + 30 FROM tab0
----
117
127
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < 5 + - + col2 + - 11 + - 77
----

query I rowsort
SELECT ALL + - 55 - 68 AS col2 FROM tab2 AS cor0
----
-123
-123
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT COUNT( - + 53 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4729
SELECT COUNT ( - + 53 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT ALL col0 - - col2 DIV + ( - - 79 ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL col0 - - col2 / + ( - - 79 ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT 15 - - ( - ( - - 23 ) ) * COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT 15 - - ( - ( - - 23 ) ) * COUNT ( * ) FROM tab1
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 29 col1, 24 AS col1 FROM tab1
----
29
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT - MIN( DISTINCT - - 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT - MIN ( DISTINCT - - 61 ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT DISTINCT - - col2 * + 19 FROM tab2 AS cor0
----
1102
437
760

query II rowsort
SELECT + col1 AS col1, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 6 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4738
SELECT ALL + - COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4738
SELECT ALL + - COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT + + 78 + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
129
145
155

query I rowsort
SELECT DISTINCT - - 65 FROM tab2 WHERE - col1 >= ( + - 60 )
----
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 73 <> NULL
----

query I rowsort
SELECT col2 * + ( - - 88 ) FROM tab2
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL + SUM( DISTINCT col1 ) * SUM( + 47 ) FROM tab0
----
14523

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + SUM ( DISTINCT col1 ) * SUM ( + 47 ) FROM tab0
----
14523

query III rowsort
SELECT ( - + col2 ), col2, - 1 + col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to 6cfe255469b5367f9d9944c1b1694af6

query II rowsort
SELECT ALL + - ( - col1 ) AS col0, col1 FROM tab2 AS cor0 WHERE NOT - ( + + col0 ) IS NULL
----
51
51
67
67
77
77

query II rowsort
SELECT DISTINCT 68, col0 AS col1 FROM tab2
----
68
46
68
64
68
75

query II rowsort
SELECT - 13 AS col0, col0 + - col0 AS col2 FROM tab2
----
-13
0
-13
0
-13
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col1 < + + 79
----
3

skipif mysql # not compatible
query I rowsort label-4749
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 < + + 79
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT 73 * + SUM( ALL + ( 24 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT 73 * + SUM ( ALL + ( 24 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - 37, col0 FROM tab2 AS cor0
----
-37
46
-37
64
-37
75

query I rowsort
SELECT DISTINCT + col0 + col1 * 86 AS col1 FROM tab1 cor0
----
1255
4133
515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 66 col1 FROM tab0 AS cor0
----
-19
-56
33

query II rowsort
SELECT + col1 * + 85 * - 1 + - col0, col0 FROM tab1
----
-1241
51
-4086
91
-510
85

query I rowsort
SELECT 39 * - - 81 + + col0 AS col2 FROM tab0
----
3174
3246
3256

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4756
SELECT ALL * FROM tab0 WHERE NOT col0 - + 9 < - + col0 / + - 73 + + col1 + - - col1 / CAST( + - col0 AS SIGNED )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-4756
SELECT ALL * FROM tab0 WHERE NOT col0 - + 9 < - + col0 / + - 73 + + col1 + - - col1 / CAST ( + - col0 AS INTEGER )
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT CAST( NULL AS SIGNED ) * - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT CAST ( NULL AS INTEGER ) * - + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( - col0 * - col1 IS NOT NULL )
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 + 61 FROM tab1
----
-35
-7
2

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 25 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT DISTINCT COUNT( * ) DIV - 35 - - COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4762
SELECT DISTINCT COUNT ( * ) / - 35 - - COUNT ( * ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL + + CAST( NULL AS SIGNED ) * + COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4763
SELECT ALL + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 * + - col0 + - col2 col2 FROM tab2 AS cor0
----
-107939
-315432
-376933

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT ALL - 28 * 71 FROM tab1 cor0
----
-1988
-1988
-1988

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( ( + - col2 ) * col0, col0 )
----

query I rowsort
SELECT DISTINCT + + col0 * 13 AS col1 FROM tab1 AS cor0
----
1105
1183
663

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT col1 DIV + - col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT col1 / + - col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT - 1 + 7 * COUNT( * ) * COUNT( * ) * + 83 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT - 1 + 7 * COUNT ( * ) * COUNT ( * ) * + 83 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
-1

query I rowsort
SELECT + 59 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT + COUNT( ALL + + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + COUNT ( ALL + + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + MAX( DISTINCT + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4773
SELECT + MAX ( DISTINCT + col2 ) AS col2 FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE NOT 17 > NULL
----

query II rowsort
SELECT ALL 88 AS col0, col0 FROM tab0 cor0
----
88
15
88
87
88
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 34 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT DISTINCT + - 64 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-64
3

skipif mysql # not compatible
query II rowsort label-4778
SELECT DISTINCT + - 64 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-64
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT 31 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4779
SELECT 31 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT ALL - COUNT( * ) AS col1, 37 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
37

skipif mysql # not compatible
query II rowsort label-4780
SELECT ALL - COUNT ( * ) AS col1, 37 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
37

query I rowsort
SELECT DISTINCT + - col2 + - + col2 - - - 62 FROM tab2 AS cor0
----
-108
-142
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-4782
SELECT ALL - COUNT( * ) AS col0, 91 FROM tab2
----
-3
91

skipif mysql # not compatible
query II rowsort label-4782
SELECT ALL - COUNT ( * ) AS col0, 91 FROM tab2
----
-3
91

query I rowsort
SELECT - + col0 * + col1 * - + col2 FROM tab0 WHERE NULL > + 96 + col2
----

query III rowsort
SELECT * FROM tab2 WHERE - 49 * + col1 * + - col0 BETWEEN + col2 AND - - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT - COUNT( * ) + - - 71 AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - COUNT ( * ) + - - 71 AS col1 FROM tab2
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT 90 + + COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4787
SELECT 90 + + COUNT ( * ) FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4788
SELECT + - col1 / col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT + - col1 / col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
2295
4851
4958

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL <> - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col2 col0 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - + COUNT( + col0 ) * - - SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - + COUNT ( + col0 ) * - - SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
597

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - - SUM( ALL - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4794
SELECT - - SUM ( ALL - + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT + col1 * - 88 - - col0 < + + col1 * + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + SUM( - col0 ) * - SUM( DISTINCT - ( - col1 ) ) + + ( - - 41 ) * - 28 FROM tab1
----
13834

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + SUM ( - col0 ) * - SUM ( DISTINCT - ( - col1 ) ) + + ( - - 41 ) * - 28 FROM tab1
----
13834

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - COUNT( * ) * + COUNT( * ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT - COUNT ( * ) * + COUNT ( * ) col2 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT DISTINCT col2 DIV + 30 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT col2 / + 30 AS col2 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL 28 * - COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL 28 * - COUNT ( * ) FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT ALL ( - col1 ) DIV - col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL ( - col1 ) / - col0 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT - COUNT( * ) * - MAX( - col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - COUNT ( * ) * - MAX ( - col2 ) FROM tab2
----
-69

query I rowsort
SELECT DISTINCT + col0 * 37 * - col1 * - col0 + - - 10 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
347143
5881013
673855

query II rowsort
SELECT - + col2 * - ( - + 81 ) AS col1, col1 FROM tab1 AS cor0
----
-4779
5
-5508
47
-7776
14

query I rowsort
SELECT DISTINCT - - 21 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
21

query II rowsort
SELECT col2 AS col0, - ( ( - col2 ) ) * + 74 FROM tab2
----
23
1702
40
2960
58
4292

query I rowsort
SELECT - col0 * + + col2 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4807
SELECT CAST( + - col0 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4807
SELECT CAST ( + - col0 AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + - 74 FROM tab1 AS cor0
----
-23
11
17

query I rowsort
SELECT ALL - + col0 * + + 78 + col0 AS col1 FROM tab0 AS cor0
----
-1155
-6699
-7469

query I rowsort
SELECT DISTINCT - col0 + - - 90 * - col0 AS col0 FROM tab0 cor0
----
-1365
-7917
-8827

query I rowsort
SELECT ALL + - 75 + + + col0 FROM tab2 AS cor0
----
-11
-29
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4812
SELECT ALL + CAST( NULL AS DECIMAL ) / + col1 * + + col2 + + 47 * + + 77 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-4812
SELECT ALL + CAST ( NULL AS REAL ) / + col1 * + + col2 + + 47 * + + 77 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 76 = + col1 / + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col2 * col0 IS NULL
----

query II rowsort
SELECT + 15 * - - 59, + col1 + - 77 - - col0 * + - 53 - - 56 + - 52 + col0 AS col1 FROM tab1 AS cor0
----
885
-2711
885
-4488
885
-4758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4816
SELECT ALL - MIN( DISTINCT + col2 ) AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE CAST( - CAST( + 87 AS SIGNED ) AS SIGNED ) + + 72 BETWEEN + col0 AND + ( - - 80 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4816
SELECT ALL - MIN ( DISTINCT + col2 ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE CAST ( - CAST ( + 87 AS INTEGER ) AS INTEGER ) + + 72 BETWEEN + col0 AND + ( - - 80 )
----
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE 25 BETWEEN + col1 AND col0
----

query I rowsort
SELECT - + 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT MIN( ALL 72 ) FROM tab0, tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4819
SELECT MIN ( ALL 72 ) FROM tab0, tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT - - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4820
SELECT - - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT ALL 57, + SUM( ALL + - 67 ) + + 17 col0 FROM tab0 AS cor0
----
57
-184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4821
SELECT ALL 57, + SUM ( ALL + - 67 ) + + 17 col0 FROM tab0 AS cor0
----
57
-184

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT - col0 DIV col1 DIV col0 + + + col1 * col2 + + 54 FROM tab2 AS cor0
----
1227
3134
3940

skipif mysql # not compatible
query I rowsort label-4824
SELECT - col0 / col1 / col0 + + + col1 * col2 + + 54 FROM tab2 AS cor0
----
1227
3134
3940

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4825
SELECT + col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4825
SELECT + col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT - + col0 DIV - - col1 + + + col0 FROM tab1 AS cor0
----
48
68
90

skipif mysql # not compatible
query I rowsort label-4826
SELECT - + col0 / - - col1 + + + col0 FROM tab1 AS cor0
----
48
68
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT DISTINCT + 51 AS col2, + COUNT( * ) col0 FROM tab1 AS cor0
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4827
SELECT DISTINCT + 51 AS col2, + COUNT ( * ) col0 FROM tab1 AS cor0
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 35 * - SUM( ALL col0 ) AS col0 FROM tab0
----
-6965

skipif mysql # not compatible
query I rowsort label-4828
SELECT 35 * - SUM ( ALL col0 ) AS col0 FROM tab0
----
-6965

query I rowsort
SELECT ALL + col2 * - 17 * col2 AS col1 FROM tab2
----
-27200
-57188
-8993

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + ( - - col1 ) NOT BETWEEN NULL AND - + col1 * - - ( + col0 ) * - col1
----

query I rowsort
SELECT - col0 * + 82 FROM tab0
----
-1230
-7134
-7954

query I rowsort
SELECT + 71 * col2 AS col2 FROM tab0
----
3337
7029
710

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4833
SELECT * FROM tab1 WHERE NOT + col0 + - 15 BETWEEN + ( + CAST( NULL AS SIGNED ) ) + col1 * 65 AND + ( - 67 ) * - ( + + col0 )
----

skipif mysql # not compatible
query III rowsort label-4833
SELECT * FROM tab1 WHERE NOT + col0 + - 15 BETWEEN + ( + CAST ( NULL AS INTEGER ) ) + col1 * 65 AND + ( - 67 ) * - ( + + col0 )
----

query I rowsort
SELECT ALL 91 * + ( + col2 ) FROM tab1
----
5369
6188
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT + MIN( DISTINCT 63 ) * + 33 AS col0 FROM tab2
----
2079

skipif mysql # not compatible
query I rowsort label-4835
SELECT + MIN ( DISTINCT 63 ) * + 33 AS col0 FROM tab2
----
2079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT - col1 * + + 40 * + CAST( NULL AS SIGNED ) * col0 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-4836
SELECT - col1 * + + 40 * + CAST ( NULL AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT + + ( + + SUM( DISTINCT + col0 ) ), 57 AS col2 FROM tab1 AS cor0
----
227
57

skipif mysql # not compatible
query II rowsort label-4837
SELECT + + ( + + SUM ( DISTINCT + col0 ) ), 57 AS col2 FROM tab1 AS cor0
----
227
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - MAX( DISTINCT - 98 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4838
SELECT - MAX ( DISTINCT - 98 ) FROM tab2 AS cor0
----
98

query I rowsort
SELECT ALL + col0 + + + col0 + col0 FROM tab2 AS cor0
----
138
192
225

query I rowsort
SELECT ALL - 24 * + - col0 + col0 * 22 + + + col0 - 80 FROM tab1 AS cor0
----
2317
3915
4197

query II rowsort
SELECT DISTINCT + - col2 - - - col2 * + 91, - col0 AS col0 FROM tab0 AS cor0
----
-4324
-15
-9108
-97
-920
-87

query I rowsort
SELECT col2 - - + 13 FROM tab0 AS cor0
----
112
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT ALL CAST( + - 43 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-102
-111
-139

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL CAST ( + - 43 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-102
-111
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL - COUNT( DISTINCT - col2 ) - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - COUNT ( DISTINCT - col2 ) - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT + 12 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + COUNT( * ) * 33 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4846
SELECT + COUNT ( * ) * 33 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4847
SELECT DISTINCT + COUNT( * ) AS col1, 2 * - + 90 + + - COUNT( * ) * - - SUM( ALL col1 ) FROM tab0 AS cor0
----
3
-489

skipif mysql # not compatible
query II rowsort label-4847
SELECT DISTINCT + COUNT ( * ) AS col1, 2 * - + 90 + + - COUNT ( * ) * - - SUM ( ALL col1 ) FROM tab0 AS cor0
----
3
-489

query II rowsort
SELECT DISTINCT col0 AS col2, + 32 AS col1 FROM tab2 AS cor0
----
46
32
64
32
75
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT SUM( DISTINCT - - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT SUM ( DISTINCT - - col2 ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT SUM( ALL + col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4852
SELECT DISTINCT SUM ( ALL + col2 ) col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND + + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 14 * + col0 - + 13 + 4 + + + 21, - col1 AS col1 FROM tab1 AS cor0
----
-1178
-5
-1262
-47
-702
-14

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col0 + - 40 AS col0 FROM tab0
----
-25
47
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 37 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 34 IS NOT NULL
----

query I rowsort
SELECT - ( - col0 ) + - 99 * - col1 FROM tab0
----
196
2166
8034

query I rowsort
SELECT 12 + col2 FROM tab2
----
35
52
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT col2 + - - CAST( + - 24 AS SIGNED ) AS col0 FROM tab1
----
35
44
72

skipif mysql # not compatible
query I rowsort label-4861
SELECT col2 + - - CAST ( + - 24 AS INTEGER ) AS col0 FROM tab1
----
35
44
72

query I rowsort
SELECT DISTINCT 73 + - + col2 * + col2 FROM tab2 AS cor0
----
-1527
-3291
-456

query I rowsort
SELECT + 47 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND - - 91 * - col2 * - - col1
----

query I rowsort
SELECT ALL - col1 + + - 90 AS col0 FROM tab0 AS cor0
----
-111
-171
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT COUNT( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4865
SELECT COUNT ( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT + + SUM( DISTINCT 85 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT + + SUM ( DISTINCT 85 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85

query II rowsort
SELECT ALL ( + col0 ), 18 FROM tab1
----
51
18
85
18
91
18

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL = 1
----

query I rowsort
SELECT DISTINCT 53 + + ( - 11 ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT ALL - 54 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT DISTINCT + col1 DIV + col0 + - + 45 col2 FROM tab2 AS cor0
----
-44
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4871
SELECT DISTINCT + col1 / + col0 + - + 45 col2 FROM tab2 AS cor0
----
-44
-45

query I rowsort
SELECT - ( 80 ) FROM tab1 cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT + + COUNT( - ( - + col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + + COUNT ( - ( - + col1 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4874
SELECT ALL - - 82 DIV col1 - ( - 92 ) - + - col1 - - - col2, + col0 FROM tab2 AS cor0
----
102
75
121
46
130
64

skipif mysql # not compatible
query II rowsort label-4874
SELECT ALL - - 82 / col1 - ( - 92 ) - + - col1 - - - col2, + col0 FROM tab2 AS cor0
----
102
75
121
46
130
64

query II rowsort
SELECT DISTINCT 69, col1 AS col2 FROM tab1
----
69
14
69
47
69
5

onlyif mysql # DIV for integer division: 
query II rowsort label-4876
SELECT + col0, + col1 DIV + col0 * - col2 AS col1 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4876
SELECT + col0, + col1 / + col0 * - col2 AS col1 FROM tab1
----
51
0
85
0
91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 59 col1, 24 + 82 FROM tab1
----
59
106
59
106
59
106

query I rowsort
SELECT ( - + 52 ) AS col0 FROM tab2
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT + col1 FROM tab1 WHERE NOT + col0 - - col1 + - + CAST( NULL AS SIGNED ) / - 36 - - - col0 * + 19 BETWEEN NULL AND 23
----

skipif mysql # not compatible
query I rowsort label-4879
SELECT + col1 FROM tab1 WHERE NOT + col0 - - col1 + - + CAST ( NULL AS INTEGER ) / - 36 - - - col0 * + 19 BETWEEN NULL AND 23
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 AS col0, col1 col2 FROM tab2 AS cor0
----
87
51
87
67
87
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 15
----

query I rowsort
SELECT ( - - 37 ) FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( + col0 ) * 57 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + ( - col1 ) ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL 67 AS col2 FROM tab0 cor0 WHERE NOT NULL <= - 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT - col1 DIV - - col2 * 42 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT - col1 / - - col2 * 42 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 78 * - - col1 * + col1 >= + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ( + - COUNT( * ) ) * + ( - COUNT( * ) ) FROM tab2 WHERE ( NOT + col0 * + 14 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT ( + - COUNT ( * ) ) * + ( - COUNT ( * ) ) FROM tab2 WHERE ( NOT + col0 * + 14 IS NOT NULL )
----
0

query I rowsort
SELECT 96 + col0 FROM tab1 AS cor0
----
147
181
187

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE + 45 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * ( ( - col2 ) ) NOT IN ( col1 * - col0 * + col2 + - 12, - 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col0 col1 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL + col0 + - + 63 AS col0 FROM tab2 AS cor0
----
-17
1
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL 25 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL 25 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col0 * - col0 - - col1 AS col0 FROM tab2 AS cor0
----
-163763
-326183
-48617

query I rowsort
SELECT ALL col1 * + - 86 - + 52 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT - 96 - + 38 AS col0 FROM tab2 AS cor0
----
-134
-134
-134

query II rowsort
SELECT - - col2, - col1 AS col2 FROM tab1 cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = 75
----

query II rowsort
SELECT ALL col0 * - col1 AS col0, col1 AS col0 FROM tab2
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT ALL - ( - col2 ) * ( col1 ) * + - col0 AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4903
SELECT ALL + COUNT( + col2 ) DIV - - CAST( - COUNT( * ) AS SIGNED ) + ( + CAST( 93 AS SIGNED ) ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL + COUNT ( + col2 ) / - - CAST ( - COUNT ( * ) AS INTEGER ) + ( + CAST ( 93 AS INTEGER ) ) FROM tab0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL + 84 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND CAST( + ( + + ( col2 ) ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + 84 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND CAST ( + ( + + ( col2 ) ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4906
SELECT DISTINCT - 9, + 31 DIV - 39 + + 98 AS col0 FROM tab1
----
-9
98

skipif mysql # not compatible
query II rowsort label-4906
SELECT DISTINCT - 9, + 31 / - 39 + + 98 AS col0 FROM tab1
----
-9
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT DISTINCT - col2 + - CAST( 79 AS SIGNED ) FROM tab1 AS cor0
----
-138
-147
-175

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT - col2 + - CAST ( 79 AS INTEGER ) FROM tab1 AS cor0
----
-138
-147
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT SUM( DISTINCT ( - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4908
SELECT SUM ( DISTINCT ( - col0 ) ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2, + col2, - - col2 + + col2 * 93, - + col2 * - 28 * - + 2, - ( + col2 ) + - + col2 ) OR 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 79 + + ( 16 ) FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT ALL - - col0 + - 47 * 35 FROM tab2 AS cor0
----
-1570
-1581
-1599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT ALL + - CAST( col0 AS SIGNED ) + + 51 FROM tab1 AS cor0
----
-34
-40
0

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + - CAST ( col0 AS INTEGER ) + + 51 FROM tab1 AS cor0
----
-34
-40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT + MIN( ALL + + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT + MIN ( ALL + + col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT 4 + - - COUNT( * ) + - - COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-4914
SELECT 4 + - - COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
10

query I rowsort
SELECT 11 * - col1 FROM tab1
----
-154
-517
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT ( - CAST( NULL AS SIGNED ) ) * + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT ( - CAST ( NULL AS INTEGER ) ) * + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + 74 ) FROM tab0
----
74
74
74

query I rowsort
SELECT DISTINCT - col1 + + + col2 + + + 20 * 89 * 63 AS col1 FROM tab1 cor0
----
112161
112194
112222

query II rowsort
SELECT DISTINCT - ( col1 ), 23 * - 28 AS col0 FROM tab0 AS cor0 WHERE 8 + + - col1 <= + col0
----
-1
-644
-21
-644
-81
-644

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + - col1 + + col1 * + - ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT 56 * - + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4921
SELECT 56 * - + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ( col2 ) * 71 AS col0 FROM tab1 AS cor0
----
4189
4828
6816

query I rowsort
SELECT ALL ( + 15 ) FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + 16 + - - col0 + + - col1 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT DISTINCT - col2 DIV + col1 * + 68 * - - col0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - col2 / + col1 * + 68 * - - col0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT + MAX( ALL + 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-4927
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4928
SELECT - ( col0 ) AS col1, - col0 DIV + 13 AS col2 FROM tab1 AS cor0
----
-51
-3
-85
-6
-91
-7

skipif mysql # not compatible
query II rowsort label-4928
SELECT - ( col0 ) AS col1, - col0 / + 13 AS col2 FROM tab1 AS cor0
----
-51
-3
-85
-6
-91
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + SUM( ALL + col2 ) FROM tab1 WHERE NOT + col0 * + + 74 < - 58
----
223

skipif mysql # not compatible
query I rowsort label-4929
SELECT + SUM ( ALL + col2 ) FROM tab1 WHERE NOT + col0 * + + 74 < - 58
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4930
SELECT COUNT( * ) AS col2, COUNT( * ) + - 73 * + COUNT( * ) * - - 0 * 12 DIV ( - 89 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-4930
SELECT COUNT ( * ) AS col2, COUNT ( * ) + - 73 * + COUNT ( * ) * - - 0 * 12 / ( - 89 ) FROM tab2
----
3
3

query I rowsort
SELECT ALL - 58 * 36 FROM tab1
----
-2088
-2088
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT COUNT( * ) * + - 37 AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT COUNT ( * ) * + - 37 AS col0 FROM tab0
----
-111

query I rowsort
SELECT ALL + - ( - - 21 ) FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT + SUM( - col0 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-4934
SELECT + SUM ( - col0 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-597

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4936
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / - CAST( col2 AS SIGNED ) >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4936
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / - CAST ( col2 AS INTEGER ) >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 2 * col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4938
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) <= ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4938
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) <= ( col2 )
----

query I rowsort
SELECT 37 * + 40 FROM tab1
----
1480
1480
1480

query I rowsort
SELECT 49 * - 98 FROM tab0
----
-4802
-4802
-4802

query I rowsort
SELECT DISTINCT - col1 * - 99 + - col0 FROM tab1
----
1335
410
4562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 94 * - 17 AS col1 FROM tab2
----
-1598
-1598
-1598

query I rowsort
SELECT + 68 - col1 FROM tab2
----
-9
1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL - MIN( - col1 ) * + COUNT( * ) AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - MIN ( - col1 ) * + COUNT ( * ) AS col2 FROM tab2
----
231

query I rowsort
SELECT ALL - 35 * - 32 AS col2 FROM tab1
----
1120
1120
1120

query I rowsort
SELECT 74 + + col1 * col2 FROM tab2 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT - ( col2 ) + col2 AS col1 FROM tab2 WHERE + 82 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4949
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * ( col0 * + col2 ) NOT BETWEEN ( NULL ) AND + CAST( - 33 AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-4949
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * ( col0 * + col2 ) NOT BETWEEN ( NULL ) AND + CAST ( - 33 AS INTEGER ) * col1
----

query I rowsort
SELECT 73 * + 91 + - col0 AS col2 FROM tab0 WHERE + col2 * col2 BETWEEN + 30 * - col2 + - col0 AND - col2 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT MAX( DISTINCT 64 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT MAX ( DISTINCT 64 ) FROM tab2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT COUNT( * ) DIV + SUM( col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT COUNT ( * ) / + SUM ( col1 ) FROM tab1
----
0

query I rowsort
SELECT col2 - - 4 * 71 FROM tab2
----
307
324
342

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4954
SELECT DISTINCT * FROM tab0 WHERE - col1 + - CAST( col0 AS SIGNED ) / - ( - col1 ) <> + col2 * - 84 - ( col2 ) * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4954
SELECT DISTINCT * FROM tab0 WHERE - col1 + - CAST ( col0 AS INTEGER ) / - ( - col1 ) <> + col2 * - 84 - ( col2 ) * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * col1 - - col1 AS col0 FROM tab2
----
2652
4556
6006

query I rowsort
SELECT DISTINCT + 91 * + col1 AS col2 FROM tab2
----
4641
6097
7007

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - 26 + + col1
----

query I rowsort
SELECT col2 * 37 AS col1 FROM tab0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT 57 * MAX( + col2 ) AS col0 FROM tab1
----
5472

skipif mysql # not compatible
query I rowsort label-4959
SELECT 57 * MAX ( + col2 ) AS col0 FROM tab1
----
5472

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + 55 > ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4961
SELECT * FROM tab2 WHERE ( col1 ) = ( + CAST( NULL AS SIGNED ) * - 97 - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4961
SELECT * FROM tab2 WHERE ( col1 ) = ( + CAST ( NULL AS INTEGER ) * - 97 - CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT 7 AS col0 FROM tab1 cor0 WHERE ( - ( col2 ) * col0 ) IS NOT NULL
----
7
7
7

query I rowsort
SELECT ALL + ( + 35 ) + col1 * 36 FROM tab1 AS cor0
----
1727
215
539

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 68 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT ALL 38 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL 38 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 12 AS col1 FROM tab2 WHERE ( + 21 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL 78 - + COUNT( * ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL 78 - + COUNT ( * ) AS col0 FROM tab0
----
75

query III rowsort
SELECT * FROM tab2 WHERE NULL > 29 * 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT MAX( ALL - col2 ) * - COUNT( * ) FROM tab1 WHERE col0 * - col2 > 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT MAX ( ALL - col2 ) * - COUNT ( * ) FROM tab1 WHERE col0 * - col2 > 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT COUNT( * ) * + 71 AS col1 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT COUNT ( * ) * + 71 AS col1 FROM tab2 AS cor0
----
213

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4971
SELECT - - CAST( NULL AS DECIMAL ) * + ( col1 + - 85 * col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT - - CAST ( NULL AS REAL ) * + ( col1 + - 85 * col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( 4 ) FROM tab1 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4973
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4973
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - col1 IS NULL
----

query I rowsort
SELECT - + 37 * - col0 AS col1 FROM tab1 AS cor0
----
1887
3145
3367

query I rowsort
SELECT - 53 FROM tab0 AS cor0 WHERE NOT ( col1 ) > col0
----
-53
-53

query I rowsort
SELECT ALL 8 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
8
8
8

query I rowsort
SELECT DISTINCT + 43 + - 99 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 26 ) NOT BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT MAX( col1 ) * - MAX( - 1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT MAX ( col1 ) * - MAX ( - 1 ) FROM tab2
----
77

query I rowsort
SELECT 46 FROM tab0 WHERE NOT - 11 IS NULL
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT + COUNT( * ) * - + 83 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-4982
SELECT + COUNT ( * ) * - + 83 FROM tab2
----
-249

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + 21
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 + + col0 > + 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 + + col0 col0 FROM tab2 AS cor0
----
-18
-29
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL 16 * MIN( DISTINCT + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
944

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL 16 * MIN ( DISTINCT + col2 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT + col1 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( col0 * col1 )
----

skipif mysql # not compatible
query I rowsort label-4988
SELECT + col1 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + + 81 AS col0 FROM tab1
----
4131
6885
7371

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 87 < - 89
----

query I rowsort
SELECT DISTINCT + 25 * 51 AS col0 FROM tab0
----
1275

query I rowsort
SELECT ALL + 93 + + col0 + + + col2 + col2 AS col1 FROM tab1 AS cor0
----
296
320
336

query I rowsort
SELECT + 19 * col2 FROM tab2 AS cor0 WHERE col2 >= col2
----
1102
437
760

query I rowsort
SELECT DISTINCT col2 + + 51 AS col1 FROM tab2 cor0
----
109
74
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT DISTINCT + col2 * col1 DIV + 36 - + col2 * - 37 - - col1 AS col1 FROM tab1 AS cor0
----
2196
2651
3603

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT + col2 * col1 / + 36 - + col2 * - 37 - - col1 AS col1 FROM tab1 AS cor0
----
2196
2651
3603

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT DISTINCT col2 DIV + col1 AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) > ( - col1 + + col2 )
----
1
11

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT col2 / + col1 AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) > ( - col1 + + col2 )
----
1
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT DISTINCT 10 * - 54 - + + 70 DIV + col1 FROM tab0 AS cor0
----
-540
-543
-610

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT 10 * - 54 - + + 70 / + col1 FROM tab0 AS cor0
----
-540
-543
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT - COUNT( DISTINCT col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT - COUNT ( DISTINCT col1 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( col2 + - 8 ) IN ( + col0 )
----

query I rowsort
SELECT ALL + 96 - col2 FROM tab1
----
0
28
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT ALL - col1 DIV + 13 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - col1 / + 13 AS col2 FROM tab0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL COUNT( * ) + + 39 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL COUNT ( * ) + + 39 FROM tab2
----
42

query I rowsort
SELECT ALL col0 * + col0 + 64 FROM tab0 cor0
----
289
7633
9473

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT COUNT( ALL - 92 ) AS col0, 89 AS col0 FROM tab0 AS cor0
----
3
89

skipif mysql # not compatible
query II rowsort label-5005
SELECT COUNT ( ALL - 92 ) AS col0, 89 AS col0 FROM tab0 AS cor0
----
3
89

query I rowsort
SELECT ALL col0 * + - col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT 30 + 15 AS col1 FROM tab0 WHERE + - ( + col2 ) BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 / - 88 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT SUM( col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT SUM ( col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - + 86 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5010
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + 86 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 53 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT + MAX( DISTINCT - + 60 ) col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5012
SELECT DISTINCT + MAX ( DISTINCT - + 60 ) col1 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT SUM( DISTINCT - 33 ) AS col2 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT SUM ( DISTINCT - 33 ) AS col2 FROM tab1 AS cor0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT col2 DIV + col0 FROM tab0 AS cor0 WHERE NOT col1 > 82 + col2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5014
SELECT col2 / + col0 FROM tab0 AS cor0 WHERE NOT col1 > 82 + col2
----
0
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT + - COUNT( * ) * CAST( NULL AS SIGNED ) * + 23 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 23 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT DISTINCT + + 35, COUNT( * ) col2 FROM tab1 AS cor0
----
35
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5016
SELECT DISTINCT + + 35, COUNT ( * ) col2 FROM tab1 AS cor0
----
35
3

query II rowsort
SELECT col0 AS col0, col2 * col1 + col1 + 16 AS col2 FROM tab0 cor0
----
15
3904
87
247
97
116

query I rowsort
SELECT ALL - 5 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 7 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ALL + - MAX( ALL - col1 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5019
SELECT ALL + - MAX ( ALL - col1 ) col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 74 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 * - ( - - 30 ) + 61 * col1 col0 FROM tab0 AS cor0 WHERE NOT - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + 20 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5022
SELECT + 20 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT COUNT( * ) * + 69 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT COUNT ( * ) * + 69 FROM tab1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - 7 * - COUNT( * ) * + 7 AS col1 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 7 * - COUNT ( * ) * + 7 AS col1 FROM tab0
----
147

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5025
SELECT + 20, CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
20
NULL
20
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-5025
SELECT + 20, CAST ( NULL AS REAL ) AS col2 FROM tab0
----
20
NULL
20
NULL
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT MIN( - + 95 ) AS col1 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT MIN ( - + 95 ) AS col1 FROM tab0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5027
SELECT - col2 col1, 53 * + col2 - - + CAST( NULL AS SIGNED ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5027
SELECT - col2 col1, 53 * + col2 - - + CAST ( NULL AS INTEGER ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 * + 49 AS col0 FROM tab2
----
-51
2254
-67
3675
-77
3136

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * col0 * + col1 / + + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) <= ( NULL )
----

query I rowsort
SELECT 72 AS col0 FROM tab0 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL < - 10 )
----

skipif mysql # not compatible
query I rowsort label-5032
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL < - 10 )
----

query I rowsort
SELECT DISTINCT + ( 80 ) + + col1 AS col2 FROM tab0 AS cor0
----
101
161
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT 41 + COUNT( - 43 ) col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5034
SELECT DISTINCT 41 + COUNT ( - 43 ) col2 FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT - 83 + ( - - col1 ) FROM tab2 AS cor0
----
-16
-32
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5036
SELECT ALL * FROM tab1 cor0 WHERE ( NOT NULL < + CAST( + 32 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5036
SELECT ALL * FROM tab1 cor0 WHERE ( NOT NULL < + CAST ( + 32 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5037
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 * - CAST( + + col2 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5037
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 * - CAST ( + + col2 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5038
SELECT ALL + COUNT( * ) col2, COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5038
SELECT ALL + COUNT ( * ) col2, COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT ALL - CAST( - col1 AS SIGNED ) - col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5039
SELECT ALL - CAST ( - col1 AS INTEGER ) - col1 col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT 65 + - col1 - - + ( + CAST( col0 AS SIGNED ) ) + 18 * - col0 FROM tab2
----
-1100
-1277
-768

skipif mysql # not compatible
query I rowsort label-5040
SELECT 65 + - col1 - - + ( + CAST ( col0 AS INTEGER ) ) + 18 * - col0 FROM tab2
----
-1100
-1277
-768

query I rowsort
SELECT - col1 * - - ( + + 10 ) + + 32 AS col2 FROM tab1
----
-108
-18
-438

query I rowsort
SELECT ALL col0 * - 84 AS col1 FROM tab0
----
-1260
-7308
-8148

query I rowsort
SELECT ALL 99 + + - col2 AS col1 FROM tab2
----
41
59
76

query I rowsort
SELECT ALL + 33 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - 59 + + 78 BETWEEN col1 AND ( NULL )
----

query II rowsort
SELECT ALL - - 86, 70 AS col2 FROM tab0 AS cor0
----
86
70
86
70
86
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT - col2 DIV 30 + + col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3081
-3887

skipif mysql # not compatible
query I rowsort label-5047
SELECT - col2 / 30 + + col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3081
-3887

query I rowsort
SELECT - - 98 * + col1 * + - col1 + + - col2 + ( + - col2 ) + + 0 - + col0 + - + col1 * col1 * col2 AS col0 FROM tab0 cor0
----
-47735
-492
-951454

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 85 NOT IN ( - col2 + - - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT ( - - COUNT( ALL col1 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT ( - - COUNT ( ALL col1 ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - col0 ) ) NOT IN ( - col2, - col2, 4 / - col0 + - + col1 / col2 )
----

query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab2 AS cor0 WHERE NOT 16 < - col1
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5054
SELECT * FROM tab0 AS cor0 WHERE NOT 97 * ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5054
SELECT * FROM tab0 AS cor0 WHERE NOT 97 * ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT + 74, + 73 FROM tab0 AS cor0 WHERE NOT 83 * - - ( + - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5056
SELECT DISTINCT * FROM tab0 WHERE NOT 39 * - + 13 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5056
SELECT DISTINCT * FROM tab0 WHERE NOT 39 * - + 13 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 38 + + 18 - - 48 * - 58 FROM tab1
----
-2728
-2728
-2728

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 + 51 * col2 + + 0 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) NOT BETWEEN col1 AND NULL
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + - col1 col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 12 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + - 73 * + col0 * 1 + - col0 - 24 + col0 col2 FROM tab2
----
-3342
-4656
-5459

query I rowsort
SELECT + 0 * 93 FROM tab0 WHERE NULL = - 95
----

query II rowsort
SELECT ALL col0 AS col0, 99 AS col1 FROM tab1
----
51
99
85
99
91
99

query I rowsort
SELECT DISTINCT + 24 + + 56 * + col0 FROM tab2 AS cor0
----
2600
3608
4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT - - CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT - - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5067
SELECT - - 3, - col0 / 19 * 75 * - col1 AS col1 FROM tab0 AS cor0 WHERE - col0 * + CAST( NULL AS DECIMAL ) NOT IN ( + + 56, + 73 )
----

skipif mysql # not compatible
query II rowsort label-5067
SELECT - - 3, - col0 / 19 * 75 * - col1 AS col1 FROM tab0 AS cor0 WHERE - col0 * + CAST ( NULL AS REAL ) NOT IN ( + + 56, + 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL - ( COUNT( * ) ) - + COUNT( * ) col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5068
SELECT ALL - ( COUNT ( * ) ) - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL + col0 - - - col2 FROM tab2 AS cor0
----
17
23
24

query II rowsort
SELECT + ( + 58 ) AS col1, + col0 AS col2 FROM tab0
----
58
15
58
87
58
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ( MAX( - 40 ) ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-5072
SELECT ( MAX ( - 40 ) ) FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL + MIN( - + 88 ) AS col0 FROM tab2, tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + MIN ( - + 88 ) AS col0 FROM tab2, tab0 AS cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 13 <= 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT ALL - 20 - - 1 DIV + col1 AS col1 FROM tab1
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - 20 - - 1 / + col1 AS col1 FROM tab1
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL + 93 * + - COUNT( * ) * - COUNT( * ) FROM tab2
----
837

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + 93 * + - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
837

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT ALL + 87 DIV - - ( - col2 ) AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + 87 / - - ( - col2 ) AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - ( - 50 ) * 83 FROM tab2 AS cor0
----
4150
4150
4150

query I rowsort
SELECT 76 FROM tab1 AS cor0 WHERE NOT + col0 + + - 8 * - col1 IS NULL
----
76
76
76

query I rowsort
SELECT DISTINCT - + 10 + + ( col0 ) FROM tab1 cor0
----
41
75
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5081
SELECT - col0 AS col0, + CAST( NULL AS SIGNED ) * - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-5081
SELECT - col0 AS col0, + CAST ( NULL AS INTEGER ) * - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5082
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT col0 * 38 DIV - col2 AS col1 FROM tab2 AS cor0
----
-49
-60
-76

skipif mysql # not compatible
query I rowsort label-5083
SELECT col0 * 38 / - col2 AS col1 FROM tab2 AS cor0
----
-49
-60
-76

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5085
SELECT + 61 DIV MAX( + + 33 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5085
SELECT + 61 / MAX ( + + 33 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( - + col1 ) < ( + - col0 + + 65 * - 68 * + 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + col1 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT + MIN( DISTINCT - - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + MIN ( DISTINCT - - col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT COUNT( * ) + + COUNT( * ) + + 80 * - 83 FROM tab1 AS cor0
----
-6634

skipif mysql # not compatible
query I rowsort label-5089
SELECT COUNT ( * ) + + COUNT ( * ) + + 80 * - 83 FROM tab1 AS cor0
----
-6634

query I rowsort
SELECT ALL 19 + - col2 FROM tab1 AS cor0 WHERE NOT col0 + + col2 NOT IN ( col2 + + col2, - ( + + col0 ) * + col0, ( - col0 ) ) AND + 59 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - 71 + - + 1 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) + 76 NOT IN ( - col0 + + - col0 )
----

query I rowsort
SELECT 58 AS col2 FROM tab0 cor0 WHERE + col2 / - + col2 IS NOT NULL
----
58
58
58

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL + COUNT( * ) * - COUNT( DISTINCT - 77 ) + 22 + COUNT( - col0 ) AS col2 FROM tab0 cor0 WHERE NOT + 90 + + - col0 + + ( + + col1 ) IS NOT NULL
----
22

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + COUNT ( * ) * - COUNT ( DISTINCT - 77 ) + 22 + COUNT ( - col0 ) AS col2 FROM tab0 cor0 WHERE NOT + 90 + + - col0 + + ( + + col1 ) IS NOT NULL
----
22

query I rowsort
SELECT - 71 - - col0 AS col2 FROM tab2 AS cor0
----
-25
-7
4

query I rowsort
SELECT + col0 - + col2 * - + col1 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT + col2 * - col0 + + 48 FROM tab2 AS cor0
----
-1010
-2512
-4302

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL - MAX( DISTINCT + - col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - MAX ( DISTINCT + - col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE + 51 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + 20 * 61 FROM tab1
----
1220
1220
1220

query I rowsort
SELECT ALL - col1 * - 66 AS col2 FROM tab1
----
3102
330
924

query I rowsort
SELECT + 72 * + col1 FROM tab2
----
3672
4824
5544

query III rowsort
SELECT DISTINCT + 21 AS col2, + col2 AS col2, + - col0 * + col2 * col2 * + - col0 * 2 AS col0 FROM tab0
----
9 values hashing to 44fe22daef32a3a07b67fd3e534659d5

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT COUNT( * ) * ( + MAX( DISTINCT - col0 ) ) + - 74 FROM tab2 AS cor0
----
-212

skipif mysql # not compatible
query I rowsort label-5105
SELECT COUNT ( * ) * ( + MAX ( DISTINCT - col0 ) ) + - 74 FROM tab2 AS cor0
----
-212

query II rowsort
SELECT ALL - + ( - + col2 ) AS col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 39 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT - + ( + col0 ) FROM tab0 AS cor0 WHERE NOT + 89 < - col2
----
-15
-87
-97

query I rowsort
SELECT ALL - col2 - col0 FROM tab2 AS cor0 WHERE NOT col2 * + 82 + - col0 IS NOT NULL
----

query I rowsort
SELECT col2 * - ( + - col2 ) * + 79 AS col1 FROM tab0
----
174511
774279
7900

query II rowsort
SELECT DISTINCT col2 + + - col0 AS col2, col1 * col1 AS col1 FROM tab0
----
-77
441
2
1
32
6561

query II rowsort
SELECT - col0, + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + col1 ) * - - 21 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL ( - 37 ) * + + MIN( DISTINCT - CAST( 22 AS SIGNED ) ) * 49 + + - SUM( + col2 ) FROM tab0 cor0
----
39730

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL ( - 37 ) * + + MIN ( DISTINCT - CAST ( 22 AS INTEGER ) ) * 49 + + - SUM ( + col2 ) FROM tab0 cor0
----
39730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT + col2 * + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + col2 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5117
SELECT DISTINCT col1 * - col0, col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-2346
-1
-4928
-1
-5025
0

skipif mysql # not compatible
query II rowsort label-5117
SELECT DISTINCT col1 * - col0, col1 / - col0 AS col1 FROM tab2 AS cor0
----
-2346
-1
-4928
-1
-5025
0

query II rowsort
SELECT - 78 + + - ( - col0 ), 96 AS col1 FROM tab1
----
-27
96
13
96
7
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT DISTINCT - 26 * COUNT( * ) * - - COUNT( * ) col1 FROM tab2
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5119
SELECT DISTINCT - 26 * COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT - 20 DIV + col0 * 96 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5120
SELECT DISTINCT - 20 / + col0 * 96 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT - COUNT( * ) + 42 * - MAX( DISTINCT - col2 ), 66 AS col0 FROM tab2
----
963
66

skipif mysql # not compatible
query II rowsort label-5121
SELECT - COUNT ( * ) + 42 * - MAX ( DISTINCT - col2 ), 66 AS col0 FROM tab2
----
963
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT 94 + + 63 + CAST( ( - col2 ) AS SIGNED ) FROM tab1
----
61
89
98

skipif mysql # not compatible
query I rowsort label-5122
SELECT 94 + + 63 + CAST ( ( - col2 ) AS INTEGER ) FROM tab1
----
61
89
98

query II rowsort
SELECT + 63, col1 AS col1 FROM tab1
----
63
14
63
47
63
5

query I rowsort
SELECT DISTINCT - ( ( + 65 ) ) * 67 + + col2 AS col2 FROM tab0
----
-4256
-4308
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - 19 + + COUNT( * ) AS col2 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - 19 + + COUNT ( * ) AS col2 FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL COUNT( ALL ( - col0 ) ) * + COUNT( * ) + + - SUM( col2 ) col2 FROM tab2
----
-112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5126
SELECT ALL COUNT ( ALL ( - col0 ) ) * + COUNT ( * ) + + - SUM ( col2 ) col2 FROM tab2
----
-112

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT + - col2 DIV + - 45 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5128
SELECT + - col2 / + - 45 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT ALL - col1 + - ( + 35 ) * + 87 FROM tab1 AS cor0
----
-3050
-3059
-3092

query I rowsort
SELECT ALL col2 * + 32 + 82 FROM tab0 cor0
----
1586
3250
402

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 60 * - - 89 + - col2 / col0 AND + col1 - - - col1
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 60 * - - 89 + - col2 / col0 AND + col1 - - - col1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 = - 67 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5134
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 75 + + CAST( NULL AS DECIMAL ) = ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5134
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 75 + + CAST ( NULL AS REAL ) = ( col0 )
----

query I rowsort
SELECT - 31 * + - col1 AS col0 FROM tab0
----
2511
31
651

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( 11 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL MIN( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL MIN ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT col1 < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT ALL + - SUM( CAST( + + col1 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + - SUM ( CAST ( + + col1 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 = - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - AVG ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + MIN( ALL + 26 ) AS col0 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5141
SELECT + MIN ( ALL + 26 ) AS col0 FROM tab0 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 AS cor0 WHERE NOT col2 * 88 - - col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 * - - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT col0 DIV + + 29 + - - ( + + col0 ) FROM tab1 AS cor0
----
52
87
94

skipif mysql # not compatible
query I rowsort label-5144
SELECT col0 / + + 29 + - - ( + + col0 ) FROM tab1 AS cor0
----
52
87
94

query I rowsort
SELECT - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 49 < NULL
----

query II rowsort
SELECT DISTINCT + 36 AS col2, col0 * + - col1 FROM tab0
----
36
-1215
36
-1827
36
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL - CAST( - - MIN( DISTINCT col0 ) AS SIGNED ) * + 30 * + 74 * - 44 + - COUNT( DISTINCT - + ( + + 86 ) ) FROM tab1 cor0
----
4981679

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - CAST ( - - MIN ( DISTINCT col0 ) AS INTEGER ) * + 30 * + 74 * - 44 + - COUNT ( DISTINCT - + ( + + 86 ) ) FROM tab1 cor0
----
4981679

query II rowsort
SELECT DISTINCT - + 22 AS col1, - 56 FROM tab0 AS cor0
----
-22
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col2 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 82 FROM tab2 AS cor0
----
-128
-146
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT + MIN( + col2 ) col2 FROM tab0 AS cor0 WHERE - col2 < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5152
SELECT + MIN ( + col2 ) col2 FROM tab0 AS cor0 WHERE - col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL - COUNT( * ) * 60 * + COUNT( * ) FROM tab1 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - COUNT ( * ) * 60 * + COUNT ( * ) FROM tab1 AS cor0
----
-540

query I rowsort
SELECT + 45 * - - 44 FROM tab2 AS cor0
----
1980
1980
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL 12 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL 12 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - + col0 * 32 FROM tab1 AS cor0
----
-1632
-2720
-2912

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + col2 ) + + 98 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5158
SELECT DISTINCT - col1 DIV - - ( + - ( + CAST( - col2 AS SIGNED ) ) ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - col1 / - - ( + - ( + CAST ( - col2 AS INTEGER ) ) ) FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT ALL - SUM( DISTINCT + - col0 ) DIV + 18 + MIN( - col0 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - SUM ( DISTINCT + - col0 ) / + 18 + MIN ( - col0 ) FROM tab0
----
-86

query I rowsort
SELECT DISTINCT - 91 * - ( - col1 ) * - col2 FROM tab2
----
106743
280280
353626

query I rowsort
SELECT + - col0 + - + ( + col1 ) FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT 76 + - ( - COUNT( * ) ) FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-5162
SELECT 76 + - ( - COUNT ( * ) ) FROM tab1 cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + + - col0 col2, + col1 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-77
38367
2
97
32
98415

query I rowsort
SELECT DISTINCT - col0 - - + 51 * + col2 AS col1 FROM tab2 AS cor0
----
1127
1976
2883

query II rowsort
SELECT DISTINCT - + col2 AS col0, - col1 AS col2 FROM tab0 AS cor0 WHERE + ( - col1 ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 88 - + + col0 * + - col2 / - col2 + - - 11 AS col0 FROM tab2 AS cor0 WHERE col0 * + + col0 + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT DISTINCT CAST( NULL AS SIGNED ) - + SUM( - col0 ) + + AVG ( + - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + SUM ( - col0 ) + + AVG ( + - col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 25 - - + col1 AS col0 FROM tab0
----
106
26
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5170
SELECT 8 * + - col1 + + col0 col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-633
NULL
-81
NULL
89
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5170
SELECT 8 * + - col1 + + col0 col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-633
NULL
-81
NULL
89
NULL

query I rowsort
SELECT ALL 23 * + - col1 FROM tab2 AS cor0
----
-1173
-1541
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT 77 * + COUNT( * ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5172
SELECT 77 * + COUNT ( * ) FROM tab0 AS cor0
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col2 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT ALL + col0 * + + ( - col0 ) + - + 72 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT - col0 * col0 + + + CAST( + col2 AS SIGNED ) + - + 50 col1 FROM tab0 AS cor0 WHERE - 27 IN ( + - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT DISTINCT - col0 * col0 + + + CAST ( + col2 AS INTEGER ) + - + 50 col1 FROM tab0 AS cor0 WHERE - 27 IN ( + - col2 )
----

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NOT + - col1 - col0 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5177
SELECT ALL MAX( - col0 ) DIV COUNT( ALL + col0 ) col2 FROM tab2
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5177
SELECT ALL MAX ( - col0 ) / COUNT ( ALL + col0 ) col2 FROM tab2
----
-15

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - COUNT( ALL + + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5179
SELECT - COUNT ( ALL + + col1 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT DISTINCT - MIN( - - 85 ), - 29 AS col1 FROM tab0
----
-85
-29

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT - MIN ( - - 85 ), - 29 AS col1 FROM tab0
----
-85
-29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 80 > 0 + 87 + - + col2 + + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT 77 * + - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5182
SELECT 77 * + - COUNT ( * ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - COUNT( * ) * + 93 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5183
SELECT - COUNT ( * ) * + 93 FROM tab1 AS cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5184
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-5184
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 84 + - + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + + 58 - + + 88 AS col0 FROM tab2 cor0
----
-7
10
28

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col2 * col2 + - - col2 = col2 - - col2
----

query I rowsort
SELECT ALL + - 28 + - - col0 AS col0 FROM tab2 cor0
----
18
36
47

query I rowsort
SELECT - 24 FROM tab0 AS cor0 WHERE ( + 29 ) NOT IN ( + col2 + + col1 - - col0 * - - col1 * - col0 + col0, - col0 * col2 )
----
-24
-24
-24

query I rowsort
SELECT ALL - + col1 * + col2 - + 87 + - ( - - ( col1 ) ) + + 97 AS col1 FROM tab0 AS cor0
----
-221
-3878
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col0 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL - CAST( NULL AS SIGNED ) + + ( - - 58 ) + - - col0 + - col2 * 32 * ( - - col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( - - 58 ) + - - col0 + - col2 * 32 * ( - - col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + ( col1 ) * + + col1 + - 79 col0, col2 AS col2 FROM tab2 AS cor0
----
2476
23
4335
58
5786
40

query II rowsort
SELECT ALL col1 AS col2, ( 75 ) AS col2 FROM tab1 cor0
----
14
75
47
75
5
75

query I rowsort
SELECT ALL ( - 98 ) - 79 FROM tab2
----
-177
-177
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT + CAST( ( + 93 ) AS SIGNED ) col1 FROM tab0
----
93
93
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5197
SELECT + CAST ( ( + 93 ) AS INTEGER ) col1 FROM tab0
----
93
93
93

query II rowsort
SELECT + col0 AS col0, 83 * - col2 FROM tab1
----
51
-7968
85
-4897
91
-5644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 AS col2, - col2 col2 FROM tab1
----
-73
-59
-73
-68
-73
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-5200
SELECT DISTINCT col2 - col0 DIV 9 + 55 AS col2, - 83 AS col1 FROM tab1
----
105
-83
113
-83
146
-83

skipif mysql # not compatible
query II rowsort label-5200
SELECT DISTINCT col2 - col0 / 9 + 55 AS col2, - 83 AS col1 FROM tab1
----
105
-83
113
-83
146
-83

query I rowsort
SELECT ALL 77 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 47 col2, + col1 AS col1 FROM tab0
----
47
1
47
21
47
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT + CAST( + - 15 AS SIGNED ) AS col1 FROM tab2
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-5203
SELECT + CAST ( + - 15 AS INTEGER ) AS col1 FROM tab2
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT col2 * + - CAST( NULL AS SIGNED ) * col2 * - col0 * - + 62 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT col2 * + - CAST ( NULL AS INTEGER ) * col2 * - col0 * - + 62 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - ( 12 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT + COUNT( * ) DIV COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5206
SELECT + COUNT ( * ) / COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT - 78 DIV + col1 + + + 64 + - col0 col0 FROM tab2
----
-1
-12
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5207
SELECT - 78 / + col1 + + + 64 + - col0 col0 FROM tab2
----
-1
-12
17

query I rowsort
SELECT ALL 19 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT - + 58 * 35 - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - + 58 * 35 - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT 90 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 = NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT 50 / + 25 + - - 95 / - + 80 * + col2 + - + 37 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT - + ( - - COUNT( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - + ( - - COUNT ( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - + SUM( ALL - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5214
SELECT - + SUM ( ALL - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT + 93 + + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-5215
SELECT + 93 + + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT + + COUNT( + 59 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5216
SELECT + + COUNT ( + 59 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5217
SELECT DISTINCT 24, - COUNT( * ) AS col1 FROM tab0
----
24
-3

skipif mysql # not compatible
query II rowsort label-5217
SELECT DISTINCT 24, - COUNT ( * ) AS col1 FROM tab0
----
24
-3

query II rowsort
SELECT + col1 AS col1, - col1 * - ( - - 38 ) FROM tab2
----
51
1938
67
2546
77
2926

query I rowsort
SELECT DISTINCT ( + + 44 ) AS col0 FROM tab0
----
44

query II rowsort
SELECT col1, + col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 16 AND NULL
----

query I rowsort
SELECT - - 88 + + + col0 FROM tab1 AS cor0
----
139
173
179

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT - col0 DIV + - 65 + + 60 AS col2 FROM tab1 AS cor0
----
60
61
61

skipif mysql # not compatible
query I rowsort label-5222
SELECT - col0 / + - 65 + + 60 AS col2 FROM tab1 AS cor0
----
60
61
61

query I rowsort
SELECT - 36 AS col1 FROM tab2 cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT - 67 + - col2 AS col2 FROM tab0 cor0
----
-114
-166
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + MAX( 7 ) AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5225
SELECT + MAX ( 7 ) AS col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL - col0 + - 0 + + + col1 * + col2 FROM tab2 AS cor0
----
1127
3016
3811

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5229
SELECT - 80 - - 29 - - + CAST( - - col0 AS SIGNED ) * - col0, + 71 col0 FROM tab0 cor0
----
-276
71
-7620
71
-9460
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5229
SELECT - 80 - - 29 - - + CAST ( - - col0 AS INTEGER ) * - col0, + 71 col0 FROM tab0 cor0
----
-276
71
-7620
71
-9460
71

query I rowsort
SELECT ALL - col0 * 28 * - - 85 FROM tab0
----
-207060
-230860
-35700

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT - SUM( DISTINCT + 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - SUM ( DISTINCT + 47 ) FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL + COUNT( ALL + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL + COUNT ( ALL + col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT + COUNT( * ) + + 17 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT + COUNT ( * ) + + 17 FROM tab0 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 WHERE + 78 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + 20 * + COUNT( * ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 20 * + COUNT ( * ) AS col1 FROM tab1
----
60

query I rowsort
SELECT DISTINCT - col2 * 2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT - 91 * + col1 FROM tab2 AS cor0
----
-4641
-6097
-7007

query II rowsort
SELECT DISTINCT 48 AS col0, 15 FROM tab1 AS cor0
----
48
15

query I rowsort
SELECT col0 + + + ( + col0 ) - + 77 AS col2 FROM tab1
----
105
25
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 * col0, col2 col1 FROM tab1
----
2397
96
3995
59
4277
68

query I rowsort
SELECT DISTINCT - 80 * - + ( - 94 ) AS col0 FROM tab2
----
-7520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5244
SELECT CAST( - COUNT( 19 ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5244
SELECT CAST ( - COUNT ( 19 ) AS INTEGER ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 6 + ( col0 ) FROM tab0
----
103
21
93

query I rowsort
SELECT ALL + 53 * - + col2 AS col0 FROM tab2
----
-1219
-2120
-3074

query III rowsort
SELECT * FROM tab1 WHERE ( NULL <= ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5248
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT BETWEEN + col1 + - - CAST( col2 AS SIGNED ) AND - - 31 )
----

skipif mysql # not compatible
query III rowsort label-5248
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT BETWEEN + col1 + - - CAST ( col2 AS INTEGER ) AND - - 31 )
----

query I rowsort
SELECT 92 + 36 FROM tab0
----
128
128
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 + col1 + CAST( + 52 AS SIGNED ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 + col1 + CAST ( + 52 AS INTEGER ) + + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 83 + + col0 FROM tab1 AS cor0
----
-32
2
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 6 + - col2 < NULL
----

query I rowsort
SELECT DISTINCT + 76 + 21 AS col1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 12 * - col0 * + col2 * - col2 * ( - 30 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT DISTINCT - + COUNT( * ) - - - CAST( + 38 AS SIGNED ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT - + COUNT ( * ) - - - CAST ( + 38 AS INTEGER ) FROM tab0 AS cor0
----
-41

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND 97 * col2
----

query I rowsort
SELECT DISTINCT + + 39 FROM tab0 cor0
----
39

query I rowsort
SELECT DISTINCT + 91 * - ( - + col2 ) - + 54 FROM tab0 AS cor0 WHERE 57 IS NULL
----

query I rowsort
SELECT + col0 * - - col2 + 37 FROM tab1 AS cor0
----
4933
5052
6225

query I rowsort
SELECT + col1 * + + col1 * col2 FROM tab2
----
237160
260362
59823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5262
SELECT COUNT( * ) FROM tab1 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT COUNT ( * ) FROM tab1 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - col2 * - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 62 >= + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5264
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + CAST( - 35 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5264
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + CAST ( - 35 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL - MAX( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5265
SELECT ALL - MAX ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + 23 * 6 AS col2 FROM tab0 AS cor0
----
138
138
138

query I rowsort
SELECT ALL + 2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * 18 AS col0 FROM tab1 cor0
----
1530
1638
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT CAST( NULL AS SIGNED ) * + 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT CAST ( NULL AS INTEGER ) * + 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL + 54 * COUNT( * ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + 54 * COUNT ( * ) FROM tab0 AS cor0
----
162

query I rowsort
SELECT ALL 2 * + col1 AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT + col0 * 57 FROM tab2
----
2622
3648
4275

query I rowsort
SELECT ALL - - 40 * + col2 - - col0 AS col2 FROM tab0 WHERE col1 < NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL BETWEEN 24 AND NULL
----

query II rowsort
SELECT - col1 * - col0 + + + col1, + 75 + + + col2 + + - 61 AS col0 FROM tab1 WHERE NOT + + col1 IS NULL
----
430
73
4324
82
728
110

query I rowsort
SELECT ALL 9 AS col1 FROM tab0, tab0 AS cor0 WHERE NOT 65 IS NULL
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab2 WHERE 83 * + + 38 NOT IN ( col0, 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 - col2 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * - col0 IS NULL
----

query II rowsort
SELECT - 66 - + - col1, + col1 FROM tab2 AS cor0
----
-15
51
1
67
11
77

query I rowsort
SELECT - ( 53 ) - + col1 FROM tab1 AS cor0
----
-100
-58
-67

query I rowsort
SELECT 20 - + + col2 FROM tab0 AS cor0
----
-27
-79
10

query I rowsort
SELECT ALL 73 - + col2 FROM tab0
----
-26
26
63

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 + - 45 BETWEEN NULL AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT - + col0 + - - CAST( - 81 AS SIGNED ) * - - CAST( - col1 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5285
SELECT - + col0 + - - CAST ( - 81 AS INTEGER ) * - - CAST ( - col1 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT 61 + col1 + - col2 * - 72 * col0 >= - col0
----

query I rowsort
SELECT ( + 3 ) AS col2 FROM tab1
----
3
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5288
SELECT + 7 DIV - + 61 * - - col0 col1, - col0 DIV + 62 AS col2 FROM tab1 AS cor0
----
0
-1
0
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5288
SELECT + 7 / - + 61 * - - col0 col1, - col0 / + 62 AS col2 FROM tab1 AS cor0
----
0
-1
0
-1
0
0

query I rowsort
SELECT col1 * + - 68 FROM tab1 AS cor0
----
-3196
-340
-952

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 64 = NULL
----

query I rowsort
SELECT DISTINCT - 45 + 81 FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT ALL - - col0 * + CAST( + col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5292
SELECT ALL - - col0 * + CAST ( + col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - 31 * + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 45 + - col2 + - col0 * + col2 + + - 18 FROM tab2
----
-1054
-2573
-4381

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 22 ) col0 FROM tab1
----
22

query I rowsort
SELECT + col1 + + 31 AS col1 FROM tab1
----
36
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL 13 * + COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL 13 * + COUNT ( * ) FROM tab0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT ALL - col2 DIV col1 + + 98 + - col0 AS col2 FROM tab1
----
2
41
6

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - col2 / col1 + + 98 + - col0 AS col2 FROM tab1
----
2
41
6

query II rowsort
SELECT + 63, 34 AS col2 FROM tab2
----
63
34
63
34
63
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT - col0 * 79 DIV + - col0 AS col0 FROM tab0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-5300
SELECT - col0 * 79 / + - col0 AS col0 FROM tab0
----
79
79
79

query I rowsort
SELECT ALL + col1 * - col1 + col2 AS col2 FROM tab0
----
-431
-6514
98

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL < col1
----

query II rowsort
SELECT DISTINCT col1, + 7 * + col2 FROM tab1
----
14
672
47
476
5
413

query I rowsort
SELECT - ( + col1 ) + + col2 AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL + col0 * + + col0 + ( + col1 ) + - - ( - col1 ) FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT col2 DIV + + 86 + + 17 AS col1 FROM tab2
----
17
17
17

skipif mysql # not compatible
query I rowsort label-5306
SELECT col2 / + + 86 + + 17 AS col1 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL ( - MIN( - col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL ( - MIN ( - col1 ) ) AS col0 FROM tab0
----
81

query I rowsort
SELECT + 66 * - col0 * - col1 + col2 FROM tab1
----
28109
282350
47220

query I rowsort
SELECT DISTINCT 23 + - + 73 FROM tab2 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5310
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5310
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, 62 FROM tab1 cor0
----
59
62
68
62
96
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5312
SELECT ALL + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 * + + col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * + col0 * + col0 AS col0 FROM tab2
----
163840
326250
48668

query II rowsort
SELECT ALL ( + - col2 ) AS col1, - ( 68 ) AS col0 FROM tab1
----
-59
-68
-68
-68
-96
-68

query I rowsort
SELECT + col1 * - + 36 FROM tab2
----
-1836
-2412
-2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 31 col0 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5318
SELECT DISTINCT + ( + col2 ) col1, + col2 * - col0 * - + CAST( + 59 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
62422
40
151040
58
256650

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5318
SELECT DISTINCT + ( + col2 ) col1, + col2 * - col0 * - + CAST ( + 59 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
62422
40
151040
58
256650

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - ( - MIN( DISTINCT + + 7 ) ) * 75 FROM tab0 AS cor0
----
525

skipif mysql # not compatible
query I rowsort label-5320
SELECT - ( - MIN ( DISTINCT + + 7 ) ) * 75 FROM tab0 AS cor0
----
525

query I rowsort
SELECT ALL - col2 * col0 * col0 + + 66 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - - 60
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT - col2 * col2 + + + ( col0 ) + + 71 <> NULL )
----

query I rowsort
SELECT ALL - 88 + 16 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT 44 * 33 / + col0 AS col2 FROM tab0 AS cor0 WHERE + 16 * col0 IS NULL
----

query II rowsort
SELECT 47 AS col1, + 91 FROM tab1 cor0
----
47
91
47
91
47
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + COUNT( ALL 93 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5326
SELECT + COUNT ( ALL 93 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT - MIN( 98 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - MIN ( 98 ) FROM tab2
----
-98

query I rowsort
SELECT - 3 * - - col0 FROM tab1
----
-153
-255
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL MIN( DISTINCT + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL MIN ( DISTINCT + col1 ) AS col0 FROM tab1
----
5

query I rowsort
SELECT + 69 * - + ( col2 ) AS col1 FROM tab2
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT COUNT( DISTINCT 88 ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5331
SELECT DISTINCT COUNT ( DISTINCT 88 ) col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 + col0 col2 FROM tab2
----
123
141
152

query I rowsort
SELECT - col2 + - - col1 + 36 AS col0 FROM tab1
----
-18
-46
15

query I rowsort
SELECT + 71 + 16 * + - col0 + + ( - ( + - 28 ) ) * + col2 AS col2 FROM tab2 cor0
----
-21
167
495

query I rowsort
SELECT ALL + col2 - 2 + 38 * + col1 * - - col1 FROM tab2 AS cor0
----
170638
225340
98859

query I rowsort
SELECT ALL + - col0 + - 94 AS col2 FROM tab2 AS cor0
----
-140
-158
-169

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 69 AND - - 90
----

query I rowsort
SELECT DISTINCT col0 * - col0 * + col2 + col0 - - col0 + + col1 AS col1 FROM tab1 AS cor0
----
-249580
-426100
-562879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab2
----
20

query I rowsort
SELECT ALL - 23 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query II rowsort
SELECT DISTINCT col2, + col1 + + col0 AS col1 FROM tab0
----
10
108
47
96
99
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT + col1 - + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT + col1 - + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - col0 ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( col2 ) / + - col2 * + col2 + - - ( - - col2 ) + 27, col2 * col2 + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5345
SELECT ALL - CAST( NULL AS DECIMAL ) + + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - CAST ( NULL AS REAL ) + + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 89 ) - + - col0 AS col1 FROM tab2 AS cor0
----
135
153
164

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT + MIN( DISTINCT + 37 ) AS col0 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5348
SELECT + MIN ( DISTINCT + 37 ) AS col0 FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - + SUM( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5349
SELECT - + SUM ( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query II rowsort label-5350
SELECT ALL - 15 DIV - col2 + ( + + col1 ) + - - 78, col0 col2 FROM tab0 AS cor0
----
100
87
159
15
79
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5350
SELECT ALL - 15 / - col2 + ( + + col1 ) + - - 78, col0 col2 FROM tab0 AS cor0
----
100
87
159
15
79
97

query II rowsort
SELECT - col2 AS col2, - col0 * + 40 + - - col0 AS col2 FROM tab1
----
-59
-3315
-68
-3549
-96
-1989

query II rowsort
SELECT DISTINCT 13 * - + col0, col0 + + 49 + - + col2 * ( - + col1 ) AS col2 FROM tab2
----
-598
1268
-832
3193
-975
4010

query I rowsort
SELECT ALL - ( + 74 ) FROM tab2
----
-74
-74
-74

query I rowsort
SELECT ALL + 44 * - col0 FROM tab1
----
-2244
-3740
-4004

query II rowsort
SELECT 10, - 91 AS col0 FROM tab1
----
10
-91
10
-91
10
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5356
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( - - col2 AS SIGNED ) ) BETWEEN ( NULL ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-5356
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( - - col2 AS INTEGER ) ) BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT ALL - + ( - + ( + - col2 ) ) * + - 46 * col0 FROM tab2 AS cor0
----
117760
200100
48668

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT 85 - COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-5359
SELECT 85 - COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT DISTINCT col0 DIV + 79 + + + col0 * - + col1 * col0 AS col2 FROM tab1
----
-36124
-36414
-389206

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT col0 / + 79 + + + col0 * - + col1 * col0 AS col2 FROM tab1
----
-36124
-36414
-389206

query II rowsort
SELECT - ( 47 ), col1 + + - col2 AS col1 FROM tab2 cor0
----
-47
28
-47
37
-47
9

query I rowsort
SELECT + col0 + + - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - col2 + - 48 * - 22 - + ( + - 14 ) AS col2 FROM tab1 AS cor0
----
1002
1011
974

query I rowsort
SELECT + col1 * + 36 + - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1645
175
490

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - SUM( + 87 ) AS col0 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - SUM ( + 87 ) AS col0 FROM tab2
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 40 col1 FROM tab0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT DISTINCT COUNT( * ) col1, - 62 AS col1 FROM tab1
----
3
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5368
SELECT DISTINCT COUNT ( * ) col1, - 62 AS col1 FROM tab1
----
3
-62

query II rowsort
SELECT + ( - 29 ) - col2 AS col2, col1 * col2 AS col2 FROM tab2 AS cor0
----
-52
1173
-69
3080
-87
3886

query I rowsort
SELECT ALL - 90 FROM tab1 WHERE col1 NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT DISTINCT + 30 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + 30 / col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL - COUNT( * ) * 90 + - COUNT( DISTINCT + col0 - - col0 ) FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - COUNT ( * ) * 90 + - COUNT ( DISTINCT + col0 - - col0 ) FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT 66 * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5373
SELECT 66 * COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT - col1 * col2 - + 64 AS col2 FROM tab1
----
-1408
-3260
-359

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT 72 + + SUM( DISTINCT + col0 ) * COUNT( ALL - 30 / 10 + + 18 ) FROM tab2
----
627

skipif mysql # not compatible
query I rowsort label-5375
SELECT 72 + + SUM ( DISTINCT + col0 ) * COUNT ( ALL - 30 / 10 + + 18 ) FROM tab2
----
627

query I rowsort
SELECT ALL + 89 FROM tab1 WHERE NOT ( + col1 ) <= ( col2 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + ( + 69 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + MAX( DISTINCT 98 ) AS col2 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-5379
SELECT + MAX ( DISTINCT 98 ) AS col2 FROM tab0
----
98

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 WHERE NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT ALL + CAST( + 97 AS SIGNED ) AS col2 FROM tab2
----
97
97
97

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL + CAST ( + 97 AS INTEGER ) AS col2 FROM tab2
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 WHERE - 85 - - 78 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 WHERE - 85 - - 78 IS NOT NULL
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 + + col1 * col1
----

query I rowsort
SELECT ALL col0 + 50 AS col1 FROM tab1 WHERE 0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) > + 94
----
0

skipif mysql # not compatible
query I rowsort label-5387
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) > + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT + COUNT( * ) FROM tab2 WHERE NULL BETWEEN ( + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5388
SELECT + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN ( + col2 ) AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 20 + - 67 * 20 BETWEEN NULL AND ( ( - col1 ) )
----

query I rowsort
SELECT + 85 FROM tab2 WHERE NOT col1 IS NULL
----
85
85
85

query I rowsort
SELECT ALL 51 FROM tab0 AS cor0 WHERE NOT NULL = ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5394
SELECT - CAST( NULL AS SIGNED ) / - COUNT( 82 ) + ( 73 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( 82 ) + ( 73 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5395
SELECT ALL - ( COUNT( DISTINCT + col1 ) ) * + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT ALL - ( COUNT ( DISTINCT + col1 ) ) * + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 * + 76 AND - 11 * + col0
----

query I rowsort
SELECT ALL ( + 41 ) AS col2 FROM tab1 WHERE NULL <= - col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT BETWEEN + col2 + col1 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 7 * 40 + col0 FROM tab2 AS cor0
----
326
344
355

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - + ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5400
SELECT - + ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5401
SELECT DISTINCT col1 DIV ( 38 ) AS col0 FROM tab2 AS cor0 WHERE ( ( CAST( NULL AS SIGNED ) ) * 49 + col0 ) IS NULL
----
1
2

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT col1 / ( 38 ) AS col0 FROM tab2 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) * 49 + col0 ) IS NULL
----
1
2

query I rowsort
SELECT DISTINCT - ( + col0 ) + + col2 * - 50 FROM tab1 AS cor0
----
-3035
-3491
-4851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT - + CAST( 98 AS SIGNED ) * ( col0 ) col2 FROM tab2 AS cor0
----
-4508
-6272
-7350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5403
SELECT - + CAST ( 98 AS INTEGER ) * ( col0 ) col2 FROM tab2 AS cor0
----
-4508
-6272
-7350

query I rowsort
SELECT ALL - - col1 + 76 AS col2 FROM tab0 AS cor0
----
157
77
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT + MIN( ALL + col0 ) DIV 98 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + MIN ( ALL + col0 ) / 98 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col0 / + col0 )
----

query I rowsort
SELECT ALL - col1 + - col2 * - col2 FROM tab0 AS cor0
----
2128
79
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT + 92 * ( MIN( - 62 ) ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT + 92 * ( MIN ( - 62 ) ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / col2 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5410
SELECT COUNT( * ) DIV + 16 - 50 AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5410
SELECT COUNT ( * ) / + 16 - 50 AS col0 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT 27 - + 72 * 33 AS col0 FROM tab2 AS cor0
----
-2349
-2349
-2349

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN col2 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5413
SELECT COUNT( * ) - + ( 22 ) / ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT COUNT ( * ) - + ( 22 ) / ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT ALL col2 * - CAST( - 99 AS SIGNED ) FROM tab0
----
4653
9801
990

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL col2 * - CAST ( - 99 AS INTEGER ) FROM tab0
----
4653
9801
990

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 55 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT ALL - col2 DIV - ( col1 ) FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - col2 / - ( col1 ) FROM tab1
----
1
11
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 61 ) = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + - 45 + - col1 FROM tab1
----
-1
-8
35

query III rowsort
SELECT * FROM tab0 WHERE + 40 IN ( 98 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED ) * 24 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * 24 FROM tab0
----
NULL

query I rowsort
SELECT ALL 84 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + + col2 * ( col2 ) + - 90 AS col1 FROM tab2 AS cor0
----
1510
3274
439

query I rowsort
SELECT ALL + 39 + ( col2 ) FROM tab0 AS cor0
----
138
49
86

query I rowsort
SELECT + ( col0 ) * col0 + - col2 AS col1 FROM tab1 AS cor0
----
2505
7166
8213

query I rowsort
SELECT col2 * - 48 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5427
SELECT - 16 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5427
SELECT - 16 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT DISTINCT * FROM tab0 cor0 WHERE ( ( col2 ) * + CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT DISTINCT * FROM tab0 cor0 WHERE ( ( col2 ) * + CAST ( NULL AS INTEGER ) ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN ( + col1 ) + col2 * + col1 AND 86
----

query I rowsort
SELECT 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query II rowsort
SELECT - - col0, col2 AS col1 FROM tab2 cor0
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 88 NOT IN ( + + 63 )
----

query I rowsort
SELECT ( col1 ) * col2 - + col0 * + col1 FROM tab2 cor0
----
-1139
-1173
-1848

query I rowsort
SELECT ALL ( - 22 ) FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ( - 91 ) * + 90 + COUNT( * ) FROM tab0 AS cor0
----
-8187

skipif mysql # not compatible
query I rowsort label-5436
SELECT ( - 91 ) * + 90 + COUNT ( * ) FROM tab0 AS cor0
----
-8187

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT SUM( - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT SUM ( - + col0 ) FROM tab1
----
-227

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT ( + + col0 ) NOT IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - - - 58 - 47 * ( col0 - - 28 * 43 ) * + col1 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab2 WHERE ( NULL ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab2 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <= ( NULL )
----

query I rowsort
SELECT col1 * - 94 * + col1 + - 66 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT ALL - 99 + 88 + + col0 DIV - + 80 FROM tab0
----
-11
-12
-12

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - 99 + 88 + + col0 / - + 80 FROM tab0
----
-11
-12
-12

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE NOT - 74 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 6, col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT DISTINCT + col2 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT + col2 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE + col0 * - 48 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT DISTINCT COUNT( + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT COUNT ( + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT + ( + CAST( NULL AS SIGNED ) ) * - - 32 / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT + ( + CAST ( NULL AS INTEGER ) ) * - - 32 / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - - col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT ALL - 50 DIV + col2 AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - 50 / + col2 AS col2 FROM tab2
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5452
SELECT - col1 * + CAST( NULL AS SIGNED ) + 61 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5452
SELECT - col1 * + CAST ( NULL AS INTEGER ) + 61 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 1 + - - 2 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 45 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL + COUNT( * ) + + 71 col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5455
SELECT ALL + COUNT ( * ) + + 71 col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT DISTINCT - 93 + - col0 AS col2 FROM tab1 cor0
----
-144
-178
-184

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 < col0 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL SUM( DISTINCT - 51 ) + 49 AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL SUM ( DISTINCT - 51 ) + 49 AS col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( 63 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL - COUNT( * ) * + 74 AS col0 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - COUNT ( * ) * + 74 AS col0 FROM tab2
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT DISTINCT COUNT( + + 8 ) DIV + 75 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT COUNT ( + + 8 ) / + 75 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - 54 - - 40 * - 1 FROM tab1
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT DISTINCT + col0 DIV 65 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + col0 / 65 AS col2 FROM tab1
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 >= ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE ( NOT col2 NOT IN ( - col0 * col2 * ( 45 ) + + col1 * col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5465
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT col2 NOT IN ( - col0 * col2 * ( 45 ) + + col1 * col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT COUNT( * ) - - 31 AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5466
SELECT COUNT ( * ) - - 31 AS col1 FROM tab2
----
34

query I rowsort
SELECT ALL - col2 + - col1 - + 50 * col0 * - col0 AS col2 FROM tab1 AS cor0
----
129940
361186
413935

query I rowsort
SELECT - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 99 = + 71 * + col2 * 2
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 34 >= - 43 OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5470
SELECT * FROM tab0 AS cor0 WHERE NOT - 44 < - + ( - CAST( - 71 AS DECIMAL ) ) + + col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-5470
SELECT * FROM tab0 AS cor0 WHERE NOT - 44 < - + ( - CAST ( - 71 AS REAL ) ) + + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE - + col0 + - 24 + - - 83 * + - 63 IN ( + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE - + col0 + - 24 + - - 83 * + - 63 IN ( + - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT DISTINCT + COUNT( ALL + 56 ) col1, 55 FROM tab2 AS cor0
----
3
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5473
SELECT DISTINCT + COUNT ( ALL + 56 ) col1, 55 FROM tab2 AS cor0
----
3
55

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * + col0 > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col1 col0 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT SUM( ALL - - 3 ) * + 4 AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5477
SELECT SUM ( ALL - - 3 ) * + 4 AS col2 FROM tab0 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5478
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( CAST( NULL AS SIGNED ) * + 2 * + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5478
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( CAST ( NULL AS INTEGER ) * + 2 * + CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col1 * - col0 + 48 AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( + + 7 ) AND NULL
----

query I rowsort
SELECT ALL + ( 42 ) FROM tab0
----
42
42
42

query II rowsort
SELECT ALL + col2, - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - ( - ( + - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT + - ( + MIN( DISTINCT 50 ) ) + - - 69 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT + - ( + MIN ( DISTINCT 50 ) ) + - - 69 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - ( + 50 ) FROM tab1
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - ( - ( + - col2 ) ) FROM tab1 WHERE + + 69 < + + ( + col0 )
----
-59
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > - col2 * + 16 * + col1 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT ALL + col1 + 21 + - col2 * + + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
30
49
58

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + col1 + 21 + - col2 * + + col1 / + col1 AS col0 FROM tab2 AS cor0
----
30
49
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT + ( + + CAST( NULL AS SIGNED ) ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT + ( + + CAST ( NULL AS INTEGER ) ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - 54 ) * 72 * - + col2 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT - - col0 + + + col1 + col2 DIV + - ( - col2 ) FROM tab2 cor0
----
142
143
98

skipif mysql # not compatible
query I rowsort label-5490
SELECT - - col0 + + + col1 + col2 / + - ( - col2 ) FROM tab2 cor0
----
142
143
98

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 47 NOT BETWEEN col1 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL - 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5494
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + CAST( + - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + CAST ( + - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ( - - MAX( col2 ) ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-5495
SELECT ( - - MAX ( col2 ) ) FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5496
SELECT ALL - CAST( NULL AS DECIMAL ) + MAX( DISTINCT - + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL - CAST ( NULL AS REAL ) + MAX ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col1 - - - 82 AS col0, + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-1
81
-61
21
-81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5498
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( + col0 ) / - col1 + - ( col2 ) + - + CAST( NULL AS SIGNED ) > 81
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col0 ) / - col1 + - ( col2 ) + - + CAST ( NULL AS INTEGER ) > 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT + - col0 - + - 96 + col0 + - col0 DIV col0 FROM tab2 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-5499
SELECT + - col0 - + - 96 + col0 + - col0 / col0 FROM tab2 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT MIN( - - 89 ) - COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5500
SELECT MIN ( - - 89 ) - COUNT ( * ) FROM tab1 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 58 * 59 / - ( + 75 ) <= NULL
----

query II rowsort
SELECT DISTINCT ( + col2 ), 2 AS col1 FROM tab0 AS cor0
----
10
2
47
2
99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT + COUNT( * ) + + 96 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT + COUNT ( * ) + + 96 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT 3 - + 20 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT + COUNT( * ) + - 52 + + + COUNT( * ) * + 89 FROM tab0
----
218

skipif mysql # not compatible
query I rowsort label-5505
SELECT + COUNT ( * ) + - 52 + + + COUNT ( * ) * + 89 FROM tab0
----
218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT ALL - 26 DIV + - 16 - 1 + 97 + COUNT( * ) - - 94 FROM tab0 WHERE NOT - 88 IS NULL
----
194

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - 26 / + - 16 - 1 + 97 + COUNT ( * ) - - 94 FROM tab0 WHERE NOT - 88 IS NULL
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT - 22 * 31 DIV + col1 AS col2 FROM tab2
----
-10
-13
-8

skipif mysql # not compatible
query I rowsort label-5507
SELECT - 22 * 31 / + col1 AS col2 FROM tab2
----
-10
-13
-8

query I rowsort
SELECT ALL + col2 * 20 FROM tab2 AS cor0
----
1160
460
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5510
SELECT + - AVG ( ALL + CAST( NULL AS SIGNED ) ) * + MIN( ALL + - CAST( NULL AS DECIMAL ) ) / - CAST( COUNT( * ) AS SIGNED ) - - MIN( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) * + MIN ( ALL + - CAST ( NULL AS REAL ) ) / - CAST ( COUNT ( * ) AS INTEGER ) - - MIN ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * - 51 AS col2 FROM tab0 AS cor0
----
-1071
-4131
-51

query II rowsort
SELECT ALL - col1 AS col1, col1 * + 40 FROM tab0
----
-1
40
-21
840
-81
3240

query I rowsort
SELECT 25 * + - col2 AS col2 FROM tab0
----
-1175
-2475
-250

query I rowsort
SELECT ALL 99 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5515
SELECT - ( - CAST( - SUM( DISTINCT 52 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5515
SELECT - ( - CAST ( - SUM ( DISTINCT 52 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + 76 + - ( + col1 ) < - - 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT DISTINCT + CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 <> ( - col0 + - 99 )
----

query I rowsort
SELECT + + col0 * - col1 * + ( 4 ) + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 - - - col0 + + col2 * - 98 IN ( col0, + col0, col2 )
----
-1695
-17061
-2842

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + + col1 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( - - ( + - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT COUNT( * ) * COUNT( * ) + + COUNT( * ) + - 34 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-5522
SELECT COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) + - 34 FROM tab2
----
-22

query I rowsort
SELECT ALL - col0 + - 97 FROM tab0 WHERE col2 - + col0 / ( - col1 ) IS NOT NULL
----
-112
-184
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT 4 DIV + col1 * + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT 4 / + col1 * + + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 >= + - col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> - col2 - + 44 * - + 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + + col2 + + col2 FROM tab2 AS cor0
----
-5
3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + 34 + - + COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-5529
SELECT + 34 + - + COUNT ( * ) FROM tab0
----
31

query I rowsort
SELECT + 89 + - + col0 * + col0 FROM tab2 AS cor0
----
-2027
-4007
-5536

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT 67 + 76 * + COUNT( * ) FROM tab1 AS cor0
----
295

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT 67 + 76 * + COUNT ( * ) FROM tab1 AS cor0
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL - COUNT( * ) - - COUNT( * ) + COUNT( col1 ) * + 66 * - - 46 AS col0 FROM tab2 AS cor0
----
9108

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL - COUNT ( * ) - - COUNT ( * ) + COUNT ( col1 ) * + 66 * - - 46 AS col0 FROM tab2 AS cor0
----
9108

query I rowsort
SELECT ALL + + 22 * - col2 - col2 - + 20 FROM tab1 AS cor0
----
-1377
-1584
-2228

query I rowsort
SELECT + 66 * + - col0 - - + ( col1 ) FROM tab2
----
-2985
-4147
-4883

query I rowsort
SELECT ALL 85 * + 18 AS col1 FROM tab0
----
1530
1530
1530

query III rowsort
SELECT * FROM tab0 WHERE NOT 6 <> + col1 * - + col1 * + 64 * + col0
----

query I rowsort
SELECT ( + ( - 50 ) ) * col0 FROM tab0
----
-4350
-4850
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + SUM( ALL 80 ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-5538
SELECT + SUM ( ALL 80 ) FROM tab1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL + MIN( ALL col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL + MIN ( ALL col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL - 71 * - col0 FROM tab1
----
3621
6035
6461

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 = - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT + COUNT( - + 45 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + COUNT ( - + 45 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT + col2 * + 22, 29 FROM tab2 AS cor0 WHERE NOT 22 NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT ALL - 43 DIV - col2 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL - 43 / - col2 AS col1 FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT ALL + col0 AS col1, + 82 * - ( - col0 ) * - 90 AS col2 FROM tab2
----
46
-339480
64
-472320
75
-553500

query II rowsort
SELECT col1, - col2 + + col1 FROM tab2
----
51
28
67
9
77
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL - COUNT( * ) * 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-144

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL - COUNT ( * ) * 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 76 col0 FROM tab1
----
-4484
-5168
-7296

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT ALL 19 DIV col2 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5550
SELECT ALL 19 / col2 col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT DISTINCT ( - col2 ) * col1 + 31 + + CAST( + + 46 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1096
-3003
-3809

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT ( - col2 ) * col1 + 31 + + CAST ( + + 46 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1096
-3003
-3809

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL - - ( - MAX( + 63 ) ) AS col1 FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - - ( - MAX ( + 63 ) ) AS col1 FROM tab2 cor0
----
-63

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 = + 75 * - 43 + - 43
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 = + 75 * - 43 + - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT + 67 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-5555
SELECT + 67 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-201

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + + ( - 46 ) + - col2 - - ( - - 73 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col1, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT + col2 DIV - 51 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5558
SELECT + col2 / - 51 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT - MIN( ALL + + 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - MIN ( ALL + + 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT + + col2 * + 9 * - - col0 FROM tab1 cor0
----
44064
45135
55692

query I rowsort
SELECT + + ( + + 2 ) FROM tab2 cor0
----
2
2
2

query I rowsort
SELECT - col0 * + + ( - 4 ) FROM tab1
----
204
340
364

query I rowsort
SELECT DISTINCT 8 + 82 AS col2 FROM tab2 AS cor0
----
90

query I rowsort
SELECT - + col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE - col2 / 11 IS NOT NULL
----
1
441
6561

query I rowsort
SELECT + col1 + 44 AS col1 FROM tab1 AS cor0
----
49
58
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 54 * - col2 * + 13 * + col0 col2 FROM tab1 AS cor0
----
-3437043
-3520615
-4344067

query I rowsort
SELECT ALL - 1 + col1 FROM tab0 AS cor0
----
0
20
80

query I rowsort
SELECT + 2 * + 14 AS col2 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL + 6 * COUNT( * ) * + CAST( + CAST( + 25 AS SIGNED ) AS SIGNED ) FROM tab1
----
450

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + 6 * COUNT ( * ) * + CAST ( + CAST ( + 25 AS INTEGER ) AS INTEGER ) FROM tab1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT - COUNT( DISTINCT - col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + + 25 - col0 + + col1 - + 99 * - col1 * + - col0 FROM tab0 cor0
----
-120194
-180914
-9674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT + 62 - col0 + + - CAST( - 58 AS SIGNED ) col2 FROM tab2 cor0
----
45
56
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT + 62 - col0 + + - CAST ( - 58 AS INTEGER ) col2 FROM tab2 cor0
----
45
56
74

query II rowsort
SELECT + col1, col1 * + ( + col2 ) FROM tab2
----
51
1173
67
3886
77
3080

query I rowsort
SELECT col0 * + + col0 * 33 AS col1 FROM tab2
----
135168
185625
69828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 * 11 * - col2 AS col2, 48 col2 FROM tab0
----
-103455
48
-10450
48
-49115
48

query I rowsort
SELECT ALL - + 89 FROM tab0 WHERE ( NOT ( col0 ) < col1 - - col0 )
----

query I rowsort
SELECT ALL + 16 * + col2 FROM tab2
----
368
640
928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col2 FROM tab0 WHERE NOT - 12 IS NULL
----
2
2
2

query I rowsort
SELECT DISTINCT + col2 * + 72