sqllogictest
Artifact Content
Not logged in

Artifact 56b50ffd02d4e3cc1ece3e10855d6dadcbbd37db:


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 II rowsort
SELECT col0 AS col1, + col2 * - col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + + col0 AS col2 FROM tab2 WHERE NOT + 8 + 26 IS NOT NULL
----

query I rowsort
SELECT ALL 44 * 73 * + col0 AS col1 FROM tab2
----
147752
205568
240900

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3
SELECT - - CAST ( col2 AS INTEGER ) col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT ( - col2 ) DIV 98 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4
SELECT ( - col2 ) / 98 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT ALL + MAX( - col1 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + MAX ( - col1 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-15

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT + 23 * col2 DIV + col1 FROM tab0
----
10
13
2277

skipif mysql # not compatible
query I rowsort label-8
SELECT + 23 * col2 / + col1 FROM tab0
----
10
13
2277

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-11
SELECT - COUNT( ALL 86 ) col0, ( - COUNT( DISTINCT col1 ) ) + + - COUNT( * ) col2 FROM tab0 cor0
----
-3
-6

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-12
SELECT - + col2 * - - ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT + + ( + col1 ) NOT BETWEEN + + col0 + + CAST ( NULL AS REAL ) + + col1 * ( + col0 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT + COUNT( DISTINCT 5 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT + COUNT ( DISTINCT 5 ) AS col2 FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 4 / + col0 AND - col1
----

query I rowsort
SELECT ALL + + 59 + + col0 + + col2 + - col1 * + col0 * + ( + 39 ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - col0 * col0
----

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

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

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-20
SELECT DISTINCT - col1 DIV - + CAST( col2 AS SIGNED ) col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-20
SELECT DISTINCT - col1 / - + CAST ( col2 AS INTEGER ) col1 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NULL <= + col0
----
0

query II rowsort
SELECT + + 87 AS col0, - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
87
-23
87
-40
87
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 37 col1, - col1 AS col0 FROM tab1
----
-37
-14
-37
-47
-37
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT + MIN( col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-25
SELECT + MIN ( col0 ) AS col0 FROM tab2 cor0
----
46

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

query I rowsort
SELECT ALL - ( + 91 ) AS col0 FROM tab2 AS cor0
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE + - 12 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT + col2 + col1 DIV 69 AS col1 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-29
SELECT + col2 + col1 / 69 AS col1 FROM tab0
----
10
48
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 + - col0 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-32
SELECT ALL - + 77 DIV - 10 - + + 31 * - col0 + - col2 AS col1 FROM tab2 AS cor0
----
1410
1951
2274

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL - + 77 / - 10 - + + 31 * - col0 + - col2 AS col1 FROM tab2 AS cor0
----
1410
1951
2274

query I rowsort
SELECT ALL - col1 * + 91 + 86 FROM tab1 AS cor0 WHERE + 50 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT MAX( - col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-34
SELECT MAX ( - col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
45

query II rowsort
SELECT DISTINCT 7 - + 14 AS col2, + 79 AS col1 FROM tab2 AS cor0
----
-7
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 88 + - + col2 * + ( col0 ) col1, 29 AS col0 FROM tab0 cor0
----
-793
29
-958
29
-9691
29

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL ) OR NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT + 34 DIV - + 77 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-40
SELECT + 34 / - + 77 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * + col2 col1 FROM tab1
----
1298
1496
2112

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

skipif mysql # not compatible
query I rowsort label-42
SELECT - SUM ( + + 70 ) AS col2 FROM tab0
----
-210

query II rowsort
SELECT DISTINCT col0, col0 - + 59 FROM tab2 AS cor0
----
46
-13
64
5
75
16

query I rowsort
SELECT ALL + col0 * + - 30 + + 3 * - col0 FROM tab0 AS cor0
----
-2871
-3201
-495

query I rowsort
SELECT - - col1 * + 47 FROM tab2 AS cor0
----
2397
3149
3619

query II rowsort
SELECT + 40, col0 AS col0 FROM tab2 AS cor0
----
40
46
40
64
40
75

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

query I rowsort
SELECT DISTINCT + 33 * - + col1 * - col0 + - col1 + - col0 FROM tab0 cor0
----
3103
39999
60183

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT DISTINCT ( + 67 ) DIV - + col0 AS col0 FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT ( + 67 ) / - + col0 AS col0 FROM tab0 AS cor0
----
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL MAX( ALL - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL MAX ( ALL - col1 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-51
SELECT - COUNT( * ) DIV + ( 65 ) + 91 AS col1 FROM tab1 WHERE - - col2 * - col1 * col0 DIV - col1 + - 87 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-51
SELECT - COUNT ( * ) / + ( 65 ) + 91 AS col1 FROM tab1 WHERE - - col2 * - col1 * col0 / - col1 + - 87 IS NULL
----
91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-53
SELECT + COUNT( * ) * + 35 * - COUNT( * ) AS col1, 38 AS col1 FROM tab0
----
-315
38

skipif mysql # not compatible
query II rowsort label-53
SELECT + COUNT ( * ) * + 35 * - COUNT ( * ) AS col1, 38 AS col1 FROM tab0
----
-315
38

query II rowsort
SELECT col1 + - col0, + col0 AS col1 FROM tab2
----
-8
75
13
64
5
46

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT + 28 * - - 82 + + col1 + + col1 DIV - + 87 FROM tab1
----
2301
2310
2343

skipif mysql # not compatible
query I rowsort label-55
SELECT + 28 * - - 82 + + col1 + + col1 / - + 87 FROM tab1
----
2301
2310
2343

query I rowsort
SELECT + 65 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - ( 20 ) + - col2 + + + col1 AS col2 FROM tab2
----
-11
17
8

onlyif mysql # DIV for integer division: 
query I rowsort label-58
SELECT DISTINCT - col0 DIV + 79 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT - col0 / + 79 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT - + col1 - + + 43 AS col1, - col1 FROM tab2 AS cor0
----
-110
-67
-120
-77
-94
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * + 95 AS col0 FROM tab2
----
4845
6365
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL MIN( + 75 ) + - COUNT( * ) - 76 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL MIN ( + 75 ) + - COUNT ( * ) - 76 FROM tab1
----
-4

query I rowsort
SELECT DISTINCT - + 46 + + 65 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL SUM( DISTINCT - 43 ) FROM tab0 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL SUM ( DISTINCT - 43 ) FROM tab0 cor0
----
-43

query I rowsort
SELECT DISTINCT + ( col0 ) + + 28 * col0 FROM tab0 AS cor0
----
2523
2813
435

query I rowsort
SELECT - 42 + + - col2 FROM tab0 AS cor0
----
-141
-52
-89

query II rowsort
SELECT + col1 AS col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - col1 * - - 30 FROM tab1 AS cor0
----
-1410
-150
-420

query II rowsort
SELECT ALL - col0, - col2 + + - 52 + col1 AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - MAX( ALL 1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-70
SELECT - MAX ( ALL 1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col0 * + 29 * + col0 AS col1 FROM tab2
----
118784
163125
61364

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-72
SELECT - 19 / - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT - 19 / - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = - - 29
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 26 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL MAX( - 53 ) AS col1 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL MAX ( - 53 ) AS col1 FROM tab1
----
-53

query I rowsort
SELECT + 54 + + col0 AS col2 FROM tab0 AS cor0
----
141
151
69

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 54
----

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

query I rowsort
SELECT - 63 + col0 AS col1 FROM tab1 AS cor0
----
-12
22
28

query I rowsort
SELECT - + col2 + - + 31 FROM tab2 cor0
----
-54
-71
-89

query I rowsort
SELECT col1 + ( 91 ) - + ( - col0 ) * - col0 - 89 AS col0 FROM tab0 AS cor0
----
-142
-7546
-9406

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

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT + ( COUNT ( * ) ) * + MAX ( - col2 ) FROM tab0 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL col2 DIV - - 14 AS col2 FROM tab0 AS cor0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL col2 / - - 14 AS col2 FROM tab0 AS cor0
----
0
3
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-86
SELECT + + col0 + + CAST( - col1 AS SIGNED ), col1 * + - col0 * + - col1 AS col0 FROM tab0 AS cor0
----
-66
98415
66
38367
96
97

skipif mysql # not compatible
query II rowsort label-86
SELECT + + col0 + + CAST ( - col1 AS INTEGER ), col1 * + - col0 * + - col1 AS col0 FROM tab0 AS cor0
----
-66
98415
66
38367
96
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT - 52 + col2 - - + CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
12
58
63

skipif mysql # not compatible
query I rowsort label-87
SELECT - 52 + col2 - - + CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
12
58
63

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL MIN( col2 ) + - 5 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL MIN ( col2 ) + - 5 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT ALL MIN( 16 ) AS col0 FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL MIN ( 16 ) AS col0 FROM tab2 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL 57 + - - col2 + + col0 * col2 AS col2 FROM tab1
----
5049
5131
6313

query II rowsort
SELECT col1 AS col1, + col2 * 26 AS col2 FROM tab0
----
1
2574
21
260
81
1222

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL >= NULL
----

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

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

query I rowsort
SELECT DISTINCT 9 - + col0 * + col2 - - 69 FROM tab0 AS cor0
----
-627
-792
-9525

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + + 78 * + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
5850

skipif mysql # not compatible
query I rowsort label-95
SELECT + + 78 * + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
5850

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 56 + 7 * - col1 = + col1 / + col0 + - 17 * + + col1
----

query I rowsort
SELECT - + ( ( col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= NULL AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 89 AS col2 FROM tab2 AS cor0 WHERE 74 < ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-100
SELECT + 92 AS col1, SUM( - col1 ) FROM tab0
----
92
-103

skipif mysql # not compatible
query II rowsort label-100
SELECT + 92 AS col1, SUM ( - col1 ) FROM tab0
----
92
-103

query I rowsort
SELECT - 29 * - col1 FROM tab0
----
2349
29
609

query I rowsort
SELECT - col1 * - 47 FROM tab0
----
3807
47
987

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT + SUM( + col1 ) * - ( - COUNT( * ) ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-104
SELECT + SUM ( + col1 ) * - ( - COUNT ( * ) ) FROM tab1
----
198

query II rowsort
SELECT DISTINCT 5 AS col1, + col1 + + col1 + ( + 88 ) FROM tab0
----
5
130
5
250
5
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE NOT 70 >= NULL
----

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

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

query II rowsort
SELECT + ( - + ( + col2 ) ) AS col0, + col1 * col0 FROM tab0 cor0 WHERE NOT col1 * + 95 IS NULL
----
-10
1827
-47
1215
-99
97

query II rowsort
SELECT DISTINCT 13 AS col1, 50 FROM tab1 AS cor0
----
13
50

query II rowsort
SELECT ALL - col1, + col0 + col2 AS col1 FROM tab2 AS cor0
----
-51
69
-67
133
-77
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-111
SELECT DISTINCT CAST( NULL AS SIGNED ) + MAX( DISTINCT col1 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT CAST ( NULL AS INTEGER ) + MAX ( DISTINCT col1 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT + ( 16 ) * COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT + ( 16 ) * COUNT ( * ) FROM tab2
----
48

query I rowsort
SELECT DISTINCT - 94 * - 12 + - col0 * 1 FROM tab1
----
1037
1043
1077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT DISTINCT - 43 * - col0 - col2 * col2 AS col1 FROM tab2 WHERE col2 - CAST( NULL AS SIGNED ) NOT IN ( - col2 / - 68 )
----

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - 43 * - col0 - col2 * col2 AS col1 FROM tab2 WHERE col2 - CAST ( NULL AS INTEGER ) NOT IN ( - col2 / - 68 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( 26 ) ) <> ( - 29 - + ( col2 ) )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-119
SELECT + CAST( NULL AS DECIMAL ) - 75 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT + CAST ( NULL AS REAL ) - 75 AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT DISTINCT - COUNT( ALL 93 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT - COUNT ( ALL 93 ) FROM tab1
----
-3

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

query I rowsort
SELECT ALL 96 + + col0 FROM tab2 WHERE 62 > 22 - - 51
----

query I rowsort
SELECT - 21 * - 22 AS col0 FROM tab0
----
462
462
462

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT + MIN( DISTINCT + col1 ) * COUNT( * ) AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-125
SELECT + MIN ( DISTINCT + col1 ) * COUNT ( * ) AS col0 FROM tab2
----
153

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - ( + 57 ) ) * 67 NOT BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 17 + col0 FROM tab0 WHERE ( - col2 ) BETWEEN ( NULL ) AND + col0
----

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

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

query I rowsort
SELECT AVG ( ALL - col1 ) FROM tab2 WHERE col2 + 8 * + col0 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-130
SELECT DISTINCT * FROM tab0 WHERE 14 * CAST( NULL AS SIGNED ) NOT IN ( + 19 * col0 )
----

skipif mysql # not compatible
query III rowsort label-130
SELECT DISTINCT * FROM tab0 WHERE 14 * CAST ( NULL AS INTEGER ) NOT IN ( + 19 * col0 )
----

query I rowsort
SELECT 64 * 51 FROM tab0
----
3264
3264
3264

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT IN ( ( col0 ) )
----

query I rowsort
SELECT ALL 34 * col0 FROM tab1
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT ALL - COUNT( * ) * COUNT( col0 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL - COUNT ( * ) * COUNT ( col0 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT 69 * + col2 AS col0 FROM tab1
----
4071
4692
6624

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-138
SELECT DISTINCT - ( COUNT( * ) ) + ( - 90 ) FROM tab1 AS cor0
----
-93

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * 84 IN ( + 81 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) * col0 IN ( - col1 * 73 + + col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT 40 - - COUNT( * ) * 20 AS col0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-141
SELECT 40 - - COUNT ( * ) * 20 AS col0 FROM tab2
----
100

query I rowsort
SELECT 61 * + 69 - - col0 AS col1 FROM tab2
----
4255
4273
4284

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

query I rowsort
SELECT + - 1 * + ( col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-145
SELECT ALL MAX( ALL + CAST( NULL AS SIGNED ) ) * 32 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL MAX ( ALL + CAST ( NULL AS INTEGER ) ) * 32 AS col2 FROM tab1 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-146
SELECT + 33 / + col0 AS col1 FROM tab2 cor0
----
0
0
0

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 <> col1 * 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT ( 80 ) DIV - 78 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-151
SELECT ( 80 ) / - 78 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT - ( - 38 ) * + col2 AS col2 FROM tab1 AS cor0
----
2242
2584
3648

query I rowsort
SELECT DISTINCT + col0 * - 10 FROM tab1 AS cor0
----
-510
-850
-910

query III rowsort
SELECT * FROM tab2 WHERE NOT 79 / 55 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-156
SELECT * FROM tab0 WHERE NOT - ( 32 ) IN ( - 68 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-156
SELECT * FROM tab0 WHERE NOT - ( 32 ) IN ( - 68 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-157
SELECT ALL SUM( ALL - - CAST( 58 AS SIGNED ) ) AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL SUM ( ALL - - CAST ( 58 AS INTEGER ) ) AS col0 FROM tab2
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT COUNT( * ) / MIN( ALL + 23 ) FROM tab1 WHERE NOT CAST( + col1 AS SIGNED ) + - 73 <> 53
----
NULL

skipif mysql # not compatible
query I rowsort label-158
SELECT COUNT ( * ) / MIN ( ALL + 23 ) FROM tab1 WHERE NOT CAST ( + col1 AS INTEGER ) + - 73 <> 53
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( 19 * col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-161
SELECT 17 / 19 + col2 AS col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IN ( 65 )
----

skipif mysql # not compatible
query I rowsort label-161
SELECT 17 / 19 + col2 AS col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( 65 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-163
SELECT ALL 58 DIV + 32 col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-163
SELECT ALL 58 / + 32 col0 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( - col1 )
----

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

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col2 / 81 IN ( col0 )
----
51
85
91

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

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

query I rowsort
SELECT ALL + + 86 AS col0 FROM tab2 AS cor0
----
86
86
86

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

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

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

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

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

query I rowsort
SELECT ALL 69 AS col0 FROM tab1 AS cor0 WHERE NOT ( 50 ) BETWEEN 52 AND - col0 + + 36
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-174
SELECT CAST( - COUNT( * ) AS SIGNED ) DIV + 74 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-174
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / + 74 AS col1 FROM tab2 cor0
----
0

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

query I rowsort
SELECT ALL col2 + 74 * + - 70 + - col0 FROM tab1
----
-5135
-5203
-5206

query I rowsort
SELECT + 3 + 57 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT 58 + + MAX( DISTINCT - col1 ) * 83 AS col1 FROM tab1
----
-357

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT 58 + + MAX ( DISTINCT - col1 ) * 83 AS col1 FROM tab1
----
-357

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

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT + 77 + COUNT( * ) col2 FROM tab2
----
80

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

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

query I rowsort
SELECT ALL 51 / col0 AS col1 FROM tab1 AS cor0 WHERE ( - 22 * - col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ( + ( + + col1 ) ) DIV col0 + ( - col1 + - 83 ) col1 FROM tab2 AS cor0
----
-133
-150
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-184
SELECT ( + ( + + col1 ) ) / col0 + ( - col1 + - 83 ) col1 FROM tab2 AS cor0
----
-133
-150
-159

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

skipif mysql # not compatible
query I rowsort label-185
SELECT - col2 / - col1 + + - ( + ( - CAST ( - col2 AS INTEGER ) ) ) / col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT AVG ( - col1 ) FROM tab2 AS cor0 WHERE + col0 + + col0 / 49 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT + MAX( + col1 ) FROM tab2 AS cor0 WHERE - col1 > + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT + MAX ( + col1 ) FROM tab2 AS cor0 WHERE - col1 > + col1
----
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 + - - col1 FROM tab2 AS cor0
----
143
205
217

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 80 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, 73 * + 43 FROM tab1 AS cor0
----
-59
3139
-68
3139
-96
3139

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL - 37 * + + COUNT( * ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL - 37 * + + COUNT ( * ) FROM tab0
----
-111

query I rowsort
SELECT col1 - col2 FROM tab0 WHERE ( - col1 ) >= - col1
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 97 - - col1 = ( 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 73 * + col1 FROM tab2 WHERE NOT ( - 10 - - col1 ) > ( NULL )
----

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

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

query I rowsort
SELECT + 94 - + 28 FROM tab0 WHERE + col2 + col1 IS NULL
----

query I rowsort
SELECT + 66 * + col0 - - col1 + - col2 * + col1 FROM tab1
----
2036
2857
5320

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= ( NULL ) AND NOT 19 <> col2
----

query I rowsort
SELECT DISTINCT ( + + col1 ) + - 30 AS col0 FROM tab0
----
-29
-9
51

query I rowsort
SELECT col0 - ( 40 ) AS col2 FROM tab2
----
24
35
6

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT 56 - col0 DIV col1 AS col1 FROM tab0
----
-41
52
56

skipif mysql # not compatible
query I rowsort label-203
SELECT 56 - col0 / col1 AS col1 FROM tab0
----
-41
52
56

query I rowsort
SELECT DISTINCT 16 * + col0 FROM tab0
----
1392
1552
240

query I rowsort
SELECT - - ( - col1 ) - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - - ( MIN( ALL - 18 ) ) * - 72 - + 91 FROM tab0 AS cor0
----
1205

skipif mysql # not compatible
query I rowsort label-206
SELECT - - ( MIN ( ALL - 18 ) ) * - 72 - + 91 FROM tab0 AS cor0
----
1205

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

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE ( - ( + col2 ) ) BETWEEN ( - col1 ) AND ( - ( + 61 ) * - col1 + col1 * - col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-209
SELECT + COUNT ( * ) + + + 40 col2 FROM tab1 AS cor0
----
43

query II rowsort
SELECT 88, + 80 AS col0 FROM tab1
----
88
80
88
80
88
80

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - COUNT( * ) + - COUNT( + 29 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-211
SELECT - COUNT ( * ) + - COUNT ( + 29 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT DISTINCT - col1 - col0 AS col0 FROM tab1 WHERE NOT ( - 3 * - col1 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-213
SELECT + 82 DIV col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-213
SELECT + 82 / col1 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + + 19 AS col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT col0 * + - col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT + 19, 48 + + col0 AS col1 FROM tab1 AS cor0
----
19
133
19
139
19
99

query I rowsort
SELECT DISTINCT + 94 * - col1 * - ( - col2 ) + - + col0 FROM tab1 AS cor0
----
-126387
-27815
-300515

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL - + MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - + MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 33 FROM tab1 AS cor0 WHERE 68 IS NOT NULL
----
33

query I rowsort
SELECT col1 * + col0 + - + col0 FROM tab2 AS cor0
----
2300
4864
4950

query I rowsort
SELECT - 96 FROM tab2 AS cor0 WHERE NOT NULL >= + 36 + + 5 - - 46 * + + 54 * - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - MIN( ALL col2 ) FROM tab2 WHERE NOT NULL <> + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT - MIN ( ALL col2 ) FROM tab2 WHERE NOT NULL <> + 57
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-225
SELECT + 55 AS col1, col1 DIV - col2 AS col1 FROM tab2
----
55
-1
55
-1
55
-2

skipif mysql # not compatible
query II rowsort label-225
SELECT + 55 AS col1, col1 / - col2 AS col1 FROM tab2
----
55
-1
55
-1
55
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + col2 + + + col1 * - + 32 col1, col1 FROM tab2
----
-1655
51
-2161
67
-2488
77

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

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

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

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT MAX ( - 9 ) AS col1 FROM tab2 AS cor0
----
-9

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

query I rowsort
SELECT DISTINCT 16 + + col1 + 98 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
119
128
161

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 69 / col1 )
----

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

query I rowsort
SELECT DISTINCT + 70 - + col2 + - col0 FROM tab1 AS cor0
----
-74
-77
-89

query I rowsort
SELECT col0 - 20 + col0 * 61 AS col2 FROM tab1 AS cor0
----
3142
5250
5622

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT + MIN ( - - col0 ) - - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 30 + + col2 AS col1 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT - - CAST( + + col2 AS SIGNED ) - - col0 + col2 AS col0 FROM tab2 AS cor0
----
144
191
92

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - - CAST ( + + col2 AS INTEGER ) - - col0 + col2 AS col0 FROM tab2 AS cor0
----
144
191
92

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-242
SELECT DISTINCT - col2 + - - col2 DIV + + 58 AS col1 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT - col2 + - - col2 / + + 58 AS col1 FROM tab2
----
-23
-40
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * + + col2 col0 FROM tab0
----
2021
4257
430

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-244
SELECT ALL * FROM tab1 WHERE NOT + 82 > + 76 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-244
SELECT ALL * FROM tab1 WHERE NOT + 82 > + 76 * - + CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-245
SELECT DISTINCT - MAX ( ALL - ( + col1 ) ) + COUNT ( + CAST ( ( + 28 ) AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, col0 )
----

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

query I rowsort
SELECT 52 * + AVG ( ALL - - col1 ) - 76 AS col2 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * + col0 col1 FROM tab2 AS cor0
----
414
576
675

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

onlyif mysql # DIV for integer division: 
query I rowsort label-253
SELECT + 7 DIV 27 FROM tab1 AS cor0 WHERE NOT + col0 IN ( + col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-253
SELECT + 7 / 27 FROM tab1 AS cor0 WHERE NOT + col0 IN ( + col2 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN 11 AND + + col1
----

query I rowsort
SELECT - 70 * - col1 / - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-256
SELECT + 23, COUNT( * ) AS col1 FROM tab1
----
23
3

skipif mysql # not compatible
query II rowsort label-256
SELECT + 23, COUNT ( * ) AS col1 FROM tab1
----
23
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 32 * + + 21 AND 90
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 BETWEEN NULL AND 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-259
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col2 + + ( - 86 ) FROM tab1
----
-18
-27
10

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT ALL col0 DIV + col1 + 64 AS col1 FROM tab1
----
65
67
81

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL col0 / + col1 + 64 AS col1 FROM tab1
----
65
67
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - 46, + 77, + - 31 + ( + col1 ) )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT DISTINCT - col2 DIV + - col1 * + - col1 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - col2 / + - col1 * + - col1 FROM tab0 AS cor0
----
-99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT DISTINCT + + col2 DIV - ( - col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT + + col2 / - ( - col0 ) FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-267
SELECT - 64, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-267
SELECT - 64, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-64
NULL
-64
NULL
-64
NULL

query I rowsort
SELECT ALL - ( - 24 ) - + 58 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - col1 + 16 * - + col1 FROM tab2 AS cor0
----
-1139
-1309
-867

query II rowsort
SELECT col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL COUNT( * ) + - ( ( - + 23 ) ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL COUNT ( * ) + - ( ( - + 23 ) ) FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT - col0 - + col1 DIV - - 14 AS col0 FROM tab1 AS cor0
----
-52
-85
-94

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - col0 - + col1 / - - 14 AS col0 FROM tab1 AS cor0
----
-52
-85
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT col0 DIV - 66 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-273
SELECT col0 / - 66 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT SUM ( + 3 ) FROM tab0
----
9

query II rowsort
SELECT DISTINCT - col0 + col0, col2 FROM tab2
----
0
23
0
40
0
58

query II rowsort
SELECT ( + col0 ) AS col1, - 31 AS col2 FROM tab2
----
46
-31
64
-31
75
-31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-280
SELECT - ( - + col1 ) AS col2, - 71 * + CAST( col0 AS SIGNED ) + - col2 + - - col0 * + 37 * + 32 * col0 + 7 col1 FROM tab2
----
51
2502062
67
6654624
77
4845087

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-280
SELECT - ( - + col1 ) AS col2, - 71 * + CAST ( col0 AS INTEGER ) + - col2 + - - col0 * + 37 * + 32 * col0 + 7 col1 FROM tab2
----
51
2502062
67
6654624
77
4845087

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

query II rowsort
SELECT ALL - - ( - 61 ), col1 FROM tab2 cor0
----
-61
51
-61
67
-61
77

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 21 * + - col2 FROM tab2 AS cor0
----
-1218
-483
-840

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

query I rowsort
SELECT ALL - - 24 * - + col0 FROM tab2 AS cor0
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT - col2 * col2 DIV col1 + - col2 DIV - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 DIV col2 IS NULL
----
-24
-4
-9800

skipif mysql # not compatible
query I rowsort label-290
SELECT - col2 * col2 / col1 + - col2 / - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 / col2 IS NULL
----
-24
-4
-9800

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 79 + - - col2 IN ( ( 52 ) * - - 65 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-292
SELECT - + col1 col2, CAST( + col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-14
28
-47
94
-5
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-292
SELECT - + col1 col2, CAST ( + col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-14
28
-47
94
-5
10

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - MAX( + col0 ) * 2 col0 FROM tab2
----
-150

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

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT - MAX( ( - 45 ) ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-294
SELECT - MAX ( ( - 45 ) ) AS col2 FROM tab0
----
45

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

query I rowsort
SELECT DISTINCT 62 + + - col1 + - col2 AS col0 FROM tab2
----
-12
-55
-63

query I rowsort
SELECT ALL + col2 + 53 AS col2 FROM tab2
----
111
76
93

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

query I rowsort
SELECT DISTINCT 29 + + + col1 AS col1 FROM tab2
----
106
80
96

query I rowsort
SELECT ALL 56 + + - col2 * - - col2 FROM tab1
----
-3425
-4568
-9160

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

query I rowsort
SELECT ALL 92 + col0 AS col0 FROM tab2 AS cor0
----
138
156
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 42 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab1, tab1 AS cor0
----
85

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

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

query I rowsort
SELECT ALL - 66 + 39 AS col1 FROM tab1 cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - COUNT( * ) + 96 AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-309
SELECT - COUNT ( * ) + 96 AS col1 FROM tab1 AS cor0
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-311
SELECT * FROM tab0 AS cor0 WHERE + 96 * - col1 * - CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-311
SELECT * FROM tab0 AS cor0 WHERE + 96 * - col1 * - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 * - 22 + 85, col1 FROM tab2 cor0
----
-1037
51
-1389
67
-1609
77

onlyif mysql # aggregate syntax: 
query II rowsort label-313
SELECT ALL - + COUNT( * ) AS col1, + COUNT( * ) FROM tab2 WHERE NOT + col2 IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-313
SELECT ALL - + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 WHERE NOT + col2 IS NULL
----
-3
3

query II rowsort
SELECT - 62, col0 AS col1 FROM tab1
----
-62
51
-62
85
-62
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 20 col2 FROM tab0
----
-1980
-200
-940

query II rowsort
SELECT ALL col2 * 17, - col2 AS col0 FROM tab1
----
1003
-59
1156
-68
1632
-96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + - MIN( DISTINCT + 12 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-321
SELECT + - MIN ( DISTINCT + 12 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT - - 50 + SUM( DISTINCT - + 99 ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - - 50 + SUM ( DISTINCT - + 99 ) FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT ALL - - ( - COUNT( * ) ), - COUNT( * ) FROM tab0 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL - - ( - COUNT ( * ) ), - COUNT ( * ) FROM tab0 cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT + 17 * - ( - + SUM( - 15 ) ) FROM tab1
----
-765

skipif mysql # not compatible
query I rowsort label-324
SELECT + 17 * - ( - + SUM ( - 15 ) ) FROM tab1
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-325
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NULL > - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 WHERE - 51 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-326
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE - 51 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - 52 AS col0 FROM tab2 WHERE - 86 NOT BETWEEN + col0 AND NULL
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL MAX( col1 ) + - ( - + 61 ) col0 FROM tab1
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-328
SELECT ALL MAX ( col1 ) + - ( - + 61 ) col0 FROM tab1
----
108

query I rowsort
SELECT 85 FROM tab0 WHERE ( NULL NOT BETWEEN col2 / - + col2 - + + 6 AND NULL )
----

query I rowsort
SELECT DISTINCT 73 + - 11 + - + col1 FROM tab0
----
-19
41
61

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 >= - - 9 + + col0 / col1 - - col0
----
1
21

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

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 13 >= - - col0 + + + col0
----

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

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

skipif mysql # not compatible
query I rowsort label-336
SELECT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT ALL - col0 + - 78 AS col1, 20 AS col2 FROM tab2
----
-124
20
-142
20
-153
20

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL - 88 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - 88 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT - col1 + + - 77 - + col2 FROM tab0 AS cor0
----
-108
-177
-205

query I rowsort
SELECT ALL + - col0 + + 29 + 32 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-3
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL + COUNT( * ) * + - 52 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + COUNT ( * ) * + - 52 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT ALL + col2 - - + col0 - - + col0 FROM tab0 AS cor0
----
184
293
77

query I rowsort
SELECT DISTINCT 11 * + col0 FROM tab0 cor0
----
1067
165
957

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * - - 2 col1 FROM tab1
----
156
156
156

query I rowsort
SELECT 13 * + - col2 FROM tab1 WHERE NOT + 46 > + 74 * + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-348
SELECT ALL 9, 2 DIV COUNT( * ) AS col2 FROM tab2
----
9
0

skipif mysql # not compatible
query II rowsort label-348
SELECT ALL 9, 2 / COUNT ( * ) AS col2 FROM tab2
----
9
0

query I rowsort
SELECT DISTINCT - 47 * + col2 AS col0 FROM tab2
----
-1081
-1880
-2726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-350
SELECT ALL ( COUNT( * ) ) DIV - 21 - 80 AS col0 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL ( COUNT ( * ) ) / - 21 - 80 AS col0 FROM tab2
----
-80

query II rowsort
SELECT DISTINCT col1, 77 * ( + ( + col1 ) ) AS col0 FROM tab1
----
14
1078
47
3619
5
385

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT 79 * + + 45 * MIN( ALL + col2 ) FROM tab0
----
35550

skipif mysql # not compatible
query I rowsort label-352
SELECT 79 * + + 45 * MIN ( ALL + col2 ) FROM tab0
----
35550

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT DISTINCT 30 * - - SUM( + col1 ) * ( 62 ) FROM tab2
----
362700

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT 30 * - - SUM ( + col1 ) * ( 62 ) FROM tab2
----
362700

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

skipif mysql # not compatible
query I rowsort label-354
SELECT + col2 / + - col1 AS col2 FROM tab0
----
-99
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-355
SELECT - ( - col1 ) * col2 * CAST( 18 AS SIGNED ) * + - col0, col2 FROM tab1 AS cor0
----
-1233792
96
-451350
59
-5235048
68

skipif mysql # not compatible
query II rowsort label-355
SELECT - ( - col1 ) * col2 * CAST ( 18 AS INTEGER ) * + - col0, col2 FROM tab1 AS cor0
----
-1233792
96
-451350
59
-5235048
68

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

query II rowsort
SELECT ALL + col0, + 77 * + col0 FROM tab2 AS cor0
----
46
3542
64
4928
75
5775

query I rowsort
SELECT ALL - col2 * col1 - 75 FROM tab1 AS cor0 WHERE NULL IN ( col2, 18 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL + + 5 + COUNT( * ) FROM tab2 WHERE col1 IS NOT NULL
----
8

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL + + 5 + COUNT ( * ) FROM tab2 WHERE col1 IS NOT NULL
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT DISTINCT col1 + - - col1 DIV 10 + + col1 * + col0 AS col1 FROM tab1
----
430
4328
729

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT col1 + - - col1 / 10 + + col1 * + col0 AS col1 FROM tab1
----
430
4328
729

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

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

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

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

query I rowsort
SELECT - 76 * - 53 FROM tab1
----
4028
4028
4028

query I rowsort
SELECT DISTINCT - - 25 + - 87 * - col2 - col0 AS col1 FROM tab1 AS cor0
----
5073
5850
8326

query I rowsort
SELECT DISTINCT + - 71 FROM tab2 cor0
----
-71

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

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

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

query I rowsort
SELECT + ( - - 25 ) + + - col2 FROM tab1
----
-34
-43
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-370
SELECT 29 + - + CAST( - ( - + 47 ) AS SIGNED ) AS col2 FROM tab0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-370
SELECT 29 + - + CAST ( - ( - + 47 ) AS INTEGER ) AS col2 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT - 36 + - - col1 FROM tab1
----
-22
-31
11

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

query I rowsort
SELECT 37 + + col0 AS col0 FROM tab1
----
122
128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - MIN( ALL - - 61 ) + MAX( - col0 ) col0 FROM tab2
----
-107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-374
SELECT - MIN ( ALL - - 61 ) + MAX ( - col0 ) col0 FROM tab2
----
-107

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

query I rowsort
SELECT ALL - 37 + col2 FROM tab1
----
22
31
59

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT - 83 + MIN( + col2 ) + - - 71 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT - 83 + MIN ( + col2 ) + - - 71 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2
----
NULL

query I rowsort
SELECT ALL col2 - 42 AS col2 FROM tab1 AS cor0
----
17
26
54

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

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

query I rowsort
SELECT DISTINCT + col0 * 56 AS col2 FROM tab1
----
2856
4760
5096

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 33 BETWEEN ( 5 ) AND col2 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-383
SELECT DISTINCT + COUNT( * ) * + SUM( col2 ) AS col2, 68 FROM tab0
----
468
68

skipif mysql # not compatible
query II rowsort label-383
SELECT DISTINCT + COUNT ( * ) * + SUM ( col2 ) AS col2, 68 FROM tab0
----
468
68

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT ALL - col2 DIV ( + + 67 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - col2 / ( + + 67 ) FROM tab2
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-387
SELECT ALL 12, - ( + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
12
NULL
12
NULL
12
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-387
SELECT ALL 12, - ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
12
NULL
12
NULL
12
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-390
SELECT - CAST( NULL AS SIGNED ) col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-390
SELECT - CAST ( NULL AS INTEGER ) col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 97 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT ALL - - CAST( NULL AS SIGNED ) * + MAX( DISTINCT 1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT 1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * - 53 AS col2 FROM tab0 AS cor0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-394
SELECT ALL 87 DIV - SUM( DISTINCT - 69 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL 87 / - SUM ( DISTINCT - 69 ) FROM tab2
----
1

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

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + COUNT ( * ) + - COUNT ( + + 90 ) FROM tab0 WHERE NOT NULL > + col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT COUNT( * ) * - MIN( ALL + 28 ) FROM tab2 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-398
SELECT COUNT ( * ) * - MIN ( ALL + 28 ) FROM tab2 cor0
----
-84

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

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

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

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

query I rowsort
SELECT ALL - col1 + + + 1 AS col2 FROM tab0 AS cor0
----
-20
-80
0

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT col2 + + col1 * + col0 DIV - col0 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-403
SELECT col2 + + col1 * + col0 / - col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT col2 + + 15 + + ( + col1 ) DIV 28 * + col0 + + - ( + 12 ) + - 85 * - col1 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-37451
-557524
18

skipif mysql # not compatible
query I rowsort label-404
SELECT col2 + + 15 + + ( + col1 ) / 28 * + col0 + + - ( + 12 ) + - 85 * - col1 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-37451
-557524
18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT + col0 + 77 + 40 DIV 91 FROM tab1 AS cor0
----
128
162
168

skipif mysql # not compatible
query I rowsort label-406
SELECT + col0 + 77 + 40 / 91 FROM tab1 AS cor0
----
128
162
168

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

query I rowsort
SELECT 42 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
18522
275562
42

query I rowsort
SELECT + 54 * - col2 FROM tab0 AS cor0
----
-2538
-5346
-540

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

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT col2 / - col0 AS col1 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col0 * - 39 BETWEEN + 43 AND NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT ALL 31 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL 31 / col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 + + + col2 BETWEEN - col0 * - col0 AND + 46
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT DISTINCT + col0 * - 27 + col0 * + col2 + CAST( + 94 AS SIGNED ) * + 27 * - col1 * - col2 * - ( + - col0 ) FROM tab2
----
136945220
500291392
739702425

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + col0 * - 27 + col0 * + col2 + CAST ( + 94 AS INTEGER ) * + 27 * - col1 * - col2 * - ( + - col0 ) FROM tab2
----
136945220
500291392
739702425

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * 70 + + - 60 AS col2 FROM tab0 AS cor0
----
3230
640
6870

query II rowsort
SELECT ALL - col1 * col2 - - col0 AS col0, - col1 FROM tab2 AS cor0
----
-1127
-51
-3016
-77
-3811
-67

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

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

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

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

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

query I rowsort
SELECT ALL + col2 + + 60 * + col0 * - 89 + 25 AS col0 FROM tab0 WHERE NULL IS NULL
----
-464545
-517856
-80028

query I rowsort
SELECT ALL - col2 * - ( + ( - - col2 ) ) FROM tab0
----
100
2209
9801

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-431
SELECT + col2, CAST( NULL AS DECIMAL ) col0 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-431
SELECT + col2, CAST ( NULL AS REAL ) col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-432
SELECT + col1 col1, 41 DIV col0 + + - 86 * - col2 + - col0 FROM tab1
----
14
8205
47
5757
5
4989

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-432
SELECT + col1 col1, 41 / col0 + + - 86 * - col2 + - col0 FROM tab1
----
14
8205
47
5757
5
4989

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT + ( + MIN( 23 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-433
SELECT + ( + MIN ( 23 ) ) FROM tab2
----
23

query I rowsort
SELECT - + col1 * - + 80 FROM tab1 WHERE NOT + ( - 71 ) < - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT MIN( ALL + - col2 ) col0 FROM tab2
----
-58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - COUNT( ALL col2 ) + - 6 + + 41 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-438
SELECT - COUNT ( ALL col2 ) + - 6 + + 41 FROM tab2 AS cor0
----
32

query I rowsort
SELECT 2 FROM tab1 cor0 WHERE NOT ( + + col0 * - col1 IN ( + col1 ) )
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-440
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( + + col1 ) col0 FROM tab1 WHERE - 51 BETWEEN - + 91 + + 51 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-440
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + + col1 ) col0 FROM tab1 WHERE - 51 BETWEEN - + 91 + + 51 AND NULL
----

query I rowsort
SELECT ALL 83 + 45 + - ( col0 ) AS col1 FROM tab0
----
113
31
41

query I rowsort
SELECT ALL + 43 AS col1 FROM tab1 AS cor0 WHERE + col2 NOT IN ( col0 )
----
43
43
43

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

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

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

query I rowsort
SELECT col2 - 63 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
147821
310504
316633

query I rowsort
SELECT col1 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 82 + + col1 )
----

query II rowsort
SELECT col1 + + col1 + ( col0 ) * + 39, 42 * col1 AS col1 FROM tab1
----
2017
588
3325
210
3643
1974

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

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

query I rowsort
SELECT + col0 + col2 * + ( - col1 ) * - col2 + col1 AS col1 FROM tab1
----
129089
17495
217466

query I rowsort
SELECT col0 * 63 * 37 + + ( + col2 ) * 61 AS col1 FROM tab2
----
108629
151624
178363

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT - 20 AS col2, + ( - COUNT( * ) ) FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----
-20
0

skipif mysql # not compatible
query II rowsort label-451
SELECT - 20 AS col2, + ( - COUNT ( * ) ) FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----
-20
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 39 )
----

query I rowsort
SELECT - col0 + - + 63 FROM tab1
----
-114
-148
-154

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

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT 38 * - 27 * - + col0 + - + ( CAST ( NULL AS INTEGER ) ) - - col1 * - ( - col2 ) + + 93 * + col2 * + - ( + col1 ) AS col1 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT - 42 + + + col0 FROM tab0
----
-27
45
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL col1 + + - CAST( 45 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL <> 48 - + 22
----

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL col1 + + - CAST ( 45 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL <> 48 - + 22
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - col2 AS col2 FROM tab0 cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT 47, 52 AS col0 FROM tab0 cor0
----
47
52
47
52
47
52

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

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

query II rowsort
SELECT - + col2, - col0 AS col1 FROM tab2 cor0
----
-23
-46
-40
-64
-58
-75

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

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

skipif mysql # not compatible
query II rowsort label-467
SELECT - col1, col0 / col0 AS col2 FROM tab0 AS cor0
----
-1
1
-21
1
-81
1

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + 57 < + - 96 / + 57
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - col2 * - ( + ( ( 89 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-470
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT - MAX( - - 38 ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - MAX ( - - 38 ) FROM tab1 AS cor0
----
-38

query I rowsort
SELECT ALL - + 45 AS col0 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT + col0 + - - col1 * - 3 + + col1 FROM tab2
----
-56
-59
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT + col2 + col2 DIV col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-474
SELECT + col2 + col2 / col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL - col2 + + col1 * - - ( + 66 ) AS col1 FROM tab1 AS cor0
----
271
3034
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT ALL SUM( ALL - col2 ) - - CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + 79 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL SUM ( ALL - col2 ) - - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 79 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - col1 * - col1 * + col0 + - col1 FROM tab0 AS cor0
----
7971534
805686
96

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

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

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

query I rowsort
SELECT + ( 36 ) * col0 AS col0 FROM tab0 AS cor0
----
3132
3492
540

query I rowsort
SELECT DISTINCT - col2 - - ( - 75 ) * + 21 FROM tab2 AS cor0
----
-1598
-1615
-1633

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-482
SELECT ALL * FROM tab2 WHERE CAST( + col0 AS SIGNED ) * + + 5 NOT BETWEEN 84 * - - col2 / - col0 AND + ( + col0 ) + col1 + - + 65 - - 74 AND ( NULL ) IN ( - 61 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-482
SELECT ALL * FROM tab2 WHERE CAST ( + col0 AS INTEGER ) * + + 5 NOT BETWEEN 84 * - - col2 / - col0 AND + ( + col0 ) + col1 + - + 65 - - 74 AND ( NULL ) IN ( - 61 * + col2 )
----

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

query I rowsort
SELECT ALL 72 * col0 AS col0 FROM tab1
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL + + SUM( ALL - 74 ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + + SUM ( ALL - 74 ) FROM tab2 AS cor0
----
-222

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 84 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT CAST( + + ( - CAST( + - col0 AS SIGNED ) ) AS SIGNED ) * + - col0 * + + 42 FROM tab0
----
-317898
-395178
-9450

skipif mysql # not compatible
query I rowsort label-487
SELECT CAST ( + + ( - CAST ( + - col0 AS INTEGER ) ) AS INTEGER ) * + - col0 * + + 42 FROM tab0
----
-317898
-395178
-9450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 34, col2 col0 FROM tab1 AS cor0
----
34
59
34
68
34
96

query I rowsort
SELECT DISTINCT - 14 AS col0 FROM tab0 cor0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT ALL MIN( DISTINCT CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL MIN ( DISTINCT CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + + 28 FROM tab2 cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT - col1 DIV col2 + - 4 + - col2 * + + col0 * - + 42 FROM tab0 AS cor0
----
29605
36534
403322

skipif mysql # not compatible
query I rowsort label-492
SELECT - col1 / col2 + - 4 + - col2 * + + col0 * - + 42 FROM tab0 AS cor0
----
29605
36534
403322

query II rowsort
SELECT ALL col1, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-494
SELECT CAST( NULL AS SIGNED ) AS col0, 31 + - 7 FROM tab2
----
NULL
24
NULL
24
NULL
24

skipif mysql # not compatible
query II rowsort label-494
SELECT CAST ( NULL AS INTEGER ) AS col0, 31 + - 7 FROM tab2
----
NULL
24
NULL
24
NULL
24

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT COUNT( * ), COUNT( - col1 ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-495
SELECT COUNT ( * ), COUNT ( - col1 ) FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT col0 + 18 FROM tab0
----
105
115
33

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-497
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-81

query I rowsort
SELECT ALL 63 + + - col1 * - - col1 AS col1 FROM tab0
----
-378
-6498
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT ( - - 47 ) AS col0 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-499
SELECT ( - - 47 ) AS col0 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT DISTINCT - SUM( DISTINCT - 86 ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT - SUM ( DISTINCT - 86 ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT - 0 * + 50 - + 88 AS col1 FROM tab2 WHERE 85 > NULL
----

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

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

query I rowsort
SELECT DISTINCT - - col2 - col1 + + 59 AS col2 FROM tab2 AS cor0
----
22
31
50

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - - 22 col2 FROM tab1 AS cor0
----
-37
-46
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT MIN( + + col1 ) * 5 + 31 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT MIN ( + + col1 ) * 5 + 31 FROM tab1 AS cor0
----
56

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-509
SELECT ALL + 49 * + CAST( NULL AS DECIMAL ) AS col2, 40 FROM tab2 AS cor0
----
NULL
40
NULL
40
NULL
40

skipif mysql # not compatible
query II rowsort label-509
SELECT ALL + 49 * + CAST ( NULL AS REAL ) AS col2, 40 FROM tab2 AS cor0
----
NULL
40
NULL
40
NULL
40

query I rowsort
SELECT - - col2 + - + 31 - + col1 FROM tab0 AS cor0
----
-42
-65
67

query I rowsort
SELECT + 32 * col0 + - col2 AS col0 FROM tab0
----
2774
3005
433

query I rowsort
SELECT DISTINCT col1 * + + 33 AS col1 FROM tab1
----
1551
165
462

query I rowsort
SELECT DISTINCT + 59 * + col0 FROM tab0
----
5133
5723
885

query I rowsort
SELECT DISTINCT + 15 * + + col2 * + - col0 FROM tab0
----
-10575
-13050
-144045

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

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

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT MAX ( ALL + - 94 ) FROM tab2
----
-94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT col1 DIV + - 99 + + col2 * col0 FROM tab1 cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-518
SELECT col1 / + - 99 + + col2 * col0 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT col1 * - - ( + 22 ) AS col0 FROM tab0 AS cor0
----
1782
22
462

query II rowsort
SELECT + col1, - 56 + + - 75 * - + col1 * - - col2 AS col0 FROM tab1 AS cor0
----
14
100744
47
239644
5
22069

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

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

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

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 WHERE - 8 * col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT - - col2 DIV + 9 + col1 AS col0 FROM tab1 AS cor0
----
11
24
54

skipif mysql # not compatible
query I rowsort label-524
SELECT - - col2 / + 9 + col1 AS col0 FROM tab1 AS cor0
----
11
24
54

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-525
SELECT + + COUNT ( * ) + - + 93 col1 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT MIN( ALL - + ( - + col0 ) ) * + + COUNT( * ) + - - COUNT( * ) + 98 AS col1 FROM tab0 cor0
----
146

skipif mysql # not compatible
query I rowsort label-526
SELECT MIN ( ALL - + ( - + col0 ) ) * + + COUNT ( * ) + - - COUNT ( * ) + 98 AS col1 FROM tab0 cor0
----
146

query I rowsort
SELECT col0 * - 48 + col0 + col1 FROM tab0 AS cor0
----
-4068
-4558
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 22 col2 FROM tab2
----
-1122
-1474
-1694

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

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT - COUNT ( * ) * + 54 FROM tab1
----
-162

onlyif mysql # DIV for integer division: 
query II rowsort label-530
SELECT ALL col1 DIV + col1 + + col0 AS col0, - col2 FROM tab2
----
47
-23
65
-40
76
-58

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL col1 / + col1 + + col0 AS col0, - col2 FROM tab2
----
47
-23
65
-40
76
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-531
SELECT ALL - COUNT( * ) DIV 41 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL - COUNT ( * ) / 41 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-532
SELECT + COUNT( * ) AS col2, MIN( col0 ) AS col1 FROM tab2 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-532
SELECT + COUNT ( * ) AS col2, MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
3
46

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

query I rowsort
SELECT - - 56 AS col2 FROM tab0 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 36 col1 FROM tab1 AS cor0
----
104
132
95

query II rowsort
SELECT DISTINCT + col2 AS col2, 36 * + - col0 AS col2 FROM tab0
----
10
-3132
47
-540
99
-3492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - 74 * - SUM( DISTINCT col2 ) AS col2 FROM tab0
----
11544

skipif mysql # not compatible
query I rowsort label-538
SELECT - 74 * - SUM ( DISTINCT col2 ) AS col2 FROM tab0
----
11544

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col1 * - col0 col0 FROM tab1 cor0
----
-59
-425
-68
-4277
-96
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT - 69 AS col1, COUNT( - 33 ) FROM tab0 cor0
----
-69
3

skipif mysql # not compatible
query II rowsort label-541
SELECT - 69 AS col1, COUNT ( - 33 ) FROM tab0 cor0
----
-69
3

query I rowsort
SELECT DISTINCT - - col0 + + 20 AS col2 FROM tab0 AS cor0
----
107
117
35

query I rowsort
SELECT ALL 70 - + col2 FROM tab2 AS cor0
----
12
30
47

query I rowsort
SELECT DISTINCT col0 * - 10 - - 13 AS col2 FROM tab2 AS cor0
----
-447
-627
-737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 * CAST( NULL AS SIGNED ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-545
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 * CAST ( NULL AS INTEGER ) = NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + + col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT ALL + - COUNT( * ) - - COUNT( * ) + + ( + 27 ) * - + COUNT( * ) col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-548
SELECT ALL + - COUNT ( * ) - - COUNT ( * ) + + ( + 27 ) * - + COUNT ( * ) col1 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT DISTINCT - 32 + + AVG ( ALL col0 ) / - SUM( + col1 ) FROM tab2 WHERE - 66 * - - 62 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT - 32 + + AVG ( ALL col0 ) / - SUM ( + col1 ) FROM tab2 WHERE - 66 * - - 62 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col0 col2 FROM tab2 cor0
----
-1058
-2560
-4350

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

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

query I rowsort
SELECT + col0 * + + col0 * + col1 * + 27 AS col2 FROM tab1
----
10508589
975375
983178

query I rowsort
SELECT + 30 * + col2 AS col0 FROM tab0
----
1410
2970
300

query I rowsort
SELECT ALL - col2 * + + 0 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

query II rowsort
SELECT ALL + col2 AS col1, + col2 - + + 31 FROM tab1 AS cor0 WHERE NOT - col0 + + - col2 * - + col0 - - - 97 * - ( - col2 ) + 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> col0 * - col1
----

query II rowsort
SELECT DISTINCT + col2, - 87 FROM tab1 AS cor0
----
59
-87
68
-87
96
-87

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

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

skipif mysql # not compatible
query I rowsort label-560
SELECT COUNT ( * ) / + - 45 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-561
SELECT DISTINCT 64 DIV + MIN( DISTINCT + 78 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT 64 / + MIN ( DISTINCT + 78 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - 52 + - col2 AS col1 FROM tab2
----
-110
-75
-92

query I rowsort
SELECT + 70 + 3 * col2 FROM tab2
----
139
190
244

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

query I rowsort
SELECT 77 * 78 + - + col1 AS col0 FROM tab0
----
5925
5985
6005

query I rowsort
SELECT col2 * - col2 + + col1 + - col1 * + 61 AS col0 FROM tab0
----
-1360
-7069
-9861

query I rowsort
SELECT 13 * - col0 - col2 FROM tab0 WHERE NULL <= NULL OR ( NULL ) IS NULL
----
-1141
-1360
-242

query II rowsort
SELECT + - col1, - ( col0 ) AS col2 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT COUNT( + + 6 ) * + COUNT( * ) + + 38 + + 64 AS col2 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-569
SELECT COUNT ( + + 6 ) * + COUNT ( * ) + + 38 + + 64 AS col2 FROM tab0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-570
SELECT 12 + + col0 col2, 81 - + 42 + - CAST( + col2 AS SIGNED ) FROM tab1
----
103
-29
63
-57
97
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-570
SELECT 12 + + col0 col2, 81 - + 42 + - CAST ( + col2 AS INTEGER ) FROM tab1
----
103
-29
63
-57
97
-20

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

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

query II rowsort
SELECT ALL + 23 + 16 AS col0, 29 * + col2 FROM tab1
----
39
1711
39
1972
39
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + - MIN( ALL + - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-573
SELECT + - MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-574
SELECT - 83 DIV MAX( DISTINCT - 28 ) AS col1, 18 AS col2 FROM tab0
----
2
18

skipif mysql # not compatible
query II rowsort label-574
SELECT - 83 / MAX ( DISTINCT - 28 ) AS col1, 18 AS col2 FROM tab0
----
2
18

query I rowsort
SELECT DISTINCT 32 * + - 80 + - + 17 + + col0 * + + col2 * + + 58 * - 35 AS col0 FROM tab2
----
-2150317
-5199377
-8833077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT 40 * + 45 - - col0 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT 40 * + 45 - - col0 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + 83 + + + 83 - + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 15 * + col1 * - col2 = - col2 * col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL + - COUNT( * ) - + 68 FROM tab1 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + - COUNT ( * ) - + 68 FROM tab1 cor0
----
-71

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

query I rowsort
SELECT - - 35 FROM tab2 AS cor0 WHERE NOT NULL <= col2
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT - 68, SUM( 76 ) col2 FROM tab2
----
-68
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-587
SELECT - 68, SUM ( 76 ) col2 FROM tab2
----
-68
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-588
SELECT DISTINCT 27 AS col1 FROM tab1 WHERE NOT col0 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT 27 AS col1 FROM tab1 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL col0 * - 80 AS col2, 13 FROM tab1
----
-4080
13
-6800
13
-7280
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-590
SELECT ALL 13 AS col1, + CAST( col2 AS SIGNED ) col2 FROM tab1
----
13
59
13
68
13
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-590
SELECT ALL 13 AS col1, + CAST ( col2 AS INTEGER ) col2 FROM tab1
----
13
59
13
68
13
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * 76 + - - 10 <> col0 / - col0 - - col2 * + col2 + - - ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT + - 73 DIV col1 AS col0 FROM tab0 AS cor0
----
-3
-73
0

skipif mysql # not compatible
query I rowsort label-592
SELECT + - 73 / col1 AS col0 FROM tab0 AS cor0
----
-3
-73
0

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

query I rowsort
SELECT ALL + + 9 AS col0 FROM tab0 AS cor0
----
9
9
9

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

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

query I rowsort
SELECT - - col0 * + + ( 65 ) * + + col1 + - col2 AS col1 FROM tab0 AS cor0
----
118745
6206
78928

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-597
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) / ( - ( + - col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-597
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) / ( - ( + - col0 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL - 17 * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - 17 * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT DISTINCT COUNT( DISTINCT - - col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 + - - 24 * - + col1 col1 FROM tab2 AS cor0
----
-1293
-1741
-1952

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT + + col2 + - col2 DIV 62 * + col0 FROM tab1 cor0
----
-23
45
59

skipif mysql # not compatible
query I rowsort label-604
SELECT + + col2 + - col2 / 62 * + col0 FROM tab1 cor0
----
-23
45
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-605
SELECT * FROM tab2 AS cor0 WHERE + ( + + 83 ) BETWEEN NULL AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-605
SELECT * FROM tab2 AS cor0 WHERE + ( + + 83 ) BETWEEN NULL AND - - CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT - COUNT( - col0 ) * - 13 + 99 * + 77 FROM tab0 AS cor0
----
7662

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT - COUNT ( - col0 ) * - 13 + 99 * + 77 FROM tab0 AS cor0
----
7662

query I rowsort
SELECT - + col0 + + col0 * - 34 * + col0 + + col1 AS col1 FROM tab1 AS cor0
----
-245730
-281598
-88471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT CAST( + + col1 AS SIGNED ) + - 69 AS col1 FROM tab0 AS cor0
----
-48
-68
12

skipif mysql # not compatible
query I rowsort label-609
SELECT CAST ( + + col1 AS INTEGER ) + - 69 AS col1 FROM tab0 AS cor0
----
-48
-68
12

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> 41
----

query III rowsort
SELECT ALL - + 44 * - - ( + - 82 ) + ( - col1 ) + - ( col2 ), col1 * + 86 + - + col1 AS col2, 87 AS col1 FROM tab0 cor0
----
9 values hashing to 523d4b9fcb90d0a10f408c5dab50b541

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + COUNT( * ) + 42 FROM tab1, tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-612
SELECT + COUNT ( * ) + 42 FROM tab1, tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-613
SELECT ALL + SUM( + - col2 ) + COUNT( * ) * - COUNT( * ) DIV - - MIN( DISTINCT + + 86 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + SUM ( + - col2 ) + COUNT ( * ) * - COUNT ( * ) / - - MIN ( DISTINCT + + 86 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT ALL - col0 + + 91 FROM tab1
----
0
40
6

query I rowsort
SELECT ALL ( - 0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT + + MAX( ALL 20 ) - + 35 + + - 5 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-616
SELECT + + MAX ( ALL 20 ) - + 35 + + - 5 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL col0 + + col0 * - col2 * col0 FROM tab2 AS cor0
----
-163776
-326175
-48622

query I rowsort
SELECT DISTINCT - col2 + 69 AS col1 FROM tab2 AS cor0
----
11
29
46

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

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

query I rowsort
SELECT + 35 * col0 FROM tab0
----
3045
3395
525

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

query I rowsort
SELECT ALL col1 + 84 FROM tab2 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT DISTINCT - col2 DIV - 81 + 83 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT - col2 / - 81 + 83 FROM tab2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-627
SELECT ALL + CAST( 18 AS SIGNED ) AS col1 FROM tab0 WHERE - col0 <= col0 * - col0
----

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + CAST ( 18 AS INTEGER ) AS col1 FROM tab0 WHERE - col0 <= col0 * - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 12 BETWEEN ( 30 * col0 ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT DISTINCT ( + 11 ) - + 2 DIV COUNT( * ) AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT ( + 11 ) - + 2 / COUNT ( * ) AS col1 FROM tab1
----
11

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / 29 NOT IN ( + 86 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT + col1 = col1 / 14
----
-23
-40
-58

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT + 65 + - 32 * 90 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - 3 ) AND 33 + col2 / 98
----

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

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

query I rowsort
SELECT DISTINCT - 5 FROM tab1 AS cor0 WHERE NOT 65 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + 0 + + 5 <= ( ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT ALL ( + 3 ) DIV + col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL ( + 3 ) / + col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL SUM( ALL col1 ) + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL SUM ( ALL col1 ) + COUNT ( * ) FROM tab1
----
69

query III rowsort
SELECT * FROM tab2 WHERE + 95 IN ( - 12 )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 41 ) IN ( + col1 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT col0 DIV - 42 + + 98 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
97
97
97

skipif mysql # not compatible
query I rowsort label-651
SELECT col0 / - 42 + + 98 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-652
SELECT DISTINCT - 51 * - CAST( - 52 * + col2 + - 45 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
-158704
-182563
-256791

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - 51 * - CAST ( - 52 * + col2 + - 45 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
-158704
-182563
-256791

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT MAX( ALL + col0 ) FROM tab0 AS cor0 WHERE + col1 * 48 + + col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT MAX ( ALL + col0 ) FROM tab0 AS cor0 WHERE + col1 * 48 + + col0 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + - col0 * col1 + - col1 FROM tab1 AS cor0
----
-430
-4324
-728

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN ( col1 ) AND ( NULL )
----
15
81
47
87
21
10

query I rowsort
SELECT - 92 + col1 * col0 FROM tab0 AS cor0
----
1123
1735
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-658
SELECT + + 50 * CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT + + 50 * CAST ( NULL AS REAL ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT + 5 + - 75 FROM tab1
----
-70
-70
-70

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) * + col2 NOT IN ( - 3 + 8 )
----

query I rowsort
SELECT - 89 + - col1 * + ( 29 - + 87 ) FROM tab1
----
201
2637
723

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT DISTINCT + col2 DIV - - col0 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT + col2 / - - col0 + + col0 FROM tab2
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL + COUNT( + col1 ) + 0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + COUNT ( + col1 ) + 0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL - col2 DIV 26 * + - col0 * + col2 FROM tab0
----
0
28809
705

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL - col2 / 26 * + - col0 * + col2 FROM tab0
----
0
28809
705

query I rowsort
SELECT col0 - - - 87 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-2
-36
4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-670
SELECT DISTINCT col1 / + col0 col1 FROM tab1 AS cor0
----
0

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

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

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

query I rowsort
SELECT - + 9 * + col2 * + - col2 AS col1 FROM tab2 cor0
----
14400
30276
4761

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab0 WHERE NOT col0 BETWEEN + 50 AND NULL
----
55

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 + - + col1 AS col2 FROM tab2
----
-1677
-3431
-580

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT ALL 50 DIV col0 * + col0 FROM tab2
----
0
0
46

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 50 / col0 * + col0 FROM tab2
----
0
0
46

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

skipif mysql # not compatible
query I rowsort label-680
SELECT - MAX ( - col2 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col1 / + col2 * + ( 77 * 79 ) ) AND 85 - + col0 / 1
----

query I rowsort
SELECT ALL col0 * - - col1 + + 69 FROM tab0
----
1284
166
1896

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-686
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-686
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE ( + col2 + - col0 * - col2 / ( - col2 * + col2 ) + col2 * - 38 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-689
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE ( + col2 + - col0 * - col2 / ( - col2 * + col2 ) + col2 * - 38 ) IS NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL - + 83 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - + 83 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-86

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

query II rowsort
SELECT + + col1, - col2 * col2 AS col2 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

query I rowsort
SELECT ALL + col1 * 78 * - col0 * + 25 + - 98 AS col1 FROM tab1
----
-1392398
-828848
-8340248

query I rowsort
SELECT 4 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col1 + col2 AND - ( - 28 )
----

query II rowsort
SELECT DISTINCT 63 AS col1, col0 + col1 AS col0 FROM tab1
----
63
138
63
65
63
90

query III rowsort
SELECT * FROM tab0 WHERE ( ( NOT + col2 NOT BETWEEN - col0 AND + col0 + + col1 ) )
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT - col2 - - col2 + + 14 DIV - 52 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-699
SELECT - col2 - - col2 + + 14 / - 52 AS col1 FROM tab2
----
0
0
0

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( col0 <= ( - + 46 ) )
----

query I rowsort
SELECT col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT + 72 * + col0 + + 94 * - col0 AS col2 FROM tab2 WHERE + col0 / 64 BETWEEN + + 70 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT - + COUNT( * ) - - 10 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-704
SELECT - + COUNT ( * ) - - 10 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT - ( - col2 ) * - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT + + MAX( ALL 40 ) AS col2, 20 * SUM( ALL + 41 ) AS col2 FROM tab2 AS cor0
----
40
2460

skipif mysql # not compatible
query II rowsort label-706
SELECT + + MAX ( ALL 40 ) AS col2, 20 * SUM ( ALL + 41 ) AS col2 FROM tab2 AS cor0
----
40
2460

query I rowsort
SELECT ALL + col2 / + 73 - col0 AS col0 FROM tab0 cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN + col1 AND - col0 ) )
----

query I rowsort
SELECT ALL col2 * - - 60 * + + 9 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 61
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + 23 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + 23 IS NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 38 * + col2 FROM tab1 cor0 WHERE NOT + col0 + - col2 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-713
SELECT - COUNT ( * ) * + 47 FROM tab1
----
-141

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

query II rowsort
SELECT 86, - 98 * + col2 AS col0 FROM tab2
----
86
-2254
86
-3920
86
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT DISTINCT MAX( ALL + ( + col1 ) ) * - - COUNT( * ) col0 FROM tab1
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-716
SELECT DISTINCT MAX ( ALL + ( + col1 ) ) * - - COUNT ( * ) col0 FROM tab1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT DISTINCT col1 + - - CAST( - col0 AS SIGNED ) col2 FROM tab2
----
-8
13
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-717
SELECT DISTINCT col1 + - - CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT ALL col2 DIV 37 * + col1 FROM tab0
----
0
2
81

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL col2 / 37 * + col1 FROM tab0
----
0
2
81

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

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

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

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

query I rowsort
SELECT - col1 * + + 49 AS col0 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT DISTINCT + SUM( - col1 ) * + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT + SUM ( - col1 ) * + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 <> col1
----
NULL

query I rowsort
SELECT ALL 22 * - 75 + + 53 + 98 FROM tab2 AS cor0
----
-1499
-1499
-1499

query I rowsort
SELECT DISTINCT - 73 * - col1 * - 44 AS col0 FROM tab1 AS cor0
----
-150964
-16060
-44968

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-727
SELECT + MAX( + col1 ) DIV - ( ( - COUNT( * ) ) ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-727
SELECT + MAX ( + col1 ) / - ( ( - COUNT ( * ) ) ) FROM tab2
----
25

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-731
SELECT + MAX ( ALL + 59 ) AS col2 FROM tab0
----
59

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE 96 * col0 * - col2 <= - col2 * + + ( - + 34 )
----
51
67
77

query I rowsort
SELECT - + col2 * - col0 + + 57 AS col1 FROM tab1 cor0
----
4953
5072
6245

query I rowsort
SELECT ALL - + col0 + - 55 + + 18 FROM tab0 cor0
----
-124
-134
-52

query II rowsort
SELECT ALL - col1 * 1 AS col2, col1 * 18 FROM tab2 AS cor0
----
-51
918
-67
1206
-77
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT + MAX( ALL - + col2 ) - - - 3 col2 FROM tab2 AS cor0
----
-26

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

query I rowsort
SELECT DISTINCT + + col0 * - 69 FROM tab1 AS cor0
----
-3519
-5865
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-738
SELECT - ( - - ( - col2 ) ) + + 45, 0 + - col2 - + 29 + + - 73 * - - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
144
-201
55
-1572
92
-5989

skipif mysql # not compatible
query II rowsort label-738
SELECT - ( - - ( - col2 ) ) + + 45, 0 + - col2 - + 29 + + - 73 * - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
144
-201
55
-1572
92
-5989

query I rowsort
SELECT DISTINCT 18 - col2 FROM tab1
----
-41
-50
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-740
SELECT ALL - 97 col2, - COUNT( * ) AS col1 FROM tab0
----
-97
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT - 64 DIV + 86 * + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-741
SELECT - 64 / + 86 * + col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-742
SELECT DISTINCT - col0 + - CAST( NULL AS DECIMAL ) - + + col1 + - ( + + col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT - col0 + - CAST ( NULL AS REAL ) - + + col1 + - ( + + col2 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * + - col0 > + 36 + col1
----

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

query I rowsort
SELECT + 18 / - col2 + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT ALL - 29 DIV - col0 * - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - 29 / - col0 * - col2 FROM tab1
----
0
0
0

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-750
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( + CAST( - 53 AS SIGNED ) ), 84 )
----

skipif mysql # not compatible
query III rowsort label-750
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( ( + CAST ( - 53 AS INTEGER ) ), 84 )
----

query I rowsort
SELECT + + 70 * + col2 AS col1 FROM tab0 AS cor0
----
3290
6930
700

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

query I rowsort
SELECT DISTINCT - col1 * + 52 AS col0 FROM tab1 AS cor0
----
-2444
-260
-728

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT + ( + + 25 ) * - MIN( - ( + 38 ) ) * - 47 AS col2, ( 63 ) FROM tab2 AS cor0
----
-44650
63

skipif mysql # not compatible
query II rowsort label-754
SELECT + ( + + 25 ) * - MIN ( - ( + 38 ) ) * - 47 AS col2, ( 63 ) FROM tab2 AS cor0
----
-44650
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 38 FROM tab1 cor0
----
14
-38
47
-38
5
-38

query II rowsort
SELECT + - 46 * 79, + col1 AS col1 FROM tab1 AS cor0
----
-3634
14
-3634
47
-3634
5

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT - - COUNT( * ) * 53 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT - - COUNT ( * ) * 53 FROM tab1 AS cor0
----
159

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

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

query I rowsort
SELECT ALL - 62 * 5 FROM tab0, tab1 AS cor0
----
9 values hashing to a571a859a75175795de537ea5884ba01

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

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

query I rowsort
SELECT DISTINCT col2 + - col1 + - col0 FROM tab2
----
-101
-74
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT ALL - col2 DIV 70 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL - col2 / 70 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT - 75 + 86 FROM tab0
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-764
SELECT ALL - - MAX( CAST( NULL AS SIGNED ) ) + + 88 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL - - MAX ( CAST ( NULL AS INTEGER ) ) + + 88 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ( COUNT( DISTINCT - ( - - 65 ) ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-765
SELECT ( COUNT ( DISTINCT - ( - - 65 ) ) ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 46 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - 80 FROM tab1 AS cor0
----
59
-80
68
-80
96
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 88 < - - col0
----
97
1
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL - col2 DIV - 95 - - - 85 AS col1 FROM tab0 AS cor0
----
-84
-85
-85

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - col2 / - 95 - - - 85 AS col1 FROM tab0 AS cor0
----
-84
-85
-85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT ALL - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT 75 - ( - COUNT( * ) ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT 75 - ( - COUNT ( * ) ) AS col0 FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT ALL + 6 - - col2 DIV + col1 AS col1 FROM tab1
----
12
17
7

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL + 6 - - col2 / + col1 AS col1 FROM tab1
----
12
17
7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-777
SELECT + col1 DIV - + 71 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-777
SELECT + col1 / - + 71 FROM tab0
----
-1
0
0

query II rowsort
SELECT col1 * - col0, + 32 AS col0 FROM tab2
----
-2346
32
-4928
32
-5025
32

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + COUNT( + 82 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-779
SELECT + COUNT ( + 82 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL - CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

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

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

query I rowsort
SELECT - 10 * - - col0 AS col1 FROM tab2 cor0
----
-460
-640
-750

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

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT - MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-784
SELECT - MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-785
SELECT ALL + - 87 AS col1, - COUNT( * ) DIV 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-87
0

skipif mysql # not compatible
query II rowsort label-785
SELECT ALL + - 87 AS col1, - COUNT ( * ) / 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT - COUNT( + + 63 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT - COUNT ( + + 63 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 72 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

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

skipif mysql # not compatible
query I rowsort label-789
SELECT - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT 96 * + + col2 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * - + ( - CAST( NULL AS SIGNED ) ) * + 11 + + - 23 )
----

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT 96 * + + col2 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * - + ( - CAST ( NULL AS INTEGER ) ) * + 11 + + - 23 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-791
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 51 + - 12 NOT IN ( - CAST( - col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-791
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 51 + - 12 NOT IN ( - CAST ( - col0 AS REAL ) )
----

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

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

query I rowsort
SELECT ALL + 9 * + + col0 + + + col2 FROM tab2 cor0
----
437
616
733

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

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL - COUNT ( 24 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 38 FROM tab1 WHERE NULL IS NULL
----
38
38
38

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-797
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, col1 * + + col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-797
SELECT ALL - CAST ( NULL AS REAL ) AS col1, col1 * + + col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-798
SELECT 46 DIV + CAST( - col1 AS SIGNED ) + + 20, - 75 AS col1 FROM tab2
----
20
-75
20
-75
20
-75

skipif mysql # not compatible
query II rowsort label-798
SELECT 46 / + CAST ( - col1 AS INTEGER ) + + 20, - 75 AS col1 FROM tab2
----
20
-75
20
-75
20
-75

query I rowsort
SELECT 10 FROM tab2 WHERE NULL IS NULL
----
10
10
10

query I rowsort
SELECT 72 + + col2 FROM tab0
----
119
171
82

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

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

query I rowsort
SELECT ALL + col2 + + col1 + + ( - col2 ) FROM tab1
----
14
47
5

query I rowsort
SELECT 3 + - - col0 AS col0 FROM tab0
----
100
18
90

query I rowsort
SELECT col0 + 87 FROM tab1
----
138
172
178

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 BETWEEN NULL AND 78
----

query I rowsort
SELECT + 44 * - col1 FROM tab0 AS cor0
----
-3564
-44
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT - + MAX( DISTINCT - + col1 ) FROM tab1 WHERE + col1 * - ( + col2 ) + - - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT - + MAX ( DISTINCT - + col1 ) FROM tab1 WHERE + col1 * - ( + col2 ) + - - col1 = NULL
----
NULL

query I rowsort
SELECT ALL - 28 + - col2 AS col0 FROM tab1 AS cor0
----
-124
-87
-96

query I rowsort
SELECT DISTINCT + ( col0 ) - col2 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT - - COUNT( * ) + 82 + - 17 AS col0 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT - - COUNT ( * ) + 82 + - 17 AS col0 FROM tab0 AS cor0
----
68

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

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

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

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + MIN ( 60 ) FROM tab1 AS cor0
----
60

query II rowsort
SELECT DISTINCT - col1 - 32 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-37
59
-46
96
-79
68

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT - SUM( - - col1 ) col2 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-815
SELECT - SUM ( - - col1 ) col2 FROM tab0
----
-103

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

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

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

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

query II rowsort
SELECT DISTINCT 5, col2 FROM tab2
----
5
23
5
40
5
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 98 * col2 col2 FROM tab1
----
479808
491470
606424

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-822
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-822
SELECT ALL 43 / + - col1 col0 FROM tab0
----
-2
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT COUNT( * ) * - 86 AS col1 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-823
SELECT COUNT ( * ) * - 86 AS col1 FROM tab1
----
-258

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 79 / + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - ( 3 ) * + + col2 AS col1, col1 AS col0 FROM tab0 AS cor0
----
-141
81
-297
1
-30
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-828
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + 46 + + 13 + col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-828
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + 46 + + 13 + col1 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 20 + + col2 AS col0 FROM tab2 cor0
----
43
60
78

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

onlyif mysql # aggregate syntax: 
query II rowsort label-831
SELECT + ( + - 12 ) + - ( - 42 ), COUNT( * ) * 72 AS col1 FROM tab0 AS cor0
----
30
216

skipif mysql # not compatible
query II rowsort label-831
SELECT + ( + - 12 ) + - ( - 42 ), COUNT ( * ) * 72 AS col1 FROM tab0 AS cor0
----
30
216

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * col1 * + - 83 + col1 * ( + + col0 ) + - + col1 col0 FROM tab0 AS cor0
----
-1149
-24339
-99711

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

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

query II rowsort
SELECT ALL + col2 + - 82 AS col1, 58 FROM tab2 AS cor0
----
-24
58
-42
58
-59
58

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT DISTINCT - 61 * + 50 + + MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-2991

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT - 61 * + 50 + + MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-2991

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= - 85
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-839
SELECT - 89 * 10 FROM tab2 WHERE - col1 + - - ( - 27 ) * - 91 NOT BETWEEN - 91 * + col1 * + - col0 + col2 + + col2 + 83 * - col0 AND ( - CAST( 90 AS DECIMAL ) * ( 3 ) + + + ( + col1 ) * + col0 )
----
-890
-890
-890

skipif mysql # not compatible
query I rowsort label-839
SELECT - 89 * 10 FROM tab2 WHERE - col1 + - - ( - 27 ) * - 91 NOT BETWEEN - 91 * + col1 * + - col0 + col2 + + col2 + 83 * - col0 AND ( - CAST ( 90 AS REAL ) * ( 3 ) + + + ( + col1 ) * + col0 )
----
-890
-890
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 96 < + + 65
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL MIN( col0 ) FROM tab2 WHERE NULL IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL MIN ( col0 ) FROM tab2 WHERE NULL IS NULL
----
46

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

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

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

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

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

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

query I rowsort
SELECT ALL + 7 * - 93 AS col2 FROM tab2
----
-651
-651
-651

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-849
SELECT col0, col1 * + - col2 + CAST( + - col0 AS SIGNED ) AS col2 FROM tab1
----
51
-1395
85
-380
91
-3287

skipif mysql # not compatible
query II rowsort label-849
SELECT col0, col1 * + - col2 + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1
----
51
-1395
85
-380
91
-3287

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

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

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

query I rowsort
SELECT - - 46 * col1 AS col2 FROM tab0 AS cor0
----
3726
46
966

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-855
SELECT DISTINCT COUNT( col2 ) - + + COUNT( * ) DIV + ( ( + 50 ) ) * + - MAX( + - 39 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-855
SELECT DISTINCT COUNT ( col2 ) - + + COUNT ( * ) / + ( ( + 50 ) ) * + - MAX ( + - 39 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-856
SELECT ALL + col1 DIV 46 * + + col0 * + 57 FROM tab1 AS cor0
----
0
0
5187

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + col1 / 46 * + + col0 * + 57 FROM tab1 AS cor0
----
0
0
5187

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

skipif mysql # not compatible
query II rowsort label-857
SELECT ALL COUNT ( - col2 ), + 67 + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT + 34 * - CAST( col1 AS SIGNED ) FROM tab2
----
-1734
-2278
-2618

skipif mysql # not compatible
query I rowsort label-858
SELECT + 34 * - CAST ( col1 AS INTEGER ) FROM tab2
----
-1734
-2278
-2618

onlyif mysql # DIV for integer division: 
query II rowsort label-859
SELECT - col1 * + 75, 29 DIV + col1 col1 FROM tab1
----
-1050
2
-3525
0
-375
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-859
SELECT - col1 * + 75, 29 / + col1 col1 FROM tab1
----
-1050
2
-3525
0
-375
5

query I rowsort
SELECT DISTINCT 22 * - col2 AS col2 FROM tab2
----
-1276
-506
-880

query I rowsort
SELECT DISTINCT + 28 * + col1 FROM tab2
----
1428
1876
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT col1 DIV - col2 col0 FROM tab1
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-863
SELECT DISTINCT * FROM tab0 WHERE - 34 <= + ( - col2 ) + - + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-863
SELECT DISTINCT * FROM tab0 WHERE - 34 <= + ( - col2 ) + - + col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT MIN( - 96 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

skipif mysql # not compatible
query I rowsort label-864
SELECT MIN ( - 96 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

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

query I rowsort
SELECT ALL - - col0 + - 35 FROM tab2 AS cor0 WHERE - 20 IS NOT NULL
----
11
29
40

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

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

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

query II rowsort
SELECT - 94 AS col2, - 53 * - 51 * - - col1 + - ( + col1 ) FROM tab2 AS cor0
----
-94
137802
-94
181034
-94
208054

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

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE col2 * + 47 / - + col2 < NULL
----

query I rowsort
SELECT DISTINCT + + 21 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 40 * - - col0 AND NULL
----

query I rowsort
SELECT - 54 + - 92 FROM tab2 cor0
----
-146
-146
-146

query I rowsort
SELECT + 58 + + col2 AS col2 FROM tab1 cor0
----
117
126
154

query I rowsort
SELECT - col1 + - col1 * + - col2 AS col1 FROM tab1
----
1330
290
3149

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

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

query I rowsort
SELECT + 21 + + col0 FROM tab0
----
108
118
36

query I rowsort
SELECT 54 + + - ( - col2 ) AS col2 FROM tab1
----
113
122
150

query I rowsort
SELECT ( + - col2 ) + 49 AS col0 FROM tab1
----
-10
-19
-47

query I rowsort
SELECT ALL ( col2 ) * + - col2 AS col1 FROM tab1
----
-3481
-4624
-9216

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

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

query I rowsort
SELECT DISTINCT - 90 FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT 0 - + COUNT( * ) * COUNT( ALL + 51 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-884
SELECT 0 - + COUNT ( * ) * COUNT ( ALL + 51 ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT col0 - + col1 + col2 + 27 FROM tab0
----
103
222
8

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT col1 DIV - col1 + + col0 * + col0 AS col2 FROM tab1 WHERE NOT - - col2 IS NULL
----
2600
7224
8280

skipif mysql # not compatible
query I rowsort label-886
SELECT col1 / - col1 + + col0 * + col0 AS col2 FROM tab1 WHERE NOT - - col2 IS NULL
----
2600
7224
8280

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT + 45 DIV + col0 + - 52 * - ( - - 56 ) AS col1 FROM tab0 AS cor0
----
2912
2912
2915

skipif mysql # not compatible
query I rowsort label-887
SELECT + 45 / + col0 + - 52 * - ( - - 56 ) AS col1 FROM tab0 AS cor0
----
2912
2912
2915

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

skipif mysql # not compatible
query I rowsort label-888
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + 18 <> + col0 * col1 - + col0 * - CAST ( NULL AS INTEGER ) * + - col0 * col1
----

query II rowsort
SELECT - col0 AS col2, + 25 + 13 FROM tab2 AS cor0
----
-46
38
-64
38
-75
38

query I rowsort
SELECT ALL + - 80 AS col2 FROM tab0 AS cor0 WHERE - 4 - + 89 IS NULL
----

query I rowsort
SELECT ALL - col2 * - + 60 AS col2 FROM tab2
----
1380
2400
3480

query II rowsort
SELECT ALL 77 * 32, + col2 FROM tab1
----
2464
59
2464
68
2464
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-893
SELECT DISTINCT + MAX( - col0 ) DIV 37 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + MAX ( - col0 ) / 37 FROM tab1
----
-1

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

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

query I rowsort
SELECT + col2 * - 24 FROM tab1 AS cor0
----
-1416
-1632
-2304

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

query I rowsort
SELECT - - col1 * 14 * + 96 AS col1 FROM tab0 AS cor0
----
108864
1344
28224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT - CAST( NULL AS SIGNED ) / + ( + - 57 ) * 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-898
SELECT - CAST ( NULL AS INTEGER ) / + ( + - 57 ) * 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-899
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-900
SELECT DISTINCT * FROM tab2 WHERE ( ( col2 + + + 90 * + + col1 * + col2 * CAST( + + col0 AS SIGNED ) + col0 ) <> - CAST( NULL AS SIGNED ) / - + col1 )
----

skipif mysql # not compatible
query III rowsort label-900
SELECT DISTINCT * FROM tab2 WHERE ( ( col2 + + + 90 * + + col1 * + col2 * CAST ( + + col0 AS INTEGER ) + col0 ) <> - CAST ( NULL AS INTEGER ) / - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 56 + col0, + col2 col1 FROM tab0 AS cor0
----
143
10
153
99
71
47

query I rowsort
SELECT ALL - + 14 + col0 FROM tab0 AS cor0
----
1
73
83

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

query I rowsort
SELECT - 66 + + - col0 FROM tab2 cor0
----
-112
-130
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT - 70 + - SUM( - col1 ) DIV - 10 AS col1 FROM tab0 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-905
SELECT - 70 + - SUM ( - col1 ) / - 10 AS col1 FROM tab0 cor0
----
-80

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT + + 83 + MIN( DISTINCT - 44 ) col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-909
SELECT DISTINCT + + 83 + MIN ( DISTINCT - 44 ) col1 FROM tab0 AS cor0
----
39

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

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

query II rowsort
SELECT + - 88 * col0 AS col1, 80 AS col0 FROM tab2 AS cor0
----
-4048
80
-5632
80
-6600
80

query I rowsort
SELECT DISTINCT + + col1 * col1 AS col1 FROM tab2 cor0 WHERE NOT + ( col1 ) IS NULL
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT DISTINCT CAST( - + CAST( + 45 AS SIGNED ) AS SIGNED ) + - col0 * CAST( - col2 AS SIGNED ) * + + col0 AS col0 FROM tab2
----
163795
326205
48623

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT CAST ( - + CAST ( + 45 AS INTEGER ) AS INTEGER ) + - col0 * CAST ( - col2 AS INTEGER ) * + + col0 AS col0 FROM tab2
----
163795
326205
48623

query I rowsort
SELECT ALL - ( - col1 ) - col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-1134
-1806
-96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-916
SELECT COUNT( * ) + - + MAX( - col1 ) AS col0, 75 + + MIN( DISTINCT - 13 ) col2 FROM tab1 AS cor0
----
8
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-916
SELECT COUNT ( * ) + - + MAX ( - col1 ) AS col0, 75 + + MIN ( DISTINCT - 13 ) col2 FROM tab1 AS cor0
----
8
62

query I rowsort
SELECT + 29 * + col0 + - + 17 + - + 17 + + col0 * 37 * - col2 * - 79 + 65 + - col2 AS col2 FROM tab2 AS cor0
----
12717198
3093876
7484727

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

query I rowsort
SELECT DISTINCT - 43 * + col0 * + + col1 FROM tab0 AS cor0
----
-4171
-52245
-78561

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 62 <= NULL
----

query I rowsort
SELECT DISTINCT + 42 - 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT MIN( + - 77 ) AS col1 FROM tab0 WHERE NOT + - 73 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-923
SELECT MIN ( + - 77 ) AS col1 FROM tab0 WHERE NOT + - 73 IS NULL
----
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 NOT IN ( - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL COUNT( + 32 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL COUNT ( + 32 ) AS col0 FROM tab1
----
3

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

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

query I rowsort
SELECT DISTINCT - 52 * - - 30 FROM tab0 AS cor0
----
-1560

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NOT - 8 * - col2 < + - col1 + - 14
----
1
21
81

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-931
SELECT - col0 DIV 32 - - col0 + 4 AS col0 FROM tab0 AS cor0
----
19
89
98

skipif mysql # not compatible
query I rowsort label-931
SELECT - col0 / 32 - - col0 + 4 AS col0 FROM tab0 AS cor0
----
19
89
98

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

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

query I rowsort
SELECT 16 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT ALL CAST( + 48 AS SIGNED ) FROM tab2
----
48
48
48

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL CAST ( + 48 AS INTEGER ) FROM tab2
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT DISTINCT - 1 DIV + 10 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - 1 / + 10 FROM tab0
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL + COUNT ( + - col2 ) FROM tab1
----
3

query I rowsort
SELECT col1 * + - 22 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT DISTINCT 84 * - col2 FROM tab1 AS cor0
----
-4956
-5712
-8064

query I rowsort
SELECT ALL + 99 * - col0 * - + col1 FROM tab1 AS cor0
----
42075
423423
70686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT DISTINCT - - 44 DIV - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT - - 44 / - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-14

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT DISTINCT - 60 + + ( + MAX( - col0 ) ), AVG ( DISTINCT col1 ) * COUNT( * ) * - 86 + COUNT( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-946
SELECT DISTINCT - 60 + + ( + MAX ( - col0 ) ), AVG ( DISTINCT col1 ) * COUNT ( * ) * - 86 + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-947
SELECT - 3, - COUNT ( * ) FROM tab2
----
-3
-3

query I rowsort
SELECT ALL 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT DISTINCT + + col1 + - - CAST( col0 AS SIGNED ) - - col1 - + - col2 FROM tab0 AS cor0
----
139
198
224

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT + + col1 + - - CAST ( col0 AS INTEGER ) - - col1 - + - col2 FROM tab0 AS cor0
----
139
198
224

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab2 cor0
----
44

query I rowsort
SELECT + 38 + col1 * ( + - 82 ) AS col2 FROM tab2 AS cor0
----
-4144
-5456
-6276

query I rowsort
SELECT - + col0 + + col0 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL - + col0 DIV col0 + + 5 + - - col2 * - - 31 + - col2 AS col1 FROM tab1 cor0
----
1774
2044
2884

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - + col0 / col0 + + 5 + - - col2 * - - 31 + - col2 AS col1 FROM tab1 cor0
----
1774
2044
2884

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

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

query I rowsort
SELECT ALL - 66 - 82 + 56 FROM tab1 cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 74 * col0 + col0 AS col1, - col0 col2 FROM tab1
----
3825
-51
6375
-85
6825
-91

query I rowsort
SELECT DISTINCT ( - 90 ) FROM tab1
----
-90

query I rowsort
SELECT col2 * + col0 + + + 46 FROM tab1
----
4942
5061
6234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-959
SELECT DISTINCT - + CAST( col2 AS SIGNED ) * + + col0 DIV - col0 + - col0 DIV col2 AS col1 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) * + + col0 / - col0 + - col0 / col2 AS col1 FROM tab2 AS cor0
----
21
39
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT ALL 79 + + COUNT( 95 ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL 79 + + COUNT ( 95 ) / - + COUNT ( * ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT - 6 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 * 11 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * col0 * col0 col1 FROM tab2 cor0
----
154468
299008
410625

query I rowsort
SELECT DISTINCT 21 * + 64 * - col1 AS col1 FROM tab2 AS cor0
----
-103488
-68544
-90048

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-970
SELECT + col1, + col2 DIV CAST( + 56 AS SIGNED ) - 62 AS col0 FROM tab1 AS cor0
----
14
-61
47
-61
5
-61

skipif mysql # not compatible
query II rowsort label-970
SELECT + col1, + col2 / CAST ( + 56 AS INTEGER ) - 62 AS col0 FROM tab1 AS cor0
----
14
-61
47
-61
5
-61

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - 28 / + + ( - col0 ) + col2 NOT IN ( + + 76, 17, - + col0, 47 / col2 / + col2 + col1, + - col2 )
----

query I rowsort
SELECT - ( 45 ) AS col2 FROM tab0 AS cor0
----
-45
-45
-45

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-976
SELECT DISTINCT + col2 + + CAST( - + 52 AS SIGNED ) AS col0 FROM tab2
----
-12
-29
6

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT + col2 + + CAST ( - + 52 AS INTEGER ) AS col0 FROM tab2
----
-12
-29
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 11 IS NULL
----

query I rowsort
SELECT ALL 24 + - - 87 + col2 * - + col1 FROM tab2
----
-1062
-2969
-3775

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

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT DISTINCT - + ( + col1 ) DIV + col1 + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - + ( + col1 ) / + col1 + col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-981
SELECT - + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-981
SELECT - + col1 / - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * + col0 col1 FROM tab1 AS cor0
----
1479
2465
2639

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT 44 * - 45 FROM tab1 AS cor0
----
-1980
-1980
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT - MAX( 69 ) - 45 AS col2 FROM tab2 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - MAX ( 69 ) - 45 AS col2 FROM tab2 cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL - SUM( - col2 ) FROM tab0 WHERE NOT - + col0 <> + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - SUM ( - col2 ) FROM tab0 WHERE NOT - + col0 <> + 36
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 34 * - - col2 FROM tab1
----
2006
2312
3264

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 2 * - - col0 + col1 NOT BETWEEN + 50 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-992
SELECT ALL - SUM( ALL + - 63 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - SUM ( ALL + - 63 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - COUNT( * ) + 54 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-995
SELECT - COUNT ( * ) + 54 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - + MAX( - - 44 ) * 68 FROM tab0 cor0
----
-2992

skipif mysql # not compatible
query I rowsort label-996
SELECT - + MAX ( - - 44 ) * 68 FROM tab0 cor0
----
-2992

query I rowsort
SELECT ALL col2 + + 16 + - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 55 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-999
SELECT 81 AS col1, - col0 DIV + + 26 + + ( - col0 ) * + col0 AS col2 FROM tab0
----
81
-225
81
-7572
81
-9412

skipif mysql # not compatible
query II rowsort label-999
SELECT 81 AS col1, - col0 / + + 26 + + ( - col0 ) * + col0 AS col2 FROM tab0
----
81
-225
81
-7572
81
-9412

query I rowsort
SELECT col0 + + 26 + col2 * - + 47 + - ( - ( 84 ) ) AS col1 FROM tab0
----
-2084
-273
-4446

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

query I rowsort
SELECT 86 + + - 83 FROM tab1
----
3
3
3

query II rowsort
SELECT ALL col0 AS col2, col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

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

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1005
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 45 + - CAST( 18 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1005
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 45 + - CAST ( 18 AS REAL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 66 <> - col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col0 ) * - + col2 * + col1 * + 83 FROM tab0
----
1516410
4739715
797049

query I rowsort
SELECT 97 - + 69 * + col1 AS col2 FROM tab1 WHERE ( NOT + 69 + - - ( - col2 ) + 36 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ( - 66 ) AS col0 FROM tab2
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL COUNT( * ) * + + SUM( DISTINCT col1 ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL COUNT ( * ) * + + SUM ( DISTINCT col1 ) FROM tab2
----
585

query I rowsort
SELECT + col1 - + 28 FROM tab2
----
23
39
49

query I rowsort
SELECT - 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * col0 + - col0 col0 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT DISTINCT + 80 + col0 * + 54 AS col0 FROM tab2 AS cor0
----
2564
3536
4130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT + 17 * + + MAX( - + 52 ) AS col0 FROM tab1
----
-884

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT + 17 * + + MAX ( - + 52 ) AS col0 FROM tab1
----
-884

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * 98 col1 FROM tab0
----
5782
5782
5782

query II rowsort
SELECT - col2 AS col2, 37 * + - col2 AS col1 FROM tab1
----
-59
-2183
-68
-2516
-96
-3552

query I rowsort
SELECT ( col1 ) FROM tab0 WHERE NOT NULL < + + col2 - - col0
----

query I rowsort
SELECT - - 36 * + col1 + + - 58 FROM tab0 AS cor0
----
-22
2858
698

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1026
SELECT - - COUNT( * ) AS col1, MAX( ALL - 74 ) AS col0 FROM tab1 AS cor0
----
3
-74

skipif mysql # not compatible
query II rowsort label-1026
SELECT - - COUNT ( * ) AS col1, MAX ( ALL - 74 ) AS col0 FROM tab1 AS cor0
----
3
-74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 6 / + + col0 = - col2
----

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

query II rowsort
SELECT - col2 * col1 AS col2, 83 FROM tab1 AS cor0
----
-1344
83
-295
83
-3196
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT DISTINCT + + col2 * + col2 + col1 DIV + 14 AS col1 FROM tab2 AS cor0
----
1605
3368
532

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT + + col2 * + col2 + col1 / + 14 AS col1 FROM tab2 AS cor0
----
1605
3368
532

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1031
SELECT 48 DIV + col0 + + + CAST( - CAST( 84 AS SIGNED ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-81
-84
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1031
SELECT 48 / + col0 + + + CAST ( - CAST ( 84 AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-81
-84
-84

query I rowsort
SELECT DISTINCT 61 * + 87 FROM tab1 AS cor0
----
5307

query I rowsort
SELECT DISTINCT + + 19 AS col2 FROM tab1 WHERE NOT + + col1 IS NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT 64 + MAX( + - 84 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT 64 + MAX ( + - 84 ) FROM tab1
----
-20

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 3 - + - col1 col0, + col2 * 32 FROM tab0 AS cor0
----
-2
3168
18
320
78
1504

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

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

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE 31 <= + ( 57 )
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT - SUM( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-1043
SELECT - SUM ( DISTINCT - col0 ) AS col2 FROM tab0 cor0
----
199

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1045
SELECT ALL + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT - COUNT( * ) - - ( + + 70 ) col0 FROM tab1 AS cor0
----
67

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

query I rowsort
SELECT ALL - 31 * + col0 * + - 10 + - + col1 - col1 AS col1 FROM tab1 AS cor0
----
15782
26340
28116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0 AS cor0 WHERE NOT NULL = col1 / 13
----

query I rowsort
SELECT DISTINCT 49 * + - col0 * - col1 AS col2 FROM tab2
----
114954
241472
246225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1051
SELECT DISTINCT 62 AS col1, + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1051
SELECT DISTINCT 62 AS col1, + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT + SUM( - + 75 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-1053
SELECT + SUM ( - + 75 ) FROM tab2
----
-225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT COUNT( * ) * + 98 AS col1 FROM tab2 cor0
----
294

skipif mysql # not compatible
query I rowsort label-1056
SELECT COUNT ( * ) * + 98 AS col1 FROM tab2 cor0
----
294

query I rowsort
SELECT DISTINCT - + 93 AS col1 FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + + COUNT( + + col2 ) + - 64 + - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
-64

skipif mysql # not compatible
query I rowsort label-1058
SELECT + + COUNT ( + + col2 ) + - 64 + - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT col0 DIV 66 * - + 45 FROM tab1 AS cor0
----
-45
0

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT col0 / 66 * - + 45 FROM tab1 AS cor0
----
-45
0

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT + COUNT ( * ) * - 24 FROM tab1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 21 col2 FROM tab0
----
120
31
68

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

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

query I rowsort
SELECT ALL 66 + col0 FROM tab2 AS cor0
----
112
130
141

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

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

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

skipif mysql # not compatible
query I rowsort label-1065
SELECT + - col2 * col0 * + col1 FROM tab1 AS cor0 WHERE col1 >= - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - - col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT col1 + + + col2 * col1 * col1 * + - 90 + + col0 FROM tab1
----
-132660
-13518942
-1693375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col2 + + col2 col0 FROM tab2
----
-5
3
49

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

query II rowsort
SELECT - col1 * 33 + 64 * + col0, col2 FROM tab1
----
2802
96
4273
68
5275
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 35 col2 FROM tab1
----
103
131
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT - 23 + + COUNT( * ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT - 23 + + COUNT ( * ) FROM tab1
----
-20

query I rowsort
SELECT + col0 + - 8 FROM tab1
----
43
77
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 29 ) + - col1 col1 FROM tab1
----
-18
15
24

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

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT ALL - 21, + 28 + + col0 + + col1 - + col1 + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 - - 87 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1079
SELECT DISTINCT - - col1 DIV - 89 - - col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - - col1 / - 89 - - col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + - ( - + 79 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1083
SELECT * FROM tab2 AS cor0 WHERE NOT 56 BETWEEN - CAST( + 19 AS SIGNED ) AND + + 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1083
SELECT * FROM tab2 AS cor0 WHERE NOT 56 BETWEEN - CAST ( + 19 AS INTEGER ) AND + + 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 24 * - + col1 + 16 FROM tab2 AS cor0
----
-1208
-1592
-1832

query I rowsort
SELECT - 80 * - + col2 AS col0 FROM tab2
----
1840
3200
4640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1086
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1087
SELECT DISTINCT - col0 AS col1, ( - col0 ) * - col0 + + - 35 + + + 22 DIV 36 FROM tab1
----
-51
2566
-85
7190
-91
8246

skipif mysql # not compatible
query II rowsort label-1087
SELECT DISTINCT - col0 AS col1, ( - col0 ) * - col0 + + - 35 + + + 22 / 36 FROM tab1
----
-51
2566
-85
7190
-91
8246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1088
SELECT ALL - ( COUNT( * ) ) + - COUNT( * ) DIV 30 FROM tab1, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - ( COUNT ( * ) ) + - COUNT ( * ) / 30 FROM tab1, tab0 cor0
----
-9

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

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

query II rowsort
SELECT col0, + col2 * + col1 AS col0 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 col1 FROM tab0 cor0
----
-210
-3807
-99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT ALL + CAST( col0 AS SIGNED ) * + col1 AS col1 FROM tab1 WHERE NOT + 29 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL + CAST ( col0 AS INTEGER ) * + col1 AS col1 FROM tab1 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 70 FROM tab0 WHERE NOT ( 29 * col1 + 58 ) IS NULL
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 63 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1097
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 63 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0 / - 78
----

query I rowsort
SELECT 97 AS col0 FROM tab0 WHERE NOT ( NULL ) <= ( + col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT - SUM( 5 ) * + 6 AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1100
SELECT - SUM ( 5 ) * + 6 AS col1 FROM tab1
----
-90

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

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

query I rowsort
SELECT ALL 91 + + col2 FROM tab2
----
114
131
149

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * - 44 + + col2 > + col2 * col2
----

query I rowsort
SELECT 57 * + 54 FROM tab2
----
3078
3078
3078

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + col1 * + ( + col1 ) )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1107
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + + col2 / 43 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1107
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + + col2 / 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT COUNT( DISTINCT col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1108
SELECT COUNT ( DISTINCT col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL 91 * 40 AS col0 FROM tab1
----
3640
3640
3640

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND ( - 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT - ( ( - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1112
SELECT - ( ( - COUNT ( * ) ) ) FROM tab2
----
3

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 1 < NULL
----

query I rowsort
SELECT DISTINCT col0 * + 67 - + 35 AS col2 FROM tab0
----
5794
6464
970

query I rowsort
SELECT col2 + col1 * - 42 FROM tab1 AS cor0
----
-151
-1906
-492

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE ( + col1 ) <= ( 66 * col1 )
----
14
47
5

query I rowsort
SELECT DISTINCT col2 - - col2 * col1 AS col2 FROM tab0 AS cor0
----
198
220
3854

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1121
SELECT * FROM tab0 cor0 WHERE + col2 + + col1 * col2 NOT BETWEEN ( - CAST( NULL AS DECIMAL ) ) AND 85 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1121
SELECT * FROM tab0 cor0 WHERE + col2 + + col1 * col2 NOT BETWEEN ( - CAST ( NULL AS REAL ) ) AND 85 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( 78 ) AND ( NULL )
----

query I rowsort
SELECT ALL + 63 * + 75 AS col1 FROM tab0 AS cor0
----
4725
4725
4725

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 28 NOT BETWEEN - col1 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1125
SELECT + COUNT( * ) DIV - 43 FROM tab0 AS cor0 WHERE NOT 32 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1125
SELECT + COUNT ( * ) / - 43 FROM tab0 AS cor0 WHERE NOT 32 IS NOT NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= ( 30 * + 13 )
----

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

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

query I rowsort
SELECT - col2 * + 78 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-4602
-5304
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - COUNT( * ) * + 32 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1130
SELECT - COUNT ( * ) * + 32 FROM tab1
----
-96

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

query I rowsort
SELECT + ( + + 16 ) * + 79 FROM tab0
----
1264
1264
1264

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT - COUNT( * ) * - 52 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT - COUNT ( * ) * - 52 FROM tab1 AS cor0
----
156

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT DISTINCT - col0 DIV + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT - col0 / + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1

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

query I rowsort
SELECT ALL col2 * 40 * 59 FROM tab2 AS cor0
----
136880
54280
94400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1141
SELECT + ( - col0 ) * + col1 FROM tab2 cor0 WHERE NOT + 24 * 41 + CAST( NULL AS SIGNED ) IS NOT NULL
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-1141
SELECT + ( - col0 ) * + col1 FROM tab2 cor0 WHERE NOT + 24 * 41 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT - 20, - col0 * - col1 AS col1 FROM tab2
----
-20
2346
-20
4928
-20
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + + col2 * + 24 + - 80 FROM tab1
----
-32336
-7160
-76784

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + + col2 * + 24 + - 80 FROM tab1
----
-32336
-7160
-76784

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + 28 * + + COUNT( * ) col2 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1145
SELECT + 28 * + + COUNT ( * ) col2 FROM tab1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT MIN( - col2 ) FROM tab0 WHERE - CAST( NULL AS SIGNED ) - col0 * col1 < - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT MIN ( - col2 ) FROM tab0 WHERE - CAST ( NULL AS INTEGER ) - col0 * col1 < - 80
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 + col0 IN ( 9 + - col0 * 78 )
----

query I rowsort
SELECT ALL + 99 * - 31 FROM tab1 cor0
----
-3069
-3069
-3069

query I rowsort
SELECT DISTINCT - 50 + - 34 + + 14 AS col2 FROM tab2 AS cor0
----
-70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + col2 IS NULL ) OR NOT ( col2 * - 17 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 79 ) NOT BETWEEN ( ( + 87 ) + + col2 * + 30 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE - 13 IN ( + 90 + 37 )
----

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

query I rowsort
SELECT 60 + - 86 * + col0 FROM tab1 AS cor0
----
-4326
-7250
-7766

query I rowsort
SELECT - + 85 * ( + + ( + 32 ) ) + + col0 FROM tab0 cor0
----
-2623
-2633
-2705

query I rowsort
SELECT col1 * + col1 + - + 16 + col1 AS col2 FROM tab1
----
14
194
2240

query I rowsort
SELECT + 1 + - - col0 AS col2 FROM tab0
----
16
88
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 4 col2 FROM tab2
----
50
68
79

onlyif mysql # DIV for integer division: 
query II rowsort label-1160
SELECT col0 + col0 AS col2, - col0 DIV - 60 FROM tab2
----
128
1
150
1
92
0

skipif mysql # not compatible
query II rowsort label-1160
SELECT col0 + col0 AS col2, - col0 / - 60 FROM tab2
----
128
1
150
1
92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT + SUM( ALL 77 ) + + 47 AS col0 FROM tab2
----
278

skipif mysql # not compatible
query I rowsort label-1161
SELECT + SUM ( ALL 77 ) + + 47 AS col0 FROM tab2
----
278

query I rowsort
SELECT ALL + col2 * - 82 FROM tab2
----
-1886
-3280
-4756

query III rowsort
SELECT * FROM tab0 WHERE ( 1 ) BETWEEN 22 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col1 + - col0
----

query I rowsort
SELECT ALL col2 + - ( - 6 ) + + + 5 + 32 AS col1 FROM tab1
----
102
111
139

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

query I rowsort
SELECT ALL col2 * + 85 FROM tab1 WHERE NOT ( NULL ) >= ( + col2 ) + ( 90 )
----

query I rowsort
SELECT DISTINCT + 40 + 31 AS col2 FROM tab0 AS cor0
----
71

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

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

query I rowsort
SELECT - 99 * - - 69 - + 13 FROM tab1 AS cor0
----
-6844
-6844
-6844

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT DISTINCT - col0 DIV col0 - + 8 col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1171
SELECT DISTINCT - col0 / col0 - + 8 col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + 47 * + 60 * + 65 FROM tab2
----
183300
183300
183300

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - SUM( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 91 - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT - SUM ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 91 - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1175
SELECT DISTINCT - 24 AS col0, + COUNT( * ) + - 63 FROM tab1 AS cor0
----
-24
-60

skipif mysql # not compatible
query II rowsort label-1175
SELECT DISTINCT - 24 AS col0, + COUNT ( * ) + - 63 FROM tab1 AS cor0
----
-24
-60

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

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
46
64
75

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

query I rowsort
SELECT - col1 * col1 * + 66 AS col2 FROM tab2
----
-171666
-296274
-391314

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT DISTINCT COUNT( DISTINCT - 35 ) AS col1 FROM tab2, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT COUNT ( DISTINCT - 35 ) AS col1 FROM tab2, tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 54 > ( + col2 * + 28 )
----

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

query I rowsort
SELECT ALL col0 * col0 + + + col0 AS col2 FROM tab0
----
240
7656
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1184
SELECT + COUNT( * ) AS col1, + 10 + - - ( CAST( + 30 AS SIGNED ) ) FROM tab1 WHERE NOT - + 1 IS NULL
----
3
40

skipif mysql # not compatible
query II rowsort label-1184
SELECT + COUNT ( * ) AS col1, + 10 + - - ( CAST ( + 30 AS INTEGER ) ) FROM tab1 WHERE NOT - + 1 IS NULL
----
3
40

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

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( col2 ) IN ( + + 80 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 50 + - 59 IN ( - col0 )
----

query I rowsort
SELECT + 17 AS col1 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + + + 72 col1 FROM tab1
----
84
84
84

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

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

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

query I rowsort
SELECT + col1 / col0 * - 6 FROM tab1 AS cor0 WHERE col0 * - col0 >= ( + + ( - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT DISTINCT - MAX( DISTINCT 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - MAX ( DISTINCT 72 ) FROM tab1
----
-72

query III rowsort
SELECT * FROM tab0 WHERE - + col2 * - - col2 NOT IN ( - 10 * + col0 / 37 * col1 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 25 * + + 75 * 77 FROM tab0
----
-144375
-144375
-144375

query I rowsort
SELECT 98 - - col0 FROM tab1
----
149
183
189

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * - col1 - - ( - - 42 ) + col0 * + + 40 * 9 ) IS NULL
----

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

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

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

query I rowsort
SELECT + col1 + - col2 + - + col1 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + - 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT MAX( - 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-1203
SELECT MAX ( - 23 ) FROM tab1
----
-23

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

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

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

skipif mysql # not compatible
query I rowsort label-1205
SELECT - + MAX ( - 45 ) AS col2 FROM tab1 AS cor0
----
45

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

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

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

query I rowsort
SELECT ALL - col1 * - + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 28 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 >= 33 + + + 17
----

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

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

query I rowsort
SELECT ALL - col0 * + + 4 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT col1 * - - col2 * + col1 FROM tab0
----
308367
4410
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) = - 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - col2 ) + + col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT + col1 * - - col1 FROM tab0 cor0
----
1
441
6561

query II rowsort
SELECT ALL + 95, col2 AS col0 FROM tab0 AS cor0
----
95
10
95
47
95
99

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

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

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

skipif mysql # not compatible
query II rowsort label-1220
SELECT DISTINCT - 3 AS col2, - COUNT ( * ) + - ( 2 ) FROM tab2 cor0
----
-3
-5

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

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

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

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

query I rowsort
SELECT - 49 + - col1 + col0 + - col0 FROM tab2 cor0
----
-100
-116
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1224
SELECT COUNT( * ) + + 58 DIV 4 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1224
SELECT COUNT ( * ) + + 58 / 4 FROM tab0 AS cor0
----
17

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

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

query I rowsort
SELECT - 42 FROM tab2 WHERE - col0 < NULL
----

query I rowsort
SELECT 70 + 65 + 4 FROM tab1
----
139
139
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT + ( + CAST( - col2 AS SIGNED ) ) + col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-1228
SELECT + ( + CAST ( - col2 AS INTEGER ) ) + col0 FROM tab2
----
17
23
24

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

query I rowsort
SELECT + 21 * + + 85 AS col0 FROM tab2
----
1785
1785
1785

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 71 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL + + MAX( + 7 ) * + MIN( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-567

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + + MAX ( + 7 ) * + MIN ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-567

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT col0 DIV 15 AS col2 FROM tab1
----
3
5
6

skipif mysql # not compatible
query I rowsort label-1234
SELECT col0 / 15 AS col2 FROM tab1
----
3
5
6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * + 36 col1 FROM tab0 cor0
----
2952
2952
2952

query I rowsort
SELECT - 32 * + col1 FROM tab2 cor0
----
-1632
-2144
-2464

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT + 40 * + + MAX( + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1239
SELECT + 40 * + + MAX ( + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT COUNT( - - 71 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1240
SELECT COUNT ( - - 71 ) FROM tab1 cor0
----
3

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

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

query I rowsort
SELECT ALL + 59 * 19 AS col2 FROM tab1 AS cor0
----
1121
1121
1121

query II rowsort
SELECT + 83, - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + 85 + 11 + 1, + col0 + - 24 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT ALL - col1 DIV - + 66 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - col1 / - + 66 AS col2 FROM tab2
----
0
1
1

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

query I rowsort
SELECT - 85 * col1 AS col1 FROM tab0 AS cor0
----
-1785
-6885
-85

query I rowsort
SELECT + col0 + 41 FROM tab2 AS cor0
----
105
116
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col0 * + 94 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - - col0 - + 59 FROM tab2 AS cor0
----
-35
-36
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT ALL - + col1 * - + col2 DIV col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - + col1 * - + col2 / col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT DISTINCT - col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - col0 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

query II rowsort
SELECT DISTINCT - 82 AS col0, 0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-82
0

query I rowsort
SELECT 45 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1255
SELECT ALL 19 DIV CAST( - ( ( - ( - + col2 ) ) ) AS SIGNED ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL 19 / CAST ( - ( ( - ( - + col2 ) ) ) AS INTEGER ) FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 39 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL + ( - + MAX( DISTINCT - + 36 ) ) * + 21 FROM tab1 WHERE NOT + col0 IS NULL
----
756

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + ( - + MAX ( DISTINCT - + 36 ) ) * + 21 FROM tab1 WHERE NOT + col0 IS NULL
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT + COUNT( DISTINCT + - col1 ) * + COUNT( + + col0 ) col0 FROM tab1 AS cor0
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1260
SELECT CAST( col2 AS SIGNED ) * col2, + col2 FROM tab1 AS cor0
----
3481
59
4624
68
9216
96

skipif mysql # not compatible
query II rowsort label-1260
SELECT CAST ( col2 AS INTEGER ) * col2, + col2 FROM tab1 AS cor0
----
3481
59
4624
68
9216
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 >= + col2 - + col0 + - 38
----
-3

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 >= + col2 - + col0 + - 38
----
-3

query I rowsort
SELECT - 24 FROM tab2 AS cor0 WHERE + 44 + + - col2 / col1 >= col2 + + col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1266
SELECT ALL - 45 - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL - 45 - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 56 AS col2 FROM tab1 AS cor0 WHERE NOT + 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT + MAX( ALL + 40 ) - + 4 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + MAX ( ALL + 40 ) - + 4 FROM tab2
----
36

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - SUM( DISTINCT + col0 ) * - 15 AS col1 FROM tab0
----
2985

skipif mysql # not compatible
query I rowsort label-1271
SELECT - SUM ( DISTINCT + col0 ) * - 15 AS col1 FROM tab0
----
2985

query II rowsort
SELECT DISTINCT col2, 88 AS col1 FROM tab2
----
23
88
40
88
58
88

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col1 - + + 95 AND - - 64 + + col2 + + col1 + - col2
----

query II rowsort
SELECT DISTINCT - col0 AS col2, 7 * col0 + + 99 FROM tab1
----
-51
456
-85
694
-91
736

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + COUNT( * ) * - 80 * 84 AS col1 FROM tab1
----
-20160

skipif mysql # not compatible
query I rowsort label-1275
SELECT + COUNT ( * ) * - 80 * 84 AS col1 FROM tab1
----
-20160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL - - MIN( DISTINCT 88 ) col0 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1278
SELECT ALL - - MIN ( DISTINCT 88 ) col0 FROM tab2 AS cor0
----
88

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

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

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

query I rowsort
SELECT + + 77 + + - ( + 18 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 <> NULL
----

query I rowsort
SELECT col0 * - 8 FROM tab1 cor0
----
-408
-680
-728

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 50 + + + 67 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 50 + + + 67 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1287
SELECT - CAST( - col0 AS SIGNED ), + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-1287
SELECT - CAST ( - col0 AS INTEGER ), + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT + ( col0 ), ( + + col2 ) + - - col2 AS col2 FROM tab1 AS cor0
----
51
192
85
118
91
136

query I rowsort
SELECT ALL - 98 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1290
SELECT - COUNT( * ) DIV - COUNT( * ) + + 45 * + MIN( ALL - col2 ) FROM tab0
----
-4454

skipif mysql # not compatible
query I rowsort label-1290
SELECT - COUNT ( * ) / - COUNT ( * ) + + 45 * + MIN ( ALL - col2 ) FROM tab0
----
-4454

query I rowsort
SELECT - col1 / + - col2 * + + 86 FROM tab2 WHERE ( NULL IS NOT NULL )
----

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 - col1 + - - 40 FROM tab1
----
-7
26
35

query I rowsort
SELECT ALL - 47 + col2 FROM tab0
----
-37
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT - ( - + MAX( DISTINCT + + col0 ) ) * + + MAX( 76 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT - ( - + MAX ( DISTINCT + + col0 ) ) * + + MAX ( 76 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1297
SELECT ALL - col2 DIV col1 FROM tab2 AS cor0 WHERE - col1 * 26 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - col2 / col1 FROM tab2 AS cor0 WHERE - col1 * 26 IS NOT NULL
----
0
0
0

query I rowsort
SELECT - ( 41 ) FROM tab0 AS cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1299
SELECT DISTINCT col1 + col2 - + col1 / - 20 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT col1 + col2 - + col1 / - 20 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT CAST( - col2 AS SIGNED ) * + - 96 * - col2 AS col0 FROM tab1 AS cor0
----
-334176
-443904
-884736

skipif mysql # not compatible
query I rowsort label-1300
SELECT CAST ( - col2 AS INTEGER ) * + - 96 * - col2 AS col0 FROM tab1 AS cor0
----
-334176
-443904
-884736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT + + ( + 76 ) DIV - + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-22

skipif mysql # not compatible
query I rowsort label-1301
SELECT + + ( + 76 ) / - + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * col0 col1 FROM tab2
----
276
384
450

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

query I rowsort
SELECT + + 81 * - + 34 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b2899ebad1d770179bd4cbd2c1f84831

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( * ) + MAX( - 44 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-1305
SELECT COUNT ( * ) + MAX ( - 44 ) FROM tab1
----
-41

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( col2 * - col2 + + + col1 = + col2 )
----

query I rowsort
SELECT + + 76 + + + col2 FROM tab2 AS cor0
----
116
134
99

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

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

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

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

query I rowsort
SELECT ALL col0 * + 83 * - + col1 * + - col0 FROM tab1
----
2998375
3022362
32304181

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1314
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * - - col1 * + col1 * 96 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1314
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * - - col1 * + col1 * 96 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT 15 * + 35 + + - MAX( ALL + 98 ) col0 FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
427

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1316
SELECT 15 * + 35 + + - MAX ( ALL + 98 ) col0 FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
427

query II rowsort
SELECT DISTINCT 45, col2 AS col2 FROM tab1 AS cor0
----
45
59
45
68
45
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL - MAX( ALL + - ( 1 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - MAX ( ALL + - ( 1 ) ) FROM tab1
----
1

query II rowsort
SELECT col0, - 22 AS col1 FROM tab0
----
15
-22
87
-22
97
-22

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

query II rowsort
SELECT ALL 6, col0 AS col0 FROM tab2 AS cor0
----
6
46
6
64
6
75

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 FROM tab2 WHERE + col1 + ( + 32 ) <= 11 * col2 - - 71 + col1 / 91 * - col0 * - 20 + - 54
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-1327
SELECT DISTINCT - col2 + - 71 AS col2, - col2 DIV - 90 FROM tab1
----
-130
0
-139
0
-167
1

skipif mysql # not compatible
query II rowsort label-1327
SELECT DISTINCT - col2 + - 71 AS col2, - col2 / - 90 FROM tab1
----
-130
0
-139
0
-167
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT + 74 - + col2 DIV col2 * - col1 FROM tab2
----
125
141
151

skipif mysql # not compatible
query I rowsort label-1328
SELECT + 74 - + col2 / col2 * - col1 FROM tab2
----
125
141
151

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

query I rowsort
SELECT DISTINCT - 60 + - - col2 AS col2 FROM tab2 AS cor0
----
-2
-20
-37

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 cor0 WHERE NULL >= + ( - + col1 )
----

query I rowsort
SELECT - + col2 * - col1 + 1 + col1 FROM tab0 AS cor0
----
101
232
3889

query I rowsort
SELECT ALL - 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

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

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 81 IS NULL
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT 34 * + COUNT( * ) AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1337
SELECT 34 * + COUNT ( * ) AS col0 FROM tab0
----
102

query I rowsort
SELECT ( 73 ) AS col1 FROM tab2
----
73
73
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT DISTINCT + COUNT( * ) AS col2, + 91 FROM tab2 WHERE NULL IS NOT NULL
----
0
91

skipif mysql # not compatible
query II rowsort label-1339
SELECT DISTINCT + COUNT ( * ) AS col2, + 91 FROM tab2 WHERE NULL IS NOT NULL
----
0
91

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

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT + - 1 / + - col0 FROM tab1 cor0
----
0

query II rowsort
SELECT + 97 AS col1, 47 FROM tab1 AS cor0
----
97
47
97
47
97
47

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 < ( 7 + + ( - 48 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1344
SELECT DISTINCT + MAX( ALL col2 ) AS col1, ( + MAX( + col1 ) ) AS col1 FROM tab2
----
58
77

skipif mysql # not compatible
query II rowsort label-1344
SELECT DISTINCT + MAX ( ALL col2 ) AS col1, ( + MAX ( + col1 ) ) AS col1 FROM tab2
----
58
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1345
SELECT 11 * COUNT( * ) DIV - + MAX( - 84 ) AS col2, CAST( - 70 AS SIGNED ) FROM tab1
----
0
-70

skipif mysql # not compatible
query II rowsort label-1345
SELECT 11 * COUNT ( * ) / - + MAX ( - 84 ) AS col2, CAST ( - 70 AS INTEGER ) FROM tab1
----
0
-70

query I rowsort
SELECT + 78 * - + 98 FROM tab0
----
-7644
-7644
-7644

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT ALL col0 + + 20 - - col2 + col1 + + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
152
178
225

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL col0 + + 20 - - col2 + col1 + + col0 / - col1 AS col2 FROM tab1 AS cor0
----
152
178
225

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

query I rowsort
SELECT col1 + + + 23 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1352
SELECT ALL 62 / - 81 / CAST( + 25 AS DECIMAL ) AS col1, 48 * + 97 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1352
SELECT ALL 62 / - 81 / CAST ( + 25 AS REAL ) AS col1, 48 * + 97 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + 17 + COUNT( * ) + 87 FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 17 + COUNT ( * ) + 87 FROM tab2
----
107

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

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

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

query I rowsort
SELECT - 79 * + - 24 * - col1 + + col0 AS col1 FROM tab2
----
-126957
-145928
-96650

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT DISTINCT COUNT( - + col2 ) * 11 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT COUNT ( - + col2 ) * 11 FROM tab1
----
33

query I rowsort
SELECT + col0 + - col0 * - col2 AS col1 FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL - SUM( DISTINCT col1 ) * + - COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - SUM ( DISTINCT col1 ) * + - COUNT ( * ) FROM tab1
----
198

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

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

query II rowsort
SELECT - col1, col2 * - 66 AS col2 FROM tab1
----
-14
-6336
-47
-4488
-5
-3894

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

query II rowsort
SELECT ALL + - col1 * + col2, col1 FROM tab1 cor0
----
-1344
14
-295
5
-3196
47

query I rowsort
SELECT - col1 - - - col2 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1367
SELECT - COUNT( * ) * - 15 + + + 61 * - - AVG ( - col0 ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + 18 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT - COUNT ( * ) * - 15 + + + 61 * - - AVG ( - col0 ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + 18 IS NULL
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 86 - - ( col1 )
----

query II rowsort
SELECT col2 AS col1, - col1 + 60 AS col2 FROM tab0
----
10
39
47
-21
99
59

query I rowsort
SELECT - + AVG ( ALL - col2 ) FROM tab1 WHERE NOT col0 * + 63 <> NULL
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1373
SELECT 21, - COUNT ( * ) AS col2 FROM tab0
----
21
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT + MAX( DISTINCT - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + MAX ( DISTINCT - 10 ) FROM tab0
----
-10

query II rowsort
SELECT ALL 50, ( col0 ) AS col0 FROM tab0
----
50
15
50
87
50
97

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN 75 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 39 AS col0, - col0 FROM tab2
----
39
-46
39
-64
39
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * - + 24 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * - + 24 FROM tab2
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT - SUM( ALL - col2 ) * - 1 + + 13 FROM tab1 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-1381
SELECT - SUM ( ALL - col2 ) * - 1 + + 13 FROM tab1 cor0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT - - MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1383
SELECT SUM ( - ( + + col2 ) ) col2 FROM tab1 cor0
----
-223

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 * col1 + 36 col2 FROM tab1
----
-200983
-2089
-9960

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

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

query I rowsort
SELECT + - 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT col1 * + 90 + + + col2 + 66 FROM tab0
----
1966
255
7403

query I rowsort
SELECT ALL col2 + - - col0 + + col0 FROM tab0
----
184
293
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + 84 col1 FROM tab2 AS cor0
----
2685
4573
6013

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 22 / col2 >= + - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + 49 AS col2 FROM tab0 AS cor0
----
4263
4753
735

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1397
SELECT DISTINCT - COUNT( * ) AS col0, - 4 FROM tab2 WHERE NULL IS NULL
----
-3
-4

skipif mysql # not compatible
query II rowsort label-1397
SELECT DISTINCT - COUNT ( * ) AS col0, - 4 FROM tab2 WHERE NULL IS NULL
----
-3
-4

query I rowsort
SELECT - ( + ( col0 ) ) * + col0 FROM tab2 WHERE ( - col1 <> NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT DISTINCT - ( MIN( ALL + - ( - + col0 ) ) ) + - COUNT( * ) AS col0, - COUNT( * ) + 22 * + 74 + COUNT( * ) FROM tab2
----
-49
1628

skipif mysql # not compatible
query II rowsort label-1399
SELECT DISTINCT - ( MIN ( ALL + - ( - + col0 ) ) ) + - COUNT ( * ) AS col0, - COUNT ( * ) + 22 * + 74 + COUNT ( * ) FROM tab2
----
-49
1628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col2 col1 FROM tab1
----
144
147
159

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

query I rowsort
SELECT DISTINCT col0 + - 52 FROM tab2 AS cor0
----
-6
12
23

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT - + col1 * + + col0 + - col0 DIV col2 * + + col0 + + - ( col2 ) + - 10, - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-4446
23
-579
26
-820
-45

skipif mysql # not compatible
query II rowsort label-1403
SELECT - + col1 * + + col0 + - col0 / col2 * + + col0 + + - ( col2 ) + - 10, - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-4446
23
-579
26
-820
-45

query II rowsort
SELECT DISTINCT + 93 AS col1, - 63 * col2 AS col1 FROM tab1
----
93
-3717
93
-4284
93
-6048

query I rowsort
SELECT 43 * - 13 * 10 + - + ( - + 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85e646650266418fc02ef96ad274573e

query II rowsort
SELECT ALL + 34 AS col2, + 44 FROM tab0
----
34
44
34
44
34
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL + - COUNT( * ) col0 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-1408
SELECT ALL + - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 * 20 FROM tab1 cor0
----
59
1700
68
1820
96
1020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab0 AS cor0 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT + 1 + col0 / - col0 FROM tab2 cor0 WHERE NOT col0 NOT IN ( - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT - + COUNT( * ) * - 23 * COUNT( * ) FROM tab1 cor0
----
207

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - + COUNT ( * ) * - 23 * COUNT ( * ) FROM tab1 cor0
----
207

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 21 ) = + 91 * 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 84 * + 73 AS col1 FROM tab2
----
6132
6132
6132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - MAX( - - col1 ) * + MAX( DISTINCT - + 53 ) FROM tab1
----
2491

skipif mysql # not compatible
query I rowsort label-1419
SELECT - MAX ( - - col1 ) * + MAX ( DISTINCT - + 53 ) FROM tab1
----
2491

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT + 55 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT CAST( + col0 AS SIGNED ) + + 14 AS col1 FROM tab2
----
60
78
89

skipif mysql # not compatible
query I rowsort label-1421
SELECT CAST ( + col0 AS INTEGER ) + + 14 AS col1 FROM tab2
----
60
78
89

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

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

query I rowsort
SELECT - col0 * - col2 + - 16 + - + ( + - col1 ) * + - col1 AS col1 FROM tab1 AS cor0
----
3963
4684
4974

query I rowsort
SELECT col2 * + 48 AS col0 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + - col0 - - 1 - 58 AND col1 / + col0
----
2256
4752
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1425
SELECT - + SUM( - ( 51 ) ) AS col2, + 46 DIV + 35 FROM tab2 WHERE + - 42 IS NULL
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1425
SELECT - + SUM ( - ( 51 ) ) AS col2, + 46 / + 35 FROM tab2 WHERE + - 42 IS NULL
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1426
SELECT + CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) * - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1426
SELECT + CAST ( NULL AS REAL ) AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2
----
NULL
NULL

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

query I rowsort
SELECT ALL col1 + + 21 * + 77 + + 33 + col0 * - - 59 * 30 * - col1 FROM tab0 AS cor0
----
-170039
-2148819
-3232119

query I rowsort
SELECT col2 + col1 * 84 * col1 - + 87 - + col0 AS col1 FROM tab1 AS cor0
----
16422
185446
1987

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT + + MAX( DISTINCT - col0 ) col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1430
SELECT DISTINCT + + MAX ( DISTINCT - col0 ) col1 FROM tab1 cor0
----
-51

query I rowsort
SELECT ALL col0 + 79 + 30 * + 3 FROM tab1 AS cor0
----
220
254
260

query I rowsort
SELECT DISTINCT col2 * col0 - - + col1 * - - 65 AS col1 FROM tab0 AS cor0
----
2235
5970
9668

query I rowsort
SELECT col2 * + + col0 + col1 AS col1 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT 76 + COUNT( 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-1434
SELECT 76 + COUNT ( 79 ) FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT DISTINCT CAST( - - 89 AS SIGNED ) + + ( + - col1 ) FROM tab0
----
68
8
88

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT CAST ( - - 89 AS INTEGER ) + + ( + - col1 ) FROM tab0
----
68
8
88

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

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

query I rowsort
SELECT ALL 43 + + 64 - - col2 AS col2 FROM tab2
----
130
147
165

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

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + col1 * + ( + 39 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1439
SELECT DISTINCT + col1 * col2, ( - - 99 ) + + CAST( NULL AS DECIMAL ) + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + + col2
----

skipif mysql # not compatible
query II rowsort label-1439
SELECT DISTINCT + col1 * col2, ( - - 99 ) + + CAST ( NULL AS REAL ) + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT MAX( ALL 42 ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1441
SELECT MAX ( ALL 42 ) AS col2 FROM tab0 AS cor0
----
42

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

skipif mysql # not compatible
query I rowsort label-1442
SELECT COUNT ( - - 26 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * - 83 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
1675
3060
3311

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

query II rowsort
SELECT ALL col0, 90 AS col1 FROM tab1
----
51
90
85
90
91
90

query I rowsort
SELECT - 48 * - 77 AS col1 FROM tab1
----
3696
3696
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT + - 33 + + MAX( ALL + 21 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT + - 33 + + MAX ( ALL + 21 ) FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1448
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + + ( + 83 ) ) < - col1 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1448
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + + ( + 83 ) ) < - col1 * + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 31 + 33 AS col1 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT 69 + - - 39 AS col2 FROM tab2
----
108
108
108

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

query I rowsort
SELECT - - col2 * - col0 * - + col0 AS col2 FROM tab2 AS cor0
----
163840
326250
48668

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 97 AND - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL > + ( + - 5 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL MIN( + 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL MIN ( + 27 ) FROM tab2
----
27

query I rowsort
SELECT DISTINCT - 69 + - + col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - MIN ( - - col1 ) AS col1 FROM tab0
----
-1

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

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

query II rowsort
SELECT - col2, col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT - col2 DIV 67 * col2 col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1462
SELECT - col2 / 67 * col2 col0 FROM tab0 AS cor0
----
-99
0
0

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

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

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

query I rowsort
SELECT 17 * - col2 - + - col2 * - 51 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-1564
-2720
-3944

query I rowsort
SELECT ALL + 35 FROM tab2 AS cor0 WHERE ( - col0 ) * + col1 + 88 + + ( - col2 ) * - 48 * + + col0 IS NOT NULL
----
35
35
35

query I rowsort
SELECT 60 * - col2 FROM tab2
----
-1380
-2400
-3480

query I rowsort
SELECT ( - col0 ) - 80 FROM tab0 WHERE NOT ( NOT 26 / - col1 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1470
SELECT CAST( NULL AS SIGNED ) * + - col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1470
SELECT CAST ( NULL AS INTEGER ) * + - col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 35 * col2 * - + col2 <= + + col1 / + col0 * col1
----

query I rowsort
SELECT ALL - 86 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL + - MIN( + ( - 95 ) ) FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + - MIN ( + ( - 95 ) ) FROM tab0 cor0
----
95

query I rowsort
SELECT - 58 + - 62 AS col2 FROM tab1
----
-120
-120
-120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1476
SELECT DISTINCT * FROM tab2 WHERE + CAST( - 77 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1476
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - 77 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1477
SELECT DISTINCT + col2 + col0 * col1 AS col2, CAST( + col2 AS SIGNED ) FROM tab0
----
1262
47
1837
10
196
99

skipif mysql # not compatible
query II rowsort label-1477
SELECT DISTINCT + col2 + col0 * col1 AS col2, CAST ( + col2 AS INTEGER ) FROM tab0
----
1262
47
1837
10
196
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL MIN( - + col0 ) + - SUM( DISTINCT + - col2 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL MIN ( - + col0 ) + - SUM ( DISTINCT + - col2 ) AS col1 FROM tab2
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL - SUM( ALL - + ( col2 ) ) col0 FROM tab1 cor0
----
223

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

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

query I rowsort
SELECT ALL - 59 * + - 21 AS col1 FROM tab1
----
1239
1239
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL + + COUNT( * ) FROM tab2 WHERE + + ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE + + ( + col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT + ( + - COUNT( * ) ) FROM tab2 WHERE - col0 + + - col1 <= + col0
----
-3

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + ( + - COUNT ( * ) ) FROM tab2 WHERE - col0 + + - col1 <= + col0
----
-3

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

query I rowsort
SELECT - - col0 * col0 + + + col1 + + col1 FROM tab2 cor0
----
2218
4250
5759

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

query I rowsort
SELECT ALL + col0 - + - col1 * + col0 * + + col2 * + + 58 AS col1 FROM tab0 AS cor0
----
1059747
3312105
557071

query I rowsort
SELECT ALL + col1 - - + 54 AS col1 FROM tab0 AS cor0
----
135
55
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1490
SELECT - SUM ( DISTINCT + 84 ) col1 FROM tab0 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * + + col1 col0 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL ( + - COUNT( - + col2 ) ) * - - 73 AS col0 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL ( + - COUNT ( - + col2 ) ) * - - 73 AS col0 FROM tab0
----
-219

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL 64 / 68 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL 64 / 68 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT - 52 <= - 95 - - 94
----
0

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 52 <= - 95 - - 94
----
0

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - 61 + + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

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

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

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

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

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

query I rowsort
SELECT 77 * + col2 FROM tab2 AS cor0
----
1771
3080
4466

query I rowsort
SELECT DISTINCT col2 * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT - col1 DIV - col2 * 52 + + + col2 + - 20 FROM tab1 AS cor0
----
39
48
76

skipif mysql # not compatible
query I rowsort label-1505
SELECT - col1 / - col2 * 52 + + + col2 + - 20 FROM tab1 AS cor0
----
39
48
76

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT DISTINCT 35 FROM tab0 WHERE + col0 > - - col1 + - + ( - col1 ) + CAST( 36 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT 35 FROM tab0 WHERE + col0 > - - col1 + - + ( - col1 ) + CAST ( 36 AS INTEGER )
----
35

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

query I rowsort
SELECT 49 + - 62 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - col1
----

query II rowsort
SELECT ALL + col0 + + 93, ( - col0 ) AS col1 FROM tab1
----
144
-51
178
-85
184
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT DISTINCT + col1 FROM tab1 WHERE NULL <> CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT + col1 FROM tab1 WHERE NULL <> CAST ( NULL AS INTEGER ) * + col0
----

query I rowsort
SELECT DISTINCT col2 * col2 + + - col2 AS col0 FROM tab0
----
2162
90
9702

query I rowsort
SELECT 82 + - col2 FROM tab2 AS cor0 WHERE col0 IN ( 41 )
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1518
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - AVG ( + + 61 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 91 * - 48 >= + ( + 35 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT - col1 AS col2 FROM tab2 WHERE ( - col2 ) * - + CAST( NULL AS SIGNED ) NOT IN ( + 31 * - col2, - 98 )
----

skipif mysql # not compatible
query I rowsort label-1520
SELECT - col1 AS col2 FROM tab2 WHERE ( - col2 ) * - + CAST ( NULL AS INTEGER ) NOT IN ( + 31 * - col2, - 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT - SUM( - - 47 ) + MIN( ALL + 49 ) - - - 28 col2 FROM tab1, tab2 AS cor0
----
-402

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1521
SELECT DISTINCT - SUM ( - - 47 ) + MIN ( ALL + 49 ) - - - 28 col2 FROM tab1, tab2 AS cor0
----
-402

query I rowsort
SELECT 93 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col0 / 27 <= - col2 + - 91 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 25 * + col2 - + - 98 FROM tab0 AS cor0
----
-1077
-152
-2377

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

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

query I rowsort
SELECT + col1 * col1 * col0 + + 4 - - ( - col0 ) FROM tab0 AS cor0
----
38284
4
98404

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT - - col2 - col2 DIV col2 + + col1 FROM tab0 AS cor0
----
127
30
99

skipif mysql # not compatible
query I rowsort label-1527
SELECT - - col2 - col2 / col2 + + col1 FROM tab0 AS cor0
----
127
30
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 21 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + + col1 col1 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT DISTINCT COUNT( ALL - col1 ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT COUNT ( ALL - col1 ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT ALL col2 DIV - 8 FROM tab1
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL col2 / - 8 FROM tab1
----
-12
-7
-8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * + + 56 col0 FROM tab1
----
-16520
-178976
-75264

query I rowsort
SELECT 37 * - + col0 AS col0 FROM tab0
----
-3219
-3589
-555

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

query II rowsort
SELECT DISTINCT - 55, col2 AS col1 FROM tab2
----
-55
23
-55
40
-55
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 BETWEEN - 66 AND NULL
----
64
77
40
75
67
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, 26 col2 FROM tab1
----
51
26
85
26
91
26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT COUNT( * ) DIV + COUNT( * ) + + 15 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1541
SELECT COUNT ( * ) / + COUNT ( * ) + + 15 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT ALL - 50 DIV COUNT( * ) FROM tab2 AS cor0 WHERE - 12 IS NOT NULL
----
-16

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL - 50 / COUNT ( * ) FROM tab2 AS cor0 WHERE - 12 IS NOT NULL
----
-16

query I rowsort
SELECT 50 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1544
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) * + + col1 AS col2 FROM tab0 cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) * + + col1 AS col2 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1545
SELECT - CAST( + SUM( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL + 77 + 42 * + + COUNT( * ) AS col0 FROM tab2 cor0
----
203

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL + 77 + 42 * + + COUNT ( * ) AS col0 FROM tab2 cor0
----
203

query I rowsort
SELECT DISTINCT + 47 * - 48 + + + 67 FROM tab1 AS cor0
----
-2189

query I rowsort
SELECT DISTINCT col2 + - - ( + + 64 ) AS col0 FROM tab0
----
111
163
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1550
SELECT * FROM tab2 WHERE ( ( CAST( NULL AS SIGNED ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1550
SELECT * FROM tab2 WHERE ( ( CAST ( NULL AS INTEGER ) ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1551
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-1551
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1552
SELECT ALL col2 AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - 78 + + - MAX( + + col0 ) * + SUM( col1 ) AS col2 FROM tab0
----
-10069

skipif mysql # not compatible
query I rowsort label-1554
SELECT - 78 + + - MAX ( + + col0 ) * + SUM ( col1 ) AS col2 FROM tab0
----
-10069

query I rowsort
SELECT DISTINCT ( + + 47 ) + + col0 * + col2 AS col2 FROM tab0
----
752
917
9650

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( NOT 83 IS NULL )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1557
SELECT DISTINCT MIN( ALL - - col0 ) + + CAST( NULL AS SIGNED ) AS col0, 84 + - 78 AS col2 FROM tab1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-1557
SELECT DISTINCT MIN ( ALL - - col0 ) + + CAST ( NULL AS INTEGER ) AS col0, 84 + - 78 AS col2 FROM tab1
----
NULL
6

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

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

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

query I rowsort
SELECT + + 60 * - 54 * col2 * - + col0 + col0 FROM tab0 cor0 WHERE col0 > + + col1 + - 15
----
2818887
31113817

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + 46 - - - MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1561
SELECT + 46 - - - MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT COUNT( * ) DIV 87 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT COUNT ( * ) / 87 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT 78 DIV 29 AS col1 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1563
SELECT 78 / 29 AS col1 FROM tab2
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT + col0 DIV + 22 AS col1 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-1564
SELECT + col0 / + 22 AS col1 FROM tab2
----
2
2
3

query I rowsort
SELECT DISTINCT + col0 * 30 + 81 FROM tab1
----
1611
2631
2811

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT 83 / + col0 FROM tab0
----
0
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT 21 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT 21 / - col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - MAX( col1 ) * + 29 AS col0 FROM tab2
----
-2233

skipif mysql # not compatible
query I rowsort label-1569
SELECT - MAX ( col1 ) * + 29 AS col0 FROM tab2
----
-2233

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1572
SELECT DISTINCT * FROM tab2 WHERE 27 * CAST( 17 AS SIGNED ) >= + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1572
SELECT DISTINCT * FROM tab2 WHERE 27 * CAST ( 17 AS INTEGER ) >= + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) = + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT - MIN( ALL + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE NOT 25 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT - 3 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1579
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( CAST( NULL AS DECIMAL ) / + 39 )
----

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( CAST ( NULL AS REAL ) / + 39 )
----

query I rowsort
SELECT - ( - ( col1 ) ) FROM tab1
----
14
47
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT COUNT( * ) + 62 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-1582
SELECT COUNT ( * ) + 62 FROM tab0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1583
SELECT ALL - SUM( DISTINCT 8 ) AS col2 FROM tab1 WHERE NOT 63 BETWEEN CAST( NULL AS SIGNED ) AND col2
----
-8

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - SUM ( DISTINCT 8 ) AS col2 FROM tab1 WHERE NOT 63 BETWEEN CAST ( NULL AS INTEGER ) AND col2
----
-8

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

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

skipif mysql # not compatible
query I rowsort label-1585
SELECT MAX ( DISTINCT ( + ( 87 ) ) ) AS col2 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT COUNT( * ) * - 27 col2 FROM tab2 WHERE NOT ( 93 ) IS NULL
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1586
SELECT COUNT ( * ) * - 27 col2 FROM tab2 WHERE NOT ( 93 ) IS NULL
----
-81

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT col1 * CAST( - col2 AS SIGNED ) + - col0 FROM tab0
----
-196
-297
-3822

skipif mysql # not compatible
query I rowsort label-1589
SELECT col1 * CAST ( - col2 AS INTEGER ) + - col0 FROM tab0
----
-196
-297
-3822

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL MAX( 55 ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL MAX ( 55 ) FROM tab0
----
55

query I rowsort
SELECT col0 + + col0 AS col2 FROM tab0 WHERE + 58 IS NOT NULL
----
174
194
30

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

query I rowsort
SELECT DISTINCT + col0 * - 74 FROM tab1 AS cor0
----
-3774
-6290
-6734

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT CAST( SUM( col0 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-1597
SELECT CAST ( SUM ( col0 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
185

query I rowsort
SELECT DISTINCT + col0 * 41 AS col2 FROM tab2 AS cor0
----
1886
2624
3075

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

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

query I rowsort
SELECT DISTINCT 57 + 11 AS col0 FROM tab0
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT MIN( 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT MIN ( 32 ) FROM tab0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1603
SELECT - COUNT( * ) * ( MIN( ALL + CAST( - 4 AS SIGNED ) ) ) + COUNT( * ) DIV COUNT( 19 DIV 95 ) col1 FROM tab0 cor0 CROSS JOIN tab2
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1603
SELECT - COUNT ( * ) * ( MIN ( ALL + CAST ( - 4 AS INTEGER ) ) ) + COUNT ( * ) / COUNT ( 19 / 95 ) col1 FROM tab0 cor0 CROSS JOIN tab2
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND 90 * + col0
----

query I rowsort
SELECT + 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL = NULL
----

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

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

query I rowsort
SELECT ALL col1 * 30 FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----

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

query I rowsort
SELECT + + 90 * + col0 AS col0 FROM tab1 AS cor0
----
4590
7650
8190

query I rowsort
SELECT DISTINCT 2 + col1 FROM tab0 AS cor0
----
23
3
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT ALL - 40 DIV + 75 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - 40 / + 75 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - 8 + ( + 10 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 ) <> ( NULL )
----

query I rowsort
SELECT + + 10 * - 36 AS col0 FROM tab0 AS cor0
----
-360
-360
-360

query I rowsort
SELECT ALL col0 / 95 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - COUNT( DISTINCT 39 ) * 82 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1616
SELECT - COUNT ( DISTINCT 39 ) * 82 FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1617
SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

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

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

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

query I rowsort
SELECT DISTINCT 11 * + 65 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND - col2 - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1621
SELECT - 63 - + + COUNT( * ) + 53 DIV COUNT( * ) col0 FROM tab0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1621
SELECT - 63 - + + COUNT ( * ) + 53 / COUNT ( * ) col0 FROM tab0
----
-49

query I rowsort
SELECT ALL + col2 + + col1 * 36 FROM tab2
----
1859
2470
2812

query I rowsort
SELECT + col1 * + ( + 42 ) + - 18 AS col2 FROM tab1
----
192
1956
570

query I rowsort
SELECT + col0 + 68 * - col0 AS col1 FROM tab0 AS cor0
----
-1005
-5829
-6499

query I rowsort
SELECT ALL - 76 - col0 FROM tab0 AS cor0
----
-163
-173
-91

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

query I rowsort
SELECT - col1 + - col1 + 93 AS col2 FROM tab2 AS cor0
----
-41
-61
-9

query I rowsort
SELECT 34 * - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1598
-3366
-340

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

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

query I rowsort
SELECT DISTINCT + 87 - - col2 FROM tab2 cor0
----
110
127
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT DISTINCT + 10 DIV COUNT( * ) + - COUNT( col0 ) * COUNT( * ) - + 57 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT + 10 / COUNT ( * ) + - COUNT ( col0 ) * COUNT ( * ) - + 57 FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1632
SELECT ALL 33 DIV + - COUNT( * ) - COUNT( * ) AS col0 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL 33 / + - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0
----
-14

query I rowsort
SELECT DISTINCT col1 - 46 - 18 FROM tab0
----
-43
-63
17

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT col2 * + 87 FROM tab0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL + 98 * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-882

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + 98 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-882

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) > ( 80 )
----

query I rowsort
SELECT - ( - 8 ) FROM tab2 AS cor0 WHERE NOT 61 / + - 33 + col2 NOT IN ( + col2 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL + 57 * - 6 * - - 34 * COUNT( - col1 / 95 ) AS col1 FROM tab0 AS cor0
----
-34884

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL + 57 * - 6 * - - 34 * COUNT ( - col1 / 95 ) AS col1 FROM tab0 AS cor0
----
-34884

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 56 <= NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1645
SELECT ALL ( + + CAST( - SUM( - col2 ) AS SIGNED ) ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL ( + + CAST ( - SUM ( - col2 ) AS INTEGER ) ) AS col0 FROM tab1
----
223

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - SUM( ALL - - 89 ) AS col1 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-1647
SELECT - SUM ( ALL - - 89 ) AS col1 FROM tab2
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT - col1 DIV ( - + ( - col0 ) ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT - col1 / ( - + ( - col0 ) ) FROM tab2
----
-1
-1
0

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

query I rowsort
SELECT ALL col1 * 53 AS col2 FROM tab0
----
1113
4293
53

query I rowsort
SELECT DISTINCT + 83 * + + col1 AS col0 FROM tab1
----
1162
3901
415

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, col2 * + 27 / col1 - ( 64 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - - col0 + - - col2 > ( - 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT 39 * - MAX( ALL + col1 ) + - ( + - COUNT( * ) ) - - 68 * 40 AS col0 FROM tab0 AS cor0
----
-436

skipif mysql # not compatible
query I rowsort label-1654
SELECT 39 * - MAX ( ALL + col1 ) + - ( + - COUNT ( * ) ) - - 68 * 40 AS col0 FROM tab0 AS cor0
----
-436

query I rowsort
SELECT DISTINCT - col1 + - + 88 AS col2 FROM tab2 AS cor0
----
-139
-155
-165

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

query I rowsort
SELECT DISTINCT + ( - 38 ) + 87 FROM tab0 cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 92 NOT BETWEEN - col2 AND + - col2 * col1 + col2 AND - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT ALL - - 7 DIV - - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - - 7 / - - col0 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - ( + 76 ) * + + 40 + + + 73 + col1 FROM tab2 AS cor0
----
-2890
-2900
-2916

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + col2 / + 69 FROM tab0 WHERE NOT - col1 IS NULL
----
0
0
1

query I rowsort
SELECT + 91 + - col1 FROM tab0
----
10
70
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT COUNT( * ) DIV COUNT( * ) + + 41 AS col1 FROM tab1 WHERE + 17 > ( col0 * + col1 * - col0 DIV col2 + col2 )
----
42

skipif mysql # not compatible
query I rowsort label-1664
SELECT COUNT ( * ) / COUNT ( * ) + + 41 AS col1 FROM tab1 WHERE + 17 > ( col0 * + col1 * - col0 / col2 + col2 )
----
42

query I rowsort
SELECT - col0 * + + 20 * + col0 + col2 * - - col2 * + col1 AS col0 FROM tab1
----
-127095
51708
77004

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

query III rowsort
SELECT * FROM tab1 WHERE ( 56 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 * + col1, + 18 col1 FROM tab2
----
-3621
18
-4757
18
-5467
18

query I rowsort
SELECT DISTINCT + col0 + + - col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col2 * - col2 FROM tab0 WHERE - - col1 NOT IN ( 38 )
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT - COUNT( DISTINCT col1 ) FROM tab2 AS cor0 WHERE - CAST( + - col0 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1671
SELECT - COUNT ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE - CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
-3

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

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

query III rowsort
SELECT DISTINCT - col0 AS col1, col1 AS col1, - + col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to 34b473dd1664c8d5e3315db597ad98d1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - 21 + + - col0 BETWEEN + - col2 + + col1 + + col1 + col0 AND ( + 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( ( col0 ) < - col2 ) )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL - COUNT ( 65 ) FROM tab1 AS cor0
----
-3

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1682
SELECT DISTINCT 66 AS col0, 72 + - COUNT( * ) AS col2 FROM tab1
----
66
69

skipif mysql # not compatible
query II rowsort label-1682
SELECT DISTINCT 66 AS col0, 72 + - COUNT ( * ) AS col2 FROM tab1
----
66
69

query I rowsort
SELECT DISTINCT + col0 * - + 66 AS col2 FROM tab1 WHERE - + col0 < NULL
----

query I rowsort
SELECT DISTINCT 63 + - 64 FROM tab0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT + ( SUM ( + col2 ) ) FROM tab2 AS cor0
----
121

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1687
SELECT col0 * - col1 + CAST( NULL AS SIGNED ) AS col1, ( + + CAST( col1 AS SIGNED ) ) * - 29 AS col2 FROM tab2 AS cor0
----
NULL
-1479
NULL
-1943
NULL
-2233

skipif mysql # not compatible
query II rowsort label-1687
SELECT col0 * - col1 + CAST ( NULL AS INTEGER ) AS col1, ( + + CAST ( col1 AS INTEGER ) ) * - 29 AS col2 FROM tab2 AS cor0
----
NULL
-1479
NULL
-1943
NULL
-2233

query I rowsort
SELECT ALL ( col0 ) + - col1 FROM tab1
----
37
44
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1690
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1691
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND col0 + - col1 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1691
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND col0 + - col1 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT COUNT( - - col2 ) FROM tab1 AS cor0 WHERE + 74 IN ( col1, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT COUNT ( - - col2 ) FROM tab1 AS cor0 WHERE + 74 IN ( col1, col1 )
----
0

query I rowsort
SELECT + ( - + ( + - col0 ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1696
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2, 63 col2 FROM tab2 AS cor0
----
51
63
67
63
77
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1696
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2, 63 col2 FROM tab2 AS cor0
----
51
63
67
63
77
63

query I rowsort
SELECT DISTINCT + + ( + col1 ) * + col1 - col1 AS col2 FROM tab0 cor0
----
0
420
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 36 + col1 * - 93 col1, col0 AS col0 FROM tab0
----
-1917
87
-57
97
-7497
15

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

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

query I rowsort
SELECT ALL 52 FROM tab1 WHERE NOT - col1 IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * + 15 AS col2 FROM tab2
----
-1125
-690
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT COUNT( * ) * - + COUNT( * ) * + + 68 + + SUM( ALL - 89 ) FROM tab2
----
-879

skipif mysql # not compatible
query I rowsort label-1702
SELECT COUNT ( * ) * - + COUNT ( * ) * + + 68 + + SUM ( ALL - 89 ) FROM tab2
----
-879

query I rowsort
SELECT - 32 * + 5 AS col1 FROM tab1 WHERE col0 BETWEEN + col2 * col1 AND + 35 / + 72 + + ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL SUM( DISTINCT col1 ) + + 77 FROM tab1 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL SUM ( DISTINCT col1 ) + + 77 FROM tab1 AS cor0
----
143

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

query I rowsort
SELECT DISTINCT + 3 * - + col2 + + col0 AS col0 FROM tab0 AS cor0
----
-126
-200
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1708
SELECT ALL - 82, - MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-82
-81

skipif mysql # not compatible
query II rowsort label-1708
SELECT ALL - 82, - MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-82
-81

query I rowsort
SELECT DISTINCT 40 * + 91 FROM tab2
----
3640

query II rowsort
SELECT 58 AS col1, + 24 * col0 FROM tab0
----
58
2088
58
2328
58
360

query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab1 WHERE NOT - 70 * + - 35 + - col2 * + col1 NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * col2 col1 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1713
SELECT ALL + 53 AS col1, COUNT( * ) / - ( - AVG ( DISTINCT CAST( col1 AS SIGNED ) ) ) * + 71 / - 28 - + CAST( NULL AS SIGNED ) - - 55 + - MAX( + col1 ) FROM tab0 AS cor0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-1713
SELECT ALL + 53 AS col1, COUNT ( * ) / - ( - AVG ( DISTINCT CAST ( col1 AS INTEGER ) ) ) * + 71 / - 28 - + CAST ( NULL AS INTEGER ) - - 55 + - MAX ( + col1 ) FROM tab0 AS cor0
----
53
NULL

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

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

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

query II rowsort
SELECT DISTINCT - 73, col0 FROM tab0 cor0
----
-73
15
-73
87
-73
97

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1721
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 > CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-1721
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 > CAST ( NULL AS INTEGER ) + + col1
----

query I rowsort
SELECT DISTINCT col2 + + 78 AS col1 FROM tab2
----
101
118
136

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 + + col1 - + - col1 col1 FROM tab2
----
199
276
295

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

query I rowsort
SELECT DISTINCT 74 + 41 + 1 FROM tab1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT ALL - MIN( ( col2 ) ) AS col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) = 36 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - MIN ( ( col2 ) ) AS col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = 36 / + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 61 * + 16 ) <= 62
----

query I rowsort
SELECT + - col0 * - + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

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

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

query II rowsort
SELECT DISTINCT + ( - col2 ) AS col0, + ( - 48 ) - + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - ( ( + col2 ) ) + + 76
----

query I rowsort
SELECT ALL - col2 - + - col2 FROM tab1 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * - - 96 col0 FROM tab1
----
1728
1728
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT ALL + col0 DIV + 42 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + col0 / + 42 AS col2 FROM tab1
----
1
2
2

query I rowsort
SELECT col2 * + 77 FROM tab1
----
4543
5236
7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - 77 col0 FROM tab2
----
-1771
-3080
-4466

query II rowsort
SELECT 59 * + col1, col2 + col0 + - + col0 * - + 76 AS col1 FROM tab1
----
2773
7075
295
6604
826
4023

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

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

query I rowsort
SELECT ALL col1 * + 18 AS col2 FROM tab1
----
252
846
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col0 FROM tab0
----
39

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

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 66 / - col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT SUM( ALL - - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1745
SELECT SUM ( ALL - - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL COUNT( * ) * + 83 AS col0 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL COUNT ( * ) * + 83 AS col0 FROM tab1 AS cor0
----
249

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

query I rowsort
SELECT 66 + + - col2 FROM tab2 WHERE NOT NULL IN ( col0 * 31 / + col2 )
----

query I rowsort
SELECT DISTINCT - 44 * - col0 * - 58 * - col1 FROM tab0
----
247544
3100680
4662504

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND - + 67 + - 51
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT ALL - 50 DIV + 52 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - 50 / + 52 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2, col1 + + - 48 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT - 8 DIV + + col1 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1754
SELECT - 8 / + + col1 FROM tab0 cor0
----
-8
0
0

query I rowsort
SELECT ALL - ( - col0 ) * - 40 FROM tab0 AS cor0
----
-3480
-3880
-600

query I rowsort
SELECT ALL - 82 * - + col1 FROM tab0 AS cor0
----
1722
6642
82

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

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

query I rowsort
SELECT ALL - col0 * - ( 67 ) FROM tab1
----
3417
5695
6097

query I rowsort
SELECT DISTINCT + col2 * + - 14 FROM tab2
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT - COUNT( * ) + 49 AS col1 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - COUNT ( * ) + 49 AS col1 FROM tab1
----
46

query II rowsort
SELECT DISTINCT col1, - col0 AS col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
-51
47
-91
5
-85

query I rowsort
SELECT + col2 + - col0 + col1 FROM tab2 AS cor0
----
28
50
53

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

query I rowsort
SELECT + col2 + + 77 AS col0 FROM tab1 AS cor0
----
136
145
173

query I rowsort
SELECT - 33 + - 95 FROM tab2 AS cor0
----
-128
-128
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT DISTINCT + 7 DIV - 88 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + 7 / - 88 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - 83 * - + 97 + + col0 FROM tab2
----
8097
8115
8126

query II rowsort
SELECT col0 AS col1, - col2 FROM tab2 WHERE NULL IS NULL
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT - col2 + + 34 FROM tab2 AS cor0
----
-24
-6
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1771
SELECT ALL CAST( NULL AS SIGNED ) + - col1, - col2 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL CAST ( NULL AS INTEGER ) + - col1, - col2 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query II rowsort
SELECT DISTINCT + col2 + + 77 AS col0, 57 FROM tab1 AS cor0
----
136
57
145
57
173
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + col0 col2 FROM tab2 cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 8 - col2 col0 FROM tab0 AS cor0
----
-2
-39
-91

query I rowsort
SELECT col0 - + - col2 * + 81 AS col0 FROM tab1 AS cor0
----
4864
5599
7827

query I rowsort
SELECT ALL + - 41 - + 56 + + - col2 FROM tab2 AS cor0
----
-120
-137
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT 23 + - - COUNT( * ) FROM tab2 WHERE ( - + col1 ) IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-1777
SELECT 23 + - - COUNT ( * ) FROM tab2 WHERE ( - + col1 ) IS NOT NULL
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL SUM( - ( + 45 ) ) AS col2 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL SUM ( - ( + 45 ) ) AS col2 FROM tab2
----
-135

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 + + col1 ) IS NOT NULL
----

query I rowsort
SELECT 36 * col2 AS col2 FROM tab0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT MAX( + - col0 ) * + + COUNT( * ) * + MAX( ALL + 35 ) - + + 5 AS col2 FROM tab2
----
-4835

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT MAX ( + - col0 ) * + + COUNT ( * ) * + MAX ( ALL + 35 ) - + + 5 AS col2 FROM tab2
----
-4835

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT MAX( 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT MAX ( 54 ) FROM tab0
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL COUNT( * ) * - COUNT( ALL col0 ) FROM tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL COUNT ( * ) * - COUNT ( ALL col0 ) FROM tab1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ( col0 ) * + col2 AS col2 FROM tab2
----
1058
2560
4350

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT + - col2 DIV col2 + col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT + - col2 / col2 + col2 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT - AVG ( ALL + col0 ) + 60 / - - AVG ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - - 61 AS col0 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT col1 * - - 15 FROM tab1
----
210
705
75

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

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

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

query I rowsort
SELECT col1 * - + col2 + + 92 FROM tab0
----
-118
-3715
-7

query I rowsort
SELECT ALL + col1 + + col1 * + - 25 AS col2 FROM tab2
----
-1224
-1608
-1848

query III rowsort
SELECT * FROM tab0 WHERE NULL < + + col1 * 65 + - 89
----

query II rowsort
SELECT DISTINCT + 61 + + - col2 + - col0 AS col2, col0 AS col0 FROM tab1
----
-83
85
-86
51
-98
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL + COUNT( * ) * + - COUNT( + + col1 ) + - 24 AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + COUNT ( * ) * + - COUNT ( + + col1 ) + - 24 AS col1 FROM tab0
----
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( - col0 ) > NULL
----

query II rowsort
SELECT ALL - - col2 + + col1 - + - 6 * + col1 * - col1, col2 AS col0 FROM tab2 AS cor0
----
-15532
23
-26809
58
-35457
40

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

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

query I rowsort
SELECT ALL - col1 * - col1 + - col1 * - - col1 * + col1 AS col1 FROM tab0
----
-524880
-8820
0

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT DISTINCT - + col1 + - + col2 AS col0 FROM tab2 cor0
----
-117
-125
-74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= + ( + - 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT - CAST( + col0 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-1810
SELECT - CAST ( + col0 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * 82 col0 FROM tab1
----
-6970
-6970
-6970

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - 39
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT - + SUM ( col2 ) col2 FROM tab2 AS cor0
----
-121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - MIN( ALL 70 ) AS col2 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-1819
SELECT - MIN ( ALL 70 ) AS col2 FROM tab2
----
-70

query I rowsort
SELECT + col1 * - - 64 * - col0 FROM tab1 AS cor0
----
-27200
-273728
-45696

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

query I rowsort
SELECT 35 * + 20 AS col0 FROM tab1 cor0
----
700
700
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1823
SELECT + + COUNT( * ) DIV + 95 FROM tab2 AS cor0 WHERE 18 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT + + COUNT ( * ) / + 95 FROM tab2 AS cor0 WHERE 18 IS NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT - MAX ( + 42 ) AS col1 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT - col1 * + 8 * - col1 AS col0 FROM tab2 AS cor0
----
20808
35912
47432

query I rowsort
SELECT ALL 35 AS col2 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT + col2 * 47 AS col1 FROM tab0 AS cor0
----
2209
4653
470

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

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT - MIN ( + - col1 ) FROM tab0
----
81

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

query I rowsort
SELECT + col2 + - ( 60 ) FROM tab2
----
-2
-20
-37

query I rowsort
SELECT + 26 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
101
72
90

query I rowsort
SELECT - - 67 + + 81 FROM tab1 AS cor0
----
148
148
148

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT + - col2 + + - col0 DIV - + 55 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-1834
SELECT + - col2 + + - col0 / - + 55 FROM tab1 AS cor0
----
-58
-67
-96

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

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col1 * + - col0 * + + col2 FROM tab1
----
-25075
-290836
-68544

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > + 11
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1839
SELECT DISTINCT - CAST( COUNT( DISTINCT + col1 ) AS SIGNED ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-1839
SELECT DISTINCT - CAST ( COUNT ( DISTINCT + col1 ) AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

query I rowsort
SELECT + ( + 19 ) FROM tab0 cor0
----
19
19
19

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1841
SELECT COUNT ( * ) col1, + MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT MAX( 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT MAX ( 56 ) FROM tab0 AS cor0
----
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - col0 * + 58 AND col2 * col0 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT + col1 DIV - 5 AS col2 FROM tab0 AS cor0
----
-16
-4
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + col1 / - 5 AS col2 FROM tab0 AS cor0
----
-16
-4
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1845
SELECT + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

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

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

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

query II rowsort
SELECT + col2 + + ( - col2 ), col2 FROM tab2 AS cor0 WHERE NOT 33 + - + col1 IS NULL
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT DISTINCT - + ( - + CAST( + - col1 AS SIGNED ) ) * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - + ( - + CAST ( + - col1 AS INTEGER ) ) * + col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1850
SELECT ALL - MAX( - + CAST( col0 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
51

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1 AS col0, 72 * - col2 FROM tab1
----
14
-6912
47
-4896
5
-4248

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT - ( + 86 ) * + - COUNT( * ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-1853
SELECT - ( + 86 ) * + - COUNT ( * ) FROM tab1
----
258

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

query I rowsort
SELECT - 70 * col1 AS col0 FROM tab1
----
-3290
-350
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT col1 DIV + - 44 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1856
SELECT col1 / + - 44 FROM tab2
----
-1
-1
-1

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

query I rowsort
SELECT 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL OR NOT + 60 * - col1 <> 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - + MIN( col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1860
SELECT - + MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
-23

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

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

query I rowsort
SELECT ALL - - 44 AS col0 FROM tab1 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + 21 + 17 * + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1863
SELECT + 21 + 17 * + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT + + col0 + 19 FROM tab2 AS cor0
----
65
83
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + col0 * col1 + - col1 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + col0 * col1 + - col1 = ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 43 * col1 * - 29 + + - col0
----

query I rowsort
SELECT ( 98 ) + - + 67 FROM tab0
----
31
31
31

query I rowsort
SELECT ALL 60 + - + col1 AS col2 FROM tab0
----
-21
39
59

query I rowsort
SELECT ALL col0 + + 65 FROM tab0
----
152
162
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1870
SELECT - MAX( - col1 ) + 27 DIV - MIN( col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1870
SELECT - MAX ( - col1 ) + 27 / - MIN ( col1 ) AS col1 FROM tab2
----
51

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

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

query I rowsort
SELECT ALL + - col2 - - - 91 + - col2 FROM tab2 AS cor0
----
-137
-171
-207

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT MAX( DISTINCT - 4 ) - - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1875
SELECT MAX ( DISTINCT - 4 ) - - COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT DISTINCT col1 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT col1 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col1 * + + col2 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + - ( - col1 ) * + + 26 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT 79 DIV - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT 79 / - col1 FROM tab2
----
-1

query I rowsort
SELECT col2 * + 29 AS col0 FROM tab0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + MIN( ALL col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1882
SELECT + MIN ( ALL col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT DISTINCT - 67 DIV - - col2 + - col0 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT - 67 / - - col2 + - col0 FROM tab2
----
-48
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1884
SELECT + + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL + + ( + col0 ) * + col1 * - - 55 AS col1 FROM tab2 AS cor0 WHERE NOT - 67 + - col0 IS NOT NULL
----

query II rowsort
SELECT + 87 AS col0, + 85 + - col0 * - col1 FROM tab2 AS cor0
----
87
2431
87
5013
87
5110

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 44 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab1 WHERE - col1 NOT IN ( col2, + col1 * + col1, - col0 * + - 99 )
----
51
85
91

query I rowsort
SELECT ALL 70 + + 27 AS col1 FROM tab1
----
97
97
97

query III rowsort
SELECT * FROM tab2 WHERE + - col2 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 * ( + ( + col2 ) ) + + col2, + col0 + - 42 + + + 87 AS col0 FROM tab2
----
1081
91
2600
109
4408
120

query I rowsort
SELECT - col0 + 38 FROM tab2 AS cor0
----
-26
-37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT - 17 * + 65 + + COUNT( 91 ) - + 62 FROM tab2 AS cor0
----
-1164

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 17 * + 65 + + COUNT ( 91 ) - + 62 FROM tab2 AS cor0
----
-1164

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT - COUNT( * ) + - - COUNT( DISTINCT 52 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1894
SELECT - COUNT ( * ) + - - COUNT ( DISTINCT 52 ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT - 70 * + + col2 + 74 AS col1 FROM tab1 AS cor0
----
-4056
-4686
-6646

query I rowsort
SELECT 96 + - - 30 + - - col2 AS col0 FROM tab0 AS cor0
----
136
173
225

query I rowsort
SELECT - 58 * + + 64 FROM tab1
----
-3712
-3712
-3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT - col0 * CAST( + col1 AS SIGNED ) * - 9 + + ( 24 ) FROM tab2
----
21138
44376
45249

skipif mysql # not compatible
query I rowsort label-1898
SELECT - col0 * CAST ( + col1 AS INTEGER ) * - 9 + + ( 24 ) FROM tab2
----
21138
44376
45249

query II rowsort
SELECT DISTINCT col1, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query II rowsort
SELECT - col2 AS col2, - ( + - col0 ) * + col1 FROM tab2
----
-23
2346
-40
4928
-58
5025

query I rowsort
SELECT col2 * - 21 * col1 * + + col1 + - col2 FROM tab2 AS cor0
----
-1256306
-4980400
-5467660

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1902
SELECT - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 col0, - 8 FROM tab1 AS cor0
----
-36
-8
-36
-8
-36
-8

query II rowsort
SELECT 53, col2 AS col0 FROM tab0 AS cor0
----
53
10
53
47
53
99

query II rowsort
SELECT ALL - ( - col2 ) * 21, + col1 * + col2 + - ( + 43 ) AS col1 FROM tab1 AS cor0
----
1239
252
1428
3153
2016
1301

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT - - 83 * - COUNT( * ) FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - - 83 * - COUNT ( * ) FROM tab1 AS cor0
----
-249

query I rowsort
SELECT ALL + col2 * + 32 FROM tab0 cor0
----
1504
3168
320

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 89 * - - 53 * - + 28 FROM tab0
----
-132076
-132076
-132076

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - col0 - + col1 * - + col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - col2 * 37 FROM tab2
----
113960
143782
43401

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1912
SELECT + CAST( - col1 AS SIGNED ) AS col0, col1 FROM tab0
----
-1
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-1912
SELECT + CAST ( - col1 AS INTEGER ) AS col0, col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT col1 + + col2 * + 28 * + 26 FROM tab2
----
16795
29197
42291

query I rowsort
SELECT ALL - 75 * - 47 + - - 40 AS col1 FROM tab0
----
3565
3565
3565

query I rowsort
SELECT col1 * + 91 + - - 70 FROM tab2 AS cor0
----
4711
6167
7077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 cor0 WHERE NOT ( ( ( NOT - + 15 NOT BETWEEN NULL AND - col2 ) ) )
----
-59
-68
-96

query I rowsort
SELECT + 78 + + ( - - col0 ) AS col2 FROM tab0 cor0
----
165
175
93

query II rowsort
SELECT ALL col0 AS col2, 58 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col2 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 22 - - - 58 + + 23 <> - 71 * - col1 OR NULL < col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1920
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col1 + - col0 + + + 40 AND - col0 + col0 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-1920
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col1 + - col0 + + + 40 AND - col0 + col0 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 - + - col2 col0 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT + 99 + COUNT( * ) + + + MIN( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-1922
SELECT + 99 + COUNT ( * ) + + + MIN ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
153

query I rowsort
SELECT - col1 * - col2 FROM tab0 AS cor0 WHERE col2 IN ( 87 * col0, - 71, col2, - col2 )
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + 41
----

query I rowsort
SELECT ALL - col2 - + 43 AS col1 FROM tab0 AS cor0
----
-142
-53
-90

query II rowsort
SELECT col0, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL 34 + COUNT( * ) * + - ( + SUM( ALL + col0 ) ) AS col2 FROM tab0
----
-563

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 34 + COUNT ( * ) * + - ( + SUM ( ALL + col0 ) ) AS col2 FROM tab0
----
-563

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + MIN( ALL + - col1 ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-1928
SELECT + MIN ( ALL + - col1 ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-47

query II rowsort
SELECT + col1 AS col2, + ( 37 ) AS col2 FROM tab1
----
14
37
47
37
5
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT - SUM( + - col0 ) FROM tab0 WHERE + col0 * 71 + + 98 + - 28 / + col0 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-1930
SELECT - SUM ( + - col0 ) FROM tab0 WHERE + col0 * 71 + + 98 + - 28 / + col0 IS NOT NULL
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1931
SELECT 19 DIV - COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1931
SELECT 19 / - COUNT ( * ) AS col0 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + SUM( + 6 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + SUM ( + 6 ) FROM tab0 cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 WHERE + + col2 NOT BETWEEN ( + + ( - + col1 ) * + + 29 ) AND ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 54 >= + 86
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1936
SELECT + 62 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1936
SELECT + 62 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
20

query I rowsort
SELECT - + col2 * 41 * - - 77 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + col0 + + 41 AS col2 FROM tab1
----
126
132
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1939
SELECT DISTINCT - CAST( COUNT( + col0 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT - CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 7 * + - 23 FROM tab0
----
-161
-161
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL 85 + + MAX( - 60 ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL 85 + + MAX ( - 60 ) AS col1 FROM tab0
----
25

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col0 AS col1 FROM tab1 AS cor0
----
132651
614125
753571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) + - 14 * 95 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) + - 14 * 95 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT ALL - + col1 DIV + - 1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - + col1 / + - 1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + + 45 * - col2 / - - col1 AS col0 FROM tab1 WHERE NOT + col2 IN ( - 13, 39, + col2, + col0 )
----

query I rowsort
SELECT DISTINCT - - 59 + + + col0 FROM tab0 AS cor0
----
146
156
74

query I rowsort
SELECT DISTINCT - 42 * - 84 - - + 61 AS col1 FROM tab1 AS cor0
----
3589

query I rowsort
SELECT ( - + 89 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 9 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1953
SELECT 21 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT 21 + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT + col2 DIV - - 79 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1954
SELECT + col2 / - - 79 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT DISTINCT + 65 DIV + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT + 65 / + COUNT ( * ) FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT - col1 DIV col2 col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1956
SELECT - col1 / col2 col1 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1957
SELECT DISTINCT + + CAST( NULL AS SIGNED ) DIV - - ( - + 68 ) AS col1, col0 - + col2 DIV + - col2 FROM tab1 AS cor0
----
NULL
52
NULL
86
NULL
92

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - - ( - + 68 ) AS col1, col0 - + col2 / + - col2 FROM tab1 AS cor0
----
NULL
52
NULL
86
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + + SUM( - - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1958
SELECT + + SUM ( - - col0 ) FROM tab0 AS cor0
----
199

query II rowsort
SELECT ALL - col1, col0 + + 32 + + col0 * + 82 AS col1 FROM tab0
----
-1
8083
-21
7253
-81
1277

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT col0 DIV + col2 + + col2 col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1960
SELECT col0 / + col2 + + col2 col2 FROM tab2 AS cor0
----
25
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL - COUNT( * ) * 79 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL - COUNT ( * ) * 79 FROM tab2 AS cor0
----
-237

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 71, col1 FROM tab2 AS cor0
----
71
51
71
67
71
77

query II rowsort
SELECT DISTINCT - + col0, + 53 AS col2 FROM tab2 AS cor0
----
-46
53
-64
53
-75
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + + COUNT( - + col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1965
SELECT + + COUNT ( - + col2 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col0 * - col2 + + - col2 AS col1 FROM tab2
----
-1081
-2600
-4408

query II rowsort
SELECT ALL 7 * - ( - col2 ) * + 79 + - - 52, - col1 AS col1 FROM tab2
----
12771
-51
22172
-77
32126
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT + COUNT( * ) + CAST( + - 69 AS SIGNED ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( * ) + CAST ( + - 69 AS INTEGER ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE + col0 = + 36
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - col1 * 63 * col2 + + 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 / + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 - + 47 AS col2 FROM tab0
----
-37
0
52

query I rowsort
SELECT 47 + + + col2 AS col2 FROM tab0
----
146
57
94

query I rowsort
SELECT ALL 56 + col0 AS col2 FROM tab0
----
143
153
71

query I rowsort
SELECT DISTINCT - col2 - - 53 FROM tab1
----
-15
-43
-6

query I rowsort
SELECT + 31 + + + 77 FROM tab2 AS cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT DISTINCT 21 - + COUNT( * ) AS col0 FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT 21 - + COUNT ( * ) AS col0 FROM tab2 cor0
----
18

query II rowsort
SELECT - - 76 AS col0, col2 * + col1 FROM tab0 AS cor0
----
76
210
76
3807
76
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * ( + - col2 ) col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

query II rowsort
SELECT - + 12 AS col2, + col0 AS col1 FROM tab2 AS cor0
----
-12
46
-12
64
-12
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT + ( - MIN( - 3 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1981
SELECT + ( - MIN ( - 3 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT CAST( - 86 AS SIGNED ) FROM tab2
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-1983
SELECT CAST ( - 86 AS INTEGER ) FROM tab2
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT MAX( ALL - col2 ) * + - 61 AS col2 FROM tab0
----
610

skipif mysql # not compatible
query I rowsort label-1984
SELECT MAX ( ALL - col2 ) * + - 61 AS col2 FROM tab0
----
610

onlyif mysql # aggregate syntax: 
query II rowsort label-1985
SELECT ( + COUNT( * ) ), - MAX( - 43 ) col0 FROM tab2
----
3
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1985
SELECT ( + COUNT ( * ) ), - MAX ( - 43 ) col0 FROM tab2
----
3
43

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= 29
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1987
SELECT ALL COUNT( * ) DIV 38 DIV COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL COUNT ( * ) / 38 / COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT - 68 DIV col0 AS col2 FROM tab0 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT - 68 / col0 AS col2 FROM tab0 cor0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ( - + 53 ) + - COUNT( * ) AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-1989
SELECT ( - + 53 ) + - COUNT ( * ) AS col0 FROM tab1
----
-56

query I rowsort
SELECT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query II rowsort
SELECT ALL + col2, col1 * + col0 FROM tab2 cor0
----
23
2346
40
4928
58
5025

query I rowsort
SELECT - col0 * + ( 40 ) FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1993
SELECT + + ( CAST( col0 AS SIGNED ) ), col2 DIV - - col0 AS col0 FROM tab1 AS cor0
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-1993
SELECT + + ( CAST ( col0 AS INTEGER ) ), col2 / - - col0 AS col0 FROM tab1 AS cor0
----
51
1
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - COUNT( ALL + - 86 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT - COUNT ( ALL + - 86 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT + - COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1995
SELECT + - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT ALL + 0 * col0 + - col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT - col1 DIV + - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1997
SELECT - col1 / + - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col1 col2 FROM tab2 AS cor0
----
2601
4489
5929

query II rowsort
SELECT 89, + col2 + + - ( + - col0 ) AS col1 FROM tab0
----
89
196
89
62
89
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2000
SELECT COUNT( ALL CAST( + col2 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2000
SELECT COUNT ( ALL CAST ( + col2 AS INTEGER ) ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT col2, + 68 AS col1 FROM tab0
----
10
68
47
68
99
68

query I rowsort
SELECT ALL + col2 * - 81 FROM tab2 WHERE col0 IS NOT NULL
----
-1863
-3240
-4698

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2004
SELECT ALL col1, 28 + - + col1 DIV - col2 AS col2 FROM tab1
----
14
28
47
28
5
28

skipif mysql # not compatible
query II rowsort label-2004
SELECT ALL col1, 28 + - + col1 / - col2 AS col2 FROM tab1
----
14
28
47
28
5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT COUNT( * ) + + + COUNT( ALL + 90 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT COUNT ( * ) + + + COUNT ( ALL + 90 ) FROM tab0
----
6

query I rowsort
SELECT DISTINCT col2 + + - 48 * - + 6 + - 50 AS col1 FROM tab0
----
248
285
337

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2007
SELECT CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT CAST ( + CAST ( NULL AS REAL ) AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - - 36 AS col2 FROM tab2
----
-22
-4
13

query II rowsort
SELECT + 99 + - - col1 * col2 * + col2, col0 FROM tab1
----
129123
51
17504
85
217427
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT DISTINCT - COUNT( * ) + - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - COUNT ( * ) + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT - COUNT( * ) + - + COUNT( * ) * + + 75 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2011
SELECT - COUNT ( * ) + - + COUNT ( * ) * + + 75 FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL + - ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + - ( COUNT ( * ) ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT ALL + 33 * - col2 + - + col2 - 86 + - col0 + + 14 DIV col0 col1 FROM tab2 AS cor0
----
-1510
-2133
-914

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2014
SELECT ALL + 33 * - col2 + - + col2 - 86 + - col0 + + 14 / col0 col1 FROM tab2 AS cor0
----
-1510
-2133
-914

query I rowsort
SELECT ( - - col0 ) - col0 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT ALL + col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + ( - MAX( ALL + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2017
SELECT + ( - MAX ( ALL + col0 ) ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + col0 + + 99 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - + col2 BETWEEN + col0 AND + + col0 * 97
----
150
184
190

query I rowsort
SELECT DISTINCT 95 * + col1 * + ( col2 ) + - col1 AS col2 FROM tab2 cor0
----
111384
292523
369103

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <= + col0 / - 48 + + 72 + + + col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT + SUM( DISTINCT + col2 ) * COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-2021
SELECT + SUM ( DISTINCT + col2 ) * COUNT ( * ) FROM tab1
----
669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL - CAST( NULL AS SIGNED ) * 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL - CAST ( NULL AS INTEGER ) * 15 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT + 34, + MAX( - + col2 ) AS col1 FROM tab2 AS cor0
----
34
-23

skipif mysql # not compatible
query II rowsort label-2024
SELECT + 34, + MAX ( - + col2 ) AS col1 FROM tab2 AS cor0
----
34
-23

query I rowsort
SELECT DISTINCT - 0 * - col2 * + - 95 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE 52 <> + 69 * 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 6 AS col0 FROM tab2 WHERE - col0 * col0 + - col1 NOT IN ( col0 * col0 )
----
6
6
6

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE 62 < + col2 * + col1 + + col2 * col1
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col0 - ( col1 ) AS col2 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ( + COUNT( * ) ) FROM tab1 WHERE NOT ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2031
SELECT ( + COUNT ( * ) ) FROM tab1 WHERE NOT ( col2 ) IS NULL
----
3

query I rowsort
SELECT 5 FROM tab2 WHERE NOT ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT + ( col0 ) / + 62 FROM tab1 WHERE NOT ( + col0 ) BETWEEN col0 + - col1 * col0 AND col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 48 * col0 )
----

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab0 WHERE NOT - col0 <= ( col2 * ( col0 * + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT COUNT( * ) * - AVG ( ALL 98 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT COUNT ( * ) * - AVG ( ALL 98 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 53 * - 5 FROM tab1
----
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT DISTINCT + ( - MIN( DISTINCT 45 ) ) + - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( col1 + 52 ) <> + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT + ( - MIN ( DISTINCT 45 ) ) + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( col1 + 52 ) <> + col2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + - col2 <= col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT CAST( NULL AS SIGNED ) * 1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT CAST ( NULL AS INTEGER ) * 1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + 76 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT DISTINCT COUNT( DISTINCT - 49 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT COUNT ( DISTINCT - 49 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( 28 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT - col0 * 55 FROM tab1
----
-2805
-4675
-5005

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 < + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT MAX( + col2 ) col1 FROM tab2 WHERE - col2 * - col2 - col0 IS NOT NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2047
SELECT DISTINCT MAX ( + col2 ) col1 FROM tab2 WHERE - col2 * - col2 - col0 IS NOT NULL
----
58

query I rowsort
SELECT - 3 * - col1 AS col1 FROM tab1
----
141
15
42

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE ( ( - col1 ) ) BETWEEN + col2 * - 23 + - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2050
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 33 / - col1 - + 52 IN ( CAST( 12 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2050
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 33 / - col1 - + 52 IN ( CAST ( 12 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 6 ) = + col2 * 20 - col2
----

query I rowsort
SELECT 56 + - 97 AS col0 FROM tab0 AS cor0 WHERE col1 > ( NULL )
----

query I rowsort
SELECT 81 - 98 * + 98 AS col2 FROM tab0
----
-9523
-9523
-9523

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col1 + + 74
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( col0 ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <> ( NULL )
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL < ( col2 )
----

query I rowsort
SELECT DISTINCT + + 6 FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 + + 82 ) <= ( 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 * 71 AS col1 FROM tab2 AS cor0
----
1633
2840
4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col1 FROM tab2 AS cor0 WHERE NOT col1 * col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2062
SELECT 82 FROM tab1 cor0 WHERE NOT + CAST( + 97 AS DECIMAL ) IN ( ( - CAST( - ( col1 ) AS SIGNED ) ) )
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2062
SELECT 82 FROM tab1 cor0 WHERE NOT + CAST ( + 97 AS REAL ) IN ( ( - CAST ( - ( col1 ) AS INTEGER ) ) )
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL MAX( + ( col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL MAX ( + ( col1 ) ) FROM tab0
----
81

query I rowsort
SELECT ALL col2 * + + 38 FROM tab0
----
1786
3762
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT + CAST( - - AVG ( ALL - ( col2 ) ) AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + CAST ( - - AVG ( ALL - ( col2 ) ) AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - COUNT( * ) * 36 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-2066
SELECT - COUNT ( * ) * 36 FROM tab0
----
-108

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col1 * col0 AND ( 72 + + col1 )
----

query I rowsort
SELECT - + ( + - 98 ) AS col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT + col1 * + 42 AS col1 FROM tab1 AS cor0
----
1974
210
588

query I rowsort
SELECT ALL col0 - col0 AS col2 FROM tab0 AS cor0 WHERE ( + col2 / 92 - - col2 ) NOT BETWEEN 42 AND col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - SUM( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2071
SELECT - SUM ( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 * + 30 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 58 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - 35 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 32 * - col2 * - col0 + 47 FROM tab0
----
22607
27887
307343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2076
SELECT ALL - COUNT( * ) DIV 27 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - COUNT ( * ) / 27 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT - + 91 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT 76 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <= ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-2078
SELECT col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT + ( - + COUNT( * ) ) + + 6 + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT + ( - + COUNT ( * ) ) + + 6 + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2080
SELECT * FROM tab0 AS cor0 WHERE col1 * + - col2 - - col1 NOT BETWEEN + ( col1 ) - col2 AND - CAST( col0 AS SIGNED ) * + col1
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2080
SELECT * FROM tab0 AS cor0 WHERE col1 * + - col2 - - col1 NOT BETWEEN + ( col1 ) - col2 AND - CAST ( col0 AS INTEGER ) * + col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( col2 * + 43 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 * col2 AS col1 FROM tab0 cor0
----
4371
9207
930

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab0 AS cor0 WHERE NOT NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT MAX( DISTINCT - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2084
SELECT MAX ( DISTINCT - col0 ) FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + 53 * - COUNT( * ) col1 FROM tab1 cor0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2085
SELECT + 53 * - COUNT ( * ) col1 FROM tab1 cor0
----
-159

query I rowsort
SELECT ALL + 79 * - 64 AS col2 FROM tab0 AS cor0
----
-5056
-5056
-5056

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IS NOT NULL AND ( col1 ) NOT IN ( col2 * - 38 )
----

query I rowsort
SELECT col2 * col1 + + 91 FROM tab2
----
1264
3171
3977

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT ALL col0 DIV + col1 + + + 65 FROM tab2
----
65
65
66

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL col0 / + col1 + + + 65 FROM tab2
----
65
65
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT + 56 * ( + col2 ) FROM tab0 WHERE col2 > - + col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2090
SELECT + 56 * ( + col2 ) FROM tab0 WHERE col2 > - + col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2091
SELECT COUNT( * ) + 41, + CAST( - - 27 AS SIGNED ) col2 FROM tab2
----
44
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2091
SELECT COUNT ( * ) + 41, + CAST ( - - 27 AS INTEGER ) col2 FROM tab2
----
44
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT 35 + - - COUNT( * ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2092
SELECT 35 + - - COUNT ( * ) FROM tab2 AS cor0
----
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 < 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + + col1 AS col0, 40 col1 FROM tab0 AS cor0
----
-66
40
-96
40
66
40

query I rowsort
SELECT - col0 + - - col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2096
SELECT * FROM tab2 AS cor0 WHERE col0 <= ( col2 + CAST( 1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2096
SELECT * FROM tab2 AS cor0 WHERE col0 <= ( col2 + CAST ( 1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 71 / MIN( - 33 * + col0 ) + COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( col1 - + 6 * - 2 ) IN ( col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2097
SELECT 71 / MIN ( - 33 * + col0 ) + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( col1 - + 6 * - 2 ) IN ( col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT DISTINCT MAX( + 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT MAX ( + 19 ) FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT + MIN( ALL - + 5 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2100
SELECT + MIN ( ALL - + 5 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT 88 * 53 FROM tab2 AS cor0 WHERE - col2 / + col0 IS NULL AND - 5 / + col2 + col2 * ( col2 ) BETWEEN 33 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 IN ( - + 39 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT MAX( - 80 ) AS col2 FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2103
SELECT MAX ( - 80 ) AS col2 FROM tab2 cor0
----
-80

query I rowsort
SELECT ALL 75 * - - col2 - + col1 * - col1 FROM tab1 AS cor0
----
4450
7309
7396

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col0 + col2 * 18 + - 16 ) > ( + col0 * - 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - MIN( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + col1 AND - 21
----
-46

skipif mysql # not compatible
query I rowsort label-2106
SELECT - MIN ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + col1 AND - 21
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col1 * 33 + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 55 ) FROM tab2
----
-55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( + col0 ) - - - col2 ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT + col0 * - - 51 FROM tab1
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + 3 * + + ( + 46 ) * - + 34 + MIN( + col2 ) col1 FROM tab2
----
-4669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2112
SELECT + 3 * + + ( + 46 ) * - + 34 + MIN ( + col2 ) col1 FROM tab2
----
-4669

query I rowsort
SELECT col0 / + 96 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1 / col0
----

query I rowsort
SELECT DISTINCT + ( - 72 ) FROM tab0
----
-72

query II rowsort
SELECT DISTINCT + 94 + + col1 AS col1, col0 FROM tab0 AS cor0
----
115
87
175
15
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT 61 * - COUNT( * ) FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2116
SELECT 61 * - COUNT ( * ) FROM tab1 AS cor0
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT + MAX( col1 ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2117
SELECT + MAX ( col1 ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL - + 67 * + col2 AS col0 FROM tab2 AS cor0
----
-1541
-2680
-3886

query I rowsort
SELECT col1 - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col2 * col0 * - + ( + 77 )
----

query I rowsort
SELECT ALL + ( - ( + 62 ) ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + 91 + col0 * - col0 + - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 - + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 - + col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT - ( + + CAST( NULL AS SIGNED ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2123
SELECT - ( + + CAST ( NULL AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1 WHERE NOT NULL IN ( - 36, - col1 )
----

query I rowsort
SELECT ALL col0 * + 0 + + 65 + col1 * col1 FROM tab0
----
506
66
6626

onlyif mysql # aggregate syntax: 
query II rowsort label-2126
SELECT SUM( - 58 ) AS col1, + 49 + 67 AS col0 FROM tab0
----
-174
116

skipif mysql # not compatible
query II rowsort label-2126
SELECT SUM ( - 58 ) AS col1, + 49 + 67 AS col0 FROM tab0
----
-174
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT DISTINCT - 29 + - COUNT( * ) DIV 33 * COUNT( * ) AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - 29 + - COUNT ( * ) / 33 * COUNT ( * ) AS col0 FROM tab1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2128
SELECT DISTINCT 64 + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT 64 + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT + COUNT( - 5 ) FROM tab0 cor0 WHERE + 94 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT + COUNT ( - 5 ) FROM tab0 cor0 WHERE + 94 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT col1 + ( + - 44 ) + col2 * ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - col0 * - 94 AND ( NULL )
----

query I rowsort
SELECT + + ( + 0 ) + + 49 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN - col1 AND col2 * - + 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT - COUNT( * ) + - 26 AS col1 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2133
SELECT - COUNT ( * ) + - 26 AS col1 FROM tab1 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2 - - col1 + col0 * + - ( col1 )
----

query I rowsort
SELECT ALL + + 50 AS col0 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2138
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( - CAST( 83 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2138
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( - CAST ( 83 AS INTEGER ) )
----

query I rowsort
SELECT ALL + 2 + - - col2 AS col1 FROM tab1
----
61
70
98

query I rowsort
SELECT ( + 50 ) * col2 FROM tab1
----
2950
3400
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - MIN( ALL col0 ) FROM tab1 WHERE NOT + 4 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - MIN ( ALL col0 ) FROM tab1 WHERE NOT + 4 IS NULL
----
-51

query I rowsort
SELECT 84 * col1 FROM tab0
----
1764
6804
84

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 <> ( - col1 * col1 + - ( + 28 ) - - 53 * 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <= 54
----
46
51
23

query I rowsort
SELECT DISTINCT + 99 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - ( - COUNT( * ) ) * COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2148
SELECT - ( - COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL 35 * - COUNT( * ) AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 35 * - COUNT ( * ) AS col0 FROM tab0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT DISTINCT - AVG ( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - AVG ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT - COUNT( * ) * - - 57 + - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-522

skipif mysql # not compatible
query I rowsort label-2151
SELECT - COUNT ( * ) * - - 57 + - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-522

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + 44 * + col1 + - - col2 + 16 + - - col0 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2153
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - + - col2 * + col1 + + col2 / - CAST( - col2 AS SIGNED ) BETWEEN - 92 * - - 4 AND 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2153
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - + - col2 * + col1 + + col2 / - CAST ( - col2 AS INTEGER ) BETWEEN - 92 * - - 4 AND 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col1 + + col2 IN ( - + 47 * col2 * + + 38 / - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT ALL col1 DIV + 18 + col2 + - 7 * col1 FROM tab2 AS cor0
----
-332
-408
-495

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL col1 / + 18 + col2 + - 7 * col1 FROM tab2 AS cor0
----
-332
-408
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + COUNT( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2156
SELECT + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - 48 AS col0 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - + COUNT( + 52 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2158
SELECT - + COUNT ( + 52 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2159
SELECT DISTINCT col2 AS col0, col1 DIV + - col0 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-2159
SELECT DISTINCT col2 AS col0, col1 / + - col0 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT MIN( - 37 ) AS col2 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-2160
SELECT MIN ( - 37 ) AS col2 FROM tab1
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + 36 AS col0 FROM tab0
----
15
36
87
36
97
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2162
SELECT col2 AS col2 FROM tab2 WHERE NOT - CAST( - + col2 AS DECIMAL ) <> - col2
----

skipif mysql # not compatible
query I rowsort label-2162
SELECT col2 AS col2 FROM tab2 WHERE NOT - CAST ( - + col2 AS REAL ) <> - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - 64 ) FROM tab1
----
-64
-64
-64

query I rowsort
SELECT ALL - - col2 + + col0 AS col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col1 * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - col2 + - 70 FROM tab2 AS cor0
----
-110
-128
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, - col2 - + 18 + - col1 col0 FROM tab1 AS cor0
----
59
-82
68
-133
96
-128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2170
SELECT + col0 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT + col0 + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 69 + 42 AS col0, - col0 AS col0 FROM tab0
----
111
-15
111
-87
111
-97

query II rowsort
SELECT col2, + col2 * + 46 FROM tab2
----
23
1058
40
1840
58
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT MAX( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2173
SELECT MAX ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 22 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col1 * + - col0 AS col1 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT ALL - col1 - - - col0 - - + 57 AS col1 FROM tab1 AS cor0
----
-33
-8
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + + COUNT( * ) * + 76 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-2178
SELECT + + COUNT ( * ) * + 76 FROM tab0 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT - + COUNT( * ) AS col1, 78 AS col2 FROM tab0 AS cor0
----
-3
78

skipif mysql # not compatible
query II rowsort label-2179
SELECT - + COUNT ( * ) AS col1, 78 AS col2 FROM tab0 AS cor0
----
-3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT - COUNT( 91 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2180
SELECT - COUNT ( 91 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL + + SUM( ALL + 71 ) + MIN( - - 50 ) AS col0 FROM tab0 AS cor0
----
263

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + + SUM ( ALL + 71 ) + MIN ( - - 50 ) AS col0 FROM tab0 AS cor0
----
263

onlyif mysql # aggregate syntax: 
query II rowsort label-2182
SELECT DISTINCT COUNT( * ) AS col1, MIN( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-2182
SELECT DISTINCT COUNT ( * ) AS col1, MIN ( DISTINCT + 72 ) AS col2 FROM tab2 AS cor0
----
3
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT DISTINCT - 85 * + + ( CAST( NULL AS SIGNED ) ) + + col0 * - 74 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT - 85 * + + ( CAST ( NULL AS INTEGER ) ) + + col0 * - 74 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 53 + 11 FROM tab0
----
64
64
64

query I rowsort
SELECT DISTINCT ( 37 ) + - col0 * 65 AS col1 FROM tab0
----
-5618
-6268
-938

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT - + ( + COUNT( * ) ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2186
SELECT - + ( + COUNT ( * ) ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL - 15 + 77 * + col0 + - ( col2 ) AS col2 FROM tab1 cor0 WHERE - col2 < - + CAST( + col1 AS SIGNED )
----
3816
6471
6924

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - 15 + 77 * + col0 + - ( col2 ) AS col2 FROM tab1 cor0 WHERE - col2 < - + CAST ( + col1 AS INTEGER )
----
3816
6471
6924

query I rowsort
SELECT ALL 29 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT COUNT( * ) * 51 AS col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2190
SELECT COUNT ( * ) * 51 AS col1 FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2191
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( - 66, col1, - + CAST( NULL AS DECIMAL ), - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2191
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( - 66, col1, - + CAST ( NULL AS REAL ), - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * + 11 * 25 * + + 79 + + 94 * col0 AS col0 FROM tab2
----
1112299
1462625
1678841

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT - 51 + SUM( DISTINCT - - 85 ) AS col2 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-2193
SELECT - 51 + SUM ( DISTINCT - - 85 ) AS col2 FROM tab1
----
34

query I rowsort
SELECT 54 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + col1 + + col0 + + + col1 AS col0 FROM tab1
----
185
79
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 92 ) + + col0 col1 FROM tab0
----
-5
-77
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT ALL - col0 + CAST( col2 AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - col0 + CAST ( col2 AS INTEGER ) FROM tab0
----
-77
2
32

query I rowsort
SELECT - col0 - 42 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 65 NOT BETWEEN col0 AND + + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT - + col1 AS col0 FROM tab0 AS cor0 WHERE + 99 + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 76 * + 72 col0, - ( - - 94 ) + 93 FROM tab2 AS cor0
----
5472
-1
5472
-1
5472
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL + 2 + + MAX( DISTINCT col2 ) col0 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2204
SELECT ALL + 2 + + MAX ( DISTINCT col2 ) col0 FROM tab2
----
60

query I rowsort
SELECT col0 * col2 + - col0 AS col1 FROM tab1 WHERE + ( + - col1 ) * col1 IS NOT NULL
----
4845
4930
6097

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2206
SELECT - MIN( + + col1 ) + + MAX( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT - MIN ( + + col1 ) + + MAX ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + col0 BETWEEN 69 + + col0 * + col2 AND ( + + 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 * - col0 + - - col1 AS col0 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT ALL + col0 - + 74 DIV - col0 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + col0 - + 74 / - col0 FROM tab1 AS cor0
----
52
85
91

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col0 + - 60 * + col1 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * 79 AS col1 FROM tab1
----
4661
5372
7584

query II rowsort
SELECT 24, col2 FROM tab0
----
24
10
24
47
24
99

query I rowsort
SELECT ALL + 12 - + 41 + 61 AS col0 FROM tab2
----
32
32
32

query I rowsort
SELECT DISTINCT + col0 * + 69 FROM tab0
----
1035
6003
6693

query I rowsort
SELECT - 69 * - + col2 AS col0 FROM tab0
----
3243
6831
690

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( + + 36 ) AS col2 FROM tab0 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2219
SELECT DISTINCT MAX( + + col0 ) DIV COUNT( DISTINCT col2 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT MAX ( + + col0 ) / COUNT ( DISTINCT col2 ) FROM tab2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT - col1 * - - CAST( - + 35 AS SIGNED ) * + col2 * + + col2 FROM tab2 AS cor0
----
4312000
7888580
944265

skipif mysql # not compatible
query I rowsort label-2220
SELECT - col1 * - - CAST ( - + 35 AS INTEGER ) * + col2 * + + col2 FROM tab2 AS cor0
----
4312000
7888580
944265

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 / col1 / + - col1 * + 91 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - MIN( DISTINCT col2 ) * MIN( ALL - 59 ) * - + 24 AS col1 FROM tab0 AS cor0
----
-14160

skipif mysql # not compatible
query I rowsort label-2222
SELECT - MIN ( DISTINCT col2 ) * MIN ( ALL - 59 ) * - + 24 AS col1 FROM tab0 AS cor0
----
-14160

query I rowsort
SELECT ALL + 63 * - col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT col2 DIV 71 AS col1 FROM tab1 AS cor0 WHERE NOT col2 = + col1 - - col0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2224
SELECT col2 / 71 AS col1 FROM tab1 AS cor0 WHERE NOT col2 = + col1 - - col0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL - - SUM( DISTINCT col0 ) FROM tab2 cor0 WHERE NOT NULL = 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - - SUM ( DISTINCT col0 ) FROM tab2 cor0 WHERE NOT NULL = 46
----
NULL

query I rowsort
SELECT ( 1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT DISTINCT + col2 DIV - 90 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + col2 / - 90 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT ALL - col2 DIV + 36 + + 92 col2 FROM tab2 WHERE - col2 * + col1 NOT BETWEEN + col0 AND + - col1
----
91
91
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2228
SELECT ALL - col2 / + 36 + + 92 col2 FROM tab2 WHERE - col2 * + col1 NOT BETWEEN + col0 AND + - col1
----
91
91
92

query III rowsort
SELECT * FROM tab2 WHERE + 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - + 89 * 37 * 39 <= ( + + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + - + ( col2 ) FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + - + ( col2 ) FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ( + + COUNT( * ) ) + 17 + + + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2233
SELECT ( + + COUNT ( * ) ) + 17 + + + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
111

query II rowsort
SELECT ALL + col0 - - 89, col2 FROM tab0 AS cor0
----
104
47
176
10
186
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 + - + col2 col1 FROM tab0 AS cor0
----
-175
-199
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 - 77 col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + + 4 - + ( + col2 ) * - 64 FROM tab2 cor0
----
1476
2564
3716

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - + 71 * - col2 BETWEEN NULL AND 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 28 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT col2 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2240
SELECT col2 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + 18 IN ( + + col0, col2, col2 * + ( + 64 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - COUNT( - - 77 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2242
SELECT - COUNT ( - - 77 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 45 * + - col2 - - col0 FROM tab0 AS cor0
----
2130
4552
537

query I rowsort
SELECT ALL col2 * + 49 FROM tab2 cor0
----
1127
1960
2842

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col1 * + 26 * - col0 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT MAX( - + 19 ) AS col1 FROM tab1, tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2246
SELECT MAX ( - + 19 ) AS col1 FROM tab1, tab0 cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT + 40 + COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + 40 + COUNT ( * ) FROM tab2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT ALL + - ( + col2 ) * 2 DIV - - ( + - 41 ) FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + - ( + col2 ) * 2 / - - ( + - 41 ) FROM tab0 AS cor0
----
0
2
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0, - col0, + + CAST( NULL AS SIGNED ) * - - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0, - col0, + + CAST ( NULL AS INTEGER ) * - - 65 )
----
0

query I rowsort
SELECT ALL 61 * col1 AS col2 FROM tab0 cor0
----
1281
4941
61

query I rowsort
SELECT ALL 57 + + col1 AS col1 FROM tab0
----
138
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT DISTINCT + - COUNT( * ) + - MAX( ALL - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + - COUNT ( * ) + - MAX ( ALL - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL col1 * - - CAST( NULL AS SIGNED ) / - + 21 + + 59 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL col1 * - - CAST ( NULL AS INTEGER ) / - + 21 + + 59 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - ( + col2 ) * + 4 + + col1 * - col0 * - + col1 AS col2 FROM tab1 cor0 WHERE col0 + col1 - - col1 - - + col1 + col1 * col1 * + col0 <> + 74 + + col1
----
15372
213803
3305

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( col2 * - ( - + col0 ) IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2256
SELECT * FROM tab0 AS cor0 WHERE NULL < + CAST( - col2 AS SIGNED ) * + 84 * 96
----

skipif mysql # not compatible
query III rowsort label-2256
SELECT * FROM tab0 AS cor0 WHERE NULL < + CAST ( - col2 AS INTEGER ) * + 84 * 96
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * col0 + + col1 * - - 35 + + 6 + col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT + ( + 72 ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2258
SELECT + ( + 72 ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT ALL + + col0 + - - col0 * col1 DIV col1 AS col1 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL + + col0 + - - col0 * col1 / col1 AS col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL + 5 DIV col0 + + - col1 + + 14 + col2 + + 51 FROM tab2 AS cor0
----
28
37
56

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL + 5 / col0 + + - col1 + + 14 + col2 + + 51 FROM tab2 AS cor0
----
28
37
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2261
SELECT DISTINCT - COUNT( * ) DIV - + 41 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT - COUNT ( * ) / - + 41 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 20 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < + - 7 + - ( + - 30 ) + + + col2 + - - col0
----

query II rowsort
SELECT - 17, - 95 AS col2 FROM tab1 AS cor0
----
-17
-95
-17
-95
-17
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT - 77 + 71 + - - COUNT( * ) * - - SUM( + ( col1 ) ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2265
SELECT DISTINCT - 77 + 71 + - - COUNT ( * ) * - - SUM ( + ( col1 ) ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 * - col2 col1 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT ALL - CAST( - 81 AS SIGNED ) col1 FROM tab2
----
81
81
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2267
SELECT ALL - CAST ( - 81 AS INTEGER ) col1 FROM tab2
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2268
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 * + CAST( - 25 AS SIGNED ) BETWEEN + - col1 AND + 54 / ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2268
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 * + CAST ( - 25 AS INTEGER ) BETWEEN + - col1 AND + 54 / ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT - + col0 * - - 0 * 78 + - 42 + + + col2 * col0 * - CAST( NULL AS SIGNED ) * + + col0 * 62 * - col0 + - - col2 + + col2 / + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT - + col0 * - - 0 * 78 + - 42 + + + col2 * col0 * - CAST ( NULL AS INTEGER ) * + + col0 * 62 * - col0 + - - col2 + + col2 / + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 + + + col1 + + 99 AS col0 FROM tab1 AS cor0
----
172
181
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT - col0 * col2 * - - CAST( - 61 AS SIGNED ) - + - col1 + + col0 AS col0 FROM tab1 cor0
----
298721
306005
377606

skipif mysql # not compatible
query I rowsort label-2271
SELECT - col0 * col2 * - - CAST ( - 61 AS INTEGER ) - + - col1 + + col0 AS col0 FROM tab1 cor0
----
298721
306005
377606

query I rowsort
SELECT DISTINCT + 54 * col2 FROM tab0 AS cor0
----
2538
5346
540

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE 92 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL - - COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL - - COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT + CAST( - - 1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2275
SELECT + CAST ( - - 1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT + col0, ( + col1 ) AS col2 FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col1 col2 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT 87 + 46 FROM tab2
----
133
133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT 5 + - MAX( - col2 ) + + - 29 AS col2 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-2279
SELECT 5 + - MAX ( - col2 ) + + - 29 AS col2 FROM tab0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT ALL + CAST( 88 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + CAST ( 88 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT CAST( + CAST( NULL AS SIGNED ) 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-2281
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2282
SELECT + 59 DIV + 89 + CAST( col2 AS SIGNED ) * + - ( - 13 ) FROM tab1 cor0
----
1248
767
884

skipif mysql # not compatible
query I rowsort label-2282
SELECT + 59 / + 89 + CAST ( col2 AS INTEGER ) * + - ( - 13 ) FROM tab1 cor0
----
1248
767
884

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 57 * - + col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 + + + 78 )
----

query II rowsort
SELECT DISTINCT col0 * col2 * - + 71 AS col1, + 20 AS col0 FROM tab2
----
-181760
20
-308850
20
-75118
20

query II rowsort
SELECT col0 AS col2, - 55 * - - 95 + + col0 AS col1 FROM tab2
----
46
-5179
64
-5161
75
-5150

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( + - col1 + - col0 )
----

query I rowsort
SELECT - col1 * + 34 FROM tab0 AS cor0
----
-2754
-34
-714

onlyif mysql # DIV for integer division: 
query II rowsort label-2290
SELECT + - col1, + col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
-51
-2
-67
-1
-77
-1

skipif mysql # not compatible
query II rowsort label-2290
SELECT + - col1, + col1 / - col2 AS col1 FROM tab2 AS cor0
----
-51
-2
-67
-1
-77
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 * col1 col2 FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab1 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - + col1 ), - col2 col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col1 + + col0 AND NULL
----

query I rowsort
SELECT ALL - ( + - col2 ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL - - COUNT( ALL col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - - COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT 37 + col0, col1 FROM tab2 AS cor0
----
101
77
112
67
83
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * - - col2 + - 72 AS col0 FROM tab2 AS cor0
----
-1130
-2632
-4422

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2301
SELECT CAST( NULL AS DECIMAL ) + 69 * col2 * - + 70 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT CAST ( NULL AS REAL ) + 69 * col2 * - + 70 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 + + ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE NOT ( ( NULL ) >= + col1 )
----

query II rowsort
SELECT col2 AS col1, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2305
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + 46 AND - col1 + + 46
----

skipif mysql # not compatible
query III rowsort label-2305
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + 46 AND - col1 + + 46
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2306
SELECT DISTINCT col1 * - - CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT col1 * - - CAST ( NULL AS REAL ) + col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT DISTINCT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 28 + + ( + col2 ) * + 18 >= + 97
----

query I rowsort
SELECT DISTINCT - - col0 * + - 31 * + - col0 AS col1 FROM tab0 cor0
----
234639
291679
6975

query I rowsort
SELECT DISTINCT - ( col1 ) * + 12 * + ( - col1 ) FROM tab0
----
12
5292
78732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT + CAST( NULL AS SIGNED ) * ( 1 ) * col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT + CAST ( NULL AS INTEGER ) * ( 1 ) * col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2312
SELECT + col2 * - 47 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-2773
NULL
-3196
NULL
-4512
NULL

skipif mysql # not compatible
query II rowsort label-2312
SELECT + col2 * - 47 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-2773
NULL
-3196
NULL
-4512
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2313
SELECT DISTINCT col2 DIV 85, + col0 AS col0 FROM tab1
----
0
85
0
91
1
51

skipif mysql # not compatible
query II rowsort label-2313
SELECT DISTINCT col2 / 85, + col0 AS col0 FROM tab1
----
0
85
0
91
1
51

query II rowsort
SELECT DISTINCT + 63 AS col0, 45 FROM tab1 AS cor0
----
63
45

query I rowsort
SELECT DISTINCT + - col0 * 14 FROM tab2 cor0
----
-1050
-644
-896

query I rowsort
SELECT ALL ( 40 ) AS col0 FROM tab0 cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * ( - col1 ) * col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2318
SELECT ALL col0, + ( - + CAST( NULL AS SIGNED ) ) + col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL col0, + ( - + CAST ( NULL AS INTEGER ) ) + col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ( ( COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT ( ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT 80 AS col0, 61 FROM tab1 AS cor0
----
80
61
80
61
80
61

query II rowsort
SELECT ALL - col1, + ( - ( + - 11 ) ) FROM tab1 AS cor0 WHERE ( NULL ) > col2
----

query I rowsort
SELECT ALL ( - + col1 ) * + - 63 * - - col2 AS col2 FROM tab0
----
13230
239841
6237

query I rowsort
SELECT DISTINCT + 40 * - - col1 * col0 FROM tab0
----
3880
48600
73080

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT ALL - 2 DIV - - col0 * + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - 2 / - - col0 * + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2325
SELECT ALL + COUNT( * ) DIV MIN( - + col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + COUNT ( * ) / MIN ( - + col1 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT - 63 * COUNT( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2326
SELECT - 63 * COUNT ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT + col2 DIV + col0 - + + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2327
SELECT + col2 / + col0 - + + col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT - col2 + col0 + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-39
24
37

skipif mysql # not compatible
query I rowsort label-2328
SELECT - col2 + col0 + col2 / + col1 AS col2 FROM tab1 AS cor0
----
-39
24
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col1 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT + + 67 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT col1 + + + 10 AS col0 FROM tab2
----
61
77
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT - + 95 / - 17 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT - + 95 / - 17 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL ( + SUM( ALL - CAST( - col2 AS SIGNED ) ) ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL ( + SUM ( ALL - CAST ( - col2 AS INTEGER ) ) ) AS col1 FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2334
SELECT - COUNT( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT - COUNT ( ALL CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2335
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - CAST( NULL AS SIGNED ), 97 )
----
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - CAST ( NULL AS INTEGER ), 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL MAX( - ( + - col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL MAX ( - ( + - col2 ) ) AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + 56 - COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-2337
SELECT + 56 - COUNT ( * ) FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT - MAX( + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - MAX ( + col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + - 10 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + - 10 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT DISTINCT col1 * + CAST( + col2 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT col1 * + CAST ( + col2 AS INTEGER ) FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) * - col2 * - col2 + - - col2 col2, - ( 58 ) FROM tab0
----
-178882
-58
-2090
-58
-9702
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * - + 18 + + + col1 + + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * - + 18 + + + col1 + + col0 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2343
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) + - AVG ( DISTINCT col1 ) AS col2, - 1 FROM tab2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2343
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - AVG ( DISTINCT col1 ) AS col2, - 1 FROM tab2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 + col0 IS NULL
----
0

query I rowsort
SELECT + col1 * - col0 - - + col0 + + - 30 AS col0 FROM tab2 AS cor0
----
-2330
-4894
-4980

query I rowsort
SELECT ALL + 7 * 3 + - col0 * - col1 * col1 FROM tab1 AS cor0
----
10017
201040
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT + - 71 * + MAX( ALL + - col2 ) + 20 FROM tab2 AS cor0
----
1653

skipif mysql # not compatible
query I rowsort label-2347
SELECT + - 71 * + MAX ( ALL + - col2 ) + 20 FROM tab2 AS cor0
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT DISTINCT MAX( DISTINCT + col0 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2348
SELECT DISTINCT MAX ( DISTINCT + col0 ) col2 FROM tab2
----
75

query II rowsort
SELECT - col0, - 30 AS col1 FROM tab0
----
-15
-30
-87
-30
-97
-30

query I rowsort
SELECT DISTINCT ( col0 ) * + ( + 12 ) FROM tab2
----
552
768
900

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL SUM( - 80 ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL SUM ( - 80 ) FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT 74 * + MIN( ALL + col1 ) FROM tab1
----
370

skipif mysql # not compatible
query I rowsort label-2352
SELECT 74 * + MIN ( ALL + col1 ) FROM tab1
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - + 45 * COUNT( ALL + col2 ) col1 FROM tab0 cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2353
SELECT - + 45 * COUNT ( ALL + col2 ) col1 FROM tab0 cor0
----
-135

query I rowsort
SELECT - 99 * ( + 18 ) FROM tab1 AS cor0
----
-1782
-1782
-1782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col0 ) * + col2 col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 61 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - 38 + - + col0
----

query II rowsort
SELECT ALL - col2 * + 18, - ( + col2 ) * - col2 + - + ( ( col0 ) ) AS col2 FROM tab2
----
-1044
3289
-414
483
-720
1536

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( - 39 ) + col0 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT COUNT( * ) * + 34 FROM tab2, tab0 cor0
----
306

skipif mysql # not compatible
query I rowsort label-2360
SELECT COUNT ( * ) * + 34 FROM tab2, tab0 cor0
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT DISTINCT - col2 DIV col2 * col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - col2 / col2 * col1 AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 / - col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 / - col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 68 + + 10 AS col1 FROM tab2
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT CAST( col1 AS SIGNED ) * - 0 + + col0 + - 10 FROM tab2
----
36
54
65

skipif mysql # not compatible
query I rowsort label-2364
SELECT CAST ( col1 AS INTEGER ) * - 0 + + col0 + - 10 FROM tab2
----
36
54
65

query I rowsort
SELECT - ( - col0 ) * - - col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 cor0 WHERE 6 IN ( + col2, 51, col0 + - + col2, + col0, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE + col2 + - col2 * + - 77 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2367
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE + col2 + - col2 * + - 77 <= NULL
----

query II rowsort
SELECT DISTINCT col0 + 85 + - col0 * 51, + ( + - col2 ) + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-4265
77
-4765
-2
-665
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL COUNT( * ) + 58 AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL COUNT ( * ) + 58 AS col1 FROM tab2
----
61

query I rowsort
SELECT + col1 * - 56 + - col0 * + 82 * + col0 FROM tab1
----
-214066
-592730
-681674

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 + + + col2 < 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT ALL + - col1 DIV 69 AS col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + - col1 / 69 AS col2 FROM tab2 cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT + COUNT( * ) * 99 - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + COUNT ( * ) * 99 - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT DISTINCT AVG ( DISTINCT - 94 ) / - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT AVG ( DISTINCT - 94 ) / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT ALL + + ( - 74 ) DIV col0 - - col0 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + + ( - 74 ) / col0 - - col0 FROM tab2 AS cor0
----
45
63
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 48 ) + - + col0, col2 col2 FROM tab0 AS cor0
----
-135
10
-145
99
-63
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 17 ) BETWEEN NULL AND col1 + + - 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 - + col0 * 25 col2 FROM tab0
----
-2206
-2525
-503

query III rowsort
SELECT * FROM tab1 WHERE - 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT MIN( + - 39 ) * - COUNT( * ) * 24 FROM tab2
----
2808

skipif mysql # not compatible
query I rowsort label-2380
SELECT MIN ( + - 39 ) * - COUNT ( * ) * 24 FROM tab2
----
2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT DISTINCT - COUNT( * ) - CAST( - - AVG ( col0 ) AS SIGNED ) FROM tab2 WHERE NOT NULL IN ( + col1 * - 41, col0, - - 7 - + col0, + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - COUNT ( * ) - CAST ( - - AVG ( col0 ) AS INTEGER ) FROM tab2 WHERE NOT NULL IN ( + col1 * - 41, col0, - - 7 - + col0, + 79 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT - COUNT( * ) DIV 1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2382
SELECT - COUNT ( * ) / 1 FROM tab2
----
-3

query II rowsort
SELECT - col0 AS col1, - 76 AS col2 FROM tab0
----
-15
-76
-87
-76
-97
-76

query I rowsort
SELECT DISTINCT + 97 * + + ( + + ( - 34 ) ) + col2 FROM tab1
----
-3202
-3230
-3239

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) < - col0 * - + 45
----
0

skipif mysql # not compatible
query I rowsort label-2385
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) < - col0 * - + 45
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col2 * - col2 + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 8 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2388
SELECT COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2388
SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT col1 * 37 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT + COUNT( - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2391
SELECT + COUNT ( - col1 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 59 / - col2 > + ( - col2 ) / + - 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT + - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= + col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT - - COUNT( * ) DIV - 53 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT - - COUNT ( * ) / - 53 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + + col0 AND ( 90 )
----
87
21
10
97
1
99

query I rowsort
SELECT + + 41 AS col0 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + 15 * 47 AS col2 FROM tab1 AS cor0
----
705
705
705

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT MIN( ALL 37 ) AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT MIN ( ALL 37 ) AS col0 FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - MAX( DISTINCT - 67 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-2400
SELECT - MAX ( DISTINCT - 67 ) FROM tab2
----
67

query III rowsort
SELECT ALL * FROM tab1 WHERE 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + - 8 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL COUNT( ALL - ( - 1 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL COUNT ( ALL - ( - 1 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col0 + - - ( + - col1 ) FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT col1 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE col0 * + 33 < col1
----

query I rowsort
SELECT 39 * col1 AS col1 FROM tab2
----
1989
2613
3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT ALL CAST( + col2 AS SIGNED ) + - + col0 + CAST( - col1 AS SIGNED ) / col2 + - 72 col0 FROM tab2 WHERE - 42 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2408
SELECT ALL CAST ( + col2 AS INTEGER ) + - + col0 + CAST ( - col1 AS INTEGER ) / col2 + - 72 col0 FROM tab2 WHERE - 42 IS NULL
----

query I rowsort
SELECT 45 + 2 AS col0 FROM tab2 AS cor0
----
47
47
47

query II rowsort
SELECT DISTINCT + col2, col0 AS col0 FROM tab1 WHERE 0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT DISTINCT + col0 + 6 DIV - - col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT + col0 + 6 / - - col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2412
SELECT ALL CAST( NULL AS SIGNED ) + 39 AS col0 FROM tab1 WHERE ( NULL IS NOT NULL ) OR + ( col1 ) = + col0 / col2
----

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL CAST ( NULL AS INTEGER ) + 39 AS col0 FROM tab1 WHERE ( NULL IS NOT NULL ) OR + ( col1 ) = + col0 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL - ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL >= col1 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL >= col1 / - col0
----
0

query I rowsort
SELECT ALL col2 * - col0 + - ( col1 ) FROM tab2 AS cor0
----
-1109
-2637
-4417

query II rowsort
SELECT + col1, - 97 FROM tab0 AS cor0
----
1
-97
21
-97
81
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT - 40 - + col2 * - + 67 AS col0 FROM tab2 AS cor0
----
1501
2640
3846

query I rowsort
SELECT + ( - 87 ) - - ( ( 28 ) ) AS col2 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT + 41 + - COUNT( * ) + - 78 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + 41 + - COUNT ( * ) + - 78 FROM tab1 AS cor0
----
-40

query II rowsort
SELECT ALL - col0, 67 AS col2 FROM tab0 AS cor0
----
-15
67
-87
67
-97
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2422
SELECT COUNT( * ) DIV - ( ( + 70 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT COUNT ( * ) / - ( ( + 70 ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 / + col2 + - - ( - 90 ) >= ( + 25 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL - - MAX( ALL - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL - - MAX ( ALL - col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + 72 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + + col0 * + 45 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT SUM( ALL + + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2427
SELECT SUM ( ALL + + col0 ) FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT + col0 DIV - col2 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2428
SELECT + col0 / - col2 col0 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT col0 AS col1, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ( + 28 ) AS col2 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2431
SELECT DISTINCT - - 31, MAX( - 73 ) AS col2 FROM tab1 AS cor0
----
31
-73

skipif mysql # not compatible
query II rowsort label-2431
SELECT DISTINCT - - 31, MAX ( - 73 ) AS col2 FROM tab1 AS cor0
----
31
-73

query I rowsort
SELECT ALL ( col1 ) + col1 + - col2 - 76 * + 51 * - - col0 FROM tab1
----
-197744
-329509
-352690

query I rowsort
SELECT DISTINCT 75 + - + col0 + + ( col0 ) + + - col1 AS col2 FROM tab0
----
-6
54
74

query I rowsort
SELECT col1 * col0 + - + col0 + - - col0 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT DISTINCT + col0 / + + col2 FROM tab0 WHERE col1 * - ( + - CAST( + - col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + col0 / + + col2 FROM tab0 WHERE col1 * - ( + - CAST ( + - col1 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT + ( COUNT( * ) ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT + ( COUNT ( * ) ) + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT + 94 + + 1 * - 30 + + - 54 FROM tab0
----
10
10
10

query III rowsort
SELECT * FROM tab2 WHERE - col0 BETWEEN - - col2 * - col1 AND NULL
----

query II rowsort
SELECT - col1 + - 42 * 50 - col1 AS col0, - 42 FROM tab1
----
-2110
-42
-2128
-42
-2194
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT 9 + - COUNT( * ) * + 12 + + + 31 AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2442
SELECT 9 + - COUNT ( * ) * + 12 + + + 31 AS col1 FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 52 ) col2, - 93 col1 FROM tab1
----
52
-93
52
-93
52
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL - COUNT( * ) + - 5 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - COUNT ( * ) + - 5 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT SUM( ALL - col1 ) + - + COUNT( * ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT SUM ( ALL - col1 ) + - + COUNT ( * ) FROM tab1
----
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 25 AND + col0 * col2
----

query II rowsort
SELECT DISTINCT + ( + - 91 ), col0 AS col2 FROM tab0 cor0
----
-91
15
-91
87
-91
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2448
SELECT col1 * + CAST( NULL AS DECIMAL ) - col0 + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT col1 * + CAST ( NULL AS REAL ) - col0 + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab1, tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT DISTINCT + col0 / + 8 + - 29 - - + col2 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT + col0 / + 8 + - 29 - - + col2 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT - - ( - SUM( + col0 ) ) AS col2 FROM tab1 cor0 WHERE col2 * + + col2 IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-2451
SELECT - - ( - SUM ( + col0 ) ) AS col2 FROM tab1 cor0 WHERE col2 * + + col2 IS NOT NULL
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT - 4 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - 4 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT + + col1 * 60 AS col2 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT DISTINCT - + 26 AS col1, MIN( 20 ) FROM tab1 AS cor0
----
-26
20

skipif mysql # not compatible
query II rowsort label-2454
SELECT DISTINCT - + 26 AS col1, MIN ( 20 ) FROM tab1 AS cor0
----
-26
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT - COUNT( * ) AS col1, - 39 FROM tab0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-2455
SELECT - COUNT ( * ) AS col1, - 39 FROM tab0
----
-3
-39

query I rowsort
SELECT ALL 46 * + - col1 AS col2 FROM tab1
----
-2162
-230
-644

query II rowsort
SELECT col2, col2 + + col0 + col0 FROM tab0
----
10
184
47
77
99
293

query I rowsort
SELECT DISTINCT 92 * - 10 * + col0 AS col1 FROM tab0 AS cor0 WHERE - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT + + MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2459
SELECT + + MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 50 col2 FROM tab2
----
114
125
96

query I rowsort
SELECT + - 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL COUNT( + 11 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL COUNT ( + 11 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - + ( 74 ) AS col2 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL + col1 * + col2 * - + col1 FROM tab2 cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL + MIN( DISTINCT 26 ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + MIN ( DISTINCT 26 ) AS col2 FROM tab1 AS cor0
----
26

query I rowsort
SELECT - col2 + + col0 * + col2 FROM tab1 AS cor0 WHERE col0 * col2 IS NOT NULL
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + SUM( ALL + col0 ) col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2467
SELECT + SUM ( ALL + col0 ) col2 FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT 91 * - + COUNT( - + col1 ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-2468
SELECT 91 * - + COUNT ( - + col1 ) FROM tab0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT col1 DIV - + col2 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2469
SELECT col1 / - + col2 AS col0 FROM tab0
----
-1
-2
0

query I rowsort
SELECT ALL ( - + col0 ) + col1 + 69 * 64 AS col1 FROM tab2
----
4408
4421
4429

query I rowsort
SELECT DISTINCT ( - col2 ) + col0 * col1 - + col1 FROM tab1 AS cor0
----
361
4162
604

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + 83 + COUNT( + - 86 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2472
SELECT + 83 + COUNT ( + - 86 ) FROM tab0 AS cor0
----
86

query I rowsort
SELECT + col0 + + 36 AS col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
121
127
87

query I rowsort
SELECT DISTINCT - - col1 * - 52 + - 77 AS col2 FROM tab0 AS cor0
----
-1169
-129
-4289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 2 col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT DISTINCT 20 * + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 >= col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT 20 * + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 >= col2 * - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col2 FROM tab2
----
4
4
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND - 84 / - col2 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 18 = 30 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT + 97 DIV col1 FROM tab1
----
19
2
6

skipif mysql # not compatible
query I rowsort label-2481
SELECT + 97 / col1 FROM tab1
----
19
2
6

query I rowsort
SELECT + ( - 74 ) - col2 FROM tab2
----
-114
-132
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col1 * 91
----

query I rowsort
SELECT 51 FROM tab0 WHERE NULL BETWEEN col1 * 56 AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / - 28 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2486
SELECT + 72 * - ( + col1 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) - + col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2486
SELECT + 72 * - ( + col1 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( CAST ( NULL AS REAL ) - + col1 ) AND NULL
----

query I rowsort
SELECT 65 - - 73 AS col1 FROM tab2
----
138
138
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT MIN( col1 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2488
SELECT MIN ( col1 ) col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col1 + 65 FROM tab1
----
18
51
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT - col0 AS col2 FROM tab2 WHERE - col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2490
SELECT - col0 AS col2 FROM tab2 WHERE - col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL + SUM( col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL + SUM ( col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT + col0 - col1 AS col1 FROM tab1 WHERE NOT col0 / - 89 IS NULL
----
37
44
80

query I rowsort
SELECT + 6 + 92 AS col0 FROM tab1
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT col2 + + col0 DIV - col2 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-2494
SELECT col2 + + col0 / - col2 FROM tab1
----
58
67
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 21 - - 22 > ( 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - COUNT( * ) FROM tab2 WHERE NOT col0 / col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2497
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col0 / col1 IS NULL
----
-3

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * col2 - col2 IS NULL
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + COUNT( * ) * - 50 col0 FROM tab1 cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2499
SELECT + COUNT ( * ) * - 50 col0 FROM tab1 cor0
----
-150

query I rowsort
SELECT + 63 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT 67 FROM tab2 WHERE col1 IS NOT NULL
----
67

query I rowsort
SELECT DISTINCT col0 + + col2 AS col1 FROM tab1 WHERE ( - 85 / - 39 ) IS NULL
----

query I rowsort
SELECT + 12 AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab2 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2506
SELECT 32 DIV + COUNT( * ) + + 30 AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2506
SELECT 32 / + COUNT ( * ) + + 30 AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT col2 + - col2 * - col2 FROM tab0 cor0
----
110
2256
9900

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE col1 <> ( 76 )
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2509
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 AND + ( + col1 ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - 8 > - col1
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2512
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL COUNT( ALL - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL COUNT ( ALL - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL 67 + + col2 + col2 FROM tab2
----
113
147
183

query I rowsort
SELECT - 14 + 23 AS col0 FROM tab0 WHERE ( + ( + 39 ) + - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT CAST( 80 AS SIGNED ) FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2516
SELECT CAST ( 80 AS INTEGER ) FROM tab0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT 1 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT 1 / - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( - 26 ) * 20 + + col0 AS col1 FROM tab0
----
-423
-433
-505

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE 30 = - col0
----

query I rowsort
SELECT DISTINCT col2 + + 59 AS col1 FROM tab2 AS cor0
----
117
82
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT - 50 = + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 - - 60 * - col1 FROM tab2 AS cor0
----
-3009
-3953
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL COUNT( * ) * 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= 4
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL COUNT ( * ) * 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= 4
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON 54 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT - MAX( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT - MAX ( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2527
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2527
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( 24 * col0 + CAST( + 92 + - col2 AS SIGNED ) ) NOT BETWEEN col1 AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( 24 * col0 + CAST ( + 92 + - col2 AS INTEGER ) ) NOT BETWEEN col1 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT + MIN( ALL ( col2 ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + MIN ( ALL ( col2 ) ) FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL + 44 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL >= ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + 44 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL >= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL COUNT( - + 64 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL COUNT ( - + 64 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - ( + - ( 15 ) ) * - 15 FROM tab2 AS cor0
----
-225
-225
-225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 + - ( ( col2 ) ) ) <= ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1, - 97 * col0 FROM tab1 cor0
----
14
-4947
47
-8827
5
-8245

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + MIN( ALL + 6 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2537
SELECT + MIN ( ALL + 6 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + col2 * col1 * + 26 FROM tab0 AS cor0
----
2574
5460
98982

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT DISTINCT MIN( - + col0 ) * - COUNT( * ) * - MAX( 52 ) AS col1 FROM tab0
----
-15132

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT MIN ( - + col0 ) * - COUNT ( * ) * - MAX ( 52 ) AS col1 FROM tab0
----
-15132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT MAX( ALL - - col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2542
SELECT MAX ( ALL - - col1 ) AS col2 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT ALL - col0 * + CAST( + ( + ( - col1 ) ) AS SIGNED ) AS col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - col0 * + CAST ( + ( + ( - col1 ) ) AS INTEGER ) AS col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2545
SELECT * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) / + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2545
SELECT * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) / + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * - 49 FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT DISTINCT + + 13 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + + 13 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 / col1 FROM tab2 AS cor0 WHERE NOT ( 16 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT ALL 99 * 74 DIV - col0 FROM tab2 AS cor0
----
-114
-159
-97

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL 99 * 74 / - col0 FROM tab2 AS cor0
----
-114
-159
-97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 21 NOT IN ( + - col1 )
----

query I rowsort
SELECT DISTINCT + col0 * + 88 AS col1 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT 42 * + 54 + + COUNT( * ) + 36 AS col1 FROM tab0
----
2307

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT 42 * + 54 + + COUNT ( * ) + 36 AS col1 FROM tab0
----
2307

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT + COUNT( ALL col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2554
SELECT + COUNT ( ALL col1 ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * - 16 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - COUNT( * ) * + 66 AS col2 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2556
SELECT - COUNT ( * ) * + 66 AS col2 FROM tab2 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT + + 41 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT + + 41 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - 54 * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 54 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT ALL - col0 + + + 94 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - col0 + + + 94 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 35 + + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 2 * + - 74 AS col0 FROM tab0 AS cor0
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2562
SELECT col0 AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2562
SELECT col0 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT - col0 * 23, - col1 AS col1 FROM tab0
----
-2001
-21
-2231
-1
-345
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col1 = - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( + + 76 ) ) NOT BETWEEN + col0 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - 93 + - + COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - 93 + - + COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT + 23 FROM tab1 WHERE - 94 - - col0 IS NULL
----

query II rowsort
SELECT - col1 * - 49 + + ( col1 ), 36 AS col1 FROM tab2
----
2550
36
3350
36
3850
36

query I rowsort
SELECT 65 FROM tab0 WHERE ( - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL + + COUNT( DISTINCT - col0 ) - + 41 AS col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + + COUNT ( DISTINCT - col0 ) - + 41 AS col1 FROM tab2 AS cor0
----
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < ( NULL )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( 99 ) AND ( col0 * col1 + + col0 )
----

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT - 2 * + MIN( ALL CAST( - - 42 AS SIGNED ) ) + - 6 - - 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - 2 * + MIN ( ALL CAST ( - - 42 AS INTEGER ) ) + - 6 - - 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 93 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT ALL - COUNT( * ), 67 AS col2 FROM tab0
----
-3
67

skipif mysql # not compatible
query II rowsort label-2579
SELECT ALL - COUNT ( * ), 67 AS col2 FROM tab0
----
-3
67

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - - 66 + - 60
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2581
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT col1 * - + col1 AS col0 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 WHERE NOT - 86 = ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + ( - - col1 ) FROM tab0 WHERE NOT ( - + col2 ) NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT MIN( - - 0 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT MIN ( - - 0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT col1 * - + 46 * col0 + - col0 - - col2 DIV - CAST( + - col0 AS SIGNED ) * - + col2 + 63 AS col2 FROM tab2 AS cor0
----
-107899
-226689
-231162

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT col1 * - + 46 * col0 + - col0 - - col2 / - CAST ( + - col0 AS INTEGER ) * - + col2 + 63 AS col2 FROM tab2 AS cor0
----
-107899
-226689
-231162

onlyif mysql # DIV for integer division: 
query II rowsort label-2588
SELECT DISTINCT col0 * col0 DIV + - 14, - col1 * - + 2 AS col2 FROM tab1 cor0
----
-185
28
-516
10
-591
94

skipif mysql # not compatible
query II rowsort label-2588
SELECT DISTINCT col0 * col0 / + - 14, - col1 * - + 2 AS col2 FROM tab1 cor0
----
-185
28
-516
10
-591
94

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2590
SELECT ALL + 29 DIV col2 - - - col2 + col2 - + - 68 * + col2 AS col1, - col0 * + col1 FROM tab0 cor0
----
3196
-1215
6732
-97
682
-1827

skipif mysql # not compatible
query II rowsort label-2590
SELECT ALL + 29 / col2 - - - col2 + col2 - + - 68 * + col2 AS col1, - col0 * + col1 FROM tab0 cor0
----
3196
-1215
6732
-97
682
-1827

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + + col2 + - 68 NOT BETWEEN - + 41 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT - 71 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 78, 36 AS col0 FROM tab0, tab2 AS cor0
----
-78
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT - 60 + + col0 DIV - col1 FROM tab2 AS cor0
----
-60
-60
-61

skipif mysql # not compatible
query I rowsort label-2594
SELECT - 60 + + col0 / - col1 FROM tab2 AS cor0
----
-60
-60
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2595
SELECT col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + + 21 * + 55 col2 FROM tab0 AS cor0
----
1193
1193
1193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) - + col0 + + + 14 - - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) - + col0 + + + 14 - - 12 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT DISTINCT + - col2 DIV + ( col2 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + - col2 / + ( col2 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE + col1 + - + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2600
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + col1 + - + col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT col1 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT col1 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 72 * - + 87 FROM tab1
----
6264
6264
6264

query I rowsort
SELECT + ( + + 50 ) AS col0 FROM tab0
----
50
50
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2604
SELECT ALL 87 + COUNT( * ) DIV + 12 AS col0, 15 FROM tab0
----
87
15

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL 87 + COUNT ( * ) / + 12 AS col0, 15 FROM tab0
----
87
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT - ( + + SUM( - 47 ) ) / - MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT - ( + + SUM ( - 47 ) ) / - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT DISTINCT - 66 * - 62 + + - col0 * 38 DIV + + col1 FROM tab0
----
3935
406
4085

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - 66 * - 62 + + - col0 * 38 / + + col1 FROM tab0
----
3935
406
4085

query I rowsort
SELECT ALL col2 * - ( 62 ) - - 35 AS col2 FROM tab2
----
-1391
-2445
-3561

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * + 97 IS NOT NULL
----

query I rowsort
SELECT - 55 - + 91 AS col1 FROM tab2
----
-146
-146
-146

query I rowsort
SELECT + col1 / - 15 + + ( - col1 ) * + col2 * + - 72 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT ALL 89 - - - 50 + + col1 DIV col1 * - + col2 AS col0 FROM tab0 cor0
----
-60
-8
29

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL 89 - - - 50 + + col1 / col1 * - + col2 AS col0 FROM tab0 cor0
----
-60
-8
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2613
SELECT ALL 72 DIV + col2 + - col1 col0, + ( + 53 ) - + 80 + + 5 * 29 col1 FROM tab2 cor0
----
-48
118
-66
118
-76
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2613
SELECT ALL 72 / + col2 + - col1 col0, + ( + 53 ) - + 80 + + 5 * 29 col1 FROM tab2 cor0
----
-48
118
-66
118
-76
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, + 4 col2 FROM tab2
----
51
4
67
4
77
4

query I rowsort
SELECT - - 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 / col2 BETWEEN ( - - 36 - + - col1 ) AND ( + 66 )
----

query I rowsort
SELECT - 54 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT - col1 DIV + col2 FROM tab1 cor0 WHERE NOT 5 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT - col1 / + col2 FROM tab1 cor0 WHERE NOT 5 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT 25 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT 25 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + 20 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + 20 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2622
SELECT DISTINCT + + 28, COUNT( * ) col2 FROM tab1 AS cor0
----
28
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2622
SELECT DISTINCT + + 28, COUNT ( * ) col2 FROM tab1 AS cor0
----
28
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + 17 - + 14 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT + 32 DIV 9 AS col2 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2624
SELECT + 32 / 9 AS col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT + ( - COUNT( * ) ) AS col1, + MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-2625
SELECT + ( - COUNT ( * ) ) AS col1, + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-3
97

query II rowsort
SELECT ALL - 31 + - col1, col2 * col2 * + col0 AS col0 FROM tab0
----
-112
33135
-32
950697
-52
8700

query I rowsort
SELECT ALL - 84 FROM tab2 WHERE + - 42 + col1 <= NULL
----

query I rowsort
SELECT ALL - col0 + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-138
-65
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - + ( + 20 ) ) + - + 26 + 60 / + col0 + + + 12 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - - col2 * - + 37 * + col0 AND + col1 * col0
----
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - - col2 * - + 37 * + col0 AND + col1 * col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND + col0 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col0 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 / + col1 + 28 + - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col0 + col1 + 62 FROM tab1 AS cor0
----
-18
18
25

query I rowsort
SELECT - + col2 * + 27 - col2 * + - 64 AS col2 FROM tab1 cor0
----
2183
2516
3552

query I rowsort
SELECT + col1 - - col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2636
SELECT - 99 - - - CAST( col2 AS SIGNED ) + - 66 AS col0, col0 + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-188
-28
-205
-53
-223
-50

skipif mysql # not compatible
query II rowsort label-2636
SELECT - 99 - - - CAST ( col2 AS INTEGER ) + - 66 AS col0, col0 + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-188
-28
-205
-53
-223
-50

query I rowsort
SELECT + + col0 FROM tab2 WHERE - col0 <> col2
----
46
64
75

query II rowsort
SELECT + + ( + col0 ), col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + + 62 FROM tab0 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT DISTINCT + + col2 * col1 * + + ( + + col0 ) + - - col1 DIV col0 col0 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2640
SELECT DISTINCT + + col2 * col1 * + + ( + + col0 ) + - - col1 / col0 col0 FROM tab1 AS cor0
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col2 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT + 1 * + col1 FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 45 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL + - SUM( DISTINCT - 63 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + - SUM ( DISTINCT - 63 ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL + SUM( - col2 ) FROM tab1 AS cor0 WHERE NOT 48 IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + SUM ( - col2 ) FROM tab1 AS cor0 WHERE NOT 48 IS NULL
----
-223

query I rowsort
SELECT ALL + 97 + - col1 + - 59 * + 13 FROM tab2
----
-721
-737
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - COUNT( + 65 ) + - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2649
SELECT - COUNT ( + 65 ) + - - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT 75 + MIN( 1 ) + - + 6 AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT 75 + MIN ( 1 ) + - + 6 AS col2 FROM tab1
----
70

query I rowsort
SELECT ( - col1 ) + + col0 * col0 * col0 * - 11 AS col0 FROM tab1
----
-1459175
-6755380
-8289328

query I rowsort
SELECT ALL - 71 + + - col0 + col2 FROM tab0
----
-148
-39
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28 col1, 24 + + col2 FROM tab2
----
28
47
28
64
28
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT SUM( - 35 ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT SUM ( - 35 ) FROM tab2
----
-105

query I rowsort
SELECT DISTINCT - - col1 + + + col2 + - - col2 FROM tab0 AS cor0
----
175
199
41

query II rowsort
SELECT ALL - + col2 AS col1, 52 + col0 FROM tab2 AS cor0
----
-23
98
-40
116
-58
127

query I rowsort
SELECT ALL ( - ( + col0 ) ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL - COUNT( + + 91 ) * - SUM( DISTINCT - - 16 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - COUNT ( + + 91 ) * - SUM ( DISTINCT - - 16 ) FROM tab0
----
48

query I rowsort
SELECT 29 + + - col1 + col1 * col2 AS col0 FROM tab1
----
1359
3178
319

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 - - + col0 FROM tab2 AS cor0 WHERE + 40 BETWEEN NULL AND + 43
----

query I rowsort
SELECT ALL + 38 + + - 29 + + + ( + - col0 ) FROM tab0 AS cor0
----
-6
-78
-88

query I rowsort
SELECT col2 * - 23 + 31 AS col0 FROM tab1 AS cor0
----
-1326
-1533
-2177

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2664
SELECT DISTINCT - + col1 - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT - + col1 - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 20 * + - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT DISTINCT + 79 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT + 79 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT ALL - - 47 - col2 - - - 93 DIV + + col2 + - 81 * + 44 FROM tab1 AS cor0
----
-3577
-3586
-3613

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - - 47 - col2 - - - 93 / + + col2 + - 81 * + 44 FROM tab1 AS cor0
----
-3577
-3586
-3613

query I rowsort
SELECT ALL + - col2 - - + col2 - - + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2670
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 99 * + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2670
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 99 * + CAST ( col0 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT DISTINCT - + col1 * - + col2 - - col1 DIV col0 + 68 + + col1 FROM tab0 cor0
----
168
299
3961

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT - + col1 * - + col2 - - col1 / col0 + 68 + + col1 FROM tab0 cor0
----
168
299
3961

onlyif mysql # DIV for integer division: 
query I rowsort label-2672
SELECT DISTINCT ( col0 ) * col2 DIV + col1 AS col1 FROM tab2
----
20
33
64

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT ( col0 ) * col2 / + col1 AS col1 FROM tab2
----
20
33
64

query I rowsort
SELECT DISTINCT - 37 * - col2 AS col0 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT DISTINCT - col0 * + - 35 AS col2 FROM tab0
----
3045
3395
525

query I rowsort
SELECT - 17 FROM tab1 WHERE NOT + + 75 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT + COUNT( + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2676
SELECT + COUNT ( + col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col0 * - 56 FROM tab1
----
-2856
-4760
-5096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 * + col2 + + 9 * - ( - 91 ) col1 FROM tab2 WHERE NOT - + 20 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col1, + 93 AS col0 FROM tab0 AS cor0
----
1
93
21
93
81
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - COUNT( - + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2681
SELECT - COUNT ( - + col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 77 * - col0 AS col0 FROM tab2 AS cor0
----
-3542
-4928
-5775

query I rowsort
SELECT ALL col0 / - col2 + - + 97 * col2 + - col1 * + col0 / col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 <= NULL
----

query I rowsort
SELECT - 23 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - col0 * 7 * + col1 AS col2 FROM tab0 AS cor0
----
-12789
-679
-8505

query I rowsort
SELECT ALL + 52 - + - 97 AS col1 FROM tab0 AS cor0 WHERE NOT 81 IS NULL
----
149
149
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT + MIN( 61 ) col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2688
SELECT DISTINCT + MIN ( 61 ) col0 FROM tab1 AS cor0
----
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT - MIN( + - 67 ) FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-2690
SELECT - MIN ( + - 67 ) FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT + COUNT( * ) DIV + - 71 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT + COUNT ( * ) / + - 71 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * - 44 FROM tab1
----
2068
220
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col1 * + col2 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col1 * + col2 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 39 + - 69 FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL 66 + - COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL 66 + - COUNT ( * ) FROM tab2
----
63

query I rowsort
SELECT DISTINCT 84 + + 44 AS col2 FROM tab1
----
128

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 48 <> + col2 / + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 FROM tab1 WHERE + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT 86 + + col0 AS col1 FROM tab0 AS cor0
----
101
173
183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2701
SELECT col2 DIV - - 70 + + + CAST( + 91 AS SIGNED ) AS col2 FROM tab0 cor0
----
91
91
92

skipif mysql # not compatible
query I rowsort label-2701
SELECT col2 / - - 70 + + + CAST ( + 91 AS INTEGER ) AS col2 FROM tab0 cor0
----
91
91
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN + col0 AND NULL
----

query II rowsort
SELECT DISTINCT + col2, - ( + 71 ) FROM tab1
----
59
-71
68
-71
96
-71

query I rowsort
SELECT DISTINCT + + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 / - 99 + - 12 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT - - MAX( DISTINCT + col1 ) DIV + 30 - + - MAX( ALL + - col1 ) + - MAX( + - col2 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2707
SELECT - - MAX ( DISTINCT + col1 ) / + 30 - + - MAX ( ALL + - col1 ) + - MAX ( + - col2 ) FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2708
SELECT * FROM tab1 AS cor0 WHERE 4 + + + 51 + + + CAST( NULL AS DECIMAL ) + - col2 * + + 99 < NULL
----

skipif mysql # not compatible
query III rowsort label-2708
SELECT * FROM tab1 AS cor0 WHERE 4 + + + 51 + + + CAST ( NULL AS REAL ) + - col2 * + + 99 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT CAST( NULL AS SIGNED ) - + col2 * + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT CAST ( NULL AS INTEGER ) - + col2 * + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 1 > col2 * 9
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT + + COUNT( * ) * + + COUNT( * ) + 55 DIV 18 - - - 89 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2711
SELECT + + COUNT ( * ) * + + COUNT ( * ) + 55 / 18 - - - 89 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col0 - 3 AS col2 FROM tab2 AS cor0
----
43
61
72

query II rowsort
SELECT DISTINCT + - col1 AS col2, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2715
SELECT - COUNT( + CAST( 34 AS SIGNED ) ) + + 55 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COUNT ( + CAST ( 34 AS INTEGER ) ) + + 55 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 34 IS NULL )
----

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
51
85
91

query I rowsort
SELECT - 65 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + MAX( - - 56 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-2719
SELECT + MAX ( - - 56 ) FROM tab0
----
56

query I rowsort
SELECT ALL 49 * col2 AS col1 FROM tab1
----
2891
3332
4704

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2721
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) < + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-2721
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) < + ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 44 >= 31
----

query II rowsort
SELECT col0, 25 + col2 FROM tab1 AS cor0
----
51
121
85
84
91
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2724
SELECT - ( - + CAST( NULL AS DECIMAL ) ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT - ( - + CAST ( NULL AS REAL ) ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 63 * col2 FROM tab0 cor0
----
2961
6237
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, + col0 col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT col0 * col0 * + 66 / - + 90 + + + 3 - + CAST( NULL AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT col0 * col0 * + 66 / - + 90 + + + 3 - + CAST ( NULL AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - - col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT 70 + + ( + 45 ) AS col0 FROM tab1 AS cor0
----
115
115
115

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 69 * 49, col0, col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2731
SELECT ALL + + 89 DIV col1 + - - 49 AS col1, + col2 AS col0 FROM tab0 cor0
----
138
99
50
47
53
10

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL + + 89 / col1 + - - 49 AS col1, + col2 AS col0 FROM tab0 cor0
----
138
99
50
47
53
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT DISTINCT + col2 DIV - - col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT + col2 / - - col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( + 0 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT DISTINCT - 19 + + col0 DIV 63 FROM tab2
----
-18
-19

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - 19 + + col0 / 63 FROM tab2
----
-18
-19

query III rowsort
SELECT * FROM tab2 WHERE - 98 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - - col1 col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL + - 85 + - - 15 AS col1 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 63 NOT BETWEEN + 78 * - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 21 - + col0 * 98 AS col2 FROM tab1 cor0
----
-5019
-8351
-8939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2740
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 + + - col1 col2 FROM tab1
----
-116
-74
-83

query I rowsort
SELECT - col1 FROM tab1 WHERE - col2 + col0 / - 74 < + col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2743
SELECT COUNT( * ) DIV - 28 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2743
SELECT COUNT ( * ) / - 28 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2744
SELECT ALL - 79 DIV 18 * SUM( ALL + - 41 ) FROM tab1 cor0
----
492

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - 79 / 18 * SUM ( ALL + - 41 ) FROM tab1 cor0
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT COUNT( * ) + + + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT + col0 < + + 84
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2745
SELECT COUNT ( * ) + + + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT + col0 < + + 84
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL SUM( ALL col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL SUM ( ALL col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL MAX( + + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL MAX ( + + col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - - 57 * + - col0 AS col0 FROM tab2 AS cor0
----
-2622
-3648
-4275

query II rowsort
SELECT ALL + col2 AS col1, col2 + + col1 * + col1 AS col0 FROM tab1 WHERE + col2 + + col2 <= ( col2 )
----

query II rowsort
SELECT ALL + col0 AS col2, - col1 * - col0 FROM tab0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - MIN( DISTINCT - + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2752
SELECT - MIN ( DISTINCT - + 45 ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + ( - SUM( ALL + + 4 ) ) * - 41 * 89 AS col2 FROM tab1
----
43788

skipif mysql # not compatible
query I rowsort label-2753
SELECT + ( - SUM ( ALL + + 4 ) ) * - 41 * 89 AS col2 FROM tab1
----
43788

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col2 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2755
SELECT col0, + 52 + + CAST( - + 51 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-2755
SELECT col0, + 52 + + CAST ( - + 51 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
1
64
1
75
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT - + CAST( NULL AS SIGNED ) * - + 31 + - col2 AS col2 FROM tab1 cor0 WHERE NOT + 63 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT - + CAST ( NULL AS INTEGER ) * - + 31 + - col2 AS col2 FROM tab1 cor0 WHERE NOT + 63 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT DISTINCT col2 + - + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT col2 + - + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2758
SELECT DISTINCT - MAX( ALL 58 ) FROM tab0 AS cor0 WHERE NOT 81 + + 62 <= + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - MAX ( ALL 58 ) FROM tab0 AS cor0 WHERE NOT 81 + + 62 <= + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + 95 + 64 * - ( + 95 ) * + col1, + 6 AS col1 FROM tab1 AS cor0
----
-285665
6
-30305
6
-85025
6

query I rowsort
SELECT + + ( ( - 20 ) ) * - - col0 AS col2 FROM tab1 AS cor0
----
-1020
-1700
-1820

query I rowsort
SELECT DISTINCT 38 * - - 58 AS col0 FROM tab0 AS cor0
----
2204

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - + 74 AS col1 FROM tab1 AS cor0
----
-3774
-6290
-6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL - + 4 * - - MIN( ALL + - CAST( col1 AS SIGNED ) ) FROM tab2 cor0
----
308

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - + 4 * - - MIN ( ALL + - CAST ( col1 AS INTEGER ) ) FROM tab2 cor0
----
308

query I rowsort
SELECT + - col2 * - 46 AS col2 FROM tab2 AS cor0
----
1058
1840
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + - MAX( + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + - MAX ( + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT col0 * - 60 + - + CAST( NULL AS SIGNED ) + + 79 + 18 + - 80 * + col2 * + - col2 * - 71 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT col0 * - 60 + - + CAST ( NULL AS INTEGER ) + + 79 + 18 + - 80 * + col2 * + - col2 * - 71 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 * - 40 - col0, col1 FROM tab2
----
-1886
51
-2624
77
-3075
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) - - - col2 / col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) - - - col2 / col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * - 95 - + + col2 + 57 + + + col1 - + col2 * - col0 * - - 92 + + + col2 * + - col0 + col1 FROM tab0 AS cor0
----
65752
87524
883048

query I rowsort
SELECT + ( + col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col1 * + - col0 * - 5 FROM tab1
----
2125
21385
3570

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT - - 62 DIV + - 86 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT - - 62 / + - 86 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - col0 ) ) >= - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 71 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 33 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE NOT + col2 + col1 + - 62 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT col2 DIV + col1 * col2 * - 31 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2780
SELECT col2 / + col1 * col2 * - 31 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 12 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL + COUNT( * ) + + 45 col2 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2783
SELECT ALL + COUNT ( * ) + + 45 col2 FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL - ( + + CAST( - - ( + 40 ) AS SIGNED ) ) * + - col1 + - 30 + + + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1941
255
581

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - ( + + CAST ( - - ( + 40 ) AS INTEGER ) ) * + - col1 + - 30 + + + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1941
255
581

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 27 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT - + CAST( + - MAX( - col1 ) AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT - + CAST ( + - MAX ( - col1 ) AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 30 + 49 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT ALL + 12 AS col1 FROM tab2 cor0
----
12
12
12

query III rowsort
SELECT * FROM tab1 WHERE 10 / + 46 BETWEEN + col2 AND 57 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE - 12 = NULL
----

query II rowsort
SELECT ( - col1 ) AS col0, - 40 FROM tab2
----
-51
-40
-67
-40
-77
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT - col1 * 73 DIV col2 FROM tab0
----
-125
-153
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT - col1 * 73 / col2 FROM tab0
----
-125
-153
0

query II rowsort
SELECT ALL col2 * 18 + 25 AS col2, + 31 FROM tab2
----
1069
31
439
31
745
31

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col0 + - - col0 ) AND col0
----

query I rowsort
SELECT - 87 + - col0 FROM tab2 AS cor0 WHERE - 91 IS NOT NULL
----
-133
-151
-162

query I rowsort
SELECT ALL - + 24 + + ( + - col2 ) FROM tab0 cor0
----
-123
-34
-71

query I rowsort
SELECT 14 + - ( + col2 ) - + col0 AS col1 FROM tab2 cor0
----
-119
-55
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT + 15 AS col0, COUNT( * ) FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-2798
SELECT + 15 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
15
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 21 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2801
SELECT - - CAST( NULL AS SIGNED ), col2 col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2801
SELECT - - CAST ( NULL AS INTEGER ), col2 col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT DISTINCT COUNT( + CAST( + + 42 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT COUNT ( + CAST ( + + 42 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT + col2 DIV - - 75 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2803
SELECT + col2 / - - 75 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ( + + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2804
SELECT ( + + COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT 73 * + - 73 FROM tab0 AS cor0
----
-5329
-5329
-5329

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + col1 NOT BETWEEN - + 17 + - 49 AND - + col0 * col1
----

query I rowsort
SELECT ALL col1 + - + col0 AS col2 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT DISTINCT + ( + - col2 ) + col2 FROM tab0 WHERE NOT - CAST( col0 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT + ( + - col2 ) + col2 FROM tab0 WHERE NOT - CAST ( col0 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT + MIN( DISTINCT + col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2809
SELECT DISTINCT + MIN ( DISTINCT + col0 ) col2 FROM tab2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2810
SELECT DISTINCT - SUM( - - 39 ) DIV + - COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT - SUM ( - - 39 ) / + - COUNT ( * ) FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - - 7 + MIN( + + col0 ) AS col2 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2811
SELECT - - 7 + MIN ( + + col0 ) AS col2 FROM tab1 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 26 * - 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT CAST( - col0 AS SIGNED ) + - 8 FROM tab2 AS cor0
----
-54
-72
-83

skipif mysql # not compatible
query I rowsort label-2813
SELECT CAST ( - col0 AS INTEGER ) + - 8 FROM tab2 AS cor0
----
-54
-72
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 + - - 33 * - col0 col2 FROM tab1
----
-1650
-2772
-2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT - 34 * COUNT( + 44 ) * + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT - 34 * COUNT ( + 44 ) * + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT ALL - 31 - - col0 - + + 74 * ( - col0 ) AS col0, col0 AS col2 FROM tab0 AS cor0
----
1094
15
6494
87
7244
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2817
SELECT DISTINCT + MAX( - - CAST( - 61 AS SIGNED ) ) AS col0, 6 AS col1 FROM tab2 AS cor0
----
-61
6

skipif mysql # not compatible
query II rowsort label-2817
SELECT DISTINCT + MAX ( - - CAST ( - 61 AS INTEGER ) ) AS col0, 6 AS col1 FROM tab2 AS cor0
----
-61
6

query I rowsort
SELECT - + ( - 41 ) FROM tab0 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2819
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 IS NULL AND NOT col1 <> + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2819
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 IS NULL AND NOT col1 <> + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL + COUNT( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + COUNT ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 65 - - 3 - col0 * col2 FROM tab0 AS cor0
----
-767
-932
-9665

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL + MAX( 88 ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + MAX ( 88 ) FROM tab2
----
88

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NOT col2 = - col1 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL COUNT( * ) * - 44 AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL COUNT ( * ) * - 44 AS col2 FROM tab1
----
-132

query II rowsort
SELECT DISTINCT - + 3 + + col0 + + col1 * - col1 * 82 + - 35, col1 * 94 AS col1 FROM tab1 AS cor0
----
-16059
1316
-181085
4418
-2003
470

query II rowsort
SELECT - col2, - 75 AS col0 FROM tab1 AS cor0
----
-59
-75
-68
-75
-96
-75

query I rowsort
SELECT + col2 * - - col1 - ( col0 ) FROM tab0 AS cor0
----
123
2
3792

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 = col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 77 + - col0 + - ( + - 38 ) FROM tab0
----
100
18
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT ALL - ( + + col0 ) DIV - col2 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - ( + + col0 ) / - col2 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT 78 * - 84 + MIN( ALL col1 ) AS col0 FROM tab0
----
-6551

skipif mysql # not compatible
query I rowsort label-2832
SELECT 78 * - 84 + MIN ( ALL col1 ) AS col0 FROM tab0
----
-6551

query I rowsort
SELECT DISTINCT + col1 + ( - 26 ) - col1 * - + 68 FROM tab2
----
3493
4597
5287

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ( - 4 ) + - 2 * + COUNT( * ) * + 83 FROM tab1
----
-502

skipif mysql # not compatible
query I rowsort label-2834
SELECT ( - 4 ) + - 2 * + COUNT ( * ) * + 83 FROM tab1
----
-502

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT IN ( + + col2 + + col2, col1 + - col2 + - + 0 * - col0 * col1, - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT - SUM( - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2836
SELECT - SUM ( - col2 ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT ALL - col1 + col0 + + 93 + + - col0 + + CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - col1 + col0 + + 93 + + - col0 + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, + col0 + - + 82 FROM tab1
----
59
3
68
9
96
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - col2 * - col1, - col2 col0 FROM tab0
----
-178929
-47
-2100
-10
-9801
-99

query I rowsort
SELECT col2 * + col0 * - - col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT ALL 17 * + col0 FROM tab0 AS cor0
----
1479
1649
255

query I rowsort
SELECT - - 64 AS col2 FROM tab1 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT - SUM( + - col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - SUM ( + - col2 ) AS col1 FROM tab2 AS cor0
----
121

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 70 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + + 58, + 77 col1 FROM tab0
----
139
77
59
77
79
77

query I rowsort
SELECT ALL - col2 * col2 + + - col2 + + 2 AS col2 FROM tab1 AS cor0
----
-3538
-4690
-9310

query I rowsort
SELECT ALL + col1 - 14 + col0 + + col1 * col1 AS col1 FROM tab0 cor0
----
535
6643
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2848
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col1 + - ( CAST( NULL AS SIGNED ) ) * + col0
----

skipif mysql # not compatible
query III rowsort label-2848
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col1 + - ( CAST ( NULL AS INTEGER ) ) * + col0
----

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + 90 - col2 FROM tab0 AS cor0
----
-9
43
80

query I rowsort
SELECT DISTINCT ( - ( - 75 ) ) FROM tab2 cor0
----
75

query I rowsort
SELECT ALL 49 - + col1 - - col0 FROM tab2 cor0
----
36
44
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL 19 FROM tab0 AS cor0 WHERE NOT - CAST( + + col0 AS SIGNED ) NOT BETWEEN - 93 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL 19 FROM tab0 AS cor0 WHERE NOT - CAST ( + + col0 AS INTEGER ) NOT BETWEEN - 93 AND NULL
----

query II rowsort
SELECT - + 49, 71 AS col2 FROM tab2 WHERE + col0 * - col1 + + col0 * + col1 * + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 78 FROM tab0
----
3666
7722
780

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT 99 * COUNT( + col0 ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-2857
SELECT 99 * COUNT ( + col0 ) AS col0 FROM tab0
----
297

query II rowsort
SELECT ALL col1 AS col1, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT + col1, + col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 + + col0 AS col2 FROM tab2 AS cor0
----
46
23
64
24
75
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT + + AVG ( + col1 ) FROM tab0 cor0 WHERE NOT NULL <= - CAST( NULL AS SIGNED ) - - col1 * + 62 * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT + + AVG ( + col1 ) FROM tab0 cor0 WHERE NOT NULL <= - CAST ( NULL AS INTEGER ) - - col1 * + 62 * 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2862
SELECT ALL + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT + col0 AS col0, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT - COUNT( 80 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - COUNT ( 80 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2865
SELECT DISTINCT 65 col2, + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
65
14
65
47
65
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2865
SELECT DISTINCT 65 col2, + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
65
14
65
47
65
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col0, - col0 col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 14 col0, + 13 FROM tab1 AS cor0
----
14
13
14
13
14
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93, + col0 + - col1 + + col2 * + 84 * 54 col2 FROM tab0 AS cor0
----
93
213126
93
449160
93
45426

onlyif mysql # aggregate syntax: 
query II rowsort label-2869
SELECT DISTINCT - COUNT( * ) col2, 41 AS col1 FROM tab2 AS cor0
----
-3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2869
SELECT DISTINCT - COUNT ( * ) col2, 41 AS col1 FROM tab2 AS cor0
----
-3
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT + MAX( DISTINCT col0 ) * - 85 * 43 FROM tab1 AS cor0
----
-332605

skipif mysql # not compatible
query I rowsort label-2870
SELECT + MAX ( DISTINCT col0 ) * - 85 * 43 FROM tab1 AS cor0
----
-332605

query II rowsort
SELECT - + col0 AS col0, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2872
SELECT + - COUNT( ALL - + col1 ), 52 AS col0 FROM tab0 AS cor0
----
-3
52

skipif mysql # not compatible
query II rowsort label-2872
SELECT + - COUNT ( ALL - + col1 ), 52 AS col0 FROM tab0 AS cor0
----
-3
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - col0 + + 89 FROM tab1
----
-1
-49
24

query I rowsort
SELECT DISTINCT col2 + 93 FROM tab2
----
116
133
151

query I rowsort
SELECT col0 + 23 AS col1 FROM tab0 AS cor0
----
110
120
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL + COUNT( * ) * + - SUM( 46 ) FROM tab2 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + COUNT ( * ) * + - SUM ( 46 ) FROM tab2 AS cor0
----
-414

query I rowsort
SELECT DISTINCT + col0 * + 43 AS col2 FROM tab2 AS cor0
----
1978
2752
3225

query I rowsort
SELECT ( ( + col1 ) ) * + 16 + - col0 + col2 AS col2 FROM tab1 AS cor0
----
269
54
729

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 93 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT col2 - + 65 FROM tab0 AS cor0
----
-18
-55
34

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2883
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - + CAST( NULL AS DECIMAL ) BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2883
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - + CAST ( NULL AS REAL ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT COUNT( * ) - - + 27 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2884
SELECT COUNT ( * ) - - + 27 FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL col1 * CAST( NULL AS SIGNED ) + - col2 * + 40 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + - col2 * + 40 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT DISTINCT + - ( + MIN( ALL + 32 ) ) AS col2 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + - ( + MIN ( ALL + 32 ) ) AS col2 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT - col1 - col2 + - - col1 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT ALL - 10 AS col0, - 74 + + ( 26 ) FROM tab0 AS cor0
----
-10
-48
-10
-48
-10
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT MIN( DISTINCT + 39 ) - + + COUNT( 54 ) AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2889
SELECT MIN ( DISTINCT + 39 ) - + + COUNT ( 54 ) AS col1 FROM tab0 AS cor0
----
36

query I rowsort
SELECT 45 - + col1 FROM tab1 cor0
----
-2
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE + + col2 * - 86 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE + + col2 * - 86 * + col2 IS NULL
----
0

query I rowsort
SELECT ALL + + ( + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND - 69
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT + ( col0 ) DIV + + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2894
SELECT + ( col0 ) / + + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2895
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - ( - + CAST( NULL AS DECIMAL ) ) >= + - col0
----

skipif mysql # not compatible
query III rowsort label-2895
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - ( - + CAST ( NULL AS REAL ) ) >= + - col0
----

query I rowsort
SELECT DISTINCT - col2 * + - 63 FROM tab2
----
1449
2520
3654

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT - col0 DIV + + 74 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2897
SELECT - col0 / + + 74 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + + col2 * col1 * - 57 AS col0 FROM tab0 cor0
----
-11970
-216999
-5643

query I rowsort
SELECT ALL - 80 * 26 FROM tab0 AS cor0
----
-2080
-2080
-2080

query I rowsort
SELECT ALL - - col0 * ( + + col1 ) - + col2 + + + col1 FROM tab1 AS cor0 WHERE NULL < + 88 * + col0 * - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL 26 * - - ( - COUNT( * ) ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL 26 * - - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT 85 + + SUM( ALL + - col1 ) - + - 63 AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2903
SELECT 85 + + SUM ( ALL + - col1 ) - + - 63 AS col2 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT - 97 FROM tab0 WHERE NULL > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2904
SELECT - 97 FROM tab0 WHERE NULL > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( + + col1 ) * - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col1 * - - 82 + col0 AS col1 FROM tab1
----
-1097
-325
-3763

query I rowsort
SELECT ALL - col0 + + - col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2908
SELECT DISTINCT + - CAST( - + SUM( ALL - col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + - CAST ( - + SUM ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 22 * + col1 * + 86 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT 53 + - col1 FROM tab2
----
-14
-24
2

query II rowsort
SELECT ALL ( + - col2 ) AS col0, 96 AS col0 FROM tab1
----
-59
96
-68
96
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - SUM( - + 79 ) + 11 col0 FROM tab1
----
248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2913
SELECT - SUM ( - + 79 ) + 11 col0 FROM tab1
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT - MAX( col1 ) + - MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-2914
SELECT - MAX ( col1 ) + - MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT MIN( DISTINCT - col0 ) * - CAST( NULL AS SIGNED ) + MAX( DISTINCT 27 ) + - - 97 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT MIN ( DISTINCT - col0 ) * - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 27 ) + - - 97 FROM tab2
----
NULL

query I rowsort
SELECT 2 + - 94 AS col1 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT ( - + col0 ) + - 80 FROM tab1 AS cor0
----
-131
-165
-171

query I rowsort
SELECT col1 * col1 + + + col2 FROM tab2 cor0
----
2624
4547
5969

query I rowsort
SELECT 76 * - col1 AS col1 FROM tab2
----
-3876
-5092
-5852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT - CAST( 60 AS SIGNED ) FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-2920
SELECT - CAST ( 60 AS INTEGER ) FROM tab1
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col1 * - 22 FROM tab1
----
1034
110
308

onlyif mysql # aggregate syntax: 
query II rowsort label-2922
SELECT COUNT( * ) AS col0, + 98 AS col1 FROM tab2
----
3
98

skipif mysql # not compatible
query II rowsort label-2922
SELECT COUNT ( * ) AS col0, + 98 AS col1 FROM tab2
----
3
98

query I rowsort
SELECT + + col2 AS col0 FROM tab1 WHERE NOT - col1 * + 38 >= col1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( 83 ) > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT MIN( - col2 ) AS col1 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT MIN ( - col2 ) AS col1 FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT col0 FROM tab2 WHERE ( 15 * 44 + - col2 * ( ( col2 ) ) ) > ( + CAST( col0 AS SIGNED ) / + col0 )
----
46

skipif mysql # not compatible
query I rowsort label-2927
SELECT col0 FROM tab2 WHERE ( 15 * 44 + - col2 * ( ( col2 ) ) ) > ( + CAST ( col0 AS INTEGER ) / + col0 )
----
46

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - 3 - col1 AS col1 FROM tab2
----
-54
-70
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT - 59 * + MAX( 3 ) AS col2 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-2930
SELECT - 59 * + MAX ( 3 ) AS col2 FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT SUM( - col2 ) * - ( COUNT( DISTINCT 80 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2931
SELECT SUM ( - col2 ) * - ( COUNT ( DISTINCT 80 ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT COUNT( * ) * 71 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-2932
SELECT COUNT ( * ) * 71 FROM tab1
----
213

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2933
SELECT - col2 * + CAST( NULL AS DECIMAL ) + 3 FROM tab2 WHERE NOT 15 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2933
SELECT - col2 * + CAST ( NULL AS REAL ) + 3 FROM tab2 WHERE NOT 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL + 75 * COUNT( * ) col2 FROM tab1
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2934
SELECT ALL + 75 * COUNT ( * ) col2 FROM tab1
----
225

query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab1 WHERE 71 BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 / 18 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT ALL - col0 + - CAST( + 86 AS SIGNED ) AS col1 FROM tab1
----
-137
-171
-177

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL - col0 + - CAST ( + 86 AS INTEGER ) AS col1 FROM tab1
----
-137
-171
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + col0 col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + MIN( 81 ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2939
SELECT + MIN ( 81 ) AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT - COUNT( ALL - 12 ) * 99 AS col2 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - COUNT ( ALL - 12 ) * 99 AS col2 FROM tab0
----
-297

query I rowsort
SELECT ALL 26 FROM tab2 WHERE NOT NULL NOT IN ( 11 )
----

query I rowsort
SELECT ALL - col0 + col2 * col1 AS col2 FROM tab2 WHERE NOT + col2 * + 57 BETWEEN 67 AND ( col0 )
----
1127
3016
3811

query I rowsort
SELECT DISTINCT - col0 * 0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL + MAX( - col1 ) * - COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + MAX ( - col1 ) * - COUNT ( * ) AS col1 FROM tab1
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + 66 + col0 NOT IN ( 62 )
----

query I rowsort
SELECT ALL + col2 * + 30 FROM tab1
----
1770
2040
2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT - col2 FROM tab2 WHERE + CAST( col1 AS SIGNED ) <> col0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2948
SELECT - col2 FROM tab2 WHERE + CAST ( col1 AS INTEGER ) <> col0
----
-23
-40
-58

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL < + 39 * 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT col2 + + CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT col2 + + CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT CAST( + 75 AS SIGNED ) * 17 FROM tab0
----
1275
1275
1275

skipif mysql # not compatible
query I rowsort label-2951
SELECT CAST ( + 75 AS INTEGER ) * 17 FROM tab0
----
1275
1275
1275

query I rowsort
SELECT col0 * + 82 AS col0 FROM tab1
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT 78 + COUNT( * ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT 78 + COUNT ( * ) AS col2 FROM tab2
----
81

query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) AS col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT col2 DIV 52 FROM tab0 WHERE col2 * + col1 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2955
SELECT col2 / 52 FROM tab0 WHERE col2 * + col1 IS NOT NULL
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + col2 + 33 * col2 FROM tab0 AS cor0
----
3366
5358
540

query I rowsort
SELECT ( + 76 ) + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
127
143
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT + 80 + COUNT( - 17 ) col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT + 80 + COUNT ( - 17 ) col2 FROM tab1 AS cor0
----
83

query I rowsort
SELECT ALL col1 * col0 - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT ALL + 56 - + col1 FROM tab1 AS cor0
----
42
51
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT COUNT( * ) DIV ( - 96 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2962
SELECT COUNT ( * ) / ( - 96 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT 30 AS col1 FROM tab2 WHERE - col2 NOT BETWEEN 1 + 6 AND NULL
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT ALL col0 DIV col2 + + col1 * + col0 FROM tab0
----
1215
1835
97

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL col0 / col2 + + col1 * + col0 FROM tab0
----
1215
1835
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - AVG ( 27 ) FROM tab1 AS cor0 WHERE col1 + + col1 NOT BETWEEN ( NULL ) AND 26 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - 72 * COUNT( * ) FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2967
SELECT - 72 * COUNT ( * ) FROM tab0 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + - ( - MIN( ALL - col2 ) ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2968
SELECT + - ( - MIN ( ALL - col2 ) ) FROM tab2 cor0
----
-58

query I rowsort
SELECT DISTINCT - 91 * + 64 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT MAX( 29 ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2970
SELECT MAX ( 29 ) AS col0 FROM tab0 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * col0 ) BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT ALL col2 * + 38 AS col2 FROM tab1 AS cor0
----
2242
2584
3648

query I rowsort
SELECT + 97 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + 69 * 22
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - 49 / - 57 < ( 30 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 67 AS col0 FROM tab0
----
1407
5427
67

query I rowsort
SELECT ALL - 33 FROM tab2 WHERE NOT NULL = + 98
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 87 * 31 + col0 ) IN ( - col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT CAST( col2 AS SIGNED ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2980
SELECT CAST ( col2 AS INTEGER ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT ( 8 ) * 81 FROM tab1
----
648
648
648

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - + col0 IS NOT NULL
----

query I rowsort
SELECT 86 * - - ( - 98 ) FROM tab2
----
-8428
-8428
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col0 - 96 >= ( - col2 ) AND + col0 IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-2984
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col0 - 96 >= ( - col2 ) AND + col0 IS NOT NULL
----
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 93 / 45 - 26 NOT IN ( - col2 * - col1 )
----

query I rowsort
SELECT + col1 * + 61 AS col0 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT - - 54 DIV + + MIN( DISTINCT col2 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2987
SELECT - - 54 / + + MIN ( DISTINCT col2 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + 57 * + col1 FROM tab2
----
175560
221502
66861

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2990
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + 99 * + 78 * - col1 + - col0 AS col0 FROM tab2
----
-393868
-517449
-594658

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * - col0 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT + - SUM( ALL + - ( col2 ) ) * + COUNT( * ) + 33 FROM tab1 AS cor0
----
702

skipif mysql # not compatible
query I rowsort label-2993
SELECT + - SUM ( ALL + - ( col2 ) ) * + COUNT ( * ) + 33 FROM tab1 AS cor0
----
702

query I rowsort
SELECT ALL ( - 27 ) + + + col2 AS col2 FROM tab0 cor0
----
-17
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL 78 * + ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL 78 * + ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-234

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN - 70 + 52 AND ( col1 * - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 48 + - col1 + - + 72 AS col2 FROM tab2 AS cor0
----
-101
-75
-91

query I rowsort
SELECT - 79 FROM tab2 AS cor0 WHERE + col0 > - - col0
----

query I rowsort
SELECT 49 + col0 AS col1 FROM tab1 cor0 WHERE - col2 >= + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( + + col1 + + col2 ) BETWEEN ( 26 ) AND ( NULL )
----

query II rowsort
SELECT ( - - 13 ) AS col1, col1 FROM tab2
----
13
51
13
67
13
77

query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT - ( col0 ) + - col1 + - col2 AS col2 FROM tab0
----
-118
-143
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE - + col2 + ( col0 ) + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3004
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE - + col2 + ( col0 ) + col0 IS NOT NULL
----
-3

query I rowsort
SELECT 10 * + col1 + + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col1 + - - col2 AS col2, col1 AS col1 FROM tab2 AS cor0
----
117
77
125
67
74
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 / 57 / + 97 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + col2 + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT DISTINCT + col1 - - + col1 + - 64 DIV 63 AS col0 FROM tab2 AS cor0
----
101
133
153

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT + col1 - - + col1 + - 64 / 63 AS col0 FROM tab2 AS cor0
----
101
133
153

query I rowsort
SELECT col2 + - - 8 + col1 AS col2 FROM tab1
----
118
123
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 AS col2, + 89 col2 FROM tab2
----
79
89
79
89
79
89

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 82 <> - col1 * + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL - SUM( ALL - 83 ) col0 FROM tab0 cor0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3015
SELECT ALL - SUM ( ALL - 83 ) col0 FROM tab0 cor0
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 69 col0 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT - SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - SUM ( col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT - + col1 * + + col0 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT + + col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 45 + - col1 * - col2
----

query I rowsort
SELECT DISTINCT + col1 * + 67 AS col1 FROM tab2 cor0
----
3417
4489
5159

query I rowsort
SELECT ALL - 18 * - 92 FROM tab0 AS cor0
----
1656
1656
1656

onlyif mysql # aggregate syntax: 
query II rowsort label-3023
SELECT DISTINCT - 47 AS col2, + SUM( ALL col2 ) FROM tab2
----
-47
121

skipif mysql # not compatible
query II rowsort label-3023
SELECT DISTINCT - 47 AS col2, + SUM ( ALL col2 ) FROM tab2
----
-47
121

query I rowsort
SELECT DISTINCT + col0 * + col2 * + + col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL SUM( ALL + - col1 ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3025
SELECT ALL SUM ( ALL + - col1 ) col1 FROM tab2
----
-195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 <> - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3027
SELECT DISTINCT 22 AS col0, - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-3027
SELECT DISTINCT 22 AS col0, - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
22
NULL

query I rowsort
SELECT 44 * col2 * - col1 + - 45 AS col2 FROM tab0 AS cor0
----
-167553
-4401
-9285

query II rowsort
SELECT ALL - + col2 AS col1, col0 + + col0 AS col0 FROM tab1 AS cor0
----
-59
170
-68
182
-96
102

query I rowsort
SELECT DISTINCT col0 * 59 + - col0 AS col2 FROM tab1 AS cor0
----
2958
4930
5278

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3031
SELECT - - CAST( NULL AS DECIMAL ) + ( + col2 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT - - CAST ( NULL AS REAL ) + ( + col2 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT MAX( - + col1 ) + 7 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3032
SELECT MAX ( - + col1 ) + 7 FROM tab1
----
2

query I rowsort
SELECT + col0 * - col1 + - col0 FROM tab1
----
-4368
-510
-765

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE + col1 NOT BETWEEN + col2 AND ( + col1 )
----
-14
-47
-5

query II rowsort
SELECT ALL - 22 + + col2 AS col2, ( 82 ) AS col2 FROM tab2 cor0
----
1
82
18
82
36
82

query I rowsort
SELECT - + col0 * - - 7 + + 97 FROM tab2 cor0 WHERE + col0 * + col1 + col2 <= col1
----

query I rowsort
SELECT - 93 AS col1 FROM tab2 AS cor0 WHERE ( + 60 * - col2 ) NOT BETWEEN NULL AND col1 * + col1
----

query I rowsort
SELECT ALL 42 * - 33 + + col2 FROM tab0 AS cor0
----
-1287
-1339
-1376

query II rowsort
SELECT 2 * - col1 AS col1, 69 AS col1 FROM tab0 cor0
----
-162
69
-2
69
-42
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3040
SELECT DISTINCT - MIN( DISTINCT - - col0 ) / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT - MIN ( DISTINCT - - col0 ) / - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - col1 - col2 AS col1 FROM tab0 AS cor0
----
-100
-451
-6608

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col2 / 41 AND ( NULL )
----

query II rowsort
SELECT - col0 - col2 + - col0, 44 AS col1 FROM tab1 AS cor0
----
-198
44
-229
44
-250
44

query II rowsort
SELECT ALL - col0 AS col0, + col0 * 71 FROM tab1
----
-51
3621
-85
6035
-91
6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT ALL - col2 + CAST( - - col2 AS SIGNED ) col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3045
SELECT ALL - col2 + CAST ( - - col2 AS INTEGER ) col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 68 AS col1 FROM tab0 AS cor0
----
-1
68
-21
68
-81
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT DISTINCT - MAX( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT - MAX ( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= ( - ( + col0 ) + - 1 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 52 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 14 * + 78 col1, 81 FROM tab2 AS cor0
----
-1092
81
-1092
81
-1092
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 88 ) = + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col2
----

query I rowsort
SELECT + - 90 * col2 + - - col1 FROM tab0 AS cor0
----
-4149
-879
-8909

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL - 40 * COUNT( + - 22 ) AS col1 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - 40 * COUNT ( + - 22 ) AS col1 FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT COUNT( * ) * - + SUM( + 2 ) FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT COUNT ( * ) * - + SUM ( + 2 ) FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0, ( + - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT + 23 * MAX( ALL col1 ) AS col0 FROM tab0
----
1863

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + 23 * MAX ( ALL col1 ) AS col0 FROM tab0
----
1863

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3059
SELECT - col0 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3059
SELECT - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= + col2 / + col1 + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT ALL + 68, col0 AS col2 FROM tab1 AS cor0
----
68
51
68
85
68
91

query II rowsort
SELECT ALL 0, - col2 * - col0 + - - col2 AS col1 FROM tab1
----
0
4992
0
5074
0
6256

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3064
SELECT + col0 + - - col0 / + CAST( + col2 AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + ( - col0 ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + col0 + - - col0 / + CAST ( + col2 AS INTEGER ) * - CAST ( NULL AS REAL ) + + ( - col0 ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL - CAST( col2 AS SIGNED ) + - col0 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL - CAST ( col2 AS INTEGER ) + - col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL - COUNT( * ) * - + 98 AS col1 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - COUNT ( * ) * - + 98 AS col1 FROM tab0 AS cor0
----
294

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + MIN( - - col1 ) + + + 67 + + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3068
SELECT + MIN ( - - col1 ) + + + 67 + + COUNT ( * ) FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3069
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > col1 * - + 73 / - + CAST( NULL AS DECIMAL ) + + ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-3069
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > col1 * - + 73 / - + CAST ( NULL AS REAL ) + + ( + col1 )
----

query II rowsort
SELECT DISTINCT + col1 AS col1, 19 AS col0 FROM tab0 AS cor0
----
1
19
21
19
81
19

query III rowsort
SELECT * FROM tab0 WHERE - + 61 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3072
SELECT 10 DIV - - col0, + col2 * col2 DIV col2 + + - col1 * - 35 AS col0 FROM tab1
----
0
1713
0
234
0
586

skipif mysql # not compatible
query II rowsort label-3072
SELECT 10 / - - col0, + col2 * col2 / col2 + + - col1 * - 35 AS col0 FROM tab1
----
0
1713
0
234
0
586

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT COUNT( * ) * 93 * + COUNT( * ) col1 FROM tab2
----
837

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3073
SELECT COUNT ( * ) * 93 * + COUNT ( * ) col1 FROM tab2
----
837

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT DISTINCT + col2 DIV - - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + col2 / - - col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - col0 + + + col0 AS col2, + col1 AS col0 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT col1 DIV - + col2 * - 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT col1 / - + col2 * - 93 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL MAX( - 38 ) + + 50 AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL MAX ( - 38 ) + + 50 AS col1 FROM tab2
----
12

query I rowsort
SELECT + col1 - + ( + 79 ) AS col0 FROM tab2
----
-12
-2
-28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col2 < + + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT 68 * + COUNT( DISTINCT 78 ) + - 64 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----
-64

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT 68 * + COUNT ( DISTINCT 78 ) + - 64 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----
-64

query I rowsort
SELECT - - ( + 0 ) * + col0 AS col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT ALL 19 AS col2, 68 AS col1 FROM tab2
----
19
68
19
68
19
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT - 82 DIV ( - ( - col0 ) ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 82 / ( - ( - col0 ) ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col2 * + 93 FROM tab0
----
4371
9207
930

query I rowsort
SELECT - col1 * - 11 * + col2 AS col0 FROM tab0 AS cor0
----
1089
2310
41877

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT - SUM( DISTINCT - 20 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3086
SELECT - SUM ( DISTINCT - 20 ) FROM tab2 AS cor0
----
20

query II rowsort
SELECT DISTINCT - + col0 AS col1, - 53 AS col0 FROM tab2 AS cor0
----
-46
-53
-64
-53
-75
-53

query I rowsort
SELECT + 91 * col2 * + col0 FROM tab0 AS cor0
----
64155
79170
873873

query II rowsort
SELECT - + col2 AS col1, - 5 FROM tab0 AS cor0
----
-10
-5
-47
-5
-99
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3090
SELECT + - col0 AS col1, + ( 79 ) * - CAST( 78 AS SIGNED ) * col1 - + - col0 FROM tab0 AS cor0
----
-15
-499107
-87
-129315
-97
-6065

skipif mysql # not compatible
query II rowsort label-3090
SELECT + - col0 AS col1, + ( 79 ) * - CAST ( 78 AS INTEGER ) * col1 - + - col0 FROM tab0 AS cor0
----
-15
-499107
-87
-129315
-97
-6065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3091
SELECT - - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3091
SELECT - - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) + - col0 AS col2 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT ALL 70 + + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL 70 + + COUNT ( * ) FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + MAX( - 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT + MAX ( - 0 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - col2 + + + col2 FROM tab2 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT - 62 + - + col1, col2 AS col0 FROM tab2
----
-113
23
-129
58
-139
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * - + 67 col0 FROM tab1
----
-3752
-3752
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL COUNT( * ) * - 70 AS col2 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL COUNT ( * ) * - 70 AS col2 FROM tab0
----
-210

query I rowsort
SELECT DISTINCT col1 * + col2 + - - col0 * ( - 56 ) FROM tab1
----
-1512
-1900
-4465

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT DISTINCT + - 78 + - COUNT( * ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + - 78 + - COUNT ( * ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col0 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 40 + - col1 FROM tab2 AS cor0
----
-11
-27
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 82 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 82 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 10 ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
10
10
10

query I rowsort
SELECT + 7 * + 64 * + 49 AS col1 FROM tab2 WHERE - 43 >= + - col2
----
21952

query I rowsort
SELECT ALL - + 17 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3107
SELECT * FROM tab2 WHERE ( ( NULL ) > - CAST( + - col0 AS SIGNED ) * col0 - - - col2 )
----

skipif mysql # not compatible
query III rowsort label-3107
SELECT * FROM tab2 WHERE ( ( NULL ) > - CAST ( + - col0 AS INTEGER ) * col0 - - - col2 )
----

query II rowsort
SELECT ALL - 83 * - col2 + + col2 AS col2, + col1 FROM tab2
----
1932
51
3360
77
4872
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3109
SELECT DISTINCT CAST( NULL AS DECIMAL ) - COUNT( - col0 ) * + 29 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT CAST ( NULL AS REAL ) - COUNT ( - col0 ) * + 29 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3111
SELECT ALL + col2 col2, - CAST( 96 AS SIGNED ) FROM tab1 AS cor0 WHERE - CAST( - col1 AS SIGNED ) + - 9 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3111
SELECT ALL + col2 col2, - CAST ( 96 AS INTEGER ) FROM tab1 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) + - 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT + 15 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT + 15 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT - - col1 DIV + col0 - + + ( - - 17 ) AS col2 FROM tab2 AS cor0
----
-16
-16
-17

skipif mysql # not compatible
query I rowsort label-3113
SELECT - - col1 / + col0 - + + ( - - 17 ) AS col2 FROM tab2 AS cor0
----
-16
-16
-17

query I rowsort
SELECT col1 + - - 90 FROM tab0 cor0
----
111
171
91

query I rowsort
SELECT + 72 FROM tab0 WHERE NOT NULL BETWEEN - col1 AND - col0
----

query II rowsort
SELECT - - col0 AS col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT + + 97 AS col1 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT 84 * - + 1 - + col1 FROM tab1 cor0
----
-131
-89
-98

query I rowsort
SELECT + 4 FROM tab1 AS cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT MAX( DISTINCT - - col1 ) FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT MAX ( DISTINCT - - col1 ) FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
81

query I rowsort
SELECT col1 * col1 - + col1 FROM tab1 AS cor0
----
182
20
2162

query I rowsort
SELECT DISTINCT + + ( + col2 ) * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT ALL - CAST( ( 45 ) AS SIGNED ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - CAST ( ( 45 ) AS INTEGER ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-45
-45
-45

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
14
47
5

query II rowsort
SELECT + col0 + + col0 + + - col1 AS col1, - 7 AS col1 FROM tab2
----
41
-7
51
-7
83
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT DISTINCT 69 * - + CAST( - - col0 AS SIGNED ) + - ( 78 ) FROM tab1
----
-3597
-5943
-6357

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT 69 * - + CAST ( - - col0 AS INTEGER ) + - ( 78 ) FROM tab1
----
-3597
-5943
-6357

query I rowsort
SELECT - 19 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - + col1 * col0 AS col1 FROM tab0
----
-1168
-1817
2

query II rowsort
SELECT DISTINCT col2, - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL COUNT( * ) * + - 4 * 15 + - SUM( ALL - + col2 ) AS col1 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL COUNT ( * ) * + - 4 * 15 + - SUM ( ALL - + col2 ) AS col1 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + MIN( col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3131
SELECT + MIN ( col2 ) col1 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 * - - 1 + + 63 * col2 col0 FROM tab2
----
1415
2486
3620

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT MAX( DISTINCT - - col1 ) FROM tab2 cor0 WHERE NOT col0 * + + 42 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT MAX ( DISTINCT - - col1 ) FROM tab2 cor0 WHERE NOT col0 * + + 42 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 50 * ( + + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 23 + + - col1 AS col1 FROM tab2
----
1267
478
843

query II rowsort
SELECT - - col2 * + 91 * + + 55 + - - col2 + + col1 * + col1, + col2 FROM tab2 WHERE - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT DISTINCT col0 DIV - - col0 - + col1 AS col0 FROM tab1 cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT col0 / - - col0 - + col1 AS col0 FROM tab1 cor0
----
-13
-4
-46

query I rowsort
SELECT ALL col0 - 34 * + col0 FROM tab1 cor0
----
-1683
-2805
-3003

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + - col1, col2 * + col0 )
----
1
21
81

query I rowsort
SELECT + col0 + + col1 * col2 FROM tab2 AS cor0 WHERE col1 + + 22 IS NOT NULL
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ALL 75 * CAST( NULL AS SIGNED ) - AVG ( ( - + col0 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL 75 * CAST ( NULL AS INTEGER ) - AVG ( ( - + col0 ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * + - col2 col2 FROM tab2
----
1610
2800
4060

query I rowsort
SELECT ALL col1 * + + 95 AS col2 FROM tab1
----
1330
4465
475

query I rowsort
SELECT DISTINCT col2 * + 29 AS col1 FROM tab0
----
1363
2871
290

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT ALL col2 DIV + + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL col2 / + + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 24 * - + 86 * + col1 FROM tab0
----
-167184
-2064
-43344

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab2 AS cor0 WHERE + col0 BETWEEN ( + 28 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 46 - 5 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - ( col2 ) AND + col1
----

query I rowsort
SELECT + + 90 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - 45 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT DISTINCT col1 DIV - + col0 AS col1 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT col1 / - + col0 AS col1 FROM tab0
----
-5
0

query I rowsort
SELECT - 37 FROM tab2 WHERE NOT - 22 + + col2 IS NULL
----
-37
-37
-37

query I rowsort
SELECT ALL - - 77 * - col1 * + - col0 + + col1 - 22 FROM tab2 AS cor0
----
180671
379511
386970

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT - col1 * 73 - col1 - - + col2 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-3751
23
-4900
58
-5658
40

query I rowsort
SELECT ALL + col1 * + 1 * + 68 FROM tab2 AS cor0
----
3468
4556
5236

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3158
SELECT 10 DIV + + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3158
SELECT 10 / + + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL 49 FROM tab2 cor0 WHERE NOT NULL >= - col0
----

query II rowsort
SELECT + + col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT - 11 * - col0 + - + col2 AS col1 FROM tab2 WHERE + 23 IS NULL
----

query I rowsort
SELECT col1 * + ( + 24 ) AS col1 FROM tab1 WHERE ( + + col1 + + + ( col1 ) ) IS NOT NULL
----
1128
120
336

query I rowsort
SELECT 95 + col0 AS col2 FROM tab2 AS cor0
----
141
159
170

query I rowsort
SELECT ALL - col1 * + col0 + + col0 FROM tab1 AS cor0
----
-340
-4186
-663

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - + 93 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - - CAST( NULL AS SIGNED ) * + col2 - + - ( 40 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - - CAST ( NULL AS INTEGER ) * + col2 - + - ( 40 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 98 AS col1 FROM tab2 AS cor0
----
-23
98
-40
98
-58
98

query II rowsort
SELECT col0, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT + col0 * - - ( - col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT 72 AS col2 FROM tab0 WHERE NOT ( NOT ( col0 ) IS NOT NULL )
----
72
72
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT 43 * - 93 col1, MIN( ALL col2 ) * + - 95 + + + COUNT( * ) + - 73 AS col0 FROM tab0
----
-3999
-1020

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3171
SELECT 43 * - 93 col1, MIN ( ALL col2 ) * + - 95 + + + COUNT ( * ) + - 73 AS col0 FROM tab0
----
-3999
-1020

query I rowsort
SELECT DISTINCT - + ( + 17 ) FROM tab1 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + - 82 * + + 19 * + 18 col1 FROM tab1 AS cor0
----
-18828
-23420
-24563

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT + - ( - col2 ) DIV - 1 AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3174
SELECT + - ( - col2 ) / - 1 AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - col0 * + - col2 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * - - col2 col0 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3177
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
-9

query II rowsort
SELECT + - ( - - col1 ) - 31 AS col1, - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-112
-47
-32
-99
-52
-10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col1 - + 51
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT + col0 * 91 DIV col1 * - - col0 FROM tab2 AS cor0
----
3772
4800
7575

skipif mysql # not compatible
query I rowsort label-3180
SELECT + col0 * 91 / col1 * - - col0 FROM tab2 AS cor0
----
3772
4800
7575

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( NOT col0 = - + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT + CAST( col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-3182
SELECT + CAST ( col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT MAX( 4 ) + 29 AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3183
SELECT MAX ( 4 ) + 29 AS col2 FROM tab1
----
33

query II rowsort
SELECT + 7, + col2 AS col2 FROM tab1
----
7
59
7
68
7
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3185
SELECT ALL + 44 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + 44 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 87 + col0 - - col1 FROM tab2
----
184
228
229

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3187
SELECT - 80 AS col1, CAST( NULL AS DECIMAL ) FROM tab0
----
-80
NULL
-80
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-3187
SELECT - 80 AS col1, CAST ( NULL AS REAL ) FROM tab0
----
-80
NULL
-80
NULL
-80
NULL

query I rowsort
SELECT DISTINCT + 56 + - + 41 - 42 * - - col0 AS col0 FROM tab1 AS cor0
----
-2127
-3555
-3807

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3189
SELECT ALL COUNT( - + col2 ) DIV - ( - + MAX( ALL + - col2 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL COUNT ( - + col2 ) / - ( - + MAX ( ALL + - col2 ) ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 45 + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( ( + 61 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + col1 + - 16 FROM tab1
----
-11
-2
31

query I rowsort
SELECT + 99 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + ( - + COUNT( - 97 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + ( - + COUNT ( - 97 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 43 AS col2 FROM tab2 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL + 64 * - MAX( ALL 84 ) + 52 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5321

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + 64 * - MAX ( ALL 84 ) + 52 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5321

query II rowsort
SELECT + - ( - - 91 ) AS col0, 32 AS col0 FROM tab0 cor0
----
-91
32
-91
32
-91
32

query II rowsort
SELECT DISTINCT + - col2, col0 * col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3201
SELECT + CAST( NULL AS SIGNED ), ( + col1 ) AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3201
SELECT + CAST ( NULL AS INTEGER ), ( + col1 ) AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT COUNT( * ) * + 64 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-3202
SELECT COUNT ( * ) * + 64 FROM tab2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT 64 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3203
SELECT 64 / + col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3204
SELECT DISTINCT col1 AS col2, - col2 * - col0 + col2 + + CAST( - col1 AS SIGNED ) * - col0 * - col1 AS col1 FROM tab1
----
14
-5004
47
-194763
5
2949

skipif mysql # not compatible
query II rowsort label-3204
SELECT DISTINCT col1 AS col2, - col2 * - col0 + col2 + + CAST ( - col1 AS INTEGER ) * - col0 * - col1 AS col1 FROM tab1
----
14
-5004
47
-194763
5
2949

query II rowsort
SELECT ALL col0, 69 AS col0 FROM tab1
----
51
69
85
69
91
69

query II rowsort
SELECT ALL - - 60, - col0 AS col1 FROM tab2 AS cor0
----
60
-46
60
-64
60
-75

query II rowsort
SELECT DISTINCT - - col2, - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT 9 + + 83 AS col2 FROM tab2
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN + + col0 AND + col2 * + 76 * - 88
----

query I rowsort
SELECT ALL - col0 * - 4 FROM tab2 WHERE - 28 * col0 * col2 * + col2 NOT BETWEEN - col2 * - col0 AND + - 46
----
184
256
300

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT - - col0 * + col0 + - 48 FROM tab2 WHERE - + 9 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3212
SELECT - - col0 * + col0 + - 48 FROM tab2 WHERE - + 9 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - + COUNT( * ) * - + 41 * - 11 AS col2 FROM tab2 AS cor0
----
-1353

skipif mysql # not compatible
query I rowsort label-3213
SELECT - + COUNT ( * ) * - + 41 * - 11 AS col2 FROM tab2 AS cor0
----
-1353

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL 36 + + COUNT( * ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL 36 + + COUNT ( * ) FROM tab0 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT ALL + col0 DIV - 24 + col2 AS col1 FROM tab2 cor0
----
22
38
55

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL + col0 / - 24 + col2 AS col1 FROM tab2 cor0
----
22
38
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT - COUNT( - ( 30 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3216
SELECT - COUNT ( - ( 30 ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col0 * - col0 AS col0, + col1 FROM tab0 cor0
----
-225
81
-7569
21
-9409
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT + MAX( ALL col1 ) + + 13 AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + MAX ( ALL col1 ) + + 13 AS col2 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT SUM( DISTINCT + col1 ) * - 25 + + COUNT( DISTINCT + col0 ) + + MIN( ALL - - 26 ) - - 79 col0 FROM tab2
----
-4767

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3219
SELECT SUM ( DISTINCT + col1 ) * - 25 + + COUNT ( DISTINCT + col0 ) + + MIN ( ALL - - 26 ) - - 79 col0 FROM tab2
----
-4767

query I rowsort
SELECT ALL col2 + col1 + + 62 * + col2 + col2 FROM tab1
----
3781
4399
6158

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL - SUM( - + col0 ) + - COUNT( * ) AS col1 FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - SUM ( - + col0 ) + - COUNT ( * ) AS col1 FROM tab0
----
196

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) + col0 AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT col2 * + 38 + - + col2 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 cor0 WHERE col2 * + - 89 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + 61 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3225
SELECT + 61 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
183

query I rowsort
SELECT DISTINCT - + col1 - col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + COUNT( * ) * + - 55 + SUM( - - col1 ) AS col2 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3227
SELECT + COUNT ( * ) * + - 55 + SUM ( - - col1 ) AS col2 FROM tab1 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - COUNT( * ) * - 22 AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3228
SELECT - COUNT ( * ) * - 22 AS col2 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3229
SELECT ALL 66 AS col0, COUNT( + + 74 ) FROM tab2
----
66
3

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL 66 AS col0, COUNT ( + + 74 ) FROM tab2
----
66
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3230
SELECT - 91, + ( - MAX( DISTINCT + 40 ) ) + - COUNT( ALL CAST( + - col0 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
-91
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3230
SELECT - 91, + ( - MAX ( DISTINCT + 40 ) ) + - COUNT ( ALL CAST ( + - col0 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-91
-43

query I rowsort
SELECT 10 * - ( col0 ) FROM tab0
----
-150
-870
-970

query I rowsort
SELECT col2 * - + col0 * + + col2 AS col1 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query II rowsort label-3233
SELECT ALL + col1 col1, + col2 + - 38 + - 18 DIV - + col2 * - - 28 AS col0 FROM tab1 WHERE NOT + col2 - - col0 IS NULL
----
14
58
47
30
5
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3233
SELECT ALL + col1 col1, + col2 + - 38 + - 18 / - + col2 * - - 28 AS col0 FROM tab1 WHERE NOT + col2 - - col0 IS NULL
----
14
58
47
30
5
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN + col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3234
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN + col1 AND ( NULL )
----
0

query I rowsort
SELECT 58 * - 51 FROM tab1
----
-2958
-2958
-2958

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT - col2 DIV - + 13 FROM tab1 AS cor0
----
4
5
7

skipif mysql # not compatible
query I rowsort label-3236
SELECT - col2 / - + 13 FROM tab1 AS cor0
----
4
5
7

query I rowsort
SELECT DISTINCT + + 39 FROM tab1 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col0 * + ( col1 ) <> - 37 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 43 col0 FROM tab0 WHERE - 54 * + col1 IS NOT NULL
----
43

query I rowsort
SELECT ( - 66 ) + col0 AS col1 FROM tab1 AS cor0
----
-15
19
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL + SUM( DISTINCT 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + SUM ( DISTINCT 74 ) FROM tab1 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT DISTINCT + - col2 + - - CAST( col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3243
SELECT DISTINCT + - col2 + - - CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3244
SELECT ALL - col0 + - 39 DIV col0, col0 FROM tab0 cor0
----
-17
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL - col0 + - 39 / col0, col0 FROM tab0 cor0
----
-17
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT DISTINCT + COUNT( * ) col0, ( COUNT( * ) ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3245
SELECT DISTINCT + COUNT ( * ) col0, ( COUNT ( * ) ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT ALL COUNT( * ) col1, SUM( DISTINCT - col0 ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3246
SELECT ALL COUNT ( * ) col1, SUM ( DISTINCT - col0 ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
681

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL + col1 + - 77 * 44 DIV ( + col2 ) FROM tab0
----
-317
-33
9

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL + col1 + - 77 * 44 / ( + col2 ) FROM tab0
----
-317
-33
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL 33 + - COUNT( * ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 33 + - COUNT ( * ) AS col2 FROM tab0
----
30

query I rowsort
SELECT ALL 66 * + - col2 FROM tab2
----
-1518
-2640
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3250
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) + + 79 FROM tab1
----
32
65
74

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) + + 79 FROM tab1
----
32
65
74

query I rowsort
SELECT - col2 - - 54 FROM tab0
----
-45
44
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT + + 49 + + COUNT( + + 98 ) AS col0 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT + + 49 + + COUNT ( + + 98 ) AS col0 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT 52 * 82 + ( + col1 ) - + + col1 FROM tab1 AS cor0
----
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3254
SELECT + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3255
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + - col0
----

skipif mysql # not compatible
query III rowsort label-3255
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + - col0
----

query I rowsort
SELECT ALL - - 75 AS col0 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + - COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + col0, - col0 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT + - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + col0, - col0 * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL SUM( - 35 ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL SUM ( - 35 ) FROM tab1 AS cor0
----
-105

query II rowsort
SELECT 45, col1 AS col2 FROM tab1
----
45
14
45
47
45
5

query I rowsort
SELECT DISTINCT + col0 * - - col0 + - + 26 FROM tab1
----
2575
7199
8255

query II rowsort
SELECT - 63, col2 FROM tab2 WHERE NOT col1 IS NULL
----
-63
23
-63
40
-63
58

query I rowsort
SELECT DISTINCT + 9 * - ( + col2 ) AS col2 FROM tab0 WHERE col0 <> + ( - 14 )
----
-423
-891
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * 51 + - col2 + - - col2 col0 FROM tab1 AS cor0
----
-918
-918
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT DISTINCT + AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - + COUNT( * ) + - - 14 + - + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3265
SELECT - + COUNT ( * ) + - - 14 + - + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
8

query I rowsort
SELECT 75 + col1 * + col0 FROM tab0 AS cor0
----
1290
172
1902

query I rowsort
SELECT DISTINCT 70 + - col2 FROM tab0
----
-29
23
60

query I rowsort
SELECT ALL 33 * 52 FROM tab0 WHERE - col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 53 AS col0 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - COUNT( * ) - + MIN( ALL - 51 ) AS col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3271
SELECT - COUNT ( * ) - + MIN ( ALL - 51 ) AS col2 FROM tab2 AS cor0
----
48

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 + + col1 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + + 92 col2, - col1 AS col2 FROM tab2 AS cor0
----
-2116
-51
-3680
-77
-5336
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT COUNT( * ) FROM tab0 WHERE + col2 BETWEEN NULL AND - + col0 * + + col2 - col0 * col1 * + + col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT COUNT ( * ) FROM tab0 WHERE + col2 BETWEEN NULL AND - + col0 * + + col2 - col0 * col1 * + + col2 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL < - ( - - col0 ) / col1
----
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL < - ( - - col0 ) / col1
----
0

query II rowsort
SELECT col1, - col1 + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3277
SELECT * FROM tab2 WHERE CAST( + 69 AS SIGNED ) * + 58 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3277
SELECT * FROM tab2 WHERE CAST ( + 69 AS INTEGER ) * + 58 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 - + - col0 + - 51 AS col2 FROM tab1
----
14
39
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3279
SELECT - CAST( - - ( - 77 ) AS SIGNED ), + COUNT( * ) AS col1 FROM tab0
----
77
3

skipif mysql # not compatible
query II rowsort label-3279
SELECT - CAST ( - - ( - 77 ) AS INTEGER ), + COUNT ( * ) AS col1 FROM tab0
----
77
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT 77 + + CAST( col0 AS SIGNED ) - - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
173
175
185

skipif mysql # not compatible
query I rowsort label-3280
SELECT 77 + + CAST ( col0 AS INTEGER ) - - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
173
175
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, 54 + - col1 col1 FROM tab0 AS cor0
----
-1
53
-21
33
-81
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT - CAST( NULL AS SIGNED ) * + - ( - + col0 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT - CAST ( NULL AS INTEGER ) * + - ( - + col0 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL + + col0 * + - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 - - col1 / + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3286
SELECT - - MAX( - col2 ) DIV + 82 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT - - MAX ( - col2 ) / + 82 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3287
SELECT - - col0 DIV + col2 col1, col1 col0 FROM tab1 cor0
----
0
14
1
47
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3287
SELECT - - col0 / + col2 col1, col1 col0 FROM tab1 cor0
----
0
14
1
47
1
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col2 + + col0 + 70 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT - 49 * - 65 FROM tab0
----
3185
3185
3185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * col2 col2 FROM tab0
----
-3149
-6633
-670

query II rowsort
SELECT + 2 AS col0, ( - 15 ) AS col2 FROM tab0
----
2
-15
2
-15
2
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3293
SELECT - CAST( NULL AS SIGNED ), - col2 - col1 * col0 AS col0 FROM tab2 AS cor0
----
NULL
-2369
NULL
-4968
NULL
-5083

skipif mysql # not compatible
query II rowsort label-3293
SELECT - CAST ( NULL AS INTEGER ), - col2 - col1 * col0 AS col0 FROM tab2 AS cor0
----
NULL
-2369
NULL
-4968
NULL
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - - COUNT( ALL + ( col1 ) ) * - 33 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3294
SELECT - - COUNT ( ALL + ( col1 ) ) * - 33 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ALL 21 + + - col2 AS col1 FROM tab0
----
-26
-78
11

query I rowsort
SELECT + col0 + + + 47 FROM tab1
----
132
138
98

query I rowsort
SELECT ALL - col0 + col1 + + col1 AS col0 FROM tab2
----
56
59
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 87 + + 95 col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL col0 + - 53 FROM tab1 AS cor0
----
-2
32
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + + col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <> 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 - - 74 AS col2 FROM tab2 AS cor0
----
125
141
151

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 >= col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT - MAX( ALL + ( - ( - + 86 ) ) ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3304
SELECT - MAX ( ALL + ( - ( - + 86 ) ) ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL col1 - - + 15 FROM tab0
----
16
36
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT + COUNT( * ) - COUNT( * ) AS col2, + 40 FROM tab0
----
0
40

skipif mysql # not compatible
query II rowsort label-3306
SELECT + COUNT ( * ) - COUNT ( * ) AS col2, + 40 FROM tab0
----
0
40

query I rowsort
SELECT 73 * + - col2 * - col1 * - col0 FROM tab2
----
-14389760
-21275850
-3938934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + col1 * + col0 / + + col1
----

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - COUNT( * ) * + + 44 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - COUNT ( * ) * + + 44 FROM tab1 AS cor0
----
-132

query I rowsort
SELECT ALL - 91 * + col0 AS col1 FROM tab0
----
-1365
-7917
-8827

query II rowsort
SELECT + col1 AS col0, col1 * + col1 FROM tab2
----
51
2601
67
4489
77
5929

query II rowsort
SELECT ALL + col0, + col2 * - 37 FROM tab2 AS cor0
----
46
-851
64
-1480
75
-2146

query I rowsort
SELECT ALL + col1 * - + 54 * col1 FROM tab1 AS cor0
----
-10584
-119286
-1350

query I rowsort
SELECT DISTINCT + - col1 * + 33 FROM tab1 AS cor0
----
-1551
-165
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT ALL - 20 DIV + + 34 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - 20 / + + 34 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 52 FROM tab2
----
2652
3484
4004

query II rowsort
SELECT + col0 * - col0, - col2 AS col0 FROM tab1
----
-2601
-96
-7225
-59
-8281
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3321
SELECT * FROM tab2 WHERE + CAST( 97 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3321
SELECT * FROM tab2 WHERE + CAST ( 97 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3322
SELECT DISTINCT + 21 DIV - COUNT( * ) + + + 86 + COUNT( * ) + - ( + COUNT( * ) ) + COUNT( + ( + - 93 ) ) * - 7 * + CAST( + ( 39 ) AS SIGNED ) AS col2 FROM tab0
----
-740

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT + 21 / - COUNT ( * ) + + + 86 + COUNT ( * ) + - ( + COUNT ( * ) ) + COUNT ( + ( + - 93 ) ) * - 7 * + CAST ( + ( 39 ) AS INTEGER ) AS col2 FROM tab0
----
-740

query I rowsort
SELECT DISTINCT col1 * - - col2 + - + col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT col2 + ( - 74 ) AS col0 FROM tab0
----
-27
-64
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3325
SELECT ALL + col2 AS col2 FROM tab1 WHERE + - CAST( NULL AS DECIMAL ) * + 64 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + col2 AS col2 FROM tab1 WHERE + - CAST ( NULL AS REAL ) * + 64 IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 + + col2 col1 FROM tab2 AS cor0 WHERE col1 <= 19 * + - col0 * - col2
----
0
17
35

onlyif mysql # DIV for integer division: 
query II rowsort label-3327
SELECT ALL - col0 DIV 3, + col2 FROM tab1 AS cor0
----
-17
96
-28
59
-30
68

skipif mysql # not compatible
query II rowsort label-3327
SELECT ALL - col0 / 3, + col2 FROM tab1 AS cor0
----
-17
96
-28
59
-30
68

query I rowsort
SELECT - + 36 + + - col1 AS col2 FROM tab2 AS cor0
----
-103
-113
-87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col0 >= NULL
----

query II rowsort
SELECT ALL + col2, + 17 + 87 + + 37 AS col1 FROM tab0
----
10
141
47
141
99
141

query I rowsort
SELECT - + 44 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT + 85 - + col2 + + col1 * + col0 AS col1 FROM tab0
----
1253
1902
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 36 + - col1 > NULL
----

query I rowsort
SELECT + + col0 - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 - + - col1 col0 FROM tab1 AS cor0
----
-3
39
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL + + CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL + + CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 31 FROM tab1 cor0
----
36
45
78

query I rowsort
SELECT - 75 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-75
-75
-75

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE col0 > + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + SUM( - - col2 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-3341
SELECT + SUM ( - - col2 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT + + COUNT( DISTINCT - col2 ) DIV SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT + + COUNT ( DISTINCT - col2 ) / SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + - ( + + col2 ) * - ( + - ( col1 ) ) + col2 + + 54 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + 82 FROM tab2
----
23
82
40
82
58
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT col0 DIV + 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT col0 / + 78 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT - COUNT( DISTINCT 95 ) * - COUNT( ALL ( - col2 ) ) / - ( - 45 ) + CAST( NULL AS SIGNED ) * + + MIN( - 9 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT - COUNT ( DISTINCT 95 ) * - COUNT ( ALL ( - col2 ) ) / - ( - 45 ) + CAST ( NULL AS INTEGER ) * + + MIN ( - 9 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 18 FROM tab1 AS cor0
----
14
-18
47
-18
5
-18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL <> + + 15 / + 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3349
SELECT DISTINCT - col0 * - CAST( + 67 AS SIGNED ), + col0 col2 FROM tab2
----
3082
46
4288
64
5025
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3349
SELECT DISTINCT - col0 * - CAST ( + 67 AS INTEGER ), + col0 col2 FROM tab2
----
3082
46
4288
64
5025
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - SUM( ALL + + 11 ) col0 FROM tab2
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT - SUM ( ALL + + 11 ) col0 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT DISTINCT - 11 * + + COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT - 11 * + + COUNT ( * ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT - col0 * + 31 - + - col1 AS col1 FROM tab1 AS cor0
----
-1567
-2630
-2774

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND 35
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL MAX( ALL - col0 ) * + + 47 * MIN( + - CAST( NULL AS SIGNED ) ) + + 69 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL MAX ( ALL - col0 ) * + + 47 * MIN ( + - CAST ( NULL AS INTEGER ) ) + + 69 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT col0 + - 79 + - CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-124
-53
-56

skipif mysql # not compatible
query I rowsort label-3355
SELECT col0 + - 79 + - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-124
-53
-56

query I rowsort
SELECT ALL 74 + + - 7 FROM tab2
----
67
67
67

query II rowsort
SELECT - col2 AS col1, - col2 AS col0 FROM tab2
----
-23
-23
-40
-40
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 19 + + - col2 * + col2, col1 col1 FROM tab0
----
-119
21
-2228
81
-9820
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col0 FROM tab1 WHERE + 24 IN ( + col1, 31, col2, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 WHERE + 24 IN ( + col1, 31, col2, - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT col1 * + + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3360
SELECT col1 * + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col0, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3362
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= col2 * + CAST( - - col2 AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= col2 * + CAST ( - - col2 AS INTEGER ) + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + + 63 * - 49 * - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 77 + col2 * - col2 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1741
-3516
-652

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3365
SELECT DISTINCT * FROM tab1 WHERE 41 * - CAST( NULL AS SIGNED ) <> 65 + + 78
----

skipif mysql # not compatible
query III rowsort label-3365
SELECT DISTINCT * FROM tab1 WHERE 41 * - CAST ( NULL AS INTEGER ) <> 65 + + 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT ALL CAST( + col0 AS SIGNED ) + - 8 col1 FROM tab0 WHERE - col1 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3366
SELECT ALL CAST ( + col0 AS INTEGER ) + - 8 col1 FROM tab0 WHERE - col1 <> NULL
----

query I rowsort
SELECT 53 * - col0 AS col2 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT 60 * COUNT( * ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-3368
SELECT 60 * COUNT ( * ) FROM tab2
----
180

query I rowsort
SELECT + 63 * - col1 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT col1 * 26 AS col0 FROM tab0
----
2106
26
546

query I rowsort
SELECT 71 * - 0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3372
SELECT DISTINCT 42 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT 42 * + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT DISTINCT col1 * - col2 + col1 FROM tab2 WHERE NOT ( 16 + + col1 ) >= ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT col1 * - col2 + col1 FROM tab2 WHERE NOT ( 16 + + col1 ) >= ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE col2 <= NULL
----
0

query I rowsort
SELECT ALL col2 + + 63 FROM tab0 WHERE NOT col0 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT ALL - col1 DIV ( - col0 ) col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3376
SELECT ALL - col1 / ( - col0 ) col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3377
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col2 NOT BETWEEN CAST( 14 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3377
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col2 NOT BETWEEN CAST ( 14 AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
1

query I rowsort
SELECT + 51 AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL COUNT( + col1 ) + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL COUNT ( + col1 ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
12

query I rowsort
SELECT DISTINCT 46 * + 95 + 6 * + 29 AS col2 FROM tab1
----
4544

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + col2 <= col2 + 93
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3383
SELECT DISTINCT * FROM tab2 WHERE col2 - + CAST( - 89 + - col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3383
SELECT DISTINCT * FROM tab2 WHERE col2 - + CAST ( - 89 + - col0 AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL + 42 + - col0 AS col2 FROM tab1
----
-43
-49
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT MAX( - 70 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-3385
SELECT MAX ( - 70 ) FROM tab2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3386
SELECT DISTINCT 14 DIV - col2 - col1 AS col0 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT 14 / - col2 - col1 AS col0 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT ALL + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 WHERE - 73 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 WHERE - 73 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3388
SELECT DISTINCT * FROM tab1 WHERE ( 28 * - 80 ) NOT BETWEEN ( + col2 + CAST( + 4 AS SIGNED ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3388
SELECT DISTINCT * FROM tab1 WHERE ( 28 * - 80 ) NOT BETWEEN ( + col2 + CAST ( + 4 AS INTEGER ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 44 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT + col0 DIV col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3390
SELECT + col0 / col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL - ( 26 ) + ( - COUNT( * ) ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - ( 26 ) + ( - COUNT ( * ) ) FROM tab1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3392
SELECT ALL + COUNT( * ) DIV COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT + col1 * CAST( + col1 AS SIGNED ) + col2 AS col0 FROM tab2
----
2624
4547
5969

skipif mysql # not compatible
query I rowsort label-3393
SELECT + col1 * CAST ( + col1 AS INTEGER ) + col2 AS col0 FROM tab2
----
2624
4547
5969

query I rowsort
SELECT 95 FROM tab2 WHERE NOT - col0 * 4 IS NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ( COUNT( * ) ) + + SUM( - col2 ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-3395
SELECT ( COUNT ( * ) ) + + SUM ( - col2 ) FROM tab1
----
-220

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( + 86 )
----

query I rowsort
SELECT - 75 FROM tab0 WHERE - col0 * col1 IS NOT NULL
----
-75
-75
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT + col2 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 - + col2 * CAST( col0 AS SIGNED ) BETWEEN ( col2 ) AND col2
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + col2 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 - + col2 * CAST ( col0 AS INTEGER ) BETWEEN ( col2 ) AND col2
----
705
870
9603

query I rowsort
SELECT + col1 * col2 + + 3 AS col0 FROM tab2 cor0
----
1176
3083
3889

query I rowsort
SELECT + 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COUNT( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NOT 89 IN ( 23 )
----
3

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NOT 89 IN ( 23 )
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - - col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - SUM( 95 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-855

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - SUM ( 95 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT DISTINCT + - CAST( + MIN( ALL + 16 ) AS SIGNED ) + - 15 AS col2 FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT + - CAST ( + MIN ( ALL + 16 ) AS INTEGER ) + - 15 AS col2 FROM tab0 cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 62 AS col2 FROM tab0 AS cor0 WHERE ( col2 + col1 ) IN ( + col0 * - col0 + + col0 )
----

query I rowsort
SELECT 60 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - col1 IN ( col2 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * col0 col1 FROM tab2 AS cor0
----
-3910
-5440
-6375

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) <= + 39 / + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT + SUM( 59 ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + SUM ( 59 ) FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT - 33 BETWEEN ( + 87 ) AND col0
----
3

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT - 33 BETWEEN ( + 87 ) AND col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT + COUNT( * ) DIV 44 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT + COUNT ( * ) / 44 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT 38 DIV - col2 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3418
SELECT 38 / - col2 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT COUNT( ALL - 67 ) FROM tab0 WHERE - col0 = 6
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT COUNT ( ALL - 67 ) FROM tab0 WHERE - col0 = 6
----
0

query I rowsort
SELECT DISTINCT + col1 + - col2 + col1 AS col2 FROM tab0
----
-97
115
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + MAX( ALL col1 ) * COUNT( * ) col2 FROM tab0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3422
SELECT ALL + MAX ( ALL col1 ) * COUNT ( * ) col2 FROM tab0
----
243

query I rowsort
SELECT DISTINCT - 12 * col2 + col2 FROM tab2 WHERE ( + col2 + ( 15 ) ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL 98 + - + ( col2 ) AS col0 FROM tab2
----
40
58
75

query I rowsort
SELECT ALL - col1 + col1 * - 57 AS col0 FROM tab1
----
-2726
-290
-812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3426
SELECT ALL + COUNT( DISTINCT - col0 ) DIV 25 + COUNT( * ) * 45 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + COUNT ( DISTINCT - col0 ) / 25 + COUNT ( * ) * 45 FROM tab1
----
135

query I rowsort
SELECT 24 * + - 37 + 43 AS col0 FROM tab2 cor0
----
-845
-845
-845

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 + ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT - col1 DIV + + 61 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT - col1 / + + 61 AS col2 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * 29 * col0 col1 FROM tab1 AS cor0
----
1987776
727175
8434244

query II rowsort
SELECT + - 32, col0 FROM tab1 AS cor0
----
-32
51
-32
85
-32
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT ALL 36 * + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < + - 24 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL 36 * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < + - 24 + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - SUM( + ( + 9 ) ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3433
SELECT - SUM ( + ( + 9 ) ) FROM tab2 cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT - - CAST( + 18 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3434
SELECT - - CAST ( + 18 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3435
SELECT 83 * - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT 83 * - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 94 * - col0 col2 FROM tab1
----
244494
679150
778414

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - col1 + + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT DISTINCT + col1 * CAST( - 81 AS SIGNED ) AS col0 FROM tab2
----
-4131
-5427
-6237

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + col1 * CAST ( - 81 AS INTEGER ) AS col0 FROM tab2
----
-4131
-5427
-6237

query I rowsort
SELECT ALL + ( col2 ) * - + ( - col2 ) + 82 FROM tab1
----
3563
4706
9298

query I rowsort
SELECT DISTINCT 42 * - 99 AS col0 FROM tab1
----
-4158

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT DISTINCT + col1 DIV + - col1 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + col1 / + - col1 AS col0 FROM tab0
----
-1

query I rowsort
SELECT 24 FROM tab1 WHERE NOT ( + + 35 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3444
SELECT DISTINCT - ( CAST( COUNT( DISTINCT col1 ) AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT NULL >= - + col0
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - ( CAST ( COUNT ( DISTINCT col1 ) AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT NULL >= - + col0
----
0

query II rowsort
SELECT - col1 * col1 AS col0, col1 AS col2 FROM tab0
----
-1
1
-441
21
-6561
81

query I rowsort
SELECT - col0 + col1 FROM tab2 WHERE NOT col1 NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 22 ) IS NOT NULL
----

query I rowsort
SELECT + - 62 * + col1 FROM tab1 AS cor0
----
-2914
-310
-868

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT 63 + COUNT( * ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT 63 + COUNT ( * ) AS col1 FROM tab2
----
66

query I rowsort
SELECT - 64 + - + col1 * + 65 * + col2 FROM tab0
----
-13714
-247519
-6499

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3452
SELECT ALL * FROM tab0 WHERE NOT + col2 + CAST( col2 AS SIGNED ) + + col0 * + 0 = + 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3452
SELECT ALL * FROM tab0 WHERE NOT + col2 + CAST ( col2 AS INTEGER ) + + col0 * + 0 = + 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 73 + col2 col1 FROM tab1 AS cor0
----
-14
-5
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * - col1 * + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 99 + - 12 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-3455
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 99 + - 12 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT MIN( ALL col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT DISTINCT + COUNT( * ), 14 col0 FROM tab1 cor0
----
3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3458
SELECT DISTINCT + COUNT ( * ), 14 col0 FROM tab1 cor0
----
3
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3459
SELECT COUNT( * ) DIV 92 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3459
SELECT COUNT ( * ) / 92 col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( - col1 <> - ( col0 ) ) )
----

query I rowsort
SELECT DISTINCT col1 + - 85 * col0 * + + col0 * + col0 FROM tab1
----
-11275321
-52200620
-64053488

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3462
SELECT ALL ( + + 74 ) + CAST( NULL AS SIGNED ) + 29, col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3462
SELECT ALL ( + + 74 ) + CAST ( NULL AS INTEGER ) + 29, col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + ( + - 89 ) + - 77 IS NULL
----

query I rowsort
SELECT + - col0 - 90 + - col0 - col1 AS col1 FROM tab1 AS cor0
----
-206
-265
-319

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + 54 ) * + 83 NOT BETWEEN 45 + - - 40 AND col2 + 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 * + + col2 col0 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT + col0 * + 10 AS col1 FROM tab2
----
460
640
750

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT ALL + col0 DIV + 3 FROM tab1
----
17
28
30

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + col0 / + 3 FROM tab1
----
17
28
30

query I rowsort
SELECT DISTINCT + + ( - - col1 ) AS col1 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - + + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 39 AS col2, col2 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT + COUNT( * ) * + - 74 FROM tab2 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + COUNT ( * ) * + - 74 FROM tab2 cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT + 31 * + + 69 - + MIN( ALL + 30 ) FROM tab0 AS cor0
----
2109

skipif mysql # not compatible
query I rowsort label-3474
SELECT + 31 * + + 69 - + MIN ( ALL + 30 ) FROM tab0 AS cor0
----
2109

query I rowsort
SELECT DISTINCT col1 * 17 FROM tab2
----
1139
1309
867

query I rowsort
SELECT ALL 40 * - 86 AS col0 FROM tab1
----
-3440
-3440
-3440

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * + - col0 * - 51 NOT IN ( + col1 )
----

query II rowsort
SELECT col0, - 30 AS col2 FROM tab1
----
51
-30
85
-30
91
-30

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 + col2 FROM tab2
----
46
46
64
80
75
116

query I rowsort
SELECT DISTINCT ( 49 ) FROM tab1
----
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3482
SELECT DISTINCT + + 2 * + 54 DIV + SUM( col2 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + + 2 * + 54 / + SUM ( col2 ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + 49 + + col2 AS col2 FROM tab1 AS cor0
----
108
117
145

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3484
SELECT ALL * FROM tab2 WHERE - + CAST( + col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3484
SELECT ALL * FROM tab2 WHERE - + CAST ( + col0 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT 76 * SUM( ALL - 32 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-21888

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT 76 * SUM ( ALL - 32 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-21888

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL 99 * - COUNT( * ) + + 28 FROM tab2 AS cor0
----
-269

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL 99 * - COUNT ( * ) + + 28 FROM tab2 AS cor0
----
-269

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT DISTINCT - CAST( - AVG ( + + 0 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT DISTINCT - CAST ( - AVG ( + + 0 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT + + 17 - + + 87 * - + ( col2 ) + - - col1 + - + col1 FROM tab2 AS cor0
----
2018
3497
5063

query I rowsort
SELECT + 74 * col0 + + + 58 AS col1 FROM tab2 cor0
----
3462
4794
5608

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT DISTINCT 3 DIV + + col1 * + ( + 60 ) * - - col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT 3 / + + col1 * + ( + 60 ) * - - col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3493
SELECT ALL 14, COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
14
9

skipif mysql # not compatible
query II rowsort label-3493
SELECT ALL 14, COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
14
9

query III rowsort
SELECT * FROM tab0 WHERE - - 56 IS NULL
----

query II rowsort
SELECT - 72 + + + 74 * 61 AS col2, 49 * + - 54 FROM tab1
----
4442
-2646
4442
-2646
4442
-2646

query I rowsort
SELECT DISTINCT - 80 + + + col0 FROM tab0
----
-65
17
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col1 + + col2 col1 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL MIN( - + col0 ) + + 54 AS col0 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL MIN ( - + col0 ) + + 54 AS col0 FROM tab0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - SUM( + ( - 22 ) ) col1 FROM tab0 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3499
SELECT - SUM ( + ( - 22 ) ) col1 FROM tab0 cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT col1 DIV col0 * col0 FROM tab2
----
0
46
64

skipif mysql # not compatible
query I rowsort label-3500
SELECT col1 / col0 * col0 FROM tab2
----
0
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - + MAX( ALL col2 ) col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT ALL - + MAX ( ALL col2 ) col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + - ( ( - 24 ) ) AS col2 FROM tab0 AS cor0
----
24

query II rowsort
SELECT + col1 * + + 0 AS col0, + 99 AS col0 FROM tab0 AS cor0
----
0
99
0
99
0
99

query II rowsort
SELECT DISTINCT 53 AS col1, ( + - col1 ) + - + col0 FROM tab0 AS cor0
----
53
-108
53
-96
53
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - - 22 * - + MIN( DISTINCT - + 47 ) FROM tab1 AS cor0
----
1034

skipif mysql # not compatible
query I rowsort label-3505
SELECT - - 22 * - + MIN ( DISTINCT - + 47 ) FROM tab1 AS cor0
----
1034

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT 84 AS col1, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-3506
SELECT 84 AS col1, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84
3

query I rowsort
SELECT DISTINCT + col2 * - - col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-3508
SELECT - 74 col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-74
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3508
SELECT - 74 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-74
-3

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) > ( + 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT ALL col0 DIV ( + + col1 ) FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL col0 / ( + + col1 ) FROM tab0 AS cor0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT DISTINCT - col1 * - - col0 DIV col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - col1 * - - col0 / col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - ( + ( + - MAX( DISTINCT - - 41 ) ) ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-3512
SELECT - ( + ( + - MAX ( DISTINCT - - 41 ) ) ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL MAX( + col0 ) + 45 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL MAX ( + col0 ) + 45 FROM tab2
----
120

query III rowsort
SELECT * FROM tab2 WHERE col1 * + + 34 + + + 42 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3515
SELECT col0 DIV - 24 + col2 col2, + col0 * + col2 AS col1 FROM tab1
----
56
5015
65
6188
94
4896

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3515
SELECT col0 / - 24 + col2 col2, + col0 * + col2 AS col1 FROM tab1
----
56
5015
65
6188
94
4896

query I rowsort
SELECT - + 3 AS col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 5 FROM tab0 AS cor0 WHERE NOT NULL < col2 * col0
----

query I rowsort
SELECT 0 * - + col0 AS col2 FROM tab1 cor0 WHERE col1 IN ( + - 79, 27 * - ( - 31 ), + col2 * + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 / - 2 col0 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT + 0 * 27 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3521
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN + col0 AND + + ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-3521
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN + col0 AND + + ( + col1 )
----

query I rowsort
SELECT DISTINCT col2 + 58 FROM tab1
----
117
126
154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3523
SELECT - col1 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT - col1 / - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT 58 * - + COUNT( * ) col1, + COUNT( - ( - - col0 ) ) FROM tab1
----
-174
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3524
SELECT 58 * - + COUNT ( * ) col1, + COUNT ( - ( - - col0 ) ) FROM tab1
----
-174
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT - ( + col0 ) DIV + - 80 - + ( + col1 ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3525
SELECT - ( + col0 ) / + - 80 - + ( + col1 ) AS col1 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT + ( + col2 ) AS col0, - ( + col1 ) - - - 14 AS col0 FROM tab0
----
10
-35
47
-95
99
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT COUNT( * ) - + - SUM( + 4 ) col2 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3527
SELECT COUNT ( * ) - + - SUM ( + 4 ) col2 FROM tab2
----
15

query I rowsort
SELECT 7 - 34 FROM tab0
----
-27
-27
-27

query I rowsort
SELECT col2 * + 60 - - - col1 + + - col0 * + col1 * - + 73 AS col2 FROM tab1
----
316254
34560
57868

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT col2 - + 29 DIV - + col2 + 89 FROM tab2
----
113
129
147

skipif mysql # not compatible
query I rowsort label-3530
SELECT col2 - + 29 / - + col2 + 89 FROM tab2
----
113
129
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL + COUNT( DISTINCT + 87 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + COUNT ( DISTINCT + 87 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

query I rowsort
SELECT DISTINCT - + 79 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT MIN( ALL + + col1 ) - + - CAST( - + 56 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT MIN ( ALL + + col1 ) - + - CAST ( - + 56 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col1 ) IN ( 64 + + - 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( + + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - ( + - SUM( ALL - col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3536
SELECT - ( + - SUM ( ALL - col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - MIN( DISTINCT - - 43 ) AS col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3537
SELECT - MIN ( DISTINCT - - 43 ) AS col2 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL - + 53 * + 56 - - + col1 + - col1 + - 69 - - - col2 FROM tab1 AS cor0 WHERE - col1 * 80 + - 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 3 ) col2 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT col1 + + + col0 AS col1, col1 FROM tab1
----
138
47
65
14
90
5

query I rowsort
SELECT DISTINCT - 1 * - col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - - col0 * - col2 + + 89 FROM tab0 AS cor0
----
-616
-781
-9514

query I rowsort
SELECT + - 28 + + col2 FROM tab0 AS cor0
----
-18
19
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT 92 * 12 + + COUNT( * ) - + + 80 AS col2 FROM tab1
----
1027

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT 92 * 12 + + COUNT ( * ) - + + 80 AS col2 FROM tab1
----
1027

query I rowsort
SELECT + 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL col1 + + col0 * + - col0 AS col0 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT + col2 - + 93 + + col0 AS col0 FROM tab1 AS cor0
----
51
54
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - MIN( ALL + - col2 ) - + - 62 col0 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3549
SELECT ALL - MIN ( ALL + - col2 ) - + - 62 col0 FROM tab2 AS cor0
----
120

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - 5 ) > NULL AND NOT NULL IS NOT NULL
----

query II rowsort
SELECT - col0 - + - col2 AS col1, + col2 * col0 FROM tab2 AS cor0
----
-17
4350
-23
1058
-24
2560

query I rowsort
SELECT ALL + ( - col0 ) - col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT ALL + MIN( 27 ) AS col1, - 45 AS col2 FROM tab1 AS cor0
----
27
-45

skipif mysql # not compatible
query II rowsort label-3553
SELECT ALL + MIN ( 27 ) AS col1, - 45 AS col2 FROM tab1 AS cor0
----
27
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT 90 + - COUNT( * ) + + + 53 * + 32 * CAST( - 26 AS SIGNED ) FROM tab1 AS cor0
----
-44009

skipif mysql # not compatible
query I rowsort label-3554
SELECT 90 + - COUNT ( * ) + + + 53 * + 32 * CAST ( - 26 AS INTEGER ) FROM tab1 AS cor0
----
-44009

query I rowsort
SELECT ALL - 80 * 30 AS col2 FROM tab2
----
-2400
-2400
-2400

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND ( + col1 * 2 * + - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - + col1 AND + + 47
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3558
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 cor0
----
-3
3

query I rowsort
SELECT DISTINCT - - ( - ( + - col2 ) ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3560
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 + + col0 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3560
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 + + col0 ) < - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 46 * + col0 * col1 col2 FROM tab0
----
2626830
441738
840420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT + - COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) * + + ( - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) * + + ( - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < - col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 + + - col2 col0, col0 AS col1 FROM tab2 cor0
----
22
75
40
64
57
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + - 62 - col2 BETWEEN - + 75 AND - - col2
----

query I rowsort
SELECT ALL ( + 54 ) AS col0 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT ALL + ( 37 ) FROM tab2 cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3568
SELECT ALL * FROM tab1 WHERE + - col1 * col2 * + CAST( NULL AS SIGNED ) * - - col2 + + 12 * + + col1 IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3568
SELECT ALL * FROM tab1 WHERE + - col1 * col2 * + CAST ( NULL AS INTEGER ) * - - col2 + + 12 * + + col1 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT COUNT( * ) AS col2 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3569
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 46 FROM tab1 WHERE NULL <= NULL
----

query II rowsort
SELECT - col0 AS col0, + 54 FROM tab2
----
-46
54
-64
54
-75
54

query III rowsort
SELECT ALL * FROM tab2 WHERE 53 + - 92 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 85 + + col2 + - col0 FROM tab2
----
-102
-108
-109

query III rowsort
SELECT * FROM tab2 WHERE - - 84 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 4 * + 31 * - col0 AS col2 FROM tab1
----
10535
11237
6310

query I rowsort
SELECT ALL col0 + - 4 * - - col2 AS col2 FROM tab0 AS cor0
----
-173
-299
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT COUNT( * ), 22 AS col0 FROM tab1 cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-3577
SELECT COUNT ( * ), 22 AS col0 FROM tab1 cor0
----
3
22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 10 + col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT + COUNT( col0 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3579
SELECT DISTINCT + COUNT ( col0 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 + + + col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT - MIN( DISTINCT - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - MIN ( DISTINCT - col1 ) AS col1 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 + col0 col2 FROM tab1
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - COUNT( * ) + - SUM( + - col0 ) AS col0 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-3583
SELECT - COUNT ( * ) + - SUM ( + - col0 ) AS col0 FROM tab1
----
224

query I rowsort
SELECT 61 + col0 * + - col1 AS col1 FROM tab2
----
-2285
-4867
-4964

query I rowsort
SELECT DISTINCT 43 + - col1 + + + 34 - + col1 FROM tab0
----
-85
35
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT - ( + 76 ) + + + 22 DIV + col0 * col2 + + col2 FROM tab1
----
-17
-8
20

skipif mysql # not compatible
query I rowsort label-3586
SELECT - ( + 76 ) + + + 22 / + col0 * col2 + + col2 FROM tab1
----
-17
-8
20

query I rowsort
SELECT ALL - + col0 / + + col1 AS col0 FROM tab2 AS cor0 WHERE - 40 + - 32 >= - - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + ( + COUNT( DISTINCT + - col2 ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3588
SELECT + ( + COUNT ( DISTINCT + - col2 ) ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 68 * - 30 + - - 44 FROM tab0 cor0
----
-1996
-1996
-1996

query I rowsort
SELECT ALL - ( + 61 ) AS col2 FROM tab2 cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + + col1 * 36 FROM tab2 AS cor0
----
1836
2412
2772

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 13 >= - + col2
----

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col1 * + col1 * + ( ( + ( - 6 ) ) ) AS col1 FROM tab0
----
-2646
-39366
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT ALL + - 56, COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-56
0

skipif mysql # not compatible
query II rowsort label-3596
SELECT ALL + - 56, COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-56
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT ALL col2 / + CAST( - col1 AS SIGNED ) / + - col2 / + - CAST( NULL AS SIGNED ) + + 87 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT ALL col2 / + CAST ( - col1 AS INTEGER ) / + - col2 / + - CAST ( NULL AS INTEGER ) + + 87 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3598
SELECT 58 * COUNT( + col0 ) AS col0, COUNT( * ) DIV - - 35 FROM tab0
----
174
0

skipif mysql # not compatible
query II rowsort label-3598
SELECT 58 * COUNT ( + col0 ) AS col0, COUNT ( * ) / - - 35 FROM tab0
----
174
0

query I rowsort
SELECT - col1 * - 85 AS col0 FROM tab2
----
4335
5695
6545

query II rowsort
SELECT col1 * - col0 AS col0, ( + 59 ) + + 91 FROM tab1
----
-425
150
-4277
150
-714
150

query II rowsort
SELECT 7 * - col0, - col0 * + - 15 * - col1 AS col1 FROM tab1
----
-357
-10710
-595
-6375
-637
-64155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3602
SELECT COUNT( * ) col2 FROM tab2 cor0 WHERE NOT - 62 * - col2 + + 65 NOT IN ( + - col2 * - - CAST( - col0 AS DECIMAL ) / - - 80 * + 37 * - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3602
SELECT COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT - 62 * - col2 + + 65 NOT IN ( + - col2 * - - CAST ( - col0 AS REAL ) / - - 80 * + 37 * - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL - MAX( + - 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - MAX ( + - 55 ) FROM tab2 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3604
SELECT - 10 DIV + col1 AS col0, - ( - col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
0
1173
0
3080
0
3886

skipif mysql # not compatible
query II rowsort label-3604
SELECT - 10 / + col1 AS col0, - ( - col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
0
1173
0
3080
0
3886

query III rowsort
SELECT * FROM tab1 WHERE NOT + 79 <> - col1 * + - col0 OR + 51 + + col1 IS NULL
----

query I rowsort
SELECT ALL + col2 * + 14 AS col2 FROM tab2
----
322
560
812

onlyif mysql # DIV for integer division: 
query II rowsort label-3607
SELECT DISTINCT 27 DIV - 2 + + 78, col2 FROM tab2
----
65
23
65
40
65
58

skipif mysql # not compatible
query II rowsort label-3607
SELECT DISTINCT 27 / - 2 + + 78, col2 FROM tab2
----
65
23
65
40
65
58

query II rowsort
SELECT DISTINCT - - 66 AS col0, col1 AS col1 FROM tab0 cor0
----
66
1
66
21
66
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + ( - + 93 ) >= - col2 * col2
----

query II rowsort
SELECT ALL - - 19 AS col1, - 4 * + col0 AS col0 FROM tab2 AS cor0
----
19
-184
19
-256
19
-300

query I rowsort
SELECT + - 82 * - col1 FROM tab1 AS cor0
----
1148
3854
410

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * col2 - - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT AVG ( ALL + + col0 ) + 6 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT AVG ( ALL + + col0 ) + 6 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + COUNT( * ) + + MIN( ALL - + 58 ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-3614
SELECT + COUNT ( * ) + + MIN ( ALL - + 58 ) FROM tab0
----
-55

query I rowsort
SELECT ALL - col0 + + + col0 * - - col0 AS col0 FROM tab1
----
2550
7140
8190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3616
SELECT * FROM tab2 WHERE CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3616
SELECT * FROM tab2 WHERE CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * 4 + - col0 FROM tab0
----
-47
173
299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT ALL - - COUNT( DISTINCT 2 ) + + 65 DIV + COUNT( * ) + 97 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - - COUNT ( DISTINCT 2 ) + + 65 / + COUNT ( * ) + 97 FROM tab2 AS cor0
----
119

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col2 * - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL MAX( ALL - ( - 88 ) ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL MAX ( ALL - ( - 88 ) ) FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT - col1 * - CAST( + 29 AS SIGNED ) FROM tab1 AS cor0
----
1363
145
406

skipif mysql # not compatible
query I rowsort label-3621
SELECT - col1 * - CAST ( + 29 AS INTEGER ) FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT DISTINCT + ( - - 78 ) FROM tab2 AS cor0
----
78

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 21 IN ( - 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + ( col1 ) col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3625
SELECT + COUNT( * ) - CAST( NULL AS DECIMAL ) + - COUNT( * ) * - CAST( - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT + COUNT ( * ) - CAST ( NULL AS REAL ) + - COUNT ( * ) * - CAST ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - ( + - 70 ) AS col0 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3628
SELECT CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3629
SELECT ALL + COUNT( * ) * - - 16 DIV + - 68, 99 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0
-297

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL + COUNT ( * ) * - - 16 / + - 68, 99 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0
-297

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 76 * - 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + - col0 + - col0 NOT IN ( + col0, - col1 / col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3633
SELECT + - col2 FROM tab1 WHERE NOT + - CAST( NULL AS DECIMAL ) * - + 52 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3633
SELECT + - col2 FROM tab1 WHERE NOT + - CAST ( NULL AS REAL ) * - + 52 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - 45 * - 5 AS col1 FROM tab2
----
225
225
225

query I rowsort
SELECT + 93 * col1 AS col1 FROM tab0
----
1953
7533
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT SUM( - + 76 ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT SUM ( - + 76 ) FROM tab2
----
-228

onlyif mysql # DIV for integer division: 
query II rowsort label-3637
SELECT ALL - col2 AS col1, + 54 DIV - + col0 AS col2 FROM tab2
----
-23
-1
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-3637
SELECT ALL - col2 AS col1, + 54 / - + col0 AS col2 FROM tab2
----
-23
-1
-40
0
-58
0

query I rowsort
SELECT 76 * + 32 FROM tab2
----
2432
2432
2432

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT DISTINCT - - col1 * col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-139
-44
0

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - - col1 * col1 / - col2 AS col0 FROM tab0 AS cor0
----
-139
-44
0

query I rowsort
SELECT col1 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT ALL + - ( 36 ) * col2 * - + col2 AS col1 FROM tab1 cor0
----
125316
166464
331776

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT - col2 * + col2 + + 75 + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT + COUNT( * ) + 88 + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + COUNT ( * ) + 88 + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
106

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - 30 AS col0 FROM tab2 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 38 * 85 + + 29 AS col2, + col2 col0 FROM tab1 AS cor0
----
-3201
59
-3201
68
-3201
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 > ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3650
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + ( + + col2 ) * + + CAST( NULL AS SIGNED ) / - col0 - - 78 + - 61 + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3650
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + ( + + col2 ) * + + CAST ( NULL AS INTEGER ) / - col0 - - 78 + - 61 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 WHERE + 14 IS NULL
----

query II rowsort
SELECT DISTINCT + 38 * + + col2 + + 89 AS col0, col2 AS col2 FROM tab2
----
1609
40
2293
58
963
23

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab2 WHERE NOT + + col0 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3655
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( col1 ) AS col1, 40 FROM tab1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-3655
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( col1 ) AS col1, 40 FROM tab1
----
NULL
40

query I rowsort
SELECT DISTINCT + col0 * + 24 + + + col0 AS col1 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT - 18 AS col1 FROM tab2 WHERE - + col2 * - - col1 IS NOT NULL
----
-18
-18
-18

query I rowsort
SELECT ALL 70 - - col2 AS col0 FROM tab1 cor0
----
129
138
166

query I rowsort
SELECT col1 * + col0 + 72 AS col0 FROM tab0
----
1287
169
1899

query I rowsort
SELECT DISTINCT 61 + 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
124

query I rowsort
SELECT ALL col0 * - col0 + + ( 22 ) AS col2 FROM tab0
----
-203
-7547
-9387

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT - 61 * - 67 + COUNT( * ) + - 77 * + COUNT( * ) + - 56 FROM tab2
----
3803

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT - 61 * - 67 + COUNT ( * ) + - 77 * + COUNT ( * ) + - 56 FROM tab2
----
3803

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + + SUM( + 64 ) AS col2 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3663
SELECT + + SUM ( + 64 ) AS col2 FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3666
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col1 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3666
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col1 = - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col2 * - col2 * col0, - 42 * - col1 * 54 FROM tab2 AS cor0 WHERE NULL >= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col2 FROM tab2 cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col1 FROM tab1 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL - SUM( - 98 ) FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - SUM ( - 98 ) FROM tab0 AS cor0
----
294

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT - col2 * 20 * + CAST( - 71 AS SIGNED ) FROM tab0
----
140580
14200
66740

skipif mysql # not compatible
query I rowsort label-3672
SELECT - col2 * 20 * + CAST ( - 71 AS INTEGER ) FROM tab0
----
140580
14200
66740

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT SUM( + + 71 ) AS col1 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-3673
SELECT SUM ( + + 71 ) AS col1 FROM tab1
----
213

query I rowsort
SELECT ALL 87 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 10 col2 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT DISTINCT + col2 + - 41 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL < - col1 + 67
----

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + col2 + - 41 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL < - col1 + 67
----

query II rowsort
SELECT - col1, col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL - col1 * + col0 + - 2 FROM tab1
----
-427
-4279
-716

query I rowsort
SELECT DISTINCT + col0 * - + col1 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + col0 * - - 36 + 19 AS col0 FROM tab0 AS cor0
----
3151
3511
559

query I rowsort
SELECT ALL 6 * - - 76 AS col0 FROM tab2 AS cor0
----
456
456
456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab2 AS cor0 WHERE col0 / col2 + + + ( + col2 ) * - col0 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3684
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab2 AS cor0 WHERE col0 / col2 + + + ( + col2 ) * - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT MIN( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3685
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3686
SELECT + - CAST( NULL AS DECIMAL ) * - col0 + - 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT + - CAST ( NULL AS REAL ) * - col0 + - 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col2 AS col2, col1 col1 FROM tab1 cor0
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT - + 78 - - 12 AS col1 FROM tab2 cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT - col0 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT - col0 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL COUNT( * ) + COUNT( col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL COUNT ( * ) + COUNT ( col2 ) FROM tab0
----
6

query I rowsort
SELECT ALL - ( + + 2 ) AS col2 FROM tab0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT - 24 * + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 24 * + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 88 + 5, 72 col1 FROM tab0 AS cor0
----
-83
72

query II rowsort
SELECT DISTINCT + col0 AS col0, col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT + + 82 * col1 + + 70 FROM tab0 AS cor0
----
152
1792
6712

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT MAX( DISTINCT - 37 ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3697
SELECT MAX ( DISTINCT - 37 ) FROM tab1 AS cor0
----
-37

query II rowsort
SELECT DISTINCT + col2 * + col2 * + col2 AS col0, ( + col2 ) * - col2 FROM tab2 AS cor0
----
12167
-529
195112
-3364
64000
-1600

query I rowsort
SELECT 46 * + 6 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
276
276
276

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <> col0
----

query I rowsort
SELECT ALL - col2 * col0 + + ( - + 46 ) FROM tab2 WHERE NOT - - col0 BETWEEN - 48 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - col1 FROM tab2
----
0

query II rowsort
SELECT + 46 AS col1, col1 * + col2 - + 64 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3704
SELECT COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3704
SELECT COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL - ( + 39 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT 3 + + - col0 FROM tab0
----
-12
-84
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT - MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT - + 54 + 52 + + 91 AS col1, SUM( + 77 ) FROM tab1 AS cor0
----
89
231

skipif mysql # not compatible
query II rowsort label-3708
SELECT - + 54 + 52 + + 91 AS col1, SUM ( + 77 ) FROM tab1 AS cor0
----
89
231

query I rowsort
SELECT + 45 + + - 39 + + 31 FROM tab0 cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT + CAST( - 3 AS SIGNED ) FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3710
SELECT + CAST ( - 3 AS INTEGER ) FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT col0 DIV + - 29 FROM tab0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT col0 / + - 29 FROM tab0
----
-3
-3
0

query II rowsort
SELECT DISTINCT + col1 AS col0, 72 AS col1 FROM tab0
----
1
72
21
72
81
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3713
SELECT col2 DIV 15 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3713
SELECT col2 / 15 AS col1 FROM tab2
----
1
2
3

query I rowsort
SELECT 41 - - col1 * + + col2 FROM tab0
----
140
251
3848

query I rowsort
SELECT col0 - - + 89 AS col2 FROM tab0
----
104
176
186

query I rowsort
SELECT ALL - ( + 1 ) + + - col1 FROM tab0
----
-2
-22
-82

query II rowsort
SELECT DISTINCT + - col2 AS col2, + col2 + col2 AS col2 FROM tab0 AS cor0
----
-10
20
-47
94
-99
198

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT MIN( - ( - 43 ) ) col1 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3719
SELECT MIN ( - ( - 43 ) ) col1 FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3720
SELECT DISTINCT + 95 DIV + - CAST( 86 AS SIGNED ) - col2 + - col2 * + col1 FROM tab0 AS cor0
----
-199
-221
-3855

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + 95 / + - CAST ( 86 AS INTEGER ) - col2 + - col2 * + col1 FROM tab0 AS cor0
----
-199
-221
-3855

onlyif mysql # DIV for integer division: 
query II rowsort label-3721
SELECT + - col2 DIV + col2 AS col1, - col0 col1 FROM tab0 AS cor0
----
-1
-15
-1
-87
-1
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3721
SELECT + - col2 / + col2 AS col1, - col0 col1 FROM tab0 AS cor0
----
-1
-15
-1
-87
-1
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL + col0 DIV + + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + col0 / + + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL SUM( DISTINCT + + 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL SUM ( DISTINCT + + 75 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT col1 * + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ( 28 ) AS col2 FROM tab1
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT col2 * + col1 * + col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT col2 * + col1 * + col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col1 + - col2 FROM tab1
----
1248
236
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1, col1 * - col0 FROM tab2
----
51
-2346
67
-5025
77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 <= - - 90
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 <= - - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL MAX( - 42 ) FROM tab1, tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL MAX ( - 42 ) FROM tab1, tab0 AS cor0
----
-42

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL >= - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT - COUNT( * ) * 88 + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3733
SELECT - COUNT ( * ) * 88 + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 + + col0 col1 FROM tab0 AS cor0
----
17
89
99

query II rowsort
SELECT ALL 38 + + 15 AS col2, + col0 * - 56 AS col0 FROM tab2 cor0
----
53
-2576
53
-3584
53
-4200

query I rowsort
SELECT DISTINCT + - 41 - - - col1 * + + col2 AS col0 FROM tab1 AS cor0
----
-1385
-3237
-336

query I rowsort
SELECT ALL - 13 FROM tab0 AS cor0 WHERE NOT - col2 - - - 51 IS NOT NULL
----

query I rowsort
SELECT 40 + 97 AS col0 FROM tab0 AS cor0
----
137
137
137

query I rowsort
SELECT ALL - + ( - 82 ) * + + 21 FROM tab2 AS cor0
----
1722
1722
1722

query I rowsort
SELECT - col1 + - - 38 AS col2 FROM tab1 AS cor0
----
-9
24
33

query I rowsort
SELECT ( + + 32 ) + + col2 AS col0 FROM tab1
----
100
128
91

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND + 95
----
97
1
99

query I rowsort
SELECT + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT ALL + - col1 DIV + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + - col1 / + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - 61 AS col2 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT + col2 * 49 DIV - 1 FROM tab2
----
-1127
-1960
-2842

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + col2 * 49 / - 1 FROM tab2
----
-1127
-1960
-2842

query I rowsort
SELECT ALL + col2 * + - 95 FROM tab2
----
-2185
-3800
-5510

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 AS col2 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT 38 FROM tab0 WHERE NOT NULL IS NOT NULL
----
38
38
38

query II rowsort
SELECT DISTINCT - ( - col0 ), col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT DISTINCT + 48 col2, + ( - 7 ) + - - COUNT( * ) FROM tab1 AS cor0
----
48
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3752
SELECT DISTINCT + 48 col2, + ( - 7 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
48
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3753
SELECT ALL + col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3753
SELECT ALL + col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT col0, 42 * - 55 * 17 FROM tab1 AS cor0
----
51
-39270
85
-39270
91
-39270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * - col2 * - ( - + 69 ) col0, + col1 FROM tab0 cor0
----
48645
81
60030
21
662607
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT ALL COUNT( * ) AS col0, MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL COUNT ( * ) AS col0, MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
3
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT col0 * + CAST( + - col2 AS SIGNED ) + + - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

skipif mysql # not compatible
query I rowsort label-3757
SELECT col0 * + CAST ( + - col2 AS INTEGER ) + + - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

query I rowsort
SELECT ALL ( 54 ) * 17 * - + ( + - col0 ) AS col2 FROM tab1
----
46818
78030
83538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT - CAST( NULL AS SIGNED ) * + + CAST( - col0 AS SIGNED ) * + col0 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT - CAST ( NULL AS INTEGER ) * + + CAST ( - col0 AS INTEGER ) * + col0 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col1 FROM tab1
----
-1330
-290
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT - - MAX( + col1 ) * 4 FROM tab0 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT - - MAX ( + col1 ) * 4 FROM tab0 AS cor0
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3762
SELECT * FROM tab0 AS cor0 WHERE - col1 - - col0 <> - - 38 + - + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-3762
SELECT * FROM tab0 AS cor0 WHERE - col1 - - col0 <> - - 38 + - + CAST ( NULL AS INTEGER ) * - col2
----

query I rowsort
SELECT ALL - col2 * - col2 * - - 24 + 2 FROM tab2
----
12698
38402
80738

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT + ( - 8 ) IS NULL
----
1
21
81

query I rowsort
SELECT ALL + col1 + 41 AS col0 FROM tab2
----
108
118
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT + COUNT( * ) + - 71 + - + 44 + + CAST( - - ( + + MIN( + 31 ) ) AS SIGNED ) * + 83 * - + 73 + + COUNT( * ) col2 FROM tab1 AS cor0 WHERE - 44 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3766
SELECT + COUNT ( * ) + - 71 + - + 44 + + CAST ( - - ( + + MIN ( + 31 ) ) AS INTEGER ) * + 83 * - + 73 + + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE - 44 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + 2 col1 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query II rowsort
SELECT + col1 * - - ( + col2 ), + col0 + - 43 AS col1 FROM tab0 AS cor0
----
210
44
3807
-28
99
54

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 ) * - - 13 * + 97 NOT BETWEEN + + col0 * + 60 + + 64 * + 64 AND col0 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT COUNT( * ) * - 29 + + 43 FROM tab1 AS cor0 WHERE 44 >= NULL
----
43

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT COUNT ( * ) * - 29 + + 43 FROM tab1 AS cor0 WHERE 44 >= NULL
----
43

query I rowsort
SELECT DISTINCT - 2 - + - 82 AS col2 FROM tab1 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT - - col1 + + ( col1 ) * + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
2
462
6642

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT - - col1 + + ( col1 ) * + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
2
462
6642

query II rowsort
SELECT col0 - col2, - 93 AS col1 FROM tab1
----
-45
-93
23
-93
26
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + COUNT( * ) - COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3775
SELECT + COUNT ( * ) - COUNT ( * ) col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3776
SELECT - 46 DIV + col2 AS col1, - col0 AS col2 FROM tab2
----
-1
-64
-2
-46
0
-75

skipif mysql # not compatible
query II rowsort label-3776
SELECT - 46 / + col2 AS col1, - col0 AS col2 FROM tab2
----
-1
-64
-2
-46
0
-75

query II rowsort
SELECT DISTINCT 77 * 21 AS col2, col1 FROM tab1
----
1617
14
1617
47
1617
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT ALL - ( - CAST( + col0 AS SIGNED ) ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - ( - CAST ( + col0 AS INTEGER ) ) FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + ( - - ( col0 ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3780
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = CAST( + + col0 AS DECIMAL ) + - CAST( NULL AS SIGNED ) * 4 + 74
----

skipif mysql # not compatible
query III rowsort label-3780
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = CAST ( + + col0 AS REAL ) + - CAST ( NULL AS INTEGER ) * 4 + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT SUM( 2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3781
SELECT SUM ( 2 ) FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + + 78 * col1 + - col2 + - - col0 - - 97 col0 FROM tab2 WHERE NOT NULL > 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT - MIN( DISTINCT - 74 ) col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3783
SELECT - MIN ( DISTINCT - 74 ) col1 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT ALL - CAST( + + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT - COUNT( * ) * + 4 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col1 * + + 76 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT - COUNT ( * ) * + 4 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col1 * + + 76 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT - ( + CAST( - col0 AS SIGNED ) ) * - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - ( + CAST ( - col0 AS INTEGER ) ) * - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3788
SELECT DISTINCT - 58 * - - 9 + + ( - - col2 ) DIV - 17 FROM tab0 AS cor0
----
-522
-524
-527

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - 58 * - - 9 + + ( - - col2 ) / - 17 FROM tab0 AS cor0
----
-522
-524
-527

query I rowsort
SELECT DISTINCT - 29 * + - col0 AS col0 FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT DISTINCT ( col0 ) * - - col1 * + - col0 + + 79 FROM tab1
----
-36046
-36335
-389128

query II rowsort
SELECT col0 AS col1, col0 * + - col2 * - col2 FROM tab1
----
51
470016
85
295885
91
420784

query II rowsort
SELECT + 25, 17 AS col2 FROM tab2
----
25
17
25
17
25
17

query I rowsort
SELECT DISTINCT + col0 + + + 6 FROM tab2
----
52
70
81

query I rowsort
SELECT DISTINCT - 43 + + + ( + 63 ) FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT - ( - - COUNT( * ) ) + + + 68 AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-3795
SELECT - ( - - COUNT ( * ) ) + + + 68 AS col1 FROM tab1
----
65

query I rowsort
SELECT DISTINCT col1 + + + 96 AS col1 FROM tab2
----
147
163
173

query I rowsort
SELECT ALL - col2 + - - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT ALL + 98 DIV + 23 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL + 98 / + 23 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT - + col0 + - CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-3799
SELECT - + col0 + - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT ( + - 39 ) * + col0 AS col2 FROM tab2 AS cor0
----
-1794
-2496
-2925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT + - CAST( + AVG ( + + 88 ) AS SIGNED ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3801
SELECT + - CAST ( + AVG ( + + 88 ) AS INTEGER ) FROM tab2 AS cor0
----
-88

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT 37 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ( + ( - + COUNT( * ) ) ) + + COUNT( * ) + + - 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
-56

skipif mysql # not compatible
query I rowsort label-3803
SELECT ( + ( - + COUNT ( * ) ) ) + + COUNT ( * ) + + - 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3804
SELECT * FROM tab1 AS cor0 WHERE - 17 >= + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3804
SELECT * FROM tab1 AS cor0 WHERE - 17 >= + CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL MIN( DISTINCT - col0 ) + + ( - - COUNT( * ) ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL MIN ( DISTINCT - col0 ) + + ( - - COUNT ( * ) ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT ALL col1 * + col0 - - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2369
4968
5083

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL col1 * + col0 - - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT ALL 17 * col0 + 37 + col2 AS col1 FROM tab1 WHERE ( col1 IS NOT NULL )
----
1000
1541
1652

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3808
SELECT ALL * FROM tab2 WHERE NOT - col0 * - 15 * + - CAST( NULL AS DECIMAL ) * - 85 + + col2 + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3808
SELECT ALL * FROM tab2 WHERE NOT - col0 * - 15 * + - CAST ( NULL AS REAL ) * - 85 + + col2 + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT DISTINCT + col2 DIV + col0 FROM tab1 WHERE NOT - col0 IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT + col2 / + col0 FROM tab1 WHERE NOT - col0 IS NULL
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT COUNT( DISTINCT + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT COUNT ( DISTINCT + - col1 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - col1 + - - 20 NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - + col2 * + col1 - + col2 + + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 67 AS col1, col2 AS col2 FROM tab0
----
67
10
67
47
67
99

query II rowsort
SELECT ALL - col0, col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col1 FROM tab0 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT + + MAX( ALL + - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT + + MAX ( ALL + - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT MAX( ALL 60 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT MAX ( ALL 60 ) AS col2 FROM tab2
----
60

query I rowsort
SELECT DISTINCT col1 + + 16 * 29 AS col1 FROM tab1
----
469
478
511

query I rowsort
SELECT col2 FROM tab1 WHERE ( 70 + 80 ) IN ( + 76 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 24 NOT IN ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - MIN( ALL 59 ) AS col2 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-3821
SELECT - MIN ( ALL 59 ) AS col2 FROM tab2
----
-59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 97 + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + 98 ) AS col0 FROM tab0
----
98

query I rowsort
SELECT ( + 52 ) FROM tab2 WHERE NOT col2 + + col2 IS NULL
----
52
52
52

query I rowsort
SELECT ALL + col2 / - 24 + - col0 / - 6 FROM tab0 WHERE NULL NOT BETWEEN col0 / + col1 AND ( NULL )
----

query I rowsort
SELECT - 18 - 93 FROM tab1 WHERE NOT col0 IS NULL
----
-111
-111
-111

query I rowsort
SELECT 25 * - col2 FROM tab0
----
-1175
-2475
-250

query I rowsort
SELECT col0 * - 94 AS col0 FROM tab0
----
-1410
-8178
-9118

query I rowsort
SELECT col0 * ( + 31 ) FROM tab2
----
1426
1984
2325

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3830
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) <= col0 * col1 - 68
----

skipif mysql # not compatible
query III rowsort label-3830
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) <= col0 * col1 - 68
----

query I rowsort
SELECT col2 * + 28 AS col2 FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - 94 - col1 AS col2 FROM tab1
----
-108
-141
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT DISTINCT ( ( CAST( NULL AS SIGNED ) ) ) * - AVG ( - 77 * CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT ( ( CAST ( NULL AS INTEGER ) ) ) * - AVG ( - 77 * CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT AVG ( DISTINCT col2 ) AS col2 FROM tab1 WHERE col2 + ( - CAST( NULL AS SIGNED ) - 69 ) * + 45 < + 68 * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT AVG ( DISTINCT col2 ) AS col2 FROM tab1 WHERE col2 + ( - CAST ( NULL AS INTEGER ) - 69 ) * + 45 < + 68 * - 8
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 90 * col0 AND ( col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3836
SELECT - COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3837
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS DECIMAL ) ) AND ( col1 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-3837
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS REAL ) ) AND ( col1 + + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + col1 < + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 28 * - col0 AND NULL
----

query I rowsort
SELECT - col2 * 45 AS col1 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT ALL + col2 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT DISTINCT - 82 - - col2 AS col2 FROM tab0 cor0
----
-35
-72
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT - COUNT( ALL + 64 ) * 60 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 46 )
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT - COUNT ( ALL + 64 ) * 60 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 46 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT 95 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
285

skipif mysql # not compatible
query I rowsort label-3844
SELECT 95 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
285

query I rowsort
SELECT ALL + 66 * col2 + col0 FROM tab1
----
3979
4579
6387

query I rowsort
SELECT + 6 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col0 ) AND + col1 * + col0
----

query I rowsort
SELECT - 88 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT 10 NOT IN ( - col2 )
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( - ( ( - ( col2 ) ) ) + 89 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab1 AS cor0 WHERE 2 + - col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL MIN( 66 ) FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL MIN ( 66 ) FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3851
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( + col2 AS SIGNED ) + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3851
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( + col2 AS INTEGER ) + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 62 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3853
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 4 + col1 / 3 FROM tab1 WHERE NOT - 9 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) * ( COUNT( * ) * - 95 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) * ( COUNT ( * ) * - 95 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col1 col1 FROM tab2
----
1581
2077
2387

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT col2 DIV - - col0 * col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3858
SELECT col2 / - - col0 * col1 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT COUNT( * ) FROM tab1 WHERE NOT 50 NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT COUNT ( * ) FROM tab1 WHERE NOT 50 NOT BETWEEN - col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT CAST( 15 AS SIGNED ) FROM tab2
----
15
15
15

skipif mysql # not compatible
query I rowsort label-3860
SELECT CAST ( 15 AS INTEGER ) FROM tab2
----
15
15
15

query III rowsort
SELECT ALL * FROM tab0 WHERE 22 + col1 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NULL ) <> + col0 + + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL SUM( ALL + 23 ) + MAX( ALL 12 + + 34 ) FROM tab2 AS cor0 WHERE ( + col0 * - + 88 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL SUM ( ALL + 23 ) + MAX ( ALL 12 + + 34 ) FROM tab2 AS cor0 WHERE ( + col0 * - + 88 ) < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3865
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3865
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( col2 AS INTEGER ) AND NULL
----

query II rowsort
SELECT 60, + col1 FROM tab2 cor0
----
60
51
60
67
60
77

query I rowsort
SELECT DISTINCT - + col0 * + 56 AS col1 FROM tab0 AS cor0
----
-4872
-5432
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT + + ( - col1 ) * CAST( NULL AS SIGNED ) + 69 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT + + ( - col1 ) * CAST ( NULL AS INTEGER ) + 69 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL + MAX( - + 70 ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + MAX ( - + 70 ) AS col1 FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - COUNT( * ) + COUNT( * ) * - - 91 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3870
SELECT - COUNT ( * ) + COUNT ( * ) * - - 91 FROM tab1 AS cor0
----
270

query I rowsort
SELECT ( - col0 ) + + + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL + MIN( ( - col2 ) ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + MIN ( ( - col2 ) ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT ALL - col0 + col2 * col2 AS col2 FROM tab2
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL - 48 + - - MAX( DISTINCT col0 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - 48 + - - MAX ( DISTINCT col0 ) FROM tab1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( - + COUNT( * ) ) - - ( + CAST( NULL AS SIGNED ) ) * 16 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( - + COUNT ( * ) ) - - ( + CAST ( NULL AS INTEGER ) ) * 16 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col0 + 81, col2 FROM tab0
----
168
10
178
99
96
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3877
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + + col1
----

skipif mysql # not compatible
query III rowsort label-3877
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + + col1
----

query I rowsort
SELECT ALL col0 * + 28 - + col1 FROM tab2 AS cor0
----
1237
1715
2033

query I rowsort
SELECT ALL - ( + col1 ) + + 37 FROM tab0 AS cor0
----
-44
16
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT - CAST( NULL AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT - CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) * - + col1 + 12 AS col0 FROM tab0 AS cor0
----
13
453
6573

query I rowsort
SELECT DISTINCT + col0 * 39 FROM tab0 AS cor0 WHERE NOT col1 + - - 63 * - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col1 FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + MIN( DISTINCT - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3884
SELECT + MIN ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT MAX( ALL 86 ) col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3885
SELECT MAX ( ALL 86 ) col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT - COUNT( * ) FROM tab2 WHERE + col2 * + col1 + 39 + - col1 / col2 / col2 BETWEEN ( - col0 ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT - COUNT ( * ) FROM tab2 WHERE + col2 * + col1 + 39 + - col1 / col2 / col2 BETWEEN ( - col0 ) AND + col2
----
0

query I rowsort
SELECT + col2 * 69 * + col2 FROM tab2
----
110400
232116
36501

query I rowsort
SELECT ALL + 38 * - 2 AS col1 FROM tab1 AS cor0
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 35 col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT + 82 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
82
82
82

query I rowsort
SELECT ( ( 22 ) ) FROM tab1 cor0
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT 55 DIV col2 + + col0 * - 82 AS col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

skipif mysql # not compatible
query I rowsort label-3892
SELECT 55 / col2 + + col0 * - 82 AS col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - MAX( - + 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - MAX ( - + 69 ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN - col2 AND - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE + col2 * + + 15 + + + col1 - - - CAST( col1 AS SIGNED ) + 89 / col1 <= 94
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 * + + 15 + + + col1 - - - CAST ( col1 AS INTEGER ) + 89 / col1 <= 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - - MAX( col0 ) col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3896
SELECT ALL - - MAX ( col0 ) col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - + 30 AS col2 FROM tab1 cor0
----
-30
-30
-30

query I rowsort
SELECT - 80 * + - col0 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT ALL 95 * - - col1 AS col1 FROM tab1
----
1330
4465
475

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3901
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col1 - - 62 * - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3901
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col1 - - 62 * - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AND NULL
----

query II rowsort
SELECT - 71, + 72 AS col0 FROM tab0 cor0
----
-71
72
-71
72
-71
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + ( - - col0 ) AND ( NULL )
----
87
21
10

query I rowsort
SELECT ALL - ( 67 ) * col1 AS col2 FROM tab2 AS cor0
----
-3417
-4489
-5159

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE - col0 = - col1 - + - col0
----

query II rowsort
SELECT DISTINCT + col1, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT col0 * col1 DIV - col2 + 68 * - - 25 + - + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
1578
1599
1615

skipif mysql # not compatible
query I rowsort label-3907
SELECT col0 * col1 / - col2 + 68 * - - 25 + - + col2 / - col2 AS col0 FROM tab2 AS cor0
----
1578
1599
1615

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( col2 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + - COUNT( DISTINCT - col0 ) * + 36 * - + 39 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
4215

skipif mysql # not compatible
query I rowsort label-3909
SELECT + - COUNT ( DISTINCT - col0 ) * + 36 * - + 39 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4215

query I rowsort
SELECT ALL 94 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 67 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
67
67
67

query I rowsort
SELECT + col0 * col1 - 70 + + col2 FROM tab2 AS cor0
----
2299
4898
5013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col1 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3914
SELECT * FROM tab2 AS cor0 WHERE - col2 <> col1 / - 59 - CAST( 44 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3914
SELECT * FROM tab2 AS cor0 WHERE - col2 <> col1 / - 59 - CAST ( 44 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 87 AS col0 FROM tab0 cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, - 92 col0 FROM tab2
----
46
-92
64
-92
75
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT + col0 DIV - + 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT + col0 / - + 81 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - 79 * + col1 / - col1 * + ( - 14 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + 76 + + col1 * + ( - col1 ) FROM tab0
----
-355
-6438
174

query II rowsort
SELECT col0, col0 + - 12 AS col2 FROM tab0
----
15
3
87
75
97
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - MAX( - col0 ) FROM tab1 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-3921
SELECT - MAX ( - col0 ) FROM tab1 WHERE NULL IS NULL
----
51

query I rowsort
SELECT DISTINCT + 5 + col1 AS col2 FROM tab2
----
56
72
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT DISTINCT + col2 - + col0 DIV - 68 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT + col2 - + col0 / - 68 FROM tab1
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE col0 - + - 51 + + + 69 IN ( + 3 * - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE col0 - + - 51 + + + 69 IN ( + 3 * - - col2 )
----
0

query I rowsort
SELECT + 81 - + col0 FROM tab2 AS cor0
----
17
35
6

query I rowsort
SELECT ALL + col1 - - + col1 FROM tab2 cor0
----
102
134
154

query I rowsort
SELECT DISTINCT col0 - + - col2 AS col2 FROM tab1 cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT COUNT( ALL + 94 ) + + 85 FROM tab0, tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT COUNT ( ALL + 94 ) + + 85 FROM tab0, tab0 AS cor0
----
94

query I rowsort
SELECT ALL + col0 * - ( - 20 ) FROM tab1
----
1020
1700
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT ALL + col0 * col0 DIV col0 * + - col0 * - col1 FROM tab0 AS cor0
----
158949
18225
9409

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL + col0 * col0 / col0 * + - col0 * - col1 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT - SUM( - ( - - 92 ) ) AS col1 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3933
SELECT - SUM ( - ( - - 92 ) ) AS col1 FROM tab0 AS cor0
----
276

query I rowsort
SELECT ALL 64 * + - col2 AS col0 FROM tab1
----
-3776
-4352
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( NULL AS SIGNED ) * - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( NULL AS INTEGER ) * - - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + COUNT( * ) + 9 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + COUNT ( * ) + 9 FROM tab1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col1 * + - 83 + + 11 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1151
-3890
-404

onlyif mysql # DIV for integer division: 
query II rowsort label-3939
SELECT - 59 + + col1 DIV - + col1, + col0 + - - 24 col0 FROM tab2 AS cor0
----
-60
70
-60
88
-60
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3939
SELECT - 59 + + col1 / - + col1, + col0 + - - 24 col0 FROM tab2 AS cor0
----
-60
70
-60
88
-60
99

query I rowsort
SELECT DISTINCT - ( + + 75 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - 8 FROM tab0 cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT COUNT( + 16 ) - + CAST( + 36 AS SIGNED ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3943
SELECT COUNT ( + 16 ) - + CAST ( + 36 AS INTEGER ) FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT DISTINCT + 73 / - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE + - col0 BETWEEN NULL AND col0 AND NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + 73 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE + - col0 BETWEEN NULL AND col0 AND NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 94 + col0 - col1 AS col0 FROM tab0 AS cor0
----
160
190
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL + + COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + + COUNT ( col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3947
SELECT CAST( NULL AS SIGNED ) * 21 + COUNT( * ) / + - ( - 98 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT CAST ( NULL AS INTEGER ) * 21 + COUNT ( * ) / + - ( - 98 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NULL <= - 45
----

query II rowsort
SELECT ALL - col1 AS col1, + 79 * ( col1 ) + + 78 FROM tab0 AS cor0
----
-1
157
-21
1737
-81
6477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT - col2 AS col2 FROM tab0 WHERE ( - col2 + - 92 + - col1 ) BETWEEN ( + - 19 ) * CAST( NULL AS SIGNED ) * - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3950
SELECT - col2 AS col2 FROM tab0 WHERE ( - col2 + - 92 + - col1 ) BETWEEN ( + - 19 ) * CAST ( NULL AS INTEGER ) * - col1 AND NULL
----

query I rowsort
SELECT 93 + - - 92 + 93 FROM tab2
----
278
278
278

query I rowsort
SELECT ALL + 39 + - 53 FROM tab0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT ALL + col1 / + 10 / - 20 AS col0 FROM tab1 WHERE NOT ( NULL IN ( + 1 + + CAST( + - col1 AS SIGNED ), 17 ) )
----

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + col1 / + 10 / - 20 AS col0 FROM tab1 WHERE NOT ( NULL IN ( + 1 + + CAST ( + - col1 AS INTEGER ), 17 ) )
----

query I rowsort
SELECT DISTINCT col2 * + 10 AS col2 FROM tab1
----
590
680
960

query I rowsort
SELECT DISTINCT + 15 + + col0 AS col2 FROM tab2 WHERE NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT + CAST( + - 47 AS SIGNED ) FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-3956
SELECT + CAST ( + - 47 AS INTEGER ) FROM tab2 AS cor0
----
-47
-47
-47

query II rowsort
SELECT DISTINCT col2, + 35 AS col1 FROM tab2
----
23
35
40
35
58
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3960
SELECT ALL ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3961
SELECT - SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - 89 * + + col2 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT COUNT( * ) + - MAX( DISTINCT col1 ) FROM tab0 cor0 WHERE NULL IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT COUNT ( * ) + - MAX ( DISTINCT col1 ) FROM tab0 cor0 WHERE NULL IS NULL
----
-78

query II rowsort
SELECT 24, + col1 FROM tab2 AS cor0
----
24
51
24
67
24
77

query I rowsort
SELECT DISTINCT 74 + - + 15 FROM tab1
----
59

query I rowsort
SELECT DISTINCT - 40 FROM tab0 WHERE - 35 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL MAX( col2 ) * - 37 * - - COUNT( * ) + 34 * + COUNT( * ) AS col1 FROM tab0
----
-10887

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL MAX ( col2 ) * - 37 * - - COUNT ( * ) + 34 * + COUNT ( * ) AS col1 FROM tab0
----
-10887

query I rowsort
SELECT ALL + 0 FROM tab0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 44 BETWEEN + col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT + COUNT( * ) * 97 AS col0 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-3971
SELECT + COUNT ( * ) * 97 AS col0 FROM tab2
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT + - 88 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + - 88 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT DISTINCT - col0 DIV 54 + 86 FROM tab1 AS cor0
----
85
86

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT - col0 / 54 + 86 FROM tab1 AS cor0
----
85
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3975
SELECT - CAST( NULL AS DECIMAL ) + + 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3975
SELECT - CAST ( NULL AS REAL ) + + 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT ALL col2 + + + CAST( NULL AS SIGNED ) * + 26 * col1 + 35 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL col2 + + + CAST ( NULL AS INTEGER ) * + 26 * col1 + 35 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 78 + + col0 FROM tab2
----
124
142
153

query I rowsort
SELECT + col2 + 51 FROM tab1
----
110
119
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL + MAX( + 9 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + MAX ( + 9 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 75 - + + col0 FROM tab1 AS cor0
----
-10
-16
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3982
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN ( col0 * + CAST( NULL AS SIGNED ) ) AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-3982
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN ( col0 * + CAST ( NULL AS INTEGER ) ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT + MAX( + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + MAX ( + + col1 ) FROM tab1 AS cor0
----
47

query II rowsort
SELECT ALL + 32, col0 * - - 89 + col0 AS col0 FROM tab1
----
32
4590
32
7650
32
8190

query I rowsort
SELECT col2 * + - col1 - + + col0 AS col1 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT 83 - COUNT( - col1 ) col2 FROM tab2
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3986
SELECT 83 - COUNT ( - col1 ) col2 FROM tab2
----
80

query I rowsort
SELECT - col2 - - + 73 FROM tab0
----
-26
26
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT + 11 - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-3988
SELECT + 11 - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3989
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( - + 98 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3989
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( - + 98 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, + col1 + - + col0 AS col2 FROM tab2
----
46
5
64
13
75
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - + col2, col0 + + 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT - MAX( 88 ) col2 FROM tab1
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT DISTINCT - MAX ( 88 ) col2 FROM tab1
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * 5 col1 FROM tab0
----
435
485
75

query I rowsort
SELECT ALL - + col1 + ( + 9 ) + + + 33 FROM tab2 WHERE NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT 8 * + 72 FROM tab1
----
576
576
576

onlyif mysql # aggregate syntax: 
query II rowsort label-3997
SELECT + COUNT( * ) AS col1, + 11 * - 44 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0
-484

skipif mysql # not compatible
query II rowsort label-3997
SELECT + COUNT ( * ) AS col1, + 11 * - 44 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
0
-484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 AND + + 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63 * 0, + col0 - - 50 col2 FROM tab1 AS cor0
----
0
101
0
135
0
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT - - ( + + MIN( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4001
SELECT - - ( + + MIN ( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4002
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL col2 * 80 AS col0 FROM tab1
----
4720
5440
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT + + COUNT( * ) col2 FROM tab0 WHERE col2 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4004
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab0 WHERE col2 = NULL
----
0

query II rowsort
SELECT - col2 AS col1, col0 - 25 FROM tab2
----
-23
21
-40
39
-58
50

query II rowsort
SELECT + col0, + col0 * + 36 * + + 96 * + - col0 FROM tab1
----
51
-8989056
85
-24969600
91
-28619136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4007
SELECT DISTINCT * FROM tab2 WHERE + + col1 - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4007
SELECT DISTINCT * FROM tab2 WHERE + + col1 - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col2, - col2 * + - 27 FROM tab2
----
51
621
67
1566
77
1080

query I rowsort
SELECT DISTINCT - col0 + - - 7 AS col1 FROM tab1
----
-44
-78
-84

query I rowsort
SELECT DISTINCT + 76 + + col0 AS col0 FROM tab0
----
163
173
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, + 85 col0 FROM tab0 WHERE NULL IS NULL
----
10
85
47
85
99
85

query I rowsort
SELECT DISTINCT 13 * col2 + ( col1 ) AS col0 FROM tab0 AS cor0
----
1288
151
692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - CAST( + + col0 AS SIGNED ) - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - CAST ( + + col0 AS INTEGER ) - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL + COUNT( * ) * - - CAST( NULL AS SIGNED ) - - 20 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) - - 20 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 92 + + + 2 AS col1 FROM tab0 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
94
94
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 18 ) IN ( - 36, + col0 )
----

query II rowsort
SELECT - col2 / - + col2 AS col1, col1 * - 81 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT - col0 - - + col2 + ( + - col0 ) + + col2 FROM tab1 AS cor0
----
-46
-52
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 10 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 + 62 FROM tab0 AS cor0
----
-25
-35
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab1 AS cor0 WHERE + 53 <= ( - + col2 )
----

query I rowsort
SELECT + col2 + + + col1 AS col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * 16 / + 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - 56 + + COUNT( * ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-4025
SELECT - 56 + + COUNT ( * ) FROM tab0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT ALL - 76 * + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-3572
-7524
-760

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL - 76 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-3572
-7524
-760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4027
SELECT + SUM( 98 ) * + + MIN( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT + SUM ( 98 ) * + + MIN ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * 74 FROM tab1
----
3774
6290
6734

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = col1
----

query I rowsort
SELECT - - 91 FROM tab2 cor0
----
91
91
91

query II rowsort
SELECT ALL - 72, + 63 AS col0 FROM tab0
----
-72
63
-72
63
-72
63

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT NULL > + col2 + - 78 * + col2
----

query I rowsort
SELECT + col0 * + - col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - COUNT( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - COUNT ( ALL + - col2 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 71 * 45 + 42 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 25 + - col1 AS col0 FROM tab0 cor0
----
-56
24
4

query II rowsort
SELECT ALL 91 AS col1, col1 AS col2 FROM tab1 AS cor0
----
91
14
91
47
91
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( col1 ) col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4039
SELECT + + 57 DIV - - 15 + - COUNT( * ) col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4039
SELECT + + 57 / - - 15 + - COUNT ( * ) col1 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4040
SELECT ALL - CAST( NULL AS SIGNED ), + ( col2 ) FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL - CAST ( NULL AS INTEGER ), + ( col2 ) FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT ALL col2, col0 * 95 FROM tab0 AS cor0
----
10
8265
47
1425
99
9215

query I rowsort
SELECT - col0 + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 > 4 + 17 * + 86 * - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 61 * + 87 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 * + - col2 >= - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 36 - + - 68
----

query I rowsort
SELECT ALL col2 + 28 AS col1 FROM tab1
----
124
87
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 * + col0 * + col1 * - + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + col0 ) * 1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 = + - 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 31 / 10 AS col0 FROM tab1 cor0 WHERE NOT - ( - col2 ) NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT 0 DIV + + 65 + - - 4 col0 FROM tab2
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4051
SELECT 0 / + + 65 + - - 4 col0 FROM tab2
----
4
4
4

query II rowsort
SELECT ALL - ( - col2 ) + - 0 AS col1, 85 FROM tab0
----
10
85
47
85
99
85

query I rowsort
SELECT col1 * - col1 * col1 * - 23 AS col1 FROM tab0
----
12223143
213003
23

query I rowsort
SELECT ( + 19 ) AS col0 FROM tab2 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT - MAX( + + ( 78 ) ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-78
3

skipif mysql # not compatible
query II rowsort label-4055
SELECT - MAX ( + + ( 78 ) ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-78
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 22 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 BETWEEN + 23 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 * - ( + - col1 ) AS col1, - col0 FROM tab1 cor0
----
-196
-51
-2209
-91
-25
-85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <= ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4061
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + col2 + + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4061
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, + col2 + + CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT DISTINCT 39 * + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-351

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT 39 * + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-351

query I rowsort
SELECT ALL - - 96 FROM tab0 WHERE NOT NULL < + col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + 88 * COUNT( * ) col0 FROM tab2
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4064
SELECT + 88 * COUNT ( * ) col0 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL MIN( + col1 ) * + + COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL MIN ( + col1 ) * + + COUNT ( * ) FROM tab2
----
153

query I rowsort
SELECT - 54 * + + col0 * 18 AS col1 FROM tab2
----
-44712
-62208
-72900

onlyif mysql # DIV for integer division: 
query II rowsort label-4067
SELECT - 72 DIV - + 88, - 36 AS col1 FROM tab2
----
0
-36
0
-36
0
-36

skipif mysql # not compatible
query II rowsort label-4067
SELECT - 72 / - + 88, - 36 AS col1 FROM tab2
----
0
-36
0
-36
0
-36

query II rowsort
SELECT col1 * + 98, col0 + - + col2 * - 43 AS col0 FROM tab1
----
1372
4179
4606
3015
490
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT + COUNT( * ) * 43 * + 38 FROM tab0
----
4902

skipif mysql # not compatible
query I rowsort label-4069
SELECT + COUNT ( * ) * 43 * + 38 FROM tab0
----
4902

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT COUNT( * ) * - - 46 AS col1 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-4070
SELECT COUNT ( * ) * - - 46 AS col1 FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT + COUNT( + + ( + 55 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4071
SELECT + COUNT ( + + ( + 55 ) ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col2 * - col2 - + - col0 * - col2 AS col2, - 70 FROM tab0 AS cor0
----
-19404
-70
-2914
-70
-970
-70

query I rowsort
SELECT DISTINCT + - col1 + - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL < 22
----

query I rowsort
SELECT - ( + 45 ) * - 46 * + ( - - 9 ) FROM tab2
----
18630
18630
18630

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 14 NOT BETWEEN - col2 AND col0 + 76
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT 17 + - 94 + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4076
SELECT - + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT 17 + - 94 + - col0 IS NULL
----
-3

query I rowsort
SELECT DISTINCT - + ( 41 ) FROM tab1 cor0
----
-41

query I rowsort
SELECT 5 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
5
5
5

query I rowsort
SELECT ALL 7 - + col1 / 14 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 27 * + col1 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT SUM( DISTINCT + + ( - + col0 ) ) col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4081
SELECT SUM ( DISTINCT + + ( - + col0 ) ) col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab1 WHERE ( - - col2 ) <> NULL
----

query I rowsort
SELECT 28 + - col2 AS col0 FROM tab0
----
-19
-71
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4084
SELECT + + 74 * col0 + col1 - 15 * - + 55 * - CAST( NULL AS DECIMAL ) FROM tab2 WHERE + col0 + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4084
SELECT + + 74 * col0 + col1 - 15 * - + 55 * - CAST ( NULL AS REAL ) FROM tab2 WHERE + col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL - SUM( + col1 ) * + 53 + - 39 FROM tab0
----
-5498

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - SUM ( + col1 ) * + 53 + - 39 FROM tab0
----
-5498

query III rowsort
SELECT * FROM tab2 WHERE + col2 * 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + 7 + - 13 FROM tab2
----
344
456
526

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 18 BETWEEN + 33 * col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 18 BETWEEN + 33 * col2 AND NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT ALL col0 - + - 56 + - col2 DIV + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
102
120
131

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL col0 - + - 56 + - col2 / + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
102
120
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT + CAST( - + 62 AS SIGNED ) * - + COUNT( * ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4091
SELECT + CAST ( - + 62 AS INTEGER ) * - + COUNT ( * ) FROM tab1 AS cor0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4092
SELECT - 45 DIV - 76 - ( - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4092
SELECT - 45 / - 76 - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 49 * + col0 AS col2 FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT ALL col2 + - + 50 - + - 89 * + ( - col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + 62 * + ( - COUNT( * ) ) - + + 48 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-606

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 62 * + ( - COUNT ( * ) ) - + + 48 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * - + 14 col1 FROM tab2, tab2 cor0
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT - 60 DIV 75 AS col1 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4097
SELECT - 60 / 75 AS col1 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 83 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - 32 FROM tab1 AS cor0 WHERE NOT ( 66 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - ( + 50 ) FROM tab0 AS cor0
----
4350
4850
750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 81 * - + col2 + 92 / 21 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + + col2 col0 FROM tab0 AS cor0
----
198
220
3854

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4105
SELECT * FROM tab0 WHERE NOT - 0 * + 89 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4105
SELECT * FROM tab0 WHERE NOT - 0 * + 89 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + 63 * 26 IS NOT NULL
----

query II rowsort
SELECT ALL 63 * - col2 * + 23, 44 AS col2 FROM tab0
----
-143451
44
-14490
44
-68103
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4108
SELECT ALL + 93, ( + COUNT( * ) ) + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4108
SELECT ALL + 93, ( + COUNT ( * ) ) + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT - 87 * - 89 * col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4109
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 87 * - 89 * col2 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT DISTINCT col2 DIV col1 * + col2 FROM tab0
----
0
9801

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT col2 / col1 * + col2 FROM tab0
----
0
9801

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - COUNT( col0 ) FROM tab1 WHERE NOT + - 54 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT - COUNT ( col0 ) FROM tab1 WHERE NOT + - 54 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( 98 ) AS col1 FROM tab1
----
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * 6 + col1 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - + COUNT( - + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4115
SELECT - + COUNT ( - + col2 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col2 AS col2, + col2 * col1 AS col1 FROM tab0 cor0
----
-10
210
-47
3807
-99
99

query I rowsort
SELECT 73 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
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-4118
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col0
----

query I rowsort
SELECT DISTINCT + 71 + + col1 + + + 86 AS col1 FROM tab1 AS cor0
----
162
171
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT - + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT - + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT - - 16 * CAST( NULL AS SIGNED ) * - 37 + - - col0 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT - - 16 * CAST ( NULL AS INTEGER ) * - 37 + - - col0 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL COUNT( * ) * 98 FROM tab0 cor0
----
294

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL COUNT ( * ) * 98 FROM tab0 cor0
----
294

query I rowsort
SELECT + - col1 + + col1 * + 0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4125
SELECT DISTINCT - col2 DIV col0 * + 76 DIV col0 AS col0, 22 col1 FROM tab1 AS cor0
----
-1
22
0
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4125
SELECT DISTINCT - col2 / col0 * + 76 / col0 AS col0, 22 col1 FROM tab1 AS cor0
----
-1
22
0
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + + 78 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 FROM tab1 WHERE col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT COUNT( * ) FROM tab0 WHERE - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT COUNT ( * ) FROM tab0 WHERE - + col0 IS NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT - MIN( col2 ) col2 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4130
SELECT - MIN ( col2 ) col2 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col2, + col2, 18 )
----

query I rowsort
SELECT ALL + 65 + - col0 FROM tab0
----
-22
-32
50

query I rowsort
SELECT + - 24 + + 53 + + 59 + - - col1 FROM tab1 AS cor0
----
102
135
93

query I rowsort
SELECT DISTINCT - 85 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 54 col2 FROM tab1
----
105
139
145

query I rowsort
SELECT DISTINCT - + 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4137
SELECT col1 DIV - CAST( 44 AS SIGNED ) AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4137
SELECT col1 / - CAST ( 44 AS INTEGER ) AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query II rowsort label-4139
SELECT - + COUNT( * ) col2, + SUM( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-3
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4139
SELECT - + COUNT ( * ) col2, + SUM ( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-3
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 5 / + ( + col0 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 82 * + col1 AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col1, ( - col1 ) col0 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT DISTINCT + - col0 AS col2, + 89 AS col1 FROM tab2 AS cor0
----
-46
89
-64
89
-75
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-4144
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + + col1 * 84 + + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - col0 AND - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4147
SELECT COUNT( * ), SUM( col0 ) AS col1 FROM tab2 AS cor0
----
3
185

skipif mysql # not compatible
query II rowsort label-4147
SELECT COUNT ( * ), SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
3
185

query II rowsort
SELECT col0, - col1 + col2 + + 26 FROM tab0 AS cor0
----
15
-8
87
15
97
124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4149
SELECT ALL ( - - 44 ), + ( ( - + 20 ) ) * - - ( 73 ) * ( - CAST( - + 61 AS SIGNED ) ) AS col0 FROM tab1
----
44
-89060
44
-89060
44
-89060

skipif mysql # not compatible
query II rowsort label-4149
SELECT ALL ( - - 44 ), + ( ( - + 20 ) ) * - - ( 73 ) * ( - CAST ( - + 61 AS INTEGER ) ) AS col0 FROM tab1
----
44
-89060
44
-89060
44
-89060

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 24 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - col0 * + - 75 * + col2 FROM tab0
----
52875
65250
720225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4155
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) / - 64 > + 90
----

skipif mysql # not compatible
query III rowsort label-4155
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) / - 64 > + 90
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT ALL - COUNT( * ) * + 60 DIV - COUNT( * ) AS col1 FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - COUNT ( * ) * + 60 / - COUNT ( * ) AS col1 FROM tab1 cor0
----
60

query III rowsort
SELECT * FROM tab1 cor0 WHERE 64 BETWEEN - 8 AND - 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT DISTINCT - + col2 DIV - 55 + - col1 AS col2 FROM tab0 AS cor0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT - + col2 / - 55 + - col1 AS col2 FROM tab0 AS cor0
----
-21
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + - ( 10 ) + COUNT( * ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4159
SELECT + - ( 10 ) + COUNT ( * ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4160
SELECT + - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 63 * + - 74 AS col1 FROM tab0 AS cor0
----
-4662

query I rowsort
SELECT + + col1 + + - col1 - - 75 AS col2 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT - col2 * 12 + - + col1 DIV + col2 FROM tab0 AS cor0
----
-1188
-122
-565

skipif mysql # not compatible
query I rowsort label-4163
SELECT - col2 * 12 + - + col1 / + col2 FROM tab0 AS cor0
----
-1188
-122
-565

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT ALL 18 DIV col1 DIV ( - col1 ) + + - ( + col0 ) DIV + 48 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL 18 / col1 / ( - col1 ) + + - ( + col0 ) / + 48 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - 79 + + + 19 AS col2 FROM tab1
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT 87 + - + 14 AS col2, COUNT( ALL + col0 ) * + - 26 * 47 + - 44 AS col2 FROM tab2
----
73
-3710

skipif mysql # not compatible
query II rowsort label-4166
SELECT 87 + - + 14 AS col2, COUNT ( ALL + col0 ) * + - 26 * 47 + - 44 AS col2 FROM tab2
----
73
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT MAX( DISTINCT + + 43 ) * + MAX( 46 ) + 79 FROM tab2
----
2057

skipif mysql # not compatible
query I rowsort label-4167
SELECT MAX ( DISTINCT + + 43 ) * + MAX ( 46 ) + 79 FROM tab2
----
2057

query I rowsort
SELECT DISTINCT - col0 * - col1 + 74 * 4 * + 39 FROM tab2
----
13890
16472
16569

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 WHERE - ( + - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 WHERE - ( + - col0 ) IS NULL
----
0

query I rowsort
SELECT ALL + + col1 - 94 - + col2 * - 91 FROM tab2 AS cor0
----
2050
3623
5251

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + + 26 - - COUNT( - 66 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4172
SELECT + + 26 - - COUNT ( - 66 ) FROM tab0 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 col1 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT col1 AS col1, + 55 * 78 FROM tab2
----
51
4290
67
4290
77
4290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col0 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT MAX( + + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4176
SELECT MAX ( + + col2 ) FROM tab1 cor0
----
96

query II rowsort
SELECT - col0 AS col0, 31 AS col1 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT COUNT( + - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4178
SELECT COUNT ( + - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 / col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT + COUNT( ALL + + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + COUNT ( ALL + + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT - 27 * 87 DIV 23 * + 68 + col2 FROM tab2 AS cor0
----
-6878
-6896
-6913

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - 27 * 87 / 23 * + 68 + col2 FROM tab2 AS cor0
----
-6878
-6896
-6913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - 7 + + + ( + col1 ) AS col2 FROM tab2
----
-51
44
-67
60
-77
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL SUM( - + ( 54 ) ) AS col1 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL SUM ( - + ( 54 ) ) AS col1 FROM tab0
----
-162

query II rowsort
SELECT DISTINCT + 24 AS col2, col2 + 89 + - 12 AS col2 FROM tab2 WHERE + + 24 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT COUNT( - 0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT COUNT ( - 0 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * - - col1 * - col2 col2 FROM tab1
----
-12096
-2655
-28764

query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT - - MIN( 10 ) AS col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - - MIN ( 10 ) AS col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - + col2 + 48 AS col0 FROM tab1 AS cor0
----
-11
-20
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL - - MIN( ALL + + col0 ) AS col1 FROM tab0 cor0 WHERE + CAST( ( + - col0 ) AS SIGNED ) BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - - MIN ( ALL + + col0 ) AS col1 FROM tab0 cor0 WHERE + CAST ( ( + - col0 ) AS INTEGER ) BETWEEN NULL AND - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT ALL - COUNT( DISTINCT col1 ) col1, COUNT( * ) AS col0 FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4193
SELECT ALL - COUNT ( DISTINCT col1 ) col1, COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
3

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - + ( col2 )
----

query I rowsort
SELECT + col2 - 16 AS col2 FROM tab2
----
24
42
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4196
SELECT ALL + CAST( - + col2 AS SIGNED ) + - col1 + - col0 - + col1 DIV + ( 7 ) + + 36 AS col1 FROM tab0
----
-118
-161
-85

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + CAST ( - + col2 AS INTEGER ) + - col1 + - col0 - + col1 / + ( 7 ) + + 36 AS col1 FROM tab0
----
-118
-161
-85

query I rowsort
SELECT 4 - - - ( ( + col0 ) ) AS col1 FROM tab1
----
-47
-81
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - 80 - - 57 + SUM( - col1 ) AS col2 FROM tab2
----
-218

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 80 - - 57 + SUM ( - col1 ) AS col2 FROM tab2
----
-218

query I rowsort
SELECT DISTINCT + + col1 * + 95 AS col1 FROM tab0 cor0
----
1995
7695
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL + - SUM( 70 ) FROM tab2 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + - SUM ( 70 ) FROM tab2 cor0
----
-210

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT 19 + + col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT + COUNT( ALL - col0 ) * 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-4202
SELECT + COUNT ( ALL - col0 ) * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT - - 8 DIV - 57 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4203
SELECT - - 8 / - 57 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT DISTINCT + col1 DIV + 70 col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4204
SELECT DISTINCT + col1 / + 70 col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 63 + - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - + COUNT( col0 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4206
SELECT - + COUNT ( col0 ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 16 ) col2 FROM tab2
----
16

query I rowsort
SELECT DISTINCT col1 + - + ( col1 ) * + col0 AS col1 FROM tab0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4210
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) + + + CAST( ( - - col2 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4210
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) + + + CAST ( ( - - col2 ) AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 72 = + 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - 67 + + COUNT( * ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-4212
SELECT - 67 + + COUNT ( * ) FROM tab0
----
-64

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab1 WHERE NOT + 0 <> 80
----

query I rowsort
SELECT ALL + 9 + ( + col1 ) + - - col0 FROM tab1 AS cor0
----
147
74
99

query I rowsort
SELECT DISTINCT 50 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 10 - + col0 * col2 / - - 69 IS NOT NULL
----

query I rowsort
SELECT ALL ( + - 50 ) FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + col0 * + 88 FROM tab2 AS cor0 WHERE col0 * - + col1 - col2 / + + col2 IS NOT NULL
----
4048
5632
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL - ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + col0 + - col0 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT - 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT + - col1 * - - col1 - + - col2 FROM tab0 AS cor0
----
-431
-6514
98

query I rowsort
SELECT col1 * ( - + col0 ) + - 78 FROM tab1 cor0
----
-4355
-503
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 - + + col0 col1 FROM tab0 AS cor0
----
-153
-163
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT - 68 DIV - 6 + COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4225
SELECT - 68 / - 6 + COUNT ( * ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT - + col2 * - 22 + + - 29 FROM tab2 AS cor0
----
1247
477
851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4227
SELECT 32 DIV - - COUNT( * ) + + - ( MAX( col2 ) ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4227
SELECT 32 / - - COUNT ( * ) + + - ( MAX ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT + 5 + - - CAST( NULL AS DECIMAL ) * - + 21 + - 3 - + ( - 22 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT + 5 + - - CAST ( NULL AS REAL ) * - + 21 + - 3 - + ( - 22 ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + - col0 FROM tab1 WHERE - + col0 NOT BETWEEN col0 * - - ( 76 ) AND - col2
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - + SUM( - - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4230
SELECT - + SUM ( - - col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - col2 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 51 * + - 67 AS col1 FROM tab2 AS cor0
----
-3417
-3417
-3417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT DISTINCT - COUNT( DISTINCT - - col2 ) DIV + MAX( + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT - COUNT ( DISTINCT - - col2 ) / + MAX ( + col0 ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - col1 * + 86 * - - 49, - col1 AS col2 FROM tab0
----
-341334
-81
-4214
-1
-88494
-21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 85 BETWEEN + - col0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - COUNT( * ) * + - 42 - - + 44 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
422

skipif mysql # not compatible
query I rowsort label-4236
SELECT - COUNT ( * ) * + - 42 - - + 44 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
422

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT - - 51 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT - - 51 / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT - CAST( NULL AS SIGNED ) * + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT - CAST ( NULL AS INTEGER ) * + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + COUNT( * ) * 33 + + COUNT( - + col0 ) AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4239
SELECT + COUNT ( * ) * 33 + + COUNT ( - + col0 ) AS col2 FROM tab1 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + COUNT( * ) * MAX( - 15 ) + + COUNT( * ) + + + 86 AS col2 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COUNT ( * ) * MAX ( - 15 ) + + COUNT ( * ) + + + 86 AS col2 FROM tab2 AS cor0
----
44

query I rowsort
SELECT + col1 + + - col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - 91 + + col0 FROM tab2 AS cor0
----
-16
-27
-45

query I rowsort
SELECT - col1 * - 37 * + - col1 + - 74 FROM tab1 AS cor0
----
-7326
-81807
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT DISTINCT - ( - - COUNT( * ) ) * 82 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - ( - - COUNT ( * ) ) * 82 FROM tab0
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT DISTINCT col2 * - col0 DIV col0 AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT col2 * - col0 / col0 AS col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + 79 * + 11
----

query I rowsort
SELECT DISTINCT + + 95 FROM tab2 WHERE + 70 > + + col2 + + col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT DISTINCT + col1 + + col2 + - - 81 DIV + col1 FROM tab1
----
115
116
80

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + col1 + + col2 + - - 81 / + col1 FROM tab1
----
115
116
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4249
SELECT DISTINCT CAST( + 20 AS SIGNED ), + col1 AS col0 FROM tab0
----
20
1
20
21
20
81

skipif mysql # not compatible
query II rowsort label-4249
SELECT DISTINCT CAST ( + 20 AS INTEGER ), + col1 AS col0 FROM tab0
----
20
1
20
21
20
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4250
SELECT + COUNT( * ) col1, MIN( + col1 ) * + MIN( - CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE + col1 IS NOT NULL
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4250
SELECT + COUNT ( * ) col1, MIN ( + col1 ) * + MIN ( - CAST ( NULL AS REAL ) ) FROM tab2 WHERE + col1 IS NOT NULL
----
3
NULL

query I rowsort
SELECT + col2 * + col1 * - 68 AS col0 FROM tab2
----
-209440
-264248
-79764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col0 FROM tab2
----
-46

query I rowsort
SELECT ALL + + 26 + col1 AS col2 FROM tab0 AS cor0
----
107
27
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ( + COUNT( * ) ) + + 26 AS col2 FROM tab0 AS cor0 WHERE 32 IS NOT NULL
----
29

skipif mysql # not compatible
query I rowsort label-4254
SELECT ( + COUNT ( * ) ) + + 26 AS col2 FROM tab0 AS cor0 WHERE 32 IS NOT NULL
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT DISTINCT + + 42 DIV col1 * - - col0 - + - ( 82 ) AS col2 FROM tab1 cor0
----
235
762
82

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + + 42 / col1 * - - col0 - + - ( 82 ) AS col2 FROM tab1 cor0
----
235
762
82

query I rowsort
SELECT ALL + - col2 - col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT DISTINCT - col0 * - - 45 AS col2, 56 * - col2 FROM tab1
----
-2295
-5376
-3825
-3304
-4095
-3808

query I rowsort
SELECT ALL + col0 * col2 * + + col2 FROM tab2
----
102400
24334
252300

query II rowsort
SELECT ALL col2 AS col0, + 41 AS col0 FROM tab1
----
59
41
68
41
96
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT DISTINCT 69 * + - col0 * - col1 DIV + + col1 AS col0 FROM tab1
----
3519
5865
6279

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT 69 * + - col0 * - col1 / + + col1 AS col0 FROM tab1
----
3519
5865
6279

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT col0 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col1 FROM tab0
----
63
63
63

query II rowsort
SELECT ALL col2 AS col1, - col2 * col2 FROM tab2
----
23
-529
40
-1600
58
-3364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4264
SELECT 89 DIV COUNT( * ) DIV - 84 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT 89 / COUNT ( * ) / - 84 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + + 52 + - 50 + - 17 + + col2 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) <> + 30
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4266
SELECT ALL + + 57 AS col1, + ( 89 ) DIV - SUM( DISTINCT + - col2 ) FROM tab0 AS cor0
----
57
0

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL + + 57 AS col1, + ( 89 ) / - SUM ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
57
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - 63 NOT BETWEEN + + col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - COUNT( DISTINCT - + 22 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4268
SELECT - COUNT ( DISTINCT - + 22 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - 35 * + ( + col1 ) FROM tab1 cor0
----
-1645
-175
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 - col0 col2 FROM tab1 AS cor0
----
-110
-2300
-247

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 67 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col0 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - SUM( - - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4273
SELECT - SUM ( - - col0 ) FROM tab1
----
-227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 76 ) * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT + MAX( ALL 52 ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4275
SELECT + MAX ( ALL 52 ) / - + COUNT ( * ) FROM tab2 AS cor0
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4276
SELECT DISTINCT - col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col2 * col1 / col2 * + 95 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * + 39 FROM tab0 AS cor0
----
-3159
-39
-819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col1 col2 FROM tab1 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + 68 * - 54 AS col1 FROM tab1 AS cor0
----
-3672
-3672
-3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT - 69 DIV - MAX( - col0 ) + MAX( ( 33 ) ) + + - COUNT( * ) * - COUNT( * ) + - - 27 AS col2 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4282
SELECT - 69 / - MAX ( - col0 ) + MAX ( ( 33 ) ) + + - COUNT ( * ) * - COUNT ( * ) + - - 27 AS col2 FROM tab2 AS cor0
----
68

query I rowsort
SELECT DISTINCT + 1 * + col2 * - + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT ALL col1 DIV - + 80 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL col1 / - + 80 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + + + col0 * - col1 * col2 FROM tab0
----
-18249
-57024
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4286
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) / + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4286
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) / + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * col1 * - col1 + + + col2 FROM tab1
----
103891
184
2840

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT DISTINCT col1 * - col0 DIV + col0 + + col2 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT col1 * - col0 / + col0 + + col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + 26 + + - COUNT( * ) + - + 58 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-4289
SELECT + 26 + + - COUNT ( * ) + - + 58 FROM tab1
----
-35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 96 >= NULL
----

query I rowsort
SELECT - 39 * - - 45 AS col2 FROM tab0 AS cor0
----
-1755
-1755
-1755

query I rowsort
SELECT + 56 * 4 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 76 / col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 52 + col0 FROM tab1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL 92 * + col0 AS col0 FROM tab1
----
4692
7820
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL COUNT( * ) + - COUNT( - 99 + + col0 * - ( col2 * col1 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL COUNT ( * ) + - COUNT ( - 99 + + col0 * - ( col2 * col1 ) ) FROM tab0
----
0

query I rowsort
SELECT 64 AS col1 FROM tab1 WHERE col1 / 77 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4299
SELECT - MIN( DISTINCT col1 ) DIV + COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4299
SELECT - MIN ( DISTINCT col1 ) / + COUNT ( * ) FROM tab2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT - col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT - col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 - + col0 FROM tab2
----
-100
-118
-129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4302
SELECT * FROM tab2 WHERE ( - 19 ) IN ( + CAST( + 50 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4302
SELECT * FROM tab2 WHERE ( - 19 ) IN ( + CAST ( + 50 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4303
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT IN ( ( ( 71 ) ) * col2 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4303
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT IN ( ( ( 71 ) ) * col2 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND ( ( - 36 ) * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT 91 FROM tab0 WHERE ( + ( CAST( NULL AS SIGNED ) ) * 2 + col0 ) < ( + 93 )
----

skipif mysql # not compatible
query I rowsort label-4306
SELECT 91 FROM tab0 WHERE ( + ( CAST ( NULL AS INTEGER ) ) * 2 + col0 ) < ( + 93 )
----

query I rowsort
SELECT col0 * - 64 FROM tab2
----
-2944
-4096
-4800

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 * ( + col1 ) ) NOT BETWEEN ( 89 ) AND + 27 - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4309
SELECT ALL - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col2 / 31 + col1 ) BETWEEN NULL AND ( - col0 - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - CAST ( NULL AS REAL ) * COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col2 / 31 + col1 ) BETWEEN NULL AND ( - col0 - col0 )
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - 96 AND ( + col1 )
----

query I rowsort
SELECT 79 FROM tab2 WHERE NOT - 21 * + 76 IS NULL
----
79
79
79

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col1 * + ( 92 ) )
----

query I rowsort
SELECT + ( 62 ) FROM tab1
----
62
62
62

query I rowsort
SELECT 9 / col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4316
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - col1 * col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - CAST ( NULL AS REAL ) - col1 * col2 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT 58 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4317
SELECT 58 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * 34 AS col1 FROM tab0 AS cor0
----
-1598
-3366
-340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT + COUNT( * ) * + MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND col2 / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT + COUNT ( * ) * + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND col2 / 83
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 36 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 22 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 + + col2 ) IS NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4323
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT - 62 + - MAX( DISTINCT col1 ) FROM tab2
----
-139

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT - 62 + - MAX ( DISTINCT col1 ) FROM tab2
----
-139

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - col0 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT - COUNT( * ) + + SUM( ALL CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4326
SELECT - COUNT ( * ) + + SUM ( ALL CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 68 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col1 + + 5 FROM tab2 AS cor0
----
-46
-62
-72

query I rowsort
SELECT - col2 + ( + 91 ) AS col1 FROM tab0 AS cor0
----
-8
44
81

query I rowsort
SELECT ALL col1 * 52 AS col2 FROM tab1 AS cor0
----
2444
260
728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4331
SELECT + col2 + - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT + col2 + - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
140
51
88

query I rowsort
SELECT DISTINCT 56 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ALL ( col0 ) DIV - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL ( col0 ) / - col1 FROM tab0
----
-4
-97
0

query I rowsort
SELECT DISTINCT col1 + - 5 AS col0 FROM tab2
----
46
62
72

query III rowsort
SELECT ALL * FROM tab1 WHERE 61 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT CAST( + - COUNT( * ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4337
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL + 34 + + - col1 * col2 AS col2 FROM tab2
----
-1139
-3046
-3852

query I rowsort
SELECT ALL - col0 + + 6 AS col1 FROM tab2
----
-40
-58
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) >= + col0 + col0
----
0

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) >= + col0 + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + 68 * - COUNT( * ) FROM tab2 WHERE NULL <> ( - 8 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT + 68 * - COUNT ( * ) FROM tab2 WHERE NULL <> ( - 8 * col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - 84 AND - ( - 42 ) * - col2
----

query I rowsort
SELECT col1 * + + 24 AS col0 FROM tab0
----
1944
24
504

query I rowsort
SELECT ALL col1 + - + col2 * - col0 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT 43 - - 44 AS col2 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT - - 78 - col1 AS col1 FROM tab2 cor0
----
1
11
27

query I rowsort
SELECT ALL col1 - + + col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT + CAST( NULL AS SIGNED ) / + 61 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4348
SELECT + CAST ( NULL AS INTEGER ) / + 61 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 26 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT DISTINCT col2, 71 FROM tab0
----
10
71
47
71
99
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT COUNT( * ) * + ( ( COUNT( * ) ) ) AS col0 FROM tab1 WHERE ( - - 60 + 8 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT COUNT ( * ) * + ( ( COUNT ( * ) ) ) AS col0 FROM tab1 WHERE ( - - 60 + 8 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + col0 + - col2 * col0 ) AND - col2
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN - 97 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - col0 * + 73 + - col0 + 91 * col2 AS col0 FROM tab2 AS cor0
----
10678
5405
8248

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT ALL + ( - col1 ) DIV - ( 73 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL + ( - col1 ) / - ( 73 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 IN ( - - 49 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT - 85 * + col1 - 49 / - col0 FROM tab1 cor0 WHERE ( - CAST( + col0 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - 85 * + col1 - 49 / - col0 FROM tab1 cor0 WHERE ( - CAST ( + col0 AS INTEGER ) ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> col1 - - 35
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT ( 68 ) IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 13 AND NULL
----

query I rowsort
SELECT ALL 74 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + MIN( DISTINCT + col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT + MIN ( DISTINCT + col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4364
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( CAST( - + 34 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4364
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( CAST ( - + 34 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + 52 * - - ( - 29 ) / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4366
SELECT CAST( NULL AS SIGNED ), col2 + 81 AS col1 FROM tab0 AS cor0
----
NULL
128
NULL
180
NULL
91

skipif mysql # not compatible
query II rowsort label-4366
SELECT CAST ( NULL AS INTEGER ), col2 + 81 AS col1 FROM tab0 AS cor0
----
NULL
128
NULL
180
NULL
91

query I rowsort
SELECT ALL + ( + col0 ) * + col2 + + + col2 - + 18 - + col2 * 7 FROM tab0 AS cor0
----
405
792
8991

query I rowsort
SELECT DISTINCT 16 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT + col1 / ( + CAST( NULL AS SIGNED ) ) / + 55 + - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + col1 / ( + CAST ( NULL AS INTEGER ) ) / + 55 + - col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * col0 + 1 - + 26 * col2 + col0 + col1 FROM tab1 AS cor0
----
171
5782
6652

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

query II rowsort
SELECT ( + 89 ) + + col0 * col0 AS col1, col0 AS col0 FROM tab0
----
314
15
7658
87
9498
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL - col0 + + 82 DIV - + col0 AS col1 FROM tab0
----
-20
-87
-97

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL - col0 + + 82 / - + col0 AS col1 FROM tab0
----
-20
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 91 + + - col1 col1 FROM tab0
----
1
-92
21
-112
81
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT - COUNT( * ) * - 88 + + 14 * - ( + 6 ) AS col2 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT - COUNT ( * ) * - 88 + + 14 * - ( + 6 ) AS col2 FROM tab2
----
180

query I rowsort
SELECT 59 AS col1 FROM tab1 WHERE - 87 > + col2
----

query I rowsort
SELECT DISTINCT + 17 + + col0 AS col2 FROM tab1
----
102
108
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL CAST( + 7 AS SIGNED ) + col1 AS col0 FROM tab1
----
12
21
54

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL CAST ( + 7 AS INTEGER ) + col1 AS col0 FROM tab1
----
12
21
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT DISTINCT + col0 DIV - col1 FROM tab0 WHERE ( NOT col1 + - - 57 * - - col0 < col2 + 27 )
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + col0 / - col1 FROM tab0 WHERE ( NOT col1 + - - 57 * - - col0 < col2 + 27 )
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + - col1 + + 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + - col1 + + 6 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + col0 - + 20 * + col1 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + - - 44 * col0 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + col0 )
----
3741
4171
645

query I rowsort
SELECT ALL - 48 * + col2 - - col1 FROM tab1 cor0
----
-2827
-3217
-4594

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT COUNT( * ) - + 46 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4384
SELECT COUNT ( * ) - + 46 FROM tab2 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
77

query I rowsort
SELECT + 71 FROM tab2 WHERE NOT + col2 BETWEEN + - 43 AND + - 17 + + col2
----
71
71
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + 58 / + 21 / - - 69 + - - col2 + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT - + MAX( DISTINCT + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - + MAX ( DISTINCT + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT col1 * + 7 AS col1, - col0 FROM tab0 AS cor0
----
147
-87
567
-15
7
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT ALL - col1 * - 42 * ( col1 ) * col2 + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - col1 * - 42 * ( col1 ) * col2 + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 86 * + col1 FROM tab1
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL 26 * - SUM( DISTINCT 92 ) AS col0 FROM tab2
----
-2392

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL 26 * - SUM ( DISTINCT 92 ) AS col0 FROM tab2
----
-2392

query II rowsort
SELECT col1 AS col2, - 34 FROM tab1
----
14
-34
47
-34
5
-34

query III rowsort
SELECT * FROM tab2 WHERE NOT 87 > NULL
----

query I rowsort
SELECT DISTINCT 44 * - col0 FROM tab2
----
-2024
-2816
-3300

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT DISTINCT + COUNT( * ) col2, 80 FROM tab1
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4398
SELECT DISTINCT + COUNT ( * ) col2, 80 FROM tab1
----
3
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( col1 NOT BETWEEN ( - col0 + - col0 * col2 ) AND NULL ) ) OR ( + col0 ) BETWEEN - col1 / 41 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * + + 87 * + col0 IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL - MAX( ALL + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL - MAX ( ALL + col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + + 23 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - 42 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4404
SELECT - 42 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-126

query II rowsort
SELECT - col1 AS col0, + ( + + col2 ) FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT - MAX( 41 ) AS col2 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT - MAX ( 41 ) AS col2 FROM tab0
----
-41

query I rowsort
SELECT col0 + col2 + col2 * col1 AS col2 FROM tab0
----
295
307
3869

query I rowsort
SELECT col2 + - - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL col0 + - + col2 * - col1 + - 73 DIV col0 + + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1445
3378
465

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL col0 + - + col2 * - col1 + - 73 / col0 + + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1445
3378
465

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 57 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE + col2 * + + col1 * + + col0 NOT BETWEEN ( + col1 ) AND - 35
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 20 NOT IN ( 18 * - 40 )
----

query I rowsort
SELECT - 32 * col0 AS col1 FROM tab1
----
-1632
-2720
-2912

query I rowsort
SELECT - 63 - - 87 + col2 + - col0 * + + col2 + - col0 * col0 FROM tab0
----
-18889
-8405
-859

query I rowsort
SELECT DISTINCT 17 + col2 AS col0 FROM tab1
----
113
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL + 94 + COUNT( * ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL + 94 + COUNT ( * ) AS col1 FROM tab1
----
97

query I rowsort
SELECT ALL + + col2 - - - col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL CAST( + 68 AS SIGNED ) * + 75 AS col0 FROM tab1
----
5100
5100
5100

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL CAST ( + 68 AS INTEGER ) * + 75 AS col0 FROM tab1
----
5100
5100
5100

query I rowsort
SELECT + col1 * col1 * - + col0 * - ( col2 ) * + + col2 - col2 FROM tab2
----
1132574642
607129560
63292711

query I rowsort
SELECT ALL - col1 * - - 43 AS col2 FROM tab1
----
-2021
-215
-602

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND ( + - 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + - ( + MAX( + 41 ) ) * - MAX( ALL 89 ) FROM tab1 AS cor0
----
3649

skipif mysql # not compatible
query I rowsort label-4424
SELECT + - ( + MAX ( + 41 ) ) * - MAX ( ALL 89 ) FROM tab1 AS cor0
----
3649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + CAST( - AVG ( DISTINCT - 44 ) AS SIGNED ) AS col0 FROM tab0 cor0
----
44

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + CAST ( - AVG ( DISTINCT - 44 ) AS INTEGER ) AS col0 FROM tab0 cor0
----
44

query II rowsort
SELECT DISTINCT + 89 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
89
-46
89
-64
89
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-4427
SELECT ALL - col0 AS col2, col0 DIV - ( + - col1 ) - + col0 + + col2 * + + 69 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
-46
-1861597
-64
-8500864
-75
-15551846

skipif mysql # not compatible
query II rowsort label-4427
SELECT ALL - col0 AS col2, col0 / - ( + - col1 ) - + col0 + + col2 * + + 69 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
-46
-1861597
-64
-8500864
-75
-15551846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * - - col1 + + col2 - + col1 AS col0, col1 + - col1 + + + 49 col1 FROM tab0 AS cor0
----
-452
49
-6595
49
97
49

query I rowsort
SELECT - ( - 0 ) FROM tab0 cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT + 56 * + 40 * + ( - MIN( DISTINCT col0 ) ) FROM tab0
----
-33600

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + 56 * + 40 * + ( - MIN ( DISTINCT col0 ) ) FROM tab0
----
-33600

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT COUNT( + 17 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4431
SELECT COUNT ( + 17 ) FROM tab1
----
3

query I rowsort
SELECT ALL + - col0 / 55 FROM tab0 WHERE ( NOT NULL NOT BETWEEN NULL AND + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT ALL + 23 DIV 43 * + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL + 23 / 43 * + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT SUM( ALL + 96 ) AS col1, COUNT( * ) FROM tab1
----
288
3

skipif mysql # not compatible
query II rowsort label-4434
SELECT SUM ( ALL + 96 ) AS col1, COUNT ( * ) FROM tab1
----
288
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( - 53 ) ) NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( - col2 ) * + ( + col1 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col2 col1 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4438
SELECT ALL CAST( - + col1 AS SIGNED ), col1 col1 FROM tab2
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4438
SELECT ALL CAST ( - + col1 AS INTEGER ), col1 col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL ( + + col0 ) FROM tab1 WHERE NOT + col2 * - + col2 + col0 + 47 * col0 * col0 < - + col1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab0
----
25

query II rowsort
SELECT ALL + ( + col0 ), + ( + + col2 ) FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT DISTINCT SUM( ALL - - col1 ) * - 44 AS col1, - 23 col2 FROM tab1
----
-2904
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4442
SELECT DISTINCT SUM ( ALL - - col1 ) * - 44 AS col1, - 23 col2 FROM tab1
----
-2904
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4443
SELECT DISTINCT * FROM tab0 WHERE + 7 + - - CAST( 58 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4443
SELECT DISTINCT * FROM tab0 WHERE + 7 + - - CAST ( 58 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - col2 + - col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + col0 + 35 FROM tab0 AS cor0
----
122
132
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE - col0 + + ( col1 ) <= - 2
----
58

query I rowsort
SELECT ALL - + 8 - 13 AS col2 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT - 99 + + - col0 + col1 + col0 FROM tab1 cor0
----
-52
-85
-94

query I rowsort
SELECT ALL + - col0 * - - col2 * - col0 * - ( - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + 40 + col2 FROM tab0
----
139
50
87

query II rowsort
SELECT + col0 + + 2 AS col1, col1 AS col2 FROM tab0
----
17
81
89
21
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE + - col0 BETWEEN - - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 2 * - 51 FROM tab2
----
102
102
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT DISTINCT 59 * - CAST( + 80 AS SIGNED ) AS col1 FROM tab1
----
-4720

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT 59 * - CAST ( + 80 AS INTEGER ) AS col1 FROM tab1
----
-4720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4458
SELECT DISTINCT - 9 - + - 83 FROM tab0 WHERE - col1 + CAST( NULL AS DECIMAL ) NOT BETWEEN - + col2 AND + 69
----

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - 9 - + - 83 FROM tab0 WHERE - col1 + CAST ( NULL AS REAL ) NOT BETWEEN - + col2 AND + 69
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 95 + - - col1 AS col0 FROM tab2
----
-18
-28
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + + MAX( DISTINCT ( + col0 ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + + MAX ( DISTINCT ( + col0 ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
94

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 + col2 BETWEEN NULL AND ( - col0 * - 90 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4463
SELECT DISTINCT COUNT( * ) * - - 30 DIV + 78 * 2 DIV + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT COUNT ( * ) * - - 30 / + 78 * 2 / + + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL - + MAX( + + col1 ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - + MAX ( + + col1 ) AS col2 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL ( - COUNT( * ) ) * - 1 AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL ( - COUNT ( * ) ) * - 1 AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT - col1 DIV ( - + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT - col1 / ( - + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 68 * 13 AS col0 FROM tab0 AS cor0
----
884

query I rowsort
SELECT DISTINCT col2 * col0 * - + col0 * - - col2 + - - 5 * - ( + + col0 ) FROM tab2 AS cor0
----
-1119594
-18922875
-6553920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - 68 NOT BETWEEN NULL AND + 1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT + col0 DIV col0 * col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + col0 / col0 * col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT + CAST( 73 AS SIGNED ) FROM tab0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4471
SELECT + CAST ( 73 AS INTEGER ) FROM tab0
----
73
73
73

query I rowsort
SELECT ALL col2 + 30 FROM tab2
----
53
70
88

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * 78 * - 71 IS NOT NULL
----

query II rowsort
SELECT + col2, 39 AS col0 FROM tab2
----
23
39
40
39
58
39

query I rowsort
SELECT ALL - col1 * - 78 FROM tab1
----
1092
3666
390

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 69 NOT BETWEEN + 80 AND ( + col0 * + 14 )
----
51
67
77

query I rowsort
SELECT 32 * - 60 AS col1 FROM tab1 AS cor0
----
-1920
-1920
-1920

query I rowsort
SELECT col0 + + - col1 * - + 1 AS col1 FROM tab2 cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - + ( + col0 ) col1 FROM tab2
----
2070
4032
5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - - col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 20 - - col0 + 39 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL - + MAX( - + col1 ) * + ( + + 86 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - + MAX ( - + col1 ) * + ( + + 86 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col0 + col0 + - 67 * + col1 / + col0 * 49 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 90 IS NULL
----

query I rowsort
SELECT 73 FROM tab1 WHERE NULL IS NULL
----
73
73
73

query I rowsort
SELECT 31 - + 41 AS col0 FROM tab2
----
-10
-10
-10

query III rowsort
SELECT * FROM tab0 WHERE 89 / 13 * - col1 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4489
SELECT DISTINCT * FROM tab0 WHERE NULL >= - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4489
SELECT DISTINCT * FROM tab0 WHERE NULL >= - CAST ( + col0 AS INTEGER )
----

query II rowsort
SELECT DISTINCT + + 81 * + col1 AS col2, 39 AS col1 FROM tab0 WHERE NOT - 82 + - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4491
SELECT * FROM tab2 AS cor0 WHERE NOT 47 - col0 + - + col1 + + - col2 * col2 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-4491
SELECT * FROM tab2 AS cor0 WHERE NOT 47 - col0 + - + col1 + + - col2 * col2 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT COUNT( ALL - 47 ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( col0 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( ALL - 47 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( col0 ) ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4494
SELECT + SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT + COUNT( * ) * - - ( + COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4495
SELECT + COUNT ( * ) * - - ( + COUNT ( * ) ) FROM tab1
----
9

query I rowsort
SELECT - + col1 * + ( - - col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + ( - + ( - 89 ) ) * - col0 AS col0 FROM tab1 AS cor0
----
-4539
-7565
-8099

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT DISTINCT + col0 DIV - - col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT + col0 / - - col2 AS col1 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 28 + - 84 FROM tab2
----
-56

query I rowsort
SELECT - ( + 86 ) FROM tab1
----
-86
-86
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL - SUM( DISTINCT col1 ) FROM tab1 WHERE - CAST( NULL AS SIGNED ) / 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / 6 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + - col1 col1 FROM tab2
----
-15
-25
1

query III rowsort
SELECT * FROM tab2 WHERE ( - 37 ) < + col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col2 AND + col1 + - - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT + AVG ( - + col2 ) FROM tab0 AS cor0 WHERE - 8 + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT + AVG ( - + col2 ) FROM tab0 AS cor0 WHERE - 8 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 13 AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col0 * + col2 col0 FROM tab0 cor0
----
-690
-783
-9506

query I rowsort
SELECT + + ( + col0 ) - + 84 AS col1 FROM tab2 cor0
----
-20
-38
-9

query I rowsort
SELECT ALL - col2 - + 3 + + 6 AS col1 FROM tab2 AS cor0
----
-20
-37
-55

query I rowsort
SELECT 27 + + + col1 AS col0 FROM tab0 AS cor0
----
108
28
48

query I rowsort
SELECT ALL + - col1 + + - 47 AS col0 FROM tab2 AS cor0
----
-114
-124
-98

query I rowsort
SELECT 63 + 18 * - col1 FROM tab2 cor0
----
-1143
-1323
-855

query I rowsort
SELECT DISTINCT 55 - + 1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL ( - 35 ) FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4517
SELECT - - col1 * col0 * ( - CAST( NULL AS SIGNED ) ) + - ( - + col0 ) * - + 15 * - ( + + 71 ) + + - ( + ( col0 ) ) + - col1 / + 6 AS col0, col2 - - col2 - + col0 * + col0 FROM tab0 AS cor0
----
NULL
-131
NULL
-7549
NULL
-9211

skipif mysql # not compatible
query II rowsort label-4517
SELECT - - col1 * col0 * ( - CAST ( NULL AS INTEGER ) ) + - ( - + col0 ) * - + 15 * - ( + + 71 ) + + - ( + ( col0 ) ) + - col1 / + 6 AS col0, col2 - - col2 - + col0 * + col0 FROM tab0 AS cor0
----
NULL
-131
NULL
-7549
NULL
-9211

query I rowsort
SELECT ALL + + col0 - - 64 FROM tab0 AS cor0
----
151
161
79

query I rowsort
SELECT col1 * + 97 AS col1 FROM tab2
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT MIN( - 43 ) * - 3 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-4520
SELECT MIN ( - 43 ) * - 3 FROM tab0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL - col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - ( + col0 ), - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NOT - col2 BETWEEN + 11 AND - + col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4524
SELECT + COUNT( DISTINCT + + col2 ) DIV - - 9 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT + COUNT ( DISTINCT + + col2 ) / - - 9 AS col2 FROM tab0 cor0
----
0

query II rowsort
SELECT ALL 21 AS col0, - col2 + + col0 AS col1 FROM tab0
----
21
-2
21
-32
21
77

query I rowsort
SELECT - 38 * - + 28 * + + col1 AS col2 FROM tab2
----
54264
71288
81928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT DISTINCT + col0 + + col0 - col1 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + col0 + + col0 - col1 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < + + ( + + CAST( NULL AS DECIMAL ) ) * 28
----

skipif mysql # not compatible
query III rowsort label-4528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < + + ( + + CAST ( NULL AS REAL ) ) * 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT - 55 * + COUNT( * ) + - MAX( + + ( col2 ) ) * 48 AS col0 FROM tab2 AS cor0
----
-2949

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 55 * + COUNT ( * ) + - MAX ( + + ( col2 ) ) * 48 AS col0 FROM tab2 AS cor0
----
-2949

query I rowsort
SELECT DISTINCT + - col0 * + col2 + ( col2 ) * + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-3540
13920
144024

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + SUM( DISTINCT - - 31 ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + SUM ( DISTINCT - - 31 ) AS col1 FROM tab2 AS cor0
----
31

query II rowsort
SELECT DISTINCT - 75 + + col2 - + col1 AS col2, - col2 FROM tab0 AS cor0
----
-109
-47
-86
-10
23
-99

query III rowsort
SELECT * FROM tab0 WHERE - + col2 < - col2
----

query I rowsort
SELECT DISTINCT col2 + + - ( - 98 ) - - col1 * - + col1 * col2 AS col2 FROM tab2
----
-237022
-260206
-59702

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4536
SELECT ALL + 16 - col2 + + col2 - - col0 + - col0 * col1 AS col1 FROM tab1 WHERE + CAST( - + 47 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 16 - col2 + + col2 - - col0 + - col0 * col1 AS col1 FROM tab1 WHERE + CAST ( - + 47 AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4537
SELECT * FROM tab2 WHERE ( + + col2 * - CAST( + + col2 AS SIGNED ) * - col1 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4537
SELECT * FROM tab2 WHERE ( + + col2 * - CAST ( + + col2 AS INTEGER ) * - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 4 * - 26 + col1 AS col2 FROM tab0
----
105
125
185

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT + 18 DIV + col0 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + 18 / + col0 + + col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT ALL + CAST( ( + COUNT( + 22 ) ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + CAST ( ( + COUNT ( + 22 ) ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 27 + + col1 + + col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * col0 = 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + - col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT + - 68 - + col0 AS col2 FROM tab0 cor0
----
-155
-165
-83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 78
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 62 - - col1 + + - col2 * 49 + 55 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL 58 * + CAST( + + 13 AS SIGNED ) FROM tab2
----
754
754
754

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL 58 * + CAST ( + + 13 AS INTEGER ) FROM tab2
----
754
754
754

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 90 > - + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 48 ) FROM tab2
----
48
48
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT COUNT( ALL - col1 ) DIV + 41 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT COUNT ( ALL - col1 ) / + 41 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + 44 * + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
396

skipif mysql # not compatible
query I rowsort label-4552
SELECT + 44 * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
396

query II rowsort
SELECT + 68 AS col2, - col0 FROM tab0
----
68
-15
68
-87
68
-97

query II rowsort
SELECT ALL + col0, - col2 + - 99 AS col1 FROM tab0
----
15
-146
87
-109
97
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col0 FROM tab2
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT - - COUNT( * ) AS col1, 15 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-4556
SELECT - - COUNT ( * ) AS col1, 15 FROM tab0 AS cor0
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL MAX( ( 21 ) ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL MAX ( ( 21 ) ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4558
SELECT ALL - - CAST( NULL AS SIGNED ), - SUM( - 4 ) FROM tab2 AS cor0 WHERE + 88 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4558
SELECT ALL - - CAST ( NULL AS INTEGER ), - SUM ( - 4 ) FROM tab2 AS cor0 WHERE + 88 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----
NULL
NULL

query II rowsort
SELECT ALL 36 AS col1, col2 AS col1 FROM tab1 AS cor0
----
36
59
36
68
36
96

query I rowsort
SELECT - 44 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-44
-44
-44

query I rowsort
SELECT DISTINCT col2 * ( - 86 ) * 60 FROM tab2 AS cor0
----
-118680
-206400
-299280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col2 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT col2 * col2 + - - col1 + CAST( + + 59 AS SIGNED ) + - col2 FROM tab1 cor0
----
3486
4662
9193

skipif mysql # not compatible
query I rowsort label-4563
SELECT col2 * col2 + - - col1 + CAST ( + + 59 AS INTEGER ) + - col2 FROM tab1 cor0
----
3486
4662
9193

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + 14 + COUNT( - col0 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4565
SELECT + 14 + COUNT ( - col0 ) FROM tab2
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + - ( - 11 ) AS col0, - col0 + + - col0 col2 FROM tab0
----
-10
-174
-70
-30
10
-194

query I rowsort
SELECT ( - - 92 ) + - col0 AS col1 FROM tab1
----
1
41
7

query II rowsort
SELECT + col0 + + ( 70 ), col2 AS col0 FROM tab0
----
157
10
167
99
85
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL col2 - - ( - col2 ) + + ( CAST( NULL AS SIGNED ) ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL col2 - - ( - col2 ) + + ( CAST ( NULL AS INTEGER ) ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + COUNT( * ) + + 67 * MIN( + 42 ) AS col2 FROM tab1 AS cor0
----
2817

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + COUNT ( * ) + + 67 * MIN ( + 42 ) AS col2 FROM tab1 AS cor0
----
2817

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - + COUNT( DISTINCT 43 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4571
SELECT - + COUNT ( DISTINCT 43 ) AS col0 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + COUNT( * ) * 12 + + - ( + - 84 ) AS col0 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4572
SELECT + COUNT ( * ) * 12 + + - ( + - 84 ) AS col0 FROM tab2 AS cor0
----
120

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 < ( + 37 * col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT COUNT( * ) * 73 FROM tab0 cor0
----
219

skipif mysql # not compatible
query I rowsort label-4574
SELECT COUNT ( * ) * 73 FROM tab0 cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT - - 5 * - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - - 5 * - COUNT ( * ) FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4576
SELECT 90 * - - col0 col1, col1 DIV + + CAST( - - 73 AS SIGNED ) AS col0 FROM tab0
----
1350
1
7830
0
8730
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4576
SELECT 90 * - - col0 col1, col1 / + + CAST ( - - 73 AS INTEGER ) AS col0 FROM tab0
----
1350
1
7830
0
8730
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + col0 + + - 34 col1 FROM tab1 AS cor0
----
391
4243
680

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + 85 * SUM( ALL - col0 ) col2 FROM tab2 AS cor0
----
-15725

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4579
SELECT + 85 * SUM ( ALL - col0 ) col2 FROM tab2 AS cor0
----
-15725

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + MAX( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4580
SELECT + MAX ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE ( 82 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 9 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT 73 DIV - - 3 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT 73 / - - 3 FROM tab0
----
24

query I rowsort
SELECT ALL + 32 - - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * - 1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4586
SELECT DISTINCT ( + 78 ) DIV - col0 AS col0, + CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
-1
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-4586
SELECT DISTINCT ( + 78 ) / - col0 AS col0, + CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
-1
NULL
0
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4587
SELECT DISTINCT + 25 AS col0, + col0 DIV + - col1 FROM tab0
----
25
-4
25
-97
25
0

skipif mysql # not compatible
query II rowsort label-4587
SELECT DISTINCT + 25 AS col0, + col0 / + - col1 FROM tab0
----
25
-4
25
-97
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - + ( MIN( - col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4588
SELECT - + ( MIN ( - col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 * + ( + 5 ) <= - ( + + col1 ) + - + 90
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 * + ( + 5 ) <= - ( + + col1 ) + - + 90
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT - COUNT( - - 29 ) * - 48 + + - COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - COUNT ( - - 29 ) * - 48 + + - COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
141

query I rowsort
SELECT + col1 + - 52 FROM tab2 AS cor0
----
-1
15
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 / - ( col0 ) IS NULL )
----

query I rowsort
SELECT ALL + - col0 * ( - 63 ) * - + col1 AS col2 FROM tab0 AS cor0
----
-115101
-6111
-76545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL + col2 + + col2 + - col2 + 47 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + col2 + + col2 + - col2 + 47 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 25 + - col2 FROM tab1 AS cor0
----
-34
-43
-71

query I rowsort
SELECT col1 * - - col1 + col2 FROM tab1 AS cor0
----
2277
292
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 - - + 21 / + + ( - col1 ) * 83 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT CAST( - + 5 AS SIGNED ) AS col0 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4599
SELECT CAST ( - + 5 AS INTEGER ) AS col0 FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL + SUM( + col0 ) + - 22 AS col1 FROM tab1
----
205

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL + SUM ( + col0 ) + - 22 AS col1 FROM tab1
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT 14 - + - SUM( ALL 56 ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-4601
SELECT 14 - + - SUM ( ALL 56 ) FROM tab2
----
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - - - col1 + - - col2 + - + col0 col0 FROM tab1 AS cor0
----
-116
-161
-20

query I rowsort
SELECT DISTINCT - 40 - + 93 FROM tab1 AS cor0
----
-133

query I rowsort
SELECT - col2 / + - 74 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT 59 * col0 * - CAST( + col2 AS SIGNED ) FROM tab1
----
-288864
-295885
-365092

skipif mysql # not compatible
query I rowsort label-4605
SELECT 59 * col0 * - CAST ( + col2 AS INTEGER ) FROM tab1
----
-288864
-295885
-365092

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - COUNT( + 58 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4606
SELECT - COUNT ( + 58 ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT ALL - col1, 11 * + col1 + - - col2 AS col2 FROM tab0 AS cor0
----
-1
110
-21
241
-81
938

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT - 82 DIV - - 79 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4608
SELECT - 82 / - - 79 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT AVG ( + + col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL <> - 84
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT - MAX( ALL - + 64 ) * - 38 AS col0 FROM tab2 WHERE + 95 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - MAX ( ALL - + 64 ) * - 38 AS col0 FROM tab2 WHERE + 95 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT 56 * + MIN( - + 54 ) FROM tab1
----
-3024

skipif mysql # not compatible
query I rowsort label-4612
SELECT 56 * + MIN ( - + 54 ) FROM tab1
----
-3024

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT DISTINCT - 76 * + - CAST( NULL AS SIGNED ) * - - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - 76 * + - CAST ( NULL AS INTEGER ) * - - col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * 71 * - col0 FROM tab0 AS cor0
----
-50055
-61770
-681813

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT 31 + - COUNT( * ) - - + 91 FROM tab0 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-4616
SELECT 31 + - COUNT ( * ) - - + 91 FROM tab0 AS cor0
----
119

query I rowsort
SELECT DISTINCT - 73 * 51 - - col1 * + 35 + + col0 FROM tab1 AS cor0
----
-1987
-3182
-3463

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT ALL + ( + COUNT( * ) ) DIV + + MAX( DISTINCT - - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + ( + COUNT ( * ) ) / + + MAX ( DISTINCT - - col1 ) FROM tab0
----
0

query II rowsort
SELECT + col0, - col0 * col2 AS col2 FROM tab1
----
51
-4896
85
-5015
91
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + COUNT( * ) - - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-4621
SELECT + COUNT ( * ) - - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT ALL + MAX( - col1 ) DIV COUNT( * ) + + 54 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL + MAX ( - col1 ) / COUNT ( * ) + + 54 FROM tab0 AS cor0
----
54

query I rowsort
SELECT + 51 + - col0 FROM tab1 cor0
----
-34
-40
0

query I rowsort
SELECT DISTINCT - 3 - ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-54
-88
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4625
SELECT DISTINCT + ( 91 ) DIV + 22 AS col1, COUNT( * ) * + 50 FROM tab0 AS cor0
----
4
150

skipif mysql # not compatible
query II rowsort label-4625
SELECT DISTINCT + ( 91 ) / + 22 AS col1, COUNT ( * ) * + 50 FROM tab0 AS cor0
----
4
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT + - COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT + - COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + - col1 + - 32 AS col1 FROM tab0 AS cor0
----
-31
409
6529

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT COUNT( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4628
SELECT COUNT ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT CAST( + ( 30 ) AS SIGNED ) + + col1 FROM tab1 AS cor0
----
35
44
77

skipif mysql # not compatible
query I rowsort label-4629
SELECT CAST ( + ( 30 ) AS INTEGER ) + + col1 FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT DISTINCT col2 * + - col2 * + 21 AS col1 FROM tab2
----
-11109
-33600
-70644

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 WHERE + 7 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 WHERE + 7 IS NOT NULL
----
-3

query I rowsort
SELECT + col0 * - col1 + + - 55 FROM tab2
----
-2401
-4983
-5080

query I rowsort
SELECT DISTINCT col2 + 88 FROM tab1
----
147
156
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + + + 55 * + col0 col0 FROM tab2
----
4876
8448
9150

query I rowsort
SELECT ALL col2 - - 37 AS col0 FROM tab0
----
136
47
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 19 * - col0 col2 FROM tab2 AS cor0
----
-106875
-40204
-77824

onlyif mysql # DIV for integer division: 
query I rowsort label-4637
SELECT ALL + col2 + - - col0 DIV 36 * col0 FROM tab2 AS cor0
----
104
208
69

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + col2 + - - col0 / 36 * col0 FROM tab2 AS cor0
----
104
208
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + + COUNT( ALL + col2 ) - - SUM( DISTINCT + 93 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4638
SELECT + + COUNT ( ALL + col2 ) - - SUM ( DISTINCT + 93 ) FROM tab2 AS cor0
----
96

query II rowsort
SELECT + col2, - ( + - col0 ) + + col2 * - + col2 AS col1 FROM tab0 AS cor0
----
10
-13
47
-2194
99
-9704

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - - 47 < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col2 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL - CAST( + 17 AS SIGNED ) FROM tab2 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - CAST ( + 17 AS INTEGER ) FROM tab2 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT - CAST( + col1 AS SIGNED ) * - 83 FROM tab1 AS cor0
----
1162
3901
415

skipif mysql # not compatible
query I rowsort label-4643
SELECT - CAST ( + col1 AS INTEGER ) * - 83 FROM tab1 AS cor0
----
1162
3901
415

query II rowsort
SELECT - ( + col2 ) AS col1, - col2 AS col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 = + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 18 + 6 * 72 * + 21 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - col0 + + + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT - COUNT( DISTINCT - 66 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - COUNT ( DISTINCT - 66 ) FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 47 / 65 + - col0 * - ( + col2 ) AS col1, - 36 col0 FROM tab0 WHERE NOT - col2 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL - col1 + - col2 - - + col2 - - - col1 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - col1 + - col2 - - + col2 - - - col1 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col2 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL COUNT( * ) + - 60 AS col2 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL COUNT ( * ) + - 60 AS col2 FROM tab0
----
-57

query I rowsort
SELECT 74 * - 86 AS col2 FROM tab2
----
-6364
-6364
-6364

query I rowsort
SELECT DISTINCT - 86 * + 57 AS col0 FROM tab0
----
-4902

onlyif mysql # aggregate syntax: 
query II rowsort label-4655
SELECT + COUNT( * ) col0, + COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4655
SELECT + COUNT ( * ) col0, + COUNT ( * ) AS col1 FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT ALL + col0 * + CAST( + + col0 AS SIGNED ) + + col2 + col1 + + 94 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + col0 * + CAST ( + + col0 AS INTEGER ) + + col2 + col1 + + 94 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 63 * col2 FROM tab2
----
194040
244818
73899

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - 27 AS col1 FROM tab2 WHERE NULL <= + col0
----

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT - - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4661
SELECT - - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col1 col2, 68 col0 FROM tab1 AS cor0
----
-21
68
-54
68
-82
68

query I rowsort
SELECT ALL + - 50 + - 82 + + col2 + + + col0 FROM tab0 AS cor0
----
-35
-70
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + COUNT( * ) - - 75 AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + COUNT ( * ) - - 75 AS col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT - - 85 * - + col2 FROM tab2 AS cor0
----
-1955
-3400
-4930

query I rowsort
SELECT - + ( col0 ) * - 31 AS col1 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT MAX( ALL 67 ) - + 36 + + 57 * - COUNT( * ) - - - COUNT( * ) AS col0 FROM tab1 cor0
----
-143

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT MAX ( ALL 67 ) - + 36 + + 57 * - COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab1 cor0
----
-143

onlyif mysql # DIV for integer division: 
query II rowsort label-4669
SELECT 57 - - col1 + col0 + + - col1 * 54 DIV col0 + col0 + - - 96 * + col0 * - 95, ( + - 46 ) AS col0 FROM tab1
----
-464961
-46
-774971
-46
-829661
-46

skipif mysql # not compatible
query II rowsort label-4669
SELECT 57 - - col1 + col0 + + - col1 * 54 / col0 + col0 + - - 96 * + col0 * - 95, ( + - 46 ) AS col0 FROM tab1
----
-464961
-46
-774971
-46
-829661
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * col1 + - - col0 * - col0 col2 FROM tab0
----
-6645
-9365
3339

query I rowsort
SELECT + col1 * - - col0 * - + 46 - + col0 AS col2 FROM tab0
----
-4559
-55905
-84129

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT DISTINCT + col0 DIV 48 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + col0 / 48 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT DISTINCT - + COUNT( ALL + 39 ) FROM tab2 AS cor0 WHERE + col0 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT - + COUNT ( ALL + 39 ) FROM tab2 AS cor0 WHERE + col0 * col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - 15 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 68 + + ( - + col1 ) - + col1 IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 15 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 68 + + ( - + col1 ) - + col1 IS NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + + 27 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4675
SELECT + + 27 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL + col1 AS col0, - col2 * - + col2 FROM tab0
----
1
9801
21
100
81
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL + COUNT( * ) * 41 - + 22 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
347

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + COUNT ( * ) * 41 - + 22 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * 89 + + MAX( DISTINCT - + 74 ) - - + 17 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
744

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * 89 + + MAX ( DISTINCT - + 74 ) - - + 17 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
744

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) >= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4680
SELECT col1 / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT col1 / + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 99 ) col1 FROM tab2 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT - MIN( + col1 ) col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4682
SELECT DISTINCT - MIN ( + col1 ) col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT ALL col1, 80 AS col1 FROM tab0 cor0
----
1
80
21
80
81
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0 WHERE NOT - 46 IS NOT NULL
----

query I rowsort
SELECT 38 * col0 AS col0 FROM tab2 AS cor0
----
1748
2432
2850

query II rowsort
SELECT + 92 AS col1, col1 AS col0 FROM tab1 AS cor0
----
92
14
92
47
92
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT ALL SUM( + col0 ) AS col2, COUNT( * ) AS col2 FROM tab0
----
199
3

skipif mysql # not compatible
query II rowsort label-4688
SELECT ALL SUM ( + col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0
----
199
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + 88 + - 35 col0, - 31 FROM tab2 WHERE NOT + col0 < + col0
----
4013
-31
5597
-31
6565
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT ALL - col0 + col2 * + col1 + - ( + - CAST( NULL AS SIGNED ) ) + - col0 + col1 * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - col0 + col2 * + col1 + - ( + - CAST ( NULL AS INTEGER ) ) + - col0 + col1 * - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - COUNT( * ) + - + COUNT( * ) + 11 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4691
SELECT - COUNT ( * ) + - + COUNT ( * ) + 11 AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL + - ( - 0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( 71 ) AS col2 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT * FROM tab1 WHERE + col0 * 56 + + col1 * - col2 = col0 + + - 26 + ( col1 ) * - 0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT DISTINCT - + MIN( ALL col0 ) FROM tab0 AS cor0 WHERE NOT + col2 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT - + MIN ( ALL col0 ) FROM tab0 AS cor0 WHERE NOT + col2 * - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 13 AS col1 FROM tab0 cor0
----
13
13
13

query II rowsort
SELECT + 79 * - col0 + 26, - col2 AS col0 FROM tab1 cor0
----
-4003
-96
-6689
-59
-7163
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT DISTINCT col1 - - - CAST( - 15 AS SIGNED ) FROM tab2 AS cor0
----
66
82
92

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT col1 - - - CAST ( - 15 AS INTEGER ) FROM tab2 AS cor0
----
66
82
92

query II rowsort
SELECT ALL + col1, 21 AS col2 FROM tab1 AS cor0
----
14
21
47
21
5
21

query I rowsort
SELECT - 95 + ( + col1 ) FROM tab2
----
-18
-28
-44

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col2 > + + col2 + + - 77
----

query II rowsort
SELECT 17 / - col0 AS col0, + 27 - - col0 AS col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - - SUM( col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4704
SELECT - - SUM ( col0 ) col2 FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 80 col2 FROM tab1 AS cor0
----
131
165
171

query I rowsort
SELECT - col0 + - + 64 * 94 * - ( - col2 ) + + 56 FROM tab1 AS cor0
----
-354973
-409123
-577531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - ( + + col0 ) col1, 90 FROM tab2 AS cor0
----
-17
90
-23
90
-24
90

query I rowsort
SELECT DISTINCT + - ( col0 ) * + - col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT ALL - CAST( COUNT( DISTINCT - ( + ( + 0 ) ) ) AS SIGNED ) + - 58 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL - CAST ( COUNT ( DISTINCT - ( + ( + 0 ) ) ) AS INTEGER ) + - 58 FROM tab0 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + col1 col0 FROM tab1 cor0
----
36125
36414
389207

query I rowsort
SELECT + - col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND 89
----

query II rowsort
SELECT 37, - col2 + - col0 AS col2 FROM tab2
----
37
-104
37
-133
37
-69

query I rowsort
SELECT ALL col2 + + col0 + + col1 FROM tab0
----
118
143
197

query I rowsort
SELECT + ( col2 ) FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT DISTINCT + col0 + + - ( + 24 ) - + col1 DIV - + col1 AS col0 FROM tab0
----
-8
64
74

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + col0 + + - ( + 24 ) - + col1 / - + col1 AS col0 FROM tab0
----
-8
64
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4717
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-4717
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL + COUNT( ALL - ( - - col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + COUNT ( ALL - ( - - col2 ) ) FROM tab1
----
3

query II rowsort
SELECT - + col0 * 50 AS col0, 33 FROM tab0 AS cor0
----
-4350
33
-4850
33
-750
33

query I rowsort
SELECT 94 + col1 FROM tab2
----
145
161
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL col0 * + - CAST( - col1 AS SIGNED ) + col2 + - col0 AS col0 FROM tab0
----
1247
1750
99

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL col0 * + - CAST ( - col1 AS INTEGER ) + col2 + - col0 AS col0 FROM tab0
----
1247
1750
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT + MIN( DISTINCT - 48 ) - 65 AS col0 FROM tab1 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + MIN ( DISTINCT - 48 ) - 65 AS col0 FROM tab1 AS cor0
----
-113

query II rowsort
SELECT + + ( - col0 ) AS col1, + col1 * + + 96 FROM tab0 AS cor0
----
-15
7776
-87
2016
-97
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT col2 * + 10 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 * + col1 * + + col1, + col0 FROM tab0
----
308367
15
4410
87
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 AS col1, col0 col2 FROM tab1
----
7
51
7
85
7
91

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - 46 * - + ( - col0 ) * + + col2 AS col2 FROM tab2 AS cor0
----
-117760
-200100
-48668

query I rowsort
SELECT ALL - - 14 AS col0 FROM tab1 cor0
----
14
14
14

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN col2 AND ( 86 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4732
SELECT MAX( + CAST( NULL AS SIGNED ) ) - 34 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) - 34 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT DISTINCT - col2 + col2 DIV col2 AS col1 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT - col2 + col2 / col2 AS col1 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-225
-7569
-9409

query I rowsort
SELECT col1 - + ( col2 ) FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - 29 * + col2 col0 FROM tab2 WHERE NOT - col0 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT - 29 * + col2 col0 FROM tab2 WHERE NOT - col0 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4737
SELECT ALL ( + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL ( + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT COUNT( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4738
SELECT COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 45 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( 30 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( 30 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - MAX( DISTINCT + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4741
SELECT - MAX ( DISTINCT + col2 ) FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> col2 + + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT - COUNT( * ) + - 16 col2 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4743
SELECT DISTINCT - COUNT ( * ) + - 16 col2 FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT COUNT( DISTINCT 27 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT COUNT ( DISTINCT 27 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT + SUM( ALL + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4746
SELECT + SUM ( ALL + col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT COUNT( 69 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT COUNT ( 69 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + ( 57 ) FROM tab2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT DISTINCT MAX( DISTINCT 73 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT MAX ( DISTINCT 73 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 + col2 ) = 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4752
SELECT * FROM tab1 WHERE - col2 * CAST( NULL AS SIGNED ) <= + col1
----

skipif mysql # not compatible
query III rowsort label-4752
SELECT * FROM tab1 WHERE - col2 * CAST ( NULL AS INTEGER ) <= + col1
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE col0 * col0 = 70
----

query I rowsort
SELECT col1 * - 34 FROM tab0
----
-2754
-34
-714

query III rowsort
SELECT * FROM tab0 WHERE 91 * 4 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + - 55 FROM tab0
----
-45
-8
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT SUM( ALL + col0 ) AS col0 FROM tab2 WHERE - 43 NOT BETWEEN 28 * ( col1 * 67 ) AND + col2 * col0
----
185

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT SUM ( ALL + col0 ) AS col0 FROM tab2 WHERE - 43 NOT BETWEEN 28 * ( col1 * 67 ) AND + col2 * col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - MAX( DISTINCT ( - col1 ) ) * + COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-4758
SELECT - MAX ( DISTINCT ( - col1 ) ) * + COUNT ( * ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT + ( + CAST( col0 AS SIGNED ) ) * col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4759
SELECT + ( + CAST ( col0 AS INTEGER ) ) * col2 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * + 84 col0 FROM tab1
----
2100
2100
2100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN col1 AND ( + 63 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + 32
----

query I rowsort
SELECT DISTINCT 97 * 93 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
9021

query I rowsort
SELECT DISTINCT 15 + + col0 FROM tab0
----
102
112
30

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE - 63 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 27 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 91 * + 35 FROM tab2 AS cor0
----
3185
3185
3185

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT DISTINCT + col0 DIV + 16 FROM tab0 WHERE - 64 <= col0 * 20
----
0
5
6

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + col0 / + 16 FROM tab0 WHERE - 64 <= col0 * 20
----
0
5
6

query I rowsort
SELECT ALL - col1 + - 24 FROM tab0 AS cor0
----
-105
-25
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT DISTINCT - 74 DIV col1 - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-173
-213
-3807

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - 74 / col1 - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-173
-213
-3807

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 57 <= NULL
----

query I rowsort
SELECT 21 * - 83 AS col0 FROM tab1 AS cor0
----
-1743
-1743
-1743

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + 74 IS NOT NULL
----

query I rowsort
SELECT - - col1 * - 28 FROM tab2 AS cor0
----
-1428
-1876
-2156

query I rowsort
SELECT ALL + ( - 45 ) * + 87 AS col1 FROM tab0 cor0
----
-3915
-3915
-3915

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT MIN( + 20 ) col2 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4777
SELECT DISTINCT MIN ( + 20 ) col2 FROM tab2
----
20

query I rowsort
SELECT 49 + + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4779
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN NULL AND CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-4779
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN NULL AND CAST ( NULL AS INTEGER ) * + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4780
SELECT + 74 + - col0 * ( col1 DIV - 68 ) FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 74 + - col0 * ( col1 / - 68 ) FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
74
74
74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT ( col0 ) <= 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT COUNT( * ) * - 19 AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-4782
SELECT COUNT ( * ) * - 19 AS col0 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT + ( + 73 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4783
SELECT + ( + 73 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-219

query I rowsort
SELECT - col2 * - col0 FROM tab0 AS cor0 WHERE NOT ( 21 - - col0 ) <= ( col2 )
----
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col1 FROM tab0 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT - 7 DIV col2 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4786
SELECT - 7 / col2 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 80 ) + col2 FROM tab2 WHERE ( - - col1 * - col0 ) IS NULL
----

query I rowsort
SELECT 64 + 32 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT - 41 + col1 FROM tab0 AS cor0
----
-20
-40
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 + - 96 * - + col1 * 41 FROM tab0 AS cor0
----
318831
4033
82743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT - - COUNT( * ) + 47 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT - - COUNT ( * ) + 47 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4794
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4795
SELECT - COUNT( ALL 11 ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4795
SELECT - COUNT ( ALL 11 ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4796
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4796
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 * + + col2 * - col0 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT col2 + - 38 / - 46 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - ( - + 45 ) FROM tab1
----
45
45
45

query III rowsort
SELECT * FROM tab2 WHERE 6 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 + + - 25 <> ( col2 - 36 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 15 + 58 AS col1, col0 AS col1 FROM tab2
----
43
46
43
64
43
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4803
SELECT + col2 * - col2 AS col2, 71 + - + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-3481
66
-4624
24
-9216
57

skipif mysql # not compatible
query II rowsort label-4803
SELECT + col2 * - col2 AS col2, 71 + - + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-3481
66
-4624
24
-9216
57

query I rowsort
SELECT ALL col1 - - 32 FROM tab2 AS cor0
----
109
83
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - - 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT 18 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 + CAST( - 85 AS SIGNED ) ) AND 38
----

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT 18 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 + CAST ( - 85 AS INTEGER ) ) AND 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT col2 FROM tab2 WHERE NULL <= - + 76 + + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4808
SELECT col2 FROM tab2 WHERE NULL <= - + 76 + + CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT MAX( + col1 ) col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4809
SELECT MAX ( + col1 ) col2 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2, + col0 col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ( + 22 ) AS col0 FROM tab2 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 53 col1, + col0 AS col2 FROM tab1 cor0
----
53
51
53
85
53
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + 5 * + - col0 - - col0 + col0 * col2 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, 21 + - + col2 * col1 FROM tab0
----
1
-78
21
-189
81
-3786

query I rowsort
SELECT 6 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
6
6
6

query I rowsort
SELECT - 25 FROM tab0 WHERE NOT - col2 = + 59
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT + col2 * - CAST( + + 90 AS SIGNED ) FROM tab0
----
-4230
-8910
-900

skipif mysql # not compatible
query I rowsort label-4818
SELECT + col2 * - CAST ( + + 90 AS INTEGER ) FROM tab0
----
-4230
-8910
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4819
SELECT 78 DIV + - COUNT( * ) AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-4819
SELECT 78 / + - COUNT ( * ) AS col0 FROM tab0
----
-26

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL BETWEEN ( - col1 / + - 78 * - col0 + 12 + + col0 ) AND NULL
----

query I rowsort
SELECT - 62 AS col1 FROM tab1 WHERE NOT NULL <= + + 45 + col1 + - + ( + ( - col2 ) ) + 89 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 AS col0, 64 FROM tab0 cor0
----
-10
64
-47
64
-99
64

query I rowsort
SELECT 24 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4825
SELECT ALL - COUNT( * ) col1, + COUNT( * ) + - COUNT( * ) DIV + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4825
SELECT ALL - COUNT ( * ) col1, + COUNT ( * ) + - COUNT ( * ) / + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col0 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT - col1 + 0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL - MAX( ALL - col2 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4828
SELECT ALL - MAX ( ALL - col2 ) col1 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL 35 * CAST( - + col0 AS SIGNED ) col0 FROM tab0 cor0
----
-3045
-3395
-525

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4829
SELECT ALL 35 * CAST ( - + col0 AS INTEGER ) col0 FROM tab0 cor0
----
-3045
-3395
-525

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT - 27 * - col0 + + - col2 AS col0 FROM tab1 cor0
----
1281
2236
2389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT - CAST( NULL AS SIGNED ) + + - 71 FROM tab2 cor0 WHERE ( NOT NULL BETWEEN NULL AND ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-4834
SELECT - CAST ( NULL AS INTEGER ) + + - 71 FROM tab2 cor0 WHERE ( NOT NULL BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT - + col0 * - 65 * - + col0 + col2 + - - 69 * + 33 FROM tab2 cor0
----
-135240
-263923
-363290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 30 * + - 74 col1 FROM tab1 AS cor0
----
-2220
-2220
-2220

query I rowsort
SELECT ALL + - 2 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT col0 + 44 - + col1 AS col2 FROM tab2 AS cor0
----
31
39
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4840
SELECT + col1 * + col2 + 10 col2, - col0 + + - CAST( + col1 AS SIGNED ) AS col0, - 65 FROM tab1
----
9 values hashing to e652c4699eacc51725f0e50765aa3f14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4840
SELECT + col1 * + col2 + 10 col2, - col0 + + - CAST ( + col1 AS INTEGER ) AS col0, - 65 FROM tab1
----
9 values hashing to e652c4699eacc51725f0e50765aa3f14

query II rowsort
SELECT ALL 95, 53 AS col0 FROM tab0
----
95
53
95
53
95
53

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + 39 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col1 AS col1, + col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4844
SELECT ALL * FROM tab2 WHERE NOT - col1 > ( - + col2 * - ( + - col0 ) * + CAST( + col0 AS SIGNED ) + 9 )
----

skipif mysql # not compatible
query III rowsort label-4844
SELECT ALL * FROM tab2 WHERE NOT - col1 > ( - + col2 * - ( + - col0 ) * + CAST ( + col0 AS INTEGER ) + 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT col2 FROM tab0 WHERE + - CAST( 9 AS SIGNED ) + + 54 = ( + 90 )
----

skipif mysql # not compatible
query I rowsort label-4845
SELECT col2 FROM tab0 WHERE + - CAST ( 9 AS INTEGER ) + + 54 = ( + 90 )
----

query II rowsort
SELECT ALL + 78 * - col1 * 91 + - col1 * - col0 + - - col2, col0 AS col1 FROM tab0
----
-147221
87
-573676
15
-6902
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT ALL 44 - - CAST( NULL AS SIGNED ) + - + 47 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL 44 - - CAST ( NULL AS INTEGER ) + - + 47 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 97 - + col1 FROM tab0 WHERE + ( - 82 ) < + + ( col1 ) / + col0
----
16
76
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4849
SELECT ALL - CAST( NULL AS DECIMAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - CAST ( NULL AS REAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 81 IS NULL
----

query I rowsort
SELECT ALL + 83 + - col1 + + col2 FROM tab2 AS cor0
----
46
55
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - + 25 col0 FROM tab2 AS cor0
----
-102
-76
-92

query I rowsort
SELECT ALL col1 * - 81 AS col1 FROM tab2
----
-4131
-5427
-6237

query I rowsort
SELECT + - 62 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + MAX( + + 98 ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4855
SELECT + MAX ( + + 98 ) FROM tab1 AS cor0
----
98

query I rowsort
SELECT - + 50 * - - 33 FROM tab1 AS cor0
----
-1650
-1650
-1650

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 55 * + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - col0 + + col0 FROM tab0 AS cor0
----
1230
1914
194

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col0 ) - + - col0 BETWEEN + col0 * + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 64 * - col2 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + col0 ) <> - col1
----

query II rowsort
SELECT ALL + col2, + col1 + + 17 FROM tab1
----
59
22
68
64
96
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49, + col0 col2 FROM tab2
----
49
46
49
64
49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( + col0, col2 * + col1 / + col0 * - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( + col0, col2 * + col1 / + col0 * - 59 )
----
0

query I rowsort
SELECT DISTINCT col1 + 44 AS col1 FROM tab2
----
111
121
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 * + col0 ) = ( NULL )
----

query I rowsort
SELECT + 52 * - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
2652
3484
4004

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col0 FROM tab0 cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - COUNT( * ) FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4870
SELECT - COUNT ( * ) FROM tab1 WHERE NULL <= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4871
SELECT ALL - col0 + + - 63 DIV - ( + col1 ), 82 * ( - + 76 ) AS col1 FROM tab2 AS cor0
----
-45
-6232
-64
-6232
-75
-6232

skipif mysql # not compatible
query II rowsort label-4871
SELECT ALL - col0 + + - 63 / - ( + col1 ), 82 * ( - + 76 ) AS col1 FROM tab2 AS cor0
----
-45
-6232
-64
-6232
-75
-6232

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + 84 * - SUM( ALL + 71 ) + - COUNT( * ) FROM tab2 AS cor0
----
-17895

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 84 * - SUM ( ALL + 71 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-17895

query I rowsort
SELECT + + 46 + + col2 FROM tab1 cor0
----
105
114
142

query I rowsort
SELECT DISTINCT - col2 * + ( + + 74 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT COUNT( * ) col1, - ( 99 ) col2 FROM tab2 WHERE NULL > NULL
----
0
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4876
SELECT COUNT ( * ) col1, - ( 99 ) col2 FROM tab2 WHERE NULL > NULL
----
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT COUNT( * ) - 91 - - COUNT( * ) AS col0 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-4877
SELECT COUNT ( * ) - 91 - - COUNT ( * ) AS col0 FROM tab2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - COUNT( - col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - COUNT ( - col1 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL + col2 * - ( col2 ) + - 91 AS col2 FROM tab1
----
-3572
-4715
-9307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 32 col1 FROM tab1
----
19
53
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 88 - + col0 col2, + 94 col2, 90 AS col2 FROM tab0
----
9 values hashing to eabf339375b5a0fb308f3885251decf1

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT 97 + COUNT( * ) FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-4882
SELECT 97 + COUNT ( * ) FROM tab1
----
100

query I rowsort
SELECT ALL - 46 - col0 + + col2 * + col1 * + + col2 * - ( + col2 ) FROM tab2 cor0
----
-13072625
-4928110
-620609

query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab0 cor0
----
12

query I rowsort
SELECT DISTINCT + col0 * + 71 FROM tab1 AS cor0
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT + SUM( col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + SUM ( col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT ALL 2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 + 57 + + col1 * + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * 73 AS col1 FROM tab1 cor0
----
-4307
-4964
-7008

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4890
SELECT + col1 + ( + + CAST( - CAST( - - col0 AS DECIMAL ) AS SIGNED ) ) AS col0 FROM tab1 cor0 WHERE NOT col0 - - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-4890
SELECT + col1 + ( + + CAST ( - CAST ( - - col0 AS REAL ) AS INTEGER ) ) AS col0 FROM tab1 cor0 WHERE NOT col0 - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL - MAX( DISTINCT - - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL - MAX ( DISTINCT - - col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + 92 col1, 45 FROM tab1
----
143
45
177
45
183
45

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab2 cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT + COUNT( col1 ) * - ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4896
SELECT + COUNT ( col1 ) * - ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + 41 * + 39 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 74ed31c7c756869c6c4dd336cc4c9f70

query I rowsort
SELECT ALL + col1 + + col0 + + col2 FROM tab0
----
118
143
197

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT DISTINCT - ( - ( col1 ) ) DIV + col0 + col0 AS col1 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - ( - ( col1 ) ) / + col0 + col0 AS col1 FROM tab2
----
47
65
75

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4901
SELECT - + COUNT( * ) * 61 DIV + - ( - - COUNT( + 20 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-4901
SELECT - + COUNT ( * ) * 61 / + - ( - - COUNT ( + 20 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

query I rowsort
SELECT - col0 + - + col0 * + col0 + col1 AS col1 FROM tab1 cor0
----
-2638
-7305
-8325

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT + col2 * col0 + + col2 DIV - + col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-4903
SELECT + col2 * col0 + + col2 / - + col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 59 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 - - - 81 + + + col1 * + 45 + - 58 AS col1 FROM tab1 AS cor0
----
145
2044
587

query I rowsort
SELECT + 62 + - 65 + + - col0 * + col2 AS col0 FROM tab1 cor0
----
-4899
-5018
-6191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 46 * - + col0 col1 FROM tab0 AS cor0
----
-3915
-4365
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - 70 + + - COUNT( ALL - col2 ) * COUNT( * ) * - 54 col2 FROM tab2 AS cor0
----
416

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4908
SELECT - 70 + + - COUNT ( ALL - col2 ) * COUNT ( * ) * - 54 col2 FROM tab2 AS cor0
----
416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 71 + 29 col0 FROM tab1 AS cor0
----
159
168
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL - ( + COUNT( * ) ) * - 37 AS col0 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - ( + COUNT ( * ) ) * - 37 AS col0 FROM tab2
----
111

query I rowsort
SELECT DISTINCT col0 * col1 * + col0 + col1 FROM tab1
----
36130
36428
389254

query II rowsort
SELECT DISTINCT col2, + col1 * + - 79 AS col2 FROM tab0
----
10
-1659
47
-6399
99
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + MIN( 64 ) AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + MIN ( 64 ) AS col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT + 13 AS col0 FROM tab0 cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 69 AS col0, + col2 col2 FROM tab0 AS cor0
----
69
10
69
47
69
99

query I rowsort
SELECT ALL col2 * + + col1 + - - col0 - + - 13 - - 67 * - - 25 FROM tab2 AS cor0
----
2907
4832
5649

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT - - MAX( + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT - - MAX ( + + col1 ) FROM tab1 AS cor0
----
47

query II rowsort
SELECT + + col2, - col2 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - - col0
----

query II rowsort
SELECT col0, - 68 AS col0 FROM tab0 AS cor0
----
15
-68
87
-68
97
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, col2 col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL + 48 * + COUNT( ALL col1 ) + 23 FROM tab0 cor0 WHERE NOT 58 + - 66 + + + CAST( NULL AS SIGNED ) IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + 48 * + COUNT ( ALL col1 ) + 23 FROM tab0 cor0 WHERE NOT 58 + - 66 + + + CAST ( NULL AS INTEGER ) IS NULL
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT ALL CAST( NULL AS SIGNED ) * 6 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL CAST ( NULL AS INTEGER ) * 6 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 51 / - 98 IS NULL
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT - - 25 * + - 33 + col0 FROM tab1 AS cor0
----
-734
-740
-774

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT 94 + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 32 AND ( + + 14 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL = + col1 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT DISTINCT - col0 + + - col1 * - - 3 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - col0 + + - col1 * - - 3 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 59 * 63 * col1 FROM tab0
----
-301077
-3717
-78057

query II rowsort
SELECT + col2, col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT + col0 * + 95 FROM tab1
----
4845
8075
8645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + col2 ) + col1 * col1 - + col1 * col2 - + ( 1 ) AS col0, 4 col1 FROM tab1
----
-1056
4
-1245
4
-330
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT + CAST( NULL AS SIGNED ) / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT + CAST ( NULL AS INTEGER ) / + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT + COUNT( * ) * 24 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + COUNT ( * ) * 24 FROM tab0
----
72

query II rowsort
SELECT DISTINCT - - col0 AS col1, 75 AS col1 FROM tab2 AS cor0
----
46
75
64
75
75
75

query II rowsort
SELECT col2, + 64 AS col0 FROM tab0 AS cor0
----
10
64
47
64
99
64

query I rowsort
SELECT - - col0 FROM tab2 cor0 WHERE - col2 BETWEEN NULL AND col0 + - 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + - col2 * - 63, - 24 col0 FROM tab0 cor0
----
139167
-24
617463
-24
6300
-24

query I rowsort
SELECT DISTINCT + col0 * - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-2139
-4136
-5683

query I rowsort
SELECT ALL col0 * + 73 + - col2 AS col2 FROM tab1
----
3627
6146
6575

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4942
SELECT 10 * + COUNT( * ) + - - SUM( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT 10 * + COUNT ( * ) + - - SUM ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 23 IS NULL
----

query I rowsort
SELECT 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + SUM( ALL - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4945
SELECT + SUM ( ALL - col2 ) AS col0 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + 77 col1 FROM tab2 AS cor0
----
19
37
54

query I rowsort
SELECT DISTINCT - ( + 73 ) AS col2 FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT + - 91 - + - MIN( - col0 ) FROM tab0 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + - 91 - + - MIN ( - col0 ) FROM tab0 AS cor0
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT DISTINCT - 83 - - + 91 DIV col2 col0 FROM tab2 cor0
----
-80
-81
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4949
SELECT DISTINCT - 83 - - + 91 / col2 col0 FROM tab2 cor0
----
-80
-81
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT DISTINCT CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT ALL + col0 AS col2, col0 + - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( - col2 )
----

query I rowsort
SELECT + col0 - + ( - col2 ) AS col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4954
SELECT - MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
-96

query II rowsort
SELECT ALL 89 AS col1, col1 * + col2 * + - col2 + + 14 FROM tab1
----
89
-129010
89
-17391
89
-217314

query I rowsort
SELECT + 14 * 19 AS col1 FROM tab0
----
266
266
266

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT col0 DIV - - col2 AS col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4957
SELECT col0 / - - col2 AS col2 FROM tab0
----
0
0
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL - + SUM( ALL - col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - + SUM ( ALL - col0 ) AS col2 FROM tab1 cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4962
SELECT - + 27 + CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4962
SELECT - + 27 + CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT ALL 52 AS col1, + COUNT( * ) FROM tab1
----
52
3

skipif mysql # not compatible
query II rowsort label-4963
SELECT ALL 52 AS col1, + COUNT ( * ) FROM tab1
----
52
3

query I rowsort
SELECT ALL col0 * 77 FROM tab2 cor0
----
3542
4928
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT + COUNT( * ) + + 37 FROM tab2 AS cor0 WHERE NOT NULL >= col1 * + 42
----
37

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT + COUNT ( * ) + + 37 FROM tab2 AS cor0 WHERE NOT NULL >= col1 * + 42
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL - 39 * + - CAST( - ( - col1 ) AS SIGNED ) FROM tab2 cor0
----
1989
2613
3003

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 39 * + - CAST ( - ( - col1 ) AS INTEGER ) FROM tab2 cor0
----
1989
2613
3003

query I rowsort
SELECT DISTINCT - + col0 * - + col0 + - 36 AS col0 FROM tab2 AS cor0
----
2080
4060
5589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT ALL COUNT( * ) + + COUNT( * ) + + - ( + 40 ) + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL COUNT ( * ) + + COUNT ( * ) + + - ( + 40 ) + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-31

query I rowsort
SELECT col0 * - + col2 + + col2 AS col2 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT - ( + col0 ) + CAST( NULL AS SIGNED ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT - ( + col0 ) + CAST ( NULL AS INTEGER ) - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - 52 + - - 27 * + - COUNT( - col0 ) FROM tab0
----
-133

skipif mysql # not compatible
query I rowsort label-4971
SELECT - 52 + - - 27 * + - COUNT ( - col0 ) FROM tab0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT ( - COUNT( * ) ) + + ( + - SUM( col2 ) ) FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT ( - COUNT ( * ) ) + + ( + - SUM ( col2 ) ) FROM tab1
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + - col2 + + + col1 col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + + col0 * 40 FROM tab0 cor0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT COUNT( * ) * + - 71 AS col1 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4976
SELECT COUNT ( * ) * + - 71 AS col1 FROM tab0 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT 19 * MAX( ALL 36 ) AS col0 FROM tab0 AS cor0
----
684

skipif mysql # not compatible
query I rowsort label-4977
SELECT 19 * MAX ( ALL 36 ) AS col0 FROM tab0 AS cor0
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col2 * - - col1 col0 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # DIV for integer division: 
query II rowsort label-4980
SELECT ALL 47, - 95 DIV + col0 col1 FROM tab2
----
47
-1
47
-1
47
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4980
SELECT ALL 47, - 95 / + col0 col1 FROM tab2
----
47
-1
47
-1
47
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT + ( + - COUNT( * ) ), + ( + 48 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
432

skipif mysql # not compatible
query II rowsort label-4981
SELECT + ( + - COUNT ( * ) ), + ( + 48 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
432

query I rowsort
SELECT DISTINCT col2 - - 60 AS col1 FROM tab2 AS cor0
----
100
118
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * col1 + col0 - - col1 / - col1 NOT BETWEEN - - col2 AND - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + - - 55 AS col2 FROM tab2 AS cor0
----
-12
-22
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4985
SELECT CAST( NULL AS DECIMAL ) + - + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 + - - col1 / 49 )
----

skipif mysql # not compatible
query I rowsort label-4985
SELECT CAST ( NULL AS REAL ) + - + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 + - - col1 / 49 )
----

query I rowsort
SELECT DISTINCT - - 50 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND 90 IS NOT NULL
----

query I rowsort
SELECT + + ( + 89 ) + - col1 AS col2 FROM tab0 AS cor0
----
68
8
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col1 col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 95 * - col2 NOT BETWEEN 83 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT - COUNT( ALL + - 0 ) + - CAST( + - SUM( + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4990
SELECT - COUNT ( ALL + - 0 ) + - CAST ( + - SUM ( + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
63

query II rowsort
SELECT ALL - - col0, + 25 AS col1 FROM tab2 AS cor0
----
46
25
64
25
75
25

query I rowsort
SELECT - - col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4993
SELECT DISTINCT + SUM( ALL 20 ) DIV - 60 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + SUM ( ALL 20 ) / - 60 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT DISTINCT COUNT( * ), - 15 AS col2 FROM tab1, tab0 AS cor0
----
9
-15

skipif mysql # not compatible
query II rowsort label-4994
SELECT DISTINCT COUNT ( * ), - 15 AS col2 FROM tab1, tab0 AS cor0
----
9
-15

query I rowsort
SELECT ALL + col2 * 86 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4996
SELECT + COUNT( CAST( col0 AS DECIMAL ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4996
SELECT + COUNT ( CAST ( col0 AS REAL ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 64 + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4999
SELECT ALL * FROM tab0 cor0 WHERE + col2 < - CAST( + 93 AS DECIMAL ) / col0
----

skipif mysql # not compatible
query III rowsort label-4999
SELECT ALL * FROM tab0 cor0 WHERE + col2 < - CAST ( + 93 AS REAL ) / col0
----

query I rowsort
SELECT ALL + ( + 76 ) AS col2 FROM tab2
----
76
76
76

query I rowsort
SELECT ALL - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT - MIN( DISTINCT - 62 ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - MIN ( DISTINCT - 62 ) AS col1 FROM tab2
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 36 col1 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT ALL - + ( - col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT - CAST( NULL AS SIGNED ) + ( - col0 ) - 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-5005
SELECT - CAST ( NULL AS INTEGER ) + ( - col0 ) - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + - 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT - + col0 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT - + col0 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT MIN( ALL - - col0 ) + + 55 FROM tab1 cor0
----
106

skipif mysql # not compatible
query I rowsort label-5008
SELECT MIN ( ALL - - col0 ) + + 55 FROM tab1 cor0
----
106

query I rowsort
SELECT - + 60 AS col2 FROM tab0 AS cor0 WHERE NOT + 75 IN ( - - ( - - 66 ), - 61, - col1 )
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT + ( - COUNT( * ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5010
SELECT DISTINCT + ( - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - col2 * + col0 * - 90 NOT BETWEEN ( NULL ) AND - 12
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5012
SELECT + col0, + col0 * 0 DIV col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-5012
SELECT + col0, + col0 * 0 / col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT - ( 77 ) AS col0, - COUNT( * ) FROM tab2
----
-77
-3

skipif mysql # not compatible
query II rowsort label-5013
SELECT - ( 77 ) AS col0, - COUNT ( * ) FROM tab2
----
-77
-3

query II rowsort
SELECT col2, + col1 + - 22 FROM tab1
----
59
-17
68
25
96
-8

query I rowsort
SELECT DISTINCT - ( - 95 ) AS col0 FROM tab2 WHERE - col0 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 93 ) col1 FROM tab1
----
-93
-93
-93

query I rowsort
SELECT ALL col2 * col0 * - ( + + 28 ) + ( - + 29 ) FROM tab1
----
-137117
-140449
-173293

query II rowsort
SELECT - col1 AS col1, ( - - 96 ) AS col0 FROM tab2
----
-51
96
-67
96
-77
96

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND - 39 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 <> NULL
----
0

query I rowsort
SELECT 7 - col2 FROM tab0 AS cor0
----
-3
-40
-92

query I rowsort
SELECT col1 + + col0 * - + 93 AS col0 FROM tab0 cor0
----
-1314
-8070
-9020

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / - 58 NOT BETWEEN NULL AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT 80 * + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1680
-6480
-80

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT 80 * + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1680
-6480
-80

query I rowsort
SELECT DISTINCT - - ( + ( - + 17 ) ) FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT + - COUNT( * ) + 73 FROM tab0 AS cor0 WHERE + 30 NOT BETWEEN NULL AND - + col0
----
70

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + - COUNT ( * ) + 73 FROM tab0 AS cor0 WHERE + 30 NOT BETWEEN NULL AND - + col0
----
70

query I rowsort
SELECT ALL + + 98 AS col0 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT - MIN( + col1 ) FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - MIN ( + col1 ) FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT MAX( col0 ) * - 93 * 27 AS col2 FROM tab1
----
-228501

skipif mysql # not compatible
query I rowsort label-5030
SELECT MAX ( col0 ) * - 93 * 27 AS col2 FROM tab1
----
-228501

query I rowsort
SELECT ALL - col2 * 16 FROM tab2
----
-368
-640
-928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 38 col0, + col2 FROM tab2
----
38
23
38
40
38
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5033
SELECT CAST( NULL AS SIGNED ) AS col1, 29 + 15 * + + 77 col2 FROM tab1
----
NULL
1184
NULL
1184
NULL
1184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5033
SELECT CAST ( NULL AS INTEGER ) AS col1, 29 + 15 * + + 77 col2 FROM tab1
----
NULL
1184
NULL
1184
NULL
1184

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT DISTINCT - 89, col0 FROM tab1
----
-89
51
-89
85
-89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ( + ( - MAX( col0 ) ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5036
SELECT ( + ( - MAX ( col0 ) ) ) AS col1 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5037
SELECT col1 AS col1, col0 DIV + + 79 col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5037
SELECT col1 AS col1, col0 / + + 79 col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT 22 * - + COUNT( * ) AS col1 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5038
SELECT 22 * - + COUNT ( * ) AS col1 FROM tab0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + - col2 ) IS NOT NULL
----

query II rowsort
SELECT ALL 61 AS col2, + 41 * col1 FROM tab1 AS cor0
----
61
1927
61
205
61
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33 + col2 - + col2 col0, col1 FROM tab2 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----

query I rowsort
SELECT - 53 * ( + + 92 ) * + + col0 FROM tab2
----
-224296
-312064
-365700

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL + MAX( + - ( - + col0 ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL + MAX ( + - ( - + col0 ) ) AS col2 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT 41 + - + COUNT( * ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT 41 + - + COUNT ( * ) AS col2 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT SUM( + 21 ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5045
SELECT SUM ( + 21 ) AS col1 FROM tab0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + + 38 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
38

query I rowsort
SELECT ALL col2 - + 41 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-18
17

query I rowsort
SELECT ALL 68 AS col0 FROM tab2 AS cor0 WHERE NOT 73 / + col2 > - col2 * col1 / + - col0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT DISTINCT MAX( - ( + col2 ) ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5050
SELECT DISTINCT MAX ( - ( + col2 ) ) col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5051
SELECT + CAST( NULL AS SIGNED ) * - COUNT( ALL 79 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( ALL 79 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) col0, 5 FROM tab1 cor0
----
51
5
85
5
91
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 67 - + col1 IS NULL AND NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5055
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col1, - COUNT( * ) * - 4 DIV + - COUNT( DISTINCT - + 58 ) col1 FROM tab2 AS cor0
----
-195
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5055
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col1, - COUNT ( * ) * - 4 / + - COUNT ( DISTINCT - + 58 ) col1 FROM tab2 AS cor0
----
-195
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT + 62 DIV + 34 + col1 + col0 + col0 * + - col2 AS col2 FROM tab1 AS cor0
----
-4830
-4924
-6049

skipif mysql # not compatible
query I rowsort label-5056
SELECT + 62 / + 34 + col1 + col0 + col0 * + - col2 AS col2 FROM tab1 AS cor0
----
-4830
-4924
-6049

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + + col0 ) = NULL AND + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT - + col1 + - ( 8 ) DIV + col0 * - - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5058
SELECT - + col1 + - ( 8 ) / + col0 * - - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT MIN( - - 88 ) + COUNT( * ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5059
SELECT MIN ( - - 88 ) + COUNT ( * ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT + col0 + 91 FROM tab1
----
142
176
182

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT DISTINCT - col1 * + 62 * - col1 DIV col1 AS col0 FROM tab1
----
2914
310
868

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT - col1 * + 62 * - col1 / col1 AS col0 FROM tab1
----
2914
310
868

query III rowsort
SELECT * FROM tab0 WHERE + 8 / - col1 + + col2 + ( - - 56 ) * - 63 * + col0 * + col1 IN ( - + col2 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - - 0 ) * + + ( + col2 ) + - - col0 + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 29 + - - 64 AS col1 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT + + col1 * + col2 + + + 78 AS col2 FROM tab0 AS cor0
----
177
288
3885

query II rowsort
SELECT DISTINCT col0, + ( col0 ) FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT + 25 - + - 81 AS col2 FROM tab0
----
106
106
106

query I rowsort
SELECT - + col1 * + + col2 * col2 AS col0 FROM tab0 WHERE + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT ALL - col1 DIV + 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - col1 / + 93 FROM tab2
----
0
0
0

query II rowsort
SELECT - col1 AS col1, + 44 FROM tab0 AS cor0
----
-1
44
-21
44
-81
44

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT - + col0 * - - 23 AS col2 FROM tab1 AS cor0
----
-1173
-1955
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT COUNT( DISTINCT - ( col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5073
SELECT COUNT ( DISTINCT - ( col0 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - ( - + col2 ) * + col0 AS col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT DISTINCT - COUNT( * ) * + 79 DIV 60 + + MIN( ( + 12 ) ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5075
SELECT DISTINCT - COUNT ( * ) * + 79 / 60 + + MIN ( ( + 12 ) ) col1 FROM tab1 AS cor0
----
9

query II rowsort
SELECT ALL - 16, col2 AS col0 FROM tab2 AS cor0
----
-16
23
-16
40
-16
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT - COUNT( * ) * - COUNT( + col0 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5077
SELECT - COUNT ( * ) * - COUNT ( + col0 ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT 51 * - - CAST( + col0 AS SIGNED ) FROM tab0 WHERE NOT + - 41 / col1 IS NULL
----
4437
4947
765

skipif mysql # not compatible
query I rowsort label-5078
SELECT 51 * - - CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NOT + - 41 / col1 IS NULL
----
4437
4947
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * - + col2 col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL 33 FROM tab0 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT - COUNT( * ) DIV - 61 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT - COUNT ( * ) / - 61 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5082
SELECT col2 AS col0, 15 FROM tab1 WHERE NOT col2 + + col2 + col2 BETWEEN ( + CAST( - 42 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-5082
SELECT col2 AS col0, 15 FROM tab1 WHERE NOT col2 + + col2 + col2 BETWEEN ( + CAST ( - 42 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT ( - col2 ) + 45 AS col1 FROM tab1 cor0
----
-14
-23
-51

query II rowsort
SELECT DISTINCT col2 AS col2, 13 AS col1 FROM tab2 AS cor0
----
23
13
40
13
58
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 < - - 1 + + 22
----
87
21
10

query I rowsort
SELECT col0 * - - col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT DISTINCT + + 67, col1 AS col0 FROM tab1 AS cor0
----
67
14
67
47
67
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5088
SELECT ALL * FROM tab2 WHERE NOT + - col1 * - - ( + CAST( NULL AS DECIMAL ) ) - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5088
SELECT ALL * FROM tab2 WHERE NOT + - col1 * - - ( + CAST ( NULL AS REAL ) ) - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT SUM( DISTINCT - 99 ), MIN( DISTINCT + - ( - - 38 ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-99
-38

skipif mysql # not compatible
query II rowsort label-5089
SELECT SUM ( DISTINCT - 99 ), MIN ( DISTINCT + - ( - - 38 ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-99
-38

query I rowsort
SELECT + col0 * + col0 - + 95 FROM tab1
----
2506
7130
8186

query I rowsort
SELECT - 23 + + + 49 AS col2 FROM tab2 AS cor0
----
26
26
26

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 11 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT + col1 DIV + 79 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5093
SELECT + col1 / + 79 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL - 89 * SUM( DISTINCT 39 ) - + COUNT( * ) FROM tab1 AS cor0
----
-3474

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL - 89 * SUM ( DISTINCT 39 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-3474

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 >= - + 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT + CAST( + 67 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT NULL = + col2
----

skipif mysql # not compatible
query I rowsort label-5096
SELECT + CAST ( + 67 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT NULL = + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + + ( - + 26 ) * - col0 + - 37 + + - 16 + + 56 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + 12 AS col1 FROM tab0 AS cor0
----
-12
-252
-972

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 56 AS col0 FROM tab1
----
2632
280
784

query II rowsort
SELECT ALL col2 AS col1, 75 AS col2 FROM tab0
----
10
75
47
75
99
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5102
SELECT + 93 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 93 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5103
SELECT DISTINCT col1, col2 + - 64 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5103
SELECT DISTINCT col1, col2 + - 64 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ( col0 ) * + - 12 FROM tab2
----
-552
-768
-900

query I rowsort
SELECT DISTINCT col0 + 24 FROM tab2
----
70
88
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 > + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT - MAX( ALL - 1 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT - MAX ( ALL - 1 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5108
SELECT + 53 AS col1, COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
53
-9

skipif mysql # not compatible
query II rowsort label-5108
SELECT + 53 AS col1, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
53
-9

query I rowsort
SELECT DISTINCT col0 + + 81 AS col0 FROM tab0 AS cor0
----
168
178
96

query I rowsort
SELECT - - 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL ( + COUNT( * ) ) * + - COUNT( * ) + - CAST( - 16 AS SIGNED ) * + - 37 + + - 89 FROM tab1
----
-690

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL ( + COUNT ( * ) ) * + - COUNT ( * ) + - CAST ( - 16 AS INTEGER ) * + - 37 + + - 89 FROM tab1
----
-690

query I rowsort
SELECT - 13 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query II rowsort
SELECT ALL col1 + col0 + + col0, - col0 AS col0 FROM tab1
----
116
-51
175
-85
229
-91

query I rowsort
SELECT DISTINCT + - 97 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - COUNT( ( + - ( - + col2 ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5115
SELECT - COUNT ( ( + - ( - + col2 ) ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT 36 * + + ( + - MAX( col0 ) ) FROM tab1 AS cor0
----
-3276

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT 36 * + + ( + - MAX ( col0 ) ) FROM tab1 AS cor0
----
-3276

query II rowsort
SELECT DISTINCT col2 + + col0, col2 FROM tab1 AS cor0
----
144
59
147
96
159
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5118
SELECT * FROM tab2 cor0 WHERE + 28 + - + 44 / - col1 NOT BETWEEN - - col2 AND + CAST( NULL AS SIGNED ) * + col0
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-5118
SELECT * FROM tab2 cor0 WHERE + 28 + - + 44 / - col1 NOT BETWEEN - - col2 AND + CAST ( NULL AS INTEGER ) * + col0
----
64
77
40
75
67
58

query I rowsort
SELECT ALL + + col1 * - - col0 - - 54 FROM tab0 AS cor0
----
1269
151
1881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT ALL + col0 + col1 - - col1 * + col0 + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1326
2022
292

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + col0 + col1 - - col1 * + col0 + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1326
2022
292

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT - col1 DIV - 32 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - col1 / - 32 AS col2 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - MAX( - - 58 ) + - + 80 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-5123
SELECT - MAX ( - - 58 ) + - + 80 FROM tab1
----
-138

query II rowsort
SELECT ALL col0, - col2 - + 24 FROM tab0
----
15
-71
87
-34
97
-123

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5125
SELECT DISTINCT + 97 * COUNT( * ) + CAST( NULL AS DECIMAL ) + + AVG ( + 33 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + 97 * COUNT ( * ) + CAST ( NULL AS REAL ) + + AVG ( + 33 ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT ALL 2 DIV col2 + - ( - col2 ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL 2 / col2 + - ( - col2 ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT col0 FROM tab0 WHERE - col2 - col0 <= + + 55 + - - col2
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT + CAST( NULL AS SIGNED ) - - col1 + ( - - col2 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5128
SELECT + CAST ( NULL AS INTEGER ) - - col1 + ( - - col2 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 25, + 89 * + 89 / - - col2 * + col0 + + col2 + - - 33 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT 53 DIV + col0 AS col1 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5133
SELECT 53 / + col0 AS col1 FROM tab0
----
0
0
3

query II rowsort
SELECT ALL + col1 * + + 27, + col2 FROM tab0 AS cor0
----
2187
47
27
99
567
10

query I rowsort
SELECT + 17 * + 61 * + col0 AS col0 FROM tab2 AS cor0
----
47702
66368
77775

query I rowsort
SELECT DISTINCT - 32 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5137
SELECT ALL col1 * CAST( - - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL col1 * CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 85 <> - - 80 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT 8 DIV + col2 * + 18 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5139
SELECT 8 / + col2 * + 18 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT SUM( DISTINCT - col1 ) * - - 2 AS col0 FROM tab0
----
-206

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT SUM ( DISTINCT - col1 ) * - - 2 AS col0 FROM tab0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL MAX( - 69 ) AS col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL MAX ( - 69 ) AS col2 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - COUNT( * ) * - - COUNT( * ) * - ( 28 ) AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-5142
SELECT - COUNT ( * ) * - - COUNT ( * ) * - ( 28 ) AS col0 FROM tab1
----
252

query I rowsort
SELECT ALL - - col1 - + + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-98
11
34

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + - 64 >= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * ( - 13 ) * + + col0 FROM tab0
----
-122317
-2925
-98397

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + COUNT( * ) * + 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5146
SELECT + COUNT ( * ) * + 1 FROM tab1
----
3

query I rowsort
SELECT ALL - ( - col0 ) + + - 98 FROM tab0
----
-1
-11
-83

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab1 WHERE NOT - 41 < + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT DISTINCT + COUNT( * ), - ( - - MIN( col1 ) ) AS col1 FROM tab2
----
3
-51

skipif mysql # not compatible
query II rowsort label-5149
SELECT DISTINCT + COUNT ( * ), - ( - - MIN ( col1 ) ) AS col1 FROM tab2
----
3
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 61 col1 FROM tab0 AS cor0
----
-5307
-5917
-915

query I rowsort
SELECT + col2 * - col2 + - col1 AS col1 FROM tab2 cor0
----
-1677
-3431
-580

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 * + 18 AND - ( + 68 ) / - col2
----

query I rowsort
SELECT 67 + col2 FROM tab2 AS cor0
----
107
125
90

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col0 + 22 AS col2 FROM tab0 WHERE NOT - 81 IS NULL
----
119
1237
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ( ( + COUNT( * ) ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5155
SELECT ( ( + COUNT ( * ) ) ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT - CAST( NULL AS SIGNED ) * col2 + 77 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT - CAST ( NULL AS INTEGER ) * col2 + 77 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT ALL - col2 * - col0 - - col0 DIV - - col2 col1 FROM tab2 AS cor0
----
1060
2561
4351

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5157
SELECT ALL - col2 * - col0 - - col0 / - - col2 col1 FROM tab2 AS cor0
----
1060
2561
4351

query II rowsort
SELECT - col0, 85 AS col1 FROM tab2 AS cor0
----
-46
85
-64
85
-75
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL - MAX( DISTINCT 84 ) + COUNT( * ) AS col2 FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - MAX ( DISTINCT 84 ) + COUNT ( * ) AS col2 FROM tab2 cor0
----
-81

query I rowsort
SELECT DISTINCT + + 78 - - 48 AS col0 FROM tab2 AS cor0
----
126

query I rowsort
SELECT ALL - + col2 - - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col2, col0 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT MIN( + col1 ) - - - AVG ( + col2 ) FROM tab2 AS cor0 WHERE col1 * - + 33 + - - col2 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT MIN ( + col1 ) - - - AVG ( + col2 ) FROM tab2 AS cor0 WHERE col1 * - + 33 + - - col2 * + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - - col2 - - col2 * + - col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 8 <= + col2
----

query I rowsort
SELECT - - 14 AS col2 FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND - 94 + col0 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5167
SELECT ALL + CAST( NULL AS SIGNED ), 93 AS col1 FROM tab1, tab2 AS cor0
----
18 values hashing to 41b3c81ec771b290447f97705b824fc7

skipif mysql # not compatible
query II rowsort label-5167
SELECT ALL + CAST ( NULL AS INTEGER ), 93 AS col1 FROM tab1, tab2 AS cor0
----
18 values hashing to 41b3c81ec771b290447f97705b824fc7

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + 82 + + COUNT( * ) + + + 28 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-5168
SELECT + 82 + + COUNT ( * ) + + + 28 FROM tab0
----
113

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 49 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( - - 43 ) IS NOT NULL
----

query I rowsort
SELECT + col0 + - col2 * + + col0 * - 77 AS col2 FROM tab2
----
197184
335025
81512

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT - ( + + MIN( ALL col1 ) ) + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT - ( + + MIN ( ALL col1 ) ) + COUNT ( * ) FROM tab2
----
-48

query I rowsort
SELECT ALL - col1 * - + 21 AS col0 FROM tab1
----
105
294
987

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 48 + - + ( - 4 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - - 90 * col2 + col2 * 30 * 77
----

query I rowsort
SELECT DISTINCT + ( - 53 ) * 47 AS col0 FROM tab2
----
-2491

query I rowsort
SELECT col2 * - + 14 * + 91 FROM tab0
----
-126126
-12740
-59878

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL BETWEEN - - col0 AND NULL
----

query II rowsort
SELECT col0 AS col1, 19 FROM tab1
----
51
19
85
19
91
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT DISTINCT 10 DIV col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT 10 / col2 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + - MIN( + 87 ) AS col1 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5181
SELECT + - MIN ( + 87 ) AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + MAX( + ( - col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5182
SELECT + MAX ( + ( - col2 ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL MAX( DISTINCT + - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL MAX ( DISTINCT + - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT SUM( DISTINCT - 15 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-5185
SELECT SUM ( DISTINCT - 15 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5186
SELECT ALL MIN( + 11 ) + + + SUM( col2 ) DIV - + COUNT( * ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL MIN ( + 11 ) + + + SUM ( col2 ) / - + COUNT ( * ) AS col1 FROM tab0
----
-41

query I rowsort
SELECT - col1 + + 94 + - col0 FROM tab2
----
-3
-47
-48

query I rowsort
SELECT col2 + - col2 * + col0 FROM tab0
----
-658
-860
-9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT SUM( ALL col0 ) + - COUNT( * ) DIV 87 + + + 92 AS col0 FROM tab1
----
319

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT SUM ( ALL col0 ) + - COUNT ( * ) / 87 + + + 92 AS col0 FROM tab1
----
319

query I rowsort
SELECT + col1 + + col1 * - - col1 FROM tab2
----
2652
4556
6006

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT col2 DIV 31 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5192
SELECT col2 / 31 FROM tab0
----
0
1
3

query I rowsort
SELECT ALL - 8 FROM tab1, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - ( + col2 ) + col2 + + - 2 * + col0 * + col1
----

query I rowsort
SELECT col1 / + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + col0 * - 70 + - col0 FROM tab0 AS cor0
----
-1146
-6198
-6888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 - - ( col0 ) col0 FROM tab0 AS cor0
----
101
173
183

query I rowsort
SELECT DISTINCT - - 8 - - col2 - - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-2570
-4423
-5881

query I rowsort
SELECT ALL ( - col0 ) - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 84 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT + col1 DIV + col1 + + - col0 * + + col1 FROM tab2 AS cor0
----
-2345
-4927
-5024

skipif mysql # not compatible
query I rowsort label-5201
SELECT + col1 / + col1 + + - col0 * + + col1 FROM tab2 AS cor0
----
-2345
-4927
-5024

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - 68 + COUNT( * ) AS col1 FROM tab2 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 68 + COUNT ( * ) AS col1 FROM tab2 cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * 39 * + col1 col0 FROM tab0
----
126360
1560
32760

query I rowsort
SELECT DISTINCT + col2 * - - 14 FROM tab2
----
322
560
812

onlyif mysql # DIV for integer division: 
query I rowsort label-5205
SELECT ALL - col2 * col0 DIV - - ( + ( + - col0 ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - col2 * col0 / - - ( + ( + - col0 ) ) FROM tab1
----
59
68
96

query II rowsort
SELECT DISTINCT 82 AS col0, col1 FROM tab2
----
82
51
82
67
82
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + - COUNT( - 0 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5207
SELECT + - COUNT ( - 0 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - - COUNT( - 65 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5208
SELECT - - COUNT ( - 65 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - col1 AS col0, 77 - - col0 FROM tab2 AS cor0
----
-51
123
-67
152
-77
141

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( - 78 ) * + 53 IS NULL
----

query II rowsort
SELECT DISTINCT + + col0, 80 + - col1 AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( col0, + 94, - - ( - col0 ), + col2 - + 55 + col2 + + - col2 )
----
15
-1
87
59
97
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT - - ( - col0 ) DIV - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - - ( - col0 ) / - col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT DISTINCT + 26 DIV - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + 26 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5214
SELECT ALL 79 DIV + - col2 AS col2, + col0 * - - 36 FROM tab2 AS cor0
----
-1
2304
-1
2700
-3
1656

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL 79 / + - col2 AS col2, + col0 * - - 36 FROM tab2 AS cor0
----
-1
2304
-1
2700
-3
1656

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 93 / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT - + col0 DIV col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT - + col0 / col2 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL + 51 + - COUNT( * ) - 35 AS col2 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + 51 + - COUNT ( * ) - 35 AS col2 FROM tab1
----
13

query II rowsort
SELECT col1 AS col0, + col1 AS col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5219
SELECT ALL - col1 AS col0 FROM tab2 WHERE - ( + CAST( NULL AS DECIMAL ) ) + + - col0 = + col0 * 76 * + + col2
----

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - col1 AS col0 FROM tab2 WHERE - ( + CAST ( NULL AS REAL ) ) + + - col0 = + col0 * 76 * + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - col0 * 37 AS col1 FROM tab2
----
51
-1702
67
-2775
77
-2368

query I rowsort
SELECT ALL + col1 + 61 AS col2 FROM tab2
----
112
128
138

query I rowsort
SELECT DISTINCT + col0 + - - col2 AS col1 FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT + 63 * col1 + - ( - - col1 ) + + col1 DIV col0 FROM tab0 cor0
----
1302
5027
62

skipif mysql # not compatible
query I rowsort label-5223
SELECT + 63 * col1 + - ( - - col1 ) + + col1 / col0 FROM tab0 cor0
----
1302
5027
62

query I rowsort
SELECT 36 * + 18 AS col1 FROM tab0
----
648
648
648

query I rowsort
SELECT 42 * col2 FROM tab2
----
1680
2436
966

query I rowsort
SELECT col1 * - 51 FROM tab2
----
-2601
-3417
-3927

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 + 69 ) NOT IN ( + 95 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 68 * col0 ) IN ( 54 + - col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * col1 col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + 75 * ( col0 ) AS col0 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT col1 + ( col1 ) AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL + col2 * + 44 AS col1 FROM tab1
----
2596
2992
4224

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 85 / 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT NULL <= col1 - + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST( 62 AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-5235
SELECT + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST ( 62 AS INTEGER ) * col0
----

query I rowsort
SELECT ALL 39 * 42 AS col0 FROM tab0
----
1638
1638
1638

query I rowsort
SELECT ( 27 ) AS col2 FROM tab0
----
27
27
27

query I rowsort
SELECT ALL 1 + - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT DISTINCT + 67 * + col2 - CAST( col2 AS SIGNED ) FROM tab2
----
1518
2640
3828

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT + 67 * + col2 - CAST ( col2 AS INTEGER ) FROM tab2
----
1518
2640
3828

query III rowsort
SELECT * FROM tab1 WHERE NOT - 59 * - 38 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE 29 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT COUNT( * ) * 68 col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5244
SELECT COUNT ( * ) * 68 col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 45 FROM tab2 WHERE NOT 17 IS NULL
----
45
45
45

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE ( - col2 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL - COUNT( * ) - 13 AS col0 FROM tab0 cor0 WHERE NOT col1 NOT IN ( + col0 )
----
-13

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - COUNT ( * ) - 13 AS col0 FROM tab0 cor0 WHERE NOT col1 NOT IN ( + col0 )
----
-13

query I rowsort
SELECT DISTINCT col0 * - ( + col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT DISTINCT + col1 DIV 99 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT + col1 / 99 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col1 * ( ( + 89 ) ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 39 * 60 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to ab65baba13ad41e9d466e50261082dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT DISTINCT col1 + + 47 / col0 FROM tab0 AS cor0 WHERE NOT ( - 52 + 7 ) NOT IN ( - col1 * - col2 )
----

query I rowsort
SELECT DISTINCT + - 50 AS col1 FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 79 AS col1 FROM tab0 AS cor0 WHERE + col2 - 65 NOT IN ( 75 * col0 )
----
-79
-79
-79

query I rowsort
SELECT + 37 + + 86 FROM tab0 cor0
----
123
123
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 col0 FROM tab0 AS cor0 WHERE + col0 + 86 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5259
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 col0 FROM tab0 AS cor0 WHERE + col0 + 86 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT + + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT + + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 42 + col1 AS col1 FROM tab2 AS cor0
----
25
35
9

query I rowsort
SELECT col0 + - 70 * col2 FROM tab1
----
-4045
-4669
-6669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT - COUNT( ALL ( col1 ) ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT - COUNT ( ALL ( col1 ) ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + 7 * + 89 + + ( COUNT( * ) ) AS col2 FROM tab0
----
626

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 7 * + 89 + + ( COUNT ( * ) ) AS col2 FROM tab0
----
626

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE 13 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 57 ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + col1 + - 96 FROM tab0
----
-15
-75
-95

query III rowsort
SELECT * FROM tab1 WHERE 68 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL + SUM( DISTINCT + 32 ) + + 58 AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + SUM ( DISTINCT + 32 ) + + 58 AS col0 FROM tab0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5270
SELECT ALL col2 + - CAST( NULL AS DECIMAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL col2 + - CAST ( NULL AS REAL ) + - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT COUNT( * ) * 83 AS col1 FROM tab0 AS cor0 WHERE col2 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( * ) * 83 AS col1 FROM tab0 AS cor0 WHERE col2 < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL + COUNT( * ) * + 93 + 66 FROM tab1 AS cor0
----
345

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL + COUNT ( * ) * + 93 + 66 FROM tab1 AS cor0
----
345

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) >= ( + 10 )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col0 * + col1 + - col1 col0 FROM tab0 AS cor0
----
18249
57024
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL + - COUNT( ALL - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL + - COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - + 88 AS col2 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - 78 * + + col2 FROM tab0
----
-3666
-7722
-780

query I rowsort
SELECT + col2 + col2 FROM tab2 WHERE ( NOT col2 < ( ( 74 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 56 + + col1 AS col2 FROM tab2 WHERE - + col1 IS NOT NULL
----
107
123
133

query I rowsort
SELECT DISTINCT + 10 - + col1 * + 34 FROM tab0
----
-24
-2744
-704

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / - 71 >= NULL OR + 80 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, - col1 * - + col2 * 79 AS col2 FROM tab2 AS cor0
----
23
92667
40
243320
58
306994

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5284
SELECT 57 AS col2, CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5284
SELECT 57 AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
57
NULL
57
NULL
57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5285
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 AND + CAST( 56 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5285
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 AND + CAST ( 56 AS INTEGER )
----

query I rowsort
SELECT 52 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND + col0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL - SUM( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - SUM ( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * col2 col0 FROM tab1 WHERE 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL + COUNT( DISTINCT - 94 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + COUNT ( DISTINCT - 94 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col2 + col2 / + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5294
SELECT ALL + col2 * col0 AS col2, CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

skipif mysql # not compatible
query II rowsort label-5294
SELECT ALL + col2 * col0 AS col2, CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
1058
NULL
2560
NULL
4350
NULL

query II rowsort
SELECT ALL col1 * 18, col1 FROM tab2 AS cor0
----
1206
67
1386
77
918
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 69 IN ( 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 62 < - 28
----
-50

query I rowsort
SELECT ALL col0 * - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - 77 * + col2 AS col2 FROM tab2 AS cor0
----
-1771
-3080
-4466

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) < - col1
----
97
1
99

query I rowsort
SELECT - + col1 + + col1 - - ( - col0 ) + - col1 * col2 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT col2 * + 33 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5303
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) / - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT - + CAST ( NULL AS REAL ) / - col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 53 * 76 >= ( - 54 * + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab0 AS cor0
----
85
85
85

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 < + col2 + - col2 + + 16 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT 28 * COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT 28 * COUNT ( * ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT + col1 * + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 30 + - 78 + + + col0 * + + 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0 AS col1, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT 73 * - + col2 * + ( - + 69 ) * + - col0 AS col2 FROM tab2
----
-12894720
-21910950
-5329146

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT COUNT( DISTINCT + 78 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5312
SELECT COUNT ( DISTINCT + 78 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL 53 + - ( + col0 ) AS col2 FROM tab1
----
-32
-38
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT MIN( ALL + 56 ) AS col0 FROM tab2, tab1 cor0
----
56

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT MIN ( ALL + 56 ) AS col0 FROM tab2, tab1 cor0
----
56

query I rowsort
SELECT 1 * + - 78 - - 56 * - + col2 FROM tab2
----
-1366
-2318
-3326

query I rowsort
SELECT ALL 19 AS col1 FROM tab1 WHERE - ( - col1 ) + + 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL 24 + - - COUNT( * ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL 24 + - - COUNT ( * ) AS col2 FROM tab1
----
27

query I rowsort
SELECT col1 + + - 49 * + col1 AS col1 FROM tab0
----
-1008
-3888
-48

query I rowsort
SELECT - 72 + 95 - 38 FROM tab1
----
-15
-15
-15

query II rowsort
SELECT - col2 + + + col1, 75 AS col0 FROM tab0 AS cor0
----
-98
75
11
75
34
75

query I rowsort
SELECT + 89 + col1 - - 38 * - col2 AS col2 FROM tab0 AS cor0
----
-1616
-270
-3672

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 30 + + - 89 + + - col1 BETWEEN ( col1 * - col1 ) AND - ( - col1 )
----
51
14
96
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 27 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + + 63 + COUNT( * ) FROM tab1 AS cor0 WHERE 82 * col1 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-5324
SELECT + + 63 + COUNT ( * ) FROM tab1 AS cor0 WHERE 82 * col1 IS NULL
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - + col0, + col1 * + + ( - 11 ) col2 FROM tab2
----
0
-561
0
-737
0
-847

query I rowsort
SELECT DISTINCT - 74 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL + COUNT( 9 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + COUNT ( 9 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL ( + + ( + SUM( DISTINCT 92 ) ) ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL ( + + ( + SUM ( DISTINCT 92 ) ) ) FROM tab1
----
92

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( - col2 ) IS NULL )
----
59
68
96

query I rowsort
SELECT DISTINCT ( - 1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT CAST( NULL AS SIGNED ) + - + col2 + - - col0 + + col0 * - col2 * - CAST( NULL AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col1 - + col1 + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT CAST ( NULL AS INTEGER ) + - + col2 + - - col0 + + col0 * - col2 * - CAST ( NULL AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col1 - + col1 + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5333
SELECT ( - col1 ) * 67 * + col2 * + col1 DIV - col1 - + col0 AS col1 FROM tab1
----
19680
214041
89997

skipif mysql # not compatible
query I rowsort label-5333
SELECT ( - col1 ) * 67 * + col2 * + col1 / - col1 - + col0 AS col1 FROM tab1
----
19680
214041
89997

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT - col1 DIV - 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT - col1 / - 87 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT + MIN( - 46 ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + MIN ( - 46 ) FROM tab0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT - COUNT( * ) * - + 91 DIV + + 41 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5336
SELECT - COUNT ( * ) * - + 91 / + + 41 FROM tab0
----
6

query I rowsort
SELECT DISTINCT - - 75 FROM tab0 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT + + MIN( - + 52 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5338
SELECT + + MIN ( - + 52 ) FROM tab1 AS cor0
----
-52

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( NULL ) IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 88 <= col0
----
91
47
68

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IN ( + col0, col0 )
----
35

query II rowsort
SELECT ALL + col2 + + col0 + ( - col2 ) AS col0, col0 * - - col0 + + - col0 FROM tab0 AS cor0
----
15
210
87
7482
97
9312

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55 * col2 * 33 AS col0, col2 * + 73 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
105270
4234
41745
1679
72600
2920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL + CAST( NULL AS SIGNED ) * + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col0 ) + - col1 * - col2 * + col1 * ( + + 10 ) * + - col0 + + - col0 FROM tab1
----
-1253920
-136693102
-9596262

query I rowsort
SELECT col0 + ( + col1 ) * + + 42 * + + 70 - + col1 - + col1 * + ( + 29 ) AS col0 FROM tab2
----
148456
195045
224134

query II rowsort
SELECT ALL - + ( - col1 ) AS col0, - col1 + - - col2 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
14
82
47
21
5
54

query I rowsort
SELECT DISTINCT - 38 - + col2 FROM tab2
----
-61
-78
-96

query I rowsort
SELECT - + ( + 26 ) / col1 * + - 10 FROM tab0 WHERE + col1 * - 5 + - 72 + + + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 33 - col0 AS col1 FROM tab0 AS cor0
----
-54
-64
18

onlyif mysql # DIV for integer division: 
query II rowsort label-5353
SELECT - col1 * + - col0 * col1 DIV col0 - - 53 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
2262
-68
249
-96
78
-59

skipif mysql # not compatible
query II rowsort label-5353
SELECT - col1 * + - col0 * col1 / col0 - - 53 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
2262
-68
249
-96
78
-59

query I rowsort
SELECT col0 * - - col0 - - col1 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT DISTINCT - - 10 FROM tab0 WHERE NOT + col1 <= + - 92
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - 74 col1, - col2 FROM tab2
----
1702
-23
2960
-40
4292
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT ALL + ( - CAST( 37 AS SIGNED ) ) AS col0 FROM tab1
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + ( - CAST ( 37 AS INTEGER ) ) AS col0 FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT - COUNT( * ) AS col2, 64 + - - COUNT( * ) FROM tab1 AS cor0
----
-3
67

skipif mysql # not compatible
query II rowsort label-5358
SELECT - COUNT ( * ) AS col2, 64 + - - COUNT ( * ) FROM tab1 AS cor0
----
-3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL COUNT( * ) * - - 5 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL COUNT ( * ) * - - 5 FROM tab2 AS cor0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5360
SELECT DISTINCT - col1 / + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - col1 / + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 79, 45 AS col2 FROM tab0 AS cor0
----
79
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col1 FROM tab2 cor0
----
-31
-31
-31

query II rowsort
SELECT ALL + col1 AS col1, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col0 FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0 WHERE + ( + 74 ) <> ( + col2 )
----
51
67
77

query II rowsort
SELECT + 94 AS col0, col0 FROM tab2 AS cor0
----
94
46
94
64
94
75

query II rowsort
SELECT - col1 AS col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE NOT - - 1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5369
SELECT ALL * FROM tab2 WHERE NOT - 46 * + col2 * + col0 * CAST( NULL AS SIGNED ) * - + 87 = NULL
----

skipif mysql # not compatible
query III rowsort label-5369
SELECT ALL * FROM tab2 WHERE NOT - 46 * + col2 * + col0 * CAST ( NULL AS INTEGER ) * - + 87 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-5370
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2
----
0

query I rowsort
SELECT DISTINCT + 10 + + + 80 AS col0 FROM tab2
----
90

query I rowsort
SELECT ALL + col2 * + + col0 + - + 4 AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
4892
5011
6184

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT - - col2 DIV - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5373
SELECT - - col2 / - + col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, + 79 + - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND - + col0
----

query I rowsort
SELECT ( + col1 ) * - 46 AS col2 FROM tab2 AS cor0
----
-2346
-3082
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL - 13 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - 13 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5377
SELECT + MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 / 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT + + CAST( + 80 AS SIGNED ) FROM tab2 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-5379
SELECT + + CAST ( + 80 AS INTEGER ) FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT ( - 66 ) + + col0 FROM tab0 cor0
----
-51
21
31

query I rowsort
SELECT DISTINCT - col1 + - 26 AS col0 FROM tab1
----
-31
-40
-73

query I rowsort
SELECT - col1 + + - 10 FROM tab1
----
-15
-24
-57

query I rowsort
SELECT + col0 * - 49 + col2 AS col2 FROM tab2
----
-2231
-3096
-3617

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 + - - 95 < NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 38 AS col1 FROM tab2 AS cor0
----
-105
-115
-89

query I rowsort
SELECT - col1 * + - 15 FROM tab1 cor0
----
210
705
75

query I rowsort
SELECT + + 54 * + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL + MAX( + - 51 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5388
SELECT ALL + MAX ( + - 51 ) col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - COUNT( - - col0 ) - - - 38 AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-5389
SELECT - COUNT ( - - col0 ) - - - 38 AS col0 FROM tab1
----
-41

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 / + col0 <> - 37
----

query I rowsort
SELECT - col1 - - col0 + + 73 FROM tab1
----
110
117
153

query I rowsort
SELECT + col2 FROM tab1 WHERE + + 43 - + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 + - - col1 col0 FROM tab1
----
124
82
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5394
SELECT + 97 + COUNT( ALL col0 ) + + CAST( - MIN( DISTINCT - 28 ) AS SIGNED ) * - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-5394
SELECT + 97 + COUNT ( ALL col0 ) + + CAST ( - MIN ( DISTINCT - 28 ) AS INTEGER ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
16

query I rowsort
SELECT + col2 + + col1 + + 72 * - col2 FROM tab2
----
-1582
-2763
-4051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL + col1 / ( - ( + col0 ) ) + - + col0 + col0 * + CAST( NULL AS SIGNED ) / + - 66 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + col1 / ( - ( + col0 ) ) + - + col0 + col0 * + CAST ( NULL AS INTEGER ) / + - 66 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT DISTINCT + col2 + + - CAST( 97 AS SIGNED ) FROM tab0
----
-50
-87
2

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + col2 + + - CAST ( 97 AS INTEGER ) FROM tab0
----
-50
-87
2

query I rowsort
SELECT + 20 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
15
28
7

query I rowsort
SELECT + col1 + - - col1 + col2 + 90 FROM tab2 AS cor0
----
215
282
284

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 <> 25 + col0 / col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 85 * + col2 * - + col0 AS col2 FROM tab2 AS cor0
----
217600
369750
89930

query I rowsort
SELECT 63 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - 78 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT + - 89 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT ALL + COUNT( * ) + + 59 AS col0, + COUNT( 48 ) AS col2 FROM tab1 AS cor0 WHERE + 82 - 12 IS NOT NULL
----
62
3

skipif mysql # not compatible
query II rowsort label-5405
SELECT ALL + COUNT ( * ) + + 59 AS col0, + COUNT ( 48 ) AS col2 FROM tab1 AS cor0 WHERE + 82 - 12 IS NOT NULL
----
62
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col2 col1 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL - MAX( + + 77 ) FROM tab1 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - MAX ( + + 77 ) FROM tab1 cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT CAST( 46 AS SIGNED ) FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5408
SELECT CAST ( 46 AS INTEGER ) FROM tab2
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5409
SELECT DISTINCT + 38 DIV 48 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + 38 / 48 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT 54 * MIN( DISTINCT - - 25 ) AS col0 FROM tab0
----
1350

skipif mysql # not compatible
query I rowsort label-5410
SELECT 54 * MIN ( DISTINCT - - 25 ) AS col0 FROM tab0
----
1350

query I rowsort
SELECT DISTINCT - col2 + + col1 + - + 52 * - - col1 * - 4 FROM tab1
----
2830
9755
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 + col2 col2 FROM tab1 WHERE + - ( - 31 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT COUNT( * ) + - 55 AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-5413
SELECT COUNT ( * ) + - 55 AS col2 FROM tab1
----
-52

query I rowsort
SELECT DISTINCT col2 + - 82 FROM tab1
----
-14
-23
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL SUM( ALL + + 1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL SUM ( ALL + + 1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 0 - + 28 AS col1 FROM tab0 cor0
----
-28

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col2
----

query II rowsort
SELECT ALL - 5 AS col2, ( + 98 ) FROM tab2 AS cor0
----
-5
98
-5
98
-5
98

query II rowsort
SELECT DISTINCT + 65 + 84, col1 FROM tab1
----
149
14
149
47
149
5

query I rowsort
SELECT - - col1 * 20 * + 68 + + + col1 FROM tab0 AS cor0
----
110241
1361
28581

query II rowsort
SELECT - - 77 + 48, + col2 AS col1 FROM tab1 AS cor0
----
125
59
125
68
125
96

query II rowsort
SELECT + 27 + + - 56, 26 AS col2 FROM tab0 AS cor0
----
-29
26
-29
26
-29
26

query I rowsort
SELECT ALL - col2 * 68 AS col0 FROM tab2 AS cor0
----
-1564
-2720
-3944

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL - - COUNT( + + col2 ) * + 16 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - - COUNT ( + + col2 ) * + 16 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
48

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + 37 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT + col2 AS col1, col0 AS col2 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab0 WHERE - + col0 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + col2 * + - ( + col0 ) FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT col2 * + - 32 AS col0 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL 95 + + + COUNT( * ) * COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL 95 + + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
176

query III rowsort
SELECT * FROM tab1 WHERE NOT 78 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab0 WHERE NOT + col0 IS NULL
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5435
SELECT - ( CAST( - + COUNT( * ) AS SIGNED ) ) col0, - COUNT( * ) DIV 29 * - 23 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5435
SELECT - ( CAST ( - + COUNT ( * ) AS INTEGER ) ) col0, - COUNT ( * ) / 29 * - 23 FROM tab2 AS cor0
----
3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5436
SELECT + 99, COUNT( ALL - CAST( + col0 AS SIGNED ) ) + + SUM( ALL 3 ) AS col0 FROM tab2 AS cor0
----
99
12

skipif mysql # not compatible
query II rowsort label-5436
SELECT + 99, COUNT ( ALL - CAST ( + col0 AS INTEGER ) ) + + SUM ( ALL 3 ) AS col0 FROM tab2 AS cor0
----
99
12

query I rowsort
SELECT DISTINCT - 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT ( NOT col0 * + col2 + + ( + col0 ) IS NOT NULL )
----
46
64
75

query I rowsort
SELECT + ( + + 86 ) AS col2 FROM tab1 cor0
----
86
86
86

query I rowsort
SELECT + ( col2 ) FROM tab2 AS cor0 WHERE NOT + ( col1 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT + 23 DIV - 45 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT + 23 / - 45 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5442
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL ( + MAX( - 66 ) ) col2 FROM tab1 AS cor0 WHERE ( NULL ) <> ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5443
SELECT ALL ( + MAX ( - 66 ) ) col2 FROM tab1 AS cor0 WHERE ( NULL ) <> ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + MAX( col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5445
SELECT + MAX ( col1 ) FROM tab0 cor0
----
81

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT + - col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT DISTINCT COUNT( * ) DIV - + 56 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT COUNT ( * ) / - + 56 AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 / + 26 * col0 + + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 98 FROM tab2
----
149
165
175

query I rowsort
SELECT DISTINCT + ( col0 ) + - col2 AS col2 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, 23 col1 FROM tab1
----
14
23
47
23
5
23

query I rowsort
SELECT DISTINCT col1 + - 43 FROM tab1
----
-29
-38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + COUNT( ALL + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5453
SELECT + COUNT ( ALL + + col2 ) FROM tab2
----
3

query I rowsort
SELECT - col2 * + 51 * - 56 AS col1 FROM tab1
----
168504
194208
274176

query II rowsort
SELECT + - ( + col2 ) + + 15, + col0 FROM tab2 AS cor0
----
-25
64
-43
75
-8
46

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT + 25 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 63 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT - COUNT( * ) AS col1, - 15 FROM tab2
----
-3
-15

skipif mysql # not compatible
query II rowsort label-5458
SELECT - COUNT ( * ) AS col1, - 15 FROM tab2
----
-3
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5459
SELECT DISTINCT - COUNT( * ) DIV 32 + + COUNT( * ) + - + 43 + 17 + - ( - 75 ) + - - COUNT( * ) * 11 * 89 col1 FROM tab1 AS cor0
----
2989

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5459
SELECT DISTINCT - COUNT ( * ) / 32 + + COUNT ( * ) + - + 43 + 17 + - ( - 75 ) + - - COUNT ( * ) * 11 * 89 col1 FROM tab1 AS cor0
----
2989

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col1 - - - col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT ALL + - col1 - 32 AS col0 FROM tab2 AS cor0
----
-109
-83
-99

query I rowsort
SELECT ALL + col2 - - col1 AS col0 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5464
SELECT DISTINCT col0 AS col0, CAST( - - 51 AS SIGNED ) * 37 AS col0 FROM tab1 AS cor0
----
51
1887
85
1887
91
1887

skipif mysql # not compatible
query II rowsort label-5464
SELECT DISTINCT col0 AS col0, CAST ( - - 51 AS INTEGER ) * 37 AS col0 FROM tab1 AS cor0
----
51
1887
85
1887
91
1887

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 15
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL - - MAX( col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - - MAX ( col2 ) FROM tab0 cor0
----
99

query I rowsort
SELECT ALL col1 + + + col0 + col2 FROM tab2
----
120
181
200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 54 BETWEEN ( - 4 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT 85 * COUNT( * ) AS col1 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-5470
SELECT 85 * COUNT ( * ) AS col1 FROM tab2
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT col0 * + col1 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
-197120
-291450
-53958

skipif mysql # not compatible
query I rowsort label-5471
SELECT col0 * + col1 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT col2 * col0 * - - col1 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT MIN( DISTINCT + 74 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5473
SELECT MIN ( DISTINCT + 74 ) AS col2 FROM tab1 AS cor0
----
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( 53 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - col0 col1 FROM tab2
----
-4278
-5952
-6975

query I rowsort
SELECT 41 * col0 FROM tab0
----
3567
3977
615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 35 * - col1 + - col0 AS col2, 28 col0 FROM tab0 AS cor0
----
-132
28
-2850
28
-822
28

query I rowsort
SELECT DISTINCT - 91 * - col2 AS col2 FROM tab1 AS cor0
----
5369
6188
8736

query I rowsort
SELECT DISTINCT col0 * - col1 + + col1 * - + col1 + + + col2 + - 27 FROM tab2 cor0
----
-10844
-4951
-9483

query I rowsort
SELECT DISTINCT - 97 * + 19 FROM tab0 AS cor0
----
-1843

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5481
SELECT + + 92 AS col0 FROM tab0 WHERE + + CAST( NULL AS DECIMAL ) IS NULL
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5481
SELECT + + 92 AS col0 FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NULL
----
92
92
92

query I rowsort
SELECT ( + + col0 ) * - col1 + - - col1 - - col0 + - col0 * - - 12 * col1 FROM tab1
----
-5435
-55463
-9217

query I rowsort
SELECT ALL + 66 * - + col0 FROM tab1
----
-3366
-5610
-6006

query II rowsort
SELECT ALL - - 85 - col2 + - 72 + + col0 AS col0, col2 + - - 49 - + col0 + + col0 * col0 FROM tab2 AS cor0
----
30
5657
36
2142
37
4121

query I rowsort
SELECT - - 13 * + 87 AS col0 FROM tab0 cor0
----
1131
1131
1131

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 >= ( + 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - col0 ) + ( - + col1 ) FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT + 8 + - + 93 * - - SUM( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-18499

skipif mysql # not compatible
query I rowsort label-5488
SELECT + 8 + - + 93 * - - SUM ( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-18499

query I rowsort
SELECT DISTINCT - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT DISTINCT - + col1 - - 24 - - col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-62
23
3

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT - + col1 - - 24 - - col1 / - col0 AS col0 FROM tab0 AS cor0
----
-62
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + + SUM( ALL + 35 ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5491
SELECT + + SUM ( ALL + 35 ) AS col2 FROM tab1 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT 29 * - + COUNT( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT 29 * - + COUNT ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col2 * - col1 * + col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query II rowsort
SELECT DISTINCT + col2, - col1 - + + col1 + + col2 FROM tab1
----
59
49
68
-26
96
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + COUNT( * ) * + + COUNT( * ) * - + 39 AS col0 FROM tab1
----
-351

skipif mysql # not compatible
query I rowsort label-5495
SELECT + COUNT ( * ) * + + COUNT ( * ) * - + 39 AS col0 FROM tab1
----
-351

query I rowsort
SELECT ALL + col0 * + 80 FROM tab2
----
3680
5120
6000

query II rowsort
SELECT ALL + col2 - col2, 91 - + + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL ( + MAX( + + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL ( + MAX ( + + col0 ) ) FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + - 12
----

query I rowsort
SELECT ALL - ( - + 52 ) AS col1 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - + col1 * + 43 AS col2 FROM tab1 AS cor0
----
-2021
-215
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT DISTINCT + ( - + col2 ) DIV - + col0 + + col2 * 46 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2714
3128
4417

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT + ( - + col2 ) / - + col0 + + col2 * 46 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2714
3128
4417

query II rowsort
SELECT - 14 AS col1, - col1 * + col1 FROM tab0 AS cor0
----
-14
-1
-14
-441
-14
-6561

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 WHERE + 63 IS NOT NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5505
SELECT * FROM tab1 WHERE NOT ( - + 92 * - ( + - 26 ) + - col0 * + CAST( - 69 AS SIGNED ) + + ( col2 ) * ( + + col0 ) ) >= col2
----

skipif mysql # not compatible
query III rowsort label-5505
SELECT * FROM tab1 WHERE NOT ( - + 92 * - ( + - 26 ) + - col0 * + CAST ( - 69 AS INTEGER ) + + ( col2 ) * ( + + col0 ) ) >= col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT DISTINCT - MAX( col2 ) AS col2, - COUNT( * ) AS col2 FROM tab1
----
-96
-3

skipif mysql # not compatible
query II rowsort label-5506
SELECT DISTINCT - MAX ( col2 ) AS col2, - COUNT ( * ) AS col2 FROM tab1
----
-96
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT - - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5507
SELECT - - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + 4 + 18 AS col0 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT ALL CAST( NULL AS SIGNED ) + + + col1 + + ( 93 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5509
SELECT ALL CAST ( NULL AS INTEGER ) + + + col1 + + ( 93 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 <= - - 81 + - 80 * - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL SUM( ( + 81 ) ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL SUM ( ( + 81 ) ) FROM tab2
----
243

query I rowsort
SELECT DISTINCT 62 * col2 + - 24 + 34 * - 38 FROM tab1
----
2342
2900
4636

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT COUNT( * ) - + - 8 AS col2 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-5514
SELECT COUNT ( * ) - + - 8 AS col2 FROM tab0
----
11

query I rowsort
SELECT - 40 + col1 FROM tab1
----
-26
-35
7

query I rowsort
SELECT col1 + - ( + col2 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT + CAST( + + col0 AS SIGNED ) + CAST( NULL AS SIGNED ) + - 16 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT + CAST ( + + col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) + - 16 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT COUNT( * ) DIV + COUNT( * ) + + + 56 AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5519
SELECT COUNT ( * ) / + COUNT ( * ) + + + 56 AS col1 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5520
SELECT + + MAX( - CAST( + + col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5520
SELECT + + MAX ( - CAST ( + + col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - + col0 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT COUNT( * ) FROM tab0 WHERE NOT col0 + - + 88 <= ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-5522
SELECT COUNT ( * ) FROM tab0 WHERE NOT col0 + - + 88 <= ( - col1 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5523
SELECT + CAST( NULL AS DECIMAL ) * - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT + CAST ( NULL AS REAL ) * - + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT - 45 * - 86 * + + 41 FROM tab1
----
158670
158670
158670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5525
SELECT CAST( - - COUNT( * ) AS SIGNED ) DIV - SUM( + 35 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5525
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) / - SUM ( + 35 ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5526
SELECT DISTINCT 60 / + CAST( NULL AS DECIMAL ) * - + COUNT( * ) * + 11 * - ( - COUNT( * ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT 60 / + CAST ( NULL AS REAL ) * - + COUNT ( * ) * + 11 * - ( - COUNT ( * ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - ( + 37 ) * + - COUNT( * ) AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-5527
SELECT - ( + 37 ) * + - COUNT ( * ) AS col1 FROM tab2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT DISTINCT - ( - COUNT( * ) ) + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - ( - COUNT ( * ) ) + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND - col2 + + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - ( - 90 ) FROM tab1 cor0
----
-90
-90
-90

query I rowsort
SELECT ALL - - 39 FROM tab1 AS cor0 WHERE NOT - col2 + col0 IS NULL
----
39
39
39

query I rowsort
SELECT - + col2 AS col0 FROM tab0 cor0 WHERE 14 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT - - COUNT( * ) DIV + - 67 + - - 10 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - - COUNT ( * ) / + - 67 + - - 10 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * - col0 col0 FROM tab2 WHERE + ( - 38 ) BETWEEN + - col0 + - col1 - + - col2 + - 68 * + col1 + - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 51 AND - col1 + + 59 - - 40
----

query I rowsort
SELECT + col2 + + col1 - + 67 AS col2 FROM tab2
----
50
58
7

query I rowsort
SELECT + 16 + - - col0 * - col0 AS col2 FROM tab2
----
-2100
-4080
-5609

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT SUM( + ( + + ( + 47 ) ) ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5538
SELECT SUM ( + ( + + ( + 47 ) ) ) AS col0 FROM tab1
----
141

query I rowsort
SELECT DISTINCT 36 + + + col0 AS col1 FROM tab1
----
121
127
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT ALL - 18 - + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL - 18 - + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - - col0 + 44 FROM tab0 AS cor0
----
131
141
59

query I rowsort
SELECT - 55 * col0 - - - 75 FROM tab0
----
-4860
-5410
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL + ( + + MAX( - 44 ) ) FROM tab2, tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + ( + + MAX ( - 44 ) ) FROM tab2, tab0 AS cor0
----
-44

query I rowsort
SELECT - - 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - COUNT( * ) * - 62 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
558

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5546
SELECT - COUNT ( * ) * - 62 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
558

query I rowsort
SELECT DISTINCT + + col2 * col1 AS col1 FROM tab1 WHERE + + col1 NOT BETWEEN - + col1 * + col2 * + - 83 + col2 AND + - 29
----
1344
295
3196

query I rowsort
SELECT ALL - col1 * - - col2 + - 13 FROM tab2 AS cor0
----
-1186
-3093
-3899

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT DISTINCT ( + 61 ) * - - COUNT( - col0 ) AS col0 FROM tab1 cor0
----
183

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT ( + 61 ) * - - COUNT ( - col0 ) AS col0 FROM tab1 cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT SUM( + + 51 ) FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT SUM ( + + 51 ) FROM tab0 cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + ( + - col2 ) - + - col1 col2 FROM tab2 AS cor0
----
-1260
-2203
-3239

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5552
SELECT - col1, + 38 + - col1 + - - col1 + - 51 + + 25 * ( - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-51
1262
-67
1662
-77
1912

skipif mysql # not compatible
query II rowsort label-5552
SELECT - col1, + 38 + - col1 + - - col1 + - 51 + + 25 * ( - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-51
1262
-67
1662
-77
1912

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - ( - col0 ) <= - 19
----

query I rowsort
SELECT ALL + 29 * - - 56 AS col0 FROM tab1 AS cor0
----
1624
1624
1624

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 + - - 74 IS NULL
----

query II rowsort
SELECT + + col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT DISTINCT - - COUNT( * ) * - - COUNT( - + 12 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( - + 12 ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL 27 AS col2 FROM tab0 WHERE - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 0 + + col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < col0 + - + col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT + + MAX( col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT + + MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT + col1 * - CAST( + 12 AS SIGNED ) FROM tab0 AS cor0
----
-12
-252
-972

skipif mysql # not compatible
query I rowsort label-5562
SELECT + col1 * - CAST ( + 12 AS INTEGER ) FROM tab0 AS cor0
----
-12
-252
-972

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <= + col1
----

query I rowsort
SELECT + 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT MAX( - + col1 ) col2 FROM tab1 WHERE + + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5565
SELECT MAX ( - + col1 ) col2 FROM tab1 WHERE + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL COUNT( col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL COUNT ( col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5567
SELECT - COUNT( * ) * 31 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT - COUNT ( * ) * 31 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - col0 + - - 17 * - col1 FROM tab2 AS cor0
----
-2983
-5405
-6764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT + col0 AS col0 FROM tab2 cor0 WHERE col2 + - ( + 75 ) * - col1 - - - 83 = + - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5569
SELECT + col0 AS col0 FROM tab2 cor0 WHERE col2 + - ( + 75 ) * - col1 - - - 83 = + - CAST ( - col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 * + - col2 col0 FROM tab1 AS cor0
----
-354
-408
-576

query II rowsort
SELECT DISTINCT ( + ( + + col1 ) ), - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 79 + - col1 * + - 94 + - col0 AS col0, - 25 col0 FROM tab2
----
4827
-25
6302
-25
7253
-25

query I rowsort
SELECT col0 * col1 - + + 0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - col0 * - + col2 + + - col1 FROM tab2
----
1007
2483
4283

onlyif mysql # DIV for integer division: 
query I rowsort label-5575
SELECT col1 + - col0 + - - ( col2 ) DIV + col2 FROM tab2
----
-7
14
6

skipif mysql # not compatible
query I rowsort label-5575
SELECT col1 + - col0 + - - ( col2 ) / + col2 FROM tab2
----
-7
14
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5576
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL CAST ( NULL AS REAL ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col2 FROM tab0 WHERE - 77 + - col1 IS NULL
----

query I rowsort
SELECT ALL - 63 - - col2 AS col0 FROM tab1
----
-4
33
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT MIN( - - col2 ) + + - 88 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT MIN ( - - col2 ) + + - 88 FROM tab2
----
-65

query I rowsort
SELECT col0 * - - 66 + + ( + col1 ) AS col0 FROM tab1
----
3380
5615
6053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT + CAST( NULL AS SIGNED ) + - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT + CAST ( NULL AS INTEGER ) + - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col2 - - + col1 + col2 + + col1 FROM tab2 AS cor0
----
-2366
-4158
-933

query I rowsort
SELECT DISTINCT + col1 * col2 + - + col2 AS col2 FROM tab0 AS cor0
----
0
200
3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - 37 - + - col0 - - - col0 col2 FROM tab0 cor0
----
-3219
-3589
-555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + 80 col2 FROM tab2 AS cor0
----
-126
-144
-155

query I rowsort
SELECT ALL - + 15 * - col1 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + 41 * 86 FROM tab0
----
3526
3526
3526

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 22 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 57 + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + 7 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 12 <= ( + 31 ) + - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL COUNT( * ) * + SUM( DISTINCT - + col2 ) * - - 36 + - COUNT( ALL - 38 ) + - + COUNT( * ) col0 FROM tab1
----
-24090

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5594
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT - + col2 ) * - - 36 + - COUNT ( ALL - 38 ) + - + COUNT ( * ) col0 FROM tab1
----
-24090

query III rowsort
SELECT * FROM tab0 WHERE NOT + 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL SUM( ALL + + ( - - 98 ) ) AS col0 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL SUM ( ALL + + ( - - 98 ) ) AS col0 FROM tab0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT + + MIN( DISTINCT 82 ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + + MIN ( DISTINCT 82 ) FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT - + 62 * - + SUM( ALL - col2 ) FROM tab2 AS cor0
----
-7502

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT - + 62 * - + SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-7502

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + - 94 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT - MAX( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5601
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 * - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5601
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 * - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - - col1 + - 76 AS col2 FROM tab1
----
-51
120
2133

query I rowsort
SELECT DISTINCT - col1 + - + ( - 49 ) * + 19 * - - 93 FROM tab2 WHERE NOT ( ( NULL IS NOT NULL ) )
----
86506
86516
86532

query I rowsort
SELECT ALL 71 + - col0 * + - ( + 25 ) + + 18 FROM tab0
----
2264
2514
464

query I rowsort
SELECT DISTINCT + 43 + + - 90 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-47

query I rowsort
SELECT ALL + col0 + - 26 FROM tab1 cor0
----
25
59
65

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5608
SELECT * FROM tab0 cor0 WHERE col1 * CAST( + + 16 AS DECIMAL ) * + col2 + + col2 >= 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5608
SELECT * FROM tab0 cor0 WHERE col1 * CAST ( + + 16 AS REAL ) * + col2 + + col2 >= 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 42 + - ( - 66 ) AS col2 FROM tab1 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT ALL + - CAST( NULL AS SIGNED ) + + col0