sqllogictest

Artifact [8db95b301c]
Login

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 AS col0 FROM tab2 AS cor0
----
1656
2880
4176

query II rowsort
SELECT DISTINCT + col0 * - col1 * + col1 AS col0, + col2 FROM tab1 AS cor0
----
-201019
68
-2125
59
-9996
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5581
SELECT ALL - MAX ( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL + - COUNT( DISTINCT + + 19 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + - COUNT ( DISTINCT + + 19 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - MIN( DISTINCT + + 40 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-40

skipif mysql # not compatible
query I rowsort label-5583
SELECT - MIN ( DISTINCT + + 40 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-40

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 68 + + + 29 AS col0, col0 + - 61 col1 FROM tab1 AS cor0
----
-39
-10
-39
24
-39
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT COUNT( * ) * - SUM( ALL + 18 ) * ( - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
1458

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT COUNT ( * ) * - SUM ( ALL + 18 ) * ( - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
1458

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5587
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) + - + 27 <= col1
----

skipif mysql # not compatible
query III rowsort label-5587
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + - + 27 <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT DISTINCT + 58 * + CAST( 75 AS SIGNED ) * + 27 * + col1 + CAST( 57 AS SIGNED ) FROM tab1
----
1644357
5520207
587307

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + 58 * + CAST ( 75 AS INTEGER ) * + 27 * + col1 + CAST ( 57 AS INTEGER ) FROM tab1
----
1644357
5520207
587307

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

skipif mysql # not compatible
query I rowsort label-5589
SELECT COUNT ( * ) / + 25 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5590
SELECT ALL + 83 DIV COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL + 83 / COUNT ( * ) FROM tab1
----
27

query I rowsort
SELECT ALL + + col1 + + col2 + col1 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT DISTINCT + 58 + - col0 FROM tab2 AS cor0
----
-17
-6
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5593
SELECT ALL + col2 * col1 DIV 37 AS col0, CAST( + - col1 AS SIGNED ) + + - col0 * + 43 * - col1 AS col1 FROM tab0 cor0
----
102
52164
2
4170
5
78540

skipif mysql # not compatible
query II rowsort label-5593
SELECT ALL + col2 * col1 / 37 AS col0, CAST ( + - col1 AS INTEGER ) + + - col0 * + 43 * - col1 AS col1 FROM tab0 cor0
----
102
52164
2
4170
5
78540

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT COUNT( * ) + 33 AS col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT COUNT ( * ) + 33 AS col2 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT COUNT( * ) + - + 88 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-5595
SELECT COUNT ( * ) + - + 88 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + 99 * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-891

skipif mysql # not compatible
query I rowsort label-5596
SELECT + 99 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-891

query I rowsort
SELECT ALL - 91 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5599
SELECT DISTINCT col1 AS col0, 11 DIV + col2 FROM tab0 AS cor0
----
1
0
21
1
81
0

skipif mysql # not compatible
query II rowsort label-5599
SELECT DISTINCT col1 AS col0, 11 / + col2 FROM tab0 AS cor0
----
1
0
21
1
81
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5603
SELECT ALL - 35 AS col1, - COUNT( * ) FROM tab2 WHERE col2 / - col1 NOT IN ( + 96 + - col1 )
----
-35
-3

skipif mysql # not compatible
query II rowsort label-5603
SELECT ALL - 35 AS col1, - COUNT ( * ) FROM tab2 WHERE col2 / - col1 NOT IN ( + 96 + - col1 )
----
-35
-3

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5605
SELECT col1 * col0, + ( 58 ) DIV - 64 AS col2 FROM tab2
----
2346
0
4928
0
5025
0

skipif mysql # not compatible
query II rowsort label-5605
SELECT col1 * col0, + ( 58 ) / - 64 AS col2 FROM tab2
----
2346
0
4928
0
5025
0

query II rowsort
SELECT col2 * + + col1 AS col2, col0 AS col2 FROM tab0
----
210
87
3807
15
99
97

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5609
SELECT DISTINCT - - 24 * + + CAST( NULL AS DECIMAL ) * + - col0 FROM tab1 AS cor0 WHERE NOT + ( col2 ) / - col2 >= - ( + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT - - 24 * + + CAST ( NULL AS REAL ) * + - col0 FROM tab1 AS cor0 WHERE NOT + ( col2 ) / - col2 >= - ( + - 70 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5610
SELECT - COUNT( * ) * 24 + + + CAST( - 15 AS SIGNED ) - 26, 80 AS col0 FROM tab2 AS cor0
----
-113
80

skipif mysql # not compatible
query II rowsort label-5610
SELECT - COUNT ( * ) * 24 + + + CAST ( - 15 AS INTEGER ) - 26, 80 AS col0 FROM tab2 AS cor0
----
-113
80

query II rowsort
SELECT + col1 + - 83 AS col0, 19 FROM tab0 AS cor0
----
-2
19
-62
19
-82
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT DISTINCT SUM( - 87 ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT SUM ( - 87 ) FROM tab2
----
-261

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT - 77 * + ( - - COUNT( * ) ) * + + 84 FROM tab2
----
-19404

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT - 77 * + ( - - COUNT ( * ) ) * + + 84 FROM tab2
----
-19404

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

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

query II rowsort
SELECT + - col0 AS col2, + 42 + + + col1 * + 42 + - - col0 FROM tab0 AS cor0
----
-15
3459
-87
1011
-97
181

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

query I rowsort
SELECT ALL + - 75 + - col0 FROM tab0 AS cor0
----
-162
-172
-90

query I rowsort
SELECT DISTINCT - - 80 * 78 * + + 2 * + 69 * + col2 FROM tab1 AS cor0
----
50806080
58556160
82667520

query I rowsort
SELECT + 3 * + - col1 * col2 * + col2 - + + col2 FROM tab0 AS cor0
----
-29502
-536834
-6310

query I rowsort
SELECT - 8 * + + col1 FROM tab2 AS cor0
----
-408
-536
-616

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT + - col1 * - - col2 + - 71 + + col0 - + + col0 DIV - 44 FROM tab2 AS cor0
----
-1197
-3086
-3881

skipif mysql # not compatible
query I rowsort label-5623
SELECT + - col1 * - - col2 + - 71 + + col0 - + + col0 / - 44 FROM tab2 AS cor0
----
-1197
-3086
-3881

query I rowsort
SELECT - col1 * + 55 AS col1 FROM tab0 AS cor0
----
-1155
-4455
-55

query I rowsort
SELECT DISTINCT 89 * 95 FROM tab0 cor0
----
8455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 WHERE 52 + + + CAST( - col1 AS SIGNED ) IN ( + + col1 + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-5626
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE 52 + + + CAST ( - col1 AS INTEGER ) IN ( + + col1 + 51 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT ALL - COUNT( DISTINCT - - 14 ), 42 AS col1 FROM tab2
----
-1
42

skipif mysql # not compatible
query II rowsort label-5627
SELECT ALL - COUNT ( DISTINCT - - 14 ), 42 AS col1 FROM tab2
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT - 49 * + ( - SUM( DISTINCT + col0 ) ) AS col1 FROM tab2
----
9065

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - 49 * + ( - SUM ( DISTINCT + col0 ) ) AS col1 FROM tab2
----
9065

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT 55 + - COUNT( * ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-5629
SELECT 55 + - COUNT ( * ) FROM tab1
----
52

query I rowsort
SELECT ALL + 16 * + 95 FROM tab2
----
1520
1520
1520

query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 + ( col0 ) NOT IN ( - - 22 / col1 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5633
SELECT * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) * + col1 / 90 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5633
SELECT * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) * + col1 / 90 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= + col1 + col1 + - - ( - 41 ) - + - col2 * - + 9
----

query I rowsort
SELECT DISTINCT - - 47 - + 11 * - col0 + col2 * 75 FROM tab1 AS cor0
----
5407
6148
7808

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

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL 72 / - col2, + col1 AS col0 FROM tab0 AS cor0
----
-1
81
-7
21
0
1

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col2 + - + 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT COUNT( * ) + + - 12 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-5638
SELECT COUNT ( * ) + + - 12 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 * + col1 * + col0 col1 FROM tab1 AS cor0
----
36125
363545
60690

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5641
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND - 79 + - - 36 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5641
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND - 79 + - - 36 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 7 * + + col1 FROM tab1 cor0
----
329
35
98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5644
SELECT col2 / - CAST( NULL AS SIGNED ) + 61 AS col2, - 19 AS col0 FROM tab1 AS cor0
----
NULL
-19
NULL
-19
NULL
-19

skipif mysql # not compatible
query II rowsort label-5644
SELECT col2 / - CAST ( NULL AS INTEGER ) + 61 AS col2, - 19 AS col0 FROM tab1 AS cor0
----
NULL
-19
NULL
-19
NULL
-19

query I rowsort
SELECT ALL + ( col1 ) * - + col1 * + 24 * - 30 FROM tab1 AS cor0
----
141120
1590480
18000

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT DISTINCT - 97 DIV col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - 97 / col1 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 58 * - col0 FROM tab0 cor0
----
-5046
-5626
-870

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 48 BETWEEN - col2 * + - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT + col0 DIV 86 AS col2 FROM tab1 WHERE NOT + 90 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5652
SELECT + col0 / 86 AS col2 FROM tab1 WHERE NOT + 90 IS NULL
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5653
SELECT + COUNT( - - CAST( ( 89 ) AS DECIMAL ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5653
SELECT + COUNT ( - - CAST ( ( 89 ) AS REAL ) ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 44 col2, - 48 * + + ( + 3 ) FROM tab2
----
44
-144
44
-144
44
-144

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT + 66 DIV - col1 FROM tab2 cor0 WHERE NOT - 71 * - col1 IN ( + 45, ( - 69 ), + 74, col2 )
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5659
SELECT + 66 / - col1 FROM tab2 cor0 WHERE NOT - 71 * - col1 IN ( + 45, ( - 69 ), + 74, col2 )
----
-1
0
0

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

skipif mysql # not compatible
query I rowsort label-5660
SELECT + + col2 / + 50 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 78 + col0 FROM tab0
----
165
175
93

query I rowsort
SELECT - ( + col1 ) + - - col0 * - 48 AS col0 FROM tab0 AS cor0
----
-4197
-4657
-801

query I rowsort
SELECT DISTINCT - col1 + + 14 * 93 FROM tab1 AS cor0
----
1255
1288
1297

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 > - - col2
----

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

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

query I rowsort
SELECT 49 AS col2 FROM tab1 cor0 WHERE NULL <= ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT + SUM( DISTINCT + 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5669
SELECT + SUM ( DISTINCT + 43 ) FROM tab1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + 36 col0 FROM tab1
----
1836
3060
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT - 41 DIV - 87 * + + 5 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5671
SELECT - 41 / - 87 * + + 5 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 - + - col2 FROM tab1
----
110
115
64

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

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

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE 68 BETWEEN NULL AND + + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - 35 + + 26 * - 86 col2, + col0 * + col1 * + 41 AS col1, + + col0 FROM tab0 AS cor0
----
9 values hashing to ebb4c61d7132ffd9637320d19971f8e9

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

skipif mysql # not compatible
query I rowsort label-5676
SELECT + MAX ( - col2 ) AS col2 FROM tab0
----
-10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 col1 FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 col1 FROM tab1 AS cor0 WHERE NOT - 38 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT - col1 DIV - col1 + + col2 AS col1 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-5680
SELECT - col1 / - col1 + + col2 AS col1 FROM tab1 AS cor0
----
60
69
97

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5683
SELECT + col2 DIV - col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-5683
SELECT + col2 / - col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT + 86 DIV - + SUM( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT + 47 * + col0 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT - ( + + col1 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + ( 49 ) FROM tab2
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 36 col0, + 98 AS col0 FROM tab1
----
36
98
36
98
36
98

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

skipif mysql # not compatible
query II rowsort label-5689
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( 60 ) FROM tab0
----
NULL
3

query I rowsort
SELECT DISTINCT + 89 + - - 35 + - col2 FROM tab2 cor0
----
101
66
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT DISTINCT - 95 + + - COUNT( * ) * + 49 - + 32 FROM tab0 AS cor0 WHERE 43 * col1 * + col0 * + - ( 93 ) + - col0 BETWEEN NULL AND col2 * + + col2 + - col2
----
-127

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - 95 + + - COUNT ( * ) * + 49 - + 32 FROM tab0 AS cor0 WHERE 43 * col1 * + col0 * + - ( 93 ) + - col0 BETWEEN NULL AND col2 * + + col2 + - col2
----
-127

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 71 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-5693
SELECT + - COUNT ( * ) * + COUNT ( * ) / - + 61 + + + 91 FROM tab1 AS cor0
----
91

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

query II rowsort
SELECT 30 * + col0 * + + 44 + col0 + 65, - col2 AS col2 FROM tab0 AS cor0
----
114992
-10
128202
-99
19880
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT col1 DIV - + 92 + + - 16 AS col0 FROM tab1
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-5696
SELECT col1 / - + 92 + + - 16 AS col0 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT + 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT col2 IS NOT NULL )
----

query I rowsort
SELECT ALL 62 + - ( - + ( 42 ) ) * col1 AS col0 FROM tab2 AS cor0
----
2204
2876
3296

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

query I rowsort
SELECT - + 71 - + + col2 AS col2 FROM tab1 AS cor0
----
-130
-139
-167

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL 81 * - MAX( + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - ( 29 ) NOT BETWEEN + col2 AND + col1 * col1 * + col2 )
----
-3807

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL 81 * - MAX ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - ( 29 ) NOT BETWEEN + col2 AND + col1 * col1 * + col2 )
----
-3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * + col0 col1, 31 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + - ( - col0 ) ) AND + - 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + + 99 + 56 AS col1, ( + col0 ) col1 FROM tab0
----
140
15
58
97
68
87

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

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

query I rowsort
SELECT + + 83 AS col2 FROM tab0 WHERE - + 31 + + + col0 <> + 56 / + col2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT 47 + COUNT( * ) AS col2 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5710
SELECT 47 + COUNT ( * ) AS col2 FROM tab0
----
50

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col2 + - col0 / + col0 * + col2 / 3 * - - 15 <> col0
----
46
64
75

query I rowsort
SELECT 52 * - 49 AS col0 FROM tab2
----
-2548
-2548
-2548

query I rowsort
SELECT DISTINCT col1 * ( + - 63 ) FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT 31 * + + col2 FROM tab0
----
1457
3069
310

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT + + col2 DIV - col2 + + 70 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + + col2 / - col2 + + 70 FROM tab2 AS cor0
----
69

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

skipif mysql # not compatible
query I rowsort label-5716
SELECT + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT - MAX( DISTINCT - 26 ) * - 90 AS col0 FROM tab1 AS cor0
----
-2340

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT - MAX ( DISTINCT - 26 ) * - 90 AS col0 FROM tab1 AS cor0
----
-2340

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT - 53 DIV col2 + col2 * - 21 FROM tab1 AS cor0
----
-1239
-1428
-2016

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 53 / col2 + col2 * - 21 FROM tab1 AS cor0
----
-1239
-1428
-2016

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

skipif mysql # not compatible
query I rowsort label-5722
SELECT - MIN ( - + col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT - col0 * + 24 FROM tab1
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1, + 45 * + 92 AS col0 FROM tab2
----
9
4140

skipif mysql # not compatible
query II rowsort label-5724
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1, + 45 * + 92 AS col0 FROM tab2
----
9
4140

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * + col0 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL = + 36
----

query I rowsort
SELECT DISTINCT + col1 + + - col1 * 44 AS col1 FROM tab2 cor0
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL MAX( ALL 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL MAX ( ALL 80 ) FROM tab1
----
80

query I rowsort
SELECT DISTINCT 82 + + ( + 75 ) AS col1 FROM tab2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT - MIN( - ( - 76 ) ) + 24 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5730
SELECT - MIN ( - ( - 76 ) ) + 24 FROM tab0 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 52 col2 FROM tab2 cor0
----
116
127
98

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

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

query I rowsort
SELECT DISTINCT col1 - col0 - + 84 AS col2 FROM tab2 AS cor0
----
-71
-79
-92

query I rowsort
SELECT col1 - + col1 + + - col1 AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL 1 - - col2 FROM tab2
----
24
41
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5736
SELECT CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) - + + ( - - 4 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) - + + ( - - 4 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT 16 - + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-5737
SELECT 16 - + COUNT ( * ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT - MIN( DISTINCT col1 ) * - COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - MIN ( DISTINCT col1 ) * - COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT - col1 DIV - col1 + - + 54 DIV 5 AS col2 FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5739
SELECT - col1 / - col1 + - + 54 / 5 AS col2 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT ALL - 66 AS col1, + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-66
-3

skipif mysql # not compatible
query II rowsort label-5740
SELECT ALL - 66 AS col1, + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-66
-3

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

query I rowsort
SELECT + col1 * - 62 * + 75 FROM tab2
----
-237150
-311550
-358050

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

query I rowsort
SELECT DISTINCT + col0 * + - 95 * - + col0 - + + col1 + col0 + 17 + - + col2 + + 38 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 NOT BETWEEN 18 AND + + col2
----

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

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

query I rowsort
SELECT + + 3 AS col1 FROM tab0 cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT - 46 * + COUNT( * ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT - 46 * + COUNT ( * ) FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT + + 79 * COUNT( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + + 79 * COUNT ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT + 73 / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 73 / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT COUNT( * ) * - 47 AS col0 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-5752
SELECT COUNT ( * ) * - 47 AS col0 FROM tab1
----
-141

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

query I rowsort
SELECT DISTINCT 74 * + col2 FROM tab1
----
4366
5032
7104

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

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

query I rowsort
SELECT col2 * - col1 * + col1 + - + col0 FROM tab1
----
-150303
-1560
-18867

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

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

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

query I rowsort
SELECT + 73 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL - 55 + - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-49

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - 55 + - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-49

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

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

query I rowsort
SELECT DISTINCT + ( - 82 ) + + col2 AS col0 FROM tab0 AS cor0
----
-35
-72
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT 31 DIV + 41 - - 71 FROM tab2 cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5764
SELECT 31 / + 41 - - 71 FROM tab2 cor0
----
71
71
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT 85 + + COUNT( * ) * - 96 col2 FROM tab0 AS cor0
----
-203

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 40 < + col0
----
87
21
10
97
1
99

query II rowsort
SELECT ALL - - 39 - + col0 AS col2, col2 FROM tab2 AS cor0
----
-25
40
-36
58
-7
23

query I rowsort
SELECT ALL + + 40 + - col0 + + - col2 * - col0 * col2 AS col1 FROM tab2 cor0
----
102376
24328
252265

onlyif mysql # DIV for integer division: 
query I rowsort label-5770
SELECT ALL - + 92 + - col2 + + - ( - ( + + col1 ) ) + - col2 * + col0 DIV - + col0 col0 FROM tab2 AS cor0
----
-15
-25
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5770
SELECT ALL - + 92 + - col2 + + - ( - ( + + col1 ) ) + - col2 * + col0 / - + col0 col0 FROM tab2 AS cor0
----
-15
-25
-41

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

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

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

query I rowsort
SELECT ALL + col1 - - col0 FROM tab2 WHERE 62 <> + 15 * + col2 - - col0 + - ( - col0 ) + col1 / + 96 * + col2 - col2
----
141
142
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT + 78 * - col2 DIV col2 FROM tab0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-5775
SELECT + 78 * - col2 / col2 FROM tab0
----
-78
-78
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-5776
SELECT ALL col1, - 75 DIV - - col2 col1 FROM tab1 AS cor0
----
14
0
47
-1
5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5776
SELECT ALL col1, - 75 / - - col2 col1 FROM tab1 AS cor0
----
14
0
47
-1
5
-1

query I rowsort
SELECT ALL - col2 * 32 * + ( + col1 ) FROM tab2
----
-124352
-37536
-98560

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

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

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

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

query II rowsort
SELECT DISTINCT col1 + + - 89 AS col1, 25 FROM tab1 AS cor0
----
-42
25
-75
25
-84
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, + col2 * - 26 col0 FROM tab2 cor0
----
23
-598
40
-1040
58
-1508

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5784
SELECT ALL - + col0 AS col0, CAST( NULL AS SIGNED ) * + ( CAST( - - col0 AS SIGNED ) ) * - col0 + + ( - col1 ) - - 28 AS col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL - + col0 AS col0, CAST ( NULL AS INTEGER ) * + ( CAST ( - - col0 AS INTEGER ) ) * - col0 + + ( - col1 ) - - 28 AS col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 12 + ( - - 74 )
----

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

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

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

query I rowsort
SELECT col2 * - 32 * + col2 FROM tab2
----
-107648
-16928
-51200

query I rowsort
SELECT DISTINCT col0 + - 10 + 1 AS col0 FROM tab2
----
37
55
66

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

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

query I rowsort
SELECT ALL + 44 - - col0 * + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-249652
-426231
-563064

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

query I rowsort
SELECT ALL 78 + 55 AS col1 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT ALL - - col2 * - - col2 FROM tab0 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
100
2209
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5795
SELECT ALL + col0 * col2 * - CAST( NULL AS DECIMAL ) AS col1, 55 AS col2 FROM tab1 AS cor0
----
NULL
55
NULL
55
NULL
55

skipif mysql # not compatible
query II rowsort label-5795
SELECT ALL + col0 * col2 * - CAST ( NULL AS REAL ) AS col1, 55 AS col2 FROM tab1 AS cor0
----
NULL
55
NULL
55
NULL
55

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5797
SELECT ( + 15 ) AS col1, + col0 DIV + 54 FROM tab0
----
15
0
15
1
15
1

skipif mysql # not compatible
query II rowsort label-5797
SELECT ( + 15 ) AS col1, + col0 / + 54 FROM tab0
----
15
0
15
1
15
1

query II rowsort
SELECT DISTINCT - ( - + col0 ) AS col0, col2 * + ( + col1 ) FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT + MAX( + + 6 ) * ( - 80 ) * + - 59 * - 9 AS col1 FROM tab1
----
-254880

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT + MAX ( + + 6 ) * ( - 80 ) * + - 59 * - 9 AS col1 FROM tab1
----
-254880

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 25 ) > NULL
----

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

query I rowsort
SELECT + - 76 * - - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-3445
-4787
-5633

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

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

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

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

query I rowsort
SELECT ALL 55 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 57 * - 50 AS col2 FROM tab0 AS cor0
----
2850
2850
2850

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5814
SELECT 48 / MAX ( + col1 ) col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * + - 59 * - col2 col2 FROM tab0
----
183018
385506
38940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT COUNT( * ) DIV - 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT COUNT ( * ) / - 92 FROM tab2
----
0

query II rowsort
SELECT ALL col0 AS col2, 60 + - + 67 AS col2 FROM tab0
----
15
-7
87
-7
97
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT - SUM( + + 59 ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - SUM ( + + 59 ) FROM tab2
----
-177

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

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

query I rowsort
SELECT + - 41 + + + col1 AS col2 FROM tab2 AS cor0
----
10
26
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT + ( + - col2 ) DIV + col2 + - - col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5821
SELECT + ( + - col2 ) / + col2 + - - col2 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT - col2 + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-120
-174
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + - col0 + + col2 col0 FROM tab0 AS cor0
----
-29
50
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + col2 col2 FROM tab0 AS cor0
----
127
38
75

query II rowsort
SELECT - 92 AS col2, + col2 * - - ( - 97 ) FROM tab0 AS cor0
----
-92
-4559
-92
-9603
-92
-970

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - ( - + col2 ) + + 44 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT 83 * + - COUNT( * ) * 94 AS col2 FROM tab2 cor0
----
-23406

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT 83 * + - COUNT ( * ) * 94 AS col2 FROM tab2 cor0
----
-23406

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT + SUM( - 95 ) AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + SUM ( - 95 ) AS col1 FROM tab1
----
-285

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

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

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

query I rowsort
SELECT 75 * col1 + + col0 * - 96 FROM tab0
----
-6777
-9237
4635

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT DISTINCT COUNT( * ) * 50 AS col2 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT COUNT ( * ) * 50 AS col2 FROM tab1
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT 27 + 75 DIV ( - COUNT( * ) * + 80 ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5839
SELECT 27 + 75 / ( - COUNT ( * ) * + 80 ) AS col0 FROM tab0
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * ( col0 ) + 92 NOT BETWEEN NULL AND col2 - - 89
----

query I rowsort
SELECT DISTINCT - col1 * 38 AS col0 FROM tab0
----
-3078
-38
-798

query I rowsort
SELECT ALL 69 + 31 AS col0 FROM tab1
----
100
100
100

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) * col1 + 16 FROM tab0
----
-425
-6545
15

query I rowsort
SELECT 82 * - col1 AS col2 FROM tab0
----
-1722
-6642
-82

query I rowsort
SELECT DISTINCT col0 * - col1 + col2 AS col0 FROM tab0 WHERE ( - 86 + ( col2 + + col2 ) * 58 ) IS NOT NULL
----
-1168
-1817
2

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - - col1 < 44
----

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

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

skipif mysql # not compatible
query I rowsort label-5849
SELECT - 42 * - COUNT ( * ) FROM tab0
----
126

query I rowsort
SELECT ALL - 20 * 58 FROM tab2
----
-1160
-1160
-1160

query I rowsort
SELECT DISTINCT - AVG ( - 24 ) FROM tab2 WHERE col2 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ( 72 ) * COUNT( * ) AS col2 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-5853
SELECT ( 72 ) * COUNT ( * ) AS col2 FROM tab1
----
216

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5854
SELECT DISTINCT * FROM tab1 WHERE col2 >= ( col0 * + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5854
SELECT DISTINCT * FROM tab1 WHERE col2 >= ( col0 * + CAST ( NULL AS REAL ) )
----

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

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

query I rowsort
SELECT DISTINCT - ( - 2 ) / + col0 + + col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + 61 )
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( 65 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - SUM( 9 ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-5862
SELECT - SUM ( 9 ) AS col1 FROM tab2
----
-27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT ALL col2 DIV 59 + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL col2 / 59 + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT - COUNT( * ) - COUNT( * ) DIV - 41 col2 FROM tab1 cor0
----
-3

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

query I rowsort
SELECT + 55 FROM tab1 AS cor0 WHERE NULL >= NULL
----

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

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

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

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

query I rowsort
SELECT ALL + ( + col2 ) * + 35 FROM tab2
----
1400
2030
805

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 76 col2 FROM tab1 AS cor0
----
-4484
-5168
-7296

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT 32 BETWEEN ( col2 ) AND NULL
----
59
68
96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 * - col0 BETWEEN ( NULL ) AND + col2 * + 26
----
2

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 * - col0 BETWEEN ( NULL ) AND + col2 * + 26
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT DISTINCT + COUNT( * ) * 30 AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT + COUNT ( * ) * 30 AS col0 FROM tab0
----
90

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL = - col0
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col2 ) <> + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT + 73 * COUNT( * ) col0 FROM tab0
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5884
SELECT DISTINCT + 73 * COUNT ( * ) col0 FROM tab0
----
219

query I rowsort
SELECT ALL - col1 * - 73 AS col0 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT ( 14 ) AS col2 FROM tab0
----
14
14
14

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

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT - ( - MIN ( 47 ) ) AS col2 FROM tab1 WHERE + ( col2 ) * col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 46 * 52 AS col2 FROM tab1
----
-2392

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT - 23 * 78 + + col1 / - 98 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) > col2 + CAST( - col0 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-5890
SELECT - 23 * 78 + + col1 / - 98 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) > col2 + CAST ( - col0 AS INTEGER ) * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5891
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5891
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * + col1 + 28 * 67 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT + col0 DIV - col0 + 65 col1 FROM tab2 AS cor0
----
64
64
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5894
SELECT + col0 / - col0 + 65 col1 FROM tab2 AS cor0
----
64
64
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL COUNT( * ) * - 51 AS col2 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL COUNT ( * ) * - 51 AS col2 FROM tab2
----
-153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT ALL - + col1 * - col0 DIV + col0 + - col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - + col1 * - col0 / + col0 + - col0 FROM tab1 AS cor0
----
-37
-44
-80

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

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

query I rowsort
SELECT DISTINCT + ( + col1 ) - - col0 * col2 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT 23 DIV - col0 * + 39 - + 65 FROM tab1 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-5901
SELECT 23 / - col0 * + 39 - + 65 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + 84 FROM tab1 AS cor0 WHERE NOT + col0 <> + + col1 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT - + COUNT( * ) + 29 AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5903
SELECT - + COUNT ( * ) + 29 AS col0 FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT - 33 + 12 FROM tab1 AS cor0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - COUNT( * ) + 72 col2 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5906
SELECT - COUNT ( * ) + 72 col2 FROM tab2
----
69

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5908
SELECT 5 AS col0 FROM tab1 WHERE ( - col0 ) BETWEEN - 97 * col0 AND col1 * - CAST( CAST( 13 AS DECIMAL ) AS DECIMAL )
----
5

skipif mysql # not compatible
query I rowsort label-5908
SELECT 5 AS col0 FROM tab1 WHERE ( - col0 ) BETWEEN - 97 * col0 AND col1 * - CAST ( CAST ( 13 AS REAL ) AS REAL )
----
5

query II rowsort
SELECT DISTINCT col0 * + + col2 AS col0, col1 FROM tab0
----
705
81
870
21
9603
1

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

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

query I rowsort
SELECT DISTINCT 99 + col1 AS col2 FROM tab0 WHERE NOT 72 * - col2 NOT IN ( + ( col2 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT - MAX( + col0 ) AS col2 FROM tab0 WHERE NOT NULL <> ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - MAX ( + col0 ) AS col2 FROM tab0 WHERE NOT NULL <> ( - col0 )
----
NULL

query I rowsort
SELECT + + 77 AS col2 FROM tab0 AS cor0
----
77
77
77

query I rowsort
SELECT ALL - + ( + 3 ) + - col1 AS col1 FROM tab0 AS cor0
----
-24
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL SUM( DISTINCT + 54 ) FROM tab2 AS cor0 WHERE ( ( 57 ) * 33 + 60 + - col2 ) >= + col0
----
54

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL SUM ( DISTINCT + 54 ) FROM tab2 AS cor0 WHERE ( ( 57 ) * 33 + 60 + - col2 ) >= + col0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5918
SELECT - ( + ( + CAST( + col1 AS DECIMAL ) ) ) AS col0 FROM tab1 WHERE NOT + 35 NOT BETWEEN + 44 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5918
SELECT - ( + ( + CAST ( + col1 AS REAL ) ) ) AS col0 FROM tab1 WHERE NOT + 35 NOT BETWEEN + 44 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT - 26 AS col1, 86 + COUNT( * ) FROM tab1 cor0
----
-26
89

skipif mysql # not compatible
query II rowsort label-5919
SELECT - 26 AS col1, 86 + COUNT ( * ) FROM tab1 cor0
----
-26
89

query II rowsort
SELECT + 90 * 18 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT MIN( - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT MIN ( - - col0 ) FROM tab0 AS cor0
----
15

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

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

query I rowsort
SELECT + col1 * + 17 FROM tab1 AS cor0
----
238
799
85

query II rowsort
SELECT + - 68 * + - ( + 42 ), + col1 AS col2 FROM tab0 AS cor0
----
2856
1
2856
21
2856
81

query I rowsort
SELECT ALL 70 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
70
70

query II rowsort
SELECT ALL + col1, - col2 * + + col2 FROM tab1 AS cor0
----
14
-9216
47
-4624
5
-3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 42 col1, + col2 - + 50 * - + col2 * + col1 - - col0 * col1 AS col0 FROM tab1 AS cor0
----
42
15234
42
164145
42
68010

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

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

query II rowsort
SELECT + 46 AS col1, col2 + col0 FROM tab2 AS cor0
----
46
104
46
133
46
69

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

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

query I rowsort
SELECT DISTINCT col2 * 48 FROM tab2
----
1104
1920
2784

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT COUNT( * ) AS col1, 98 col1 FROM tab2
----
3
98

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

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

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

query I rowsort
SELECT DISTINCT 64 * - - col1 FROM tab1
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL MIN( DISTINCT - col1 ) * - 45 AS col2 FROM tab1
----
2115

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL MIN ( DISTINCT - col1 ) * - 45 AS col2 FROM tab1
----
2115

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - - col0 + + col2 * + 62 NOT IN ( - - 54 )
----
46
64
75

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

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

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

query I rowsort
SELECT col2 + 6 * + 64 AS col2 FROM tab0 WHERE + + col0 * - + 83 * - 30 / + col1 IS NOT NULL
----
394
431
483

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( - - 92 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + - 26 + - + col1 * - col2 AS col0 FROM tab2 AS cor0
----
1147
3054
3860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5943
SELECT - - 64 + + - 83 AS col2, ( + - 79 ) * + col2 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-19
-3760
-19
-7920
-19
-800

skipif mysql # not compatible
query II rowsort label-5943
SELECT - - 64 + + - 83 AS col2, ( + - 79 ) * + col2 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-19
-3760
-19
-7920
-19
-800

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5948
SELECT DISTINCT + 50 - + COUNT( * ) + + 32 * 65 DIV 21 * - 31 col2 FROM tab0 AS cor0
----
-3022

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5948
SELECT DISTINCT + 50 - + COUNT ( * ) + + 32 * 65 / 21 * - 31 col2 FROM tab0 AS cor0
----
-3022

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < + ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT DISTINCT 71 DIV col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT 71 / col1 FROM tab1
----
1
14
5

query I rowsort
SELECT ( - - 30 ) * - 72 AS col1 FROM tab1
----
-2160
-2160
-2160

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT - col2 DIV - col1 * - ( - col1 ) FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5955
SELECT - col2 / - col1 * - ( - col1 ) FROM tab0
----
0
0
99

query I rowsort
SELECT 10 * + + col2 FROM tab1
----
590
680
960

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 23 + col1 + - + col0 NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col1 - col2 col1 FROM tab2
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL MAX( - col2 ) AS col0 FROM tab1 cor0 WHERE NOT + 43 = + + col0
----
-59

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL MAX ( - col2 ) AS col0 FROM tab1 cor0 WHERE NOT + 43 = + + col0
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT - COUNT( DISTINCT + 28 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5963
SELECT - COUNT ( DISTINCT + 28 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT ALL - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT - + COUNT( * ) * + ( + 6 ) + + - 24 * COUNT( * ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5967
SELECT - + COUNT ( * ) * + ( + 6 ) + + - 24 * COUNT ( * ) FROM tab1 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5968
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + + CAST( - col1 AS SIGNED ), + col2 )
----

skipif mysql # not compatible
query III rowsort label-5968
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + + CAST ( - col1 AS INTEGER ), + col2 )
----

query I rowsort
SELECT - 75 * - col2 FROM tab2
----
1725
3000
4350

query II rowsort
SELECT col1, + col0 AS col1 FROM tab0
----
1
97
21
87
81
15

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

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

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

skipif mysql # not compatible
query I rowsort label-5972
SELECT - COUNT ( * ) * COUNT ( DISTINCT - col2 ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-5973
SELECT col2 DIV col1 * + col2 AS col1, ( + col1 ) AS col2 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-5973
SELECT col2 / col1 * + col2 AS col1, ( + col1 ) AS col2 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT DISTINCT 22 * + 76 AS col0 FROM tab2
----
1672

query I rowsort
SELECT DISTINCT + col2 + - + 2 FROM tab0
----
45
8
97

query I rowsort
SELECT ALL + + 43 AS col1 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT - + col0 + 43 AS col2 FROM tab1 AS cor0
----
-42
-48
-8

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

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

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

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

query I rowsort
SELECT DISTINCT 33 + - + col2 FROM tab0 AS cor0
----
-14
-66
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 78 ) <> 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT DISTINCT - col2 DIV 72 * 41 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - col2 / 72 * 41 FROM tab2
----
0

query I rowsort
SELECT ALL - ( + col2 ) + - col2 FROM tab2
----
-116
-46
-80

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

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

query II rowsort
SELECT DISTINCT 7, - 66 * + col0 AS col1 FROM tab1 AS cor0
----
7
-3366
7
-5610
7
-6006

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

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

query I rowsort
SELECT + - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT + col2 - - 56 AS col1 FROM tab1 AS cor0
----
115
124
152

query I rowsort
SELECT DISTINCT - col1 * 37 + - 11 AS col2 FROM tab2 AS cor0
----
-1898
-2490
-2860

query I rowsort
SELECT ALL 78 - - + col0 FROM tab1 AS cor0
----
129
163
169

onlyif mysql # aggregate syntax: 
query II rowsort label-5991
SELECT - COUNT( * ) + + 55 AS col0, 71 AS col0 FROM tab2 AS cor0
----
52
71

skipif mysql # not compatible
query II rowsort label-5991
SELECT - COUNT ( * ) + + 55 AS col0, 71 AS col0 FROM tab2 AS cor0
----
52
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5992
SELECT * FROM tab2 AS cor0 WHERE col0 * CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) + + + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5992
SELECT * FROM tab2 AS cor0 WHERE col0 * CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) + + + col2 <> NULL
----

query II rowsort
SELECT + col2 + col1 AS col1, col1 AS col2 FROM tab0 AS cor0
----
100
1
128
81
31
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT col2 + - col1 - - + CAST( + col0 AS SIGNED ) * col1 FROM tab2
----
2318
4891
5016

skipif mysql # not compatible
query I rowsort label-5995
SELECT col2 + - col1 - - + CAST ( + col0 AS INTEGER ) * col1 FROM tab2
----
2318
4891
5016

query I rowsort
SELECT ALL + 11 * + 22 * + ( - ( 9 ) ) * + 83 - - 87 AS col0 FROM tab2
----
-180687
-180687
-180687

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ( + + 75 ) * COUNT( ALL - 5 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5998
SELECT ( + + 75 ) * COUNT ( ALL - 5 ) FROM tab2
----
225

query I rowsort
SELECT 20 * - col0 FROM tab2
----
-1280
-1500
-920

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - col1 * col0 NOT BETWEEN + + col1 AND - 77
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6004
SELECT DISTINCT - col2, 93 + - - CAST( - + 12 AS SIGNED ) AS col1 FROM tab1
----
-59
81
-68
81
-96
81

skipif mysql # not compatible
query II rowsort label-6004
SELECT DISTINCT - col2, 93 + - - CAST ( - + 12 AS INTEGER ) AS col1 FROM tab1
----
-59
81
-68
81
-96
81

query I rowsort
SELECT ( - col1 ) * + + 26 * col1 AS col1 FROM tab2 AS cor0
----
-116714
-154154
-67626

query I rowsort
SELECT ALL + + 40 FROM tab2 cor0 WHERE NOT NULL BETWEEN 3 + col1 * col1 + col0 AND - col0 + + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6007
SELECT - COUNT( * ) AS col1, - 22 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col1 + col1 IN ( - - col0 / - col0, col0 )
----
0
-22

skipif mysql # not compatible
query II rowsort label-6007
SELECT - COUNT ( * ) AS col1, - 22 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col1 + col1 IN ( - - col0 / - col0, col0 )
----
0
-22

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6010
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( ( CAST( + + 10 AS SIGNED ) ) > ( - col1 ) ) )
----

skipif mysql # not compatible
query III rowsort label-6010
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( ( CAST ( + + 10 AS INTEGER ) ) > ( - col1 ) ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6011
SELECT ALL + + 73 / - col2 col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT DISTINCT + 62 + + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + 62 + + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - col0 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 + ( + ( + col2 ) ) col1 FROM tab1
----
125
88
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6015
SELECT ALL - 79 + - col1 DIV + + 77 - col2 * + + col1 AS col1 FROM tab0 AS cor0
----
-178
-289
-3887

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - 79 + - col1 / + + 77 - col2 * + + col1 AS col1 FROM tab0 AS cor0
----
-178
-289
-3887

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 88 + 59 / + col0 + + 57 IS NOT NULL
----

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

query I rowsort
SELECT - col2 + + - 8 AS col2 FROM tab2
----
-31
-48
-66

query I rowsort
SELECT 38 + + col0 FROM tab1
----
123
129
89

query I rowsort
SELECT + 58 + - + 14 * + col0 FROM tab0
----
-1160
-1300
-152

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

skipif mysql # not compatible
query I rowsort label-6022
SELECT - col2 + col1 / + + col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT - + 74 + - COUNT( + 65 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6023
SELECT - + 74 + - COUNT ( + 65 ) AS col1 FROM tab2 AS cor0
----
-77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - MIN( + - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6026
SELECT - MIN ( + - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT ALL col1 - - - CAST( NULL AS SIGNED ) * 32 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT - col1, - col1 - - - col2 AS col2 FROM tab2
----
-51
-74
-67
-125
-77
-117

query II rowsort
SELECT - 79 AS col2, + 12 AS col1 FROM tab2
----
-79
12
-79
12
-79
12

query I rowsort
SELECT - 23 * - 49 FROM tab1
----
1127
1127
1127

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

query I rowsort
SELECT DISTINCT - 2 * - ( - - col0 ) FROM tab0
----
174
194
30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT DISTINCT - 24 * + ( + COUNT( * ) ) * - - SUM( ALL - - ( - + col1 ) ) * COUNT( * ) AS col0 FROM tab1
----
14256

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT - 24 * + ( + COUNT ( * ) ) * - - SUM ( ALL - - ( - + col1 ) ) * COUNT ( * ) AS col0 FROM tab1
----
14256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 21 col2 FROM tab0 AS cor0
----
1827
2037
315

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

query I rowsort
SELECT ALL 2 * + - 11 + + col2 + col1 * - - col1 FROM tab0 cor0
----
429
6586
78

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

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

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

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - MIN ( ALL 14 ) FROM tab1 AS cor0
----
-14

query II rowsort
SELECT ALL + 57 AS col2, - ( - - col2 ) - - col0 * + col1 + + 17 * + + col2 AS col0 FROM tab2
----
57
2714
57
5568
57
5953

query I rowsort
SELECT 40 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT DISTINCT col1 * - - 86 * - - col1 + + - 85 + 53 DIV 26 * + ( + - col0 ) FROM tab0
----
-193
37667
564131

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT col1 * - - 86 * - - col1 + + - 85 + 53 / 26 * + ( + - col0 ) FROM tab0
----
-193
37667
564131

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

skipif mysql # not compatible
query II rowsort label-6044
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) + + 30 AS col0 FROM tab0
----
3
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6045
SELECT DISTINCT MIN( DISTINCT + col1 ) * - CAST( COUNT( * ) AS SIGNED ) + + - 85 FROM tab2
----
-238

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT MIN ( DISTINCT + col1 ) * - CAST ( COUNT ( * ) AS INTEGER ) + + - 85 FROM tab2
----
-238

query I rowsort
SELECT - col2 * - col2 * - col0 + + col2 + + 44 + + 45 - col0 * + 35 + col2 AS col1 FROM tab2 AS cor0
----
-104471
-254720
-25809

query I rowsort
SELECT + col2 + - + col1 AS col0 FROM tab0 cor0
----
-11
-34
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 + col2 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 20 + - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 49 * 6 AS col2 FROM tab2
----
294
294
294

query II rowsort
SELECT DISTINCT col2 + col2, + col1 FROM tab1
----
118
5
136
47
192
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT - CAST( + col0 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-6053
SELECT - CAST ( + col0 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab0 cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 95 * + 93 col1 FROM tab2 AS cor0
----
8886
8902
8912

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - - 41 BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6057
SELECT ALL + 18 * - + COUNT( * ), - 15 col0 FROM tab2 AS cor0
----
-54
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6057
SELECT ALL + 18 * - + COUNT ( * ), - 15 col0 FROM tab2 AS cor0
----
-54
-15

query I rowsort
SELECT col0 + - 17 - 59 AS col1 FROM tab1 AS cor0
----
-25
15
9

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

query I rowsort
SELECT - + col1 + + col2 * - col1 AS col0 FROM tab0 cor0
----
-100
-231
-3888

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

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

query I rowsort
SELECT ALL + 10 * - + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT + + COUNT( DISTINCT - + 74 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - - 32 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6063
SELECT + + COUNT ( DISTINCT - + 74 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - - 32 AND NULL
----
0

query I rowsort
SELECT + col1 / + - col0 AS col2 FROM tab0 WHERE NOT col1 BETWEEN + col1 * - 78 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT COUNT( * ) FROM tab2 WHERE NOT - 49 BETWEEN NULL AND - col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-6065
SELECT COUNT ( * ) FROM tab2 WHERE NOT - 49 BETWEEN NULL AND - col2 * - col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6066
SELECT - col2 + + + 72 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) + col1 NOT BETWEEN - 42 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6066
SELECT - col2 + + + 72 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) + col1 NOT BETWEEN - 42 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL - COUNT( * ) * - MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-225

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

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

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

query I rowsort
SELECT ( - + 21 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 < + col1 - + + col1
----

query I rowsort
SELECT ALL + 74 + + col0 FROM tab1 AS cor0
----
125
159
165

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

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

query I rowsort
SELECT DISTINCT + + col0 + 2 AS col1 FROM tab1 AS cor0
----
53
87
93

query I rowsort
SELECT ALL - 40 * + col1 FROM tab1
----
-1880
-200
-560

query I rowsort
SELECT DISTINCT col2 * 22 * - 89 AS col2 FROM tab0
----
-193842
-19580
-92026

query I rowsort
SELECT - col2 * - - col1 + - - col1 - - + 80 * col0 + - 33 + + col0 FROM tab2 WHERE col0 + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 21 col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT 34 DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6081
SELECT 34 / + col2 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT MAX( ALL - - 65 ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-6082
SELECT MAX ( ALL - - 65 ) AS col0 FROM tab2
----
65

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

query I rowsort
SELECT ALL + 64 + - col2 FROM tab0 AS cor0
----
-35
17
54

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

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

query I rowsort
SELECT col2 + + 4 AS col2 FROM tab0
----
103
14
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT 56 + - ( - + COUNT( * ) ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6088
SELECT 56 + - ( - + COUNT ( * ) ) col1 FROM tab1
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - COUNT( + - col1 ) + - COUNT( DISTINCT - col1 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6090
SELECT - COUNT ( + - col1 ) + - COUNT ( DISTINCT - col1 ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT DISTINCT - - 41 DIV col2 * col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - - 41 / col2 * col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
0

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 59 * - 4 IS NULL
----

query I rowsort
SELECT - 88 - + 34 FROM tab0, tab1 AS cor0
----
9 values hashing to 97c3ba666d673221fff4e688a6abbea1

query I rowsort
SELECT ALL col2 * - col2 * - - 86 AS col2 FROM tab1
----
-299366
-397664
-792576

query I rowsort
SELECT ALL ( + 12 ) FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT + col2 * - + 42 / + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT + col2 * - + 42 / + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 / 60 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL + 2 * + + col0 FROM tab2
----
128
150
92

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

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

query I rowsort
SELECT DISTINCT + col0 * - - col0 + + 58 * + + col0 + + - 67 FROM tab0 AS cor0
----
1028
12548
14968

query I rowsort
SELECT DISTINCT + - 3 + + - col1 - 57 FROM tab2 AS cor0
----
-111
-127
-137

query I rowsort
SELECT ALL + 43 * + col2 AS col2 FROM tab0 AS cor0
----
2021
4257
430

query II rowsort
SELECT DISTINCT + col1 * col0 + - col2, - ( + col0 ) * + - col0 AS col0 FROM tab0 AS cor0
----
-2
9409
1168
225
1817
7569

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

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

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE NOT - 63 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT + CAST( + - col0 AS SIGNED ) * - col2 AS col0 FROM tab1 WHERE NULL BETWEEN col0 + - col0 AND + col2
----

skipif mysql # not compatible
query I rowsort label-6111
SELECT + CAST ( + - col0 AS INTEGER ) * - col2 AS col0 FROM tab1 WHERE NULL BETWEEN col0 + - col0 AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT DISTINCT 36 DIV + MAX( + + col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT 36 / + MAX ( + + col0 ) AS col2 FROM tab1
----
0

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

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

query I rowsort
SELECT 28 + + 66 FROM tab2 AS cor0
----
94
94
94

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

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

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

query I rowsort
SELECT ALL col2 * - col2 - col2 FROM tab2
----
-1640
-3422
-552

query II rowsort
SELECT 20 + + col1 + + 28 * col2 * + 56 AS col1, - col0 - - 44 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT SUM( ALL - 29 ) * - 41 AS col1 FROM tab2
----
3567

skipif mysql # not compatible
query I rowsort label-6121
SELECT SUM ( ALL - 29 ) * - 41 AS col1 FROM tab2
----
3567

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT SUM( DISTINCT - col0 ) * - 45 FROM tab0 AS cor0
----
8955

skipif mysql # not compatible
query I rowsort label-6122
SELECT SUM ( DISTINCT - col0 ) * - 45 FROM tab0 AS cor0
----
8955

query II rowsort
SELECT + col1 * + - col1 * + 33 * + + col0 * + - 7, + col1 FROM tab0 AS cor0
----
22407
1
22733865
81
8862777
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL + 89 * + - MAX( - col0 ) + - - 17 FROM tab1 AS cor0
----
4556

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + 89 * + - MAX ( - col0 ) + - - 17 FROM tab1 AS cor0
----
4556

query I rowsort
SELECT ALL + + 25 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 89 AND NULL
----

query I rowsort
SELECT 72 * - 37 FROM tab1 AS cor0
----
-2664
-2664
-2664

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

query I rowsort
SELECT col2 * - - 9 FROM tab1
----
531
612
864

query I rowsort
SELECT DISTINCT 93 * + - col2 AS col1 FROM tab0
----
-4371
-9207
-930

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6132
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ), + 43 )
----

skipif mysql # not compatible
query III rowsort label-6132
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ), + 43 )
----

query I rowsort
SELECT ALL - + col1 + 84 AS col1 FROM tab2 AS cor0
----
17
33
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - 58 ) - - 36 IN ( + col0 )
----

query II rowsort
SELECT DISTINCT + col2 + - 49, col0 * + col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT col1 * + 47 + - col0 * + 24 * + col1 FROM tab1
----
-100439
-16478
-9965

query I rowsort
SELECT + col2 + - + col2 * - 91 + - col0 FROM tab1
----
5343
6165
8781

onlyif mysql # DIV for integer division: 
query II rowsort label-6140
SELECT - col0 * + col2 + col2 + + col0 + 14 DIV + - col0 + + col2 DIV - col1 * + col0, + col1 AS col1 FROM tab2 cor0
----
-2456
77
-4217
67
-989
51

skipif mysql # not compatible
query II rowsort label-6140
SELECT - col0 * + col2 + col2 + + col0 + 14 / + - col0 + + col2 / - col1 * + col0, + col1 AS col1 FROM tab2 cor0
----
-2456
77
-4217
67
-989
51

query I rowsort
SELECT + col0 + - 9 FROM tab1 AS cor0
----
42
76
82

query I rowsort
SELECT DISTINCT + - ( - + col2 ) + 30 AS col2 FROM tab1 AS cor0
----
126
89
98

query I rowsort
SELECT + col0 + - 84 AS col1 FROM tab0 AS cor0
----
-69
13
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 89 + col1 BETWEEN + + col2 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL - 57 + + + COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL - 57 + + + COUNT ( * ) FROM tab0
----
-54

query I rowsort
SELECT 41 - + 30 + 20 * col2 FROM tab0
----
1991
211
951

query II rowsort
SELECT DISTINCT 13, - col1 + col1 * col0 + col2 AS col0 FROM tab1
----
13
4298
13
479
13
796

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

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

query I rowsort
SELECT DISTINCT + 2 * + 36 + + - ( 58 ) AS col1 FROM tab1 AS cor0
----
14

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * + col2 + + 66 AS col0 FROM tab0 AS cor0
----
-144
-33
-3741

query I rowsort
SELECT ALL - col0 * - - 51 FROM tab2 AS cor0
----
-2346
-3264
-3825

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT + - ( + 39 ) DIV + col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + - ( + 39 ) / + col1 FROM tab2 cor0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT + 44 / + + COUNT( DISTINCT col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT + 44 / + + COUNT ( DISTINCT col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 col0, + col0 * 31 AS col1 FROM tab0 cor0
----
40
2697
40
3007
40
465

query I rowsort
SELECT + ( + - col2 ) * - col0 FROM tab2 cor0
----
1058
2560
4350

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 * + 7 NOT IN ( + col2 )
----

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - + ( col2 ) * - col0 + ( + - ( - col2 ) ) NOT BETWEEN 47 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT - + COUNT( + + col1 ) + - - COUNT( * ) col0 FROM tab1 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6169
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 50 > - col1 + col2 + col1 + - CAST( + + 37 AS SIGNED ) / + 91 * 75
----
97
1
99

skipif mysql # not compatible
query III rowsort label-6169
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 50 > - col1 + col2 + col1 + - CAST ( + + 37 AS INTEGER ) / + 91 * 75
----
97
1
99

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

query I rowsort
SELECT + + col2 + - col2 * 51 AS col0 FROM tab2 AS cor0
----
-1150
-2000
-2900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 - + col1 col0 FROM tab2 AS cor0
----
-106
-116
-90

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

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

query I rowsort
SELECT - - 89 + - col0 + - col0 * + 20 + col0 FROM tab2 AS cor0
----
-1191
-1411
-831

query I rowsort
SELECT col0 * - - 98 + 92 FROM tab2 AS cor0
----
4600
6364
7442

onlyif mysql # DIV for integer division: 
query II rowsort label-6176
SELECT DISTINCT + - col2, - col1 DIV + col0 AS col0 FROM tab2 cor0
----
-23
-1
-40
-1
-58
0

skipif mysql # not compatible
query II rowsort label-6176
SELECT DISTINCT + - col2, - col1 / + col0 AS col0 FROM tab2 cor0
----
-23
-1
-40
-1
-58
0

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 68 - - col1 - + + col2 * - col0 + - - col2 ) = col0
----
59
170
68
182
96
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6178
SELECT * FROM tab2 WHERE + 77 NOT IN ( + + CAST( NULL AS SIGNED ) * + col2 + col2, - col1, - 21 * col1 + 65, - + col0 )
----

skipif mysql # not compatible
query III rowsort label-6178
SELECT * FROM tab2 WHERE + 77 NOT IN ( + + CAST ( NULL AS INTEGER ) * + col2 + col2, - col1, - 21 * col1 + 65, - + col0 )
----

query I rowsort
SELECT - col2 * + col2 * col1 + - col0 FROM tab0
----
-178944
-2187
-9898

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

query II rowsort
SELECT + - 13, + col1 - - col1 FROM tab0 WHERE - - 33 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT 83 * - + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1
----
83

query I rowsort
SELECT DISTINCT + col0 * - 17 FROM tab1 AS cor0
----
-1445
-1547
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL 8 + - - COUNT( * ) FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL 8 + - - COUNT ( * ) FROM tab2 cor0
----
11

query I rowsort
SELECT + col0 * - col0 + - col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

query I rowsort
SELECT ALL 83 * - col0 AS col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT - + 96 + + col0 FROM tab0 WHERE NOT NULL < col1 - - ( - - col0 )
----

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

query I rowsort
SELECT - col0 / col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( + ( - 32 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT ( - col2 ) DIV - col1 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6191
SELECT ( - col2 ) / - col1 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6192
SELECT ALL - 65 DIV - COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL - 65 / - COUNT ( * ) FROM tab0 AS cor0
----
21

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0, tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL COUNT( * ) * SUM( + 44 ) AS col0 FROM tab2
----
396

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL COUNT ( * ) * SUM ( + 44 ) AS col0 FROM tab2
----
396

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

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

query II rowsort
SELECT ALL col0 + + col2, - col0 AS col1 FROM tab0 AS cor0
----
196
-97
62
-15
97
-87

query I rowsort
SELECT ALL 63 + - col0 AS col2 FROM tab0 cor0
----
-24
-34
48

query I rowsort
SELECT 26 * + col0 + col2 - + 59 FROM tab1
----
1363
2210
2375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT + CAST( NULL AS SIGNED ) + - - ( + - 53 ) * col2 / - + col2 - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT + CAST ( NULL AS INTEGER ) + - - ( + - 53 ) * col2 / - + col2 - col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 26 + + col2 * col0 - + col0 * - col1 * 47 AS col2 FROM tab1 AS cor0
----
207181
24964
38428

query I rowsort
SELECT ALL - 11 + - - col2 * col2 * - col2 FROM tab0 AS cor0
----
-1011
-103834
-970310

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

query I rowsort
SELECT DISTINCT + - 73 + - col1 AS col1 FROM tab2 AS cor0
----
-124
-140
-150

query I rowsort
SELECT ALL + col2 - - - ( - 42 ) AS col0 FROM tab1 AS cor0
----
101
110
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT + COUNT( * ) + + SUM( DISTINCT + 34 ) col0 FROM tab0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6208
SELECT DISTINCT + COUNT ( * ) + + SUM ( DISTINCT + 34 ) col0 FROM tab0
----
37

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

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL MAX ( + 66 ) AS col0 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6210
SELECT DISTINCT - 85, + MAX( + + col1 ) AS col2 FROM tab2
----
-85
77

skipif mysql # not compatible
query II rowsort label-6210
SELECT DISTINCT - 85, + MAX ( + + col1 ) AS col2 FROM tab2
----
-85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - COUNT( * ) - + 21 col2 FROM tab2
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6211
SELECT - COUNT ( * ) - + 21 col2 FROM tab2
----
-24

query I rowsort
SELECT ALL col2 - - + col1 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT + col1 - + 31 FROM tab1
----
-17
-26
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT DISTINCT COUNT( * ) - 74 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT COUNT ( * ) - 74 FROM tab1
----
-71

query III rowsort
SELECT * FROM tab2 WHERE col1 + + + col0 BETWEEN 82 + + - col0 AND - col0 * col2
----

query I rowsort
SELECT col2 - + col2 * + 99 FROM tab1
----
-5782
-6664
-9408

query I rowsort
SELECT - col0 - + + col1 + - 0 + - - col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT SUM( DISTINCT + + 66 ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT SUM ( DISTINCT + + 66 ) AS col2 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT COUNT( * ) * + - 29 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT COUNT ( * ) * + - 29 FROM tab2
----
-87

query I rowsort
SELECT ALL col2 * ( col0 ) + 9 FROM tab2 AS cor0
----
1067
2569
4359

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 11 * col0 AS col1 FROM tab1
----
1001
561
935

query II rowsort
SELECT ALL + col2 * 6 AS col2, 46 FROM tab0
----
282
46
594
46
60
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT - - 48 DIV + col1 FROM tab0 AS cor0
----
0
2
48

skipif mysql # not compatible
query I rowsort label-6229
SELECT - - 48 / + col1 FROM tab0 AS cor0
----
0
2
48

query I rowsort
SELECT - col0 * - 4 FROM tab0
----
348
388
60

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

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

query I rowsort
SELECT ALL 84 * col1 AS col2 FROM tab1
----
1176
3948
420

query I rowsort
SELECT DISTINCT - 48 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + 84 + + - col1 AS col0 FROM tab2 AS cor0
----
17
33
7

query I rowsort
SELECT - - 7 AS col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT ALL + ( - - 29 ) FROM tab0
----
29
29
29

query I rowsort
SELECT DISTINCT + col2 + col0 + + col2 * col2 + - col2 FROM tab1 AS cor0
----
3566
4715
9267

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

query I rowsort
SELECT ALL - 54 + - col0 AS col1 FROM tab1 AS cor0
----
-105
-139
-145

query I rowsort
SELECT col2 * col2 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT ALL + col2 + - - col1 AS col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 76 IS NOT NULL AND + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 14 + 14 FROM tab2 AS cor0
----
28

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

query I rowsort
SELECT - 89 + - 61 AS col2 FROM tab1 AS cor0
----
-150
-150
-150

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( 39, + col0 * col2 / ( 38 ) * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 35 * - - col0 AS col1 FROM tab2
----
1610
2240
2625

query I rowsort
SELECT 50 * 75 * + col2 FROM tab2 AS cor0
----
150000
217500
86250

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 90 AND NULL
----

query I rowsort
SELECT - - 14 * - col2 + + col1 + + 59 FROM tab0 AS cor0 WHERE NOT - col2 * + 56 NOT BETWEEN 88 / - 94 + - col2 AND - 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT - col2 * + col1 + - + 48 DIV 20 FROM tab2 AS cor0
----
-1175
-3082
-3888

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT - col2 * + col1 + - + 48 / 20 FROM tab2 AS cor0
----
-1175
-3082
-3888

onlyif mysql # aggregate syntax: 
query II rowsort label-6254
SELECT 46 AS col2, COUNT( * ) * + 92 col1 FROM tab0
----
46
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6254
SELECT 46 AS col2, COUNT ( * ) * + 92 col1 FROM tab0
----
46
276

query I rowsort
SELECT col0 * + 4 * - col2 FROM tab0
----
-2820
-3480
-38412

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT IN ( + col1, col0, + 10, + 0, - 55 )
----

query I rowsort
SELECT DISTINCT + col0 + - 72 FROM tab1
----
-21
13
19

query I rowsort
SELECT col0 * - - col1 * ( + col0 ) + + col2 AS col0 FROM tab2 AS cor0
----
107939
315432
376933

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT - - MAX( col0 ) AS col1, 30 * - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * - col2 * col1 = NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6260
SELECT - - MAX ( col0 ) AS col1, 30 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * - col2 * col1 = NULL
----
NULL
0

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

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

query I rowsort
SELECT - col2 + 60 AS col1 FROM tab2 AS cor0
----
2
20
37

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 < + + col1 * col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + 17 * 20 AS col1 FROM tab0 AS cor0
----
340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6266
SELECT - CAST( COUNT( * ) AS SIGNED ) * + 70 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-6266
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + 70 FROM tab2
----
-210

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 * - + col0 col2 FROM tab2
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT - COUNT( * ) * - 24 AS col2, + 14 AS col0 FROM tab0
----
72
14

skipif mysql # not compatible
query II rowsort label-6269
SELECT - COUNT ( * ) * - 24 AS col2, + 14 AS col0 FROM tab0
----
72
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6270
SELECT + 47 DIV - COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6270
SELECT + 47 / - COUNT ( * ) FROM tab2
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6271
SELECT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) + - - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6271
SELECT * FROM tab0 WHERE CAST ( NULL AS REAL ) + - - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

skipif mysql # not compatible
query II rowsort label-6273
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col0 AS col0, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT - 27 * + col1 * + col0 AS col1 FROM tab1
----
-11475
-115479
-19278

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT - COUNT( * ) + 69 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - COUNT ( * ) + 69 FROM tab2
----
66

query I rowsort
SELECT + col1 * + col1 * - col0 * + - col0 AS col0 FROM tab0
----
1476225
3337929
9409

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

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

query I rowsort
SELECT ALL - col0 * - col1 * + 80 + + col2 + col0 * - col2 FROM tab0 AS cor0
----
-1744
145300
96542

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 82 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT 21 + + MAX( ALL - col1 ) * + 36 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6281
SELECT 21 + + MAX ( ALL - col1 ) * + 36 FROM tab0
----
-15

query II rowsort
SELECT - 21 * - 0 * + col0 + + + col2 + + 9 AS col2, 70 * + col2 FROM tab0
----
108
6930
19
700
56
3290

query I rowsort
SELECT ALL ( col2 ) * + col2 * - + 50 FROM tab2 AS cor0 WHERE NOT col2 >= + 40
----
-26450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - + col2 + 88 >= + + 66 * - col2 + - + col2 - + ( + - 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 80 - + col0 * + col0 AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6288
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) * + + 6, + MIN( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
NULL
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6288
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) * + + 6, + MIN ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
NULL
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL MIN( DISTINCT - - 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL MIN ( DISTINCT - - 33 ) FROM tab1
----
33

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6291
SELECT CAST ( + col0 AS INTEGER ) col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT + ( + - MAX( - - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6292
SELECT + ( + - MAX ( - - col2 ) ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT ALL 64 AS col2, - COUNT( * ) + COUNT( * ) FROM tab2
----
64
0

skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL 64 AS col2, - COUNT ( * ) + COUNT ( * ) FROM tab2
----
64
0

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

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

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

query I rowsort
SELECT ALL + 8 + - 97 AS col2 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT MAX( + col0 ) AS col0 FROM tab0 AS cor0 WHERE - 47 + + + 4 BETWEEN + 31 * + col0 + col2 + - col1 AND + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT MAX ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE - 47 + + + 4 BETWEEN + 31 * + col0 + col2 + - col1 AND + + 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT + CAST( - col2 AS SIGNED ) * + - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6299
SELECT + CAST ( - col2 AS INTEGER ) * + - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - 99 * + - 52 FROM tab1
----
5148
5148
5148

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

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

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

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

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

query II rowsort
SELECT ALL - col2, 81 * + col0 AS col2 FROM tab0 AS cor0
----
-10
7047
-47
1215
-99
7857

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT 39 DIV SUM( DISTINCT + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT 39 / SUM ( DISTINCT + col2 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT DISTINCT - col0 + ( col0 ) DIV 49 AS col1 FROM tab0
----
-15
-86
-96

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT - col0 + ( col0 ) / 49 AS col1 FROM tab0
----
-15
-86
-96

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

query I rowsort
SELECT DISTINCT 76 * - col2 AS col2 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT 13 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT 13 / + col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 31 = ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE ( - 46 + col2 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6317
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE ( - 46 + col2 ) IS NULL
----

query I rowsort
SELECT + col0 + ( col2 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( + 63 ) AND NULL
----

query I rowsort
SELECT col2 - 18 FROM tab0
----
-8
29
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL COUNT( * ) col1 FROM tab1 WHERE NOT - 57 IN ( 57 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6320
SELECT ALL COUNT ( * ) col1 FROM tab1 WHERE NOT - 57 IN ( 57 )
----
3

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 11 ) IS NOT NULL
----

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

query I rowsort
SELECT ( 46 ) AS col2 FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL - SUM( DISTINCT + ( 28 ) ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - SUM ( DISTINCT + ( 28 ) ) FROM tab2
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( col0 ) ) col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 58 * col2 - - col2 FROM tab0
----
-2679
-5643
-570

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) = - col0 / 45
----

query I rowsort
SELECT ALL 29 * + 34 + col0 FROM tab2
----
1032
1050
1061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6332
SELECT 92 * + CAST( MIN( DISTINCT + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-6332
SELECT 92 * + CAST ( MIN ( DISTINCT + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT COUNT( * ) * + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1
----
81

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT COUNT ( * ) * + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + COUNT( * ) * 51 FROM tab2 AS cor0 CROSS JOIN tab0
----
459

skipif mysql # not compatible
query I rowsort label-6335
SELECT + COUNT ( * ) * 51 FROM tab2 AS cor0 CROSS JOIN tab0
----
459

query I rowsort
SELECT col2 * 70 + - col0 FROM tab2
----
1564
2736
3985

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT COUNT( - 30 ) + - COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6337
SELECT COUNT ( - 30 ) + - COUNT ( * ) col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6338
SELECT + CAST( 60 AS SIGNED ) + 61 DIV COUNT( * ) col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6338
SELECT + CAST ( 60 AS INTEGER ) + 61 / COUNT ( * ) col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT - col0 + - 49 FROM tab1 AS cor0
----
-100
-134
-140

query I rowsort
SELECT + col2 + 78 FROM tab2 AS cor0
----
101
118
136

query I rowsort
SELECT + + 26 + - col2 FROM tab0 AS cor0
----
-21
-73
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT DISTINCT col1 DIV + 27 + 72 AS col2 FROM tab2 AS cor0
----
73
74

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT col1 / + 27 + 72 AS col2 FROM tab2 AS cor0
----
73
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT - CAST( - col0 AS SIGNED ) * col0 + 18 * col2 FROM tab0 AS cor0 WHERE ( 19 ) / col0 IN ( col0 * 54 - 45 )
----

skipif mysql # not compatible
query I rowsort label-6343
SELECT - CAST ( - col0 AS INTEGER ) * col0 + 18 * col2 FROM tab0 AS cor0 WHERE ( 19 ) / col0 IN ( col0 * 54 - 45 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT ALL - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 54 col2 FROM tab2
----
112
77
94

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT - 87 DIV + - 41 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6349
SELECT - 87 / + - 41 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT 34 * COUNT( * ) AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-6350
SELECT 34 * COUNT ( * ) AS col0 FROM tab0
----
102

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

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

query I rowsort
SELECT ( + - 37 ) * ( 10 * + col0 ) FROM tab1
----
-18870
-31450
-33670

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT - col1 DIV - col0 + + col1 - 52 * - col2 AS col1 FROM tab1 AS cor0
----
3073
3583
5006

skipif mysql # not compatible
query I rowsort label-6353
SELECT - col1 / - col0 + + col1 - 52 * - col2 AS col1 FROM tab1 AS cor0
----
3073
3583
5006

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col2 BETWEEN 75 * ( col1 * col0 ) AND col1
----

query I rowsort
SELECT ALL + - 50 * - col1 * col2 + - 19 AS col0 FROM tab0 cor0
----
10481
190331
4931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT - - CAST( - col1 AS SIGNED ) + + 35 FROM tab1 AS cor0
----
-12
21
30

skipif mysql # not compatible
query I rowsort label-6356
SELECT - - CAST ( - col1 AS INTEGER ) + + 35 FROM tab1 AS cor0
----
-12
21
30

query I rowsort
SELECT - col1 * + 91 + ( 94 ) - col0 * col1 FROM tab0
----
-3644
-8492
-94

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab2 WHERE ( - + col2 ) <> ( col0 - col0 )
----
1600
3364
529

query I rowsort
SELECT 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT ALL col0 AS col1, 58 AS col1 FROM tab0
----
15
58
87
58
97
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6361
SELECT 2 AS col0, CAST( + - AVG ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
2
66

skipif mysql # not compatible
query II rowsort label-6361
SELECT 2 AS col0, CAST ( + - AVG ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
2
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT MAX( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND - 6 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT MAX ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND - 6 * - col1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 31 ) AND ( - 81 * 26 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT + col2 + + col1 + - col2 = + col0
----
-59
-68
-96

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

query I rowsort
SELECT + col1 * + col1 * - - col2 AS col1 FROM tab0 AS cor0
----
308367
4410
99

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

query II rowsort
SELECT ALL - col0 AS col2, - 18 + - + col2 + + col0 FROM tab1 AS cor0
----
-51
-63
-85
8
-91
5

query I rowsort
SELECT + 86 * + col1 AS col0 FROM tab2
----
4386
5762
6622

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

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

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

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + MAX ( - 66 ) AS col1 FROM tab0
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL - 48 * + - COUNT( + 68 ) AS col2 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL - 48 * + - COUNT ( + 68 ) AS col2 FROM tab1
----
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT SUM( + 39 ) FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-6375
SELECT SUM ( + 39 ) FROM tab2
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT ALL - + col2 * 79 DIV - + 32 FROM tab0 AS cor0
----
116
24
244

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL - + col2 * 79 / - + 32 FROM tab0 AS cor0
----
116
24
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 96 - + + col1 NOT IN ( col2 / 30 )
----

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 96 - + + col1 NOT IN ( col2 / 30 )
----

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

query I rowsort
SELECT ALL col0 - col1 * - col0 FROM tab0 AS cor0 WHERE NOT - col2 IN ( + 0 )
----
1230
1914
194

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

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

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN col1 AND + col1
----
51
67
77

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

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

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

query I rowsort
SELECT + col2 * + col2 FROM tab0 WHERE ( - col0 ) >= - col1 * col1 * + ( + 7 )
----
100
2209

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE col0 NOT IN ( - + col2 * - col1 + - col0 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT DISTINCT - SUM( col0 ) FROM tab2 WHERE + - 80 < 91
----
-185

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT - SUM ( col0 ) FROM tab2 WHERE + - 80 < 91
----
-185

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

query I rowsort
SELECT DISTINCT + col2 + - + col0 * + ( 0 ) * - 52 FROM tab1 AS cor0
----
59
68
96

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

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

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

query I rowsort
SELECT - - 18 AS col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6393
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) + + 53 AS col2, + ( + SUM( ALL 58 ) ) FROM tab2 AS cor0
----
56
174

skipif mysql # not compatible
query II rowsort label-6393
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) + + 53 AS col2, + ( + SUM ( ALL 58 ) ) FROM tab2 AS cor0
----
56
174

query I rowsort
SELECT ALL - - 44 + - 77 + + col0 AS col1 FROM tab1 AS cor0
----
18
52
58

query I rowsort
SELECT ALL + col1 * - 18 FROM tab0 AS cor0
----
-1458
-18
-378

query I rowsort
SELECT col2 + + 0 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6397
SELECT ALL col2, col1 * + + 82 - + col0 DIV - col1 FROM tab0
----
10
1726
47
6642
99
179

skipif mysql # not compatible
query II rowsort label-6397
SELECT ALL col2, col1 * + + 82 - + col0 / - col1 FROM tab0
----
10
1726
47
6642
99
179

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 * 80 * + 98 AND ( - col0 * col0 + - 65 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - - 15 * - + col2
----

query I rowsort
SELECT 14 + 88 FROM tab1
----
102
102
102

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 17 <> + - col0
----

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

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

skipif mysql # not compatible
query I rowsort label-6404
SELECT - + MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
96

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

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

query II rowsort
SELECT - + col1 AS col2, col1 * + col1 FROM tab2 AS cor0
----
-51
2601
-67
4489
-77
5929

query II rowsort
SELECT DISTINCT + 92 * col0, + col1 FROM tab1
----
4692
14
7820
5
8372
47

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 0 * 83 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6410
SELECT 64 * SUM( + col2 ) AS col2, 47 AS col2 FROM tab2 AS cor0
----
7744
47

skipif mysql # not compatible
query II rowsort label-6410
SELECT 64 * SUM ( + col2 ) AS col2, 47 AS col2 FROM tab2 AS cor0
----
7744
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL CAST( - MIN( - 99 ) AS SIGNED ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL CAST ( - MIN ( - 99 ) AS INTEGER ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - 16 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 90 IS NOT NULL
----
-16

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 16 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 90 IS NOT NULL
----
-16

query II rowsort
SELECT col1 * - + col1 AS col2, - ( + + col0 ) FROM tab2 AS cor0
----
-2601
-46
-4489
-75
-5929
-64

query I rowsort
SELECT ALL - col1 * + 89 AS col1 FROM tab0 AS cor0
----
-1869
-7209
-89

query I rowsort
SELECT 79 * - - col0 AS col0 FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT - 10 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT - 10 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + col1 ) * - 81 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT - + 27 AS col1 FROM tab1 WHERE NOT 43 NOT BETWEEN - 87 AND col1
----
-27

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * 78 * - col0 col1 FROM tab1
----
-194922
-324870
-347802

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT DISTINCT col0 DIV 1 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT col0 / 1 AS col0 FROM tab2
----
46
64
75

query II rowsort
SELECT - col1 AS col0, col2 - + 53 FROM tab2
----
-51
-30
-67
5
-77
-13

query II rowsort
SELECT + col1, - col1 + - 28 FROM tab1 AS cor0
----
14
-42
47
-75
5
-33

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6427
SELECT DISTINCT col2 + CAST( + + 50 AS SIGNED ) + - ( + col2 ) + + + col1 - + + col0 DIV col0 FROM tab2 AS cor0
----
100
116
126

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT col2 + CAST ( + + 50 AS INTEGER ) + - ( + col2 ) + + + col1 - + + col0 / col0 FROM tab2 AS cor0
----
100
116
126

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

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

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

query I rowsort
SELECT ALL 34 + + 95 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT + 41 + + col2 + - 27 * ( + + CAST( + col1 AS SIGNED ) ) col2 FROM tab2
----
-1313
-1710
-1998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6431
SELECT + 41 + + col2 + - 27 * ( + + CAST ( + col1 AS INTEGER ) ) col2 FROM tab2
----
-1313
-1710
-1998

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 / + 71 * + col1 <> col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT ALL 74 DIV col0 * - col2 FROM tab1
----
-96
0
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL 74 / col0 * - col2 FROM tab1
----
-96
0
0

query I rowsort
SELECT - 41 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT 72 * - - 96 + col2 + + CAST( - col0 AS SIGNED ) * + 63 FROM tab0 AS cor0
----
1441
6014
900

skipif mysql # not compatible
query I rowsort label-6436
SELECT 72 * - - 96 + col2 + + CAST ( - col0 AS INTEGER ) * + 63 FROM tab0 AS cor0
----
1441
6014
900

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL - ( 9 ) * - + COUNT( * ) * + 14 / + 91 / COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - ( 9 ) * - + COUNT ( * ) * + 14 / + 91 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
46
64
75

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

query I rowsort
SELECT + col2 * + 18 + - + 92 FROM tab1 AS cor0
----
1132
1636
970

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

query I rowsort
SELECT col1 - - col0 + - - 84 AS col1 FROM tab1
----
149
174
222

query I rowsort
SELECT ALL 22 - 54 FROM tab0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * - col0 - + col2 * + col1 col1 FROM tab1
----
-251040
-426570
-566304

query II rowsort
SELECT ALL col0, - 47 FROM tab2
----
46
-47
64
-47
75
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col2 col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT + SUM( + 10 ) - COUNT( * ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-6449
SELECT + SUM ( + 10 ) - COUNT ( * ) AS col0 FROM tab1
----
27

query I rowsort
SELECT + col0 * - 11 + - - col0 FROM tab1 AS cor0
----
-510
-850
-910

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT - - col1 DIV col1 * + + ( + 50 ) FROM tab2 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-6453
SELECT - - col1 / col1 * + + ( + 50 ) FROM tab2 AS cor0
----
50
50
50

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6454
SELECT ALL + CAST ( - col0 AS INTEGER ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT MIN( - col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6455
SELECT DISTINCT MIN ( - col2 ) col0 FROM tab0
----
-99

query I rowsort
SELECT ( + 20 ) * - col2 AS col1 FROM tab0
----
-1980
-200
-940

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * + 1 ) = + col2 * - 83 * col1 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, + col1 * - col2 * + col2 * 42 * + col0 AS col0 FROM tab0 AS cor0
----
15
-112725270
87
-7673400
97
-39929274

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6461
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( - - col0 AS SIGNED ) + - 17 )
----

skipif mysql # not compatible
query III rowsort label-6461
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( - - col0 AS INTEGER ) + - 17 )
----

query I rowsort
SELECT DISTINCT + col0 * 21 AS col1 FROM tab0 AS cor0
----
1827
2037
315

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 * + 83 col2 FROM tab1 WHERE + - col0 NOT BETWEEN col2 AND + 16
----
-111552
-24485
-265268

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT 46 + SUM( ALL col0 ) + - - MIN( DISTINCT - 40 ) AS col1 FROM tab2 WHERE NOT - col1 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT 46 + SUM ( ALL col0 ) + - - MIN ( DISTINCT - 40 ) AS col1 FROM tab2 WHERE NOT - col1 * - col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL + 36 + - col2 - + - col1 * + - col1 AS col1 FROM tab2 AS cor0
----
-2588
-4511
-5933

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6469
SELECT - COUNT ( * ) col1 FROM tab1 WHERE + - col2 IS NULL
----
0

query I rowsort
SELECT col2 - + 34 * + 52 + 82 FROM tab2 AS cor0
----
-1628
-1646
-1663

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

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

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

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

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

query II rowsort
SELECT ALL col2 - - col1 AS col1, 48 FROM tab2
----
117
48
125
48
74
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6476
SELECT + CAST( - col0 AS DECIMAL ) - - col2 FROM tab0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6476
SELECT + CAST ( - col0 AS REAL ) - - col2 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT + 24 * MIN( - col2 ) AS col2 FROM tab0
----
-2376

skipif mysql # not compatible
query I rowsort label-6477
SELECT + 24 * MIN ( - col2 ) AS col2 FROM tab0
----
-2376

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 0 BETWEEN - - 10 AND NULL
----

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

query II rowsort
SELECT - col2 * + col1, + col2 * - col1 AS col2 FROM tab1
----
-1344
-1344
-295
-295
-3196
-3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT - + ( - ( - - COUNT( * ) ) ) + - AVG ( DISTINCT + + col2 ) * - 21 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT - + ( - ( - - COUNT ( * ) ) ) + - AVG ( DISTINCT + + col2 ) * - 21 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab0, tab1 AS cor0
----
55

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE 49 * + - col1 IS NULL
----

query II rowsort
SELECT - col1, 28 * + + col0 - - 71 AS col2 FROM tab0 AS cor0
----
-1
2787
-21
2507
-81
491

query I rowsort
SELECT + 60 * + 82 FROM tab2 AS cor0
----
4920
4920
4920

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + - COUNT( - + 42 ) + + 78 AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6487
SELECT + - COUNT ( - + 42 ) + + 78 AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT - col0 + 52 FROM tab0 AS cor0
----
-35
-45
37

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 / + col0 - - - col2, - 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT ALL - + col0 + col1 DIV + - col1 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * col1 DIV + ( + + 36 ) >= - - 74 * + + col2 + - 76
----
-18
-24
-25

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - + col0 + col1 / + - col1 + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * col1 / + ( + + 36 ) >= - - 74 * + + col2 + - 76
----
-18
-24
-25

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

query II rowsort
SELECT 99, col0 + - - 94 AS col2 FROM tab0
----
99
109
99
181
99
191

onlyif mysql # DIV for integer division: 
query I rowsort label-6494
SELECT DISTINCT col2 DIV - col0 + - ( - + col0 ) - 24 AS col2 FROM tab2
----
22
40
51

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT col2 / - col0 + - ( - + col0 ) - 24 AS col2 FROM tab2
----
22
40
51

query I rowsort
SELECT ALL - 93 + + col1 AS col2 FROM tab1
----
-46
-79
-88

query III rowsort
SELECT * FROM tab2 WHERE + col2 = col2 + - - 49
----

query I rowsort
SELECT DISTINCT + col2 + col0 * + 34 * + 29 + + + 19 FROM tab0 AS cor0
----
14856
85811
95760

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

query I rowsort
SELECT ( - 1 ) - + + col0 FROM tab1 AS cor0
----
-52
-86
-92

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6500
SELECT DISTINCT - MAX ( - + col0 ) col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - col2 - + col0 * + + col2 * - - col2 * + - col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 71 col2 FROM tab2
----
122
138
148

query I rowsort
SELECT 50 * col2 + + 53 AS col2 FROM tab2
----
1203
2053
2953

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - 52 * COUNT( * ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6505
SELECT - 52 * COUNT ( * ) FROM tab1 AS cor0
----
-156

query II rowsort
SELECT DISTINCT ( + + col1 ) * + + 28 * + + 30 + + 19 AS col0, col1 + + - col1 FROM tab1 AS cor0
----
11779
0
39499
0
4219
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IN ( 68, + col2 + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - col2 IN ( 91 )
----

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

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

query I rowsort
SELECT DISTINCT - - 15 + - col2 AS col2 FROM tab2 AS cor0
----
-25
-43
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-6511
SELECT ALL + - col2 DIV - col0 - + 98, + 98 AS col2 FROM tab1 AS cor0
----
-97
98
-98
98
-98
98

skipif mysql # not compatible
query II rowsort label-6511
SELECT ALL + - col2 / - col0 - + 98, + 98 AS col2 FROM tab1 AS cor0
----
-97
98
-98
98
-98
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6512
SELECT DISTINCT col1 - + ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT col1 - + ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL COUNT( * ) * - + 40 * - + ( + - ( COUNT( * ) ) ) FROM tab1
----
-360

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL COUNT ( * ) * - + 40 * - + ( + - ( COUNT ( * ) ) ) FROM tab1
----
-360

query II rowsort
SELECT - 89 AS col2, - 74 FROM tab2
----
-89
-74
-89
-74
-89
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6515
SELECT DISTINCT - MIN( ALL + - CAST( + + col0 AS SIGNED ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT - MIN ( ALL + - CAST ( + + col0 AS INTEGER ) ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT - COUNT( * ) AS col2, + ( + + 39 ) * - COUNT( * ) - ( + - 11 ) FROM tab0
----
-3
-106

skipif mysql # not compatible
query II rowsort label-6516
SELECT - COUNT ( * ) AS col2, + ( + + 39 ) * - COUNT ( * ) - ( + - 11 ) FROM tab0
----
-3
-106

query I rowsort
SELECT ALL 3 * + + 2 FROM tab1
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 14 col1 FROM tab0
----
1218
1358
210

query II rowsort
SELECT - 35, 11 AS col1 FROM tab1 cor0
----
-35
11
-35
11
-35
11

query I rowsort
SELECT ALL + col0 + + - col0 + col1 + + col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE NULL < + 80
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6521
SELECT - 2 DIV col2 + + col2 * col2, col1 * - - 0 * + col0 DIV - + col1 AS col1 FROM tab0 AS cor0
----
100
0
2209
0
9801
0

skipif mysql # not compatible
query II rowsort label-6521
SELECT - 2 / col2 + + col2 * col2, col1 * - - 0 * + col0 / - + col1 AS col1 FROM tab0 AS cor0
----
100
0
2209
0
9801
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 IN ( + 41 * + 17 * + ( - col0 ) * col2, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-46
-64
-75

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

query I rowsort
SELECT - - 60 * + col0 * + col2 AS col2 FROM tab2 cor0
----
153600
261000
63480

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6527
SELECT DISTINCT CAST( col0 AS SIGNED ) * 2 + + 84 AS col1, + col2 FROM tab1 AS cor0
----
186
96
254
59
266
68

skipif mysql # not compatible
query II rowsort label-6527
SELECT DISTINCT CAST ( col0 AS INTEGER ) * 2 + + 84 AS col1, + col2 FROM tab1 AS cor0
----
186
96
254
59
266
68

query I rowsort
SELECT DISTINCT col0 * 29 FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT - col0 * 42 AS col2 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT col0 + - - 42 FROM tab0
----
129
139
57

query II rowsort
SELECT ALL col1, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT 93 - + SUM( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT 93 - + SUM ( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
288

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

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

skipif mysql # not compatible
query III rowsort label-6535
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( 87 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 - + 37 - col0 AS col0 FROM tab0
----
-114
-35
-5

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE - 22 < NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 5 FROM tab0
----
-102
-20
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT - + 21 * - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT - + 21 * - COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT 21 + + + 94 + + - 50 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL + - 91 * - 34 + + - 97 + + COUNT( * ) FROM tab2 AS cor0
----
3000

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + - 91 * - 34 + + - 97 + + COUNT ( * ) FROM tab2 AS cor0
----
3000

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6544
SELECT 52 DIV + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6544
SELECT 52 / + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
17

query II rowsort
SELECT - col2 AS col2, - 34 AS col0 FROM tab0 AS cor0
----
-10
-34
-47
-34
-99
-34

query II rowsort
SELECT ALL - col2, - 29 + - + 69 AS col0 FROM tab0 AS cor0
----
-10
-98
-47
-98
-99
-98

query I rowsort
SELECT 85 + + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 1 IN ( - 17 )
----
131
149
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT - COUNT( DISTINCT - col1 ) * + + 52 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) * + + 52 FROM tab0
----
-156

query II rowsort
SELECT ALL col0 * - col0 AS col1, col0 AS col2 FROM tab2
----
-2116
46
-4096
64
-5625
75

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

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

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

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

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

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

query II rowsort
SELECT ALL - col1, + 30 AS col2 FROM tab0 AS cor0
----
-1
30
-21
30
-81
30

query I rowsort
SELECT - ( + - 5 ) * - col0 + + col0 FROM tab1 cor0
----
-204
-340
-364

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + MIN( DISTINCT + 6 ) col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6558
SELECT - 16 / + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT + col2 DIV ( ( - 33 ) ) * 99 DIV - col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6559
SELECT + col2 / ( ( - 33 ) ) * 99 / - col0 AS col2 FROM tab2
----
0
1
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT - 71 - + 87 DIV - - COUNT( * ) + - + 51 AS col1 FROM tab1 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-6561
SELECT - 71 - + 87 / - - COUNT ( * ) + - + 51 AS col1 FROM tab1 AS cor0
----
-151

query I rowsort
SELECT + 55 * + col0 FROM tab0
----
4785
5335
825

query I rowsort
SELECT ALL + 73 * + col1 AS col1 FROM tab1 cor0
----
1022
3431
365

query I rowsort
SELECT ALL - col1 * - 93 * 44 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 78 * + 88 + + + col2 = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + - - col2 col0 FROM tab2 AS cor0 WHERE NOT - col2 + col1 = + col2
----
-1035
-2520
-4292

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT DISTINCT + 83 * - + COUNT( * ) FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT + 83 * - + COUNT ( * ) FROM tab2
----
-249

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

query II rowsort
SELECT col2, + 38 + - - col2 * - 31 FROM tab2
----
23
-675
40
-1202
58
-1760

query I rowsort
SELECT ( - col2 ) / - - 75 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 IS NULL OR NOT NULL NOT BETWEEN NULL AND - + col0 * - - ( - - 84 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT + 87 * - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-6575
SELECT + 87 * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT MIN( + - col0 ) * SUM( DISTINCT + col2 ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-15132

skipif mysql # not compatible
query I rowsort label-6576
SELECT MIN ( + - col0 ) * SUM ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-15132

query I rowsort
SELECT DISTINCT - + 16 * - 22 FROM tab2 AS cor0
----
352

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 69 col2 FROM tab0 AS cor0
----
-48
-68
12

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

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

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

query I rowsort
SELECT - + 20 - 64 + - - ( + 33 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT + - 55 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 6 + + 70 FROM tab1 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-6586
SELECT col1 + - + 91 AS col1, + col0 - col2 DIV col0 * + col0 FROM tab1 cor0
----
-44
91
-77
0
-86
85

skipif mysql # not compatible
query II rowsort label-6586
SELECT col1 + - + 91 AS col1, + col0 - col2 / col0 * + col0 FROM tab1 cor0
----
-44
91
-77
0
-86
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT 48 + COUNT( * ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6588
SELECT 48 + COUNT ( * ) AS col0 FROM tab2
----
51

query II rowsort
SELECT DISTINCT col1 AS col0, 99 - 28 - + col1 FROM tab0
----
1
70
21
50
81
-10

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

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

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

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

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

query I rowsort
SELECT ALL + + 23 * + 37 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
40044
84348
8520

onlyif mysql # DIV for integer division: 
query II rowsort label-6595
SELECT - - 15 DIV + - col0 + + col0 AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-6595
SELECT - - 15 / + - col0 + + col0 AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6596
SELECT DISTINCT - + ( COUNT( * ) ) DIV - - 22 * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT - + ( COUNT ( * ) ) / - - 22 * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col2 * - col0 * + col2 AS col1 FROM tab2 cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6598
SELECT DISTINCT + 57 - + MAX( ALL + col0 ) DIV - MAX( + + col2 ) * - 39 * + + COUNT( * ) * 73 col2 FROM tab1 cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6598
SELECT DISTINCT + 57 - + MAX ( ALL + col0 ) / - MAX ( + + col2 ) * - 39 * + + COUNT ( * ) * 73 col2 FROM tab1 cor0
----
57

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

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

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

query I rowsort
SELECT DISTINCT - - 55 AS col0 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT - COUNT( ALL + + 83 ) + - 49 FROM tab1 WHERE NOT - ( 67 ) IS NOT NULL
----
-49

skipif mysql # not compatible
query I rowsort label-6602
SELECT - COUNT ( ALL + + 83 ) + - 49 FROM tab1 WHERE NOT - ( 67 ) IS NOT NULL
----
-49

query I rowsort
SELECT - col2 * 19 * + 65 * - 68 FROM tab0
----
3947060
8314020
839800

query I rowsort
SELECT DISTINCT - 83 + + - col1 AS col2 FROM tab1 cor0
----
-130
-88
-97

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

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

query I rowsort
SELECT + + col0 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 85 <= - col1
----

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

query I rowsort
SELECT ALL + 88 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= - - col0 / - col2 - - 20 )
----

query I rowsort
SELECT ( - + col1 ) * + col0 FROM tab1 AS cor0
----
-425
-4277
-714

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT - 61 + + MIN( DISTINCT - ( + - col1 ) ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - 61 + + MIN ( DISTINCT - ( + - col1 ) ) FROM tab1
----
-56

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

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

query I rowsort
SELECT - 11 * + 45 AS col0 FROM tab2
----
-495
-495
-495

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

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

query I rowsort
SELECT - 55 * + col0 - + - col2 * col2 FROM tab0
----
-4685
1384
4466

query I rowsort
SELECT - 9 - + col1 * 18 AS col0 FROM tab1
----
-261
-855
-99

query I rowsort
SELECT col1 * + 94 - - 15 AS col0 FROM tab2
----
4809
6313
7253

query I rowsort
SELECT 78 AS col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT ALL - col2 DIV - col1 + - - col0 AS col0 FROM tab1 AS cor0
----
57
92
96

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - col2 / - col1 + - - col0 AS col0 FROM tab1 AS cor0
----
57
92
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL BETWEEN - 66 AND NULL
----

query II rowsort
SELECT ALL 1 AS col0, col1 AS col1 FROM tab2
----
1
51
1
67
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL COUNT( * ) * - COUNT( * ) * + 65 FROM tab0 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 65 FROM tab0 AS cor0
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT - MIN( + 76 ) * 92 AS col0 FROM tab0 cor0
----
-6992

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - MIN ( + 76 ) * 92 AS col0 FROM tab0 cor0
----
-6992

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 < NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT - MAX( 13 ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6631
SELECT - MAX ( 13 ) FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6632
SELECT 64 AS col2, + COUNT( DISTINCT + - col2 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6632
SELECT 64 AS col2, + COUNT ( DISTINCT + - col2 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
64
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6634
SELECT ALL col1 DIV + col2 AS col0, 90 col2 FROM tab2
----
1
90
1
90
2
90

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL + 32 * col0 FROM tab2 WHERE - - CAST( - col2 AS SIGNED ) * + - col0 * - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL + 32 * col0 FROM tab2 WHERE - - CAST ( - col2 AS INTEGER ) * + - col0 * - col1 BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN + + col2 * 55 * col2 * - 77 AND NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT - 60 - - COUNT( * ) col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6643
SELECT - 60 - - COUNT ( * ) col1 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT + 78 AS col1 FROM tab0 AS cor0 WHERE col2 + + col1 < NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT DISTINCT - 51 - MAX( DISTINCT + col0 ), 23 col2 FROM tab0 AS cor0
----
-148
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6646
SELECT DISTINCT - 51 - MAX ( DISTINCT + col0 ), 23 col2 FROM tab0 AS cor0
----
-148
23

query I rowsort
SELECT ALL + - 24 - - col1 - + 58 * + 51 - + 34 AS col2 FROM tab2 AS cor0
----
-2939
-2949
-2965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT + - 32 + - CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-119
-129
-47

skipif mysql # not compatible
query I rowsort label-6648
SELECT + - 32 + - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-119
-129
-47

query I rowsort
SELECT + col0 * 61 + - col2 + - col1 * - col0 * - 48 AS col0 FROM tab2 AS cor0
----
-109825
-232680
-236683

query I rowsort
SELECT + col2 + - ( + 93 ) AS col0 FROM tab1
----
-25
-34
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - SUM( + - col0 ) FROM tab1 WHERE - 69 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT - SUM ( + - col0 ) FROM tab1 WHERE - 69 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT col0 * + CAST( + 90 AS SIGNED ) + - - 74 FROM tab2
----
4214
5834
6824

skipif mysql # not compatible
query I rowsort label-6652
SELECT col0 * + CAST ( + 90 AS INTEGER ) + - - 74 FROM tab2
----
4214
5834
6824

query I rowsort
SELECT DISTINCT - col2 * - col1 - + col2 FROM tab0
----
0
200
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT DISTINCT - col2 * + col1 DIV + col1 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT - col2 * + col1 / + col1 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab1, tab2 AS cor0
----
50

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

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

query I rowsort
SELECT DISTINCT - 87 * col0 + + + col1 AS col0 FROM tab0
----
-1224
-7548
-8438

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

skipif mysql # not compatible
query I rowsort label-6658
SELECT col1 / - - col0 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL 59 * col1 AS col0 FROM tab1
----
2773
295
826

query I rowsort
SELECT col2 * - - 11 AS col1 FROM tab1 cor0
----
1056
649
748

query I rowsort
SELECT ALL col2 + - ( ( + - col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
110
115
64

query I rowsort
SELECT - 85 * + col2 AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT DISTINCT - COUNT( DISTINCT - 54 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - COUNT ( DISTINCT - 54 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

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

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

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

query II rowsort
SELECT DISTINCT - + ( - col1 ) * + 42 AS col0, ( - col2 ) AS col0 FROM tab1 AS cor0
----
1974
-68
210
-59
588
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT - 97 * + COUNT( * ) - + + 24 FROM tab1 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - 97 * + COUNT ( * ) - + + 24 FROM tab1 AS cor0
----
-315

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

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

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

query II rowsort
SELECT DISTINCT - 11 AS col0, col2 AS col2 FROM tab0
----
-11
10
-11
47
-11
99

query II rowsort
SELECT ALL - col2, - 84 AS col2 FROM tab0
----
-10
-84
-47
-84
-99
-84

query I rowsort
SELECT - 13 * + 18 AS col0 FROM tab2
----
-234
-234
-234

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 <= NULL
----

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

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

query I rowsort
SELECT 0 * - 46 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT ALL + - 29 + col1 DIV + 13 FROM tab1 AS cor0
----
-26
-28
-29

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + - 29 + col1 / + 13 FROM tab1 AS cor0
----
-26
-28
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT MIN( col0 ) + - ( - COUNT( * ) ) + + + COUNT( * ) + + - 20 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6679
SELECT MIN ( col0 ) + - ( - COUNT ( * ) ) + + + COUNT ( * ) + + - 20 AS col1 FROM tab0
----
1

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

query I rowsort
SELECT + col0 * + + col1 + + 95 FROM tab0
----
1310
192
1922

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT ALL + col1 + + - CAST( - 24 AS SIGNED ) FROM tab2 AS cor0
----
101
75
91

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL + col1 + + - CAST ( - 24 AS INTEGER ) FROM tab2 AS cor0
----
101
75
91

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE 96 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6687
SELECT DISTINCT - col0 + + + CAST( 13 AS SIGNED ) FROM tab1 AS cor0
----
-38
-72
-78

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT - col0 + + + CAST ( 13 AS INTEGER ) FROM tab1 AS cor0
----
-38
-72
-78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + 28, col1 * + - col2, + + 48, + col2 * - 34 + - col2 )
----

query I rowsort
SELECT + col1 - 73 AS col0 FROM tab2
----
-22
-6
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + - COUNT( * ) FROM tab1 WHERE NULL > 76
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT + - COUNT ( * ) FROM tab1 WHERE NULL > 76
----
0

query I rowsort
SELECT DISTINCT + 78 * 82 AS col1 FROM tab0
----
6396

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

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

query I rowsort
SELECT ALL + + col0 * - col1 + col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT - 17 FROM tab2 WHERE NOT + 51 IS NULL
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT ALL col1 DIV - 98 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL col1 / - 98 + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - - 92 * - + col0 + - col0 AS col2 FROM tab2 cor0
----
-4278
-5952
-6975

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL - - CAST( MAX( col0 ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE + col2 + + 57 BETWEEN + + col1 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6699
SELECT ALL - - CAST ( MAX ( col0 ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE + col2 + + 57 BETWEEN + + col1 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6700
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - CAST( NULL AS DECIMAL ) * col2 + + - CAST( NULL AS SIGNED ) AND - col0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - CAST ( NULL AS REAL ) * col2 + + - CAST ( NULL AS INTEGER ) AND - col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + MAX( ALL + + col1 ) * - - SUM( ALL col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
27951

skipif mysql # not compatible
query I rowsort label-6701
SELECT + MAX ( ALL + + col1 ) * - - SUM ( ALL col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
27951

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col1, 57 * col1 col2 FROM tab2 AS cor0
----
2346
2907
4928
4389
5025
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT 63 * + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6704
SELECT 63 * + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-6705
SELECT DISTINCT 3 * ( 41 ), + ( - COUNT( * ) ) AS col2 FROM tab1
----
123
-3

skipif mysql # not compatible
query II rowsort label-6705
SELECT DISTINCT 3 * ( 41 ), + ( - COUNT ( * ) ) AS col2 FROM tab1
----
123
-3

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

query I rowsort
SELECT - col1 FROM tab0 WHERE 20 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL col1 + + - col1 - - col1 FROM tab1
----
14
47
5

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

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

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

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

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

query I rowsort
SELECT + 62 - 20 FROM tab0
----
42
42
42

query I rowsort
SELECT - 56 * 46 - - col1 FROM tab0 cor0
----
-2495
-2555
-2575

onlyif mysql # DIV for integer division: 
query II rowsort label-6715
SELECT + + col2 DIV col0 + - col2 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-10
21
-44
81
-98
1

skipif mysql # not compatible
query II rowsort label-6715
SELECT + + col2 / col0 + - col2 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-10
21
-44
81
-98
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT ALL + col1 DIV + 49 + + 95 + - - col2 AS col1 FROM tab0 AS cor0
----
105
143
194

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL + col1 / + 49 + + 95 + - - col2 AS col1 FROM tab0 AS cor0
----
105
143
194

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT col1 + + - ( - + col0 ) + + col2 DIV + + 96 AS col2 FROM tab0 AS cor0
----
108
96
99

skipif mysql # not compatible
query I rowsort label-6719
SELECT col1 + + - ( - + col0 ) + + col2 / + + 96 AS col2 FROM tab0 AS cor0
----
108
96
99

query I rowsort
SELECT - + 93 + + + col2 AS col1 FROM tab1 cor0
----
-25
-34
3

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 III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - 98 / col1
----

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

query II rowsort
SELECT - col0 * col2 AS col1, - col2 * - - 30 FROM tab0
----
-705
-1410
-870
-300
-9603
-2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6725
SELECT COUNT( + - 45 ) DIV - 60 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT COUNT ( + - 45 ) / - 60 FROM tab2 cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT DISTINCT + 82 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT + 82 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-16
-5

query II rowsort
SELECT + 71 * - 26 + - col0, 12 + + - 40 + col0 * - - col1 * + ( + 71 ) AS col0 FROM tab2 cor0
----
-1892
166538
-1910
349860
-1921
356747

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

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

query I rowsort
SELECT 52 + + - ( - col2 ) FROM tab2 AS cor0
----
110
75
92

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

query I rowsort
SELECT ( 4 ) + - 98 FROM tab0 cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT ALL + 84 DIV - MIN( ALL col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + 84 / - MIN ( ALL col2 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 47 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 * - col1 FROM tab2
----
0

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + col1 + + + col2 * - + 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL COUNT( * ) * - COUNT( + col2 ) * + - 71 FROM tab1
----
639

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL COUNT ( * ) * - COUNT ( + col2 ) * + - 71 FROM tab1
----
639

query I rowsort
SELECT - col0 * 46 AS col1 FROM tab2
----
-2116
-2944
-3450

query II rowsort
SELECT + col1 AS col1, col2 + - 93 AS col2 FROM tab1
----
14
3
47
-25
5
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT + COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6740
SELECT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----
0

query I rowsort
SELECT + 90 + - col2 AS col1 FROM tab0 WHERE - col2 IN ( + col2, + col1 + col1 )
----

query I rowsort
SELECT ALL + ( - col2 ) * 17 + 2 AS col0 FROM tab2
----
-389
-678
-984

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 88 )
----

query II rowsort
SELECT ALL col0 AS col2, col1 + - col1 AS col0 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT - col2 - 99 FROM tab1 AS cor0
----
-158
-167
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT - CAST( ( 84 ) AS SIGNED ) + - MIN( col0 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6746
SELECT - CAST ( ( 84 ) AS INTEGER ) + - MIN ( col0 ) FROM tab0
----
-99

query II rowsort
SELECT 96 * + 84, - col0 AS col2 FROM tab2 cor0
----
8064
-46
8064
-64
8064
-75

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

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

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

query I rowsort
SELECT ALL ( - col0 ) * + col2 + + - col0 FROM tab0 AS cor0 WHERE - col0 + + col1 > + 43
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT ALL col0 DIV - 34 AS col1 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL col0 / - 34 AS col1 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT ( - - col1 ) * + 44 + ( - 17 ) AS col2 FROM tab0
----
27
3547
907

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT MIN( DISTINCT ( - 70 ) ) AS col1 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT MIN ( DISTINCT ( - 70 ) ) AS col1 FROM tab0
----
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 < - 78 + - + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + SUM ( ALL - col2 ) FROM tab2 cor0
----
-121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 80 * col2 * - + ( + col1 ) <> NULL
----

query I rowsort
SELECT - - 26 * + col0 FROM tab1 AS cor0
----
1326
2210
2366

query I rowsort
SELECT DISTINCT - 84 * - col1 + + 6 FROM tab1
----
1182
3954
426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL < 42 * + 70
----

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL < 42 * + 70
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT ALL + CAST( 8 AS SIGNED ) * + SUM( DISTINCT + 3 ) AS col1 FROM tab0 WHERE NOT + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + CAST ( 8 AS INTEGER ) * + SUM ( DISTINCT + 3 ) AS col1 FROM tab0 WHERE NOT + col2 <> NULL
----
NULL

query I rowsort
SELECT 65 + - 94 AS col2 FROM tab1 WHERE NOT col2 * - col2 <= ( + 86 + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL + 42 * COUNT( * ) AS col1 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL + 42 * COUNT ( * ) AS col1 FROM tab2
----
126

query I rowsort
SELECT ALL + 83 * 59 FROM tab1
----
4897
4897
4897

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

skipif mysql # not compatible
query III rowsort label-6766
SELECT * FROM tab1 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6769
SELECT 67 - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-6769
SELECT 67 - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
64

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 87 ) > - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + 69
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT COUNT( * ) - 0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6774
SELECT COUNT ( * ) - 0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT SUM( ALL - CAST( col1 AS SIGNED ) ) * MIN( + 52 - 93 * col2 ) FROM tab2
----
1041690

skipif mysql # not compatible
query I rowsort label-6775
SELECT SUM ( ALL - CAST ( col1 AS INTEGER ) ) * MIN ( + 52 - 93 * col2 ) FROM tab2
----
1041690

query I rowsort
SELECT - 57 * - col0 FROM tab1
----
2907
4845
5187

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT ALL col0 DIV 63 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL col0 / 63 FROM tab0
----
0
1
1

query I rowsort
SELECT + 46 * ( + 13 ) AS col1 FROM tab0
----
598
598
598

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + SUM( DISTINCT + col0 ) * 36 FROM tab1
----
8172

skipif mysql # not compatible
query I rowsort label-6779
SELECT + SUM ( DISTINCT + col0 ) * 36 FROM tab1
----
8172

query I rowsort
SELECT ALL + col1 * - col1 + col2 * col0 AS col0 FROM tab2
----
-139
-1543
-3369

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT + MIN( + col2 ) * + 64 AS col0 FROM tab2
----
1472

skipif mysql # not compatible
query I rowsort label-6781
SELECT + MIN ( + col2 ) * + 64 AS col0 FROM tab2
----
1472

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

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

query I rowsort
SELECT ALL ( - 94 ) * 26 FROM tab0
----
-2444
-2444
-2444

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

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

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT ( NULL ) >= CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT ( NULL ) >= CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT CAST( col2 AS SIGNED ) - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT CAST ( col2 AS INTEGER ) - col2 FROM tab2
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 8 + + 45 / + 89 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6793
SELECT DISTINCT * FROM tab2 WHERE + col2 + + 28 * + CAST( + col1 + col1 * - col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6793
SELECT DISTINCT * FROM tab2 WHERE + col2 + + 28 * + CAST ( + col1 + col1 * - col0 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT DISTINCT ( MIN( ( 26 ) ) ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT ( MIN ( ( 26 ) ) ) FROM tab1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT col2 DIV - 62 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6795
SELECT col2 / - 62 FROM tab2 cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL SUM( + 59 ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL SUM ( + 59 ) FROM tab2 AS cor0
----
177

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 0 * - col1 - 56 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT DISTINCT col1 DIV - 24 FROM tab2
----
-2
-3

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT col1 / - 24 FROM tab2
----
-2
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6804
SELECT + COUNT( col0 ) DIV + 28 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT + COUNT ( col0 ) / + 28 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 13 * + 75 * col2 FROM tab1 AS cor0
----
57525
66300
93600

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6808
SELECT DISTINCT + + COUNT( * ) DIV + 22 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT + + COUNT ( * ) / + 22 FROM tab0 AS cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6810
SELECT ALL MIN( DISTINCT CAST( + 5 AS DECIMAL ) ) AS col2 FROM tab2 cor0 WHERE NOT col2 + + CAST( NULL AS SIGNED ) NOT IN ( col0 - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL MIN ( DISTINCT CAST ( + 5 AS REAL ) ) AS col2 FROM tab2 cor0 WHERE NOT col2 + + CAST ( NULL AS INTEGER ) NOT IN ( col0 - - col1 )
----
NULL

query I rowsort
SELECT ALL 95 + 63 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9d3400f2b4f3756b63546a6a379b95c4

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

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

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

query I rowsort
SELECT ALL 90 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT + CAST( + + col0 AS SIGNED ) + col0 - - col0 * 13 FROM tab2
----
1125
690
960

skipif mysql # not compatible
query I rowsort label-6815
SELECT + CAST ( + + col0 AS INTEGER ) + col0 - - col0 * 13 FROM tab2
----
1125
690
960

query I rowsort
SELECT col1 + - - 13 + + + col0 FROM tab0
----
109
111
121

query I rowsort
SELECT ALL - 3 + - col1 + - - 97 * col2 FROM tab2 AS cor0
----
2177
3800
5556

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - 88 + + col0 / - col0 = NULL
----

query I rowsort
SELECT DISTINCT - 83 + - + col1 FROM tab1 AS cor0
----
-130
-88
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 47 ) + - 24 >= col1
----
15
81
47

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

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

query I rowsort
SELECT DISTINCT - col1 * + col1 AS col1 FROM tab0 AS cor0 WHERE + 1 * - col0 < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6824
SELECT DISTINCT * FROM tab1 WHERE NOT 88 + + + 10 + + CAST( NULL AS SIGNED ) <> - col1
----

skipif mysql # not compatible
query III rowsort label-6824
SELECT DISTINCT * FROM tab1 WHERE NOT 88 + + + 10 + + CAST ( NULL AS INTEGER ) <> - col1
----

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

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

query I rowsort
SELECT - 92 * - col0 AS col1 FROM tab1
----
4692
7820
8372

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 75 > ( + col2 )
----
97
1
99

query II rowsort
SELECT ALL + ( - 36 ) AS col1, ( - col0 ) + col0 AS col2 FROM tab0
----
-36
0
-36
0
-36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - 77 - ( + 9 ) * - COUNT( * ) * COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 77 - ( + 9 ) * - COUNT ( * ) * COUNT ( * ) FROM tab1
----
4

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT ALL + 70 + - col0 - + col2 DIV + col1 FROM tab1 AS cor0
----
-22
-26
13

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + 70 + - col0 - + col2 / + col1 FROM tab1 AS cor0
----
-22
-26
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT - - ( - + col1 ) * + col0 + - + CAST( + col1 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
-1428
-850
-8554

skipif mysql # not compatible
query I rowsort label-6834
SELECT - - ( - + col1 ) * + col0 + - + CAST ( + col1 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
-1428
-850
-8554

query I rowsort
SELECT DISTINCT - col2 + - col0 * - + col2 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT ALL - col0 * col0 - - col1 AS col0 FROM tab0 cor0
----
-144
-7548
-9408

query I rowsort
SELECT col1 * 68 FROM tab1 WHERE NOT col2 BETWEEN ( - - 64 ) AND NULL OR NOT col2 <= ( 32 + - 36 )
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT COUNT( - 69 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT COUNT ( - 69 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT ( + col0 ) * + + 55 FROM tab2
----
2530
3520
4125

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - 82 / + + col2 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT DISTINCT - 71 * - CAST( NULL AS SIGNED ) * - MAX( col1 ) + 38 FROM tab2 AS cor0 WHERE NOT 72 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - 71 * - CAST ( NULL AS INTEGER ) * - MAX ( col1 ) + 38 FROM tab2 AS cor0 WHERE NOT 72 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT ALL + 90 DIV - + 39 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + 90 / - + 39 FROM tab1 cor0
----
-2
-2
-2

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 82 )
----

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

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

query I rowsort
SELECT - 70 / - col0 + 81 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6847
SELECT - COUNT( - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6847
SELECT - COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6848
SELECT ALL 34 AS col0, COUNT( * ) FROM tab0
----
34
3

skipif mysql # not compatible
query II rowsort label-6848
SELECT ALL 34 AS col0, COUNT ( * ) FROM tab0
----
34
3

query I rowsort
SELECT DISTINCT + 6 * + - 61 * + - col0 FROM tab2
----
16836
23424
27450

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col1 * + 90 + + col1 ) <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT MIN( DISTINCT + - col1 ) AS col2, SUM( DISTINCT - col1 ) FROM tab1
----
-47
-66

skipif mysql # not compatible
query II rowsort label-6852
SELECT MIN ( DISTINCT + - col1 ) AS col2, SUM ( DISTINCT - col1 ) FROM tab1
----
-47
-66

query I rowsort
SELECT DISTINCT 98 * + 78 FROM tab1 WHERE + ( - + col0 ) IS NOT NULL
----
7644

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT ( - 12 * col1 ) > NULL ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT + col1 - col0 FROM tab1 AS cor0 WHERE NOT + CAST( + - col0 AS SIGNED ) NOT IN ( + col2, col2 )
----

skipif mysql # not compatible
query I rowsort label-6856
SELECT + col1 - col0 FROM tab1 AS cor0 WHERE NOT + CAST ( + - col0 AS INTEGER ) NOT IN ( + col2, col2 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT DISTINCT - + MAX( ALL + col0 ) * - 82 + AVG ( + col2 ) + + CAST( NULL AS SIGNED ) * 10 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT - + MAX ( ALL + col0 ) * - 82 + AVG ( + col2 ) + + CAST ( NULL AS INTEGER ) * 10 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 64 AS col0 FROM tab0 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( + 12 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( + 12 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 91 + + 13
----

query III rowsort
SELECT * FROM tab0 WHERE - - 85 <> ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 60 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + 6 * + col2 + + col2 + - + col2 AS col2 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT + 76 + - col1 AS col1 FROM tab2 AS cor0
----
-1
25
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT ALL - + 7 + - ( COUNT( * ) ) - - COUNT( * ) + - 91 DIV 96 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - + 7 + - ( COUNT ( * ) ) - - COUNT ( * ) + - 91 / 96 FROM tab2 AS cor0
----
-7

query II rowsort
SELECT + col0 + + + col1, 4 AS col1 FROM tab2 AS cor0
----
141
4
142
4
97
4

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

query I rowsort
SELECT - - ( - - 96 ) + + 56 FROM tab1 AS cor0
----
152
152
152

query I rowsort
SELECT + ( - 62 ) + - - col2 + + + col0 + + col0 AS col1 FROM tab0
----
122
15
231

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

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

query I rowsort
SELECT DISTINCT + col1 + - - 48 FROM tab1 AS cor0
----
53
62
95

query II rowsort
SELECT - col1, + col2 * + 59 AS col0 FROM tab0 cor0
----
-1
5841
-21
590
-81
2773

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT DISTINCT 53 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) - + - col2 + - col2 * 19 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT 53 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - + - col2 + - col2 * 19 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + + 86 + col2 AS col2 FROM tab1 WHERE NULL >= + col1 * col2 + - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT SUM( ALL + 87 ) / MAX( ALL - 46 ) FROM tab1 WHERE NOT - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT SUM ( ALL + 87 ) / MAX ( ALL - 46 ) FROM tab1 WHERE NOT - col0 = NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT + MAX( DISTINCT + 3 ) * + 17 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6880
SELECT + MAX ( DISTINCT + 3 ) * + 17 FROM tab2
----
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6882
SELECT + ( - CAST( - col0 AS SIGNED ) ) * + 94, + col0 FROM tab2 AS cor0
----
4324
46
6016
64
7050
75

skipif mysql # not compatible
query II rowsort label-6882
SELECT + ( - CAST ( - col0 AS INTEGER ) ) * + 94, + col0 FROM tab2 AS cor0
----
4324
46
6016
64
7050
75

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

skipif mysql # not compatible
query I rowsort label-6883
SELECT + + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( NULL ) AND col0 + 74 + - 1
----

query I rowsort
SELECT + col2 * + col2 * + 56 AS col2 FROM tab1 AS cor0
----
194936
258944
516096

query I rowsort
SELECT DISTINCT + col1 * - col0 * 43 * - + col1 + 26 AS col2 FROM tab2 AS cor0
----
14477051
16316634
5144804

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT + SUM( ALL - col0 ) * + ( + 5 ) AS col2 FROM tab2
----
-925

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + SUM ( ALL - col0 ) * + ( + 5 ) AS col2 FROM tab2
----
-925

query II rowsort
SELECT col0, - 89 FROM tab2
----
46
-89
64
-89
75
-89

query I rowsort
SELECT DISTINCT - - 31 FROM tab2 WHERE col0 + col1 * col1 > NULL
----

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

query I rowsort
SELECT ALL col0 + + col2 + + 35 * 76 AS col2 FROM tab1
----
2804
2807
2819

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

query I rowsort
SELECT DISTINCT - + ( - 54 ) * - col1 * - col1 AS col2 FROM tab2 AS cor0
----
140454
242406
320166

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

query I rowsort
SELECT DISTINCT - 17 + col0 + - 36 + col0 FROM tab0
----
-23
121
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT + - CAST( - col2 AS SIGNED ) FROM tab2 WHERE NULL NOT IN ( 89, col2 + - + col1, - + col2, + + col0 )
----

skipif mysql # not compatible
query I rowsort label-6897
SELECT + - CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NULL NOT IN ( 89, col2 + - + col1, - + col2, + + col0 )
----

query I rowsort
SELECT - ( 20 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - 51 col0 FROM tab2 AS cor0
----
-11
-28
7

query II rowsort
SELECT + col0 + - - col2, + col1 AS col0 FROM tab0 AS cor0
----
196
1
62
81
97
21

query I rowsort
SELECT col1 * ( + 88 ) * + col0 AS col0 FROM tab1 AS cor0 WHERE col0 + - ( - 16 ) NOT IN ( ( - col0 ) * + - 70 )
----
37400
376376
62832

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT - ( ( col1 ) ) DIV - col0 + - - 11 AS col0 FROM tab2 AS cor0
----
11
12
12

skipif mysql # not compatible
query I rowsort label-6902
SELECT - ( ( col1 ) ) / - col0 + - - 11 AS col0 FROM tab2 AS cor0
----
11
12
12

onlyif mysql # DIV for integer division: 
query II rowsort label-6903
SELECT + col1 col0, col0 DIV col1 * + ( - - 16 ) FROM tab0 cor0
----
1
1552
21
64
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6903
SELECT + col1 col0, col0 / col1 * + ( - - 16 ) FROM tab0 cor0
----
1
1552
21
64
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - MAX( - 31 ) + + + 60 + + 46 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
229

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - MAX ( - 31 ) + + + 60 + + 46 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
229

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT ALL - - col1 DIV + col2 + + col2 + + 92 AS col0 FROM tab0 AS cor0 WHERE + col2 < col0
----
104

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - - col1 / + col2 + + col2 + + 92 AS col0 FROM tab0 AS cor0 WHERE + col2 < col0
----
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - 1 col2 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL + MIN( ALL col2 ) + - COUNT( * ) + + - 95 AS col0 FROM tab2 AS cor0 WHERE ( - 93 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + MIN ( ALL col2 ) + - COUNT ( * ) + + - 95 AS col0 FROM tab2 AS cor0 WHERE ( - 93 ) IS NULL
----
NULL

query II rowsort
SELECT ALL 32 * col1 * col2 * - - col1 + - + 48 - 39 AS col1, col1 AS col0 FROM tab2 AS cor0
----
1914249
51
7589033
77
8331497
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT ( + + COUNT( * ) ) + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT ( + + COUNT ( * ) ) + - COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - - 96 FROM tab2 AS cor0
----
119
136
154

query I rowsort
SELECT ALL - col0 + + 41 + - col2 FROM tab1
----
-103
-106
-118

query I rowsort
SELECT + 53 - 6 * + col1 FROM tab2
----
-253
-349
-409

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

query I rowsort
SELECT ALL 32 - + 36 + + - 45 * ( + ( - col1 ) ) * - col2 AS col0 FROM tab0
----
-171319
-4459
-9454

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT COUNT( * ) * + + 3 FROM tab0, tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6915
SELECT COUNT ( * ) * + + 3 FROM tab0, tab0 AS cor0
----
27

query I rowsort
SELECT 57 - 21 * - + 23 - - - col2 FROM tab0
----
441
493
530

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6918
SELECT DISTINCT + 44 DIV col2, + col0 * + 48 AS col2 FROM tab2
----
0
3600
1
2208
1
3072

skipif mysql # not compatible
query II rowsort label-6918
SELECT DISTINCT + 44 / col2, + col0 * + 48 AS col2 FROM tab2
----
0
3600
1
2208
1
3072

query I rowsort
SELECT col2 - - + 81 + - col1 FROM tab1
----
102
135
163

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

query I rowsort
SELECT col0 * + 80 * + col1 * 66 * + col1 AS col2 FROM tab2 cor0
----
1777644000
2003527680
631730880

query I rowsort
SELECT - col0 + - 8 AS col0 FROM tab2 AS cor0 WHERE NOT - 46 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6924
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * 73 IN ( - CAST( NULL AS SIGNED ) + 57 * + ( col0 ) * + - 27 / ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-6924
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * 73 IN ( - CAST ( NULL AS INTEGER ) + 57 * + ( col0 ) * + - 27 / ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT + + 86 - - col1 + col2 * + ( - 64 ) * + col2 * 37 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-10949499
-21823388
-8242917

skipif mysql # not compatible
query I rowsort label-6925
SELECT + + 86 - - col1 + col2 * + ( - 64 ) * + col2 * 37 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10949499
-21823388
-8242917

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6926
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

skipif mysql # not compatible
query II rowsort label-6926
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6928
SELECT ALL - + col1, - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif mysql # not compatible
query II rowsort label-6928
SELECT ALL - + col1, - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, + col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

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

query I rowsort
SELECT + + col2 * - col0 * + 78 - - col1 FROM tab1 AS cor0
----
-381874
-391165
-482617

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 BETWEEN - 42 AND 14 + + - col1 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT - + 23 * + col1 * + col2 * + col0 AS col2 FROM tab2 cor0
----
-1241034
-4533760
-6703350

query I rowsort
SELECT DISTINCT + + ( col1 ) * + - 38 AS col0 FROM tab2 AS cor0
----
-1938
-2546
-2926

query II rowsort
SELECT - col2 * - 85 AS col1, 64 FROM tab2
----
1955
64
3400
64
4930
64

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

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT + col0 DIV - 50 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT + col0 / - 50 FROM tab0
----
-1
-1
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT 73 DIV col1 * + 80 * + col2 col1 FROM tab2
----
0
1840
4640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6941
SELECT 73 / col1 * + 80 * + col2 col1 FROM tab2
----
0
1840
4640

query I rowsort
SELECT col1 + 70 AS col0 FROM tab2
----
121
137
147

query I rowsort
SELECT ALL col0 * - - 5 FROM tab1
----
255
425
455

query I rowsort
SELECT col1 * 44 + + col0 AS col2 FROM tab0 AS cor0
----
1011
141
3579

query I rowsort
SELECT + col0 + + 36 FROM tab0 AS cor0
----
123
133
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - col1 NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - col1 NOT IN ( - col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 11 col0 FROM tab1 AS cor0
----
-48
-57
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6949
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, - col1 - - + 23 ) OR + CAST( + ( 83 ) AS SIGNED ) > - - col0 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6949
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, - col1 - - + 23 ) OR + CAST ( + ( 83 ) AS INTEGER ) > - - col0 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 + - col0 * - col0 + - col2 * - col2 AS col0 FROM tab1 cor0
----
10791
11868
12996

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6951
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6951
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT 46 - - 80 * col0 + - 84 + col2 AS col0 FROM tab0 AS cor0
----
1209
6932
7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 61 + - + ( + 27 ) * + - 81 + - col1 * - 63 col0 FROM tab0 AS cor0
----
2311
3571
7351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT + CAST( 89 AS SIGNED ) + + - col2 + - + col0 FROM tab0 AS cor0
----
-107
-8
27

skipif mysql # not compatible
query I rowsort label-6954
SELECT + CAST ( 89 AS INTEGER ) + + - col2 + - + col0 FROM tab0 AS cor0
----
-107
-8
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6955
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + 38 + - 76 col2 FROM tab2
----
NULL

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

query II rowsort
SELECT DISTINCT col0 AS col2, + 31 AS col2 FROM tab1
----
51
31
85
31
91
31

query I rowsort
SELECT ALL + ( 77 ) AS col1 FROM tab0
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT MIN( ALL col1 ) DIV + 35 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT MIN ( ALL col1 ) / + 35 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( - col2 - - 11, + col1 * - 26 )
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT - COUNT( * ) + 23 FROM tab0 cor0
----
20

skipif mysql # not compatible
query I rowsort label-6963
SELECT - COUNT ( * ) + 23 FROM tab0 cor0
----
20

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

query II rowsort
SELECT 81 + + col2 AS col2, + col0 AS col0 FROM tab2 cor0
----
104
46
121
64
139
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT DISTINCT - 34 + - - SUM( - 99 ) AS col0 FROM tab1 AS cor0
----
-331

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - 34 + - - SUM ( - 99 ) AS col0 FROM tab1 AS cor0
----
-331

query I rowsort
SELECT DISTINCT 37 + + col2 FROM tab1 AS cor0
----
105
133
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + 74 col0, - 29 * - col1 AS col0 FROM tab1 AS cor0
----
133
145
142
1363
170
406

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

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

query I rowsort
SELECT - + 49 + + col0 / + col1 FROM tab1 AS cor0 WHERE NOT NULL <> 47
----

query I rowsort
SELECT + 70 AS col0 FROM tab1 AS cor0 WHERE NOT + 63 IS NULL
----
70
70
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL + ( - COUNT( * ) ) AS col2 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL + ( - COUNT ( * ) ) AS col2 FROM tab0, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - 69 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - 69 IS NULL
----
-3

query I rowsort
SELECT ALL col1 + + 96 FROM tab0
----
117
177
97

query I rowsort
SELECT + 66 * + 53 FROM tab2
----
3498
3498
3498

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT - 92 + - 61 - - CAST( - col2 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-227
-270
-278

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 92 + - 61 - - CAST ( - col2 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-227
-270
-278

query I rowsort
SELECT 20 AS col2 FROM tab0 WHERE NULL IS NULL
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col2 + - col2 * col0 + + + col0 col1 FROM tab2 AS cor0
----
-2416
-4159
-966

onlyif mysql # aggregate syntax: 
query II rowsort label-6981
SELECT ALL - 67 * + COUNT( * ) AS col1, + 53 FROM tab2 cor0
----
-201
53

skipif mysql # not compatible
query II rowsort label-6981
SELECT ALL - 67 * + COUNT ( * ) AS col1, + 53 FROM tab2 cor0
----
-201
53

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

query I rowsort
SELECT - 24 * - col1 * - 34 FROM tab2 AS cor0
----
-41616
-54672
-62832

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT - CAST( SUM( + 8 ) AS SIGNED ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-6985
SELECT - CAST ( SUM ( + 8 ) AS INTEGER ) FROM tab1
----
-24

query II rowsort
SELECT + 94 AS col2, + col0 FROM tab2
----
94
46
94
64
94
75

query I rowsort
SELECT + 73 * 72 * - - ( - col0 ) FROM tab1
----
-268056
-446760
-478296

query I rowsort
SELECT - col2 * + 79 * - col1 AS col1 FROM tab0
----
16590
300753
7821

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL - - MIN( + ( - - 48 ) ) FROM tab2 WHERE NOT 81 IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - - MIN ( + ( - - 48 ) ) FROM tab2 WHERE NOT 81 IS NULL
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 * - col1 + col0 col1 FROM tab1 AS cor0
----
1689
255
527

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT + 65 DIV col1 * 29 AS col1 FROM tab0 AS cor0
----
0
1885
87

skipif mysql # not compatible
query I rowsort label-6992
SELECT + 65 / col1 * 29 AS col1 FROM tab0 AS cor0
----
0
1885
87

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col2 <= NULL
----

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

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

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

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

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

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

query I rowsort
SELECT - 35 * col0 + - + col0 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT - ( COUNT( * ) ) * - 87 * - 7 FROM tab1 cor0 WHERE NOT - ( + col2 ) * + col2 <> - + 55
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT - ( COUNT ( * ) ) * - 87 * - 7 FROM tab1 cor0 WHERE NOT - ( + col2 ) * + col2 <> - + 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT DISTINCT + - col2 + - 61 + col1 DIV - col2 + + col0 FROM tab1 AS cor0
----
-106
-35
-38

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT + - col2 + - 61 + col1 / - col2 + + col0 FROM tab1 AS cor0
----
-106
-35
-38

query I rowsort
SELECT 6 * col2 + + col2 + + col2 AS col1 FROM tab2 cor0
----
184
320
464

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

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

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

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

query I rowsort
SELECT col2 + + 93 AS col0 FROM tab2
----
116
133
151

query I rowsort
SELECT col1 * col0 + + - col2 * col1 * + col2 FROM tab1
----
-128310
-16980
-213051

query II rowsort
SELECT DISTINCT ( + col2 ) AS col1, 14 * - - col2 FROM tab1
----
59
826
68
952
96
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + ( COUNT( * ) ) + - MIN( DISTINCT col2 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-7007
SELECT + ( COUNT ( * ) ) + - MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
-7

query I rowsort
SELECT - 28 FROM tab1 WHERE NULL < - col1
----

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

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT + - 99 * - 28 FROM tab1 cor0
----
2772
2772
2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT - COUNT( * ) DIV - - COUNT( * ) col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7011
SELECT - COUNT ( * ) / - - COUNT ( * ) col0 FROM tab2 AS cor0
----
-1

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

query II rowsort
SELECT DISTINCT col1, - 93 FROM tab1 cor0
----
14
-93
47
-93
5
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT - COUNT( * ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7014
SELECT - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col1 * - - ( - col2 ) * + - ( 83 ) + + col1, - col1 * + col2 col2 FROM tab2
----
16361037
-3080
24190417
-3886
4478565
-1173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7016
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0, + 79 * - col0 AS col2 FROM tab1
----
NULL
-4029
NULL
-6715
NULL
-7189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7016
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, + 79 * - col0 AS col2 FROM tab1
----
NULL
-4029
NULL
-6715
NULL
-7189

query I rowsort
SELECT DISTINCT + 56 * col1 FROM tab1
----
2632
280
784

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

query I rowsort
SELECT - col2 * ( + 23 ) AS col1 FROM tab0 cor0
----
-1081
-2277
-230

query I rowsort
SELECT ALL + 9 + - + 72 AS col2 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL + 55 + MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + 55 + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
152

query I rowsort
SELECT - col0 + - col0 + - 85 * + col0 FROM tab1 AS cor0
----
-4437
-7395
-7917

query I rowsort
SELECT DISTINCT col2 + col2 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
199
461
6655

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * col0 NOT IN ( ( - col2 ) / - 61 - 81 )
----

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

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

query II rowsort
SELECT col2 AS col1, - ( + col0 ) * + 86 AS col0 FROM tab1
----
59
-7310
68
-7826
96
-4386

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

query I rowsort
SELECT ALL col2 * - + 51 AS col2 FROM tab1
----
-3009
-3468
-4896

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

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

query I rowsort
SELECT DISTINCT col0 + col1 + + - 39 + - col0 FROM tab0
----
-18
-38
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT - 93 DIV col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT - 93 / col0 FROM tab0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT - COUNT( * ) - 15 AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7033
SELECT - COUNT ( * ) - 15 AS col1 FROM tab2
----
-18

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL col2 * - + col2 / - col2 AS col1 FROM tab1
----
59
68
96

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7041
SELECT CAST( + col1 AS SIGNED ) AS col1, col1 * CAST( NULL AS SIGNED ) * - 31 AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7041
SELECT CAST ( + col1 AS INTEGER ) AS col1, col1 * CAST ( NULL AS INTEGER ) * - 31 AS col0 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

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

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

query I rowsort
SELECT ALL col2 * col0 * + col0 AS col0 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN + col0 / + - col1 + 67 * col2 AND + ( + ( - 75 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT MAX( - + ( + CAST( + 20 AS SIGNED ) ) ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-7046
SELECT MAX ( - + ( + CAST ( + 20 AS INTEGER ) ) ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT - - col2 - + + col2 + + col0 FROM tab2 WHERE NOT + + col0 <> - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT COUNT( 38 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT COUNT ( 38 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 18 * col0 + 45 <= ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 * + 66 / - + 99 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 * + 66 / - + 99 < NULL
----
0

query I rowsort
SELECT + 65 * - - 15 FROM tab2
----
975
975
975

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - MAX( - 76 ) FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-7058
SELECT - MAX ( - 76 ) FROM tab1 cor0
----
76

query I rowsort
SELECT ALL col0 + + - 54 FROM tab1 AS cor0
----
-3
31
37

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT 55 + + - COUNT( * ) * - MIN( ALL + col1 ) FROM tab2 AS cor0
----
208

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT 55 + + - COUNT ( * ) * - MIN ( ALL + col1 ) FROM tab2 AS cor0
----
208

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

query I rowsort
SELECT - col0 + ( ( + - col2 ) ) FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT 90 - col1 FROM tab1
----
43
76
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT ALL + COUNT( * ) DIV - + SUM( 16 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + COUNT ( * ) / - + SUM ( 16 ) FROM tab0
----
0

query I rowsort
SELECT ALL + col0 * - - col0 AS col2 FROM tab1
----
2601
7225
8281

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

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

query I rowsort
SELECT - col1 - - col0 * + - col1 AS col1 FROM tab0 cor0
----
-1296
-1848
-98

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT ALL - 12 + - col0 DIV 63 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 94 = - + 79 + col0 + + col1 * + 45
----
-12
52
63

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL - 12 + - col0 / 63 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 94 = - + 79 + col0 + + col1 * + 45
----
-12
52
63

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 34 <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT DISTINCT - 36 * 13 DIV col2 FROM tab1 AS cor0
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT - 36 * 13 / col2 FROM tab1 AS cor0
----
-4
-6
-7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - ( - col1 ) NOT BETWEEN NULL AND 2
----

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

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

query I rowsort
SELECT 77 * + - col0 AS col2 FROM tab1
----
-3927
-6545
-7007

query I rowsort
SELECT DISTINCT col2 * - + ( col0 ) AS col2 FROM tab1
----
-4896
-5015
-6188

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT CAST( - - SUM( ALL - + col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-227

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7087
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < ( col2 )
----

query I rowsort
SELECT ALL ( + col2 ) - - + col2 FROM tab1 AS cor0
----
118
136
192

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

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

query I rowsort
SELECT ALL + 27 - 49 + + col2 AS col1 FROM tab0 AS cor0
----
-12
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT 68 - + COUNT( * ) + + 1 AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7093
SELECT 68 - + COUNT ( * ) + + 1 AS col1 FROM tab1
----
66

query I rowsort
SELECT - col2 - - - col1 AS col0 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL - SUM( + col1 ) - - 47 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL - SUM ( + col1 ) - - 47 FROM tab1
----
-19

query I rowsort
SELECT + 81 - + ( + + 27 ) FROM tab1
----
54
54
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT - SUM( - col0 ) / - COUNT( ALL - - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 21 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT - SUM ( - col0 ) / - COUNT ( ALL - - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + 21 >= NULL
----
NULL

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

query I rowsort
SELECT ALL + 29 FROM tab0 WHERE - col0 + col2 * + + 26 - - col2 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT + 12 + + col2 FROM tab2 AS cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 12 + + col2 FROM tab2 AS cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 AS cor0 WHERE NOT 87 = - col0
----
51
85
91

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

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - MIN ( DISTINCT + - CAST ( - 76 AS INTEGER ) ) FROM tab2 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL - + COUNT( DISTINCT - - 99 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - + COUNT ( DISTINCT - - 99 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + MAX( DISTINCT + 93 ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7106
SELECT + MAX ( DISTINCT + 93 ) AS col0 FROM tab0
----
93

query II rowsort
SELECT DISTINCT col2, - col1 + + col0 FROM tab2
----
23
-5
40
-13
58
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT DISTINCT - col2 + col2 * - col0 * - col0 * - - col1 DIV + col1 + + col0 FROM tab2
----
163864
326267
48691

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT - col2 + col2 * - col0 * - col0 * - - col1 / + col1 + + col0 FROM tab2
----
163864
326267
48691

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

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

query I rowsort
SELECT ALL - 26 AS col2 FROM tab1 WHERE ( NULL > ( - 36 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT col1 * - col2 + + col1 + + col0 DIV col1 FROM tab1
----
-1327
-273
-3148

skipif mysql # not compatible
query I rowsort label-7111
SELECT col1 * - col2 + + col1 + + col0 / col1 FROM tab1
----
-1327
-273
-3148

query I rowsort
SELECT - 86 + + - col1 AS col2 FROM tab1 AS cor0
----
-100
-133
-91

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

query I rowsort
SELECT + 61 AS col0 FROM tab1 WHERE + 26 IS NOT NULL
----
61
61
61

query I rowsort
SELECT DISTINCT + - col2 + + col2 + - 52 * + - col1 FROM tab1 AS cor0
----
2444
260
728

query I rowsort
SELECT ALL - + col2 - + - col0 + + col1 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT + col2 + ( - col1 ) + + col1 * 44 DIV + col1 AS col1 FROM tab0 AS cor0
----
10
142
33

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + col2 + ( - col1 ) + + col1 * 44 / + col1 AS col1 FROM tab0 AS cor0
----
10
142
33

query I rowsort
SELECT 92 + - - ( - col0 ) FROM tab0 AS cor0
----
-5
5
77

query II rowsort
SELECT ALL 92 + - col2 * - + 58 AS col0, - col1 FROM tab2 AS cor0
----
1426
-51
2412
-77
3456
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL + COUNT( ALL + - 0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + COUNT ( ALL + - 0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT - COUNT( * ) * COUNT( col0 ) - - 91 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT - COUNT ( * ) * COUNT ( col0 ) - - 91 FROM tab2
----
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - col1 + + 13 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL + COUNT( * ) * - 59 * - 20 AS col0 FROM tab1
----
3540

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL + COUNT ( * ) * - 59 * - 20 AS col0 FROM tab1
----
3540

query I rowsort
SELECT ALL + col1 * + + 36 * + + 33 FROM tab2 AS cor0
----
60588
79596
91476

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

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

query II rowsort
SELECT DISTINCT + ( + col2 ), col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - ( - 24 ) * + 61 * col0 - + col2 * + + 4 FROM tab0 cor0
----
127328
141612
21772

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT DISTINCT + + MAX( - 35 ), + ( - COUNT( * ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-35
0

skipif mysql # not compatible
query II rowsort label-7129
SELECT DISTINCT + + MAX ( - 35 ), + ( - COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-35
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----

query II rowsort
SELECT ALL col2, - 83 AS col1 FROM tab2
----
23
-83
40
-83
58
-83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL COUNT( * ) + - - 55 FROM tab0 WHERE 76 + + 43 - - col1 / - col1 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL COUNT ( * ) + - - 55 FROM tab0 WHERE 76 + + 43 - - col1 / - col1 IS NOT NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL CAST( NULL AS SIGNED ) * - + 13 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL CAST ( NULL AS INTEGER ) * - + 13 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

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

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

query I rowsort
SELECT DISTINCT 11 * + - ( 90 ) + + + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-792
-896
-970

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

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

query II rowsort
SELECT ALL + 37 + - col2 + - ( + ( + col1 ) ) AS col2, col0 AS col1 FROM tab2 AS cor0
----
-37
46
-80
64
-88
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7142
SELECT * FROM tab2 AS cor0 WHERE 52 <= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7142
SELECT * FROM tab2 AS cor0 WHERE 52 <= + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT DISTINCT col1 DIV col1 + + + col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT col1 / col1 + + + col0 FROM tab1 AS cor0
----
52
86
92

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

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

query I rowsort
SELECT DISTINCT - col1 + - - col1 AS col0 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT - ( - 23 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT - ( - 23 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL col1 - - col1 + + col2 * col0 - - 82 FROM tab2
----
1242
2796
4566

query I rowsort
SELECT DISTINCT + 36 * - col0 FROM tab0
----
-3132
-3492
-540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7150
SELECT 39 * - ( - col0 ) col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
1989
NULL
3315
NULL
3549
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7150
SELECT 39 * - ( - col0 ) col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
1989
NULL
3315
NULL
3549
NULL

query I rowsort
SELECT - col1 * + 32 AS col1 FROM tab0
----
-2592
-32
-672

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT - MAX( - col2 ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - col0 )
----
30

skipif mysql # not compatible
query I rowsort label-7154
SELECT - MAX ( - col2 ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - col0 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT - + COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7155
SELECT - + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL CAST( - - AVG ( ALL + col1 ) AS SIGNED ) FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL CAST ( - - AVG ( ALL + col1 ) AS INTEGER ) FROM tab1 cor0
----
22

query I rowsort
SELECT DISTINCT + 37 * - col0 + - - col0 AS col2 FROM tab2 AS cor0
----
-1656
-2304
-2700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * 85 col2 FROM tab1 AS cor0 WHERE NOT + 67 IS NULL
----
1204
4042
430

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

skipif mysql # not compatible
query II rowsort label-7160
SELECT DISTINCT COUNT ( * ), + 73 AS col0 FROM tab0 AS cor0
----
3
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7161
SELECT - + col0 DIV - CAST( + 51 AS SIGNED ) + + - 21 FROM tab0 AS cor0
----
-20
-20
-21

skipif mysql # not compatible
query I rowsort label-7161
SELECT - + col0 / - CAST ( + 51 AS INTEGER ) + + - 21 FROM tab0 AS cor0
----
-20
-20
-21

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

query III rowsort
SELECT * FROM tab2 WHERE - 53 * - + col0 <> + - 18 + + col2 + - - col1 - ( + 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL MAX( - ( 35 ) ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL MAX ( - ( 35 ) ) FROM tab0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7166
SELECT + CAST( - col2 AS SIGNED ) + - col0 * - - col2 + - - CAST( - - ( - - col1 ) AS SIGNED ) * + 9 FROM tab0
----
-23
-691
-9693

skipif mysql # not compatible
query I rowsort label-7166
SELECT + CAST ( - col2 AS INTEGER ) + - col0 * - - col2 + - - CAST ( - - ( - - col1 ) AS INTEGER ) * + 9 FROM tab0
----
-23
-691
-9693

query I rowsort
SELECT DISTINCT + ( + col1 ) * + col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL - col1 + - 80 + col0 AS col0 FROM tab1 AS cor0
----
-36
-43
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT + + COUNT( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0 WHERE - CAST( - ( + 45 ) AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7170
SELECT + + COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0 WHERE - CAST ( - ( + 45 ) AS INTEGER ) IS NULL
----
0

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

query I rowsort
SELECT + + col1 * + - 97 + + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1940
-7795
99

query I rowsort
SELECT + col1 * col1 + + + 91 FROM tab1 AS cor0
----
116
2300
287

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT + col2 DIV + 16 + + - col1 + - - col2 FROM tab0 AS cor0
----
-11
-32
104

skipif mysql # not compatible
query I rowsort label-7178
SELECT + col2 / + 16 + + - col1 + - - col2 FROM tab0 AS cor0
----
-11
-32
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7179
SELECT ALL + CAST( + - ( - CAST( col0 AS SIGNED ) ) AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL + CAST ( + - ( - CAST ( col0 AS INTEGER ) ) AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL + + col2 - + 48 AS col2 FROM tab1 AS cor0
----
11
20
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 71 * + col1 <> + col2 / + col1 * + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL SUM( - - 83 ) col1 FROM tab0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7184
SELECT ALL SUM ( - - 83 ) col1 FROM tab0
----
249

query I rowsort
SELECT ( 90 ) AS col2 FROM tab0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7186
SELECT - CAST( + ( - + col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7186
SELECT - CAST ( + ( - + col2 ) AS INTEGER ) FROM tab2
----
23
40
58

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

query I rowsort
SELECT + - col1 * - col0 * 70 FROM tab0 WHERE NOT NULL IS NOT NULL
----
127890
6790
85050

query I rowsort
SELECT DISTINCT - ( + ( 25 ) ) * - col2 FROM tab2
----
1000
1450
575

query II rowsort
SELECT 17 AS col0, + col2 * + 83 AS col0 FROM tab0 AS cor0
----
17
3901
17
8217
17
830

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

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

query I rowsort
SELECT - col1 * 0 + - + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( - 39 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 19 * + 40 AS col0 FROM tab0
----
760

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL - MAX( - col1 ) + ( + 48 ) + + COUNT( * ) + + + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL - MAX ( - col1 ) + ( + 48 ) + + COUNT ( * ) + + + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + - MIN( + - col2 ) + 55 + COUNT( * ) col0 FROM tab0 AS cor0
----
157

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

query I rowsort
SELECT ALL + - 44 + 49 + + + 20 AS col2 FROM tab0 AS cor0
----
25
25
25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col2 * + + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col2 * + + col0 <> NULL
----

query I rowsort
SELECT - + ( + col0 ) + - 7 FROM tab1 AS cor0
----
-58
-92
-98

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7205
SELECT + CAST( NULL AS SIGNED ) col1, - col2 + col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7205
SELECT + CAST ( NULL AS INTEGER ) col1, - col2 + col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * 72 NOT BETWEEN col0 AND col1
----

query II rowsort
SELECT ALL + col2 AS col2, 39 AS col2 FROM tab2
----
23
39
40
39
58
39

query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab1 WHERE NOT + 80 + col2 * - col0 <> + col1 * - col2
----

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

skipif mysql # not compatible
query I rowsort label-7209
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT + col1 DIV 89 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT + col1 / 89 * - col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT ALL ( + 30 ) DIV + col0 col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7212
SELECT ALL ( + 30 ) / + col0 col0 FROM tab0
----
0
0
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7214
SELECT col1 * ( + - col2 ), + 7 * + col0 * - - CAST( NULL AS SIGNED ) col1, + col2 FROM tab1
----
9 values hashing to b3c12765935365c51a3b5bb86c218c70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7214
SELECT col1 * ( + - col2 ), + 7 * + col0 * - - CAST ( NULL AS INTEGER ) col1, + col2 FROM tab1
----
9 values hashing to b3c12765935365c51a3b5bb86c218c70

query I rowsort
SELECT 17 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + - 94 * - 95 * 75 + ( 52 ) FROM tab1 AS cor0
----
669802

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT - 33 * - COUNT( * ) + 41 AS col0 FROM tab0 cor0
----
140

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT - 33 * - COUNT ( * ) + 41 AS col0 FROM tab0 cor0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) - - 65 + - col2 FROM tab2 AS cor0
----
-52
-60
-9

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) - - 65 + - col2 FROM tab2 AS cor0
----
-52
-60
-9

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NULL BETWEEN col2 AND col1 + - col2
----

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

query I rowsort
SELECT col0 - + 84 * - col0 FROM tab0
----
1275
7395
8245

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

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

query I rowsort
SELECT ALL + 12 AS col0 FROM tab0 WHERE NOT col0 BETWEEN + col0 AND - 92
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT 90 - + COUNT( 57 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-7224
SELECT 90 - + COUNT ( 57 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT + SUM( col1 ) * + 35 FROM tab2
----
6825

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT + SUM ( col1 ) * + 35 FROM tab2
----
6825

query I rowsort
SELECT DISTINCT + col2 / col1 FROM tab2 WHERE NOT 56 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT + 61 * + COUNT( * ) - COUNT( * ) col2 FROM tab1
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7227
SELECT + 61 * + COUNT ( * ) - COUNT ( * ) col2 FROM tab1
----
180

query I rowsort
SELECT DISTINCT - 35 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * col2 + - col2 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT ALL - 53 + ( 11 ) FROM tab2
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 8 ) IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT DISTINCT col2 + 79 DIV col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT col2 + 79 / col2 FROM tab1
----
60
69
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL + SUM( 92 ) col0 FROM tab0
----
276

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 10 * col0 + col1 * col0 NOT BETWEEN col2 AND - col1 * + 94
----

query III rowsort
SELECT * FROM tab0 WHERE col2 <= + col0
----
87
21
10

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

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

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

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

query I rowsort
SELECT ALL - ( - ( - 3 ) ) AS col2 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT 73 * col2 <> col1 * + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 43 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7243
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE col0 * 72 IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT + col0 ) DIV + 7 FROM tab0 cor0
----
16

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + col0 ) / + 7 FROM tab0 cor0
----
16

query I rowsort
SELECT ALL - col2 + col1 * - 79 FROM tab2 AS cor0
----
-4052
-5351
-6123

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - - COUNT( * ) + + 23 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-7248
SELECT - - COUNT ( * ) + + 23 FROM tab1 cor0
----
26

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

query I rowsort
SELECT + 0 * + AVG ( col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - col0 * col1 + col0 * col1 < ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 * col1 + col0 * col1 < ( + col1 )
----
3

query I rowsort
SELECT ALL + 13 * - col2 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT col2 * - 28 + - col1 AS col2 FROM tab2
----
-1197
-1691
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT - ( - COUNT( * ) ) * + 59 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT - ( - COUNT ( * ) ) * + 59 FROM tab2
----
177

query I rowsort
SELECT 12 + - ( col0 ) FROM tab1
----
-39
-73
-79

query I rowsort
SELECT 30 + + col1 AS col0 FROM tab2
----
107
81
97

query III rowsort
SELECT * FROM tab0 WHERE col1 * col0 + 31 * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT ALL - 86 DIV - col1 AS col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL - 86 / - col1 AS col1 FROM tab1
----
1
17
6

query I rowsort
SELECT ALL - 81 + + + col2 * + col2 FROM tab0
----
19
2128
9720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col1 + 28 * + col2 * - col1 col1 FROM tab0
----
-106596
-2772
-5880

query III rowsort
SELECT * FROM tab0 WHERE ( + ( 13 ) + 11 / col2 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL ( MAX( DISTINCT + 55 ) ) FROM tab2 WHERE NOT ( 28 ) IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL ( MAX ( DISTINCT + 55 ) ) FROM tab2 WHERE NOT ( 28 ) IS NULL
----
55

query I rowsort
SELECT col1 * ( col1 ) + col2 / 15 AS col1 FROM tab1 cor0 WHERE 71 BETWEEN col0 / + col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL + MIN( ALL 15 ) FROM tab1 cor0 WHERE NULL NOT IN ( + col2 + - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL + MIN ( ALL 15 ) FROM tab1 cor0 WHERE NULL NOT IN ( + col2 + - 13 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + - col1 col2 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) BETWEEN - col2 / col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT DISTINCT - MAX( - ( - col2 ) ) + + 64 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT - MAX ( - ( - col2 ) ) + + 64 FROM tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT 44 * - COUNT( * ) FROM tab0 cor0 WHERE ( + 41 ) = - 38
----
0

skipif mysql # not compatible
query I rowsort label-7268
SELECT 44 * - COUNT ( * ) FROM tab0 cor0 WHERE ( + 41 ) = - 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT DISTINCT + - 54 * + ( - col2 ) DIV - ( col2 - col2 * 80 ) - 57 AS col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT + - 54 * + ( - col2 ) / - ( col2 - col2 * 80 ) - 57 AS col1 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL + + col1 - - 95 AS col1 FROM tab2 AS cor0
----
146
162
172

query I rowsort
SELECT - 72 - - + 57 AS col2 FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT + - COUNT( * ) - + - ( + 47 ) + 21 * - 65 AS col0 FROM tab0 AS cor0
----
-1321

skipif mysql # not compatible
query I rowsort label-7272
SELECT + - COUNT ( * ) - + - ( + 47 ) + 21 * - 65 AS col0 FROM tab0 AS cor0
----
-1321

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT + + MIN( - 95 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-95

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT + + MIN ( - 95 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-95

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

query I rowsort
SELECT 6 * - col2 AS col2 FROM tab2
----
-138
-240
-348

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

query I rowsort
SELECT + col1 * + 36 FROM tab0 AS cor0
----
2916
36
756

query I rowsort
SELECT + - col0 * - col1 + + + 27 FROM tab1 AS cor0
----
4304
452
741

onlyif mysql # DIV for integer division: 
query II rowsort label-7279
SELECT col0 AS col2, - 18 DIV - - 47 * ( + 52 * + 96 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7279
SELECT col0 AS col2, - 18 / - - 47 * ( + 52 * + 96 ) FROM tab2 AS cor0
----
46
0
64
0
75
0

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

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 90 * col2 AND 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT DISTINCT + col0 DIV col2 * col1 DIV 74 AS col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + col0 / col2 * col1 / 74 AS col0 FROM tab0 AS cor0
----
0
2

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

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

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

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

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

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col2 <= + + col0
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT - - 91 * 10 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
913

skipif mysql # not compatible
query I rowsort label-7290
SELECT - - 91 * 10 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
913

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

query I rowsort
SELECT - 59 AS col1 FROM tab2 WHERE NOT + col1 NOT IN ( 99 + - ( - ( + col1 ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 39 > NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT col1 + - col0 + + - col1 - - col0 * col0 FROM tab0 AS cor0
----
210
7482
9312

query II rowsort
SELECT + ( ( + 16 ) ), - 55 AS col1 FROM tab1 AS cor0
----
16
-55
16
-55
16
-55

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col2 + + 89 + + + 93 * + 87 IN ( col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # DIV for integer division: 
query III rowsort label-7302
SELECT ALL col0 AS col2, + col0 DIV col1 * + col0 AS col0, - 58 * - + col1 AS col2 FROM tab1
----
9 values hashing to fed65e03a84cf71719073c5b6e02570f

skipif mysql # not compatible
query III rowsort label-7302
SELECT ALL col0 AS col2, + col0 / col1 * + col0 AS col0, - 58 * - + col1 AS col2 FROM tab1
----
9 values hashing to fed65e03a84cf71719073c5b6e02570f

query I rowsort
SELECT DISTINCT ( - col0 ) * + 29 + - + 93 AS col0 FROM tab1
----
-1572
-2558
-2732

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT ALL - MAX( DISTINCT + col0 ), 65 AS col0 FROM tab1
----
-91
65

skipif mysql # not compatible
query II rowsort label-7304
SELECT ALL - MAX ( DISTINCT + col0 ), 65 AS col0 FROM tab1
----
-91
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 59 + - 18 col1 FROM tab0
----
-1257
-4797
-77

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 13 / + 53 * + col0 <> ( + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 36 + - col2 AS col1 FROM tab0 AS cor0
----
-135
-46
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT + SUM( DISTINCT + 99 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-7310
SELECT + SUM ( DISTINCT + 99 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT ALL + col0 * - 94 FROM tab1 cor0
----
-4794
-7990
-8554

query I rowsort
SELECT DISTINCT + 98 * col2 AS col1 FROM tab0 AS cor0
----
4606
9702
980

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

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

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT col1 + - col0 + 40 / - col1 / + 86 AS col0 FROM tab2 WHERE col1 = NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col1 ) >= ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT ( + + col0 ) * + - col2 * - col1 - - 91 FROM tab0
----
18361
57196
9694

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND - + 91
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - COUNT( * ) * 50 * + 17 AS col2 FROM tab0 AS cor0
----
-2550

skipif mysql # not compatible
query I rowsort label-7324
SELECT - COUNT ( * ) * 50 * + 17 AS col2 FROM tab0 AS cor0
----
-2550

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NOT col1 = - col0
----
46
64
75

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

query I rowsort
SELECT + 45 * + - 88 AS col2 FROM tab1 AS cor0
----
-3960
-3960
-3960

query I rowsort
SELECT - 37 * 38 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1406
-1406
-1406

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7329
SELECT DISTINCT + col1 + + col2 AS col0, - 15 DIV - - col0 - + 46 - + CAST( - 82 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
117
36
125
36
74
36

skipif mysql # not compatible
query II rowsort label-7329
SELECT DISTINCT + col1 + + col2 AS col0, - 15 / - - col0 - + 46 - + CAST ( - 82 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
117
36
125
36
74
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT DISTINCT + col1 DIV + 27 - - + 69 AS col2 FROM tab1 AS cor0
----
69
70

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + col1 / + 27 - - + 69 AS col2 FROM tab1 AS cor0
----
69
70

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

query I rowsort
SELECT DISTINCT 83 * col1 + col1 + + + col0 * - - col0 AS col0 FROM tab0 AS cor0
----
7029
9333
9493

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - COUNT( * ) + + COUNT( ( col1 ) ) * - + COUNT( * ) * - - 96 AS col0 FROM tab0 cor0
----
-867

skipif mysql # not compatible
query I rowsort label-7333
SELECT - COUNT ( * ) + + COUNT ( ( col1 ) ) * - + COUNT ( * ) * - - 96 AS col0 FROM tab0 cor0
----
-867

query III rowsort
SELECT * FROM tab1 cor0 WHERE 87 IS NULL
----

query I rowsort
SELECT 46 * - col1 + + col1 FROM tab0 AS cor0
----
-3645
-45
-945

query I rowsort
SELECT col2 + + - 85 AS col0 FROM tab0
----
-38
-75
14

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + 22 < ( + 37 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT ALL - 56 / - - col0 - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - 56 / - - col0 - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT + + SUM( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7340
SELECT + + SUM ( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-227

query I rowsort
SELECT ALL 84 * + col1 * + 82 FROM tab2
----
351288
461496
530376

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7344
SELECT MAX( + + CAST( NULL AS SIGNED ) ) * AVG ( + col0 ) FROM tab2 cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col2 ) * + - col2 + + 87 BETWEEN + 80 AND + col1 * - - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - AVG ( DISTINCT - ( - col2 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT 44 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( - + 25 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

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

query I rowsort
SELECT DISTINCT ( - + 72 ) * ( - ( - col1 ) ) AS col1 FROM tab2
----
-3672
-4824
-5544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 39 * - col2 col1 FROM tab2
----
-169650
-41262
-99840

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT COUNT( + + 81 ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT COUNT ( + + 81 ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

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

query I rowsort
SELECT DISTINCT + col1 * + col1 * + - col2 FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT DISTINCT + 76 * CAST( + 76 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + - + col2 IN ( - + col0 )
----
5776

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT + 76 * CAST ( + 76 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + - + col2 IN ( - + col0 )
----
5776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT + + ( COUNT( * ) ) AS col0 FROM tab1 WHERE + - col0 * 42 + + - col0 + CAST( NULL AS SIGNED ) >= - + 4 * + - 7
----
0

skipif mysql # not compatible
query I rowsort label-7355
SELECT + + ( COUNT ( * ) ) AS col0 FROM tab1 WHERE + - col0 * 42 + + - col0 + CAST ( NULL AS INTEGER ) >= - + 4 * + - 7
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + col0 + 22 col2 FROM tab0
----
119
218
84

query I rowsort
SELECT + ( - col1 ) * col1 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col2 + + - 86 - col2 )
----

query II rowsort
SELECT col0 - - 66, + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
153
87
163
97
81
15

query I rowsort
SELECT DISTINCT 65 + - 55 FROM tab1 cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 8 + + + col1 + 35 - ( + 14 ) * 29 col2, - col2 FROM tab2 AS cor0
----
-286
-40
-296
-58
-312
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT ALL + - col2 DIV + col2 - - 59 * col2 * col0 FROM tab1 AS cor0
----
288863
295884
365091

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + - col2 / + col2 - - 59 * col2 * col0 FROM tab1 AS cor0
----
288863
295884
365091

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab0 cor0
----
-67

query II rowsort
SELECT - col2 - + - 98 AS col2, 33 FROM tab1
----
2
33
30
33
39
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT DISTINCT - MIN( - CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7364
SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 - + col0 + + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT + 43 - ( + col0 ) * 46 AS col1 FROM tab1
----
-2303
-3867
-4143

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL + MIN( + - 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL + MIN ( + - 24 ) FROM tab1
----
-24

query I rowsort
SELECT - col0 + 92 AS col2 FROM tab1
----
1
41
7

query I rowsort
SELECT - col2 + - - 15 FROM tab2
----
-25
-43
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + 45 col0 FROM tab0 AS cor0
----
2115
4455
450

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7372
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15
87
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE + 52 + 50 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL + 52 * COUNT( * ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + 52 * COUNT ( * ) FROM tab1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT - 55 * + + SUM( ALL - - col2 ) * ( - - 30 ) FROM tab0 cor0
----
-257400

skipif mysql # not compatible
query I rowsort label-7375
SELECT - 55 * + + SUM ( ALL - - col2 ) * ( - - 30 ) FROM tab0 cor0
----
-257400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 22 AS col2, col1 - 23 * + ( - col0 ) col0 FROM tab2 cor0
----
22
1109
22
1549
22
1792

query I rowsort
SELECT DISTINCT - - col1 * - - col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 85 * - - col0 * + col2 FROM tab0 AS cor0
----
-59925
-73950
-816255

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

skipif mysql # not compatible
query I rowsort label-7379
SELECT - MAX ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT + - SUM( ALL + 69 ) FROM tab2 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7380
SELECT + - SUM ( ALL + 69 ) FROM tab2 cor0
----
-207

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 28 + + col2, col2 * col2 AS col2 FROM tab1
----
31
3481
40
4624
68
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT ALL 15 DIV + col1 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL 15 / + col1 FROM tab0
----
0
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL + 80 + - + SUM( ALL - + col2 ) FROM tab1 AS cor0
----
303

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + 80 + - + SUM ( ALL - + col2 ) FROM tab1 AS cor0
----
303

onlyif mysql # aggregate syntax: 
query II rowsort label-7385
SELECT - - COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7385
SELECT - - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7386
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT col2 * col1 * - - ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT col2 * col1 * - - ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 20 + + 82 FROM tab2 cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT col1 * - 29 * 27 + + + col2 - ( col1 ) DIV + 23 + - col0 col1 FROM tab2 AS cor0
----
-39958
-52480
-60318

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7389
SELECT col1 * - 29 * 27 + + + col2 - ( col1 ) / + 23 + - col0 col1 FROM tab2 AS cor0
----
-39958
-52480
-60318

query I rowsort
SELECT - ( 72 ) + ( - 67 ) AS col1 FROM tab1 cor0
----
-139
-139
-139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7391
SELECT + col0 * CAST( - col0 AS SIGNED ) + ( - 74 ) AS col0, - col0 FROM tab2 AS cor0
----
-2190
-46
-4170
-64
-5699
-75

skipif mysql # not compatible
query II rowsort label-7391
SELECT + col0 * CAST ( - col0 AS INTEGER ) + ( - 74 ) AS col0, - col0 FROM tab2 AS cor0
----
-2190
-46
-4170
-64
-5699
-75

query I rowsort
SELECT DISTINCT + + 86 + + - 18 AS col1 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL - 41 - + + col0 FROM tab2
----
-105
-116
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT DISTINCT col2 DIV + 5 FROM tab1
----
11
13
19

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT col2 / + 5 FROM tab1
----
11
13
19

query II rowsort
SELECT - col2 AS col0, - 69 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 53 * + + 37 AS col2 FROM tab1
----
1961
1961
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT - MAX( - 27 ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT - MAX ( - 27 ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT - 88 * - - COUNT( * ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-7399
SELECT - 88 * - - COUNT ( * ) FROM tab2 AS cor0
----
-264

query II rowsort
SELECT - 36, 66 AS col0 FROM tab1 AS cor0
----
-36
66
-36
66
-36
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL - - 81 * - col0 + col0 FROM tab1 AS cor0
----
-4080
-6800
-7280

query II rowsort
SELECT + - 57 + + + 32, 93 AS col2 FROM tab2 AS cor0
----
-25
93
-25
93
-25
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7404
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - - col2 NOT BETWEEN - - 76 AND - 97 * - col2
----

skipif mysql # not compatible
query III rowsort label-7404
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - - col2 NOT BETWEEN - - 76 AND - 97 * - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <= + + ( - col2 ) + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - - col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - - col1 )
----

query I rowsort
SELECT col2 + col1 FROM tab0 WHERE + ( + + col0 ) IS NOT NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL - SUM( DISTINCT 10 ) AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - SUM ( DISTINCT 10 ) AS col2 FROM tab2
----
-10

query I rowsort
SELECT ( + 71 ) FROM tab1
----
71
71
71

query II rowsort
SELECT + col1, + col1 AS col2 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT - 58 + ( + + col2 ) DIV + + 11 FROM tab2 AS cor0
----
-53
-55
-56

skipif mysql # not compatible
query I rowsort label-7412
SELECT - 58 + ( + + col2 ) / + + 11 FROM tab2 AS cor0
----
-53
-55
-56

query I rowsort
SELECT ALL - 3 + + + 59 - 95 * 35 AS col2 FROM tab1 cor0
----
-3269
-3269
-3269

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 12 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7415
SELECT + 28 / - CAST( NULL AS SIGNED ), - 51 AS col0 FROM tab0 AS cor0
----
NULL
-51
NULL
-51
NULL
-51

skipif mysql # not compatible
query II rowsort label-7415
SELECT + 28 / - CAST ( NULL AS INTEGER ), - 51 AS col0 FROM tab0 AS cor0
----
NULL
-51
NULL
-51
NULL
-51

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) IN ( + col1 / + col1 + - - 19 )
----

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT ALL + 39 * + col1 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + 39 * + col1 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7419
SELECT col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7419
SELECT col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT 3 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT SUM( DISTINCT col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col2 FROM tab0
----
156

query II rowsort
SELECT DISTINCT ( + col0 ) AS col0, 70 FROM tab1
----
51
70
85
70
91
70

query I rowsort
SELECT DISTINCT 68 FROM tab0 WHERE NOT - - ( - + 59 ) * 22 - + col0 BETWEEN - 55 - col0 + + 56 AND NULL
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( 97 ) AS col2, col1 + + col2 + - 99 + + ( + 77 ) + - - col0 * col1 col0 FROM tab1
----
-97
4370
-97
467
-97
802

query I rowsort
SELECT DISTINCT 2 * + 17 AS col0 FROM tab0
----
34

query II rowsort
SELECT col0 * + + ( - - col2 ) * - + col0 * 80 AS col2, col2 + - + col0 + + col2 * + - col0 FROM tab0
----
-6055200
-947
-74519280
-9601
-846000
-673

query I rowsort
SELECT DISTINCT 69 * + col0 AS col0 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT ALL + ( - 76 ) AS col2 FROM tab2 AS cor0
----
-76
-76
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col0 * + col0 / 11 * 65 + + col2
----

query I rowsort
SELECT ALL + - 40 AS col0 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7432
SELECT - 2 DIV COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 2 / COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - col0 * - 19 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col0 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 AS cor0 WHERE ( + col0 + - + col0 ) IS NULL
----

query I rowsort
SELECT - 98 * + col2 FROM tab2 AS cor0
----
-2254
-3920
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT - + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col0 * - + 8 FROM tab2 cor0
----
-368
-512
-600

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - 43 + + 61 + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col1 + - + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + - col0 + col2 * - 46 FROM tab0 AS cor0
----
-2258
-4652
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL - MAX( + 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL - MAX ( + 41 ) FROM tab2 AS cor0
----
-41

query III rowsort
SELECT * FROM tab0 WHERE 52 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 + col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 / + col0 * 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7446
SELECT * FROM tab2 WHERE CAST( + col0 AS SIGNED ) + + ( - col2 ) < col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7446
SELECT * FROM tab2 WHERE CAST ( + col0 AS INTEGER ) + + ( - col2 ) < col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT - - 59 + - COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - - 59 + - COUNT ( * ) FROM tab0 AS cor0
----
56

query I rowsort
SELECT DISTINCT + col1 * - + col0 + - ( col1 ) * + 68 AS col1 FROM tab2 AS cor0
----
-10164
-5814
-9581

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT - - 33 DIV ( + - 45 ) + 16 AS col0 FROM tab0 cor0 WHERE + 42 + - - col2 + - 16 * + 64 * + - col0 * col2 IS NOT NULL
----
16
16
16

skipif mysql # not compatible
query I rowsort label-7449
SELECT - - 33 / ( + - 45 ) + 16 AS col0 FROM tab0 cor0 WHERE + 42 + - - col2 + - 16 * + 64 * + - col0 * col2 IS NOT NULL
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT + col1 - - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT + col1 - - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT COUNT( - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT COUNT ( - col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 73 * - col1 AS col1 FROM tab1 AS cor0
----
-1022
-3431
-365

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + col1 * 93 FROM tab2 AS cor0
----
4743
6231
7161

query I rowsort
SELECT DISTINCT - - 91 AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL - COUNT( - + 25 ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - COUNT ( - + 25 ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 63 col0, col0 + + - col1 AS col2 FROM tab2
----
63
-13
63
-5
63
8

query I rowsort
SELECT col2 + - - 41 FROM tab2 WHERE NOT ( + - 77 ) = NULL
----

query II rowsort
SELECT ALL - 2 AS col0, 5 * - - col0 * - 46 FROM tab2
----
-2
-10580
-2
-14720
-2
-17250

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - - col2 * + + 70 * col1 FROM tab0 WHERE NOT + + col1 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL 26 * col2 AS col2 FROM tab0
----
1222
2574
260

query II rowsort
SELECT ALL + col0 AS col2, col2 * + 34 + ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
3315
85
2091
91
2403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 95 + - + col1 + + + col1 - + col2 + ( + col2 ) * + + col2 col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1905
-5533
9607

query I rowsort
SELECT DISTINCT + + ( - 82 ) FROM tab0 AS cor0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7468
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 78 - + MIN( ALL - col0 ) FROM tab2 AS cor0
----
NULL
153

skipif mysql # not compatible
query II rowsort label-7468
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 78 - + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
NULL
153

query II rowsort
SELECT DISTINCT + - col0 AS col1, col1 * + - col2 FROM tab2 AS cor0
----
-46
-1173
-64
-3080
-75
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL MIN( - 34 ) * 12 * + - 2 + + 39 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL MIN ( - 34 ) * 12 * + - 2 + + 39 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 + - 86 FROM tab1
----
-1
-35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT - MAX( 89 ) + COUNT( * ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7472
SELECT - MAX ( 89 ) + COUNT ( * ) FROM tab0 AS cor0
----
-86

query II rowsort
SELECT 39 + + 58, - col2 + col0 AS col0 FROM tab2 cor0
----
97
17
97
23
97
24

query I rowsort
SELECT - + ( + col2 ) * 52 + + 5 - - col0 FROM tab2 AS cor0
----
-1145
-2011
-2936

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT ALL + 41 + + COUNT( * ) col0 FROM tab2 cor0 WHERE NOT 89 / - 98 IS NULL
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7475
SELECT ALL + 41 + + COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT 89 / - 98 IS NULL
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7476
SELECT ALL COUNT( * ) + - 92 DIV + 39 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL COUNT ( * ) + - 92 / + 39 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7477
SELECT DISTINCT MIN( - col0 ) * + 8 * + 97 + - CAST( + - 11 AS SIGNED ) FROM tab2 AS cor0
----
-58189

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT MIN ( - col0 ) * + 8 * + 97 + - CAST ( + - 11 AS INTEGER ) FROM tab2 AS cor0
----
-58189

query I rowsort
SELECT - col0 * - + col2 FROM tab0 cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 + + + col2 NOT BETWEEN - 10 * + + 36 AND NULL
----

query II rowsort
SELECT - col1, - 33 AS col1 FROM tab2
----
-51
-33
-67
-33
-77
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT SUM( DISTINCT ( + 13 ) ) - + 43 AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-7481
SELECT SUM ( DISTINCT ( + 13 ) ) - + 43 AS col2 FROM tab1
----
-30

query I rowsort
SELECT 18 * + ( - + col1 ) + - col2 FROM tab1
----
-149
-348
-914

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT + - 18 * + col1 + col2 + 98 * + - 33 * - - col0 - col0 + col1 * col1 * 50 DIV - ( - + col1 ) col2 FROM tab0 AS cor0
----
-280763
-313664
-45886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7483
SELECT + - 18 * + col1 + col2 + 98 * + - 33 * - - col0 - col0 + col1 * col1 * 50 / - ( - + col1 ) col2 FROM tab0 AS cor0
----
-280763
-313664
-45886

query I rowsort
SELECT ALL - + col1 - + col2 * 17 - + 82 FROM tab2 AS cor0
----
-1135
-524
-839

query III rowsort
SELECT * FROM tab1 WHERE NULL < + col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col0 FROM tab1
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - 17
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 * - + 92 AND - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7490
SELECT + SUM( ALL col2 ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
121
3

skipif mysql # not compatible
query II rowsort label-7490
SELECT + SUM ( ALL col2 ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
121
3

query I rowsort
SELECT DISTINCT - 89 - col2 - 23 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 78 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT col1 DIV 50 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7492
SELECT col1 / 50 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT ( - 64 ) AS col0 FROM tab1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT COUNT( * ), - COUNT( * ) AS col0 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-7494
SELECT COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2
----
3
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 66 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT SUM( DISTINCT - + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7496
SELECT SUM ( DISTINCT - + col0 ) FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7497
SELECT ALL + - CAST( NULL AS SIGNED ), - 72 + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-7497
SELECT ALL + - CAST ( NULL AS INTEGER ), - 72 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
-75

query I rowsort
SELECT DISTINCT + 44 + + + col2 + col0 AS col1 FROM tab0 AS cor0
----
106
141
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT ALL + - 4 + + + ( MAX( + CAST( - - col1 AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + - 4 + + + ( MAX ( + CAST ( - - col1 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7500
SELECT + 47 AS col0, col1 + col0 * + + CAST( - col2 AS SIGNED ) + + col1 * col1 AS col0 FROM tab2 AS cor0
----
47
1594
47
206
47
3446

skipif mysql # not compatible
query II rowsort label-7500
SELECT + 47 AS col0, col1 + col0 * + + CAST ( - col2 AS INTEGER ) + + col1 * col1 AS col0 FROM tab2 AS cor0
----
47
1594
47
206
47
3446

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + - col2 + - 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT - col0 * - col1 + + 18 + - + col0 DIV - - col0 FROM tab2 AS cor0
----
2363
4945
5042

skipif mysql # not compatible
query I rowsort label-7502
SELECT - col0 * - col1 + + 18 + - + col0 / - - col0 FROM tab2 AS cor0
----
2363
4945
5042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - 43 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7504
SELECT - 43 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7505
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - + CAST( 10 AS SIGNED ) AS SIGNED ) - - - col2 BETWEEN ( + col0 ) AND - ( + - 99 ) + - 23 * + ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7505
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - + CAST ( 10 AS INTEGER ) AS INTEGER ) - - - col2 BETWEEN ( + col0 ) AND - ( + - 99 ) + - 23 * + ( + col2 )
----

query II rowsort
SELECT DISTINCT - col0 + - col1, 41 AS col2 FROM tab0 AS cor0
----
-108
41
-96
41
-98
41

query I rowsort
SELECT ALL 17 * + 78 * - 59 - 23 + - 16 FROM tab2 AS cor0
----
-78273
-78273
-78273

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

query II rowsort
SELECT DISTINCT - 3 - col2 AS col2, col1 AS col1 FROM tab1
----
-62
5
-71
47
-99
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7511
SELECT DISTINCT - 64 DIV - col2 AS col0, col1 * - - col2 * + CAST( NULL AS SIGNED ) col1 FROM tab0
----
0
NULL
1
NULL
6
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7511
SELECT DISTINCT - 64 / - col2 AS col0, col1 * - - col2 * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
0
NULL
1
NULL
6
NULL

query I rowsort
SELECT - col0 + + col1 + col0 + + col0 AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT 64 * - 85 * - col2 * + + 37 - - 39 - 33 FROM tab1 AS cor0
----
11875526
13687046
19322886

query I rowsort
SELECT + - 27 - + - col1 FROM tab2 AS cor0
----
24
40
50

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 41 * - 70 + col2 + col0 + + - 1 * - 37 < - col0 * + col1 )
----
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 79 - - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + MAX( + 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-7517
SELECT + MAX ( + 74 ) FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7518
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + + ( 9 ) * + col2 FROM tab1 cor0
----
531
612
864

query I rowsort
SELECT - - col2 * + - col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ( col1 ) * col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 AS col2, 72 * + col2 FROM tab2 AS cor0
----
-46
1656
-64
2880
-75
4176

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 27
----

query I rowsort
SELECT - + ( - 10 ) AS col1 FROM tab0 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - col2 * + col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 - + + col1 AS col1, + col1 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 * + - col2 AND col0
----

query I rowsort
SELECT ALL - 83 AS col0 FROM tab2 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + col1 col1 FROM tab0
----
2
462
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * + 54 col2 FROM tab1
----
-4158
-4158
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT MAX( + - 53 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT MAX ( + - 53 ) FROM tab0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 12 col2 FROM tab2
----
276
480
696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + col0 col1 FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 81 IS NULL
----

query I rowsort
SELECT ALL 25 + col0 AS col2 FROM tab0 AS cor0
----
112
122
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT - col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7536
SELECT - col2 / col0 AS col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col0 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL - 24 - - - COUNT( * ) FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - 24 - - - COUNT ( * ) FROM tab1 cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 / - col2 - + 96 col0, + 40 AS col1 FROM tab0 AS cor0 WHERE 97 = - - col1
----

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE - ( + 69 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL 96 * - 37 AS col0 FROM tab2 cor0
----
-3552
-3552
-3552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT - + COUNT( * ) - + - COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7543
SELECT - + COUNT ( * ) - + - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT DISTINCT COUNT( * ) DIV + 30 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT COUNT ( * ) / + 30 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7545
SELECT * FROM tab0 WHERE + CAST( col1 AS SIGNED ) + - col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7545
SELECT * FROM tab0 WHERE + CAST ( col1 AS INTEGER ) + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT - 73 DIV 75 - 19 DIV 93 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7546
SELECT - 73 / 75 - 19 / 93 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7547
SELECT * FROM tab1 WHERE ( + - 74 - - CAST( 64 AS SIGNED ) - + ( + 15 ) * + col2 + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7547
SELECT * FROM tab1 WHERE ( + - 74 - - CAST ( 64 AS INTEGER ) - + ( + 15 ) * + col2 + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 - 4 FROM tab0
----
11
83
93

query I rowsort
SELECT col2 * + col2 + + 28 AS col1 FROM tab1
----
3509
4652
9244

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT col2 DIV - col1 + - col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7550
SELECT col2 / - col1 + - col0 AS col1 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL + col2, - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 AS col2, col0 col2 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7553
SELECT DISTINCT + + 89 DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + + 89 / + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL 57 * + - COUNT( * ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL 57 * + - COUNT ( * ) FROM tab0 AS cor0
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, + col2 col1 FROM tab1 cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - col1 AND NULL
----

query II rowsort
SELECT DISTINCT col0, + 3 / 3 * col1 * - 14 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * ( 34 ) col2 FROM tab0
----
1054
1054
1054

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT col1 * col0, col1 FROM tab0
----
1215
81
1827
21
97
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - + ( + col1 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT + MIN( DISTINCT - 92 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT + MIN ( DISTINCT - 92 ) FROM tab2 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - COUNT( * ) * + 11 AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-7564
SELECT - COUNT ( * ) * + 11 AS col0 FROM tab0
----
-33

query I rowsort
SELECT 48 * + ( + - col0 ) FROM tab1
----
-2448
-4080
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT - COUNT( + col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - COUNT ( + col2 ) AS col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT DISTINCT + 16 * - col0 DIV col0 * - 82 AS col0 FROM tab0
----
1312

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + 16 * - col0 / col0 * - 82 AS col0 FROM tab0
----
1312

query I rowsort
SELECT ALL col0 + 60 * + 34 + + ( col1 ) FROM tab1
----
2105
2130
2178

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT 14 DIV - + col0 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7569
SELECT 14 / - + col0 + - col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE + 40 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT col1, - 54 AS col2 FROM tab0 AS cor0
----
1
-54
21
-54
81
-54

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL - 17 + - 93 + + col2 AS col0 FROM tab1 AS cor0
----
-14
-42
-51

query I rowsort
SELECT + - col2 * - 43 AS col2 FROM tab0 AS cor0
----
2021
4257
430

query II rowsort
SELECT ALL col1, col0 + - 76 FROM tab0 AS cor0
----
1
21
21
11
81
-61

query II rowsort
SELECT - col0 * - - col2 * - + ( + 61 ) AS col0, - col0 + + col1 FROM tab1
----
298656
-37
305915
-80
377468
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT ALL 2 + - col1 - - 18 + + col2 DIV col1 - - col0 - col2 AS col1 FROM tab0 AS cor0
----
-93
116
76

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL 2 + - col1 - - 18 + + col2 / col1 - - col0 - col2 AS col1 FROM tab0 AS cor0
----
-93
116
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7582
SELECT 37 + ( + col0 ) * + 95 / - + col1 * - col2 * - CAST( NULL AS SIGNED ) * - - col1 / - col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7582
SELECT 37 + ( + col0 ) * + 95 / - + col1 * - col2 * - CAST ( NULL AS INTEGER ) * - - col1 / - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT + - ( + col1 ) + + + col0 DIV + - col2 AS col2 FROM tab0 cor0
----
-1
-29
-81

skipif mysql # not compatible
query I rowsort label-7583
SELECT + - ( + col1 ) + + + col0 / + - col2 AS col2 FROM tab0 cor0
----
-1
-29
-81

query I rowsort
SELECT 32 FROM tab0 AS cor0 WHERE - 59 BETWEEN - + 24 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT 49 - + COUNT( * ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT 49 - + COUNT ( * ) AS col2 FROM tab0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col2 col0 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT * FROM tab0 WHERE NOT + 11 > + col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - MAX( - - 45 ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - MAX ( - - 45 ) AS col2 FROM tab1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT 43 DIV COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7589
SELECT 43 / COUNT ( * ) FROM tab0 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT - 53 DIV - 34 col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7590
SELECT - 53 / - 34 col1 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - 46
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7592
SELECT - ( COUNT( * ) ), + 9 AS col0 FROM tab1
----
-3
9

skipif mysql # not compatible
query II rowsort label-7592
SELECT - ( COUNT ( * ) ), + 9 AS col0 FROM tab1
----
-3
9

query I rowsort
SELECT + col0 * + - col2 * - + 72 FROM tab1 cor0
----
352512
361080
445536

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + 48 col0 FROM tab2 AS cor0
----
-10
25
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT ALL + 28 DIV + col2 - + 41 AS col2 FROM tab1 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + 28 / + col2 - + 41 AS col2 FROM tab1 AS cor0
----
-41
-41
-41

query II rowsort
SELECT DISTINCT - - 78 AS col0, 65 * - 13 FROM tab0 AS cor0
----
78
-845

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 * 95 + + col0 * - col0 / col0 AS col2 FROM tab1 WHERE + col1 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - col0 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL 49 + COUNT( * ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL 49 + COUNT ( * ) FROM tab0 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-7604
SELECT - col2 * + + 9 + col2 AS col1, col0 DIV - + 41 + col0 FROM tab0 AS cor0
----
-376
15
-792
95
-80
85

skipif mysql # not compatible
query II rowsort label-7604
SELECT - col2 * + + 9 + col2 AS col1, col0 / - + 41 + col0 FROM tab0 AS cor0
----
-376
15
-792
95
-80
85

query I rowsort
SELECT ALL + 49 + + 37 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT + - col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + 45 + - - col0 FROM tab1 cor0
----
130
136
96

query III rowsort
SELECT * FROM tab1 WHERE col1 * col2 * col1 * ( + + 35 ) <= NULL
----

query II rowsort
SELECT + 74 * - col0 + 15, 11 AS col0 FROM tab1
----
-3759
11
-6275
11
-6719
11

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT NULL <= - + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT + 46 * + + COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 46 * + + COUNT ( * ) FROM tab2
----
138

query II rowsort
SELECT col2 AS col0, 24 FROM tab1
----
59
24
68
24
96
24

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE col2 BETWEEN NULL AND - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL - MIN( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 + + 39 FROM tab1 AS cor0
----
183
186
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL + + COUNT( * ) + - 74 AS col1 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + + COUNT ( * ) + - 74 AS col1 FROM tab2 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col1 col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT - ( - col1 ) + - 72 FROM tab1 cor0
----
-25
-58
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7621
SELECT ALL + - CAST( NULL AS SIGNED ) - MAX( col2 ) - - COUNT( * ) AS col2, 3 AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7621
SELECT ALL + - CAST ( NULL AS INTEGER ) - MAX ( col2 ) - - COUNT ( * ) AS col2, 3 AS col2 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL - - ( + CAST( col0 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - - ( + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - 61 - + col1 * 78 FROM tab1 AS cor0
----
-1153
-3727
-451

query I rowsort
SELECT ALL 64 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT DISTINCT + col2 - - + col2 DIV 16 FROM tab1
----
102
62
72

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT + col2 - - + col2 / 16 FROM tab1
----
102
62
72

query II rowsort
SELECT + col0 * + - 71 * - + col2 * - col1 AS col0, col0 AS col2 FROM tab1
----
-1780325
85
-20649356
91
-4866624
51

query II rowsort
SELECT col1 AS col2, col1 / col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL - MIN( ALL + col0 ) + + ( COUNT( * ) ) FROM tab0 WHERE NOT - col2 + - - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - MIN ( ALL + col0 ) + + ( COUNT ( * ) ) FROM tab0 WHERE NOT - col2 + - - col0 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT + SUM( 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT + SUM ( 80 ) FROM tab0
----
240

query I rowsort
SELECT + - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN + 43 AND + + 0
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + + 96 <> - - ( + - col1 )
----

query I rowsort
SELECT + col1 * 26 AS col0 FROM tab0
----
2106
26
546

query I rowsort
SELECT DISTINCT 32 * - 88 FROM tab1
----
-2816

query I rowsort
SELECT col0 + + + col2 AS col2 FROM tab2 WHERE NOT - col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT DISTINCT + - col1 DIV 61 * - 69 AS col0 FROM tab2 AS cor0
----
0
69

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT + - col1 / 61 * - 69 AS col0 FROM tab2 AS cor0
----
0
69

query I rowsort
SELECT 0 * ( - 40 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + - COUNT( * ) * - 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
225

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - COUNT ( * ) * - 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
225

query I rowsort
SELECT ALL 79 + + 20 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - 35 FROM tab1 cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, - 52 FROM tab2 cor0
----
23
-52
40
-52
58
-52

query I rowsort
SELECT - 57 + col1 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-10
-43
-52

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT + - 82 + - 87 - MAX( ALL 56 ) AS col2 FROM tab1 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7643
SELECT + - 82 + - 87 - MAX ( ALL 56 ) AS col2 FROM tab1 cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT COUNT( * ) + - MAX( DISTINCT - + ( - col1 ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-7644
SELECT COUNT ( * ) + - MAX ( DISTINCT - + ( - col1 ) ) FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT DISTINCT - 69 / + - MAX( + 77 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7645
SELECT DISTINCT - 69 / + - MAX ( + 77 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT DISTINCT COUNT( * ) + 94 col0 FROM tab2
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7646
SELECT DISTINCT COUNT ( * ) + 94 col0 FROM tab2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT ALL - col2 DIV + + col2 + + 66 FROM tab0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - col2 / + + col2 + + 66 FROM tab0
----
65
65
65

query I rowsort
SELECT DISTINCT + 33 + 26 + - col2 AS col1 FROM tab2
----
1
19
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 54 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - + ( - col0 ) IN ( - col1 + + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7651
SELECT DISTINCT - col1 DIV - col0 + col1 + - 7, + col2 FROM tab2 AS cor0
----
45
23
60
58
71
40

skipif mysql # not compatible
query II rowsort label-7651
SELECT DISTINCT - col1 / - col0 + col1 + - 7, + col2 FROM tab2 AS cor0
----
45
23
60
58
71
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - - ( - 69 ) col0 FROM tab1 cor0
----
-22
-55
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT + 77 + + MAX( ALL + - col1 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT + 77 + + MAX ( ALL + - col1 ) FROM tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - 8 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7654
SELECT - 8 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT + 63 + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT + 63 + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab0 AS cor0 WHERE + col2 * col0 IS NOT NULL
----
96
96
96

query I rowsort
SELECT ALL - col0 - col1 * + col0 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT - - col2 * - col2 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-3422
-4556
-9120

query I rowsort
SELECT ( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT ALL - 88 - col1 FROM tab2 WHERE ( NOT NULL NOT BETWEEN + col2 AND + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL - 88 - col1 FROM tab2 WHERE ( NOT NULL NOT BETWEEN + col2 AND + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query II rowsort
SELECT - col2, 70 AS col2 FROM tab0
----
-10
70
-47
70
-99
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7662
SELECT col2 AS col0, CAST( - col1 AS SIGNED ) * col2 AS col1 FROM tab1
----
59
-295
68
-3196
96
-1344

skipif mysql # not compatible
query II rowsort label-7662
SELECT col2 AS col0, CAST ( - col1 AS INTEGER ) * col2 AS col1 FROM tab1
----
59
-295
68
-3196
96
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL SUM( - 49 ) * 76 FROM tab2
----
-11172

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL SUM ( - 49 ) * 76 FROM tab2
----
-11172

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - - 23 * - SUM( - 9 ) * + 21 AS col1 FROM tab2 AS cor0
----
13041

skipif mysql # not compatible
query I rowsort label-7664
SELECT - - 23 * - SUM ( - 9 ) * + 21 AS col1 FROM tab2 AS cor0
----
13041

query II rowsort
SELECT ALL + - col0 AS col1, col0 * + - 58 FROM tab0 AS cor0
----
-15
-870
-87
-5046
-97
-5626

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 13 AND ( - col1 ) * col1
----

query I rowsort
SELECT col0 + + 76 * 80 FROM tab1
----
6131
6165
6171

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT + COUNT( - col2 ) FROM tab0 WHERE NOT col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7668
SELECT + COUNT ( - col2 ) FROM tab0 WHERE NOT col0 >= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN ( col0 + 65 ) AND - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 15 * - ( + 28 ) + 8 FROM tab1
----
-412
-412
-412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col2 FROM tab0 WHERE ( - col1 * - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + MIN( ALL - col2 ) * - COUNT( * ) col2 FROM tab0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7672
SELECT + MIN ( ALL - col2 ) * - COUNT ( * ) col2 FROM tab0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT + col0 - 38 DIV + 73 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7673
SELECT + col0 - 38 / + 73 FROM tab1
----
51
85
91

query I rowsort
SELECT - ( col1 ) * 94 AS col2 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT - 72 + + 32 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT - 61 + 59 * - 79 FROM tab0
----
-4722
-4722
-4722

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7677
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT IN ( + 7 * col0 + 23 )
----

skipif mysql # not compatible
query III rowsort label-7677
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( + 7 * col0 + 23 )
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * 90 AS col2 FROM tab0
----
1890
7290
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT COUNT( * ) * + 22 AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT COUNT ( * ) * + 22 AS col2 FROM tab0
----
66

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + col2 * col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col1 FROM tab2
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( 91 ) AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL + COUNT( ALL - 67 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + COUNT ( ALL - 67 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7686
SELECT COUNT( * ) DIV 33 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7686
SELECT COUNT ( * ) / 33 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7687
SELECT DISTINCT + col2 / + 68 AS col1 FROM tab1 WHERE 23 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT + col2 / + 68 AS col1 FROM tab1 WHERE 23 = CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 BETWEEN ( - col0 ) AND + col1
----
15
81
47

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( - col0 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL + ( COUNT( * ) ) + ( COUNT( * ) ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + ( COUNT ( * ) ) + ( COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT - col1 + - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-2652
-4556
-6006

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 / col1 + - ( 70 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT DISTINCT - CAST( - 82 AS SIGNED ) - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
129
181
92

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - CAST ( - 82 AS INTEGER ) - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
129
181
92

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 WHERE 61 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7695
SELECT COUNT( * ) DIV + 77 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT COUNT ( * ) / + 77 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( - 29 ) FROM tab0
----
29

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 26 * - col0 AS col2 FROM tab0 AS cor0
----
2262
2522
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab0 cor0
----
-71
-71
-71

query I rowsort
SELECT 80 FROM tab1 AS cor0 WHERE NOT + 28 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL + SUM( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT 49 / col1 NOT BETWEEN ( col0 ) AND + col1 - col0 / ( - col2 + + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT 49 / col1 NOT BETWEEN ( col0 ) AND + col1 - col0 / ( - col2 + + 11 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7702
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7702
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - ( MIN( ALL col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7703
SELECT - ( MIN ( ALL col2 ) ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) + 57 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-28
-34
6

query I rowsort
SELECT ALL + ( - 59 ) FROM tab0
----
-59
-59
-59

query I rowsort
SELECT AVG ( col2 ) AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - + col2 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7708
SELECT DISTINCT - CAST( - + MAX( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT - CAST ( - + MAX ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
96

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT DISTINCT col2 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT col2 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ( + - COUNT( col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7711
SELECT ( + - COUNT ( col1 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + COUNT( DISTINCT col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7712
SELECT + COUNT ( DISTINCT col1 ) col1 FROM tab1
----
3

query I rowsort
SELECT - ( col2 ) FROM tab0 AS cor0 WHERE NOT - ( 66 ) + 69 * - col2 <= + 66 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NOT - ( col2 ) NOT IN ( 54 )
----

query I rowsort
SELECT - 71 * - - col0 + 77 * - 6 FROM tab0 AS cor0
----
-1527
-6639
-7349

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + + 98 + COUNT( * ) * - 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-460

skipif mysql # not compatible
query I rowsort label-7716
SELECT + + 98 + COUNT ( * ) * - 62 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT ALL + 99 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + 99 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 49 >= ( NULL )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE + col1 + ( + 38 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL - - 32 + - MAX( ALL - ( 5 ) ) + 96 col2 FROM tab0 cor0
----
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7720
SELECT ALL - - 32 + - MAX ( ALL - ( 5 ) ) + 96 col2 FROM tab0 cor0
----
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * + col1 col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT DISTINCT + 56 + - - 95 + - col0 - 92 DIV 13 FROM tab0 AS cor0
----
129
47
57

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT + 56 + - - 95 + - col0 - 92 / 13 FROM tab0 AS cor0
----
129
47
57

query I rowsort
SELECT ALL - col2 + + col2 * - - col2 AS col2 FROM tab2 AS cor0
----
1560
3306
506

query I rowsort
SELECT 92 + + col1 FROM tab0 AS cor0
----
113
173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL COUNT( ALL 32 ) AS col0 FROM tab2 AS cor0 WHERE + 35 NOT IN ( + 99 * col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL COUNT ( ALL 32 ) AS col0 FROM tab2 AS cor0 WHERE + 35 NOT IN ( + 99 * col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL + SUM( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + SUM ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT + ( COUNT( * ) ) + + 99 + + 53 AS col2 FROM tab0 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-7727
SELECT + ( COUNT ( * ) ) + + 99 + + 53 AS col2 FROM tab0 AS cor0
----
155

query I rowsort
SELECT 8 + + 64 FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + col0 NOT BETWEEN 7 * col2 AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN ( + - col2 ) AND col1
----
46
51
23
64
77
40

query I rowsort
SELECT col2 + ( - col0 ) AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-7732
SELECT DISTINCT + 44 DIV + 4 AS col2, col2 AS col0 FROM tab2
----
11
23
11
40
11
58

skipif mysql # not compatible
query II rowsort label-7732
SELECT DISTINCT + 44 / + 4 AS col2, col2 AS col0 FROM tab2
----
11
23
11
40
11
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT ALL col0 DIV - col0 + - + col0 col0 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7733
SELECT ALL col0 / - col0 + - + col0 col0 FROM tab0
----
-16
-88
-98

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT + COUNT( * ) * - 93 + 14 FROM tab0 WHERE ( NULL ) >= ( NULL )
----
14

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT + COUNT ( * ) * - 93 + 14 FROM tab0 WHERE ( NULL ) >= ( NULL )
----
14

query I rowsort
SELECT ALL 15 + - col1 + + 86 AS col2 FROM tab2
----
24
34
50

query I rowsort
SELECT DISTINCT + - 4 - - col0 FROM tab2 AS cor0
----
42
60
71

query I rowsort
SELECT 66 - - - col0 FROM tab0 AS cor0
----
-21
-31
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 30 / col1 * - ( - 17 ) ) <= NULL
----

query I rowsort
SELECT + 42 - + 76 AS col1 FROM tab2 AS cor0
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + - 77 ) = + - col0 / col0 - 37
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( ( - col0 ) ) IS NOT NULL
----

query I rowsort
SELECT + 94 * - + col0 FROM tab1 AS cor0
----
-4794
-7990
-8554

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT 72 DIV - col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT 72 / - col0 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( 52 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT + 28 * - - MAX( DISTINCT + - ( - col2 ) ) FROM tab1 AS cor0
----
2688

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + 28 * - - MAX ( DISTINCT + - ( - col2 ) ) FROM tab1 AS cor0
----
2688

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col1 > ( ( + - 27 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7748
SELECT - - col0 DIV - + CAST( ( 72 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7748
SELECT - - col0 / - + CAST ( ( 72 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL - col1, 84 * + col0 AS col2 FROM tab2
----
-51
3864
-67
6300
-77
5376

query I rowsort
SELECT DISTINCT + col0 + - 61 AS col1 FROM tab1 WHERE - 54 IS NOT NULL
----
-10
24
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL MAX( DISTINCT - - 29 ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL MAX ( DISTINCT - - 29 ) AS col0 FROM tab1
----
29

query I rowsort
SELECT + ( - - 27 ) FROM tab1
----
27
27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + ( col1 ) ) IS NULL
----

query II rowsort
SELECT ALL + col0, - 90 FROM tab0
----
15
-90
87
-90
97
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 29 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 64 * col0 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7758
SELECT - COUNT( * ) * - COUNT( * ) - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT - COUNT ( * ) * - COUNT ( * ) - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 12 * + col1 * 13 + 91 + - col0 * ( + 59 * 97 ) col0 FROM tab1 AS cor0
----
-22126
-440344
-82118

query I rowsort
SELECT - - col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( NULL ) AND - col1 / + 75
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT + + 24 FROM tab2 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) + + + 80 IS NULL
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7761
SELECT + + 24 FROM tab2 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) + + + 80 IS NULL
----
24
24
24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN col1 AND - col1 * - 77 * + - col2
----

query I rowsort
SELECT 27 * 13 FROM tab2 AS cor0
----
351
351
351

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 66 <= NULL
----

query I rowsort
SELECT + + col2 FROM tab1 WHERE + - 91 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col0 + ( col2 ) IS NULL
----

query I rowsort
SELECT ALL - col1 * + + 9 * + - col2 * 32 + - 1 FROM tab1 AS cor0
----
387071
84959
920447

query I rowsort
SELECT ALL + col2 + + 20 AS col2 FROM tab0 AS cor0
----
119
30
67

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT ( col1 ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) >= ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 64 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE 32 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7774
SELECT ALL + - 49 / MAX( + + col1 ) + - 55 - - + CAST( NULL AS SIGNED ) + - MAX( DISTINCT - 21 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL + - 49 / MAX ( + + col1 ) + - 55 - - + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - 21 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT MAX( ALL col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT MAX ( ALL col2 ) FROM tab0
----
99

query I rowsort
SELECT ALL ( + 88 ) AS col1 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT + SUM( ALL 41 ) col2 FROM tab2
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7777
SELECT DISTINCT + SUM ( ALL 41 ) col2 FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 57 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 57 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT CAST( NULL AS SIGNED ) - - 83 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT CAST ( NULL AS INTEGER ) - - 83 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT - 94 + + + COUNT( * ) - 92 col1, COUNT( - + col1 ) FROM tab1
----
-183
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7780
SELECT - 94 + + + COUNT ( * ) - 92 col1, COUNT ( - + col1 ) FROM tab1
----
-183
3

query I rowsort
SELECT 98 + + - 52 AS col2 FROM tab0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT ALL - CAST( + AVG ( ALL - - col2 ) AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT + col0 + + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7782
SELECT ALL - CAST ( + AVG ( ALL - - col2 ) AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT + col0 + + - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT MIN( ALL 13 ) + - 96 AS col0 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7783
SELECT MIN ( ALL 13 ) + - 96 AS col0 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT - 20 AS col2 FROM tab0 AS cor0 WHERE NOT + 21 * - - ( - 9 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT SUM( + + 93 ) AS col1, MIN( ALL - col2 ) AS col0 FROM tab0
----
279
-99

skipif mysql # not compatible
query II rowsort label-7786
SELECT SUM ( + + 93 ) AS col1, MIN ( ALL - col2 ) AS col0 FROM tab0
----
279
-99

query I rowsort
SELECT DISTINCT 91 * + col2 + ( 92 ) + + - col2 FROM tab1 AS cor0
----
5402
6212
8732

query I rowsort
SELECT + - col2 * + - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - MAX( DISTINCT + - 61 ) * + 66 FROM tab0 cor0
----
4026

skipif mysql # not compatible
query I rowsort label-7789
SELECT - MAX ( DISTINCT + - 61 ) * + 66 FROM tab0 cor0
----
4026

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7790
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7790
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT ALL - col2 DIV + col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - col2 / + col1 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT DISTINCT - col0 * + + col2 + - + col0 + col1 + - + col1 DIV - 81 + 2 DIV - 13 FROM tab2 AS cor0
----
-1053
-2547
-4358

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - col0 * + + col2 + - + col0 + col1 + - + col1 / - 81 + 2 / - 13 FROM tab2 AS cor0
----
-1053
-2547
-4358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT + 82 FROM tab1 cor0 WHERE NOT 3 / - + col0 + + - CAST( col2 AS SIGNED ) - - col1 / 27 + - 9 * - 8 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7793
SELECT + 82 FROM tab1 cor0 WHERE NOT 3 / - + col0 + + - CAST ( col2 AS INTEGER ) - - col1 / 27 + - 9 * - 8 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT - SUM( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7795
SELECT - SUM ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + - col2 NOT IN ( - 11 - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2 AS col2, - 82 FROM tab0
----
-10
-82
-47
-82
-99
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col0 col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT ALL col2 DIV - + 99 * + + 78 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL col2 / - + 99 * + + 78 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 25 / 35 + - col2 - 52 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7801
SELECT ALL - 33 AS col1, + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0
----
-33
NULL
-33
NULL
-33
NULL

skipif mysql # not compatible
query II rowsort label-7801
SELECT ALL - 33 AS col1, + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0
----
-33
NULL
-33
NULL
-33
NULL

query I rowsort
SELECT ( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - col1 + - - col0 * - - col1 + col0 FROM tab1 AS cor0
----
4321
505
751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 26 - 12 col0 FROM tab0 AS cor0
----
-119
-39
-59

query I rowsort
SELECT ALL + col0 - 77 + - 10 - + + col2 * - ( + 16 ) AS col1 FROM tab2 AS cor0
----
327
617
916

query I rowsort
SELECT ALL - + col0 * + col1 + + 4 FROM tab2 AS cor0
----
-2342
-4924
-5021

query I rowsort
SELECT - ( - 46 ) + col2 AS col2 FROM tab1
----
105
114
142

query II rowsort
SELECT DISTINCT - col1 - - col0 AS col0, 40 + - col1 AS col2 FROM tab2
----
-13
-37
-5
-11
8
-27

query I rowsort
SELECT ( col0 ) * 58 AS col2 FROM tab0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT + 64 * COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT + 64 * COUNT ( * ) FROM tab2 AS cor0
----
192

query II rowsort
SELECT DISTINCT + - col0 * + 89 AS col0, - col1 * + - col1 AS col0 FROM tab2 AS cor0
----
-4094
2601
-5696
5929
-6675
4489

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7813
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 + + col0 - - col0 * + col1 AND 66 + col0 * 82 / - 22 * + 8 + - - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7813
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 + + col0 - - col0 * + col1 AND 66 + col0 * 82 / - 22 * + 8 + - - col1 + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT 63, 95 AS col0 FROM tab1
----
63
95

query I rowsort
SELECT - col2 * - 41 * 90 FROM tab0 cor0
----
173430
365310
36900

query I rowsort
SELECT DISTINCT + col1 * + - 24 AS col2 FROM tab1 AS cor0
----
-1128
-120
-336

query I rowsort
SELECT - + ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT + COUNT( * ) DIV - 45 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT + COUNT ( * ) / - 45 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT - + 34 * - COUNT( * ) + COUNT( + + col0 ) * COUNT( + + 11 ) * - + COUNT( * ) * - SUM( DISTINCT - + 63 ) + - 78 + - 20 col2 FROM tab0 AS cor0
----
-1697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7819
SELECT - + 34 * - COUNT ( * ) + COUNT ( + + col0 ) * COUNT ( + + 11 ) * - + COUNT ( * ) * - SUM ( DISTINCT - + 63 ) + - 78 + - 20 col2 FROM tab0 AS cor0
----
-1697

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7821
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 * col2 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7821
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 * col2 + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col1 * col2 + + + col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT ALL 71 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 55 * + + col0 * + col2 - 33 + + 59 * - + CAST( NULL AS SIGNED ) / + col2 AND ( + col1 + + col2 * + col0 - + col2 )
----

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL 71 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 55 * + + col0 * + col2 - 33 + + 59 * - + CAST ( NULL AS INTEGER ) / + col2 AND ( + col1 + + col2 * + col0 - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT DISTINCT col1 * - ( - col2 ) DIV - + col2 AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT col1 * - ( - col2 ) / - + col2 AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 10 + - col2 * 11 FROM tab2
----
-243
-430
-628

query I rowsort
SELECT ALL 95 + + col1 FROM tab1
----
100
109
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - SUM( ALL + 16 ) * - 80 AS col2 FROM tab1 AS cor0
----
3840

skipif mysql # not compatible
query I rowsort label-7828
SELECT - SUM ( ALL + 16 ) * - 80 AS col2 FROM tab1 AS cor0
----
3840

query I rowsort
SELECT 10 * + col2 + + + 94 FROM tab1 AS cor0
----
1054
684
774

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT DISTINCT COUNT( * ) AS col0, + 2 FROM tab2
----
3
2

skipif mysql # not compatible
query II rowsort label-7830
SELECT DISTINCT COUNT ( * ) AS col0, + 2 FROM tab2
----
3
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col1 + + - col2 + 91 NOT IN ( 74 )
----

query I rowsort
SELECT - 0 + + col0 * + + col2 + col1 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7833
SELECT DISTINCT + COUNT( * ) + + - 57 * - 89 AS col0, - 85 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5082
9

skipif mysql # not compatible
query II rowsort label-7833
SELECT DISTINCT + COUNT ( * ) + + - 57 * - 89 AS col0, - 85 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5082
9

query I rowsort
SELECT ALL - 0 + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7835
SELECT 71 col0, SUM( + col1 ) FROM tab0 cor0
----
71
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7835
SELECT 71 col0, SUM ( + col1 ) FROM tab0 cor0
----
71
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT - 60 - + + COUNT( * ) * + 12 - + 32 + + MAX( + 87 ) * - + ( COUNT( * ) ) FROM tab2 AS cor0
----
-389

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - 60 - + + COUNT ( * ) * + 12 - + 32 + + MAX ( + 87 ) * - + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-389

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL - MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE 12 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL - MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE 12 IS NULL
----
NULL

query I rowsort
SELECT - 27 - - - col1 AS col2 FROM tab2 AS cor0
----
-104
-78
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7839
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - col0 * + - col1 + col1 / + + CAST( - 51 AS SIGNED ) AND ( + ( CAST( + col1 AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7839
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - col0 * + - col1 + col1 / + + CAST ( - 51 AS INTEGER ) AND ( + ( CAST ( + col1 AS INTEGER ) ) ) IS NOT NULL
----

query I rowsort
SELECT + 69 AS col2 FROM tab1 WHERE - col1 >= + ( - col0 )
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT CAST( NULL AS SIGNED ) + - col0 * + 78 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT CAST ( NULL AS INTEGER ) + - col0 * + 78 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT MAX( ALL + + col1 ) * + CAST( - 51 AS SIGNED ) FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-7842
SELECT MAX ( ALL + + col1 ) * + CAST ( - 51 AS INTEGER ) FROM tab1
----
-2397

query II rowsort
SELECT 76 AS col1, + col0 AS col1 FROM tab2
----
76
46
76
64
76
75

query I rowsort
SELECT ALL + col1 * - - col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT col0 AS col2, col2 * + + col2 FROM tab0
----
15
2209
87
100
97
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT + ( - - CAST( + - col0 AS SIGNED ) ) * + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-7846
SELECT + ( - - CAST ( + - col0 AS INTEGER ) ) * + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ( - col2 ) * - 78 FROM tab1
----
4602
5304
7488

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT DISTINCT + 87 DIV - col1 + + 54 AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + 87 / - col1 + + 54 AS col1 FROM tab2 AS cor0
----
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 32 * - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 55 * - col1 * - col0 col1 FROM tab2 AS cor0
----
-17346560
-20728125
-5935380

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT DISTINCT - 93 * - 46 + + + COUNT( - 38 ) AS col2 FROM tab2 AS cor0
----
4281

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - 93 * - 46 + + + COUNT ( - 38 ) AS col2 FROM tab2 AS cor0
----
4281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7853
SELECT ( - 74 ) * - col2 - ( + 61 ) + col2 + CAST( NULL AS SIGNED ) AS col1, col2 * + col1 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
query II rowsort label-7853
SELECT ( - 74 ) * - col2 - ( + 61 ) + col2 + CAST ( NULL AS INTEGER ) AS col1, col2 * + col1 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL + MIN( DISTINCT + + col2 ) * + COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + MIN ( DISTINCT + + col2 ) * + COUNT ( * ) FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT COUNT( * ) + - 77 AS col0 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-7855
SELECT COUNT ( * ) + - 77 AS col0 FROM tab0
----
-74

query III rowsort
SELECT * FROM tab0 WHERE NOT - 35 < col0 + + col1 - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7857
SELECT DISTINCT + COUNT( * ) DIV 81 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT + COUNT ( * ) / 81 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL col2 * + 73 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT DISTINCT - AVG ( ALL - col0 ) FROM tab0 WHERE NOT ( NOT ( NOT col1 IS NOT NULL ) )
----
NULL

query I rowsort
SELECT ALL - ( 55 ) * col1 + - - col2 * col0 + - 42 AS col1 FROM tab0 AS cor0
----
-327
-3792
9506

query I rowsort
SELECT - 90 - + col1 AS col2 FROM tab0
----
-111
-171
-91

onlyif mysql # DIV for integer division: 
query III rowsort label-7862
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 DIV - col0 NOT IN ( col0 * - - col1 + - + 44, + col2 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7862
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / - col0 NOT IN ( col0 * - - col1 + - + 44, + col2 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT ALL col1 - + col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL col1 - + col2 / - col2 AS col2 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - + MIN( ALL col1 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7864
SELECT - + MIN ( ALL col1 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT + CAST( NULL AS SIGNED ) + MIN( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * - - col2 * 61 IS NULL
----

query II rowsort
SELECT ALL + col1, - 14 * + col2 AS col2 FROM tab2
----
51
-322
67
-812
77
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + - COUNT( * ) * 13 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7868
SELECT + - COUNT ( * ) * 13 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
0

query I rowsort
SELECT + - ( - + col2 ) - 2 + + 4 + - - col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, ( + 68 ) + - col1 FROM tab1
----
59
63
68
21
96
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT MIN( + + 66 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7871
SELECT MIN ( + + 66 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT + COUNT( ALL col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT + COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + col0, col0 + + col2 FROM tab0 AS cor0
----
15
62
87
97
97
196

query I rowsort
SELECT - 95 + - ( + col2 ) FROM tab0 AS cor0
----
-105
-142
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT - + SUM( + - 89 ) AS col0 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT - + SUM ( + - 89 ) AS col0 FROM tab2 AS cor0
----
267

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT DISTINCT + 56 * AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT + 56 * AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - - col0 IN ( - 54 * - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + col2 ) AS col1, 29 col2 FROM tab2
----
23
29
40
29
58
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT + 68 DIV - col1 AS col0 FROM tab0
----
-3
-68
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT + 68 / - col1 AS col0 FROM tab0
----
-3
-68
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT DISTINCT + AVG ( CAST( NULL AS SIGNED ) ) * COUNT( * ) * + 71 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7881
SELECT DISTINCT + AVG ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * + 71 col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ALL COUNT( * ) + - 56 * COUNT( * ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL COUNT ( * ) + - 56 * COUNT ( * ) FROM tab2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL - 5 + COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - 5 + COUNT ( * ) FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - col2 col2, col0 * + col0 FROM tab0 AS cor0
----
-98
9409
11
7569
34
225

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col2 + + 5 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT DISTINCT 35 DIV + col2 AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT 35 / + col2 AS col1 FROM tab0
----
0
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> + + col0 - - ( - 76 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7888
SELECT DISTINCT + SUM( 57 ) + + COUNT( * ) AS col1, 93 FROM tab2 AS cor0
----
174
93

skipif mysql # not compatible
query II rowsort label-7888
SELECT DISTINCT + SUM ( 57 ) + + COUNT ( * ) AS col1, 93 FROM tab2 AS cor0
----
174
93

query I rowsort
SELECT ALL + + col2 * + ( - 64 ) AS col0 FROM tab1 AS cor0
----
-3776
-4352
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7890
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7890
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7891
SELECT ALL COUNT( * ) DIV + 51 - - 30 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL COUNT ( * ) / + 51 - - 30 FROM tab0 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( col2 ) BETWEEN NULL AND - 82
----

query II rowsort
SELECT col1 * 4, - col0 * col0 AS col1 FROM tab0
----
324
-225
4
-9409
84
-7569

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE col0 < + + 37
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT ALL COUNT( * ) DIV ( + 23 ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL COUNT ( * ) / ( + 23 ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7897
SELECT col2 DIV + 69 AS col2, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-7897
SELECT col2 / + 69 AS col2, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT col2 * col1 FROM tab0 WHERE NOT - col0 + col0 IS NULL
----
210
3807
99

query I rowsort
SELECT ALL - col2 + + + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + 49 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 83 + 30 AS col0 FROM tab0 AS cor0
----
113
113
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT + + 88 + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7902
SELECT + + 88 + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
85

query II rowsort
SELECT col1 * + - col1 + col1 * - col2 - 16 AS col1, col0 * 80 + - col2 FROM tab1 AS cor0
----
-1556
3984
-336
6741
-5421
7212

query I rowsort
SELECT + + 83 FROM tab1 WHERE NULL IS NULL
----
83
83
83

query I rowsort
SELECT DISTINCT + ( + 65 ) * - - col2 FROM tab2
----
1495
2600
3770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 42 - - + col0 * col1 col0 FROM tab2
----
2411
5010
5125

query I rowsort
SELECT - col0 + - 30 + + + col0 - + + 81 AS col2 FROM tab1
----
-111
-111
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 5 col1 FROM tab1
----
14
-5
47
-5
5
-5

query I rowsort
SELECT + 77 + + col0 AS col2 FROM tab2
----
123
141
152

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT - col0 DIV col1 * - 89 * - 67 + + - col2 + + 24 FROM tab0
----
-23
-23838
-578486

skipif mysql # not compatible
query I rowsort label-7910
SELECT - col0 / col1 * - 89 * - 67 + + - col2 + + 24 FROM tab0
----
-23
-23838
-578486

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col0 + + 31 + col1 ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col2 * - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 7 * + col1 - col2 ) NOT BETWEEN + col2 AND + 71 / col1 * col2
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= + 0
----

query I rowsort
SELECT - - col0 - + col1 * col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7916
SELECT DISTINCT + 66 AS col1, - col0 DIV + - col2 col2 FROM tab2 AS cor0
----
66
1
66
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7916
SELECT DISTINCT + 66 AS col1, - col0 / + - col2 col2 FROM tab2 AS cor0
----
66
1
66
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT COUNT( * ) col1 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7917
SELECT COUNT ( * ) col1 FROM tab1, tab0 cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 / + col2 AND - col1 * + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 53 * + ( + + ( ( + col0 ) ) ) AS col2 FROM tab1 AS cor0
----
2703
4505
4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + - 3 ), col2 col1 FROM tab1 AS cor0
----
3
59
3
68
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + ( - COUNT( ALL + 15 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7922
SELECT + ( - COUNT ( ALL + 15 ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + 49 * COUNT( * ) AS col2 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-7923
SELECT + 49 * COUNT ( * ) AS col2 FROM tab1
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 75, + ( col2 ) col1 FROM tab2
----
75
23
75
40
75
58

query I rowsort
SELECT ALL - col0 - + 44 FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT + col1 * + + 20 AS col2 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT DISTINCT + 29 * + 10 FROM tab0
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7928
SELECT - CAST( NULL AS SIGNED ) * col0 * col2 col0, - col0 + - col1 AS col2 FROM tab2
----
NULL
-141
NULL
-142
NULL
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7928
SELECT - CAST ( NULL AS INTEGER ) * col0 * col2 col0, - col0 + - col1 AS col2 FROM tab2
----
NULL
-141
NULL
-142
NULL
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, 42 FROM tab1 AS cor0
----
14
42
47
42
5
42

query II rowsort
SELECT 82 AS col2, - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
82
-46
82
-64
82
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7932
SELECT - COUNT( * ) AS col1, - 93 + - COUNT( * ) FROM tab1 AS cor0
----
-3
-96

skipif mysql # not compatible
query II rowsort label-7932
SELECT - COUNT ( * ) AS col1, - 93 + - COUNT ( * ) FROM tab1 AS cor0
----
-3
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - 73 * col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7934
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, - 12 AS col2 FROM tab1 cor0
----
NULL
-12
NULL
-12
NULL
-12

skipif mysql # not compatible
query II rowsort label-7934
SELECT ALL + CAST ( NULL AS REAL ) AS col1, - 12 AS col2 FROM tab1 cor0
----
NULL
-12
NULL
-12
NULL
-12

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL COUNT( * ) * - + 74 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL COUNT ( * ) * - + 74 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-222

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( + col1 )
----

query I rowsort
SELECT - 94 - 22 AS col2 FROM tab2
----
-116
-116
-116

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + ( - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL SUM( DISTINCT 66 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL SUM ( DISTINCT 66 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT + COUNT( * ) - + + COUNT( 36 ) * + COUNT( * ) col2 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7941
SELECT + COUNT ( * ) - + + COUNT ( 36 ) * + COUNT ( * ) col2 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT - 30 AS col2 FROM tab0
----
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col1 / col1 - + col2 <= + 17 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7944
SELECT ALL + col1 DIV - col1 + col1 - col2 AS col0 FROM tab2 AS cor0
----
27
36
8

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL + col1 / - col1 + col1 - col2 AS col0 FROM tab2 AS cor0
----
27
36
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT + - 20 + - + col1 * + - CAST( NULL AS SIGNED ) + - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT + - 20 + - + col1 * + - CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - + 81 + + col1 FROM tab0 AS cor0
----
-1134
-7026
-7856

query I rowsort
SELECT ALL + col1 * - - col0 + col0 * + ( + + col1 ) FROM tab0 AS cor0
----
194
2430
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL 97 - - - COUNT( * ) AS col0 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL 97 - - - COUNT ( * ) AS col0 FROM tab1 cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT + + 17 + + col0 - 57 + col0 * - - col1 * + col0 DIV + col0 FROM tab2 AS cor0
----
2352
4952
5060

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT + + 17 + + col0 - 57 + col0 * - - col1 * + col0 / + col0 FROM tab2 AS cor0
----
2352
4952
5060

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 77 col0 FROM tab0
----
1617
6237
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7953
SELECT - col0 - + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-7953
SELECT - col0 - + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + - col2 / + col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( + 24 = + 33 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 8 + col2 >= - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + ( + 18 ) <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( + ( 79 ) ) FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7959
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 * 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT 64 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT 64 ) FROM tab1
----
3

query I rowsort
SELECT - 88 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query II rowsort
SELECT DISTINCT + 43 + + + 43 + + + 31 AS col2, col2 AS col0 FROM tab1 cor0
----
117
59
117
68
117
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7964
SELECT + col0 DIV - col0 + - 20 AS col0, + col0 * + + col1 + + + col0 FROM tab1 AS cor0
----
-21
4368
-21
510
-21
765

skipif mysql # not compatible
query II rowsort label-7964
SELECT + col0 / - col0 + - 20 AS col0, + col0 * + + col1 + + + col0 FROM tab1 AS cor0
----
-21
4368
-21
510
-21
765

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT 99 * + col1 + col1 + - + 53 FROM tab1 AS cor0
----
1347
447
4647

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL 27 - COUNT( * ) + ( + MIN( ALL col2 ) ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL 27 - COUNT ( * ) + ( + MIN ( ALL col2 ) ) FROM tab1 AS cor0
----
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + 19 + + col0
----

query I rowsort
SELECT ( 47 ) + 5 AS col0 FROM tab1
----
52
52
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7970
SELECT DISTINCT COUNT( ALL - + CAST( 36 AS DECIMAL ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT COUNT ( ALL - + CAST ( 36 AS REAL ) ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7971
SELECT ALL + col1 * - + 38, CAST( NULL AS DECIMAL ) col1 FROM tab1 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7971
SELECT ALL + col1 * - + 38, CAST ( NULL AS REAL ) col1 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL MAX( + - col0 ) col0 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7972
SELECT ALL MAX ( + - col0 ) col0 FROM tab1
----
-51

query I rowsort
SELECT + + 22 * - col0 FROM tab0 WHERE NULL NOT BETWEEN + - col0 + - - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT ALL 19 DIV + col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL 19 / + col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7975
SELECT ALL CAST( + - col1 AS SIGNED ) * 8 + - + ( 18 ) DIV + col0 AS col1 FROM tab2
----
-408
-536
-616

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL CAST ( + - col1 AS INTEGER ) * 8 + - + ( 18 ) / + col0 AS col1 FROM tab2
----
-408
-536
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT ALL + COUNT( * ) + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL + COUNT ( * ) + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 20 * 63 AS col0 FROM tab1 cor0
----
1260
1260
1260

query I rowsort
SELECT + + col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 63 * - + col0 * + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT DISTINCT COUNT( * ) * + 33 AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT COUNT ( * ) * + 33 AS col1 FROM tab1
----
99

query II rowsort
SELECT + - col2, - col2 AS col1 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query II rowsort
SELECT DISTINCT + 65 AS col1, col0 FROM tab0 AS cor0
----
65
15
65
87
65
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7983
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + CAST( + col2 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7983
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + CAST ( + col2 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 BETWEEN NULL AND col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7985
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col0, - 29 AS col2 FROM tab1
----
NULL
-29
NULL
-29
NULL
-29

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col0, - 29 AS col2 FROM tab1
----
NULL
-29
NULL
-29
NULL
-29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 76 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT DISTINCT 10 * + - CAST( - col0 AS SIGNED ) FROM tab0
----
150
870
970

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT 10 * + - CAST ( - col0 AS INTEGER ) FROM tab0
----
150
870
970

query II rowsort
SELECT + ( + 39 ), col0 FROM tab1
----
39
51
39
85
39
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT - COUNT( * ) AS col2, - COUNT( - + col2 ) AS col1 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7989
SELECT - COUNT ( * ) AS col2, - COUNT ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-3
-3

query I rowsort
SELECT 34 * + + col0 FROM tab0 cor0
----
2958
3298
510

query I rowsort
SELECT DISTINCT - col1 * col0 * + 73 FROM tab2
----
-171258
-359744
-366825

query I rowsort
SELECT + 16 + 57 FROM tab0
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT - 82 DIV + - col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-7993
SELECT - 82 / + - col2 FROM tab0
----
0
1
8

query I rowsort
SELECT col2 * + + 27 * - col0 AS col0 FROM tab2
----
-117450
-28566
-69120

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT 76 * ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-7995
SELECT 76 * ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
228

query I rowsort
SELECT DISTINCT + ( + 3 ) AS col2 FROM tab2 AS cor0 WHERE NULL > col0 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 92 ) AS col0, + col2 col0 FROM tab1 AS cor0 WHERE ( 24 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * col1 + 83 - + col0 AS col0 FROM tab1 AS cor0
----
2201
228
23

query II rowsort
SELECT ALL col1 + + col1 - + col1 * - 67 + - col2 AS col0, col1 * + col1 AS col2 FROM tab1 AS cor0
----
286
25
3175
2209
870
196

query I rowsort
SELECT + col0 * - 9 - - col1 FROM tab1
----
-445
-760
-772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - 11 - 54 * col2 * 9 * - - ( + - col2 ) col1 FROM tab1
----
1691718
2247207
4478891

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - COUNT( * ) + - 49 + - 7 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COUNT ( * ) + - 49 + - 7 FROM tab1
----
-59

query II rowsort
SELECT ALL 49, ( + col0 ) FROM tab2
----
49
46
49
64
49
75

query I rowsort
SELECT - col0 + + col2 * - col0 FROM tab0
----
-720
-957
-9700

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL - CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - col2 + - + 31 AS col0 FROM tab1
----
-127
-90
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= - 50 + + 83
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( ( - col1 ) * + - 30 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 7 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8013
SELECT + ( + CAST( NULL AS DECIMAL ) ) col0, col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8013
SELECT + ( + CAST ( NULL AS REAL ) ) col0, col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + 21 + + + col1 + - col2 * + ( col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2107
-58
-9779

query I rowsort
SELECT DISTINCT + 18 * + 47 FROM tab0
----
846

query I rowsort
SELECT + ( 76 ) * - col1 FROM tab2
----
-3876
-5092
-5852

query I rowsort
SELECT ALL col0 * 34 AS col1 FROM tab1
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT + 53 + + SUM( ALL - 99 ) - 3 * + + COUNT( * ) AS col2 FROM tab1
----
-253

skipif mysql # not compatible
query I rowsort label-8018
SELECT + 53 + + SUM ( ALL - 99 ) - 3 * + + COUNT ( * ) AS col2 FROM tab1
----
-253

query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) + - 5 + - col1 AS col0 FROM tab2 WHERE 26 IS NULL
----

query I rowsort
SELECT DISTINCT + 29 + col2 FROM tab1 cor0
----
125
88
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT - 7 - - ( + col0 ) + + ( - + col0 ) * - - col2 FROM tab1
----
-4852
-4937
-6104

query I rowsort
SELECT + ( - col0 ) + + col1 FROM tab1 WHERE NULL IS NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL MIN( - ( - col0 ) ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL MIN ( - ( - col0 ) ) AS col2 FROM tab2
----
46

query I rowsort
SELECT ALL 64 * col0 * + col0 + + 31 + col2 * - - ( 18 ) * - col0 FROM tab0
----
1741
429353
468787

query I rowsort
SELECT ALL + 3 + - - col1 FROM tab0 cor0
----
24
4
84

query I rowsort
SELECT + col2 * + + 41 + + col0 FROM tab2 cor0
----
1704
2453
989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col1 col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL - col1 - - - col2 * + col0 FROM tab2 AS cor0
----
-1109
-2637
-4417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 4 col0 FROM tab2 AS cor0
----
50
68
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT + - MAX( DISTINCT + - col1 ) - + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT + - MAX ( DISTINCT + - col1 ) - + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - - col1 + + 33 * col0 AS col0 FROM tab2 AS cor0
----
1569
2189
2542

query I rowsort
SELECT ALL + col2 + col0 + - col2 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT + col2 - + col2 DIV - + col0 + - - col2 FROM tab1 AS cor0
----
118
136
193

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + col2 - + col2 / - + col0 + - - col2 FROM tab1 AS cor0
----
118
136
193

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 85 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 85 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL 98 - + - COUNT( * ) * 51 FROM tab0
----
251

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL 98 - + - COUNT ( * ) * 51 FROM tab0
----
251

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 NOT IN ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + MIN( - - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + MIN ( - - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - 58 - + COUNT( * ) - + 0 FROM tab0, tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8039
SELECT - 58 - + COUNT ( * ) - + 0 FROM tab0, tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 20 * - + col1 + - 60 + + + col1 FROM tab2 AS cor0
----
1011
1347
1557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + col0 ) col1, ( + col1 ) AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT + 79 * - col2 FROM tab1
----
-4661
-5372
-7584

onlyif mysql # DIV for integer division: 
query II rowsort label-8044
SELECT DISTINCT col2, - 86 + col2 DIV col1 FROM tab1
----
59
-75
68
-85
96
-80

skipif mysql # not compatible
query II rowsort label-8044
SELECT DISTINCT col2, - 86 + col2 / col1 FROM tab1
----
59
-75
68
-85
96
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 24 ) * + + col2 col1 FROM tab0 AS cor0
----
1128
2376
240

query I rowsort
SELECT ALL + - ( col2 ) + ( - col0 ) FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + 50 NOT BETWEEN + col2 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + 50 NOT BETWEEN + col2 + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - + col0 * + col2 + + - 13 FROM tab0 cor0
----
-718
-883
-9616

query II rowsort
SELECT DISTINCT + + col2, - col1 * + col1 FROM tab0 AS cor0
----
10
-441
47
-6561
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8050
SELECT COUNT( * ) DIV - - 35 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT COUNT ( * ) / - - 35 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col2 + + col2 + - 16 + - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT MIN( + 32 ) AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8052
SELECT MIN ( + 32 ) AS col2 FROM tab1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT DISTINCT 17 + col0 DIV - 45 FROM tab1
----
15
16

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT 17 + col0 / - 45 FROM tab1
----
15
16

query I rowsort
SELECT ALL - 80 + col2 + - 0 AS col2 FROM tab1 AS cor0
----
-12
-21
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT - + col2 + - - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT - + col2 + - - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8056
SELECT + + col1 + - col0 * col1 + col1 AS col0, col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-415
NULL
-4183
NULL
-686
NULL

skipif mysql # not compatible
query II rowsort label-8056
SELECT + + col1 + - col0 * col1 + col1 AS col0, col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-415
NULL
-4183
NULL
-686
NULL

query I rowsort
SELECT DISTINCT + col2 * + col2 - 1 AS col1 FROM tab1 AS cor0
----
3480
4623
9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8058
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT DISTINCT - 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

query III rowsort
SELECT * FROM tab2 WHERE ( + 8 * + col2 IS NULL )
----

query I rowsort
SELECT - col2 * + + col0 * 62 + col1 FROM tab2 AS cor0
----
-158643
-269633
-65545

query I rowsort
SELECT ALL + 61 AS col1 FROM tab1 cor0 WHERE NULL NOT IN ( - col0 + - col0 )
----

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE col0 NOT BETWEEN + - col2 AND + 74
----
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT DISTINCT 72 * - - col0 + CAST( - 69 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3603
6051
6483

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT 72 * - - col0 + CAST ( - 69 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3603
6051
6483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + ( + 49 ) col1 FROM tab0 cor0
----
-34
38
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - 84 IS NULL
----

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 52 IS NOT NULL
----

query I rowsort
SELECT + 70 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + 94 ) < col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT CAST( - 67 AS SIGNED ) AS col1 FROM tab2
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-8070
SELECT CAST ( - 67 AS INTEGER ) AS col1 FROM tab2
----
-67
-67
-67

query II rowsort
SELECT + col2, + col1 * col1 AS col0 FROM tab0
----
10
441
47
6561
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT ALL - COUNT( * ) AS col1, + ( 76 ) FROM tab2
----
-3
76

skipif mysql # not compatible
query II rowsort label-8072
SELECT ALL - COUNT ( * ) AS col1, + ( 76 ) FROM tab2
----
-3
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT DISTINCT - col2 DIV + col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT - col2 / + col0 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 AS cor0 WHERE NULL <= + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 * col2 * - + ( - + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT - - COUNT( * ) * - - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-8076
SELECT - - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col0 FROM tab0
----
-19

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 29 * + col0 * col1 + 38 AS col0 FROM tab1
----
12363
124071
20744

query I rowsort
SELECT ALL - col1 + - - 12 AS col1 FROM tab1 cor0
----
-2
-35
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 21 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT DISTINCT + CAST( + 16 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT + CAST ( + 16 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
16

query I rowsort
SELECT col2 * - col0 + 36 FROM tab1 AS cor0
----
-4860
-4979
-6152

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT + 28 DIV + col1 + - + col1 + - col0 FROM tab0 cor0
----
-107
-70
-96

skipif mysql # not compatible
query I rowsort label-8085
SELECT + 28 / + col1 + - + col1 + - col0 FROM tab0 cor0
----
-107
-70
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / ( - - 38 ) + + col0 < - col2 + col1
----
87
21
10
97
1
99

query I rowsort
SELECT - 82 + - 72 AS col2 FROM tab0
----
-154
-154
-154

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT col0 + + col0 IS NOT NULL ) )
----

query I rowsort
SELECT ALL + 23 * col0 AS col1 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT + col2 * + col2 + - 39 * col0 FROM tab1
----
1075
166
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT + SUM( DISTINCT + - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8092
SELECT - COUNT( * ) DIV + COUNT( * ) + + MIN( + - 13 ) col2 FROM tab0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8092
SELECT - COUNT ( * ) / + COUNT ( * ) + + MIN ( + - 13 ) col2 FROM tab0
----
-14

query II rowsort
SELECT ALL + 29 AS col2, - col0 FROM tab1
----
29
-51
29
-85
29
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - COUNT( * ) + - 76 * + COUNT( * ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-8094
SELECT - COUNT ( * ) + - 76 * + COUNT ( * ) FROM tab0
----
-231

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col2 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - + 26 - - - ( + col1 ) FROM tab2 AS cor0
----
-103
-77
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8098
SELECT - COUNT( * ) AS col2, 92 FROM tab1 AS cor0
----
-3
92

skipif mysql # not compatible
query II rowsort label-8098
SELECT - COUNT ( * ) AS col2, 92 FROM tab1 AS cor0
----
-3
92

query I rowsort
SELECT ALL + 99 FROM tab2 WHERE NULL <> ( col1 / + 93 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + col2 ) * + 3 >= 35 - 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - col2 + 33 AS col2 FROM tab2
----
-1140
-3047
-3853

query I rowsort
SELECT DISTINCT 90 + - ( + col2 - col1 * - col2 ) FROM tab1
----
-1350
-264
-3174

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT 84 * - COUNT( * ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-8103
SELECT 84 * - COUNT ( * ) FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT COUNT( * ) + 39 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT COUNT ( * ) + 39 FROM tab1
----
42

query I rowsort
SELECT col2 * 12 FROM tab1
----
1152
708
816

query I rowsort
SELECT + 26 * col0 AS col2 FROM tab1 WHERE NOT ( col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT ( 64 ) + COUNT( * ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT ( 64 ) + COUNT ( * ) FROM tab0
----
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + ( 3 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - SUM( - ( - 49 ) ) * + 33 FROM tab0
----
-4851

skipif mysql # not compatible
query I rowsort label-8109
SELECT - SUM ( - ( - 49 ) ) * + 33 FROM tab0
----
-4851

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT + MIN( col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8110
SELECT + MIN ( col0 ) col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT MAX( DISTINCT 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-8111
SELECT MAX ( DISTINCT 23 ) FROM tab1
----
23

query I rowsort
SELECT DISTINCT + col2 - col2 * + 75 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT 6 FROM tab1 WHERE 77 / + 59 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + COUNT( ALL + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8114
SELECT + COUNT ( ALL + col2 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + COUNT( * ) - + MIN( DISTINCT 2 + - col0 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8115
SELECT + COUNT ( * ) - + MIN ( DISTINCT 2 + - col0 ) FROM tab1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT col1 DIV col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT col1 / col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - COUNT( col0 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8117
SELECT - COUNT ( col0 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT DISTINCT + MIN( 89 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + MIN ( 89 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 79 / - 17 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT COUNT( + col2 ) * 77 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8120
SELECT COUNT ( + col2 ) * 77 FROM tab0 AS cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8121
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8121
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 79 ) NOT IN ( 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-8123
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 = + col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col1 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + - ( 54 ) AS col2 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL + SUM( + 97 ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + SUM ( + 97 ) AS col2 FROM tab0 AS cor0
----
291

query I rowsort
SELECT + 10 AS col2 FROM tab2 cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - + ( + MAX( - 49 ) ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8129
SELECT - + ( + MAX ( - 49 ) ) FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + 63 + + COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + 63 + + COUNT ( * ) FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 6 + - 91 NOT BETWEEN col2 * + col2 AND - col0 * col0
----

query I rowsort
SELECT DISTINCT + + 53 + + 67 FROM tab2 AS cor0
----
120

query I rowsort
SELECT DISTINCT + 73 * + col2 FROM tab1 AS cor0
----
4307
4964
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL 91 * COUNT( col0 ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL 91 * COUNT ( col0 ) AS col1 FROM tab1
----
273

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 72 col0 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL MAX( DISTINCT - col0 ) + COUNT( * ) * 59 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL MAX ( DISTINCT - col0 ) + COUNT ( * ) * 59 FROM tab1
----
126

query I rowsort
SELECT 4 AS col1 FROM tab2 WHERE 77 IS NULL
----

query I rowsort
SELECT 72 + - - col2 FROM tab2
----
112
130
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8142
SELECT + CAST( NULL AS DECIMAL ) + ( col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT + CAST ( NULL AS REAL ) + ( col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + + 27 FROM tab1
----
-24
-58
-64

query I rowsort
SELECT + col1 * + 2 * col1 + col2 AS col1 FROM tab2 AS cor0
----
11898
5225
9036

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT ALL + 0 DIV + col1 + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + 0 / + col1 + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 - - col2 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE 33 + 85 NOT IN ( 12 * + 55 - 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT COUNT( * ) FROM tab2 WHERE ( - - 97 ) NOT IN ( + ( - col2 ) * 58 )
----
3

skipif mysql # not compatible
query I rowsort label-8149
SELECT COUNT ( * ) FROM tab2 WHERE ( - - 97 ) NOT IN ( + ( - col2 ) * 58 )
----
3

query I rowsort
SELECT + 44 * + - 15 AS col0 FROM tab0
----
-660
-660
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8151
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( - col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL + + MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL + + MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT col2 FROM tab0 cor0 WHERE NOT ( + ( + - col1 ) * CAST( col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8155
SELECT col2 FROM tab0 cor0 WHERE NOT ( + ( + - col1 ) * CAST ( col2 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 IN ( 71 * + 60 + 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL 92 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND ( NULL )
----
92

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL 92 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND ( NULL )
----
92

query I rowsort
SELECT ALL + + 21 FROM tab2 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE - col0 BETWEEN ( + col2 * - 95 + + col1 ) AND ( col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE - col0 BETWEEN ( + col2 * - 95 + + col1 ) AND ( col2 )
----
-3

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col1 <> ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT - MAX( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - MAX ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, 64 col0 FROM tab0 AS cor0
----
15
64
87
64
97
64

query I rowsort
SELECT col0 / - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 * ( - col1 ) + col0 AND + 0
----

query II rowsort
SELECT ALL - + col0 AS col2, ( + + col0 ) - col2 FROM tab0 AS cor0
----
-15
-32
-87
77
-97
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 83 * - ( 93 ) + + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + - 87 * - col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT - 2 * col0 DIV + 99 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT - 2 * col0 / + 99 AS col1 FROM tab2
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + 19 IN ( - col0 / + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( - col0 ), col0 AS col0 FROM tab0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - col2 + col0 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT DISTINCT - ( + ( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT - ( + ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT 13 / 10 / + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > col0 + + col0 - + + col1 * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 85 + - col0 ) < col1 * ( - col0 * col2 ) + col1 * - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT ALL CAST( - 82 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL CAST ( - 82 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL - 21 * - ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1827
-2037
-315

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL AND + 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8179
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8180
SELECT ALL + 64 + - ( - col0 ) * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + 64 + - ( - col0 ) * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 64 * + + col1 * - - col1 * - col2 + + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1204196
-94390
-9613474

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / + col1 IN ( + - col1 ) AND NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / + col0 * + col0 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT ALL 0 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL 0 / col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 36 + + ( + + col1 ) AS col0 FROM tab1
----
41
50
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT - COUNT( * ) * - 57 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT - COUNT ( * ) * - 57 FROM tab2
----
171

query I rowsort
SELECT + 26 * - + col2 + + col1 FROM tab0
----
-1141
-239
-2573

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT + 95 NOT BETWEEN + + col1 + + + col2 - - 8 AND NULL
----

query I rowsort
SELECT DISTINCT + 1 * col1 * + 23 AS col1 FROM tab0
----
1863
23
483

query I rowsort
SELECT DISTINCT - col2 + col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT - col0 * + 58 * ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > ( + col0 * - - 29 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT - - SUM( ( + 71 ) ) DIV 40 col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8192
SELECT - - SUM ( ( + 71 ) ) / 40 col0 FROM tab1 cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 42 * + col1 IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - 92 + col0 / col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT - - col2 * - col0 / + CAST( NULL AS SIGNED ) * col1 + + CAST( NULL AS SIGNED ) * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT - - col2 * - col0 / + CAST ( NULL AS INTEGER ) * col1 + + CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( 52 ) FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + + COUNT( * ) * - - MIN( DISTINCT + col2 ) + 75 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-8197
SELECT + + COUNT ( * ) * - - MIN ( DISTINCT + col2 ) + 75 FROM tab2 AS cor0
----
144

query I rowsort
SELECT - - col1 * + + col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT SUM( + ( - ( + - ( col2 ) ) ) ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8199
SELECT SUM ( + ( - ( + - ( col2 ) ) ) ) col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE ( 15 * col2 + col2 ) IS NULL
----

query II rowsort
SELECT + col2 AS col1, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT + 95 DIV + 88 col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8202
SELECT DISTINCT + 95 / + 88 col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL + CAST( - - col1 AS SIGNED ) col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8203
SELECT ALL + CAST ( - - col1 AS INTEGER ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + 17 + - 16 FROM tab1 WHERE NOT NULL IN ( + col2 + + - 87, 15, + - col1 )
----

query I rowsort
SELECT - 66 - + - 5 - col0 * + 56 FROM tab1 WHERE NOT 74 IS NULL
----
-2917
-4821
-5157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8207
SELECT - COUNT( * ), + 11 AS col0 FROM tab1
----
-3
11

skipif mysql # not compatible
query II rowsort label-8207
SELECT - COUNT ( * ), + 11 AS col0 FROM tab1
----
-3
11

query II rowsort
SELECT + col0 AS col0, - 98 AS col0 FROM tab0 AS cor0
----
15
-98
87
-98
97
-98

query I rowsort
SELECT - col1 * + col2 + - 92 AS col1 FROM tab1 AS cor0
----
-1436
-3288
-387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 79 col2, - 64 * + 46 FROM tab2 AS cor0
----
79
-2944
79
-2944
79
-2944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, col0 col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT + SUM( 39 ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + SUM ( 39 ) FROM tab1 AS cor0
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT + COUNT( + 59 ) - - 43 FROM tab0 WHERE NULL <> NULL
----
43

skipif mysql # not compatible
query I rowsort label-8214
SELECT + COUNT ( + 59 ) - - 43 FROM tab0 WHERE NULL <> NULL
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + COUNT( + col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8215
SELECT + COUNT ( + col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT col1 - + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

query I rowsort
SELECT ALL + col2 * + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT + 38 + + + ( + 64 ) AS col0 FROM tab2 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL 53 + - - ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
56

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL 53 + - - ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
56

query I rowsort
SELECT DISTINCT 61 - 86 FROM tab1 AS cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE - 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 13 + - col2 AS col0 FROM tab0
----
-34
-86
3

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NULL ) < - - 86 AND NULL BETWEEN 63 AND + col2 * + + col2 + col1
----

query I rowsort
SELECT col1 + + 69 FROM tab0
----
150
70
90

query I rowsort
SELECT - col0 + + col2 * col1 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT ALL - ( - 9 ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ( - - col2 ) AS col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + col2 + + - col1 * + 70 AS col0 FROM tab0 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-1460
-5623
29

query II rowsort
SELECT col1, - 40 + col1 * - - col0 FROM tab2
----
51
2306
67
4985
77
4888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 4 col2, col2 AS col1 FROM tab0
----
4
10
4
47
4
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8232
SELECT DISTINCT + - COUNT( * ) DIV ( + - COUNT( * ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + - COUNT ( * ) / ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT - 9 AS col1, col1 AS col2 FROM tab1 cor0
----
-9
14
-9
47
-9
5

query I rowsort
SELECT + ( - 68 ) * + col0 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
-1020
-5916
-6596

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 37 <= ( - 82 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 97 col1 FROM tab0
----
107
144
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT - col2 / - - ( CAST( NULL AS SIGNED ) ) + + col1 + - + col2 / + + col1 + CAST( NULL 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-8237
SELECT - col2 / - - ( CAST ( NULL AS INTEGER ) ) + + col1 + - + col2 / + + col1 + CAST ( NULL AS INTEGER ) / - + col2 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 FROM tab1 WHERE NOT + col2 < - 91 + col1 * col2
----

query I rowsort
SELECT col2 * + col0 + col1 + + col2 * - 84 AS col1 FROM tab1 AS cor0 WHERE col0 <> 60
----
-3154
523
64

query I rowsort
SELECT + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 80 * - col0 + + + 25 FROM tab0 cor0
----
1225
6985
7785

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT - 21 DIV ( - ( 56 ) ) * + col0 + - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8242
SELECT - 21 / ( - ( 56 ) ) * + col0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8243
SELECT ALL - 42 AS col1, 71 DIV + - MIN( + col2 ) AS col1 FROM tab2
----
-42
-3

skipif mysql # not compatible
query II rowsort label-8243
SELECT ALL - 42 AS col1, 71 / + - MIN ( + col2 ) AS col1 FROM tab2
----
-42
-3

query I rowsort
SELECT ALL - 29 + - col0 - + col1 * - 24 FROM tab0
----
-102
1900
388

query I rowsort
SELECT DISTINCT + + ( + col1 ) + - 33 AS col2 FROM tab2 AS cor0
----
18
34
44

query I rowsort
SELECT col1 + ( col2 ) AS col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL + 40 + + MIN( ALL - + col0 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + 40 + + MIN ( ALL - + col0 ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab2 cor0
----
-67

query I rowsort
SELECT + 53 + + col0 AS col0 FROM tab0 AS cor0
----
140
150
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT + + ( - + AVG ( + - CAST( NULL AS SIGNED ) ) ) * + 96 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT + + ( - + AVG ( + - CAST ( NULL AS INTEGER ) ) ) * + 96 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - col1 * 9 FROM tab1
----
3825
38493
6426

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT col1 DIV 37 * 29 * + col2 * + col0 * + + 74 AS col0 FROM tab0
----
0
0
3025860

skipif mysql # not compatible
query I rowsort label-8252
SELECT col1 / 37 * 29 * + col2 * + col0 * + + 74 AS col0 FROM tab0
----
0
0
3025860

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8253
SELECT + CAST( + ( - 40 ) AS SIGNED ) * col2 DIV col2 FROM tab1
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-8253
SELECT + CAST ( + ( - 40 ) AS INTEGER ) * col2 / col2 FROM tab1
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT DISTINCT + MIN( - 97 ) - 98 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT + MIN ( - 97 ) - 98 FROM tab0
----
-195

query I rowsort
SELECT + + col2 * + col0 FROM tab0 WHERE - col1 >= - 88
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 = + + col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT col1 DIV - col0 * + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT col1 / - col0 * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8259
SELECT + + 56 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT + + 56 * + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + + col2 AS col0 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 80 IN ( + col0, + col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0, 19 FROM tab2 AS cor0
----
46
19
64
19
75
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + SUM( DISTINCT - col1 ) * ( + - COUNT( * ) ) * + 62 FROM tab2 AS cor0
----
36270

skipif mysql # not compatible
query I rowsort label-8263
SELECT + SUM ( DISTINCT - col1 ) * ( + - COUNT ( * ) ) * + 62 FROM tab2 AS cor0
----
36270

query II rowsort
SELECT ALL + - col1, + col0 + + col0 + 73 AS col2 FROM tab0 AS cor0
----
-1
267
-21
247
-81
103

query I rowsort
SELECT ( - col2 ) * - 35 AS col0 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT + MAX( - - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8266
SELECT + MAX ( - - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 97 col0 FROM tab2 AS cor0
----
2231
3880
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + - COUNT( + + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + - COUNT ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 > + - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8270
SELECT DISTINCT - col0, 0 * - - 28 DIV - 8 AS col0 FROM tab0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-8270
SELECT DISTINCT - col0, 0 * - - 28 / - 8 AS col0 FROM tab0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT DISTINCT ( 93 ) * + col2 FROM tab2
----
2139
3720
5394

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < + ( + col0 )
----

query II rowsort
SELECT ALL + 9 AS col2, + col1 AS col2 FROM tab1
----
9
14
9
47
9
5

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND 96
----

query I rowsort
SELECT ALL + 23 * - 61 AS col0 FROM tab0
----
-1403
-1403
-1403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT MAX( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT MAX ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8277
SELECT + CAST( 66 AS SIGNED ) + - COUNT( * ) + + COUNT( * ) * - 82 + + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8277
SELECT + CAST ( 66 AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) * - 82 + + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT DISTINCT - COUNT( * ) AS col2, 16 * COUNT( * ) FROM tab2 AS cor0
----
-3
48

skipif mysql # not compatible
query II rowsort label-8278
SELECT DISTINCT - COUNT ( * ) AS col2, 16 * COUNT ( * ) FROM tab2 AS cor0
----
-3
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT ALL - col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 11 IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL - col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 11 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95 * col2 AS col1, 72 col0 FROM tab1
----
-5605
72
-6460
72
-9120
72

query I rowsort
SELECT ALL + 62 * - - ( - 80 ) FROM tab0
----
-4960
-4960
-4960

query I rowsort
SELECT ALL 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 - - - 90 * + - col0 col0 FROM tab2 AS cor0
----
4142
5762
6752

query I rowsort
SELECT + 16 AS col0 FROM tab2 AS cor0 WHERE ( 84 ) IS NOT NULL
----
16
16
16

query I rowsort
SELECT ALL + 54 * + col1 + - - ( + 36 ) FROM tab2 AS cor0
----
2790
3654
4194

query I rowsort
SELECT + col2 * - + 63 - - col0 AS col0 FROM tab0 AS cor0
----
-2946
-543
-6140

query II rowsort
SELECT DISTINCT - ( - col1 ) / + - col0, + col1 AS col0 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + 25, + col1, - + col2 - + col2 / - col0 * - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + 25, + col1, - + col2 - + col2 / - col0 * - 86 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8289
SELECT - 43, ( - 87 ) * - CAST( - - col2 AS SIGNED ) - + 78 + + - col1 AS col2 FROM tab2
----
-43
1872
-43
3325
-43
4901

skipif mysql # not compatible
query II rowsort label-8289
SELECT - 43, ( - 87 ) * - CAST ( - - col2 AS INTEGER ) - + 78 + + - col1 AS col2 FROM tab2
----
-43
1872
-43
3325
-43
4901

query I rowsort
SELECT + col1 * 84 FROM tab0
----
1764
6804
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT COUNT( 8 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT COUNT ( 8 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8292
SELECT + + CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-8292
SELECT + + CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 IN ( - col1 * col2 + - + col1, - col0 / - - col0, + 16 )
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 24 * + - col0 FROM tab2
----
-1104
-1536
-1800

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT ALL - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8297
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col0 * + col1 * col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8297
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col0 * + col1 * col2 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT ( - COUNT( * ) ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT ( - COUNT ( * ) ) + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT DISTINCT + COUNT( * ) * + + MAX( - ( - ( + 98 ) ) ) AS col2 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + COUNT ( * ) * + + MAX ( - ( - ( + 98 ) ) ) AS col2 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT - SUM( + col1 ) * MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
9945

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT - SUM ( + col1 ) * MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
9945

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8301
SELECT ALL * FROM tab0 WHERE + + col0 NOT IN ( + col2 * 43, + col2 + col1, - col2, ( - + 22 ) * CAST( - CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) AS SIGNED ) + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8301
SELECT ALL * FROM tab0 WHERE + + col0 NOT IN ( + col2 * 43, + col2 + col1, - col2, ( - + 22 ) * CAST ( - CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) AS INTEGER ) + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 29 + col0 FROM tab0
----
-14
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - MIN( + 70 ) FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8303
SELECT - MIN ( + 70 ) FROM tab0 AS cor0
----
-70

query I rowsort
SELECT 37 * + 60 AS col2 FROM tab1 AS cor0
----
2220
2220
2220

query I rowsort
SELECT ALL + col2 * + col2 * - + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-102477
-24385
-252367

query I rowsort
SELECT col0 * 25 AS col1 FROM tab1 AS cor0
----
1275
2125
2275

query I rowsort
SELECT DISTINCT - 27 * + col0 AS col1 FROM tab0 WHERE - + col2 BETWEEN + 5 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 < - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

query II rowsort
SELECT + - col2 * + + 6 + + ( + col0 ) AS col2, - col2 + 36 + - 28 FROM tab0 cor0
----
-267
-39
-497
-91
27
-2

query I rowsort
SELECT ALL col0 + - 57 - 76 + col2 FROM tab0 AS cor0
----
-36
-71
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8313
SELECT + COUNT( * ), 99 AS col2 FROM tab0 cor0
----
3
99

skipif mysql # not compatible
query II rowsort label-8313
SELECT + COUNT ( * ), 99 AS col2 FROM tab0 cor0
----
3
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8314
SELECT + + col2 * col0 + 53 * - CAST( NULL AS SIGNED ) AS col0, col2 DIV + - 73 FROM tab2 AS cor0 WHERE + 51 - - + col2 > - col0 * 32
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-8314
SELECT + + col2 * col0 + 53 * - CAST ( NULL AS INTEGER ) AS col0, col2 / + - 73 FROM tab2 AS cor0 WHERE + 51 - - + col2 > - col0 * 32
----
NULL
0
NULL
0
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8315
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8315
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8316
SELECT - CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8316
SELECT - CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT + ( - - 48 ) FROM tab1 AS cor0
----
48

query III rowsort
SELECT ALL * FROM tab1 WHERE - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT COUNT( * ) * + - ( - COUNT( * ) ) * - + 39 FROM tab2
----
-351

skipif mysql # not compatible
query I rowsort label-8319
SELECT COUNT ( * ) * + - ( - COUNT ( * ) ) * - + 39 FROM tab2
----
-351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT + 60 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8321
SELECT 81 DIV 86 + ( - ( + 20 ) ) AS col2, + CAST( NULL AS SIGNED ) + - + 99 AS col2 FROM tab0 AS cor0
----
-20
NULL
-20
NULL
-20
NULL

skipif mysql # not compatible
query II rowsort label-8321
SELECT 81 / 86 + ( - ( + 20 ) ) AS col2, + CAST ( NULL AS INTEGER ) + - + 99 AS col2 FROM tab0 AS cor0
----
-20
NULL
-20
NULL
-20
NULL

query I rowsort
SELECT 84 AS col2 FROM tab0 WHERE NOT - 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT SUM( + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT SUM ( + - col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + 46 + + 82 FROM tab1 AS cor0
----
128
128
128

query II rowsort
SELECT + + col1, ( + col1 ) - + col1 - - + col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL 21 AS col2, - 25 AS col2 FROM tab2 AS cor0
----
21
-25
21
-25
21
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT - MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8327
SELECT - MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + - col1 * + - col1 * + + col0 AS col1 FROM tab2 AS cor0
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8330
SELECT * FROM tab2 AS cor0 WHERE - CAST( - + CAST( - 53 AS SIGNED ) AS SIGNED ) >= ( - col1 )
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-8330
SELECT * FROM tab2 AS cor0 WHERE - CAST ( - + CAST ( - 53 AS INTEGER ) AS INTEGER ) >= ( - col1 )
----
64
77
40
75
67
58

query II rowsort
SELECT DISTINCT - col0 + ( + + col1 ), 27 AS col2 FROM tab1 AS cor0
----
-37
27
-44
27
-80
27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - - 52 + - + col2 BETWEEN NULL AND + + col0
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( col0 ) BETWEEN + + col1 AND + + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + 54 * + + 61 FROM tab0 cor0
----
-154818
-326106
-32940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT ALL - + 88 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - + 88 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT + 85 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT 41 + + COUNT( * ) FROM tab0, tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT 41 + + COUNT ( * ) FROM tab0, tab2 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT - col1 + - 2 * - col1 * - CAST( NULL AS SIGNED ) * + 36 + - + 35 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT - col1 + - 2 * - col1 * - CAST ( NULL AS INTEGER ) * + 36 + - + 35 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT SUM( DISTINCT - + 10 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT SUM ( DISTINCT - + 10 ) FROM tab2
----
-10

query II rowsort
SELECT - - 25 + col0 AS col1, - 43 * + 75 * + ( - 26 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
100
83850
71
83850
89
83850

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT 29 DIV 84 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT 29 / 84 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8343
SELECT ALL + - 35 DIV - col1 - + col1 FROM tab1 cor0
----
-12
-47
2

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + - 35 / - col1 - + col1 FROM tab1 cor0
----
-12
-47
2

query I rowsort
SELECT DISTINCT col2 * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL MAX( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL MAX ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT ALL + + 1 / - - 60 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8346
SELECT ALL + + 1 / - - 60 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 38 AS col0, + col2 AS col2 FROM tab2
----
38
23
38
40
38
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - ( - - col2 )
----

query I rowsort
SELECT - + 45 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8351
SELECT DISTINCT COUNT( * ) AS col2, 53 col0 FROM tab1
----
3
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8351
SELECT DISTINCT COUNT ( * ) AS col2, 53 col0 FROM tab1
----
3
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 81 + + ( + 53 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 3 BETWEEN + 37 AND ( col0 ) * - col1 * - 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8355
SELECT * FROM tab0 WHERE NOT NULL IN ( - col1 / - + col2 + - CAST( NULL AS SIGNED ), - col2, - col1, - col1 + + 28, - - col0 )
----

skipif mysql # not compatible
query III rowsort label-8355
SELECT * FROM tab0 WHERE NOT NULL IN ( - col1 / - + col2 + - CAST ( NULL AS INTEGER ), - col2, - col1, - col1 + + 28, - - col0 )
----

query I rowsort
SELECT + 24 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8357
SELECT + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT ALL + + 37 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + - 67 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT 70 + + 91 + + ( 78 ) + - col2 * + ( + ( - col0 ) ) AS col2 FROM tab2
----
1297
2799
4589

query I rowsort
SELECT ALL - + 95 + + - col0 AS col1 FROM tab1 cor0
----
-146
-180
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab0 AS cor0 WHERE NOT 12 * col1 >= col0 + + col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL + COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8363
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ALL + 46 + col0 FROM tab2 AS cor0
----
110
121
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT - CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8365
SELECT - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + - 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 AS col0, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

query II rowsort
SELECT ( col1 ) + + col2 AS col1, - col2 * 37 FROM tab0
----
100
-3663
128
-1739
31
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT SUM( ALL col0 ) AS col2 FROM tab0 WHERE 40 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-8370
SELECT SUM ( ALL col0 ) AS col2 FROM tab0 WHERE 40 IS NOT NULL
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT col2 DIV + 76 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8371
SELECT col2 / + 76 AS col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8372
SELECT - 84 AS col1, CAST( - - col0 AS SIGNED ) AS col2 FROM tab0
----
-84
15
-84
87
-84
97

skipif mysql # not compatible
query II rowsort label-8372
SELECT - 84 AS col1, CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0
----
-84
15
-84
87
-84
97

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE - + 58 > + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8374
SELECT ALL - 27, CAST( - + col0 AS SIGNED ) * col1 AS col0 FROM tab1
----
-27
-425
-27
-4277
-27
-714

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL - 27, CAST ( - + col0 AS INTEGER ) * col1 AS col0 FROM tab1
----
-27
-425
-27
-4277
-27
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8375
SELECT DISTINCT - - col1 + - - CAST( + 89 AS SIGNED ), ( - col2 ) AS col2 FROM tab1 cor0
----
103
-96
136
-68
94
-59

skipif mysql # not compatible
query II rowsort label-8375
SELECT DISTINCT - - col1 + - - CAST ( + 89 AS INTEGER ), ( - col2 ) AS col2 FROM tab1 cor0
----
103
-96
136
-68
94
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + - COUNT( * ) - 62 AS col0 FROM tab0 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8376
SELECT + - COUNT ( * ) - 62 AS col0 FROM tab0 cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) col2 FROM tab2 WHERE NOT + col1 - col2 IS NULL
----
23
40
58

query I rowsort
SELECT + 7 / + 11 * + + col0 * - col0 FROM tab0 AS cor0 WHERE NOT col0 * 71 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 57 * + 74 AS col1 FROM tab0 AS cor0
----
4218

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + 32 AND + + 53
----
64
77
40
75
67
58

query I rowsort
SELECT col2 + 76 + + col0 / col0 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 81 + + 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col0 FROM tab0
----
-78
-78
-78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 19 * - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT - ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT - col1 * - col0 > - col0
----

skipif mysql # not compatible
query I rowsort label-8385
SELECT - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT - col1 * - col0 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT DISTINCT + SUM( - - 15 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + SUM ( - - 15 ) AS col0 FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT - 46 * - - CAST( + + 76 AS SIGNED ) AS col1 FROM tab1
----
-3496

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - 46 * - - CAST ( + + 76 AS INTEGER ) AS col1 FROM tab1
----
-3496

query I rowsort
SELECT + 47 * col1 AS col1 FROM tab1
----
2209
235
658

onlyif mysql # aggregate syntax: 
query II rowsort label-8389
SELECT ALL - COUNT( * ) AS col0, 51 AS col0 FROM tab0
----
-3
51

skipif mysql # not compatible
query II rowsort label-8389
SELECT ALL - COUNT ( * ) AS col0, 51 AS col0 FROM tab0
----
-3
51

query I rowsort
SELECT col1 + + + 94 FROM tab2
----
145
161
171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8391
SELECT col2 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8391
SELECT col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8392
SELECT * FROM tab1 AS cor0 WHERE ( + 90 ) IN ( - + 69 * CAST( + ( 88 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8392
SELECT * FROM tab1 AS cor0 WHERE ( + 90 ) IN ( - + 69 * CAST ( + ( 88 ) AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 60 + - 1 FROM tab2 AS cor0
----
59

query II rowsort
SELECT - - col0 AS col1, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8395
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT - SUM( ALL + 89 ) col2 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8396
SELECT DISTINCT - SUM ( ALL + 89 ) col2 FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL COUNT( * ) + + - 16 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL COUNT ( * ) + + - 16 FROM tab2 AS cor0
----
-13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8399
SELECT ALL - - col0, + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8399
SELECT ALL - - col0, + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT AVG ( - + col0 ) FROM tab0 WHERE NULL > col1
----
NULL

query I rowsort
SELECT ( + + 41 ) + - + col2 FROM tab0
----
-58
-6
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 13 col0 FROM tab1
----
109
72
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ( CAST( + col1 AS SIGNED ) ) + 93 FROM tab1 AS cor0
----
107
140
98

skipif mysql # not compatible
query I rowsort label-8403
SELECT ( CAST ( + col1 AS INTEGER ) ) + 93 FROM tab1 AS cor0
----
107
140
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - - col1, - col0 + - + col0, col1 + - 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - COUNT( * ) - - 59 * - + 23 FROM tab2 AS cor0
----
-1360

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - COUNT ( * ) - - 59 * - + 23 FROM tab2 AS cor0
----
-1360

query I rowsort
SELECT DISTINCT - - ( - col2 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col1 + - 70 / + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT ALL + COUNT( ALL - - 31 ) + COUNT( * ), 46 + 90 AS col0 FROM tab1 AS cor0
----
6
136

skipif mysql # not compatible
query II rowsort label-8407
SELECT ALL + COUNT ( ALL - - 31 ) + COUNT ( * ), 46 + 90 AS col0 FROM tab1 AS cor0
----
6
136

query I rowsort
SELECT DISTINCT col0 * + + 95 AS col2 FROM tab2 AS cor0
----
4370
6080
7125

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 WHERE - col2 + + - col2 = - 22 + 88
----

query I rowsort
SELECT + 13 * - col0 FROM tab0 WHERE NOT + - 79 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 AS col1, - col2 col1 FROM tab1
----
68
-59
68
-68
68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT ALL CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

query II rowsort
SELECT - col0, + col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT col2 + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 59 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL + SUM( ALL - col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + SUM ( ALL - col0 ) AS col0 FROM tab1 cor0
----
-227

query I rowsort
SELECT 91 * - 13 AS col1 FROM tab0 cor0 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - 99 AS col2 FROM tab0 AS cor0
----
4653
9801
990

query I rowsort
SELECT ALL - col0 * 49 * - 49 AS col2 FROM tab0
----
208887
232897
36015

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT MAX( + 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT MAX ( + 58 ) FROM tab1
----
58

query I rowsort
SELECT DISTINCT ( - col1 ) * - + 62 AS col1 FROM tab0
----
1302
5022
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL COUNT( * ) * - - COUNT( ALL + col0 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL COUNT ( * ) * - - COUNT ( ALL + col0 ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT 92 * - + col2 AS col0 FROM tab2
----
-2116
-3680
-5336

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 WHERE - 28 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 26 * - - 94 FROM tab2
----
-2444

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL < + 8 + - col0
----

query II rowsort
SELECT 20 + + col1, - col0 - col2 AS col2 FROM tab1
----
25
-144
34
-147
67
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT - COUNT( + - col0 ) + + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT - COUNT ( + - col0 ) + + COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - 37 + col0 + + - col2 AS col2 FROM tab0
----
-39
-69
40

query III rowsort
SELECT * FROM tab1 WHERE NOT 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2, 52 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2, 52 * + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT - 56 + + COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - 56 + + COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT col0 * 79 DIV + col2 AS col2 FROM tab0 AS cor0
----
25
687
77

skipif mysql # not compatible
query I rowsort label-8434
SELECT col0 * 79 / + col2 AS col2 FROM tab0 AS cor0
----
25
687
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT 25 DIV + col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8436
SELECT 25 / + col0 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - - col0 FROM tab2 WHERE NULL < - 66
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - + 46 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + 30 AS col1 FROM tab0 cor0
----
111
31
51

query I rowsort
SELECT - - col0 + + - col1 * ( - + col0 ) * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-119651
-336667
-379469

query I rowsort
SELECT DISTINCT + 61 * col2 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + COUNT( * ) * + MIN( ALL - col0 ) + 81 AS col1 FROM tab2 AS cor0 WHERE 54 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT + COUNT ( * ) * + MIN ( ALL - col0 ) + 81 AS col1 FROM tab2 AS cor0 WHERE 54 IS NULL
----
NULL

query I rowsort
SELECT - 19 + + col0 * - col0 * + col1 * - ( - col1 ) * + col1 FROM tab1 cor0
----
-7137163
-859758282
-903144

query III rowsort
SELECT * FROM tab0 cor0 WHERE 7 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 90 - col1 FROM tab1 AS cor0
----
43
76
85

query I rowsort
SELECT col0 + + col2 + col1 + col0 AS col1 FROM tab2 AS cor0
----
166
245
275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> 47 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT + - 42 + - - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT + - 42 + - - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT col2 * + 78 + + 57 FROM tab0 AS cor0
----
3723
7779
837

onlyif mysql # aggregate syntax: 
query II rowsort label-8452
SELECT DISTINCT - 19, - COUNT( * ) AS col1 FROM tab2
----
-19
-3

skipif mysql # not compatible
query II rowsort label-8452
SELECT DISTINCT - 19, - COUNT ( * ) AS col1 FROM tab2
----
-19
-3

query II rowsort
SELECT + 44, + 50 AS col1 FROM tab1
----
44
50
44
50
44
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT + SUM( ALL col2 ) AS col2, MIN( + - col1 ) FROM tab0
----
156
-81

skipif mysql # not compatible
query II rowsort label-8454
SELECT + SUM ( ALL col2 ) AS col2, MIN ( + - col1 ) FROM tab0
----
156
-81

query I rowsort
SELECT + 95 AS col0 FROM tab1 WHERE NULL > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 51 col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL col0 - + 5 FROM tab0 cor0
----
10
82
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8458
SELECT + 27 DIV + col0 + col0 * + CAST( - 87 AS SIGNED ) * 48 AS col1 FROM tab1 AS cor0
----
-212976
-354960
-380016

skipif mysql # not compatible
query I rowsort label-8458
SELECT + 27 / + col0 + col0 * + CAST ( - 87 AS INTEGER ) * 48 AS col1 FROM tab1 AS cor0
----
-212976
-354960
-380016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8460
SELECT DISTINCT + col0 FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) <= + col1
----

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + col0 FROM tab0 WHERE + - CAST ( NULL AS REAL ) <= + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8461
SELECT * FROM tab0 WHERE NOT - - col0 IN ( + CAST( NULL AS DECIMAL ) * - col2, + col1, - 81 )
----

skipif mysql # not compatible
query III rowsort label-8461
SELECT * FROM tab0 WHERE NOT - - col0 IN ( + CAST ( NULL AS REAL ) * - col2, + col1, - 81 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 * - - 30
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8463
SELECT - SUM( + col0 ) DIV - + 77 AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8463
SELECT - SUM ( + col0 ) / - + 77 AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT 32 IS NULL )
----

query I rowsort
SELECT col1 * + col2 + - ( + - 66 ) FROM tab0 cor0
----
165
276
3873

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT + ( - + COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8466
SELECT + ( - + COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL MAX( ( + - 55 ) ) * + COUNT( DISTINCT - col2 ) col1 FROM tab2
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8467
SELECT ALL MAX ( ( + - 55 ) ) * + COUNT ( DISTINCT - col2 ) col1 FROM tab2
----
-165

query I rowsort
SELECT + col1 * + 6 FROM tab2
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - ( - 60 ) * - - 56
----

query II rowsort
SELECT - col1 AS col1, + 90 AS col2 FROM tab2 AS cor0
----
-51
90
-67
90
-77
90

query I rowsort
SELECT DISTINCT - 78 + - + 76 FROM tab0 AS cor0
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT col2 * col1 + - + 78 DIV col2 AS col0 FROM tab0 AS cor0
----
203
3806
99

skipif mysql # not compatible
query I rowsort label-8473
SELECT col2 * col1 + - + 78 / col2 AS col0 FROM tab0 AS cor0
----
203
3806
99

query I rowsort
SELECT DISTINCT ( + 55 ) * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
2851
3760
4299

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT - SUM( ALL - ( col1 ) ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - SUM ( ALL - ( col1 ) ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL + MIN( - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 77 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + MIN ( - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 77 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + 67 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 38 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8478
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 38 IS NULL
----
9

query I rowsort
SELECT DISTINCT 2 * col2 AS col0 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8480
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT 1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT DISTINCT col0 DIV 58 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT col0 / 58 AS col1 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT + MAX( 32 ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
32
3

skipif mysql # not compatible
query II rowsort label-8483
SELECT + MAX ( 32 ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
32
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT 99 DIV - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8484
SELECT 99 / - + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 16 col1 FROM tab0 AS cor0
----
-15
5
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT ALL - col0 DIV 50 + col2 AS col2 FROM tab2 AS cor0
----
23
39
57

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - col0 / 50 + col2 AS col2 FROM tab2 AS cor0
----
23
39
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 38 / + - 3 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL - 65 + - ( - ( 52 ) ) * + COUNT( ALL + col1 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - 65 + - ( - ( 52 ) ) * + COUNT ( ALL + col1 ) FROM tab2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8489
SELECT ALL ( + + COUNT( * ) ) DIV COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL ( + + COUNT ( * ) ) / COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( - 1 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT - col0 + - + col0 + col0 AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL ( + 47 ) FROM tab1
----
47
47
47

query II rowsort
SELECT DISTINCT + col2 AS col2, ( 58 ) + 69 AS col0 FROM tab2
----
23
127
40
127
58
127

query III rowsort
SELECT * FROM tab0 WHERE + + 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * ( - col2 ) * + 67 + - col2 + + col2 <= NULL
----

query I rowsort
SELECT ALL - col2 * - col1 * - 52 FROM tab2 AS cor0 WHERE col2 + ( col1 ) NOT IN ( + col2, - col0 * - 47, + col1 )
----
-160160
-202072
-60996

query I rowsort
SELECT DISTINCT - - col2 * - + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT - COUNT( * ) * - 43 * ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT - COUNT ( * ) * - 43 * ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ( 56 ) AS col0 FROM tab2
----
56
56
56

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - - 15 * 64 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 60 * col2 AS col1 FROM tab0
----
2820
5940
600

onlyif mysql # aggregate syntax: 
query II rowsort label-8503
SELECT - COUNT( * ) AS col1, 81 AS col2 FROM tab1
----
-3
81

skipif mysql # not compatible
query II rowsort label-8503
SELECT - COUNT ( * ) AS col1, 81 AS col2 FROM tab1
----
-3
81

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 48 * + col0 * + col0 - + col1 - + col1 - col2 + - 8 IS NULL
----

query II rowsort
SELECT + + 81, col2 AS col1 FROM tab2 AS cor0
----
81
23
81
40
81
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT ALL - COUNT( * ), - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8506
SELECT ALL - COUNT ( * ), - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8507
SELECT DISTINCT - - col0 AS col1, - 25 * + 1 DIV - 73 AS col2 FROM tab0 cor0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-8507
SELECT DISTINCT - - col0 AS col1, - 25 * + 1 / - 73 AS col2 FROM tab0 cor0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT + col1 DIV - 46 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT + col1 / - 46 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8510
SELECT 61 + COUNT( * ) + - + COUNT( DISTINCT - CAST( - + col1 AS SIGNED ) ) AS col1 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-8510
SELECT 61 + COUNT ( * ) + - + COUNT ( DISTINCT - CAST ( - + col1 AS INTEGER ) ) AS col1 FROM tab1
----
61

query II rowsort
SELECT + 55 + + 77, - col0 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT 79 + + COUNT( * ) AS col1 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-8512
SELECT 79 + + COUNT ( * ) AS col1 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT COUNT( * ) * COUNT( DISTINCT - 38 ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8513
SELECT COUNT ( * ) * COUNT ( DISTINCT - 38 ) FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL - 31 * - COUNT( * ) * COUNT( * ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL - 31 * - COUNT ( * ) * COUNT ( * ) FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT COUNT( * ) + + - ( ( - 24 ) ) * + ( + 67 ) AS col0 FROM tab0
----
1611

skipif mysql # not compatible
query I rowsort label-8516
SELECT COUNT ( * ) + + - ( ( - 24 ) ) * + ( + 67 ) AS col0 FROM tab0
----
1611

query II rowsort
SELECT 10 + + + col2, col0 AS col2 FROM tab2
----
33
46
50
64
68
75

query I rowsort
SELECT + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT - + COUNT( DISTINCT 21 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT - + COUNT ( DISTINCT 21 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + 36 * + - 64 + - col2 * 34 AS col2 FROM tab2
----
-3086
-3664
-4276

query II rowsort
SELECT DISTINCT - col2 AS col2, - 77 AS col2 FROM tab0 cor0
----
-10
-77
-47
-77
-99
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 63 - col2 < 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 40 + + + col1 + 73 FROM tab0 AS cor0
----
114
134
194

query I rowsort
SELECT DISTINCT + col0 * + 40 + - col0 + col2 * 97 FROM tab2 AS cor0
----
4025
6376
8551

query I rowsort
SELECT + + col1 + - col1 - 27 FROM tab2 cor0
----
-27
-27
-27

query II rowsort
SELECT col2, 19 - + 9 - - col1 - - 89 * - 31 * + + 1 FROM tab0 cor0
----
10
-2728
47
-2668
99
-2748

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + COUNT( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8527
SELECT + COUNT ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NULL IN ( + 57, - 25, col0 )
----

query I rowsort
SELECT ALL - col2 - - col0 AS col2 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab1 WHERE NOT col1 + col1 / - col1 - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT ALL ( + + 2 ) DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL ( + + 2 ) / + col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + ( col0 ) AS col2, 83 AS col2 FROM tab2 cor0
----
46
83
64
83
75
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT 66 * COUNT( * ) FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-8533
SELECT 66 * COUNT ( * ) FROM tab1 cor0
----
198

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <= 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8535
SELECT + SUM( CAST( NULL AS SIGNED ) ) AS col2, - 64 FROM tab0 AS cor0
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-8535
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) AS col2, - 64 FROM tab0 AS cor0
----
NULL
-64

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL = - col1
----

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT ALL - 95, + ( - + COUNT( * ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-95
0

skipif mysql # not compatible
query II rowsort label-8538
SELECT ALL - 95, + ( - + COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-8539
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
0

query II rowsort
SELECT col1, 7 * col0 AS col2 FROM tab2 cor0
----
51
322
67
525
77
448

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8541
SELECT + MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 >= - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + + col2 + - 75 + - ( 80 ) AS col0 FROM tab2 AS cor0
----
-1328
-3235
-4041

query I rowsort
SELECT - col2 FROM tab2 WHERE + col2 <> - - col1 + + col1 + + 65
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + col0 * + + 15 * 8 * col1 / + 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - col2 + - + col0 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT + 75 + + 13 * - 93 - + - col0 AS col2 FROM tab2
----
-1059
-1070
-1088

query I rowsort
SELECT 41 + + col2 FROM tab2
----
64
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT col2 + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT col2 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 + + col2 FROM tab2 cor0
----
22
39
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT - MAX( - col0 ) * 95 * - 3 - - - 99 FROM tab0 AS cor0
----
-4374

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - MAX ( - col0 ) * 95 * - 3 - - - 99 FROM tab0 AS cor0
----
-4374

query I rowsort
SELECT 66 * + + 33 FROM tab0
----
2178
2178
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + COUNT( * ) - 28 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8554
SELECT + COUNT ( * ) - 28 FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8555
SELECT ALL + COUNT( * ) - - COUNT( * ), + 69 * + + ( SUM( DISTINCT 52 ) ) col1 FROM tab2 AS cor0
----
6
3588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8555
SELECT ALL + COUNT ( * ) - - COUNT ( * ), + 69 * + + ( SUM ( DISTINCT 52 ) ) col1 FROM tab2 AS cor0
----
6
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - - MAX( 37 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8556
SELECT - - MAX ( 37 ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND 9 * - col0 NOT BETWEEN + col0 + ( + col0 ) * - col0 * 34 AND 79
----

query I rowsort
SELECT ALL + - ( + 25 ) FROM tab1 AS cor0 WHERE - 80 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col0 + - col0, - col0, col0 )
----

query II rowsort
SELECT - col1 AS col2, 18 + col0 - ( + col0 ) AS col2 FROM tab2
----
-51
18
-67
18
-77
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL - COUNT( ALL + 86 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL - COUNT ( ALL + 86 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL + 49 * - + ( - + 68 ) FROM tab0
----
3332
3332
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + COUNT( 68 ) * - ( - COUNT( * ) ) * COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8563
SELECT + COUNT ( 68 ) * - ( - COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT ALL - + col0 DIV - 85 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - + col0 / - 85 AS col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT 59 * + col1 FROM tab1 WHERE + 31 - ( - 5 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col0 NOT BETWEEN col2 AND + ( col0 ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND col2
----
87
21
10

query I rowsort
SELECT col0 FROM tab1 WHERE col1 <= - col1 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN ( col2 ) AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL MAX( DISTINCT 87 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL MAX ( DISTINCT 87 ) FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL 67 * - ( COUNT( * ) ) FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL 67 * - ( COUNT ( * ) ) FROM tab1
----
-201

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col2 NOT BETWEEN + ( + col1 ) + + 15 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - 34 - 85 * + col1 AS col2 FROM tab2
----
-6069
-7973
-9163

query I rowsort
SELECT - 35 * 15 FROM tab1
----
-525
-525
-525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8576
SELECT ALL - SUM( CAST( 13 AS SIGNED ) ) AS col1 FROM tab0 WHERE 46 + col0 IN ( + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL - SUM ( CAST ( 13 AS INTEGER ) ) AS col1 FROM tab0 WHERE 46 + col0 IN ( + 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT COUNT( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8577
SELECT COUNT ( * ) col0 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + 53 * 2 AS col1 FROM tab0
----
106
106
106

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 56 AS col1 FROM tab1 WHERE NOT ( + 88 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - 85 AS col0 FROM tab0
----
-1785
-6885
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8582
SELECT 10 * CAST( NULL AS DECIMAL ) - MAX( + col0 ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT 10 * CAST ( NULL AS REAL ) - MAX ( + col0 ) * - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT SUM( ALL + ( col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8583
SELECT SUM ( ALL + ( col2 ) ) FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 80 ) col1 FROM tab1
----
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) <= 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 - - 26 FROM tab1 WHERE NOT col1 IS NULL
----
-3455
-4598
-9190

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 62 * - col0 NOT IN ( 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT ALL 92 DIV col0 + col0 DIV col0 FROM tab1 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL 92 / col0 + col0 / col0 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT 91 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-350
-6470
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT COUNT( * ) - 38 * 99 AS col2 FROM tab0 AS cor0 WHERE ( - col1 * - col0 ) IS NOT NULL
----
-3759

skipif mysql # not compatible
query I rowsort label-8591
SELECT COUNT ( * ) - 38 * 99 AS col2 FROM tab0 AS cor0 WHERE ( - col1 * - col0 ) IS NOT NULL
----
-3759

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL COUNT( ALL - 5 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL COUNT ( ALL - 5 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 35 AS col0 FROM tab0 WHERE NOT NULL <= + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8594
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col2 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8594
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col2 <> - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 / 89 - ( 93 ) * + col0 NOT IN ( ( + 60 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + - 29 AS col0 FROM tab1 AS cor0
----
30
39
67

query I rowsort
SELECT - 11 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1001
-561
-935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT - COUNT( CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8598
SELECT - COUNT ( CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 34 AND CAST( - 44 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 34 AND CAST ( - 44 AS INTEGER ) * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8600
SELECT + + 83 DIV COUNT( * ) col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8600
SELECT + + 83 / COUNT ( * ) col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT - - 18 AS col1 FROM tab2 AS cor0
----
18
18
18

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + 36 IS NOT NULL OR NOT NULL NOT IN ( - col2 * 41 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT 64 * - + COUNT( * ) FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT 64 * - + COUNT ( * ) FROM tab0
----
-192

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 / ( 82 ) - + col1 ) <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) < ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8606
SELECT DISTINCT + 4 - col1 FROM tab1 WHERE NOT ( + CAST( - col2 AS DECIMAL ) ) IS NULL
----
-1
-10
-43

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT + 4 - col1 FROM tab1 WHERE NOT ( + CAST ( - col2 AS REAL ) ) IS NULL
----
-1
-10
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT - COUNT( * ) col2 FROM tab2 WHERE NOT 8 * col2 + - 57 BETWEEN col0 AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8607
SELECT - COUNT ( * ) col2 FROM tab2 WHERE NOT 8 * col2 + - 57 BETWEEN col0 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT - 43 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8608
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 43 <= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 78 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8610
SELECT * FROM tab1 WHERE NOT ( CAST( col0 AS DECIMAL ) / col2 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8610
SELECT * FROM tab1 WHERE NOT ( CAST ( col0 AS REAL ) / col2 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT - col2 * col1 DIV 83 AS col0 FROM tab2 AS cor0
----
-14
-37
-46

skipif mysql # not compatible
query I rowsort label-8611
SELECT - col2 * col1 / 83 AS col0 FROM tab2 AS cor0
----
-14
-37
-46

query I rowsort
SELECT DISTINCT - + col0 * - col0 * + col2 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
1
21
81

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( + 39 * - 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ( - COUNT( DISTINCT + col2 ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col0 * + ( col2 * col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8615
SELECT ( - COUNT ( DISTINCT + col2 ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col0 * + ( col2 * col0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT + + SUM( ALL - col0 ) + + 33 + + COUNT( * ) col1 FROM tab2 AS cor0
----
-149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8616
SELECT DISTINCT + + SUM ( ALL - col0 ) + + 33 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-149

query I rowsort
SELECT ALL + col0 * - ( - 12 ) + + 17 AS col0 FROM tab1 AS cor0
----
1037
1109
629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, col1 + - col1 col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT 83 * - col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - 53 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + col1 + col1
----
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) * + 96 FROM tab1 AS cor0
----
-4896
-8160
-8736

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> col1 + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8623
SELECT col2 * ( + col0 ) AS col0 FROM tab0 WHERE - col2 BETWEEN CAST( NULL AS DECIMAL ) * col2 AND col0
----

skipif mysql # not compatible
query I rowsort label-8623
SELECT col2 * ( + col0 ) AS col0 FROM tab0 WHERE - col2 BETWEEN CAST ( NULL AS REAL ) * col2 AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN + ( + 35 ) AND NULL
----

query I rowsort
SELECT ALL ( col1 ) * - 17 + - - col0 - col2 FROM tab1
----
-283
-59
-776

query I rowsort
SELECT - col1 FROM tab0 WHERE - col1 > - + 83 + col2
----
-21

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN - 17 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + + 39 FROM tab2
----
1560
2262
897

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - MIN( DISTINCT - ( - col0 ) ) + - 34 + 19 AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8629
SELECT - MIN ( DISTINCT - ( - col0 ) ) + - 34 + 19 AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT col0 + - ( - - CAST( + col2 AS SIGNED ) ) + - 45 AS col0 FROM tab1
----
-19
-22
-90

skipif mysql # not compatible
query I rowsort label-8630
SELECT col0 + - ( - - CAST ( + col2 AS INTEGER ) ) + - 45 AS col0 FROM tab1
----
-19
-22
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT ALL 1 DIV + + col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT ALL 1 / + + col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 37 + col0 AS col0 FROM tab2
----
27
38
9

query I rowsort
SELECT + col1 + - + 44 + col1 - col2 FROM tab1
----
-112
-18
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT ( SUM( - 70 ) ) AS col1 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT ( SUM ( - 70 ) ) AS col1 FROM tab0
----
-210

query III rowsort
SELECT * FROM tab2 WHERE + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT DISTINCT - 65 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT - 65 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 + - - col0 AS col0 FROM tab0 cor0
----
-2
-32
77

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN ( - 37 ) AND NULL
----

query II rowsort
SELECT col0, col1 * + col0 AS col0 FROM tab0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT 25 * SUM( DISTINCT + 8 ) FROM tab2
----
200

skipif mysql # not compatible
query I rowsort label-8640
SELECT 25 * SUM ( DISTINCT + 8 ) FROM tab2
----
200

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = + 41 + + + ( + ( + 58 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - - ( - col2 ) ) * + - col1 * col2 < 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 + 25 + + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( col0 / + 9 * + - ( ( + 10 ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8646
SELECT SUM( ALL - 6 ) FROM tab2 WHERE NOT ( + col0 * + col1 NOT BETWEEN ( + 13 / + 79 ) AND - col2 - CAST( NULL AS SIGNED ) * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT SUM ( ALL - 6 ) FROM tab2 WHERE NOT ( + col0 * + col1 NOT BETWEEN ( + 13 / + 79 ) AND - col2 - CAST ( NULL AS INTEGER ) * + col0 )
----
NULL

query II rowsort
SELECT ALL 98 AS col1, ( col1 ) * col1 AS col2 FROM tab2
----
98
2601
98
4489
98
5929

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - ( + + ( - + col0 ) ) * + - col1 - + 32
----

query I rowsort
SELECT + - col2 - + 40 FROM tab2 WHERE NOT + col2 IS NULL
----
-63
-80
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT ALL - MIN( - col0 ) AS col0, COUNT( * ) AS col1 FROM tab2
----
75
3

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL - MIN ( - col0 ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL MAX( DISTINCT + - col0 ) * 8 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL MAX ( DISTINCT + - col0 ) * 8 FROM tab0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8652
SELECT DISTINCT + col1 AS col1, + ( ( col0 ) ) + CAST( - col0 AS SIGNED ) FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-8652
SELECT DISTINCT + col1 AS col1, + ( ( col0 ) ) + CAST ( - col0 AS INTEGER ) FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 7 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2, col0 AS col1 FROM tab1 cor0
----
59
85
68
91
96
51

query I rowsort
SELECT col1 * + ( + 69 ) AS col0 FROM tab0 AS cor0
----
1449
5589
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 / + 23 col0 FROM tab2 WHERE NOT + 25 >= + col0 / - - col1 + - - 22
----

query I rowsort
SELECT DISTINCT 68 * col1 * + col0 + 94 AS col1 FROM tab1
----
28994
290930
48646

onlyif mysql # DIV for integer division: 
query I rowsort label-8658
SELECT ALL col0 DIV + - col1 + col1 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL col0 / + - col1 + col1 FROM tab1 AS cor0
----
-12
11
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT + COUNT( * ) + - ( - + COUNT( * ) ) + - 3 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT + COUNT ( * ) + - ( - + COUNT ( * ) ) + - 3 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * 53 AS col1 FROM tab1 AS cor0
----
2491
265
742

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 91 ) <= - 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT ALL + ( - - 10 ) DIV + + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL + ( - - 10 ) / + + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + 48 + - ( - col1 ) FROM tab2 AS cor0
----
115
125
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT ALL + + ( col0 ) * + - 87 + + 35 DIV col2 col2 FROM tab2 AS cor0
----
-4001
-5568
-6525

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8664
SELECT ALL + + ( col0 ) * + - 87 + + 35 / col2 col2 FROM tab2 AS cor0
----
-4001
-5568
-6525

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT + 66 + + col2 DIV + col0 + - col0 FROM tab1 AS cor0
----
-19
-25
16

skipif mysql # not compatible
query I rowsort label-8665
SELECT + 66 + + col2 / + col0 + - col0 FROM tab1 AS cor0
----
-19
-25
16

query II rowsort
SELECT DISTINCT - col1 * ( - 52 ) AS col1, 44 AS col2 FROM tab1
----
2444
44
260
44
728
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT COUNT( + + ( 38 ) ) AS col2, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-8667
SELECT COUNT ( + + ( 38 ) ) AS col2, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT - 14 * - COUNT( * ) - + 74 * - 7 FROM tab1
----
560

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - 14 * - COUNT ( * ) - + 74 * - 7 FROM tab1
----
560

query I rowsort
SELECT DISTINCT + col1 / + col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 + - 46 AND NULL
----

query I rowsort
SELECT ALL - 59 * + col1 AS col0 FROM tab0
----
-1239
-4779
-59

query I rowsort
SELECT DISTINCT 26 + col2 AS col2 FROM tab2
----
49
66
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8672
SELECT DISTINCT + COUNT( * ) AS col0, 83 FROM tab2
----
3
83

skipif mysql # not compatible
query II rowsort label-8672
SELECT DISTINCT + COUNT ( * ) AS col0, 83 FROM tab2
----
3
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 59 + 23
----

query I rowsort
SELECT col2 + - ( 14 ) * col2 FROM tab0 AS cor0
----
-1287
-130
-611

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - + col1 NOT IN ( - ( - - 45 ), 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL - 13 * - 94 + - COUNT( * ) + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
1222

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - 13 * - 94 + - COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT MAX( + 79 ) * + + CAST( NULL AS SIGNED ) + SUM( ALL + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT MAX ( + 79 ) * + + CAST ( NULL AS INTEGER ) + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - col2 * - col0 AS col0, + col0 AS col1 FROM tab1 cor0
----
4896
51
5015
85
6188
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 col1 FROM tab2 cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * - col2 col1 FROM tab0 AS cor0
----
-3572
-7524
-760

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + 46 - - col0 + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT - SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8682
SELECT - SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL 56 * - MIN( col2 ) FROM tab2 AS cor0
----
-1288

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL 56 * - MIN ( col2 ) FROM tab2 AS cor0
----
-1288

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8685
SELECT DISTINCT ( + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col1, 46 * col2 * + col1 * - col0 + - ( + ( 35 ) ) - + col0 * + col2 AS col2 FROM tab2
----
NULL
-13411085
NULL
-2483161
NULL
-9070115

skipif mysql # not compatible
query II rowsort label-8685
SELECT DISTINCT ( + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) AS col1, 46 * col2 * + col1 * - col0 + - ( + ( 35 ) ) - + col0 * + col2 AS col2 FROM tab2
----
NULL
-13411085
NULL
-2483161
NULL
-9070115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT - CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8686
SELECT - CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT - + col0 - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-141
-142
-97

query II rowsort
SELECT - - ( 73 ) + 73 AS col1, - col1 FROM tab0 AS cor0
----
146
-1
146
-21
146
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT 69 + COUNT( * ) FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-8690
SELECT 69 + COUNT ( * ) FROM tab1 cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0 AS cor0 WHERE NOT + 49 >= + + col0
----
10
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query II rowsort
SELECT col0, + 87 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
51
1122
85
376
91
4021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT DISTINCT - + col1 + - col1 - col0 + - - col0 * col0 * CAST( NULL AS SIGNED ) * + - 91 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8694
SELECT DISTINCT - + col1 + - col1 - col0 + - - col0 * col0 * CAST ( NULL AS INTEGER ) * + - 91 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT - - 18 + MAX( col2 ) AS col0 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - - 18 + MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
114

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT - 24 NOT IN ( + + 40 )
----

query I rowsort
SELECT - + ( - 69 ) - + col0 + + - 70 * - 50 + + 66 - + col0 * + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-3616
-4669
1079

query I rowsort
SELECT 74 FROM tab1 WHERE - + col2 * - col0 IS NOT NULL
----
74
74
74

query II rowsort
SELECT col1 + + col2, + col0 + - col1 AS col2 FROM tab2
----
117
-13
125
8
74
-5

query I rowsort
SELECT - ( + - col1 ) * - col0 + + 46 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT 15 + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-8702
SELECT 15 + COUNT ( * ) FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ( col0 ) + ( - + 56 ) + CAST( - col1 AS SIGNED ) FROM tab0
----
-122
10
40

skipif mysql # not compatible
query I rowsort label-8703
SELECT ( col0 ) + ( - + 56 ) + CAST ( - col1 AS INTEGER ) FROM tab0
----
-122
10
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT col2 + 27 DIV - col1 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8704
SELECT col2 + 27 / - col1 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - 42 + col2 AS col1 FROM tab2
----
-19
-2
16

query I rowsort
SELECT DISTINCT ( col2 ) + + - 67 + 0 FROM tab0 AS cor0
----
-20
-57
32

onlyif mysql # DIV for integer division: 
query II rowsort label-8707
SELECT ALL + + col0 DIV - col1 AS col2, - col0 FROM tab2 AS cor0
----
-1
-75
0
-46
0
-64

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL + + col0 / - col1 AS col2, - col0 FROM tab2 AS cor0
----
-1
-75
0
-46
0
-64

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 AS cor0 WHERE NOT NULL >= 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * - 92 + 33 col0, 71 FROM tab2 AS cor0
----
-2083
71
-3647
71
-5303
71

query II rowsort
SELECT DISTINCT + col2 AS col1, 17 AS col0 FROM tab2 AS cor0
----
23
17
40
17
58
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8711
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + - CAST( - ( col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8711
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + - CAST ( - ( col0 ) AS INTEGER )
----

query II rowsort
SELECT ALL + 22 * - ( + col0 ) AS col0, col0 AS col2 FROM tab1 cor0
----
-1122
51
-1870
85
-2002
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT ALL - - col2 DIV + 61 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - - col2 / + 61 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL + + MAX( ALL - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + + MAX ( ALL - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT DISTINCT 25 DIV + + ( col1 ) FROM tab0 AS cor0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT 25 / + + ( col1 ) FROM tab0 AS cor0
----
0
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - - COUNT( - + col0 ) + + AVG ( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 51 * - + 75 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT - - COUNT ( - + col0 ) + + AVG ( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 51 * - + 75 IS NOT NULL
----
NULL

query II rowsort
SELECT - ( col0 ) AS col2, col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col0 FROM tab0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8719
SELECT col0 + col2 col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8719
SELECT col0 + col2 col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
144
NULL
147
NULL
159
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT ( - - col0 ) + - - 89 + + - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT ( - - col0 ) + - - 89 + + - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + ( - col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL - COUNT( * ) + + - 32 + - - 47 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - COUNT ( * ) + + - 32 + - - 47 FROM tab1
----
12

query II rowsort
SELECT DISTINCT - 8 + - 45 AS col0, + ( - 23 ) + + col2 - + col0 AS col1 FROM tab1
----
-53
-46
-53
-49
-53
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - 4 / - col2 <> NULL
----

query I rowsort
SELECT - + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 86 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 65 * + ( - col1 ) FROM tab0
----
-1365
-5265
-65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 97 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 - - + col1 * - col1 + 77 FROM tab1
----
-170
-2223
-33

query III rowsort
SELECT * FROM tab1 WHERE + col2 * 92 = + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT + COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IN ( - 39, + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-8731
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IN ( - 39, + 14 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab1 AS cor0 WHERE 78 + + 50 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT - - 28 + + COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT - - 28 + + COUNT ( * ) FROM tab0 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT - 20 + + - SUM( - 18 ) col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8734
SELECT - 20 + + - SUM ( - 18 ) col2 FROM tab2 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT + COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 - - + 13 AS col0 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT col2 * + 21 AS col0 FROM tab0
----
2079
210
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT ALL 61 FROM tab2 WHERE NOT ( 28 ) * + - 9 * - CAST( NULL AS SIGNED ) NOT BETWEEN - col1 * col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL 61 FROM tab2 WHERE NOT ( 28 ) * + - 9 * - CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 * col2 AND NULL
----

query I rowsort
SELECT col2 * - 43 AS col2 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT ALL 5 * + col2 * - col1 AS col1 FROM tab2
----
-15400
-19430
-5865

query II rowsort
SELECT ALL col2, 39 FROM tab1
----
59
39
68
39
96
39

query I rowsort
SELECT ALL - 75 * + - col2 AS col2 FROM tab0
----
3525
7425
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8745
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8745
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + 52 * - col2 NOT IN ( + ( - - col1 ), 59 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT - MAX( DISTINCT CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8747
SELECT - MAX ( DISTINCT CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT SUM( ALL - - 67 ) FROM tab0 cor0
----
201

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT SUM ( ALL - - 67 ) FROM tab0 cor0
----
201

query I rowsort
SELECT DISTINCT - 73 * + col1 AS col0 FROM tab1 AS cor0
----
-1022
-3431
-365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT ALL CAST( NULL AS SIGNED ) * - col1 + - 5 / - 73 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 + - 5 / - 73 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT SUM( + - 74 ) AS col0 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8751
SELECT SUM ( + - 74 ) AS col0 FROM tab2 AS cor0
----
-222

query I rowsort
SELECT - + col1 * + 29 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL - - COUNT( - + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - - COUNT ( - + col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8754
SELECT ALL - 92 AS col2, CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8754
SELECT ALL - 92 AS col2, CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 * col1 * + col0 col1 FROM tab2 cor0
----
-128128
-130650
-60996

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT DISTINCT + 8, MAX( ALL col1 ) AS col2 FROM tab0
----
8
81

skipif mysql # not compatible
query II rowsort label-8756
SELECT DISTINCT + 8, MAX ( ALL col1 ) AS col2 FROM tab0
----
8
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - SUM( ALL col1 ) * - COUNT( * ) FROM tab2 WHERE NOT NULL <> ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT - SUM ( ALL col1 ) * - COUNT ( * ) FROM tab2 WHERE NOT NULL <> ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL SUM( ALL + 81 ) AS col2 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL SUM ( ALL + 81 ) AS col2 FROM tab2
----
243

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 > - 27
----

query I rowsort
SELECT ALL col1 * + ( - 35 ) + + - col2 * - - col1 FROM tab0
----
-134
-6642
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT DISTINCT - AVG ( ALL - - 63 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - AVG ( ALL - - 63 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ( + col2 ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + 43
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - COUNT( * ) + - 8 AS col2 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8764
SELECT - COUNT ( * ) + - 8 AS col2 FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8765
SELECT ALL COUNT( * ) + + MAX( DISTINCT + - ( - col2 ) ), + 59 col2 FROM tab1 AS cor0
----
99
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8765
SELECT ALL COUNT ( * ) + + MAX ( DISTINCT + - ( - col2 ) ), + 59 col2 FROM tab1 AS cor0
----
99
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 / col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT DISTINCT + 51 * - + COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT + 51 * - + COUNT ( * ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT + + 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8769
SELECT DISTINCT + col1 AS col2, + CAST( ( col2 ) AS SIGNED ) * - col0 FROM tab1 WHERE NOT + - col2 >= NULL
----

skipif mysql # not compatible
query II rowsort label-8769
SELECT DISTINCT + col1 AS col2, + CAST ( ( col2 ) AS INTEGER ) * - col0 FROM tab1 WHERE NOT + - col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2 - - - 72, col2 FROM tab0 AS cor0
----
-25
47
-62
10
27
99

query II rowsort
SELECT - col1 - + col2, + col2 FROM tab1 AS cor0
----
-110
96
-115
68
-64
59

query I rowsort
SELECT 15 - - + col1 FROM tab0 cor0
----
16
36
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT col0 - col2 * col2 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-2275
-34
-9705

skipif mysql # not compatible
query I rowsort label-8774
SELECT col0 - col2 * col2 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-2275
-34
-9705

onlyif mysql # DIV for integer division: 
query II rowsort label-8775
SELECT ALL col1 + + col2 + - - 26 * - ( col1 ), + col1 DIV - 70 AS col2 FROM tab0 cor0
----
-1978
-1
-515
0
74
0

skipif mysql # not compatible
query II rowsort label-8775
SELECT ALL col1 + + col2 + - - 26 * - ( col1 ), + col1 / - 70 AS col2 FROM tab0 cor0
----
-1978
-1
-515
0
74
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - COUNT( * ) FROM tab1 WHERE NOT - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8776
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - col1 = NULL
----
0

query II rowsort
SELECT DISTINCT + col0, ( + - 73 ) FROM tab1
----
51
-73
85
-73
91
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT ALL ( + 29 ) AS col2 FROM tab2 WHERE ( NULL = - 16 * col2 * 51 + ( - col2 ) ) OR NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL ( + 29 ) AS col2 FROM tab2 WHERE ( NULL = - 16 * col2 * 51 + ( - col2 ) ) OR NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ( + + 75 ) AS col0 FROM tab0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL COUNT( - ( - col0 ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8780
SELECT ALL COUNT ( - ( - col0 ) ) col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + 9 * + col1 * col2 col2 FROM tab0 AS cor0
----
1678887
43659
92610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col2 col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT - - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT 40 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT SUM( DISTINCT - 30 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8785
SELECT SUM ( DISTINCT - 30 ) FROM tab0
----
-30

query I rowsort
SELECT col2 * + col0 * - col2 * - col2 AS col1 FROM tab2 cor0
----
14633400
4096000
559682

query I rowsort
SELECT DISTINCT + 28 * col1 * + - 54 AS col0 FROM tab2 AS cor0
----
-101304
-116424
-77112

query II rowsort
SELECT ALL + col0 AS col1, col1 + - 16 FROM tab2 AS cor0
----
46
35
64
61
75
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 56 * - + col2 col1 FROM tab1 AS cor0
----
274176
280840
346528

query III rowsort
SELECT * FROM tab0 WHERE ( 69 ) IS NOT NULL AND NOT ( + col0 * + 26 + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT ALL - 67 DIV col1 FROM tab0
----
-3
-67
0

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - 67 / col1 FROM tab0
----
-3
-67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - 21 + + COUNT( * ) col1 FROM tab1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8792
SELECT - 21 + + COUNT ( * ) col1 FROM tab1
----
-18

query I rowsort
SELECT + 87 * - - col2 + + col0 FROM tab2
----
2047
3544
5121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT CAST( NULL AS SIGNED ) + + 25 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT CAST ( NULL AS INTEGER ) + + 25 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + MIN( ALL col2 ) + - COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8795
SELECT + MIN ( ALL col2 ) + - COUNT ( * ) FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT MIN( ALL - + col2 ) + + 85 AS col0 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-8796
SELECT MIN ( ALL - + col2 ) + + 85 AS col0 FROM tab0
----
-14

query I rowsort
SELECT ALL 7 * - ( - col2 ) FROM tab2
----
161
280
406

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT - col0 DIV + 61 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT - col0 / + 61 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT + COUNT( - 86 ) + - - 15 - + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + COUNT ( - 86 ) + - - 15 - + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE + 97 + 66 - col1 * + 0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE + 97 + 66 - col1 * + 0 IS NOT NULL
----
3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> - 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * col2 * - col0 + - CAST( ( - + 91 ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * col2 * - col0 + - CAST ( ( - + 91 ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0, - col0 AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ( - + 8 ) AS col1 FROM tab0 cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - - MIN( - - 22 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8806
SELECT - - MIN ( - - 22 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT + 0 * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + 0 * COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 * col0 * + 41 * + + col1 + - ( - col2 ) FROM tab0 AS cor0
----
2341352
393822
749080

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT + 23 * 74 DIV + 59 FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-8809
SELECT + 23 * 74 / + 59 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT - + MIN( col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - + MIN ( col0 ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8811
SELECT - MAX( 26 ) DIV 88 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT - MAX ( 26 ) / 88 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL col2 AS col1, col1 * + ( - - col2 ) FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT DISTINCT - + col1 * + col2 FROM tab2 WHERE + + col2 IS NULL
----

query I rowsort
SELECT col2 * - 88 * - col2 FROM tab2
----
140800
296032
46552

query I rowsort
SELECT - + 12 AS col0 FROM tab0 cor0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 58 NOT BETWEEN + col0 + 74 + + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL + 50 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL + 50 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
47

query I rowsort
SELECT - ( col1 ) * + col0 + - + col0 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT + 31 FROM tab1 AS cor0 WHERE ( NULL ) <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ALL + - 47 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL + - 47 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT ALL - - col1 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - - col1 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT - col2 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT - col2 IS NOT NULL ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col2 FROM tab0 cor0
----
16
16
16

query I rowsort
SELECT ALL - col2 * col1 * 57 AS col2 FROM tab2
----
-175560
-221502
-66861

query I rowsort
SELECT 33 * - 25 + - + col0 AS col0 FROM tab0
----
-840
-912
-922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT + col1 * CAST( NULL AS SIGNED ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT + col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL - COUNT( DISTINCT + col2 ) * + 80 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - COUNT ( DISTINCT + col2 ) * + 80 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col2 - col0 * + col0 * + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT ALL 35 DIV + 81 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL 35 / + 81 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT - - ( + CAST( + + 43 AS SIGNED ) ) FROM tab2 WHERE 17 = - col2
----

skipif mysql # not compatible
query I rowsort label-8830
SELECT - - ( + CAST ( + + 43 AS INTEGER ) ) FROM tab2 WHERE 17 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT COUNT( * ) * - - MIN( - col0 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-8831
SELECT COUNT ( * ) * - - MIN ( - col0 ) FROM tab2 AS cor0
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8832
SELECT DISTINCT - COUNT( * ) DIV + COUNT( - col0 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - COUNT ( * ) / + COUNT ( - col0 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( - col0 ) + + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + - 72 - + + 9 / - col2 + + col1 >= - col1 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + - 72 - + + 9 / - col2 + + col1 >= - col1 / - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8835
SELECT + 53 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
53
NULL
53
NULL
53
NULL

skipif mysql # not compatible
query II rowsort label-8835
SELECT + 53 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
53
NULL
53
NULL
53
NULL

query I rowsort
SELECT ( - + 47 ) FROM tab1
----
-47
-47
-47

query I rowsort
SELECT DISTINCT ( 68 ) FROM tab2 WHERE col2 * - col0 + - col1 IS NULL
----

query II rowsort
SELECT + col1, 0 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT - 8 * - ( 35 ) FROM tab0
----
280
280
280

query I rowsort
SELECT ALL ( + ( + - col0 ) ) * - ( - - 29 ) AS col0 FROM tab0
----
2523
2813
435

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8841
SELECT DISTINCT - col1 + - col1 + - 41 * - CAST( NULL AS SIGNED ) AS col1, col0 + + + col2 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

skipif mysql # not compatible
query II rowsort label-8841
SELECT DISTINCT - col1 + - col1 + - 41 * - CAST ( NULL AS INTEGER ) AS col1, col0 + + + col2 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

query I rowsort
SELECT DISTINCT - - 12 FROM tab2 AS cor0 WHERE NOT - col1 * col2 <> + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8843
SELECT + CAST( NULL AS DECIMAL ) * 1 + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT + CAST ( NULL AS REAL ) * 1 + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL COUNT( DISTINCT - col1 ) - - - 79 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL COUNT ( DISTINCT - col1 ) - - - 79 FROM tab1
----
-76

query I rowsort
SELECT ALL - ( 38 ) * + col0 * + + col0 AS col2 FROM tab0
----
-287622
-357542
-8550

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT ALL + COUNT( * ) + 95 + - - 50 AS col2, 28 FROM tab2
----
148
28

skipif mysql # not compatible
query II rowsort label-8846
SELECT ALL + COUNT ( * ) + 95 + - - 50 AS col2, 28 FROM tab2
----
148
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND - + 84 + + col2 - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - col2 / + 75 / - ( - col2 ) - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT + + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT - 67 - - - 10 DIV - 58 FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-8850
SELECT - 67 - - - 10 / - 58 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + + col0 + - + 51 FROM tab2 AS cor0
----
-5
13
24

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - col0 - col1 AS col1 FROM tab2 WHERE NOT ( col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT + SUM( ALL - + 49 ) AS col2 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + SUM ( ALL - + 49 ) AS col2 FROM tab2 AS cor0
----
-147

query I rowsort
SELECT + col1 * 8 + + - col2 - 24 * + + col0 FROM tab0 AS cor0
----
-1930
-2419
241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8857
SELECT CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

query II rowsort
SELECT ALL - col0 * + col2, + col0 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 - + ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL - col2, - col1 AS col2 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT + - CAST( NULL AS SIGNED ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT + - CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT + COUNT( * ), 96 AS col1 FROM tab2 cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-8862
SELECT + COUNT ( * ), 96 AS col1 FROM tab2 cor0
----
3
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8863
SELECT + - ( 28 ) AS col1, ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

skipif mysql # not compatible
query II rowsort label-8863
SELECT + - ( 28 ) AS col1, ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

query I rowsort
SELECT DISTINCT - 38 * + col0 FROM tab1
----
-1938
-3230
-3458

query II rowsort
SELECT ( + col2 ) * + + col2 * + 47 * - 39 + - ( + col1 ) AS col2, - col2 + - 63 * - col1 AS col1 FROM tab2
----
-2932877
4811
-6166279
4163
-969708
3190

query I rowsort
SELECT ALL - 97 * + AVG ( DISTINCT 38 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 col0 FROM tab2 AS cor0
----
53

query I rowsort
SELECT + + ( - 14 ) + + - col0 FROM tab0 cor0
----
-101
-111
-29

query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT MIN( + + 65 ) AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8870
SELECT MIN ( + + 65 ) AS col2 FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT - + COUNT( * ) - - COUNT( ALL ( col1 ) ) + MAX( + + ( - col1 ) ) * + SUM( ALL + 77 ) * 3 FROM tab0 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - + COUNT ( * ) - - COUNT ( ALL ( col1 ) ) + MAX ( + + ( - col1 ) ) * + SUM ( ALL + 77 ) * 3 FROM tab0 AS cor0
----
-693

query I rowsort
SELECT ALL 14 + - + col0 AS col0 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8873
SELECT 68 AS col2, + col2 * col0 + CAST( NULL AS SIGNED ) / - ( - col0 ) - ( col0 ) AS col2 FROM tab1 AS cor0
----
68
NULL
68
NULL
68
NULL

skipif mysql # not compatible
query II rowsort label-8873
SELECT 68 AS col2, + col2 * col0 + CAST ( NULL AS INTEGER ) / - ( - col0 ) - ( col0 ) AS col2 FROM tab1 AS cor0
----
68
NULL
68
NULL
68
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8874
SELECT ALL CAST( NULL AS SIGNED ) - + MAX( ALL col2 ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8874
SELECT ALL CAST ( NULL AS INTEGER ) - + MAX ( ALL col2 ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT - SUM( ALL col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT - SUM ( ALL col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT 23 - + + COUNT( * ) * - MIN( DISTINCT col0 ) FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT 23 - + + COUNT ( * ) * - MIN ( DISTINCT col0 ) FROM tab1
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8877
SELECT DISTINCT - CAST( + col0 AS SIGNED ), - col2 * + 81 + 48 + + col2 AS col1 FROM tab1
----
-51
-7632
-85
-4672
-91
-5392

skipif mysql # not compatible
query II rowsort label-8877
SELECT DISTINCT - CAST ( + col0 AS INTEGER ), - col2 * + 81 + 48 + + col2 AS col1 FROM tab1
----
-51
-7632
-85
-4672
-91
-5392

query II rowsort
SELECT - 78 + - - ( + ( col0 ) ), + col1 + + col2 AS col1 FROM tab2
----
-14
117
-3
125
-32
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL - SUM( ALL - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - SUM ( ALL - col0 ) FROM tab1
----
227

query I rowsort
SELECT + 78 + - + 55 AS col2 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8881
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) IS NULL ) )
----
0

query I rowsort
SELECT 32 * - col2 - col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE + 0 IS NOT NULL
----
-3167
121
5057

query I rowsort
SELECT DISTINCT col1 + - 66 FROM tab2 AS cor0
----
-15
1
11

query I rowsort
SELECT DISTINCT ( 92 ) FROM tab0 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL MAX( col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL MAX ( col2 ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL - 12 * + COUNT( 12 ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - 12 * + COUNT ( 12 ) AS col2 FROM tab2
----
-36

query I rowsort
SELECT DISTINCT - 76 * + + 81 AS col2 FROM tab1 AS cor0
----
-6156

query I rowsort
SELECT - col1 / - + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 38 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL - col2 * col0 - - col2 + col1 AS col0 FROM tab0 AS cor0
----
-577
-839
-9503

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, 97 + - col0 col2 FROM tab2
----
46
51
64
33
75
22

query II rowsort
SELECT 97 * - + 91, 30 + + - col2 AS col2 FROM tab0
----
-8827
-17
-8827
-69
-8827
20

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( + 4 ) + - - col1 >= NULL
----

query I rowsort
SELECT col0 + - - ( + - col0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8897
SELECT DISTINCT - 94, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-8897
SELECT DISTINCT - 94, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL COUNT( * ) + 9 + 70 AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL COUNT ( * ) + 9 + 70 AS col1 FROM tab0
----
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + 74, col0, - 64 )
----

query I rowsort
SELECT 35 * + ( - - ( + 46 ) ) FROM tab1
----
1610
1610
1610

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT ALL + col0 DIV - col1 + - + col2 FROM tab0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + col0 / - col1 + - + col2 FROM tab0
----
-14
-196
-47

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT + col1 AS col0, + col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL - 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT CAST( NULL AS SIGNED ) * 18 / + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 18 / + col1 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT - - 37, + 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 8a1d4376be5f4005e569b08c64af5e11

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + MIN( ALL col1 ) + + 25 AS col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-8907
SELECT + MIN ( ALL col1 ) + + 25 AS col0 FROM tab2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8908
SELECT ALL - MAX( ALL + 23 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT + col1 / + 14 + + col2 - CAST( NULL AS SIGNED ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - MAX ( ALL + 23 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT + col1 / + 14 + + col2 - CAST ( NULL AS INTEGER ) IS NULL )
----
NULL

query I rowsort
SELECT - + 28 * + col1 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
-5474
-61805
-695

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT ALL MIN( DISTINCT + + col1 ) AS col2, - 45 FROM tab0 AS cor0
----
1
-45

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL MIN ( DISTINCT + + col1 ) AS col2, - 45 FROM tab0 AS cor0
----
1
-45

query III rowsort
SELECT * FROM tab1 WHERE - 95 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col1 FROM tab1
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 86 col1 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT - col2 * ( + col0 ) AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT + MIN( - + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + MIN ( - + col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + - ( 75 ) AS col1 FROM tab0 AS cor0
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 81 + - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8919
SELECT * FROM tab0 WHERE NOT + - col2 - - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8919
SELECT * FROM tab0 WHERE NOT + - col2 - - CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT - ( + + col1 ) DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8920
SELECT - ( + + col1 ) / + col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8921
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 col1 FROM tab2 cor0
----
54
54
54

query I rowsort
SELECT + 81 * - - col2 AS col1 FROM tab0 cor0
----
3807
8019
810

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT SUM( ALL 29 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT SUM ( ALL 29 ) FROM tab1
----
87

query I rowsort
SELECT DISTINCT 12 * col2 AS col1 FROM tab0
----
1188
120
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT DISTINCT 78 * - CAST( - 57 AS SIGNED ) * + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
102258
177840
257868

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT 78 * - CAST ( - 57 AS INTEGER ) * + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
102258
177840
257868

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8927
SELECT + CAST( - - AVG ( DISTINCT ( + col2 ) ) AS DECIMAL ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT + CAST ( - - AVG ( DISTINCT ( + col2 ) ) AS REAL ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 5 + + + 84 AS col0 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT - 69 * ( MIN( DISTINCT + col1 ) ) + + - 39 FROM tab0 AS cor0 WHERE + col0 < col1
----
-5628

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - 69 * ( MIN ( DISTINCT + col1 ) ) + + - 39 FROM tab0 AS cor0 WHERE + col0 < col1
----
-5628

query I rowsort
SELECT DISTINCT + ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT DISTINCT + 39 DIV - + col1 AS col0 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + 39 / - + col1 AS col0 FROM tab1
----
-2
-7
0

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col0 * col0 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT - COUNT( * ) DIV 86 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8933
SELECT - COUNT ( * ) / 86 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( - - ( - - col1 ) ) AS col2 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL + col0 + + - 71 + + - CAST( - - 9 AS SIGNED ) * + col1 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
4750
4984
5785

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + col0 + + - 71 + + - CAST ( - - 9 AS INTEGER ) * + col1 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
4750
4984
5785

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8936
SELECT - - COUNT( * ) DIV - COUNT( * ) - - 93 * - COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-280
-3

skipif mysql # not compatible
query II rowsort label-8936
SELECT - - COUNT ( * ) / - COUNT ( * ) - - 93 * - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-280
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT - col2 - - ( - - col0 ) DIV - col2 AS col2 FROM tab0 cor0
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-8937
SELECT - col2 - - ( - - col0 ) / - col2 AS col2 FROM tab0 cor0
----
-18
-47
-99

query I rowsort
SELECT DISTINCT + + col2 - - 68 FROM tab2 AS cor0
----
108
126
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT ALL - + col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - + col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 83 + - + col2 AS col1 FROM tab2 AS cor0
----
25
43
60

query I rowsort
SELECT ALL - col0 - + 74 * - 35 AS col2 FROM tab1 cor0
----
2499
2505
2539

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT ( + + SUM( DISTINCT + 75 ) ) FROM tab0 WHERE ( NOT ( NOT 6 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT ( + + SUM ( DISTINCT + 75 ) ) FROM tab0 WHERE ( NOT ( NOT 6 IS NULL ) )
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + 51 * ( + 63 ) - - + 6 * - col2 FROM tab0
----
-279591
-312255
-48477

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - ( + + COUNT( * ) ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8944
SELECT - ( + + COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT ALL - col1 * col0 * col2 + + col0 + - - ( - - CAST( NULL AS SIGNED ) ) + - 99 AS col1 FROM tab2 cor0 WHERE NOT 97 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL - col1 * col0 * col2 + + col0 + - - ( - - CAST ( NULL AS INTEGER ) ) + - 99 AS col1 FROM tab2 cor0 WHERE NOT 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8946
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + 61 / + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8946
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + 61 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < - 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL - col2 * col2 * + ( - CAST( - 55 AS SIGNED ) ) FROM tab1
----
-191455
-254320
-506880

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - col2 * col2 * + ( - CAST ( - 55 AS INTEGER ) ) FROM tab1
----
-191455
-254320
-506880

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - COUNT( * ) * + MAX( + 32 ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2592

skipif mysql # not compatible
query I rowsort label-8949
SELECT - COUNT ( * ) * + MAX ( + 32 ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2592

query I rowsort
SELECT DISTINCT + - 60 AS col2 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + ( 51 ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT 34 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL MIN( - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL MIN ( - col2 ) FROM tab1 cor0
----
-96

query II rowsort
SELECT DISTINCT - col1 AS col2, 79 FROM tab0 AS cor0
----
-1
79
-21
79
-81
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT + 60 + - + col2 + + col0 * CAST( NULL AS SIGNED ) * - 48 * 88 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT + 60 + - + col2 + + col0 * CAST ( NULL AS INTEGER ) * - 48 * 88 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + COUNT( * ) * - - COUNT( * ) + + 19 AS col0 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8956
SELECT + COUNT ( * ) * - - COUNT ( * ) + + 19 AS col0 FROM tab2 AS cor0
----
28

query I rowsort
SELECT 78 + + col0 + - col1 AS col2 FROM tab0
----
12
144
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL + 89 * MAX( DISTINCT col1 ) AS col2 FROM tab2
----
6853

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + 89 * MAX ( DISTINCT col1 ) AS col2 FROM tab2
----
6853

query II rowsort
SELECT 86 + - + col2 * col0 + - col0 AS col0, 88 * - col0 FROM tab2
----
-1018
-4048
-2538
-5632
-4339
-6600

query I rowsort
SELECT AVG ( ALL 13 ) / - AVG ( - col1 ) FROM tab1 WHERE NULL NOT BETWEEN col1 AND - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT + COUNT( * ) * - 95 AS col2 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + COUNT ( * ) * - 95 AS col2 FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ( + + MAX( ALL 96 ) ) * + ( + + COUNT( * ) ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-8962
SELECT ( + + MAX ( ALL 96 ) ) * + ( + + COUNT ( * ) ) FROM tab2
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-8963
SELECT + ( + - 97 ) AS col2, - ( + COUNT( * ) ) AS col1 FROM tab1
----
-97
-3

skipif mysql # not compatible
query II rowsort label-8963
SELECT + ( + - 97 ) AS col2, - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-97
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL COUNT( * ) + - - ( + + 67 ) AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL COUNT ( * ) + - - ( + + 67 ) AS col0 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - MAX( ALL - 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8965
SELECT - MAX ( ALL - 55 ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL + 79 * + col0 + + 4 FROM tab2 AS cor0
----
3638
5060
5929

query I rowsort
SELECT + col1 * + - col2 FROM tab0 AS cor0 WHERE ( col0 * + 79 ) IS NULL
----

query I rowsort
SELECT ALL 94 + - col1 AS col0 FROM tab0
----
13
73
93

query I rowsort
SELECT DISTINCT - col0 + - - col0 - ( - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 36 + + + col2 FROM tab1 AS cor0
----
104
132
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT + + COUNT( * ) + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT + + COUNT ( * ) + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + - 39 * - col0 + + + 92 AS col1 FROM tab1 AS cor0
----
2081
3407
3641

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT + ( + MIN( ALL - 45 ) ) + + 52 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + ( + MIN ( ALL - 45 ) ) + + 52 FROM tab0 AS cor0
----
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 24 ) + - col2 IS NULL
----

query I rowsort
SELECT ALL - col1 - - + col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - 6 + col2 AS col2 FROM tab2 AS cor0
----
17
34
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8977
SELECT col1 * - 78, col2 - + 85 + - col1 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - - 83 IS NOT NULL
----
-1638
-96
-6318
-119
-78
13

skipif mysql # not compatible
query II rowsort label-8977
SELECT col1 * - 78, col2 - + 85 + - col1 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - - 83 IS NOT NULL
----
-1638
-96
-6318
-119
-78
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL SUM( 85 ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL SUM ( 85 ) FROM tab0
----
255

query I rowsort
SELECT 29 AS col1 FROM tab0 WHERE NOT - col1 * col0 IS NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT ALL 17 AS col2, + COUNT( * ) FROM tab0
----
17
3

skipif mysql # not compatible
query II rowsort label-8980
SELECT ALL 17 AS col2, + COUNT ( * ) FROM tab0
----
17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT - col2 DIV + - ( 72 ) col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8981
SELECT - col2 / + - ( 72 ) col1 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT DISTINCT + col1 DIV + col0 + + + col2 FROM tab2 AS cor0
----
24
41
58

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + col1 / + col0 + + + col2 FROM tab2 AS cor0
----
24
41
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL > - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 67 * + col1 col2 FROM tab1 AS cor0
----
-28475
-286559
-47838

query I rowsort
SELECT - col1 * - col0 + + 30 * 62 FROM tab0 AS cor0
----
1957
3075
3687

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 29 IS NULL
----

query I rowsort
SELECT + col2 * - 26 AS col1 FROM tab2 cor0
----
-1040
-1508
-598

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 * - - col1 / + col2 + - CAST( NULL AS SIGNED ) = + col2 - + - col2 * - col2 * + 20
----

skipif mysql # not compatible
query III rowsort label-8988
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 * - - col1 / + col2 + - CAST ( NULL AS INTEGER ) = + col2 - + - col2 * - col2 * + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 2 + - - 47 col0, col0 + + col1 AS col2 FROM tab0 AS cor0
----
45
108
45
96
45
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( + - 86 ) + + col2 * - 73 * 85 IS NULL
----

query I rowsort
SELECT 99 * - + 24 FROM tab0, tab0 AS cor0
----
9 values hashing to aa215a2926da8afb0c8e6fabb8b46ab9

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT ALL + 71 + col0 + + + col0 DIV + + 32 AS col2 FROM tab0
----
160
171
86

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + 71 + col0 + + + col0 / + + 32 AS col2 FROM tab0
----
160
171
86

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8994
SELECT - col2 + + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT - col2 + + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + 79 * COUNT( * ) + - 28 FROM tab1
----
209

skipif mysql # not compatible
query I rowsort label-8995
SELECT + 79 * COUNT ( * ) + - 28 FROM tab1
----
209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT col0 * col0 IS NULL
----
-15
-87
-97

query I rowsort
SELECT col1 - + ( col0 ) * + col0 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ( - COUNT( * ) ) - + 72 col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT ( - COUNT ( * ) ) - + 72 col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT MAX( 65 ) DIV COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-8999
SELECT MAX ( 65 ) / COUNT ( * ) FROM tab0
----
21

query I rowsort
SELECT ALL - col1 - + col0 * col0 AS col1 FROM tab2
----
-2167
-4173
-5692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT 24 + CAST( 35 + + 79 AS SIGNED ) FROM tab1 WHERE 28 < col1 / col1
----

skipif mysql # not compatible
query I rowsort label-9001
SELECT 24 + CAST ( 35 + + 79 AS INTEGER ) FROM tab1 WHERE 28 < col1 / col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT DISTINCT 18 * 58 + + 4 DIV + COUNT( * ) FROM tab1
----
1045

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT 18 * 58 + + 4 / + COUNT ( * ) FROM tab1
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT + 16 * + COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + 16 * + COUNT ( * ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT - COUNT( * ) + - 73 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - COUNT ( * ) + - 73 FROM tab0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT DISTINCT - ( col1 ) + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT - ( col1 ) + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT DISTINCT col0 DIV + ( col0 ) FROM tab1 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT col0 / + ( col0 ) FROM tab1 WHERE NULL IS NULL
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9007
SELECT AVG ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT AVG ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT MIN( 70 ) - - MAX( ALL col1 ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-9008
SELECT MIN ( 70 ) - - MAX ( ALL col1 ) FROM tab2
----
147

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 54 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 AND - col0
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( col1 ) NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 55 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 76 FROM tab0 WHERE NOT + col2 + col2 IS NULL
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 53 - - col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 40 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * 33 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT 33 + + COUNT( * ) FROM tab1 WHERE NOT 66 IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT 33 + + COUNT ( * ) FROM tab1 WHERE NOT 66 IS NOT NULL
----
33

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL + SUM( col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL + SUM ( col0 ) AS col0 FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT ( - col1 ) DIV 73 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT ( - col1 ) / 73 AS col1 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 89 ) IN ( 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL 79 * 29 col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9024
SELECT ALL 79 * 29 col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9025
SELECT 28 DIV CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9025
SELECT 28 / CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab1 cor0 WHERE NOT col2 * - ( col2 ) IS NULL
----
19

query I rowsort
SELECT 30 * - col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL COUNT( * ) FROM tab1 WHERE ( 40 ) BETWEEN + ( + ( col2 ) ) + - col1 AND ( + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( 40 ) BETWEEN + ( + ( col2 ) ) + - col1 AND ( + 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ( + 65 ) * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
585

skipif mysql # not compatible
query I rowsort label-9030
SELECT ( + 65 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT DISTINCT col1 + - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE ( + col2 + col0 ) BETWEEN - col2 AND col0 / col1
----

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT col1 + - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE ( + col2 + col0 ) BETWEEN - col2 AND col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT + 22 * - COUNT( * ) + + 41 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + 22 * - COUNT ( * ) + + 41 FROM tab0 AS cor0
----
-25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( - col2 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - ( col0 ) * col2 + 53
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 11 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL + MAX( - 85 ) col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9037
SELECT ALL + MAX ( - 85 ) col1 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT - col2 * + - col1 + 35 FROM tab2
----
1208
3115
3921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT - MAX( ALL - 16 ) * 24 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT - MAX ( ALL - 16 ) * 24 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT col2 + - col0 DIV col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-9040
SELECT col2 + - col0 / col2 FROM tab2
----
21
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT SUM( + col1 ) * 37 FROM tab0
----
3811

skipif mysql # not compatible
query I rowsort label-9041
SELECT SUM ( + col1 ) * 37 FROM tab0
----
3811

query I rowsort
SELECT + col2 * - - col0 AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 8 <= ( - col0 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE ( col0 + - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT COUNT( * ) * - 55 + COUNT( * ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT COUNT ( * ) * - 55 + COUNT ( * ) FROM tab1
----
-162

query I rowsort
SELECT 27 FROM tab2 WHERE col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL - COUNT( * ) col2 FROM tab1 WHERE NULL = - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9048
SELECT ALL - COUNT ( * ) col2 FROM tab1 WHERE NULL = - col2
----
0

query I rowsort
SELECT ALL ( 7 ) AS col2 FROM tab2
----
7
7
7

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT - 61 * CAST( col0 AS SIGNED ) - col0 AS col1 FROM tab1 AS cor0
----
-3162
-5270
-5642

skipif mysql # not compatible
query I rowsort label-9051
SELECT - 61 * CAST ( col0 AS INTEGER ) - col0 AS col1 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT 6 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> 53 AND NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 + 83 * - 53 FROM tab2 AS cor0
----
-1319
-3226
-513

query I rowsort
SELECT ALL 58 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
58
58
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + - 43 + - col2 = NULL
----

query II rowsort
SELECT - 65 AS col0, + 90 AS col2 FROM tab0 AS cor0
----
-65
90
-65
90
-65
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 86 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 51 + - + 12 BETWEEN col1 AND - col1
----

query I rowsort
SELECT ALL + 78 * + col1 FROM tab2
----
3978
5226
6006

query II rowsort
SELECT ALL col2 * - col1, col0 * col2 AS col2 FROM tab0
----
-210
870
-3807
705
-99
9603

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT + col0 IN ( + col1 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT + col2 DIV - 59 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9063
SELECT + col2 / - 59 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col0 * - 42 AS col2 FROM tab0 cor0
----
3654
4074
630

query I rowsort
SELECT - - 46 * + + 9 FROM tab0 cor0
----
414
414
414

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 67 + + 74 IN ( col0 + 35 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 92 + + - 62 * - 57 * + col2 FROM tab1 AS cor0
----
208414
240220
339172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT 53 DIV + + SUM( + + ( - + col0 ) ) + - - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9068
SELECT 53 / + + SUM ( + + ( - + col0 ) ) + - - COUNT ( * ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT ALL - 67 + + col1 + + + 38 + 50 DIV + col2 FROM tab0
----
-28
-3
53

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - 67 + + col1 + + + 38 + 50 / + col2 FROM tab0
----
-28
-3
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT DISTINCT + CAST( ( + - 76 ) AS SIGNED ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9070
SELECT DISTINCT + CAST ( ( + - 76 ) AS INTEGER ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + 13 ) AS col0 FROM tab0
----
13
13
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL - 6 + - - MIN( DISTINCT - 94 ) / - COUNT( DISTINCT - CAST( NULL AS SIGNED ) * - 74 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL - 6 + - - MIN ( DISTINCT - 94 ) / - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) * - 74 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 70 + + + 37 col1 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL 68 + + 82 AS col2 FROM tab1 AS cor0
----
150
150
150

query II rowsort
SELECT ALL col1 + - col2 + 75 AS col1, + 26 FROM tab0 AS cor0
----
-23
26
109
26
86
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT - - 88 col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9076
SELECT - - 88 col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
88
3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + ( col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 40 + - - col0 AS col2 FROM tab0
----
127
137
55

query I rowsort
SELECT + ( col2 ) + 83 * - - 29 FROM tab2
----
2430
2447
2465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) * + 52 + - COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-9080
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * + 52 + - COUNT ( * ) FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT - COUNT( ALL ( - 54 ) ) FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT - COUNT ( ALL ( - 54 ) ) FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

query I rowsort
SELECT ALL - - col2 + - 94 FROM tab1 AS cor0
----
-26
-35
2

query I rowsort
SELECT ALL + col1 * 1 + - col2 + + 88 FROM tab0 cor0
----
-10
122
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT + 43 DIV - + col2 FROM tab2 AS cor0 WHERE - 94 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT + 43 / - + col2 FROM tab2 AS cor0 WHERE - 94 IS NOT NULL
----
-1
-1
0

query I rowsort
SELECT ALL - + col1 - - col2 * + col2 * - - col1 + col0 FROM tab2 AS cor0
----
123187
225396
26974

query I rowsort
SELECT DISTINCT - 84 - - 84 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 - - col0 FROM tab2 WHERE NOT - 28 + + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - - col1 + + - 4 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - - col1 + + - 4 AND ( NULL )
----
0

query I rowsort
SELECT - - col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT + 69 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT + 69 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT COUNT( * ) - ( + - COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT COUNT ( * ) - ( + - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9092
SELECT DISTINCT col1 AS col0, col1 * - + ( col1 ) DIV + + col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-9092
SELECT DISTINCT col1 AS col0, col1 * - + ( col1 ) / + + col1 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > + 90
----

query II rowsort
SELECT DISTINCT col2 AS col0, 27 * - ( + 47 ) * - + col2 + - + col0 FROM tab0
----
10
12603
47
59628
99
125534

query I rowsort
SELECT DISTINCT 11 * 44 AS col2 FROM tab2
----
484

query I rowsort
SELECT + - 40 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - + col0, 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT COUNT( DISTINCT + 99 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9098
SELECT COUNT ( DISTINCT + 99 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT - MIN( ALL + col1 ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9099
SELECT DISTINCT - MIN ( ALL + col1 ) col1 FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 74 * + 8
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9101
SELECT DISTINCT - 86 DIV - col0 + 29, - col0 AS col2 FROM tab1 AS cor0
----
29
-91
30
-51
30
-85

skipif mysql # not compatible
query II rowsort label-9101
SELECT DISTINCT - 86 / - col0 + 29, - col0 AS col2 FROM tab1 AS cor0
----
29
-91
30
-51
30
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL - - COUNT( 43 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL - - COUNT ( 43 ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 * + col1 col0 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9104
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT + + CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + col1 <> ( + + 15 )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col0 * + ( + 96 ) FROM tab0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT - COUNT( * ) * 29 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT - COUNT ( * ) * 29 FROM tab0
----
-87

query I rowsort
SELECT - 67 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL - + col2 + + 22 - - col0 AS col0 FROM tab1 AS cor0
----
-23
45
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT DISTINCT COUNT( * ) + - + 82 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT COUNT ( * ) + - + 82 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT DISTINCT - col0 + col1 - - - col0 + + + 18 AS col2 FROM tab1 AS cor0
----
-117
-147
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL - - COUNT( + 82 ) - - 97 AS col2 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL - - COUNT ( + 82 ) - - 97 AS col2 FROM tab2 AS cor0
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9113
SELECT + + CAST( NULL AS DECIMAL ) + - 57 - + 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT + + CAST ( NULL AS REAL ) + - 57 - + 10 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col1 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( + col1 + + + 97 + - - col0 + + col1, 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT COUNT( * ) * - 56 col1 FROM tab1
----
-168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9116
SELECT COUNT ( * ) * - 56 col1 FROM tab1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL + COUNT( * ) * + ( - + 6 ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + COUNT ( * ) * + ( - + 6 ) AS col0 FROM tab1
----
-18

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT COUNT( * ) FROM tab0 WHERE + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT COUNT ( * ) FROM tab0 WHERE + - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT DISTINCT - 34 DIV + COUNT( * ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT - 34 / + COUNT ( * ) FROM tab2
----
-11

query I rowsort
SELECT + col2 * - 63 AS col1 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT + - 35 - 81 * + col2 FROM tab0 AS cor0
----
-3842
-8054
-845

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL + 66 + + 74 * - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + 66 + + 74 * - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27 col2, - col2 AS col0 FROM tab0 AS cor0
----
27
-10
27
-47
27
-99

query II rowsort
SELECT col2, + col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL - 29 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - + col0 IS NOT NULL
----

query II rowsort
SELECT - 34 * - col2 * - col0 * - + col1, col2 FROM tab1 cor0
----
2330496
96
852550
59
9888424
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 >= - - 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT ALL + - COUNT( * ) AS col0, 67 AS col1 FROM tab0 AS cor0
----
-3
67

skipif mysql # not compatible
query II rowsort label-9130
SELECT ALL + - COUNT ( * ) AS col0, 67 AS col1 FROM tab0 AS cor0
----
-3
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT DISTINCT + CAST( ( 57 ) AS SIGNED ) col0 FROM tab0 cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9131
SELECT DISTINCT + CAST ( ( 57 ) AS INTEGER ) col0 FROM tab0 cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT COUNT( * ) * - 77 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9132
SELECT COUNT ( * ) * - 77 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT + col2 * + + 38 AS col1 FROM tab0 AS cor0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - MIN( ALL - + ( 98 ) ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9134
SELECT - MIN ( ALL - + ( 98 ) ) AS col0 FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT MIN( 74 ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-9135
SELECT MIN ( 74 ) FROM tab2
----
74

query I rowsort
SELECT DISTINCT + 51 FROM tab2 WHERE ( NOT + col1 NOT BETWEEN - 60 AND - col1 )
----

query II rowsort
SELECT DISTINCT - ( + col1 ), - col1 AS col2 FROM tab0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT DISTINCT - + 52 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + + 71 * + - 2 * - - col2 + 63 AS col2 FROM tab1 AS cor0
----
-13569
-8315
-9593

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT MIN( DISTINCT - col1 ) + + + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9140
SELECT MIN ( DISTINCT - col1 ) + + + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ( col0 ) + - - col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT DISTINCT - - col0 * col0 * - 91 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT - - col0 * col0 * - 91 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 28 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT + 71 DIV + COUNT( ALL + 22 ) AS col0 FROM tab0 AS cor0 WHERE + ( + + col0 ) IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-9144
SELECT + 71 / + COUNT ( ALL + 22 ) AS col0 FROM tab0 AS cor0 WHERE + ( + + col0 ) IS NOT NULL
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - 8 + - + ( + col1 ) BETWEEN + + 81 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9146
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9146
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT SUM( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9147
SELECT SUM ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT ALL + 95 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * col0 + + - col0, col2 * + col1 / + CAST( + 5 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + 95 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * col0 + + - col0, col2 * + col1 / + CAST ( + 5 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + - MIN( - - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9149
SELECT + - MIN ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 81 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - - col1 * - 10 + - + col1 AS col0 FROM tab2 AS cor0
----
-612
-804
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT DISTINCT + 34 * + CAST( NULL AS SIGNED ) + - - col0 - col2 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT + 34 * + CAST ( NULL AS INTEGER ) + - - col0 - col2 AS col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 28 col2 FROM tab0 AS cor0
----
-18
19
71

query I rowsort
SELECT + col1 + 57 FROM tab1
----
104
62
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL CAST( COUNT( ALL - col1 ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL CAST ( COUNT ( ALL - col1 ) AS INTEGER ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col0 * - 56 + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + - 5 AS col2 FROM tab2
----
18
35
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT 19 DIV + col0 + - 28 AS col0 FROM tab2
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-9158
SELECT 19 / + col0 + - 28 AS col0 FROM tab2
----
-28
-28
-28

query III rowsort
SELECT * FROM tab2 WHERE + 48 * - 55 / + + 89 >= - col0 + 90 * + col0 + 7 * col2 + + 23
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( ( - col0 ) )
----

query I rowsort
SELECT ( + - 38 ) FROM tab0 AS cor0
----
-38
-38
-38

query II rowsort
SELECT - col0 AS col1, + 55 AS col1 FROM tab1
----
-51
55
-85
55
-91
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9163
SELECT ALL + CAST( - + ( 59 ) AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-59
9

skipif mysql # not compatible
query II rowsort label-9163
SELECT ALL + CAST ( - + ( 59 ) AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-59
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT - col2 * col0 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT - col2 * col0 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 3 * col2 AS col0 FROM tab2 cor0
----
-120
-174
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT COUNT( * ) * MAX( ALL + - 55 ) col1 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9167
SELECT COUNT ( * ) * MAX ( ALL + - 55 ) col1 FROM tab1 AS cor0
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT ALL - MAX( ALL 34 ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL - MAX ( ALL 34 ) / - + COUNT ( * ) FROM tab1 AS cor0
----
11

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 31 < + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL - MIN( ALL col0 ) AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - MIN ( ALL col0 ) AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-15

query I rowsort
SELECT 88 * + 33 + + 66 AS col2 FROM tab0
----
2970
2970
2970

query I rowsort
SELECT - col2 * - - col1 + col0 AS col1 FROM tab2
----
-1127
-3016
-3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 83 + - col2 col2 FROM tab1
----
1
29
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT DISTINCT - COUNT( * ) AS col0, MIN( + 73 ) * - + 39 + + + ( + - 9 ) AS col1 FROM tab0
----
-3
-2856

skipif mysql # not compatible
query II rowsort label-9175
SELECT DISTINCT - COUNT ( * ) AS col0, MIN ( + 73 ) * - + 39 + + + ( + - 9 ) AS col1 FROM tab0
----
-3
-2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9176
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ( + 81 ) AS col0 FROM tab1
----
81
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9178
SELECT - 62, + MIN( + - 81 ) AS col0 FROM tab2 WHERE NOT NULL > col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-9178
SELECT - 62, + MIN ( + - 81 ) AS col0 FROM tab2 WHERE NOT NULL > col2
----
-62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT - SUM( DISTINCT - 54 ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9179
SELECT - SUM ( DISTINCT - 54 ) AS col0 FROM tab2
----
54

query II rowsort
SELECT DISTINCT - col2 + + col2 AS col2, col2 FROM tab0 cor0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL - + COUNT( * ) + - 93 col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9181
SELECT ALL - + COUNT ( * ) + - 93 col2 FROM tab2 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT + COUNT( * ) * 13 col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9182
SELECT + COUNT ( * ) * 13 col0 FROM tab0 AS cor0
----
39

query II rowsort
SELECT DISTINCT col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL 24 + - COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL 24 + - COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
21

query I rowsort
SELECT DISTINCT - 90 + - 71 AS col0 FROM tab1 AS cor0
----
-161

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 + - ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9187
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + + col2 ) - - - col1 + + + CAST( NULL AS SIGNED ) NOT BETWEEN CAST( + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9187
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + + col2 ) - - - col1 + + + CAST ( NULL AS INTEGER ) NOT BETWEEN CAST ( + col2 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT - MIN( col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + col0 * - 17 + col1 - col2 AS col0 FROM tab0 AS cor0
----
-1468
-1747
-221

query I rowsort
SELECT - col0 * - 22 AS col0 FROM tab1
----
1122
1870
2002

query II rowsort
SELECT ( + col0 ) * - - col0 AS col0, - col0 * + col1 AS col1 FROM tab2
----
2116
-2346
4096
-4928
5625
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL COUNT( * ) * - + 61 * 67 FROM tab0
----
-12261

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL COUNT ( * ) * - + 61 * 67 FROM tab0
----
-12261

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT + 80 * - COUNT( * ) FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + 80 * - COUNT ( * ) FROM tab2 AS cor0
----
-240

query I rowsort
SELECT ALL col1 * - 13 AS col2 FROM tab1 AS cor0
----
-182
-611
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9195
SELECT + CAST( + AVG ( DISTINCT - - CAST( - 30 AS SIGNED ) ) AS SIGNED ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-30
-3

skipif mysql # not compatible
query II rowsort label-9195
SELECT + CAST ( + AVG ( DISTINCT - - CAST ( - 30 AS INTEGER ) ) AS INTEGER ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-30
-3

query I rowsort
SELECT DISTINCT + + 39 AS col1 FROM tab2 AS cor0
----
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 66
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9198
SELECT ALL - col1 DIV + col1 + - 57 + - col1 + - col2 * - CAST( - 60 AS SIGNED ) * + col1 * + col0 + + col0 AS col2 FROM tab2 AS cor0
----
-11827271
-17487050
-3237543

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL - col1 / + col1 + - 57 + - col1 + - col2 * - CAST ( - 60 AS INTEGER ) * + col1 * + col0 + + col0 AS col2 FROM tab2 AS cor0
----
-11827271
-17487050
-3237543

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - MIN( ALL col0 ) * 37 AS col0 FROM tab1 AS cor0
----
-1887

skipif mysql # not compatible
query I rowsort label-9199
SELECT - MIN ( ALL col0 ) * 37 AS col0 FROM tab1 AS cor0
----
-1887

query I rowsort
SELECT col0 * - + 90 + - 47 FROM tab1 AS cor0
----
-4637
-7697
-8237

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 14 / + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 48 * + col2, col0 col1 FROM tab2 cor0
----
1104
46
1920
64
2784
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 49 col2 FROM tab1 AS cor0
----
49
49
49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 83 / - - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9205
SELECT - COUNT( * ) DIV - - 24 + - 30 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
-30

skipif mysql # not compatible
query I rowsort label-9205
SELECT - COUNT ( * ) / - - 24 + - 30 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
-30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + - col0 * - ( + col1 ) + - col0, - 7 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL + 6 * COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + 6 * COUNT ( * ) FROM tab0
----
18

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 32 + - col0 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT ALL - col1 * - + col0 + - col0 DIV 96 * - - col2 DIV col0 * + col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - col1 * - + col0 + - col0 / 96 * - - col2 / col0 * + col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT col0 + - col2 + ( + - col2 ) AS col2 FROM tab1
----
-141
-33
-45

query I rowsort
SELECT + 45 + + col1 + - - col1 * col0 FROM tab0 AS cor0
----
1341
143
1893

query I rowsort
SELECT col1 + + 55 AS col0 FROM tab1 AS cor0
----
102
60
69

query I rowsort
SELECT - 58 + + col2 AS col0 FROM tab0 AS cor0
----
-11
-48
41

query I rowsort
SELECT DISTINCT - col0 * + 72 + - - 34 AS col1 FROM tab2 cor0
----
-3278
-4574
-5366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT + 18 * + col1 * + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
1746
21870
32886

skipif mysql # not compatible
query I rowsort label-9215
SELECT + 18 * + col1 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
1746
21870
32886

query I rowsort
SELECT - - ( - - 33 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - 76 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT 96 FROM tab1 AS cor0 WHERE col1 + + col0 IN ( + + col2 * col1, 61 + - col1 )
----

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL + 39 * + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + + 66 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL + 39 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + + 66 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT + COUNT( * ) - + - 17 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-9221
SELECT + COUNT ( * ) - + - 17 FROM tab2 cor0
----
20

query I rowsort
SELECT ALL + col0 + + 45 AS col0 FROM tab1 AS cor0
----
130
136
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL + - COUNT( * ) - 44 + 73 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + - COUNT ( * ) - 44 + 73 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL col0 - + col1 AS col2 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + col1 - ( + 90 ) FROM tab2 AS cor0
----
-13
-23
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL MIN( - - col2 ) FROM tab2 AS cor0 WHERE 11 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL MIN ( - - col2 ) FROM tab2 AS cor0 WHERE 11 IS NOT NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----
0

query I rowsort
SELECT ALL + ( + col0 ) - - 28 FROM tab2 AS cor0
----
103
74
92

query I rowsort
SELECT + 19 FROM tab0 WHERE NOT NULL < - ( - col1 )
----

query I rowsort
SELECT - col1 / - 3 * col2 FROM tab2 WHERE NOT - - col2 = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT 4 * + MAX( + + col1 ) AS col1 FROM tab2
----
308

skipif mysql # not compatible
query I rowsort label-9231
SELECT 4 * + MAX ( + + col1 ) AS col1 FROM tab2
----
308

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + col1 * + 75
----

query I rowsort
SELECT + col1 * - - 2 FROM tab2
----
102
134
154

query I rowsort
SELECT 52 * + 57 * + col0 AS col0 FROM tab0
----
257868
287508
44460

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - + 45, 83 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + + 79 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 88 ) * - 6 col2 FROM tab1
----
528

query II rowsort
SELECT DISTINCT col2 * + ( + col0 ) AS col0, + col0 AS col2 FROM tab0 AS cor0
----
705
15
870
87
9603
97

query II rowsort
SELECT DISTINCT ( - - col2 ) * + 44 AS col0, - col1 AS col0 FROM tab2
----
1012
-51
1760
-77
2552
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 3 col0 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + - COUNT( DISTINCT - 88 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9241
SELECT + - COUNT ( DISTINCT - 88 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - - col0 + + col1 * + - 61 + + col2 AS col0, col0 FROM tab1 AS cor0
----
-161
85
-2708
91
-707
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, col0 AS col2 FROM tab0 cor0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT DISTINCT + col0 + + col2 DIV - col0 + col2 AS col1 FROM tab0 cor0
----
195
59
97

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + col0 + + col2 / - col0 + col2 AS col1 FROM tab0 cor0
----
195
59
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 95 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 95 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL SUM( - - 1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL SUM ( - - 1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - 48 ) AS col0 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - - col2 ) - col1 col0 FROM tab0
----
-19
195
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 0 BETWEEN NULL AND - col2 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT col2 + + ( CAST( NULL AS SIGNED ) ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT col2 + + ( CAST ( NULL AS INTEGER ) ) + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 2 + + ( - - 1 ) * + + col1 FROM tab1
----
-135
-165
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT DISTINCT + col2 DIV - col1 AS col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + col2 / - col1 AS col0 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT DISTINCT col0 + ( 27 ) FROM tab1
----
112
118
78

query I rowsort
SELECT 79 - - - col2 FROM tab0 AS cor0
----
-20
32
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 >= col2 + - 52
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9258
SELECT - col0 + - - CAST( NULL AS SIGNED ) - - + 11 AS col1, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9258
SELECT - col0 + - - CAST ( NULL AS INTEGER ) - - + 11 AS col1, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - 85 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT + + 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT + ( + - 32 ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9261
SELECT + ( + - 32 ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT DISTINCT 59 + - COUNT( * ) * - + 91 + + 86 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
145

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT 59 + - COUNT ( * ) * - + 91 + + 86 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
145

query II rowsort
SELECT DISTINCT + - 77 AS col1, col2 FROM tab2 AS cor0
----
-77
23
-77
40
-77
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL - MAX( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - MAX ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT ALL + CAST( - COUNT( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + CAST ( - COUNT ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, + 12 * 15 * - 95 * - col0 AS col2 FROM tab2
----
51
786600
67
1282500
77
1094400

query II rowsort
SELECT ALL - col2 AS col1, 2 FROM tab1
----
-59
2
-68
2
-96
2

query I rowsort
SELECT + col1 * - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query II rowsort
SELECT ALL col0 AS col0, - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT + 93 DIV 88 col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9271
SELECT + 93 / 88 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + ( + col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT SUM( ALL - + 15 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9273
SELECT SUM ( ALL - + 15 ) FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + COUNT( * ) * SUM( - 73 ) * COUNT( * ) + MIN( + col2 ) AS col1 FROM tab2 WHERE NOT NULL IN ( + col2 + col0 - - - col1, ( - - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT + COUNT ( * ) * SUM ( - 73 ) * COUNT ( * ) + MIN ( + col2 ) AS col1 FROM tab2 WHERE NOT NULL IN ( + col2 + col0 - - - col1, ( - - col2 ) )
----
NULL

query I rowsort
SELECT ALL col2 * ( + col2 ) + + col2 FROM tab2
----
1640
3422
552

query I rowsort
SELECT ALL + + col0 * - - col1 + + col0 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT + + col2 * 93 * - 73 FROM tab1 AS cor0
----
-400551
-461652
-651744

query I rowsort
SELECT - + col0 * - ( 41 ) AS col1 FROM tab2 AS cor0
----
1886
2624
3075

query I rowsort
SELECT ALL - 41 AS col1 FROM tab0 cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 19 * - + col1 / + + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9281
SELECT DISTINCT + + col2 * + 72 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1656
NULL
2880
NULL
4176
NULL

skipif mysql # not compatible
query II rowsort label-9281
SELECT DISTINCT + + col2 * + 72 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1656
NULL
2880
NULL
4176
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT + 69 / + + CAST( NULL AS SIGNED ) * + col0 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9282
SELECT DISTINCT + 69 / + + CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab0
----
NULL

query I rowsort
SELECT - col2 + + - col1 * + col2 FROM tab0 WHERE - + 6 IN ( + + 54 + + col1 + col0, + ( - 49 ), 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL + COUNT( * ) * + MAX( - col0 ) * - - 35 FROM tab2
----
-4830

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + COUNT ( * ) * + MAX ( - col0 ) * - - 35 FROM tab2
----
-4830

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT + col1 + - col1 * + col2 DIV - col2 AS col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-9285
SELECT + col1 + - col1 * + col2 / - col2 AS col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL - + 73 - + col2 FROM tab1 AS cor0
----
-132
-141
-169

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NULL > - col1 * + 56
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT - CAST( 55 AS SIGNED ) * 45 FROM tab2
----
-2475
-2475
-2475

skipif mysql # not compatible
query I rowsort label-9289
SELECT - CAST ( 55 AS INTEGER ) * 45 FROM tab2
----
-2475
-2475
-2475

query II rowsort
SELECT ( + AVG ( ALL - col2 ) ) * - + 70, + 64 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 61 col0 FROM tab1 cor0
----
-3599
-4148
-5856

onlyif mysql # DIV for integer division: 
query II rowsort label-9292
SELECT col1 DIV + + 13 col1, - col0 AS col2 FROM tab0 AS cor0
----
0
-97
1
-87
6
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9292
SELECT col1 / + + 13 col1, - col0 AS col2 FROM tab0 AS cor0
----
0
-97
1
-87
6
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 87 < + col0
----

query I rowsort
SELECT DISTINCT + 49 FROM tab1 AS cor0 WHERE col0 * + + 68 BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 11 * + - col2 FROM tab2
----
-253
-440
-638

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 49 AND - col1
----

query I rowsort
SELECT ( + 41 ) * 23 AS col0 FROM tab2
----
943
943
943

query II rowsort
SELECT + - col2 * + col0 * - col2 + col0 + + 18, - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 < - 68
----
33168
-47
8805
-10
950812
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 97, - col0 / - + col2, + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9301
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col0, 75 AS col1 FROM tab0
----
3
75

skipif mysql # not compatible
query II rowsort label-9301
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 75 AS col1 FROM tab0
----
3
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN - 91 AND + col0 + - 68 * + ( + 11 )
----

query I rowsort
SELECT ALL 52 + - col2 + - col0 FROM tab2 AS cor0 WHERE NOT ( col1 * + 4 + - - col0 < ( - col2 ) )
----
-17
-52
-81

query I rowsort
SELECT DISTINCT + - col2 + - ( - col1 ) FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL - 21 * - + COUNT( * ) col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9306
SELECT ALL - 21 * - + COUNT ( * ) col1 FROM tab1 AS cor0
----
63

query II rowsort
SELECT DISTINCT col0 * col0 - + col0 + - 8 AS col2, - ( col1 ) * - 43 + + col1 FROM tab0 AS cor0
----
202
3564
7474
924
9304
44

query I rowsort
SELECT DISTINCT - ( + + col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT + MIN( ALL + ( - col1 ) ) DIV + 72 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT + MIN ( ALL + ( - col1 ) ) / + 72 AS col0 FROM tab1
----
0

query I rowsort
SELECT 36 * - col2 AS col2 FROM tab1
----
-2124
-2448
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ALL - col0 DIV ( col1 ) AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - col0 / ( col1 ) AS col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - MAX( + col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9312
SELECT ALL - MAX ( + col2 ) col0 FROM tab1
----
-96

query I rowsort
SELECT + col2 * + 70 * - col0 AS col2 FROM tab2
----
-179200
-304500
-74060

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( - col0 ) * + col0 + + 91 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT ALL 82 + + + col0 DIV 2 AS col1 FROM tab2 cor0
----
105
114
119

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL 82 + + + col0 / 2 AS col1 FROM tab2 cor0
----
105
114
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT - ( 44 ) + COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT - ( 44 ) + COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-35

query I rowsort
SELECT - col2 + - - col0 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + col2 + - 35 * + col1 * + + 43 AS col2 FROM tab2 AS cor0
----
-100777
-115845
-76732

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9319
SELECT DISTINCT + SUM( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT + SUM ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT 76 AS col0, 36 * col2 FROM tab2 AS cor0
----
76
1440
76
2088
76
828

query I rowsort
SELECT DISTINCT - + col2 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 46 * 76 FROM tab2 AS cor0
----
-3496

query II rowsort
SELECT 88 AS col2, + col1 AS col1 FROM tab0 cor0
----
88
1
88
21
88
81

query II rowsort
SELECT - col2 AS col0, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + ( + - 17 ) FROM tab2 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL SUM( col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL SUM ( col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL + 1 * - - col0 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9330
SELECT + + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT + + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT COUNT( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9331
SELECT COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT + col2 + + col2 + 42 FROM tab0 AS cor0
----
136
240
62

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - MIN( DISTINCT - - 80 ) AS col1 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9334
SELECT - MIN ( DISTINCT - - 80 ) AS col1 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT DISTINCT 8 * - - col1 + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-1833
-84
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9336
SELECT ALL + ( - + col1 ) + ( + + col0 ) * + - 37 AS col1, CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-1901
NULL
-3150
NULL
-3414
NULL

skipif mysql # not compatible
query II rowsort label-9336
SELECT ALL + ( - + col1 ) + ( + + col0 ) * + - 37 AS col1, CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-1901
NULL
-3150
NULL
-3414
NULL

query I rowsort
SELECT DISTINCT 79 + 52 AS col0 FROM tab0 AS cor0
----
131

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - - col1 * col2 IS NULL
----

query I rowsort
SELECT - col0 + - + 54 - col1 - col1 + + - ( + col2 ) FROM tab1
----
-208
-229
-307

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9341
SELECT ALL + col2 + + col1 * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + col2 + + col1 * + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 5 + col1 AS col2, col1 + + 75 AS col2 FROM tab0
----
26
96
6
76
86
156

query I rowsort
SELECT ALL col1 + - + 26 * + - col0 AS col0 FROM tab2 AS cor0
----
1247
1741
2017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT CAST( NULL AS SIGNED ) * - 65 + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT CAST ( NULL AS INTEGER ) * - 65 + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT + - 62 + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE ( + + ( col2 ) ) IS NULL
----
-62

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + - 62 + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE ( + + ( col2 ) ) IS NULL
----
-62

query II rowsort
SELECT ALL col0 * + - 60 AS col2, col0 * 28 FROM tab2
----
-2760
1288
-3840
1792
-4500
2100

query I rowsort
SELECT - col0 + - 64 FROM tab1 WHERE NOT NULL BETWEEN col1 * + + col0 AND NULL
----

query I rowsort
SELECT ALL + 49 * + col0 AS col0 FROM tab0 AS cor0
----
4263
4753
735

query I rowsort
SELECT + + 62 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - 68 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT + + 25 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL + - MIN( - 77 ) * - - 92 + 63 col2 FROM tab0 AS cor0
----
7147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9351
SELECT ALL + - MIN ( - 77 ) * - - 92 + 63 col2 FROM tab0 AS cor0
----
7147

onlyif mysql # DIV for integer division: 
query II rowsort label-9352
SELECT DISTINCT col1 DIV + + 17 AS col0, col2 col1 FROM tab2 AS cor0
----
3
23
3
58
4
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9352
SELECT DISTINCT col1 / + + 17 AS col0, col2 col1 FROM tab2 AS cor0
----
3
23
3
58
4
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9353
SELECT DISTINCT + - CAST( - + col0 AS SIGNED ) DIV 92 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + - CAST ( - + col0 AS INTEGER ) / 92 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + - - col1 + ( + col1 ) > NULL
----

query I rowsort
SELECT DISTINCT 73 * - 48 AS col2 FROM tab1
----
-3504

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT + 40 * + SUM( + 56 ) FROM tab1
----
6720

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT + 40 * + SUM ( + 56 ) FROM tab1
----
6720

query I rowsort
SELECT - 6 * - + col1 * + - col0 FROM tab2
----
-14076
-29568
-30150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT + 51 AS col2 FROM tab0 WHERE NOT col1 IN ( + - col0, 25 / - - col0, + 12 + - 22 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9359
SELECT + 51 AS col2 FROM tab0 WHERE NOT col1 IN ( + - col0, 25 / - - col0, + 12 + - 22 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 14 + + col1 AS col0 FROM tab0
----
-13
67
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 IS NOT NULL OR NOT ( + ( + + col2 ) ) / + + 75 = - - ( + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL MAX( - + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL MAX ( - + col0 ) FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9363
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9363
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT ALL - 76 * CAST( NULL AS SIGNED ) * 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL - 76 * CAST ( NULL AS INTEGER ) * 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 19 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
19
-23
19
-40
19
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 91 col1 FROM tab0
----
112
172
92

query I rowsort
SELECT ALL 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + ( + col2 ) + - + col0 + + col1 AS col0 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT + MAX( - + col1 ) + 51 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + MAX ( - + col1 ) + 51 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT ALL 40 DIV + col0 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL 40 / + col0 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL - + CAST( NULL AS SIGNED ) * - 17 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 17 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL + COUNT( * ) - 80 * 32 AS col1 FROM tab2
----
-2557

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + COUNT ( * ) - 80 * 32 AS col1 FROM tab2
----
-2557

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + col0 * - col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 37 ) col1 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT 94 * + ( - 9 ) AS col0 FROM tab1
----
-846
-846
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT - 9 - + - col1 DIV col0 FROM tab0
----
-4
-9
-9

skipif mysql # not compatible
query I rowsort label-9377
SELECT - 9 - + - col1 / col0 FROM tab0
----
-4
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9378
SELECT ALL 45 AS col2, + col0 * + 45 AS col0, - + 50 * + + CAST( + 22 AS SIGNED ) FROM tab2
----
9 values hashing to dbcfa95438cd0ead5ea1b4b52ac28c18

skipif mysql # not compatible
query III rowsort label-9378
SELECT ALL 45 AS col2, + col0 * + 45 AS col0, - + 50 * + + CAST ( + 22 AS INTEGER ) FROM tab2
----
9 values hashing to dbcfa95438cd0ead5ea1b4b52ac28c18

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL - + MAX( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - + MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT - col2, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL ( - 84 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-84
-84
-84

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + + 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
68

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 * + 86 AS col2 FROM tab0
----
-60630
-74820
-825858

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL + ( + + MIN( DISTINCT 34 ) ) AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + ( + + MIN ( DISTINCT 34 ) ) AS col2 FROM tab2
----
34

query I rowsort
SELECT DISTINCT 97 * + - 63 * + - col2 + + col1 FROM tab2 cor0
----
140604
244517
354505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col2 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - + MIN( ALL - col1 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9388
SELECT - + MIN ( ALL - col1 ) AS col1 FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - + 73 * + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
-6643

skipif mysql # not compatible
query I rowsort label-9389
SELECT - + 73 * + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9390
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT + - MIN( DISTINCT 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9391
SELECT + - MIN ( DISTINCT 81 ) FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT - 49 DIV - col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9392
SELECT - 49 / - col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT ALL 71 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
71
71
71

query I rowsort
SELECT 35 * + - 55 AS col1 FROM tab0 AS cor0
----
-1925
-1925
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL MAX( ALL col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL MAX ( ALL col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT ( 48 ) + - 62 DIV + 83 AS col0 FROM tab0 cor0 WHERE NOT col0 > col1 + - - 85
----
48
48

skipif mysql # not compatible
query I rowsort label-9396
SELECT ( 48 ) + - 62 / + 83 AS col0 FROM tab0 cor0 WHERE NOT col0 > col1 + - - 85
----
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col2 * - col2 col1, 80 AS col1 FROM tab0
----
33135
80
8700
80
950697
80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9399
SELECT ALL CAST( NULL AS DECIMAL ) + - 95 * + - col2, + ( 47 ) AS col1 FROM tab2
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL CAST ( NULL AS REAL ) + - 95 * + - col2, + ( 47 ) AS col1 FROM tab2
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT + 55 * - 49 * + - 99 AS col2 FROM tab0
----
266805
266805
266805

query I rowsort
SELECT ALL + col2 + col2 + 81 + - + col0 FROM tab0
----
14
160
182

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT ALL col2 * 83 DIV col2 AS col0 FROM tab1
----
83
83
83

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL col2 * 83 / col2 AS col0 FROM tab1
----
83
83
83

query I rowsort
SELECT col1 + - col2 + col1 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT + 79 + + col0 FROM tab2 AS cor0
----
125
143
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 + + - col1 col1 FROM tab0
----
-117
-177
-97

query I rowsort
SELECT + col1 * + col0 * - + col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT DISTINCT col1 DIV 55 + col2 FROM tab2
----
23
41
59

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT col1 / 55 + col2 FROM tab2
----
23
41
59

query I rowsort
SELECT ALL + col1 - - - col2 * - 27 FROM tab0 AS cor0
----
1350
2674
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - COUNT( * ) - + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT - COUNT ( * ) - + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL + - SUM( col1 ) + - 54 AS col1 FROM tab0 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + - SUM ( col1 ) + - 54 AS col1 FROM tab0 AS cor0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + - - 18 * + 79 FROM tab2 AS cor0
----
1422

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + - - 18 * + 79 FROM tab2 AS cor0
----
1422

query I rowsort
SELECT ALL ( + col1 ) - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 45 - + - col2 FROM tab2 AS cor0
----
-22
-5
13

query I rowsort
SELECT DISTINCT + col2 + col0 - + - col0 AS col2 FROM tab2 AS cor0
----
115
168
208

query I rowsort
SELECT DISTINCT - 5 * col1 AS col2 FROM tab1 cor0
----
-235
-25
-70

query I rowsort
SELECT ALL + 55 - - col0 AS col1 FROM tab1 AS cor0
----
106
140
146

query I rowsort
SELECT DISTINCT - - col0 - + 89 FROM tab1 cor0
----
-38
-4
2

query II rowsort
SELECT 56 + - - col0, + col1 AS col2 FROM tab0
----
143
21
153
1
71
81

query I rowsort
SELECT col1 * ( - + 57 ) FROM tab2
----
-2907
-3819
-4389

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT ( - 94 ) DIV + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9420
SELECT ( - 94 ) / + col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col1 * + - col1 * - - col2 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT 4 DIV + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9422
SELECT 4 / + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 21 * + col0 AS col1 FROM tab0
----
-1827
-2037
-315

query I rowsort
SELECT ALL - + 95 AS col0 FROM tab1 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT + COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9425
SELECT + COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT - 89 + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-80

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT - 89 + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - + COUNT( ALL + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9427
SELECT - + COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - - 95, + 38 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > + col2
----

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col2 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT - 85 * MIN( DISTINCT + - col1 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT - 85 * MIN ( DISTINCT + - col1 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL 25 * SUM( DISTINCT + col1 ) FROM tab2
----
4875

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL 25 * SUM ( DISTINCT + col1 ) FROM tab2
----
4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 54 ) + 8 * col1 + - col0 col1 FROM tab2
----
308
407
498

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT ALL - 64 DIV - + 74 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9433
SELECT ALL - 64 / - + 74 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + 82 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9435
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 86 * + - 95 * - 65 / + - CAST( col0 AS SIGNED ) + - 48 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9435
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 86 * + - 95 * - 65 / + - CAST ( col0 AS INTEGER ) + - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT + MIN( ALL col0 ) FROM tab0 AS cor0 WHERE NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT + MIN ( ALL col0 ) FROM tab0 AS cor0 WHERE NULL <= + col2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = 96 * + - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * + col1 * + col2 * + col0 * - 46 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT DISTINCT + COUNT( * ) + 32 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT + COUNT ( * ) + 32 FROM tab1 AS cor0
----
35

query I rowsort
SELECT ALL 77 + - ( + col0 ) FROM tab1 AS cor0 WHERE col0 + - col2 + - - 46 IS NOT NULL
----
-14
-8
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + col0 <> NULL
----

query I rowsort
SELECT ALL - + 3 AS col1 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9443
SELECT CAST( NULL AS SIGNED ) col1, + 98 * + 56 AS col1 FROM tab0
----
NULL
5488
NULL
5488
NULL
5488

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9443
SELECT CAST ( NULL AS INTEGER ) col1, + 98 * + 56 AS col1 FROM tab0
----
NULL
5488
NULL
5488
NULL
5488

query II rowsort
SELECT 41 AS col0, - col1 FROM tab2
----
41
-51
41
-67
41
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT ALL - + SUM( col0 ) DIV - 89 FROM tab2 WHERE NOT + - col2 * + - col2 IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - + SUM ( col0 ) / - 89 FROM tab2 WHERE NOT + - col2 * + - col2 IS NULL
----
2

query I rowsort
SELECT ALL - col0 * - + 21 FROM tab1
----
1071
1785
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT col0 DIV + 24 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-9447
SELECT col0 / + 24 FROM tab0
----
0
3
4

query I rowsort
SELECT DISTINCT ( - 6 ) FROM tab2 cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 84, + col0 col2 FROM tab0 cor0
----
84
15
84
87
84
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + MAX( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + MAX ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 27 * 26 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT + SUM( + + col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9452
SELECT + SUM ( + + col2 ) AS col0 FROM tab0 cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 63 IS NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * col1 + col2 / 17 < col0
----

query I rowsort
SELECT + col1 + ( + col1 ) FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + COUNT( * ) FROM tab0 WHERE + col0 BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT + COUNT ( * ) FROM tab0 WHERE + col0 BETWEEN + col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT COUNT( * ) - - 36 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT COUNT ( * ) - - 36 FROM tab1
----
39

query I rowsort
SELECT ALL - col2 + - 21 AS col2 FROM tab0
----
-120
-31
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT MAX( 17 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-9460
SELECT MAX ( 17 ) FROM tab1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 + 67 * 91 AS col0 FROM tab1
----
6156
6165
6193

query I rowsort
SELECT + col1 * col1 + - 95 FROM tab1
----
-70
101
2114

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT SUM( DISTINCT - col0 ) + + COUNT( * ) AS col1 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-9464
SELECT SUM ( DISTINCT - col0 ) + + COUNT ( * ) AS col1 FROM tab0
----
-196

query I rowsort
SELECT + col1 - col2 FROM tab0 WHERE col2 IS NOT NULL
----
-98
11
34

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( - 62 + - 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab1 WHERE NOT 61 * 68 - col0 IN ( + 35 )
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT 57 + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT 57 + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
57

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + 63 FROM tab1
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT MIN( col0 ) FROM tab0 WHERE ( NULL ) <= 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT MIN ( col0 ) FROM tab0 WHERE ( NULL ) <= 30
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 = col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 45 AS col1 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT 2 * - col0 AS col1 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT COUNT( 19 ) * 62 AS col1 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-9476
SELECT COUNT ( 19 ) * 62 AS col1 FROM tab1
----
186

query I rowsort
SELECT - col1 * col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - col1 AND ( - 1 * col0 )
----

query I rowsort
SELECT ALL 10 + col0 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT DISTINCT + 20 - col2 * + col1 FROM tab0 AS cor0
----
-190
-3787
-79

query I rowsort
SELECT DISTINCT - col0 + 4 FROM tab1 AS cor0
----
-47
-81
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT DISTINCT - 0 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 <= + col2 + + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - 0 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 <= + col2 + + col0 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( - ( - col2 ) ) - + 65 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 40 FROM tab2 WHERE NOT col2 * - col1 NOT IN ( 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL MIN( ALL col2 ) + - 95 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL MIN ( ALL col2 ) + - 95 FROM tab0 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT - 29 - MIN( 10 ) * MIN( col0 ) FROM tab0 cor0
----
-179

skipif mysql # not compatible
query I rowsort label-9485
SELECT - 29 - MIN ( 10 ) * MIN ( col0 ) FROM tab0 cor0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT + + 53 + COUNT( 34 ) * - 64 AS col1 FROM tab2 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + + 53 + COUNT ( 34 ) * - 64 AS col1 FROM tab2 AS cor0
----
-139

query I rowsort
SELECT + + 59 - 87 AS col0 FROM tab2 AS cor0
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1 * - col2
----

query I rowsort
SELECT ALL + 10 * - col2 FROM tab2 AS cor0
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT DISTINCT + 20 + COUNT( * ) * ( - 78 ) AS col2 FROM tab1 AS cor0 WHERE - col2 * + col0 > - ( - col0 ) * col2
----
20

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT + 20 + COUNT ( * ) * ( - 78 ) AS col2 FROM tab1 AS cor0 WHERE - col2 * + col0 > - ( - col0 ) * col2
----
20

query I rowsort
SELECT DISTINCT - col1 * - 29 FROM tab2 AS cor0
----
1479
1943
2233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - 45 AS col0 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + 42 / 4 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT + col0 DIV + 77 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + col0 / + 77 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NULL <= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL - SUM( DISTINCT - 81 ) * 32 FROM tab1 AS cor0
----
2592

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL - SUM ( DISTINCT - 81 ) * 32 FROM tab1 AS cor0
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL + MAX( + 60 ) FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + MAX ( + 60 ) FROM tab0 cor0
----
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 6 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT + COUNT( * ) * 26 + - AVG ( ALL col1 - + col2 * col2 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * CAST( NULL AS SIGNED ) + + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + COUNT ( * ) * 26 + - AVG ( ALL col1 - + col2 * col2 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * CAST ( NULL AS INTEGER ) + + 28 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT DISTINCT col1 DIV + col1 col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT DISTINCT col1 / + col1 col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9501
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 2 <> + CAST( NULL AS SIGNED ) * col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-9501
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 2 <> + CAST ( NULL AS INTEGER ) * col1 + + col1
----

query I rowsort
SELECT + col2 * col1 + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT + ( + + SUM( col1 ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9503
SELECT + ( + + SUM ( col1 ) ) AS col2 FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT DISTINCT + CAST( - COUNT( ALL + 72 ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + CAST ( - COUNT ( ALL + 72 ) AS INTEGER ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL + 96 * + - COUNT( * ) AS col1 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + 96 * + - COUNT ( * ) AS col1 FROM tab0
----
-288

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col2 ) IS NOT NULL OR NOT - col2 * ( - col2 ) NOT IN ( - col1 * 91 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND 18
----
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT + 47 DIV 94 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9508
SELECT + 47 / 94 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 40 AS col2 FROM tab2
----
-1840
-2560
-3000

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT DISTINCT - 70 DIV + + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - 70 / + + col2 FROM tab1
----
-1
0

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 21 ) col2 FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT ALL col0 * 68 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL col0 * 68 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 - CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query II rowsort
SELECT DISTINCT - 81 AS col2, + col1 FROM tab2
----
-81
51
-81
67
-81
77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 AND ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT ALL 33 DIV col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL 33 / col2 FROM tab2
----
0
0
1

query I rowsort
SELECT 61 + - col1 AS col2 FROM tab1 AS cor0
----
14
47
56

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE ( + col0 ) + + 73 * col0 IS NULL
----

query I rowsort
SELECT col0 + - - col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - col0 + col0 FROM tab1 AS cor0 WHERE - col2 + - col1 IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND ( + 71 )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + 18 IS NOT NULL
----

query I rowsort
SELECT ALL + - 82 AS col2 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT + CAST( NULL AS SIGNED ) + MIN( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + + + ( - + col2 ) + col0 * - col2 FROM tab1 AS cor0
----
-4941
-4989
-6165

query I rowsort
SELECT + 7 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - 67 + col0 AS col1 FROM tab0 cor0
----
-52
20
30

query I rowsort
SELECT - 35 * - col1 FROM tab1
----
1645
175
490

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 + - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 + - + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT + col1 * - CAST( + 96 AS SIGNED ) AS col1 FROM tab1
----
-1344
-4512
-480

skipif mysql # not compatible
query I rowsort label-9531
SELECT + col1 * - CAST ( + 96 AS INTEGER ) AS col1 FROM tab1
----
-1344
-4512
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT ( - col1 ) AS col1, 93 AS col1 FROM tab2
----
-51
93
-67
93
-77
93

query I rowsort
SELECT - col1 + 87 AS col0 FROM tab0 WHERE NULL <> ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE + - col1 = - col0 * col0
----

query I rowsort
SELECT DISTINCT - col0 * col1 + + - 99 + col0 FROM tab0 AS cor0
----
-1299
-1839
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT DISTINCT 52 + - 60 + + col0 + + 91 + col2 DIV col0 AS col2 FROM tab0 cor0
----
101
170
181

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT 52 + - 60 + + col0 + + 91 + col2 / col0 AS col2 FROM tab0 cor0
----
101
170
181

query I rowsort
SELECT + col1 * + col2 FROM tab1 AS cor0 WHERE 31 IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT col1 + col2 AS col1 FROM tab2 AS cor0 WHERE - ( + 96 ) IS NOT NULL
----
117
125
74

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - - COUNT( * ) - - 87 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9541
SELECT - - COUNT ( * ) - - 87 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT + - 43 + + CAST( NULL AS SIGNED ) + col2 / - 58 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT + - 43 + + CAST ( NULL AS INTEGER ) + col2 / - 58 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) / 17 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) / 17 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT ALL 20 - - CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL 20 - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9545
SELECT DISTINCT + - COUNT( * ), 40 * + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-360

skipif mysql # not compatible
query II rowsort label-9545
SELECT DISTINCT + - COUNT ( * ), 40 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9546
SELECT CAST( NULL AS DECIMAL ) + - 89 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT CAST ( NULL AS REAL ) + - 89 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col1 + + 35 + - 16 AS col0 FROM tab1 AS cor0
----
-1325
-276
-3177

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 8 IS NULL
----

query I rowsort
SELECT DISTINCT + - 82 * - col2 * - col2 AS col0 FROM tab1 cor0
----
-285442
-379168
-755712

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 10, - 14 AS col0 FROM tab2 AS cor0
----
10
-14
10
-14
10
-14

query I rowsort
SELECT - 49 + + 42 FROM tab0 AS cor0 WHERE NOT ( + 68 + col1 ) IS NULL
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - - MAX( col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9553
SELECT - - MAX ( col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - + 40 AS col1 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT + MAX( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + MAX ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - + ( 3 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN 71 AND ( + col1 + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL + MAX( DISTINCT - 24 ) FROM tab1 WHERE col0 IS NOT NULL
----
-24

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + MAX ( DISTINCT - 24 ) FROM tab1 WHERE col0 IS NOT NULL
----
-24

query II rowsort
SELECT 83 AS col2, col0 AS col2 FROM tab1
----
83
51
83
85
83
91

query I rowsort
SELECT DISTINCT - 36 * + + col1 FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT ALL + col1 / + col2 - col1 * - col2 AS col2 FROM tab2 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - COUNT( DISTINCT + 28 ) * + + COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9562
SELECT - COUNT ( DISTINCT + 28 ) * + + COUNT ( * ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT 1 + + 25, + col0 - + + ( - - 61 ) AS col1 FROM tab1
----
26
-10
26
24
26
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - + COUNT( * ) * MAX( DISTINCT + 38 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-342

skipif mysql # not compatible
query I rowsort label-9564
SELECT - + COUNT ( * ) * MAX ( DISTINCT + 38 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-342

query I rowsort
SELECT ALL 2 FROM tab0 AS cor0 WHERE - 44 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT ALL + + ( + CAST( NULL AS SIGNED ) ) + 41 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + + ( + CAST ( NULL AS INTEGER ) ) + 41 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 * 87 AS col1, + col2 FROM tab2 AS cor0
----
4002
23
5568
40
6525
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT ALL + - COUNT( * ) * - 41 AS col1, + 55 FROM tab0 cor0
----
123
55

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL + - COUNT ( * ) * - 41 AS col1, + 55 FROM tab0 cor0
----
123
55

query II rowsort
SELECT + col0 * + col2 * col0 * + 90 - - - col1, 29 AS col1 FROM tab1 cor0
----
22472626
29
38364745
29
50679673
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL + CAST( - 94 AS SIGNED ) * + 14 FROM tab2 WHERE NOT col1 + - col0 NOT BETWEEN - 21 AND - 98 + + col1 + + - 11
----

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL + CAST ( - 94 AS INTEGER ) * + 14 FROM tab2 WHERE NOT col1 + - col0 NOT BETWEEN - 21 AND - 98 + + col1 + + - 11
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT ALL - ( col0 ) + col2 FROM tab2 WHERE NOT + - col2 + + col1 - + col1 < - - 20 DIV + 35 - col2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL - ( col0 ) + col2 FROM tab2 WHERE NOT + - col2 + + col1 - + col1 < - - 20 / + 35 - col2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - 50 * - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT + ( + - COUNT( * ) ) + - + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9576
SELECT + ( + - COUNT ( * ) ) + - + COUNT ( * ) FROM tab1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 WHERE - col0 + - 34 / + 34 + + 17 > NULL
----

query I rowsort
SELECT - 17 + + col0 * 68 AS col1 FROM tab0
----
1003
5899
6579

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT COUNT( * ) * + - MAX( ALL + + col1 ) AS col2 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT COUNT ( * ) * + - MAX ( ALL + + col1 ) AS col2 FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - + MIN( - ( + + 48 ) ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9580
SELECT - + MIN ( - ( + + 48 ) ) AS col2 FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 86 - + 52 FROM tab0 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * - 20 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT + ( - + COUNT( DISTINCT - - col1 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9584
SELECT + ( - + COUNT ( DISTINCT - - col1 ) ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 56 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT - + 55 * col0 DIV col1 FROM tab0 AS cor0
----
-10
-227
-5335

skipif mysql # not compatible
query I rowsort label-9586
SELECT - + 55 * col0 / col1 FROM tab0 AS cor0
----
-10
-227
-5335

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL + 66 * COUNT( * ) col0 FROM tab2 cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9587
SELECT ALL + 66 * COUNT ( * ) col0 FROM tab2 cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9588
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 40 - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9588
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 40 - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + + col2 < - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 43 ) AS col1 FROM tab1
----
43
43
43

query I rowsort
SELECT DISTINCT col1 * + - col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9592
SELECT COUNT( + - ( + - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT COUNT ( + - ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

query I rowsort
SELECT ALL col1 * - + col2 AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9594
SELECT ALL COUNT( * ) DIV - + 98 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL COUNT ( * ) / - + 98 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT SUM( DISTINCT - 87 ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT SUM ( DISTINCT - 87 ) FROM tab1
----
-87

query II rowsort
SELECT DISTINCT col2 AS col2, col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT - 82 BETWEEN - 36 AND - col2 - - col2
----
51
85
91

query I rowsort
SELECT - ( - 63 ) FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT COUNT( * ) + + 3 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT COUNT ( * ) + + 3 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 1 ) col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND 87
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <> - 7
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL - col1 * + 35 * ( + 51 ) FROM tab0 AS cor0
----
-144585
-1785
-37485

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 1 * - - 26 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + 68 AS col1 FROM tab0
----
115
167
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT DISTINCT col1 * - + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL + + MAX( + col1 ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + + MAX ( + col1 ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL COUNT( * ) + 19 AS col1 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL COUNT ( * ) + 19 AS col1 FROM tab0 cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT - 48 + ( + 91 ) + + col2 * + col1 / + CAST( NULL AS SIGNED ) - 50 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 48 + ( + 91 ) + + col2 * + col1 / + CAST ( NULL AS INTEGER ) - 50 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 20 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - col1 - 6 + - - col1 + - col2 + col0 - + 4 * + col2 * - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-11233
-18403
-4394

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * - - col2 * - col2 * - col1 - - col2 BETWEEN + + col1 * ( + - col1 ) * - + col2 - + col0 - 42 AND - col1 / - 24
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT ( ( + col2 + + ( - - ( 85 ) ) - - - 61 - col1 / col0 + + col1 * + + col2 + 60 ) IS NULL )
----
-46
-64
-75

query II rowsort
SELECT DISTINCT - + col0, - 71 * + - col1 AS col2 FROM tab1 WHERE NOT ( NOT + col1 BETWEEN - - col0 AND + col1 + + col2 )
----

query I rowsort
SELECT ( col2 ) - + col1 * col0 AS col1 FROM tab2
----
-2323
-4888
-4967

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <= ( + col0 )
----

query II rowsort
SELECT + ( - col0 ), + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT 42, 65 AS col2 FROM tab1
----
42
65
42
65
42
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col0 FROM tab0 AS cor0
----
83

query I rowsort
SELECT - ( 47 ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query II rowsort
SELECT - - col2, col2 + - col1 * + + col2 AS col1 FROM tab0 AS cor0
----
10
-200
47
-3760
99
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT DISTINCT - - COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT - - COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT - 98 DIV - col1 AS col2 FROM tab1 cor0
----
19
2
7

skipif mysql # not compatible
query I rowsort label-9626
SELECT - 98 / - col1 AS col2 FROM tab1 cor0
----
19
2
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT col0 DIV 94 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9627
SELECT col0 / 94 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - - col1 + col2 AS col2 FROM tab2 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + col1 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 1 * + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col1 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT ALL + 89 + - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-7
21
30

query I rowsort
SELECT ALL + 65 + - + 76 AS col1 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT - COUNT( * ) + + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9634
SELECT - COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT DISTINCT ( - col2 ) DIV + col1 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9635
SELECT DISTINCT ( - col2 ) / + col1 col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * - - col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL - 10 - + MAX( 47 ) col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9637
SELECT ALL - 10 - + MAX ( 47 ) col1 FROM tab1 AS cor0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT - - 36 DIV + col0 - - col0 - - + 19 AS col1 FROM tab2 AS cor0
----
65
83
94

skipif mysql # not compatible
query I rowsort label-9638
SELECT - - 36 / + col0 - - col0 - - + 19 AS col1 FROM tab2 AS cor0
----
65
83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - COUNT( * ) - COUNT( * ) + 37 AS col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9639
SELECT - COUNT ( * ) - COUNT ( * ) + 37 AS col2 FROM tab1 AS cor0
----
31

query I rowsort
SELECT - 11 - 78 - + col1 + + col1 FROM tab2 AS cor0
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + ( 43 ) - + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL + - COUNT( * ) + + 90 * 61 FROM tab1 AS cor0
----
5487

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + - COUNT ( * ) + + 90 * 61 FROM tab1 AS cor0
----
5487

query I rowsort
SELECT + col1 - + col2 * + + col2 AS col0 FROM tab0 AS cor0
----
-2128
-79
-9800

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT + col1 + col2 + - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
100
127
29

skipif mysql # not compatible
query I rowsort label-9644
SELECT + col1 + col2 + - col1 / + col2 AS col0 FROM tab0 AS cor0
----
100
127
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - 75 + + 35 IN ( 88, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT 29 + COUNT( * ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9647
SELECT 29 + COUNT ( * ) AS col1 FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 34 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 69 + + 77 FROM tab1
----
146
146
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT + - ( - COUNT( * ) ) DIV - 2 AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9651
SELECT + - ( - COUNT ( * ) ) / - 2 AS col0 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL - - SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL - - SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT + col0, + col0 * - 95 - 16 AS col1 FROM tab2 AS cor0
----
46
-4386
64
-6096
75
-7141

onlyif mysql # aggregate syntax: 
query II rowsort label-9654
SELECT - + ( - - COUNT( * ) ) AS col1, - 36 AS col2 FROM tab2 AS cor0 WHERE NOT 16 / + + col0 NOT BETWEEN NULL AND - col1 - - 48 / - col2 / - + col0
----
0
-36

skipif mysql # not compatible
query II rowsort label-9654
SELECT - + ( - - COUNT ( * ) ) AS col1, - 36 AS col2 FROM tab2 AS cor0 WHERE NOT 16 / + + col0 NOT BETWEEN NULL AND - col1 - - 48 / - col2 / - + col0
----
0
-36

query I rowsort
SELECT 94 / - AVG ( - + 28 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9656
SELECT ALL - 98 DIV - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
4
98

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL - 98 / - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
4
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL - MIN( DISTINCT - - 53 ) + + 86 * 63 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
5365

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - MIN ( DISTINCT - - 53 ) + + 86 * 63 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
5365

query I rowsort
SELECT ALL + - 0 * col1 + + 11 AS col1 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + COUNT( DISTINCT - 68 ) * + - 83 AS col0 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9659
SELECT + COUNT ( DISTINCT - 68 ) * + - 83 AS col0 FROM tab0 AS cor0
----
-83

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
81
87
21
97
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9661
SELECT ALL - col2 * col2 col1, col0 DIV - - 32 FROM tab1 AS cor0
----
-3481
2
-4624
2
-9216
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9661
SELECT ALL - col2 * col2 col1, col0 / - - 32 FROM tab1 AS cor0
----
-3481
2
-4624
2
-9216
1

query II rowsort
SELECT ALL 8 AS col1, col2 * + + col2 AS col1 FROM tab0
----
8
100
8
2209
8
9801

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT + col1 = 59 + 43
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT DISTINCT - COUNT( * ) + 15 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - COUNT ( * ) + 15 FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-9665
SELECT - col0, 74 DIV - - 39 AS col2 FROM tab1
----
-51
1
-85
1
-91
1

skipif mysql # not compatible
query II rowsort label-9665
SELECT - col0, 74 / - - 39 AS col2 FROM tab1
----
-51
1
-85
1
-91
1

query II rowsort
SELECT + 59 AS col0, - col1 * + 85 FROM tab0
----
59
-1785
59
-6885
59
-85

query I rowsort
SELECT ALL - col0 + col1 * col0 + col0 * - 88 AS col2 FROM tab1
----
-3822
-3825
-7140

onlyif mysql # aggregate syntax: 
query II rowsort label-9668
SELECT DISTINCT COUNT( * ), COUNT( * ) col0 FROM tab0 WHERE + - col2 NOT BETWEEN - col2 AND ( col0 )
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9668
SELECT DISTINCT COUNT ( * ), COUNT ( * ) col0 FROM tab0 WHERE + - col2 NOT BETWEEN - col2 AND ( col0 )
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + + 95 AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + + 95 AS col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( 10 - + 36, col1, + col0, - 98 )
----

query I rowsort
SELECT + 47 * - col2 AS col0 FROM tab0 AS cor0
----
-2209
-4653
-470

query I rowsort
SELECT + 32 + 71 - - 56 AS col1 FROM tab1
----
159
159
159

query I rowsort
SELECT col0 + - + 45 FROM tab0
----
-30
42
52

query I rowsort
SELECT DISTINCT col0 - col0 + + 54 FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT - - 81 - + 51 AS col1 FROM tab1 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - 60 < NULL
----

query I rowsort
SELECT + col2 * + 88 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + COUNT( * ) - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col2 FROM tab2
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * + col2 col0 FROM tab0
----
3149
6633
670

query II rowsort
SELECT ALL - col2 AS col0, col0 * - - 24 FROM tab1
----
-59
2040
-68
2184
-96
1224

query I rowsort
SELECT ALL col2 * + col0 * - + 53 AS col0 FROM tab0
----
-37365
-46110
-508959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT - 89 * 9 + + - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - 89 * 9 + + - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT - COUNT( DISTINCT 38 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9685
SELECT - COUNT ( DISTINCT 38 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT ALL + ( + + col2 ) * - 42 FROM tab0 AS cor0
----
-1974
-4158
-420

query I rowsort
SELECT col1 * - 21 AS col0 FROM tab0 AS cor0
----
-1701
-21
-441

query I rowsort
SELECT 77 * + col1 AS col0 FROM tab1 AS cor0
----
1078
3619
385

query I rowsort
SELECT ( - + 60 ) AS col0 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + col1 * col2 * col1 AS col2 FROM tab0 cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - 84 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 84 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9692
SELECT DISTINCT + COUNT( * ) AS col1, ( + - COUNT( * ) ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9692
SELECT DISTINCT + COUNT ( * ) AS col1, ( + - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT + 20 FROM tab2 cor0 WHERE NOT + 56 IS NULL
----
20
20
20

query I rowsort
SELECT + col2 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 + col2 < col0 * - 90 * - col2 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT DISTINCT - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) * - 59 + + 11 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * - 59 + + 11 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 73 * - col2 + 81 FROM tab2
----
-1598
-2839
-4153

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - MIN( + col1 ) + COUNT( * ) + - SUM( DISTINCT - - col0 ) AS col1 FROM tab2
----
-233

skipif mysql # not compatible
query I rowsort label-9698
SELECT - MIN ( + col1 ) + COUNT ( * ) + - SUM ( DISTINCT - - col0 ) AS col1 FROM tab2
----
-233

query I rowsort
SELECT - + col2 + + 53 * + col2 * 64 AS col2 FROM tab0 AS cor0
----
159377
335709
33910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * - 27 + - col2 * - 5 col1 FROM tab2 AS cor0
----
-1735
-1825
-1910

query I rowsort
SELECT DISTINCT + ( - ( - ( - col0 ) ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - 66 - - col0 AS col1 FROM tab2
----
-2
-20
9

query I rowsort
SELECT ALL - - 88 + col0 AS col2 FROM tab2 AS cor0
----
134
152
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + - col1 - - - col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL + COUNT( * ) - + - MAX( DISTINCT - ( + + col0 ) ) * 28 AS col1 FROM tab2 AS cor0
----
-1285

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + COUNT ( * ) - + - MAX ( DISTINCT - ( + + col0 ) ) * 28 AS col1 FROM tab2 AS cor0
----
-1285

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 58 * + col0 * + 73 AND - + col2 + col1 * 13 + + - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 59 * - col0 * - col1 + ( - col0 ) + - 16 + - + col0 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( ( NOT ( ( NULL ) BETWEEN - - col1 AND col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( ( NOT ( ( NULL ) BETWEEN - - col1 AND col1 ) ) )
----
0

query II rowsort
SELECT DISTINCT - col2 * - + col1 AS col1, col1 FROM tab1
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT COUNT( * ) * - + MAX( + - col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT COUNT ( * ) * - + MAX ( + - col2 ) FROM tab2
----
69

query I rowsort
SELECT - col2 - + 0 AS col2 FROM tab1 WHERE NOT col0 * - 55 <> + - col1 * - - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9713
SELECT ALL * FROM tab0 WHERE - CAST( + 1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9713
SELECT ALL * FROM tab0 WHERE - CAST ( + 1 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT DISTINCT - COUNT( * ) DIV - 6 * + 35 * + + COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9714
SELECT DISTINCT - COUNT ( * ) / - 6 * + 35 * + + COUNT ( * ) col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 79 BETWEEN NULL AND col2 / col0 + - 88 * col1 + - col1 - - col0 * + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 17 * - col2 - - + col2 IS NOT NULL
----

query I rowsort
SELECT 82 * - - col0 AS col0 FROM tab2 cor0
----
3772
5248
6150

query I rowsort
SELECT DISTINCT col1 * col1 + - - 74 * - col0 * + 6 AS col0 FROM tab0 cor0
----
-38187
-43067
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT ALL - 58 * - col2 + - col0, + 33 AS col1 FROM tab2 AS cor0
----
1288
33
2256
33
3289
33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 87 + + col0 / col2 * - 90 + 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + 38 AS col1 FROM tab2
----
-26
-37
-8

query I rowsort
SELECT col0 + 19 - + 4 + col0 FROM tab0
----
189
209
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT - MAX( ALL - - col2 ) AS col0, 28 FROM tab1
----
-96
28

skipif mysql # not compatible
query II rowsort label-9724
SELECT - MAX ( ALL - - col2 ) AS col0, 28 FROM tab1
----
-96
28

query II rowsort
SELECT 43 AS col0, col0 * + + col2 FROM tab2
----
43
1058
43
2560
43
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 87 FROM tab0
----
1
87
21
87
81
87

query I rowsort
SELECT 91 * 40 FROM tab1
----
3640
3640
3640

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 = - + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + col1 * - col1 * col2 AS col0 FROM tab1
----
-10214416
-1806336
-87025

query I rowsort
SELECT col1 * - 40 FROM tab2 WHERE - - 14 IS NULL
----

query I rowsort
SELECT ALL - col1 + + 2 FROM tab0
----
-19
-79
1

query I rowsort
SELECT + ( 15 ) FROM tab1
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT ALL col1 DIV col0 * - - ( 18 ) FROM tab0 cor0
----
0
0
90

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL col1 / col0 * - - ( 18 ) FROM tab0 cor0
----
0
0
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT - 47 + + COUNT( DISTINCT col2 ) FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT - 47 + + COUNT ( DISTINCT col2 ) FROM tab1 cor0
----
-44

query I rowsort
SELECT DISTINCT - + col0 + + col2 + col2 FROM tab2 AS cor0
----
0
16
41

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) <= - col0 - + col0 * + col0 )
----

query I rowsort
SELECT + col0 + - ( + col1 ) FROM tab2
----
-13
-5
8

query I rowsort
SELECT ALL + 96 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT 53 + - - ( - - COUNT( * ) ) * + 32 - - - 73 + - - COUNT( * ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT 53 + - - ( - - COUNT ( * ) ) * + 32 - - - 73 + - - COUNT ( * ) FROM tab0
----
79

query I rowsort
SELECT + 35 AS col0 FROM tab0 cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col2 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT SUM( - 79 ) AS col2 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9743
SELECT SUM ( - 79 ) AS col2 FROM tab0 AS cor0
----
-237

onlyif mysql # DIV for integer division: 
query II rowsort label-9744
SELECT col2 AS col2, 91 DIV col0 AS col0 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-9744
SELECT col2 AS col2, 91 / col0 AS col0 FROM tab1
----
59
1
68
1
96
1

query III rowsort
SELECT ALL * FROM tab1 WHERE 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 26 * - + 26 AS col2 FROM tab0
----
-676

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9747
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - col1 * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - col1 * + col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT + + 84 FROM tab1 WHERE NOT - - 69 IS NOT NULL
----

query I rowsort
SELECT - col2 * + + col1 + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT + 0 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( + - 23 ) FROM tab0 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + + COUNT( DISTINCT - - col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9753
SELECT + + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9754
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( + col1 AS SIGNED ) / - col1, - col1 )
----

skipif mysql # not compatible
query III rowsort label-9754
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( + col1 AS INTEGER ) / - col1, - col1 )
----

query I rowsort
SELECT col1 * + col2 * - col2 AS col1 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT ALL + col0 * col0 DIV + + col1 FROM tab1
----
1445
176
185

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + col0 * col0 / + + col1 FROM tab1
----
1445
176
185

query I rowsort
SELECT ALL - 31 + col1 FROM tab0 AS cor0
----
-10
-30
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT + COUNT( * ) DIV 34 + - 49 FROM tab1 AS cor0 WHERE ( + col2 ) <= - col0
----
-49

skipif mysql # not compatible
query I rowsort label-9758
SELECT + COUNT ( * ) / 34 + - 49 FROM tab1 AS cor0 WHERE ( + col2 ) <= - col0
----
-49

query I rowsort
SELECT DISTINCT ( + col2 ) * + + 71 + 32 FROM tab2 AS cor0
----
1665
2872
4150

query I rowsort
SELECT ALL - 62 * col1 FROM tab1 AS cor0
----
-2914
-310
-868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL - 92 + + 90 + + + col0 FROM tab1 WHERE NOT ( NOT col2 - + 10 / + CAST( NULL AS SIGNED ) + - - col2 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - 92 + + 90 + + + col0 FROM tab1 WHERE NOT ( NOT col2 - + 10 / + CAST ( NULL AS INTEGER ) + - - col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - col2 * + 37 * col1 * 84 AS col2 FROM tab2
----
-12077688
-3645684
-9572640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 46 * - col0 * - 82 col1, + 49 AS col1 FROM tab2
----
173512
49
241408
49
282900
49

query I rowsort
SELECT DISTINCT - ( - col2 ) + ( + col2 ) FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT + col2 DIV ( - col2 ) + 70 FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-9766
SELECT + col2 / ( - col2 ) + 70 FROM tab1 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 14 >= NULL
----

query I rowsort
SELECT ALL + col1 * - - 0 + col2 FROM tab2 AS cor0 WHERE NOT 89 IS NOT NULL
----

query I rowsort
SELECT ALL col2 - col0 FROM tab0 cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 89 / + ( + + col2 ) * 13 + + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + 30 * COUNT( * ) - - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9771
SELECT + 30 * COUNT ( * ) - - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> + 65
----

query II rowsort
SELECT col2 AS col1, col1 * - + col1 AS col0 FROM tab2 AS cor0
----
23
-2601
40
-5929
58
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + - SUM( - 65 ) AS col2 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + - SUM ( - 65 ) AS col2 FROM tab1 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9775
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col0, col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9775
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col0, col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9776
SELECT ALL CAST( + - col0 AS SIGNED ) DIV - col2, - 45 * - ( + col2 ) AS col1 FROM tab0
----
0
2115
0
4455
8
450

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL CAST ( + - col0 AS INTEGER ) / - col2, - 45 * - ( + col2 ) AS col1 FROM tab0
----
0
2115
0
4455
8
450

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * - col0 * ( 5 ) * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL + SUM( ALL 42 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + SUM ( ALL 42 ) FROM tab0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT 74 DIV - 1 AS col2 FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-9779
SELECT 74 / - 1 AS col2 FROM tab2
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT MIN( ALL + 80 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-9780
SELECT MIN ( ALL + 80 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL - MIN( DISTINCT + - 11 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
11

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - MIN ( DISTINCT + - 11 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
11

query I rowsort
SELECT 22 + + 66 AS col0 FROM tab0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL + COUNT( * ) FROM tab1, tab1 cor0 WHERE NOT + 57 - - 43 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL + COUNT ( * ) FROM tab1, tab1 cor0 WHERE NOT + 57 - - 43 >= NULL
----
0

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE - col2 / + - 75 < + + col0
----
10
47
99

query II rowsort
SELECT DISTINCT - 44 - - col1 * + + col1 AS col2, col2 AS col1 FROM tab0 cor0
----
-43
99
397
10
6517
47

query I rowsort
SELECT DISTINCT col2 * - col1 - 9 - col2 FROM tab2
----
-1205
-3129
-3953

onlyif mysql # aggregate syntax: 
query II rowsort label-9787
SELECT ALL + + 21 * + + COUNT( * ) * + 17 - + 16 AS col1, COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 AND NULL
----
-16
0

skipif mysql # not compatible
query II rowsort label-9787
SELECT ALL + + 21 * + + COUNT ( * ) * + 17 - + 16 AS col1, COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN - + col0 AND NULL
----
-16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT - MAX( ALL + col0 ) * COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - MAX ( ALL + col0 ) * COUNT ( * ) FROM tab1
----
-273

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9790
SELECT - CAST( - col1 AS SIGNED ) AS col2, + 16 AS col0 FROM tab1
----
14
16
47
16
5
16

skipif mysql # not compatible
query II rowsort label-9790
SELECT - CAST ( - col1 AS INTEGER ) AS col2, + 16 AS col0 FROM tab1
----
14
16
47
16
5
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT ALL 73 * - - COUNT( * ) + - ( + + 88 ) AS col2, 14 * + 56 AS col1 FROM tab2
----
131
784

skipif mysql # not compatible
query II rowsort label-9791
SELECT ALL 73 * - - COUNT ( * ) + - ( + + 88 ) AS col2, 14 * + 56 AS col1 FROM tab2
----
131
784

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT 4 DIV + col2 - + col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9792
SELECT 4 / + col2 - + col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT AVG ( - col0 ) FROM tab1 AS cor0 WHERE NULL = - col0
----
NULL

query I rowsort
SELECT ALL - 99 - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-62
-71
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 30 ) col1 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - + 28 * - 95 + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT + 9 DIV col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9798
SELECT + 9 / col0 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * + col1 col0 FROM tab0 AS cor0
----
1029
3969
49

query I rowsort
SELECT - 51 FROM tab0 cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 AS col0, + col1 col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL - SUM( DISTINCT col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - SUM ( DISTINCT col2 ) FROM tab1
----
-223

query I rowsort
SELECT col2 * - 20 AS col1 FROM tab2
----
-1160
-460
-800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9805
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + ( - - 70 )
----

skipif mysql # not compatible
query III rowsort label-9805
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + ( - - 70 )
----

query I rowsort
SELECT DISTINCT - 32 + col1 * - col1 * - col2 + + col2 + - col0 AS col2 FROM tab1
----
1417
150157
18829

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT DISTINCT - col2 DIV + 18 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT - col2 / + 18 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - col2 * + col2 + - + 52 + - col0 FROM tab2 cor0
----
-1716
-3491
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col0, 15 FROM tab1 AS cor0
----
59
15
68
15
96
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT - COUNT( * ) * 93 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-9810
SELECT - COUNT ( * ) * 93 FROM tab1
----
-279

query I rowsort
SELECT DISTINCT - 35 + - 93 * 86 * - col2 AS col2 FROM tab1 AS cor0
----
471847
543829
767773

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT 10 - - ( MAX( col1 ) ) + - + 53 AS col0 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9813
SELECT 10 - - ( MAX ( col1 ) ) + - + 53 AS col0 FROM tab2 AS cor0
----
34

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 + + - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 89 FROM tab2 WHERE + 71 + 21 IS NOT NULL
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96, col2 col1 FROM tab2
----
96
23
96
40
96
58

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) = + col2
----

query II rowsort
SELECT ALL - 70 AS col2, - 26 AS col0 FROM tab1
----
-70
-26
-70
-26
-70
-26

query I rowsort
SELECT 88 + - col2 FROM tab0
----
-11
41
78

query I rowsort
SELECT DISTINCT col2 + - - 61 AS col2 FROM tab0
----
108
160
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL 22 * + COUNT( * ) * - - COUNT( ALL col2 ) + - - COUNT( * ) AS col2 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL 22 * + COUNT ( * ) * - - COUNT ( ALL col2 ) + - - COUNT ( * ) AS col2 FROM tab2
----
201

query I rowsort
SELECT 68 * + ( 63 ) FROM tab1
----
4284
4284
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL + ( + + 40 ) * - 19 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-757

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL + ( + + 40 ) * - 19 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-757

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL + - SUM( + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + - SUM ( + col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT DISTINCT MAX( DISTINCT 15 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
15

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT MAX ( DISTINCT 15 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT + ( + + COUNT( + col0 ) ) * + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9827
SELECT + ( + + COUNT ( + col0 ) ) * + COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT DISTINCT 92 * + - 2 * - + COUNT( * ) FROM tab1
----
552

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT 92 * + - 2 * - + COUNT ( * ) FROM tab1
----
552

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 92 ) BETWEEN - 83 AND NULL
----

query I rowsort
SELECT 55 * + - col0 AS col0 FROM tab2 AS cor0
----
-2530
-3520
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT - + ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - + ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL 52 * + CAST( + - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3068
-3536
-4992

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL 52 * + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3068
-3536
-4992

query I rowsort
SELECT + ( + + 55 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9834
SELECT ALL 90, MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
90
10

skipif mysql # not compatible
query II rowsort label-9834
SELECT ALL 90, MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
90
10

query I rowsort
SELECT ALL col1 * - + col1 * + 96 FROM tab2
----
-249696
-430944
-569184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL + 29 * - CAST( + ( MIN( DISTINCT col2 ) ) AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + 29 * - CAST ( + ( MIN ( DISTINCT col2 ) ) AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT MIN( + - col1 ) col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9837
SELECT MIN ( + - col1 ) col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT MAX( DISTINCT + 88 ) AS col2 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-9838
SELECT MAX ( DISTINCT + 88 ) AS col2 FROM tab2
----
88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL col2 - - col2 FROM tab1 AS cor0 WHERE NOT col1 <= + col2 * - col1
----
118
136
192

query I rowsort
SELECT + col2 + + 47 FROM tab2
----
105
70
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL 69 - - + COUNT( * ) + - 68 - + MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL 69 - - + COUNT ( * ) + - 68 - + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - + col0 + - col2 * 99 AS col1 FROM tab2 AS cor0
----
-2323
-4024
-5817

query I rowsort
SELECT - 30 FROM tab0 cor0 WHERE ( col2 * + - col2 ) IS NOT NULL
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9845
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( + col1 AS SIGNED ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9845
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT COUNT( * ) - - 62 AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT COUNT ( * ) - - 62 AS col0 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL - - 30 AS col2 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL + COUNT( * ) - + COUNT( * ) + 22 AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + COUNT ( * ) - + COUNT ( * ) + 22 AS col2 FROM tab2 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + + col1 - + col1 + col2 * + + col2 col1 FROM tab1 AS cor0 WHERE 30 + - col0 IS NOT NULL
----
2368
3451
9006

query I rowsort
SELECT ALL + col0 + + + col0 FROM tab1 WHERE 83 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT + 83 + + - COUNT( ALL - - col0 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + 83 + + - COUNT ( ALL - - col0 ) FROM tab2
----
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - - col1
----

query I rowsort
SELECT ALL ( - + col1 ) AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + col1 * + 59 * col2 AS col2 FROM tab0 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + - MAX( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9855
SELECT + - MAX ( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + + COUNT( * ) * + - COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9856
SELECT + + COUNT ( * ) * + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT ALL + 93, 12 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
93
36

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL + 93, 12 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
93
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9859
SELECT + - COUNT( * ) col0, 42 AS col2 FROM tab2 AS cor0
----
-3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9859
SELECT + - COUNT ( * ) col0, 42 AS col2 FROM tab2 AS cor0
----
-3
42

query I rowsort
SELECT + + 81 * - col1 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT DISTINCT COUNT( * ), ( COUNT( * ) ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-9861
SELECT DISTINCT COUNT ( * ), ( COUNT ( * ) ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
6

query II rowsort
SELECT col2 * + + 5 * - col1, col2 AS col1 FROM tab0 AS cor0
----
-1050
10
-19035
47
-495
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT - - col0 * CAST( NULL AS SIGNED ) 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-9863
SELECT - - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + 88 IS NOT NULL )
----

query I rowsort
SELECT ALL col1 * - 85 AS col1 FROM tab0
----
-1785
-6885
-85

query I rowsort
SELECT - 54 * 85 * col0 FROM tab2
----
-211140
-293760
-344250

query I rowsort
SELECT 9 FROM tab1 WHERE NOT - - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 61 IS NULL
----

query I rowsort
SELECT ALL + col1 * - - col2 * - - 71 * + col2 FROM tab0 WHERE col1 + 38 / - + 82 BETWEEN + 18 + - ( + 80 ) AND ( + + col0 )
----
149100
695871

query I rowsort
SELECT - + col0 + - col0 - + 89 FROM tab0 AS cor0
----
-119
-263
-283

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT + 78 DIV + + col2 + col1 FROM tab1 AS cor0
----
14
48
6

skipif mysql # not compatible
query I rowsort label-9871
SELECT + 78 / + + col2 + col1 FROM tab1 AS cor0
----
14
48
6

query I rowsort
SELECT - - 30 * + 1 + + 22 AS col0 FROM tab0 AS cor0
----
52
52
52

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL - 27 + + SUM( DISTINCT + ( - 13 ) ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - 27 + + SUM ( DISTINCT + ( - 13 ) ) AS col0 FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT DISTINCT + 76 + - COUNT( - col0 ), + 36 AS col1 FROM tab0 AS cor0
----
73
36

skipif mysql # not compatible
query II rowsort label-9875
SELECT DISTINCT + 76 + - COUNT ( - col0 ), + 36 AS col1 FROM tab0 AS cor0
----
73
36

query I rowsort
SELECT ALL - 26 + - - col2 * - 23 FROM tab1 AS cor0
----
-1383
-1590
-2234

query I rowsort
SELECT ALL + - 75 + - 27 FROM tab2 AS cor0
----
-102
-102
-102

query I rowsort
SELECT col1 * - - ( - + col2 ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT DISTINCT + COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT + COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * - - 93 * + ( + col1 ) col1 FROM tab2
----
-170748
-224316
-257796

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ( + SUM( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9881
SELECT ( + SUM ( + col0 ) ) FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9882
SELECT CAST( NULL AS SIGNED ) col2, + col1 * col2 AS col1 FROM tab0
----
NULL
210
NULL
3807
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9882
SELECT CAST ( NULL AS INTEGER ) col2, + col1 * col2 AS col1 FROM tab0
----
NULL
210
NULL
3807
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT MIN( ALL + ( + col2 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-9883
SELECT MIN ( ALL + ( + col2 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT DISTINCT 8, - COUNT( * ) AS col2 FROM tab0
----
8
-3

skipif mysql # not compatible
query II rowsort label-9884
SELECT DISTINCT 8, - COUNT ( * ) AS col2 FROM tab0
----
8
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL - COUNT( - col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - COUNT ( - col1 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT COUNT( - - ( - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9886
SELECT COUNT ( - - ( - col2 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9887
SELECT + 97 AS col1, ( ( + 23 ) ) + + - CAST( - col2 AS SIGNED ) * + 73 FROM tab1
----
97
4330
97
4987
97
7031

skipif mysql # not compatible
query II rowsort label-9887
SELECT + 97 AS col1, ( ( + 23 ) ) + + - CAST ( - col2 AS INTEGER ) * + 73 FROM tab1
----
97
4330
97
4987
97
7031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT - ( + + CAST( col0 AS SIGNED ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9888
SELECT - ( + + CAST ( col0 AS INTEGER ) ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 33 * - + col1 < 85 + col1
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query II rowsort
SELECT ALL - col2 AS col2, - col0 AS col2 FROM tab2 cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE - 61 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, + col0 col2 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 19 ), col2 col1 FROM tab0 AS cor0
----
19
10
19
47
19
99

query I rowsort
SELECT DISTINCT 97 * 6 AS col1 FROM tab2 cor0
----
582

query I rowsort
SELECT + col0 + + - col0 * - 53 - + col2 AS col2 FROM tab1 AS cor0
----
2658
4531
4846

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL + COUNT( * ) * + 76 AS col2 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + COUNT ( * ) * + 76 AS col2 FROM tab1
----
228

query I rowsort
SELECT ALL - + 78 AS col2 FROM tab0 WHERE NULL <= col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col0 FROM tab2
----
92
92
92

query I rowsort
SELECT ALL - 54 * - - 17 AS col2 FROM tab0
----
-918
-918
-918

query II rowsort
SELECT col0 AS col2, + 42 - col0 FROM tab2
----
46
-4
64
-22
75
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9903
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 13 + - COUNT( * ) - + 51 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 13 + - COUNT ( * ) - + 51 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 36 * - col1 FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NULL = col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > + ( + col0 )
----

query I rowsort
SELECT ( col1 ) + - 57 AS col2 FROM tab1 AS cor0
----
-10
-43
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT + ( + MIN( - col0 ) ) * CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT + ( + MIN ( - col0 ) ) * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT col1 * 54 AS col1 FROM tab1
----
2538
270
756

query I rowsort
SELECT DISTINCT 8 * 40 + col2 AS col2 FROM tab2
----
343
360
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT ALL + 4 * - COUNT( CAST( NULL AS SIGNED ) / 84 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + 4 * - COUNT ( CAST ( NULL AS INTEGER ) / 84 ) AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * col2 col1 FROM tab1
----
2832
3264
4608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT ALL - COUNT( * ) FROM tab0 WHERE 42 <> 39 * CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL - COUNT ( * ) FROM tab0 WHERE 42 <> 39 * CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL CAST( COUNT( + col2 ) AS SIGNED ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9914
SELECT ALL CAST ( COUNT ( + col2 ) AS INTEGER ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT 13 < NULL
----

query I rowsort
SELECT ALL - col0 * - 94 AS col0 FROM tab2
----
4324
6016
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL 0 * + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL 0 * + COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN ( NULL ) AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 WHERE NOT NULL NOT IN ( - col1 * + 12 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / col0 - - col0 NOT BETWEEN ( 45 ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT COUNT( * ) - SUM( ALL - col0 ) * 60 AS col0 FROM tab0
----
11943

skipif mysql # not compatible
query I rowsort label-9921
SELECT COUNT ( * ) - SUM ( ALL - col0 ) * 60 AS col0 FROM tab0
----
11943

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT COUNT( * ) - 82 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-9922
SELECT COUNT ( * ) - 82 FROM tab1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT + SUM( ALL + 45 ) AS col0 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + SUM ( ALL + 45 ) AS col0 FROM tab1
----
135

query III rowsort
SELECT * FROM tab1 WHERE 80 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9925
SELECT - SUM( DISTINCT + col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - 67 * 17 + + col1 * + 78 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT - SUM ( DISTINCT + col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - 67 * 17 + + col1 * + 78 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT MAX( - ( col0 ) ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9926
SELECT MAX ( - ( col0 ) ) AS col0 FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + 32 / col0 <= NULL
----

query I rowsort
SELECT 98 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 23 AS col2 FROM tab2 WHERE NOT + 49 IS NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT + MAX( ALL ( + col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + MAX ( ALL ( + col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT COUNT( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT COUNT ( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 37 + 24 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT + CAST( col2 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col1 * + 9 - col0 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9934
SELECT + CAST ( col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col1 * + 9 - col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - + SUM( DISTINCT - 35 ) FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - + SUM ( DISTINCT - 35 ) FROM tab0 cor0
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9936
SELECT ALL + - CAST( NULL AS DECIMAL ) 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-9936
SELECT ALL + - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT col2 * col0 + + col0 AS col0 FROM tab2 AS cor0 WHERE ( CAST( + ( col2 ) AS SIGNED ) ) <= - 57 * + col1
----

skipif mysql # not compatible
query I rowsort label-9937
SELECT col2 * col0 + + col0 AS col0 FROM tab2 AS cor0 WHERE ( CAST ( + ( col2 ) AS INTEGER ) ) <= - 57 * + col1
----

query I rowsort
SELECT + col1 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT - MAX( - col0 ) DIV - SUM( ALL + col0 + ( col1 ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT - MAX ( - col0 ) / - SUM ( ALL + col0 + ( col1 ) ) FROM tab1 cor0
----
0

query I rowsort
SELECT ( - col1 ) FROM tab1 AS cor0 WHERE ( col2 * + 40 + - col1 * + col0 ) <> col2
----
-14
-47
-5

query I rowsort
SELECT ALL col0 * 58 FROM tab1 AS cor0
----
2958
4930
5278

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 4 IN ( col1 * 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT col2 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9943
SELECT col2 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT SUM( col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT SUM ( col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT + CAST( + - col1 AS SIGNED ) * 79 AS col2 FROM tab1
----
-1106
-3713
-395

skipif mysql # not compatible
query I rowsort label-9945
SELECT + CAST ( + - col1 AS INTEGER ) * 79 AS col2 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT DISTINCT - 67 * 80 AS col1 FROM tab1 WHERE NULL IS NULL
----
-5360

query I rowsort
SELECT DISTINCT - 93 * col0 FROM tab2
----
-4278
-5952
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT - 87 + - COUNT( * ) - + COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT - 87 + - COUNT ( * ) - + COUNT ( * ) FROM tab1
----
-93

query III rowsort
SELECT * FROM tab1 WHERE col1 / 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE col1 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT 80 DIV col1 + - col2 AS col0 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-9951
SELECT 80 / col1 + - col2 AS col0 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT - col0 * col2 * col1 + + 79 AS col2 FROM tab1
----
-24996
-290757
-68465

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT - COUNT( * ) * + SUM( ALL col1 ) col0 FROM tab0 AS cor0 WHERE NULL >= ( - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9953
SELECT DISTINCT - COUNT ( * ) * + SUM ( ALL col1 ) col0 FROM tab0 AS cor0 WHERE NULL >= ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT 58 + - - COUNT( * ) FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-9954
SELECT 58 + - - COUNT ( * ) FROM tab2 cor0
----
61

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 cor0 WHERE + col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL 36 + 1 + COUNT( * ) * + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 36 + 1 + COUNT ( * ) * + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT col1 - col1 - - - col2 + + col2 * + col1 FROM tab1
----
1248
236
3128

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT col0 DIV - - 92 - - - col0 DIV col0 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9958
SELECT col0 / - - 92 - - - col0 / col0 AS col1 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL - col2 AS col1, + 60 FROM tab1
----
-59
60
-68
60
-96
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 21 * + ( 77 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 23, + col1 FROM tab0 AS cor0
----
23
1
23
21
23
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + 11 * COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT - ( - + 70 ) / col0 <> col0 + - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9962
SELECT + 11 * COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT - ( - + 70 ) / col0 <> col0 + - col1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 > ( - - col1 )
----

query II rowsort
SELECT + col0 AS col1, 62 AS col2 FROM tab1 AS cor0
----
51
62
85
62
91
62

query I rowsort
SELECT ALL + col0 * + ( + col0 ) - col1 AS col1 FROM tab0 AS cor0
----
144
7548
9408

query I rowsort
SELECT DISTINCT - 64 * + ( 53 ) + col2 FROM tab2 AS cor0 WHERE col1 < ( NULL )
----

query I rowsort
SELECT ALL col2 * + 50 FROM tab0 cor0
----
2350
4950
500

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL - COUNT( - - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - COUNT ( - - col2 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE 86 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * + 75 >= + col2 - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - ( + col2 ) * + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - 54 * COUNT( * ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - 54 * COUNT ( * ) FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-9973
SELECT ( - - COUNT( * ) ), 67 + + 43 * 30 AS col0 FROM tab1
----
3
1357

skipif mysql # not compatible
query II rowsort label-9973
SELECT ( - - COUNT ( * ) ), 67 + + 43 * 30 AS col0 FROM tab1
----
3
1357

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < 70 * - - col2 + - col0
----

query I rowsort
SELECT - 19 * + col0 * - - 62 FROM tab2
----
-54188
-75392
-88350

query I rowsort
SELECT col2 * - 40 FROM tab1
----
-2360
-2720
-3840

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + 46 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + 36 * + 19 AS col2 FROM tab2 AS cor0
----
684
684
684

query I rowsort
SELECT ALL + col1 * - + 50 FROM tab0 AS cor0 WHERE NULL <= - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 8 / - - 72 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9981
SELECT ALL + CAST( NULL AS DECIMAL ) + + + COUNT( * ) + - 96 * - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + CAST ( NULL AS REAL ) + + + COUNT ( * ) + - 96 * - - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT 18 BETWEEN NULL AND ( + col0 * + CAST( NULL AS SIGNED ) + - 3 / col2 ) OR NOT col0 BETWEEN col2 + + col1 AND NULL
----
-68
-96

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT 18 BETWEEN NULL AND ( + col0 * + CAST ( NULL AS INTEGER ) + - 3 / col2 ) OR NOT col0 BETWEEN col2 + + col1 AND NULL
----
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT ALL - CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9984
SELECT DISTINCT - 54 + + - col0 - 66 * + col0 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - 54 + + - col0 - 66 * + col0 * + - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + - 49 + + + 42 FROM tab2 AS cor0
----
16
33
51

query I rowsort
SELECT - - col0 + 39 FROM tab0 AS cor0
----
126
136
54

query I rowsort
SELECT ALL - col1 * - col1 + - - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 80 AND NULL
----

query II rowsort
SELECT ALL col1, - col0 + + - col2 FROM tab2 AS cor0
----
51
-69
67
-133
77
-104

query I rowsort
SELECT col0 + - - 85 FROM tab0 AS cor0
----
100
172
182

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 / + col1 AND + - 25 / + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT - 35 + - MAX( DISTINCT col2 ) * 60 AS col0 FROM tab2 AS cor0
----
-3515

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - 35 + - MAX ( DISTINCT col2 ) * 60 AS col0 FROM tab2 AS cor0
----
-3515

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + col2 <> + - 27
----

query I rowsort
SELECT 61 * + 36 AS col0 FROM tab2 AS cor0
----
2196
2196
2196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT 77 * - col0 / + col0 * - CAST( NULL AS SIGNED ) * - ( - col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT 77 * - col0 / + col0 * - CAST ( NULL AS INTEGER ) * - ( - col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 col2, ( + 74 ) FROM tab2
----
38
74
38
74
38
74

query II rowsort
SELECT - col0, - col1 * - 20 AS col1 FROM tab0
----
-15
1620
-87
420
-97
20

query I rowsort
SELECT DISTINCT + 44 + + 77 FROM tab2
----
121

query I rowsort
SELECT ( - 34 ) * - col0 * col0 AS col1 FROM tab0
----
257346
319906
7650