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 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT - 28 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT - 28 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 25 * col2 + ( + - col0 ) FROM tab0 cor0
----
1160
163
2378

query I rowsort
SELECT DISTINCT - col1 * col2 - col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-2231
-5640
-8236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col1 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - ( - 50 ) + - col1 + - 86 + - col0 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
-102513
-24421
-252403

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

query II rowsort
SELECT 9 * + col0 + - - col2, col0 AS col0 FROM tab2
----
437
46
616
64
733
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + col0 * + col1 col0 FROM tab2
----
3404
7488
9375

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL COUNT( DISTINCT 14 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL COUNT ( DISTINCT 14 ) FROM tab2
----
1

query I rowsort
SELECT ALL + 35 + + col1 FROM tab1
----
40
49
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT col2 DIV col0 * - ( + col1 ) FROM tab0
----
-1
-243
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT col2 / col0 * - ( + col1 ) FROM tab0
----
-1
-243
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT DISTINCT - + 21 - - COUNT( * ) AS col0 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - + 21 - - COUNT ( * ) AS col0 FROM tab2 cor0
----
-18

query I rowsort
SELECT + + col2 * - col2 * ( + 96 ) FROM tab2 AS cor0
----
-153600
-322944
-50784

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

query II rowsort
SELECT 39, ( + + 2 ) AS col1 FROM tab2 AS cor0
----
39
2
39
2
39
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT + + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT + 95 < col0 / + - 82 - + 81
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT + 95 < col0 / + - 82 - + 81
----
NULL
NULL
NULL

query I rowsort
SELECT - 29 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> 33 * - 25
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IN ( col1 + + - ( col1 ) * + + col2, + col1 / - 24, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IN ( col1 + + - ( col1 ) * + + col2, + col1 / - 24, col1 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5632
SELECT ALL col1 col0, + col0 * + - col1 + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
51
-2346
67
-5025
77
-4928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5632
SELECT ALL col1 col0, + col0 * + - col1 + col2 / - col1 AS col1 FROM tab2 AS cor0
----
51
-2346
67
-5025
77
-4928

query I rowsort
SELECT DISTINCT 9 * - col0 FROM tab0 cor0
----
-135
-783
-873

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT ALL + 85 * - 29, COUNT( * ) AS col2 FROM tab2
----
-2465
3

skipif mysql # not compatible
query II rowsort label-5635
SELECT ALL + 85 * - 29, COUNT ( * ) AS col2 FROM tab2
----
-2465
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT DISTINCT 94 + + - CAST( + 27 AS SIGNED ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT 94 + + - CAST ( + 27 AS INTEGER ) FROM tab1
----
67

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

query I rowsort
SELECT ALL + col1 + - 77 + - 56 AS col1 FROM tab1 WHERE + 61 IS NOT NULL
----
-119
-128
-86

query I rowsort
SELECT + 7 * - 13 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query II rowsort
SELECT + - col2, - 79 AS col1 FROM tab0 WHERE NOT ( NOT col0 <> NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + COUNT( DISTINCT - + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5642
SELECT + COUNT ( DISTINCT - + col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT 84 * + 88 + - + MAX( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
7301

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT 84 * + 88 + - + MAX ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
7301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT - COUNT( * ) DIV + 66 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - COUNT ( * ) / + 66 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL + 46 * + COUNT( - 10 ) AS col1 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL + 46 * + COUNT ( - 10 ) AS col1 FROM tab2 AS cor0
----
138

query I rowsort
SELECT DISTINCT - + 56 * - col2 AS col0 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT + - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 WHERE - + 44 * + 55 * col0 + + 11 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 WHERE - + 44 * + 55 * col0 + + 11 * + col1 IS NULL
----
0

query I rowsort
SELECT - 21 + - col1 FROM tab0
----
-102
-22
-42

query I rowsort
SELECT - ( - 86 ) AS col1 FROM tab1
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + col0 col0 FROM tab0 AS cor0
----
-2
-32
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 9 col0 FROM tab1 cor0
----
-531
-612
-864

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 25 BETWEEN + col1 AND + + col0
----
87
21
10
97
1
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col0 col2 FROM tab0 cor0
----
-174
-194
-30

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 - - col0 col1 FROM tab1
----
122
156
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT CAST( - col0 AS SIGNED ) * - col1 * + - 75 + + col1 AS col1 FROM tab0
----
-137004
-7274
-91044

skipif mysql # not compatible
query I rowsort label-5661
SELECT CAST ( - col0 AS INTEGER ) * - col1 * + - 75 + + col1 AS col1 FROM tab0
----
-137004
-7274
-91044

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 3 / - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 + + col0 AS col2 FROM tab2
----
144
191
92

query I rowsort
SELECT - 53 + + col0 FROM tab1
----
-2
32
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT COUNT( ALL + - 23 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5666
SELECT COUNT ( ALL + - 23 ) FROM tab1
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT DISTINCT + col0 DIV - ( + 23 ) + - + col0 FROM tab1 AS cor0
----
-53
-88
-94

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + col0 / - ( + 23 ) + - + col0 FROM tab1 AS cor0
----
-53
-88
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5669
SELECT ALL 96 AS col2 FROM tab0 AS cor0 WHERE + 53 IN ( CAST( + - col1 AS DECIMAL ), - 34, - col1, + + col0 / - col1 + col2 )
----

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL 96 AS col2 FROM tab0 AS cor0 WHERE + 53 IN ( CAST ( + - col1 AS REAL ), - 34, - col1, + + col0 / - col1 + col2 )
----

query I rowsort
SELECT col2 * + col2 * 1 AS col2 FROM tab1
----
3481
4624
9216

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5671
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 * - - col2 col2 FROM tab2 WHERE NOT - + col0 NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL - MAX( ALL 9 ) AS col0 FROM tab2 cor0 WHERE NOT - 96 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL - MAX ( ALL 9 ) AS col0 FROM tab2 cor0 WHERE NOT - 96 IS NULL
----
-9

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

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT 2 <= - 99
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IN ( + col0, + col0 * col2 + + 98 )
----

query II rowsort
SELECT - 71 * - 29 + + - col1, col0 FROM tab0 cor0
----
1978
15
2038
87
2058
97

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

query I rowsort
SELECT DISTINCT - + 49 FROM tab1 WHERE + + ( + col1 ) IS NULL
----

query I rowsort
SELECT 3 + + col0 AS col0 FROM tab1
----
54
88
94

query I rowsort
SELECT col1 + - col0 * + - 15 AS col0 FROM tab0
----
1326
1456
306

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

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

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

query I rowsort
SELECT ALL + col2 * + + 43 + + + 87 AS col0 FROM tab2
----
1076
1807
2581

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT + col0 + + col2 DIV + + 99 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5686
SELECT + col0 + + col2 / + + 99 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL SUM( ALL + col2 ) * + COUNT( * ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL SUM ( ALL + col2 ) * + COUNT ( * ) FROM tab0
----
468

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

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

query I rowsort
SELECT DISTINCT - 56 * + + col2 + + + col0 AS col2 FROM tab1 AS cor0
----
-3219
-3717
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + COUNT( * ) - 85 AS col2 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-5690
SELECT + COUNT ( * ) - 85 AS col2 FROM tab2
----
-82

query I rowsort
SELECT ALL - + 61 - + col0 + - col1 FROM tab0 AS cor0
----
-157
-159
-169

query I rowsort
SELECT DISTINCT - col0 + + 67 AS col1 FROM tab1 AS cor0
----
-18
-24
16

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

query II rowsort
SELECT + 68 * - 79 - - col1 AS col0, col2 FROM tab1 AS cor0
----
-5325
68
-5358
96
-5367
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 63 ) < + col0
----
46
51
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5696
SELECT + col0, CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5696
SELECT + col0, CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 60 col0 FROM tab1
----
2820
300
840

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT DISTINCT + 35 DIV - col2 AS col0 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT + 35 / - col2 AS col0 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5699
SELECT 31 * 18 + - + COUNT( * ), + 27 * 19 AS col2 FROM tab1 WHERE NOT ( - col2 + - col2 BETWEEN + + col2 * + + col0 * - 48 AND ( - + 45 ) )
----
558
513

skipif mysql # not compatible
query II rowsort label-5699
SELECT 31 * 18 + - + COUNT ( * ), + 27 * 19 AS col2 FROM tab1 WHERE NOT ( - col2 + - col2 BETWEEN + + col2 * + + col0 * - 48 AND ( - + 45 ) )
----
558
513

query II rowsort
SELECT ALL - col0 * - 6 * - col0, 37 AS col0 FROM tab0
----
-1350
37
-45414
37
-56454
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT - col0 DIV - + col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5702
SELECT - col0 / - + col1 AS col0 FROM tab1
----
1
17
3

query I rowsort
SELECT col2 FROM tab1 WHERE - 76 IS NULL
----

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

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT DISTINCT 57 DIV COUNT( * ) + SUM( + col1 ) * - COUNT( * ) AS col0 FROM tab0
----
-290

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT 57 / COUNT ( * ) + SUM ( + col1 ) * - COUNT ( * ) AS col0 FROM tab0
----
-290

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

query I rowsort
SELECT DISTINCT 3 FROM tab2 WHERE col2 + 8 <> ( + 78 / + col1 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT - CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab2
----
9

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

query I rowsort
SELECT - ( - ( - col0 ) ) * col1 - + col1 AS col0 FROM tab0
----
-1296
-1848
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + MAX( - col2 ) AS col1 FROM tab1 WHERE ( + col0 ) NOT BETWEEN col0 - - col1 AND - ( + col1 ) * 22
----
-59

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + MAX ( - col2 ) AS col1 FROM tab1 WHERE ( + col0 ) NOT BETWEEN col0 - - col1 AND - ( + col1 ) * 22
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT ALL 91 + col2 DIV + col1 AS col0 FROM tab2
----
91
91
91

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL 91 + col2 / + col1 AS col0 FROM tab2
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
NULL

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

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

query I rowsort
SELECT + 22 AS col2 FROM tab1 WHERE col1 * col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ( + COUNT( * ) ) + - 29 * SUM( ALL 83 ) AS col2 FROM tab2
----
-7218

skipif mysql # not compatible
query I rowsort label-5717
SELECT ( + COUNT ( * ) ) + - 29 * SUM ( ALL 83 ) AS col2 FROM tab2
----
-7218

query III rowsort
SELECT * FROM tab2 WHERE + col1 * col0 + 60 <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT SUM( ALL + 67 ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-5719
SELECT SUM ( ALL + 67 ) FROM tab0
----
201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT DISTINCT + COUNT( * ) * 91 AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT + COUNT ( * ) * 91 AS col0 FROM tab1
----
273

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE ( NULL ) IN ( 12 + 90 )
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5726
SELECT ALL COUNT( * ) * 30 - 87 DIV - 94 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL COUNT ( * ) * 30 - 87 / - 94 FROM tab0 AS cor0
----
90

query I rowsort
SELECT - col1 * 72 AS col0 FROM tab2 cor0 WHERE + 49 NOT IN ( - 90 )
----
-3672
-4824
-5544

query I rowsort
SELECT DISTINCT + col2 * 59 FROM tab1 AS cor0 WHERE NOT - col2 - col2 IS NULL
----
3481
4012
5664

query I rowsort
SELECT DISTINCT 72 * ( 27 ) - 17 FROM tab2 AS cor0
----
1927

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5730
SELECT MAX ( col2 ) * + COUNT ( * ) + + COUNT ( * ) * 6 col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col2 AND + col2
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT IN ( + 98 + ( - 11 ) * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 31 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT + 95 DIV + COUNT( * ) AS col1 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-5734
SELECT + 95 / + COUNT ( * ) AS col1 FROM tab2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5735
SELECT ALL ( - 88 ) DIV - 19 + - MAX( ALL + 58 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL ( - 88 ) / - 19 + - MAX ( ALL + 58 ) FROM tab0
----
-54

query I rowsort
SELECT ALL - 60 * - col0 + col0 FROM tab2 AS cor0
----
2806
3904
4575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT + + ( 9 ) - 38 * CAST( col1 - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1283
-409
3733

skipif mysql # not compatible
query I rowsort label-5737
SELECT + + ( 9 ) - 38 * CAST ( col1 - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1283
-409
3733

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - - 57 * COUNT( * ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5738
SELECT - - 57 * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL - COUNT( col0 ) + + 19 AS col2 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - COUNT ( col0 ) + + 19 AS col2 FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL + - 95 + col2 AS col0 FROM tab1 AS cor0
----
-27
-36
1

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

skipif mysql # not compatible
query I rowsort label-5741
SELECT + CAST ( + 45 AS INTEGER ) / col2 - + ( + 42 + - col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * ( col0 ) FROM tab2 cor0
----
-1058
-2560
-4350

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 14 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 60 * + col2 FROM tab0
----
2820
5940
600

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col0 - col0 / col0
----

query I rowsort
SELECT ALL + col2 * + 60 AS col1 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT DISTINCT col1 * + 81 FROM tab2
----
4131
5427
6237

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT DISTINCT - col1 DIV - col1 col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5750
SELECT DISTINCT - col1 / - col1 col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL CAST( + 56 AS SIGNED ) * + 38 FROM tab2
----
2128
2128
2128

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL CAST ( + 56 AS INTEGER ) * + 38 FROM tab2
----
2128
2128
2128

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT + col0 DIV - - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5752
SELECT + col0 / - - col0 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT CAST( - 45 AS SIGNED ) * col2 FROM tab2
----
-1035
-1800
-2610

skipif mysql # not compatible
query I rowsort label-5753
SELECT CAST ( - 45 AS INTEGER ) * col2 FROM tab2
----
-1035
-1800
-2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT - MAX( + col2 ) DIV 19 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5754
SELECT - MAX ( + col2 ) / 19 FROM tab1
----
-5

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

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

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

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + MAX ( - - 72 ) AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE col0 >= col0
----
51
85
91

query I rowsort
SELECT ALL - col2 * + + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL COUNT( * ) * + 90 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 62 * - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5759
SELECT ALL COUNT ( * ) * + 90 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 62 * - col2
----
0

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

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL 94 * 38 FROM tab0
----
3572
3572
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT + MAX( ALL ( + 75 ) ) * + MAX( + col2 * - col0 + - col1 * 90 ) + + COUNT( * ) * COUNT( * ) FROM tab2
----
-423591

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + MAX ( ALL ( + 75 ) ) * + MAX ( + col2 * - col0 + - col1 * 90 ) + + COUNT ( * ) * COUNT ( * ) FROM tab2
----
-423591

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

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

query I rowsort
SELECT ALL - 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5770
SELECT ALL - 20 * 34 * 42 DIV COUNT( * ) + - ( 53 ) AS col0 FROM tab0 AS cor0
----
-9573

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - 20 * 34 * 42 / COUNT ( * ) + - ( 53 ) AS col0 FROM tab0 AS cor0
----
-9573

query I rowsort
SELECT DISTINCT + col1 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL 51 + - + COUNT( * ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL 51 + - + COUNT ( * ) AS col1 FROM tab2
----
48

query I rowsort
SELECT - col0 * + col2 + col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT col1 + + - col1 * - 22 * 89 FROM tab1
----
27426
92073
9795

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5775
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) / - col0 + col1 * 8 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / - col0 + col1 * 8 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT + 32 + 45 AS col1 FROM tab1
----
77
77
77

query I rowsort
SELECT - 63 AS col0 FROM tab1 WHERE col0 + - 33 IS NULL
----

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

skipif mysql # not compatible
query III rowsort label-5779
SELECT * FROM tab0 AS cor0 WHERE col0 < - CAST ( NULL AS INTEGER ) * - + 70
----

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

query I rowsort
SELECT DISTINCT + 74 - + col1 AS col2 FROM tab0 cor0
----
-7
53
73

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 > - 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - 10 FROM tab0
----
-10
-210
-810

query I rowsort
SELECT + col0 - + + 22 FROM tab0
----
-7
65
75

query I rowsort
SELECT ( 63 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - + 18 * col0 FROM tab1 AS cor0
----
-1530
-1638
-918

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

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

query I rowsort
SELECT + + ( + - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

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

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

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

query I rowsort
SELECT ALL + 46 * + 57 FROM tab2
----
2622
2622
2622

query II rowsort
SELECT ALL - col0 AS col2, 92 AS col1 FROM tab1
----
-51
92
-85
92
-91
92

query I rowsort
SELECT DISTINCT - col0 * + ( + 80 ) FROM tab1
----
-4080
-6800
-7280

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

query I rowsort
SELECT DISTINCT 49 FROM tab2 WHERE NOT NULL IS NOT NULL
----
49

query II rowsort
SELECT ALL 75, col1 FROM tab2
----
75
51
75
67
75
77

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

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

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

query I rowsort
SELECT ALL col2 * - - 43 + 21 FROM tab0 AS cor0 WHERE NOT ( - 54 ) >= + 56 + + - col1
----
2042
4278
451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5802
SELECT ALL - - 87 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - - 87 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT - 89 - - 63 + - 37 FROM tab2 AS cor0 WHERE NOT 87 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT MAX( - 45 ) AS col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5804
SELECT MAX ( - 45 ) AS col2 FROM tab1 AS cor0
----
-45

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

skipif mysql # not compatible
query I rowsort label-5805
SELECT ( 83 ) + ( - COUNT ( * ) ) FROM tab2
----
80

query I rowsort
SELECT ALL col1 * ( - - 22 ) AS col2 FROM tab2
----
1122
1474
1694

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

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

query I rowsort
SELECT + 18 * - + col2 AS col2 FROM tab0 AS cor0
----
-1782
-180
-846

onlyif mysql # DIV for integer division: 
query II rowsort label-5809
SELECT + col0 DIV - - 74 AS col1, - 29 FROM tab2 AS cor0
----
0
-29
0
-29
1
-29

skipif mysql # not compatible
query II rowsort label-5809
SELECT + col0 / - - 74 AS col1, - 29 FROM tab2 AS cor0
----
0
-29
0
-29
1
-29

query I rowsort
SELECT ALL - ( - col1 ) * - 56 AS col2 FROM tab0 AS cor0
----
-1176
-4536
-56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 24 * col0 + + col2 > + col2
----

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

query I rowsort
SELECT ALL + ( + col2 ) * - 22 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-1276
-506
-880

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

skipif mysql # not compatible
query I rowsort label-5814
SELECT - COUNT ( + + col2 ) / MAX ( col2 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL col1 * + col1, col1 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT ALL 1 DIV - - 21 * + COUNT( ALL - col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL 1 / - - 21 * + COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 44 + - 63 * - 33 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
2035
2035
2035

query I rowsort
SELECT ALL + col1 + 78 FROM tab0
----
159
79
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT DISTINCT - - col1 - col0 + 44 DIV - - col1 * - col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - - col1 - col0 + 44 / - - col1 * - col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5820
SELECT col2 DIV 54 - + + 11 + + CAST( - 5 AS SIGNED ) AS col2 FROM tab2
----
-15
-16
-16

skipif mysql # not compatible
query I rowsort label-5820
SELECT col2 / 54 - + + 11 + + CAST ( - 5 AS INTEGER ) AS col2 FROM tab2
----
-15
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 54 col1 FROM tab1
----
-14
-42
-5

query I rowsort
SELECT - 95 + + col0 * col0 FROM tab0
----
130
7474
9314

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT 72 + - + COUNT( * ) * + 21 + - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5823
SELECT 72 + - + COUNT ( * ) * + 21 + - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT - col2 + - col0 + + col2 * - 63 + - - col2 AS col2 FROM tab1
----
-3802
-4375
-6099

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5825
SELECT + 82 + - CAST( 68 AS SIGNED ) + - col1 AS col2, col1 FROM tab1
----
-33
47
0
14
9
5

skipif mysql # not compatible
query II rowsort label-5825
SELECT + 82 + - CAST ( 68 AS INTEGER ) + - col1 AS col2, col1 FROM tab1
----
-33
47
0
14
9
5

query I rowsort
SELECT + col0 + + - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + - 11 + - - 10 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5827
SELECT + - 11 + - - 10 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT + - col1 + + - col1 + col1 + - + 8 + col0 + - + col2 + col1 * 19 DIV col2 * + col2 FROM tab2 AS cor0
----
1160
1379
930

skipif mysql # not compatible
query I rowsort label-5828
SELECT + - col1 + + - col1 + col1 + - + 8 + col0 + - + col2 + col1 * 19 / col2 * + col2 FROM tab2 AS cor0
----
1160
1379
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5829
SELECT DISTINCT + - COUNT( DISTINCT - + col2 ) - + MAX( 6 ) + MAX( ALL CAST( 8 AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + - COUNT ( DISTINCT - + col2 ) - + MAX ( 6 ) + MAX ( ALL CAST ( 8 AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + ( - col2 ) - + + col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = ( NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT + - 35 * CAST( 70 AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 470ab9baf37206f6896a77857b8ec9f0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5834
SELECT + - 35 * CAST ( 70 AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 470ab9baf37206f6896a77857b8ec9f0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5835
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5835
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) col2 FROM tab0
----
NULL
3

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( col2 * - - col2 * - col1 + - col2 ) NOT IN ( 83 + + col0, - 41 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5838
SELECT DISTINCT - CAST( + SUM( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT + + col0 BETWEEN - + 10 AND + col1
----
2

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT + + col0 BETWEEN - + 10 AND + col1
----
2

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

skipif mysql # not compatible
query I rowsort label-5840
SELECT COUNT ( * ) / + 63 FROM tab0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT 7 * + col1 AS col2 FROM tab2 cor0
----
357
469
539

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

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

query II rowsort
SELECT DISTINCT + 63, col0 AS col2 FROM tab1 AS cor0
----
63
51
63
85
63
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + + col1 col0 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT DISTINCT - CAST( - 62 AS SIGNED ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - CAST ( - 62 AS INTEGER ) FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT - col1 + CAST( + 6 AS SIGNED ) * + + 28 AS col1 FROM tab0
----
147
167
87

skipif mysql # not compatible
query I rowsort label-5850
SELECT - col1 + CAST ( + 6 AS INTEGER ) * + + 28 AS col1 FROM tab0
----
147
167
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5851
SELECT COUNT( * ) * + 78 + + - CAST( NULL AS SIGNED ) * + 79 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT COUNT ( * ) * + 78 + + - CAST ( NULL AS INTEGER ) * + 79 FROM tab2
----
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE ( + - col1 ) IS NOT NULL
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT 34 * - MAX( DISTINCT + col1 ) AS col0 FROM tab2
----
-2618

skipif mysql # not compatible
query I rowsort label-5854
SELECT 34 * - MAX ( DISTINCT + col1 ) AS col0 FROM tab2
----
-2618

query I rowsort
SELECT ALL col2 + + - col2 AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT + col2 + - col0, - col2 AS col0 FROM tab2
----
-17
-58
-23
-23
-24
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5857
SELECT DISTINCT CAST( - - 2 AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT CAST ( - - 2 AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2
----
5

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

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

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

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

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0 cor0 WHERE NOT - col2 * 16 - col0 * - 36 IN ( - + 8 )
----
-29

query I rowsort
SELECT + + col2 * 86 * + + col1 FROM tab2 cor0
----
100878
264880
334196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 18 * - - col2 < col0 + - col1 * + 26 / + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT 30 * - COUNT( * ) * - - COUNT( * ) col2 FROM tab2
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5864
SELECT 30 * - COUNT ( * ) * - - COUNT ( * ) col2 FROM tab2
----
-270

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

query I rowsort
SELECT 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT + + COUNT( * ) FROM tab0 cor0 WHERE NOT - col0 IN ( + + 96 + + + ( - - col0 ), + 57 )
----
3

skipif mysql # not compatible
query I rowsort label-5869
SELECT + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col0 IN ( + + 96 + + + ( - - col0 ), + 57 )
----
3

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

skipif mysql # not compatible
query I rowsort label-5870
SELECT - MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
10

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 1 / - col2 - + 23 IN ( - 93 + + + col1 )
----
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 - 82 col0, 46 * + - col0 col2 FROM tab0 AS cor0
----
-82
-4002
-82
-4462
-82
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE 44 * 53 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE 44 * 53 <= NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + COUNT( DISTINCT + 61 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5877
SELECT ALL + COUNT ( DISTINCT + 61 ) col2 FROM tab0
----
1

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

query I rowsort
SELECT + - 75 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
231000
291450
87975

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 91, + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + COUNT( - 42 ) AS col1 FROM tab2 WHERE NULL = col1 + + - col1
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT + COUNT ( - 42 ) AS col1 FROM tab2 WHERE NULL = col1 + + - col1
----
0

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

query II rowsort
SELECT + - col1 * + - 97 - - - ( - + 85 ) * - 11 AS col1, col1 FROM tab2 AS cor0
----
4012
51
5564
67
6534
77

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

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

query I rowsort
SELECT ALL - + col2 - - col0 * + col2 AS col2 FROM tab0 AS cor0
----
658
860
9504

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

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

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

query I rowsort
SELECT ( + + col1 ) - - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col2 / - col0 / + - 90
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> col2 * + col1 AND NOT 27 BETWEEN + + col1 AND NULL
----
15
81
47

query I rowsort
SELECT 62 - - col2 + col1 * 72 + - col0 + + col1 AS col1 FROM tab0
----
137
1518
6007

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT - 10 DIV col0 * + - col0 - - - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5894
SELECT - 10 / col0 * + - col0 - - - col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL 56 + col1 AS col2 FROM tab0
----
137
57
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5897
SELECT * FROM tab1 WHERE NOT NULL <= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5897
SELECT * FROM tab1 WHERE NOT NULL <= - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 99 * + - 56 FROM tab0
----
-5544
-5544
-5544

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

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

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

query I rowsort
SELECT col1 * + 11 AS col1 FROM tab1
----
154
517
55

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

query I rowsort
SELECT col2 * + col2 * + col0 + + + col0 * + col0 FROM tab1 AS cor0
----
303110
429065
472617

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

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

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

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

query I rowsort
SELECT - 76 + + col2 * + col1 FROM tab1
----
1268
219
3120

query II rowsort
SELECT col2 + - col2 - - - 74 - - col0, + col1 FROM tab0
----
-59
81
13
21
23
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT DISTINCT 0, + COUNT( * ) * - + 20 - - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
0
-60

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT 0, + COUNT ( * ) * - + 20 - - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
0
-60

query I rowsort
SELECT + 7 + - 21 AS col2 FROM tab0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5911
SELECT * FROM tab0 WHERE + col0 / + - CAST( - + 2 AS SIGNED ) NOT IN ( - col0 * 5 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5911
SELECT * FROM tab0 WHERE + col0 / + - CAST ( - + 2 AS INTEGER ) NOT IN ( - col0 * 5 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + 56 * - + col2 AS col1 FROM tab2 AS cor0 WHERE col0 = - + 71
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + SUM( DISTINCT - - ( - 94 ) ) + - 88 + - COUNT( * ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5917
SELECT + SUM ( DISTINCT - - ( - 94 ) ) + - 88 + - COUNT ( * ) FROM tab2 AS cor0
----
-185

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 + + col0 + 28 col1 FROM tab1 AS cor0
----
164
198
204

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

query I rowsort
SELECT DISTINCT + col0 - ( + - col2 ) FROM tab2
----
104
133
69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5926
SELECT DISTINCT + + 70, ( - COUNT( * ) ) * - - 86 AS col0 FROM tab2 AS cor0
----
70
-258

skipif mysql # not compatible
query II rowsort label-5926
SELECT DISTINCT + + 70, ( - COUNT ( * ) ) * - - 86 AS col0 FROM tab2 AS cor0
----
70
-258

query I rowsort
SELECT ALL + 71 * + - 72 AS col2 FROM tab0 AS cor0
----
-5112
-5112
-5112

query I rowsort
SELECT DISTINCT + 22 * + + col2 FROM tab0 AS cor0
----
1034
2178
220

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 cor1 ON NOT NULL IS NOT NULL WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * + + 69 FROM tab1
----
3519
5865
6279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5931
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 + 6 + col1 / - + col2 * - + col2 * CAST( NULL AS SIGNED ) <= + 28
----

skipif mysql # not compatible
query III rowsort label-5931
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 + 6 + col1 / - + col2 * - + col2 * CAST ( NULL AS INTEGER ) <= + 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT DISTINCT 34 AS col1, COUNT( * ) * - COUNT( * ) col2 FROM tab1 AS cor0
----
34
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5932
SELECT DISTINCT 34 AS col1, COUNT ( * ) * - COUNT ( * ) col2 FROM tab1 AS cor0
----
34
-9

query II rowsort
SELECT + col1 AS col2, 65 + - col2 FROM tab1 AS cor0
----
14
-31
47
-3
5
6

query I rowsort
SELECT ALL 48 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT + MIN( + 34 ) AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT + MIN ( + 34 ) AS col1 FROM tab0 AS cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT DISTINCT 20 * + col2 * + col1 DIV - col1 FROM tab2 AS cor0
----
-1160
-460
-800

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT 20 * + col2 * + col1 / - col1 FROM tab2 AS cor0
----
-1160
-460
-800

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 * - col1 col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT col2 + + 48 - 72 AS col1 FROM tab0 AS cor0
----
-14
23
75

query I rowsort
SELECT - 88 AS col2 FROM tab0 WHERE NOT col1 BETWEEN - - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT DISTINCT - 42 DIV + - col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - 42 / + - col0 FROM tab0
----
0
2

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

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

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

query I rowsort
SELECT DISTINCT + + 45 AS col0 FROM tab0 WHERE NOT NULL >= col2 + col0
----

query I rowsort
SELECT DISTINCT 39 + - + 50 FROM tab1
----
-11

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

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

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

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

query I rowsort
SELECT DISTINCT + 36 + col0 FROM tab2 AS cor0
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT MAX( ( - col0 ) ) + COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5950
SELECT MAX ( ( - col0 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
-48

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

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + 24 * + 90 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT ALL + - 76 DIV ( 96 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + - 76 / ( 96 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT - 26 FROM tab1 AS cor0 WHERE - col1 = - 64 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5954
SELECT - 26 FROM tab1 AS cor0 WHERE - col1 = - 64 + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5955
SELECT + AVG ( 90 ) - MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT + AVG ( 90 ) - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) - - 33 col0 FROM tab2 AS cor0
----
108
79
97

query I rowsort
SELECT DISTINCT + 63 - + col2 FROM tab1 AS cor0
----
-33
-5
4

query II rowsort
SELECT ALL + 92, col1 FROM tab2 AS cor0
----
92
51
92
67
92
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + 95 * - MIN( + 27 ) AS col2 FROM tab1
----
-2565

skipif mysql # not compatible
query I rowsort label-5960
SELECT + 95 * - MIN ( + 27 ) AS col2 FROM tab1
----
-2565

query II rowsort
SELECT + col1, 34 * 64 + + 17 FROM tab2 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5962
SELECT 2 DIV - - MIN( ALL col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT 2 / - - MIN ( ALL col0 ) FROM tab0
----
0

query I rowsort
SELECT - 96 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT COUNT ( * ) / + COUNT ( DISTINCT ( - 39 ) ) FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT - 69 AS col2 FROM tab1 WHERE NOT - + 56 IS NULL
----
-69
-69
-69

query I rowsort
SELECT ALL - ( ( - - col2 ) ) * - - col0 FROM tab2
----
-1058
-2560
-4350

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

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

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

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

query I rowsort
SELECT ALL - + 79 FROM tab1 cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 91 = + + col2 + - col0 * + col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5976
SELECT ALL + 20 * - - 46 * - - col1 AS col0, col1 * - col1 DIV - col1 FROM tab0 AS cor0
----
19320
21
74520
81
920
1

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL + 20 * - - 46 * - - col1 AS col0, col1 * - col1 / - col1 FROM tab0 AS cor0
----
19320
21
74520
81
920
1

query I rowsort
SELECT + 69 + - col0 * - 11 AS col2 FROM tab0 AS cor0
----
1026
1136
234

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

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

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT col1 / 21 FROM tab1
----
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL 81 DIV - + 16 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL 81 / - + 16 FROM tab1
----
-5
-5
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 25 col0 FROM tab2
----
100
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + COUNT( * ) + + MIN( DISTINCT + + col1 ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5983
SELECT + COUNT ( * ) + + MIN ( DISTINCT + + col1 ) AS col0 FROM tab1
----
8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT 79 * + - 72 + + 11 + - CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT 79 * + - 72 + + 11 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 21 + + + 39 * 68 FROM tab2
----
2673
2673
2673

query I rowsort
SELECT ALL + col1 + 12 FROM tab2
----
63
79
89

query I rowsort
SELECT DISTINCT 66 * + col1 AS col2 FROM tab1
----
3102
330
924

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

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

query I rowsort
SELECT + col1 - - - col2 FROM tab2 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT + col1 * col0 - + + 22 FROM tab0
----
1193
1805
75

query I rowsort
SELECT ALL - 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT ALL - col2 - col1 + + col2 / 79 + - ( + col1 ) + - + ( + - col1 ) * + col2 / - col2 * + CAST( NULL AS SIGNED ) * - col0 / + 27 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - col2 - col1 + + col2 / 79 + - ( + col1 ) + - + ( + - col1 ) * + col2 / - col2 * + CAST ( NULL AS INTEGER ) * - col0 / + 27 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL - ( col2 ) * - 14 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 69 * + 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT - col2 * col1 DIV col1 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5998
SELECT - col2 * col1 / col1 AS col2 FROM tab1
----
-59
-68
-96

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

query I rowsort
SELECT 67 * - 38 FROM tab2
----
-2546
-2546
-2546

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 78 BETWEEN - col0 AND + 19
----
51
14
96

query I rowsort
SELECT col1 * + 7 FROM tab2
----
357
469
539

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6005
SELECT + CAST( NULL AS DECIMAL ) - - - 32 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) = NULL )
----

skipif mysql # not compatible
query I rowsort label-6005
SELECT + CAST ( NULL AS REAL ) - - - 32 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) = NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 69 = - - col0 * + col1 + - 91 )
----

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

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

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

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

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

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

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

query I rowsort
SELECT + 72 * - 71 AS col0 FROM tab1 cor0
----
-5112
-5112
-5112

query I rowsort
SELECT + 75 * + + 40 AS col2 FROM tab2 AS cor0
----
3000
3000
3000

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT + ( COUNT( * ) ) * - 34 AS col0 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6015
SELECT + ( COUNT ( * ) ) * - 34 AS col0 FROM tab0 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT ALL + + CAST( + 23 AS SIGNED ) * - 68 * - - col2 AS col1 FROM tab1 AS cor0
----
-106352
-150144
-92276

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL + + CAST ( + 23 AS INTEGER ) * - 68 * - - col2 AS col1 FROM tab1 AS cor0
----
-106352
-150144
-92276

query I rowsort
SELECT ALL 65 + col2 AS col0 FROM tab0 AS cor0
----
112
164
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 + - 79 col2 FROM tab2
----
-169
-169
-169

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

query I rowsort
SELECT ALL 9 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + ( 6 ) col2 FROM tab0
----
103
1221
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT COUNT( * ) + - + 53 * - + SUM( ALL - col2 ) + + 56 FROM tab2
----
-6354

skipif mysql # not compatible
query I rowsort label-6022
SELECT COUNT ( * ) + - + 53 * - + SUM ( ALL - col2 ) + + 56 FROM tab2
----
-6354

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL MAX( - col0 ) + 40 AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL MAX ( - col0 ) + 40 AS col2 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT + - 68 - - 45 AS col1 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL 36 * 24 FROM tab2
----
864
864
864

query I rowsort
SELECT DISTINCT 63 + + + 85 + - col1 * + ( - - ( - - ( - + 45 ) ) ) * + col1 FROM tab1
----
1273
8968
99553

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL COUNT( DISTINCT - 40 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL COUNT ( DISTINCT - 40 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT ALL - MAX( ALL col0 ) + - - ( MIN( ALL - - 87 ) ) * + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1
----
170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6029
SELECT ALL - MAX ( ALL col0 ) + - - ( MIN ( ALL - - 87 ) ) * + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT - ( - - ( - - 8 ) ) * - COUNT( col0 ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - ( - - ( - - 8 ) ) * - COUNT ( col0 ) AS col2 FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6031
SELECT DISTINCT - col1 DIV + CAST( col1 AS SIGNED ) + - 64 * - + ( + col2 ) + + - col2 * - col1 + 52 + - col2 AS col1 FROM tab2 AS cor0
----
2673
5651
7591

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT - col1 / + CAST ( col1 AS INTEGER ) + - 64 * - + ( + col2 ) + + - col2 * - col1 + 52 + - col2 AS col1 FROM tab2 AS cor0
----
2673
5651
7591

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

skipif mysql # not compatible
query II rowsort label-6032
SELECT - COUNT ( * ) AS col2, - 53 AS col1 FROM tab0 AS cor0
----
-3
-53

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

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

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

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

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

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

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

query I rowsort
SELECT col0 * + - 48 AS col0 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT ALL - col1 * - - 51 AS col1 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT col2 * + 66 AS col2 FROM tab2
----
1518
2640
3828

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT + col2 * - col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6042
SELECT MAX( ALL - col2 ) * COUNT( * ), - CAST( + + 99 AS SIGNED ) - 96 AS col2 FROM tab0
----
-30
-195

skipif mysql # not compatible
query II rowsort label-6042
SELECT MAX ( ALL - col2 ) * COUNT ( * ), - CAST ( + + 99 AS INTEGER ) - 96 AS col2 FROM tab0
----
-30
-195

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

query I rowsort
SELECT ALL + + 52 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-44
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT + COUNT( * ) + + 74 - + 20 + ( + - MIN( ALL - + col0 ) ) * - + SUM( ALL + col2 ) FROM tab2 AS cor0
----
-9018

skipif mysql # not compatible
query I rowsort label-6045
SELECT + COUNT ( * ) + + 74 - + 20 + ( + - MIN ( ALL - + col0 ) ) * - + SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-9018

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

skipif mysql # not compatible
query I rowsort label-6046
SELECT + col1 * - + 63 + + ( - CAST ( NULL AS INTEGER ) ) + + - 1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - col0 * 56 * + 69 + - - col0 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
-336102
-374712
-58026

query I rowsort
SELECT ALL - col0 + 25 + + col1 FROM tab0
----
-41
-71
91

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

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

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

skipif mysql # not compatible
query III rowsort label-6050
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + - col0 + + - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT ( - col0 NOT BETWEEN - col0 AND - 74 ) ) )
----
51
14
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT + 89 - ( + - COUNT( ALL + + col0 ) ) AS col0 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6053
SELECT + 89 - ( + - COUNT ( ALL + + col0 ) ) AS col0 FROM tab0 AS cor0
----
92

query I rowsort
SELECT col2 * 58 - + 79 AS col1 FROM tab0 AS cor0
----
2647
501
5663

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT + MIN( 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT + MIN ( 35 ) FROM tab1
----
35

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT + 45 DIV col2 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6057
SELECT + 45 / col2 FROM tab0 cor0
----
0
0
4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6058
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-6060
SELECT + CAST ( MIN ( DISTINCT - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-58

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

onlyif mysql # DIV for integer division: 
query III rowsort label-6062
SELECT ALL col0 AS col0, col2 DIV + col1, - + ( - + 86 ) + + col1 + - - col1 col2 FROM tab1 AS cor0
----
9 values hashing to 14b91b64f0d239dd285a39944b7ba63a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6062
SELECT ALL col0 AS col0, col2 / + col1, - + ( - + 86 ) + + col1 + - - col1 col2 FROM tab1 AS cor0
----
9 values hashing to 14b91b64f0d239dd285a39944b7ba63a

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT col2 <= + col1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 39 * col2 AS col2 FROM tab0 AS cor0
----
1833
3861
390

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

query I rowsort
SELECT DISTINCT col1 * - 1 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT DISTINCT - col2 DIV col2 * + + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT - col2 / col2 * + + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT ALL CAST( NULL AS SIGNED ) / 40 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL CAST ( NULL AS INTEGER ) / 40 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 13 col0 FROM tab2
----
51
-13
67
-13
77
-13

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

query I rowsort
SELECT ( - 86 ) * + - col1 FROM tab1
----
1204
4042
430

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6072
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT ALL - ( + col2 ) DIV + + col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - ( + col2 ) / + + col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * + + col1 * + 91 FROM tab2 AS cor0
----
236691
408499
539539

query I rowsort
SELECT - col2 + + + 1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 <= - col1
----
-46
-9
-98

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

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

query I rowsort
SELECT - ( + 64 ) + 8 AS col2 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT + col0 * - + col1 + + col0 AS col1 FROM tab0
----
-1200
-1740
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL - COUNT( DISTINCT - 60 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - COUNT ( DISTINCT - 60 ) AS col1 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT ALL + col2 + col1 + 30 * col2 FROM tab1 AS cor0
----
1834
2155
2990

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT SUM( - col0 ) + + AVG ( ALL - - 30 ) AS col0, 17 FROM tab1 AS cor0 WHERE ( NOT ( - col1 * + 45 * + col0 < + + 1 ) )
----
NULL
17

skipif mysql # not compatible
query II rowsort label-6084
SELECT SUM ( - col0 ) + + AVG ( ALL - - 30 ) AS col0, 17 FROM tab1 AS cor0 WHERE ( NOT ( - col1 * + 45 * + col0 < + + 1 ) )
----
NULL
17

query II rowsort
SELECT ALL + col1 AS col2, 52 FROM tab1
----
14
52
47
52
5
52

query I rowsort
SELECT DISTINCT - 4 + col1 + - + ( + ( col2 ) ) AS col1 FROM tab1
----
-25
-58
-86

query I rowsort
SELECT ALL - 21 + ( 19 ) FROM tab2
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 27 >= NULL
----

query I rowsort
SELECT + 57 FROM tab0 WHERE - col1 - 16 IS NULL
----

query I rowsort
SELECT ALL 96 * - col1 + col2 + - 61 * + 88 FROM tab2
----
-10241
-11742
-12720

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

query I rowsort
SELECT + 24 * col1 + + + 32 + - 40 * col1 AS col1 FROM tab0 AS cor0
----
-1264
-304
16

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 45 AS col0 FROM tab1 AS cor0
----
2655
3060
4320

query I rowsort
SELECT ALL ( + - 84 ) AS col1 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT ALL + 45 FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

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

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

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

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

query I rowsort
SELECT ALL - 69 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
176640
300150
73002

query I rowsort
SELECT ALL col1 - + 66 * - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3899
4535
6350

query I rowsort
SELECT ALL 8 * - - col0 AS col2 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6103
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + + col1 / + + 74 + + 88 NOT IN ( - + col0, - 48 )
----

skipif mysql # not compatible
query III rowsort label-6103
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + + col1 / + + 74 + + 88 NOT IN ( - + col0, - 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - 77 * COUNT( * ) AS col0 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-6104
SELECT - 77 * COUNT ( * ) AS col0 FROM tab2
----
-231

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 25 >= + 24 * 98 - + 60
----

query II rowsort
SELECT ALL col2 AS col0, - col2 * - col1 + - 22 AS col1 FROM tab2
----
23
1151
40
3058
58
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-6108
SELECT - col1 * col0 DIV - col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6108
SELECT - col1 * col0 / - col0 FROM tab2
----
51
67
77

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

query I rowsort
SELECT + col0 + + + 59 FROM tab0
----
146
156
74

query I rowsort
SELECT + col0 * - + 75 * - col1 AS col0 FROM tab1
----
31875
320775
53550

query II rowsort
SELECT DISTINCT - - 35 * col1 * col2 AS col0, + 40 FROM tab1 cor0
----
10325
40
111860
40
47040
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL - COUNT( * ) + 36 AS col2 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - COUNT ( * ) + 36 AS col2 FROM tab0 cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL OR CAST( NULL AS SIGNED ) < NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL OR CAST ( NULL AS INTEGER ) < NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT SUM( DISTINCT - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6115
SELECT SUM ( DISTINCT - - col1 ) FROM tab0
----
103

query I rowsort
SELECT ALL col1 + - + 55 FROM tab2
----
-4
12
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 88 + - col1 col1 FROM tab0 AS cor0
----
67
7
87

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

query I rowsort
SELECT + col1 + + 6 AS col2 FROM tab2 AS cor0
----
57
73
83

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT + SUM( - + 7 ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-6124
SELECT + SUM ( - + 7 ) AS col2 FROM tab1
----
-21

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

query I rowsort
SELECT ALL + ( + col0 ) - col0 FROM tab1 cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6127
SELECT MIN ( 76 ) AS col0 FROM tab1 AS cor0
----
76

query I rowsort
SELECT + 68 * - + col1 FROM tab0 AS cor0
----
-1428
-5508
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 BETWEEN - col2 + - - col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 13 * - - col0 * + - col0 AS col1 FROM tab1
----
-107653
-33813
-93925

query II rowsort
SELECT - + col2 AS col2, - ( - 57 ) + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 47 < + col1 - col0 / + + col1
----
-10
67
-99
156

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT COUNT( ALL + 22 ) * - 80 + - + COUNT( * ) + + 42 AS col0 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT COUNT ( ALL + 22 ) * - 80 + - + COUNT ( * ) + + 42 AS col0 FROM tab1 AS cor0
----
-201

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6137
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ), - COUNT( * ) DIV 20 AS col1 FROM tab1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6137
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ), - COUNT ( * ) / 20 AS col1 FROM tab1
----
NULL
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT + 6 * + - COUNT( * ) + - 41 AS col0 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT + 6 * + - COUNT ( * ) + - 41 AS col0 FROM tab2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6140
SELECT ALL 87 + + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL 87 + + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
90

query I rowsort
SELECT - 26 * + col0 FROM tab1
----
-1326
-2210
-2366

query I rowsort
SELECT + 31 + + col0 AS col1 FROM tab1 AS cor0
----
116
122
82

query I rowsort
SELECT - 35 + + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-135
-2244
-9836

query I rowsort
SELECT - col2 + 50 FROM tab2 AS cor0
----
-8
10
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + col0 * + + ( - - col0 ) col1, + 14 AS col2 FROM tab1 AS cor0
----
2550
14
7140
14
8190
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT - COUNT( col2 ) - + MAX( + + 98 ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-101

skipif mysql # not compatible
query I rowsort label-6146
SELECT - COUNT ( col2 ) - + MAX ( + + 98 ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-101

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

query I rowsort
SELECT ALL + 19 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT - 5 * + MAX( 73 ) AS col1 FROM tab1 AS cor0
----
-365

skipif mysql # not compatible
query I rowsort label-6150
SELECT - 5 * + MAX ( 73 ) AS col1 FROM tab1 AS cor0
----
-365

query I rowsort
SELECT DISTINCT + - 13 - 46 AS col2 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 + col1 col2 FROM tab2 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT + col0 + - col1 DIV ( + + col1 ) FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-6156
SELECT + col0 + - col1 / ( + + col1 ) FROM tab0
----
14
86
96

onlyif mysql # DIV for integer division: 
query II rowsort label-6157
SELECT - col1 AS col1, col1 * - 82 DIV 81 FROM tab1
----
-14
-14
-47
-47
-5
-5

skipif mysql # not compatible
query II rowsort label-6157
SELECT - col1 AS col1, col1 * - 82 / 81 FROM tab1
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - ( - 56 ) AS col1 FROM tab2 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 WHERE ( - CAST( - + col1 AS SIGNED ) ) * col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 WHERE ( - CAST ( - + col1 AS INTEGER ) ) * col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL - SUM( DISTINCT + 73 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - SUM ( DISTINCT + 73 ) FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT ALL + COUNT( * ), ( - SUM( DISTINCT + - col1 ) ) col1 FROM tab0
----
3
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6162
SELECT ALL + COUNT ( * ), ( - SUM ( DISTINCT + - col1 ) ) col1 FROM tab0
----
3
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT MIN( - - 70 ) AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-6163
SELECT MIN ( - - 70 ) AS col2 FROM tab2
----
70

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT + col2 * - ( + - col1 ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 / + ( + + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6166
SELECT + col2 * - ( + - col1 ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 / + ( + + col0 ) IS NOT NULL
----

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

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

query I rowsort
SELECT 31 * + + col0 * - - col1 AS col1 FROM tab0
----
3007
37665
56637

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

query I rowsort
SELECT DISTINCT + 74 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT + col0 DIV - + col2 + - + 96 AS col0 FROM tab0 AS cor0
----
-104
-96
-96

skipif mysql # not compatible
query I rowsort label-6171
SELECT + col0 / - + col2 + - + 96 AS col0 FROM tab0 AS cor0
----
-104
-96
-96

query I rowsort
SELECT - 70 + + + 7 FROM tab0
----
-63
-63
-63

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

query I rowsort
SELECT ALL - col2 + - 35 AS col1 FROM tab2
----
-58
-75
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT ( - COUNT( * ) ) + - 64 col1 FROM tab2
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6175
SELECT DISTINCT ( - COUNT ( * ) ) + - 64 col1 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - 98 + + COUNT( * ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - 98 + + COUNT ( * ) FROM tab1
----
-95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 * - 19 - - col1 / + 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 60 * col2 * - + 11 * - col2 + + col2 AS col2 FROM tab0
----
-1457893
-6468561
-65990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT - MAX( DISTINCT - 1 ) - COUNT( * ) col2 FROM tab0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6180
SELECT DISTINCT - MAX ( DISTINCT - 1 ) - COUNT ( * ) col2 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6181
SELECT * FROM tab0 WHERE NOT + col2 * - ( + col1 * - col0 ) BETWEEN - ( col0 ) AND CAST( - col0 AS SIGNED ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6181
SELECT * FROM tab0 WHERE NOT + col2 * - ( + col1 * - col0 ) BETWEEN - ( col0 ) AND CAST ( - col0 AS INTEGER ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 - 44 AS col2 FROM tab1
----
-30
-39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT ( + MAX( col2 ) ) + COUNT( * ) * MAX( - col2 ) FROM tab0 WHERE NULL IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT ( + MAX ( col2 ) ) + COUNT ( * ) * MAX ( - col2 ) FROM tab0 WHERE NULL IN ( + col2 )
----
NULL

query I rowsort
SELECT + 40 * col0 FROM tab0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT COUNT( * ) * 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-6185
SELECT COUNT ( * ) * 97 FROM tab0
----
291

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT DISTINCT ( - MAX( ( - col1 ) ) ) AS col2 FROM tab2 WHERE + col2 <> 41 + col1
----
51

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT ( - MAX ( ( - col1 ) ) ) AS col2 FROM tab2 WHERE + col2 <> 41 + col1
----
51

query I rowsort
SELECT DISTINCT 19 * 19 AS col0 FROM tab0
----
361

query III rowsort
SELECT * FROM tab2 WHERE col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT - ( COUNT( * ) ) * 94 AS col1 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-6190
SELECT - ( COUNT ( * ) ) * 94 AS col1 FROM tab0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT ALL COUNT( * ) * - 47 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL COUNT ( * ) * - 47 FROM tab2
----
-141

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 17 IS NOT NULL
----

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( - col1 * - 20 )
----

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

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

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

query I rowsort
SELECT ALL 87 FROM tab1 cor0 WHERE + 18 + col1 NOT BETWEEN + col1 + + col2 AND 48
----
87
87
87

query I rowsort
SELECT + col1 * - ( + col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 66 / - col1 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT SUM( ALL + col0 ) col0 FROM tab0 WHERE NOT + col2 IS NULL
----
199

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT + 48 + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
57

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT + 48 + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT + - 2 DIV 11 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6203
SELECT + - 2 / 11 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + 98 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
91
91
91

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

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

query I rowsort
SELECT 55 * col0 FROM tab2 AS cor0
----
2530
3520
4125

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL MIN( + 77 ) FROM tab1 AS cor0 WHERE + ( + col1 ) <= ( - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL MIN ( + 77 ) FROM tab1 AS cor0 WHERE + ( + col1 ) <= ( - 27 )
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( col2 ) BETWEEN - col0 * col1 AND ( 20 + - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6212
SELECT * FROM tab1 WHERE NULL <> - CAST( 19 AS DECIMAL ) + 33
----

skipif mysql # not compatible
query III rowsort label-6212
SELECT * FROM tab1 WHERE NULL <> - CAST ( 19 AS REAL ) + 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col2 ) * col0 + - col2 * - 35 col2 FROM tab0
----
-520
-6138
940

query I rowsort
SELECT ALL 40 + + 0 AS col2 FROM tab2 WHERE NULL < - 40
----

query III rowsort
SELECT * FROM tab2 WHERE ( - ( - col0 ) ) NOT BETWEEN col1 - 66 AND + 59
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + COUNT( - + 63 ) + - COUNT( * ) * - 22 AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-6216
SELECT + COUNT ( - + 63 ) + - COUNT ( * ) * - 22 AS col2 FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT ( CAST( - col1 AS SIGNED ) ) * - ( col1 ) + col0 AS col0 FROM tab1
----
110
2300
247

skipif mysql # not compatible
query I rowsort label-6217
SELECT ( CAST ( - col1 AS INTEGER ) ) * - ( col1 ) + col0 AS col0 FROM tab1
----
110
2300
247

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

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - MAX ( - 42 ) AS col1 FROM tab2 AS cor0
----
42

query I rowsort
SELECT - - ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

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

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

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

query I rowsort
SELECT - - 22 + 28 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * - col0 * - col2 col1 FROM tab2
----
-139200
-33856
-81920

query II rowsort
SELECT - 85 * - 19, - col0 AS col2 FROM tab2
----
1615
-46
1615
-64
1615
-75

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

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

query I rowsort
SELECT col0 * + 64 FROM tab1 WHERE NOT ( + - col2 ) = + col2
----
3264
5440
5824

query II rowsort
SELECT - 51 * - col0, col1 AS col1 FROM tab2
----
2346
51
3264
77
3825
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE NOT ( + col1 ) <> ( - 15 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6235
SELECT ALL COUNT ( * ) col2 FROM tab1 WHERE NOT ( + col1 ) <> ( - 15 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT ALL CAST( - - col2 AS SIGNED ) * + col0 * + col2 AS col2 FROM tab1
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL CAST ( - - col2 AS INTEGER ) * + col0 * + col2 AS col2 FROM tab1
----
295885
420784
470016

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6238
SELECT + 63 DIV 42, COUNT( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-6238
SELECT + 63 / 42, COUNT ( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
1
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6239
SELECT DISTINCT - MIN ( 87 ) col0 FROM tab1 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT DISTINCT - col1 * + ( CAST( - - 95 AS SIGNED ) ) - - 45 AS col0 FROM tab2 AS cor0
----
-4800
-6320
-7270

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT - col1 * + ( CAST ( - - 95 AS INTEGER ) ) - - 45 AS col0 FROM tab2 AS cor0
----
-4800
-6320
-7270

query I rowsort
SELECT ALL + 98 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
98
98
98

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
46
64
75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6245
SELECT COUNT( * ) DIV - 63 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6245
SELECT COUNT ( * ) / - 63 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

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

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

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

query I rowsort
SELECT ALL + col2 * + - col2 + + col0 - + - 97 FROM tab1 AS cor0
----
-3299
-4436
-9068

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT - SUM( DISTINCT 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT - SUM ( DISTINCT 96 ) FROM tab0 AS cor0
----
-96

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

query I rowsort
SELECT DISTINCT 32 * col0 FROM tab1 WHERE ( - col2 * col1 + 32 + - 47 - col0 * 33 / + col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 <> - col2 + 80 + - ( - 29 ) + - col2
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + 69 * + ( + col2 ) + + - 60 * col0 FROM tab1
----
-1029
-768
3564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( 32 ) ) * - col2 + col2 + - col1 col2 FROM tab0
----
-1538
-3070
-331

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT DISTINCT + 30 + + col0 DIV col0 AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + 30 + + col0 / col0 AS col0 FROM tab0
----
31

query I rowsort
SELECT ALL - col0 + 59 FROM tab0
----
-28
-38
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT ALL + 47 DIV 84 * + + 92 + + COUNT( * ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + 47 / 84 * + + 92 + + COUNT ( * ) / + COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) - - 11 * COUNT( * ) AS col1, - ( - COUNT( col0 ) ) AS col1 FROM tab1
----
24
3

skipif mysql # not compatible
query II rowsort label-6259
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - - 11 * COUNT ( * ) AS col1, - ( - COUNT ( col0 ) ) AS col1 FROM tab1
----
24
3

query I rowsort
SELECT DISTINCT - 16 + col1 AS col1 FROM tab1 AS cor0
----
-11
-2
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col0 FROM tab0 cor0
----
-77
2
32

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6263
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * 42 NOT BETWEEN col0 + 46 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6263
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * 42 NOT BETWEEN col0 + 46 AND ( NULL )
----

query I rowsort
SELECT + - 57 - col2 AS col1 FROM tab0 AS cor0
----
-104
-156
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6265
SELECT ALL MAX( + col2 ), + CAST( - MAX( DISTINCT col0 ) AS SIGNED ) col1 FROM tab2
----
58
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6265
SELECT ALL MAX ( + col2 ), + CAST ( - MAX ( DISTINCT col0 ) AS INTEGER ) col1 FROM tab2
----
58
-75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6266
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN - + 21 / - 82 + - 78 / CAST( col0 AS DECIMAL ) AND - CAST( NULL AS SIGNED ) + - CAST( - 13 AS SIGNED ) AND ( + col0 + - col1 / CAST( NULL AS SIGNED ) ) BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6266
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN - + 21 / - 82 + - 78 / CAST ( col0 AS REAL ) AND - CAST ( NULL AS INTEGER ) + - CAST ( - 13 AS INTEGER ) AND ( + col0 + - col1 / CAST ( NULL AS INTEGER ) ) BETWEEN col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - col1 <= NULL
----

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

query I rowsort
SELECT - 39 + col2 FROM tab1 AS cor0 WHERE NOT 45 * col0 * - - col2 = col1 * + col1
----
20
29
57

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6273
SELECT SUM( ALL + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT SUM ( ALL + CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col0 - + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 98 > + + 48
----

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

query I rowsort
SELECT ALL col0 * + - col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - col0 * - ( ( + col0 ) ) FROM tab2 cor0
----
2116
4096
5625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col2 FROM tab0 WHERE NOT col1 * + col0 + - - col2 + - col2 IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6279
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 WHERE NOT col1 * + col0 + - - col2 + - col2 IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL + SUM( DISTINCT - 67 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + SUM ( DISTINCT - 67 ) FROM tab2
----
-67

query I rowsort
SELECT + - col0 * col1 * ( + col2 ) + col0 AS col0 FROM tab2 WHERE NOT - + 32 + + ( + col1 ) IS NULL
----
-197056
-291375
-53912

query I rowsort
SELECT ALL - col2 * 19 FROM tab0
----
-1881
-190
-893

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT - - 53 DIV col2 + - - col1 AS col2 FROM tab0 AS cor0
----
1
26
82

skipif mysql # not compatible
query I rowsort label-6284
SELECT - - 53 / col2 + - - col1 AS col2 FROM tab0 AS cor0
----
1
26
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT - - ( + COUNT( DISTINCT - col0 ) ) * + COUNT( * ) + 1 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT - - ( + COUNT ( DISTINCT - col0 ) ) * + COUNT ( * ) + 1 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
7

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

query I rowsort
SELECT DISTINCT 20 * - col1 AS col0 FROM tab0 AS cor0
----
-1620
-20
-420

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6289
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col1, + 73 + - 49 + + - col2 * - col2 + - - col1 * + col2 * col2 * 88 - - col0 AS col2 FROM tab2 AS cor0
----
NULL
10843288
NULL
19837607
NULL
2374751

skipif mysql # not compatible
query II rowsort label-6289
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col1, + 73 + - 49 + + - col2 * - col2 + - - col1 * + col2 * col2 * 88 - - col0 AS col2 FROM tab2 AS cor0
----
NULL
10843288
NULL
19837607
NULL
2374751

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT DISTINCT 96 * - COUNT( * ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT 96 * - COUNT ( * ) FROM tab2 AS cor0
----
-288

query I rowsort
SELECT - + 74 * - col1 FROM tab2 AS cor0
----
3774
4958
5698

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 >= + col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT col0 * 14 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
1190
1274
714

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

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

query III rowsort
SELECT * FROM tab0 WHERE - + col2 - - - col2 + 82 * 40 * + + 21 IN ( - ( 66 ) )
----

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

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

query I rowsort
SELECT DISTINCT - 30 * + ( - col2 ) + col1 AS col1 FROM tab2
----
1277
1807
741

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 57 NOT BETWEEN - + 98 / + - col1 + - 79 AND + col0 AND ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 87 + + - col2 FROM tab1
----
-146
-155
-183

query I rowsort
SELECT DISTINCT 53 - - 51 AS col2 FROM tab0
----
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + 62 - + - ( 24 ) * - - 65 col2 FROM tab2
----
1645
1662
1680

query I rowsort
SELECT DISTINCT - col2 * - 19 * - col0 * 81 + + col0 - + - 55 FROM tab2 cor0
----
-1628161
-3939721
-6694520

query II rowsort
SELECT + 20 AS col2, ( + + col2 ) + + col2 FROM tab2
----
20
116
20
46
20
80

query II rowsort
SELECT ALL col0, + 39 FROM tab2
----
46
39
64
39
75
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 57 * - col0 col2 FROM tab0
----
12825
431433
536313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, - ( + col0 ) * 73 col2 FROM tab2
----
46
-3358
64
-4672
75
-5475

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT + col0 + - 86 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * + + 80 * 42 = - CAST( + 25 AS SIGNED ) + + 13
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT + col0 + - 86 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * + + 80 * 42 = - CAST ( + 25 AS INTEGER ) + + 13
----
NULL
NULL
NULL

query II rowsort
SELECT - 95, 17 AS col2 FROM tab0 AS cor0
----
-95
17
-95
17
-95
17

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - ( - col1 ) * col1 + - ( 46 ) FROM tab0 AS cor0
----
308321
4364
53

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

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

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

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

query I rowsort
SELECT ALL col2 + 39 AS col2 FROM tab0
----
138
49
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6323
SELECT ALL MIN( + + CAST( - 73 AS SIGNED ) ), - 22 col2 FROM tab2
----
-73
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6323
SELECT ALL MIN ( + + CAST ( - 73 AS INTEGER ) ), - 22 col2 FROM tab2
----
-73
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT ALL ( + CAST( + + col0 AS SIGNED ) ) col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6324
SELECT ALL ( + CAST ( + + col0 AS INTEGER ) ) col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT - 59 * COUNT( * ) AS col0 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-6325
SELECT - 59 * COUNT ( * ) AS col0 FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT MIN( DISTINCT + col2 ) * - 83 * - + 97 * 83 FROM tab0 AS cor0
----
6682330

skipif mysql # not compatible
query I rowsort label-6326
SELECT MIN ( DISTINCT + col2 ) * - 83 * - + 97 * 83 FROM tab0 AS cor0
----
6682330

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col0 col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL COUNT( * ) * - 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-756

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL COUNT ( * ) * - 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-756

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

query I rowsort
SELECT ALL - 67 * + - 4 + col1 + col1 AS col0 FROM tab2 AS cor0
----
370
402
422

query II rowsort
SELECT - + 60, - ( col1 ) FROM tab0 cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT - col0 + - col0 DIV + 28 FROM tab0 AS cor0
----
-100
-15
-90

skipif mysql # not compatible
query I rowsort label-6333
SELECT - col0 + - col0 / + 28 FROM tab0 AS cor0
----
-100
-15
-90

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

query I rowsort
SELECT col0 + - 60 FROM tab2 AS cor0
----
-14
15
4

query I rowsort
SELECT ALL col1 + + 60 - + 99 + 38 + - col2 AS col2 FROM tab1
----
-22
-55
-83

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

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

query I rowsort
SELECT DISTINCT - 21 + col0 * - 96 * + + col0 AS col0 FROM tab2
----
-203157
-393237
-540021

query I rowsort
SELECT DISTINCT + col0 * - + 98 + - + col0 + col0 + - col2 * + + 36 * 38 * + col0 AS col1 FROM tab2
----
-1451852
-3508352
-5958150

query I rowsort
SELECT ALL + col0 + - ( + 44 ) + 17 * - col0 * - col0 FROM tab1
----
122866
140824
44224

query I rowsort
SELECT DISTINCT 37 - + - 54 FROM tab0
----
91

query II rowsort
SELECT DISTINCT col0 - 88, + 19 AS col1 FROM tab1 AS cor0
----
-3
19
-37
19
3
19

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6344
SELECT - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 74 FROM tab1 cor0
----
-74

query I rowsort
SELECT col2 * - + 2 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-198
-20
-94

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

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

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

query II rowsort
SELECT - 34, - 55 AS col1 FROM tab2 AS cor0
----
-34
-55
-34
-55
-34
-55

query I rowsort
SELECT DISTINCT - 45 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col2
----

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

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

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

query I rowsort
SELECT 4 + + col2 AS col2 FROM tab1 AS cor0
----
100
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL MAX( ALL - 44 ) * - MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-660

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL MAX ( ALL - 44 ) * - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-660

query I rowsort
SELECT ALL 57 * - - col0 + + - col0 + col2 AS col2 FROM tab0
----
4882
5531
887

query II rowsort
SELECT - col0 + 33, col2 AS col0 FROM tab0
----
-54
10
-64
99
18
47

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6361
SELECT ALL MIN ( ALL + 8 ) * - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + col1 * - col2 - + 90 FROM tab2 AS cor0
----
-1263
-3170
-3976

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6365
SELECT + - 35 DIV - 75 * + 93 * + + CAST( - 15 AS SIGNED ) AS col0, - ( col2 ) AS col0 FROM tab0 cor0
----
0
-10
0
-47
0
-99

skipif mysql # not compatible
query II rowsort label-6365
SELECT + - 35 / - 75 * + 93 * + + CAST ( - 15 AS INTEGER ) AS col0, - ( col2 ) AS col0 FROM tab0 cor0
----
0
-10
0
-47
0
-99

query I rowsort
SELECT ALL - ( - col2 ) * - 81 FROM tab1
----
-4779
-5508
-7776

query I rowsort
SELECT ALL ( col2 ) * col0 + - col2 - - - 1 + + col1 + col1 FROM tab0
----
819
901
9505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6368
SELECT ( + CAST( + 42 AS SIGNED ) ) + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT 94 + COUNT( * ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT 94 + COUNT ( * ) AS col0 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6370
SELECT - - 29 DIV + CAST( + 38 AS SIGNED ) + - col2 + 64 * col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-99
124
63

skipif mysql # not compatible
query I rowsort label-6370
SELECT - - 29 / + CAST ( + 38 AS INTEGER ) + - col2 + 64 * col1 / + col2 AS col2 FROM tab0 AS cor0
----
-99
124
63

query II rowsort
SELECT - - 48 AS col1, - 48 * ( col1 ) FROM tab1 cor0
----
48
-2256
48
-240
48
-672

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

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

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

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 * + col1 FROM tab2 AS cor0
----
-23
2601
-40
5929
-58
4489

query II rowsort
SELECT col1, + col0 + + 8 FROM tab0 AS cor0
----
1
105
21
95
81
23

query I rowsort
SELECT DISTINCT + ( 63 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT DISTINCT + MAX( col2 ) * 19 AS col2 FROM tab2
----
1102

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT + MAX ( col2 ) * 19 AS col2 FROM tab2
----
1102

query I rowsort
SELECT - ( 38 ) * + - col0 * col2 FROM tab2 AS cor0
----
165300
40204
97280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6379
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 WHERE NOT - 44 + + col1 IS NULL
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 * col1 col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT - SUM( col0 ) FROM tab2 AS cor0 WHERE NOT NULL <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT - SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL <= - col1
----
NULL

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

query I rowsort
SELECT 70 + - + 36 FROM tab1
----
34
34
34

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

query I rowsort
SELECT DISTINCT + - col0 * + col0 + - col2 AS col0 FROM tab0 WHERE + - col0 * + 84 / + col2 * + col1 IS NOT NULL
----
-272
-7579
-9508

query I rowsort
SELECT + 46 - + col0 + + 62 + - + col0 AS col0 FROM tab2 WHERE NOT NULL <= 56
----

query I rowsort
SELECT 18 + - 28 + - col2 AS col2 FROM tab2
----
-33
-50
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6388
SELECT ALL col1, - ( + + col0 ) AS col1, + - 72 * - col2 + - 70 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
9 values hashing to 2e910e4b6926507de098c59c2f039fd2

skipif mysql # not compatible
query III rowsort label-6388
SELECT ALL col1, - ( + + col0 ) AS col1, + - 72 * - col2 + - 70 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
9 values hashing to 2e910e4b6926507de098c59c2f039fd2

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

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

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

query I rowsort
SELECT DISTINCT - - 20 AS col2 FROM tab2 cor0
----
20

query I rowsort
SELECT + - 62 + col1 FROM tab1 AS cor0
----
-15
-48
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT DISTINCT - ( + + COUNT( * ) ) * - 23 AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - ( + + COUNT ( * ) ) * - 23 AS col0 FROM tab1 AS cor0
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT COUNT( * ) * 97 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT COUNT ( * ) * 97 FROM tab1
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col2, - col2 col2 FROM tab2
----
116
-58
46
-23
80
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 * - + 34 col2, + col0, + 66 AS col2 FROM tab0
----
9 values hashing to 456608ed453e6d3fbdddb7a32fe0998f

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

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

query I rowsort
SELECT ALL 76 * - + col0 * - col0 AS col0 FROM tab1
----
197676
549100
629356

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

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

query I rowsort
SELECT DISTINCT + col1 * - 28 * + col1 AS col1 FROM tab2 AS cor0
----
-125692
-166012
-72828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + 52 AS col1 FROM tab1
----
2444
260
728

onlyif mysql # aggregate syntax: 
query II rowsort label-6406
SELECT ALL + 68 AS col0, MIN( ALL - col1 ) FROM tab1
----
68
-47

skipif mysql # not compatible
query II rowsort label-6406
SELECT ALL + 68 AS col0, MIN ( ALL - col1 ) FROM tab1
----
68
-47

query II rowsort
SELECT DISTINCT + col0, + col1 + ( col1 ) + + - col2 + + col2 * col0 * col1 AS col2 FROM tab1 cor0
----
51
68476
85
25026
91
290862

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL - 58 * + MIN( DISTINCT - 6 ) AS col0 FROM tab2 AS cor0
----
348

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - 58 * + MIN ( DISTINCT - 6 ) AS col0 FROM tab2 AS cor0
----
348

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

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

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

query I rowsort
SELECT DISTINCT col0 * + - 69 AS col0 FROM tab1 AS cor0
----
-3519
-5865
-6279

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( - - 74 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6416
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( - - 74 AS INTEGER ) = ( NULL )
----

query II rowsort
SELECT - col0 AS col0, - 96 * - + 67 FROM tab2 AS cor0
----
-46
6432
-64
6432
-75
6432

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

query I rowsort
SELECT DISTINCT - - ( - - 13 ) FROM tab2 WHERE - ( - col1 ) IS NOT NULL
----
13

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

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

skipif mysql # not compatible
query I rowsort label-6421
SELECT COUNT ( * ) * + ( + 21 ) FROM tab2
----
63

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 / 16 - + - col2 > + 98
----

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

query I rowsort
SELECT DISTINCT 50 * + 7 FROM tab2 AS cor0
----
350

query I rowsort
SELECT - - 71 + - col1 FROM tab2 AS cor0
----
-6
20
4

query I rowsort
SELECT ALL 67 + + + col0 - - + col0 FROM tab2
----
159
195
217

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

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE 42 * col2 <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6429
SELECT col2 + + CAST( NULL AS DECIMAL ) - CAST( 36 AS SIGNED ) * + ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE - col2 >= + + 79
----

skipif mysql # not compatible
query I rowsort label-6429
SELECT col2 + + CAST ( NULL AS REAL ) - CAST ( 36 AS INTEGER ) * + ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE - col2 >= + + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + SUM( DISTINCT - ( col0 ) ) - + ( + MIN( ALL - + 52 ) ) + + COUNT( * ) FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-6430
SELECT + SUM ( DISTINCT - ( col0 ) ) - + ( + MIN ( ALL - + 52 ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
-144

query I rowsort
SELECT ALL - col2 - - 8 AS col2 FROM tab2 AS cor0
----
-15
-32
-50

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

query I rowsort
SELECT ALL + 23 FROM tab0 AS cor0 WHERE NOT 62 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL SUM( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL SUM ( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

query II rowsort
SELECT + col1 AS col2, 45 FROM tab2
----
51
45
67
45
77
45

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

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL MAX ( DISTINCT 27 ) AS col0 FROM tab2
----
27

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

skipif mysql # not compatible
query I rowsort label-6438
SELECT + col1 / - col0 * - col1 FROM tab1
----
0
0
0

query II rowsort
SELECT - 88 AS col1, + col0 + - 68 + + - ( 48 ) FROM tab1
----
-88
-25
-88
-31
-88
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 * - ( col1 ) col2 FROM tab0 AS cor0
----
-2835
-35
-735

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col0 <= NULL
----

query I rowsort
SELECT DISTINCT + + 28 AS col1 FROM tab2 AS cor0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT SUM( - col1 ) * COUNT( DISTINCT + col1 ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT SUM ( - col1 ) * COUNT ( DISTINCT + col1 ) FROM tab0
----
-309

query I rowsort
SELECT ALL 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT col0 * + ( + col0 ) AS col1 FROM tab2
----
2116
4096
5625

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL - ( + 45 ) * - MAX( col1 ) FROM tab1 AS cor0
----
2115

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - ( + 45 ) * - MAX ( col1 ) FROM tab1 AS cor0
----
2115

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

skipif mysql # not compatible
query II rowsort label-6449
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 17 AS col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6450
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col2 >= + CAST( - 8 AS SIGNED ) + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6450
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col2 >= + CAST ( - 8 AS INTEGER ) + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT DISTINCT + + col2 * - + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

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

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

query I rowsort
SELECT - col2 + + + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 52 + - col2 AS col2 FROM tab1
----
-16
-44
-7

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

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL col1 / col1 / + col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT + + MAX( + - col0 ) AS col1 FROM tab1 WHERE + + col1 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT + + MAX ( + - col0 ) AS col1 FROM tab1 WHERE + + col1 * + col1 IS NULL
----
NULL

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

query I rowsort
SELECT ALL 58 * col1 * + 42 AS col0 FROM tab1
----
114492
12180
34104

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL - - 15 - + COUNT( * ) col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6461
SELECT ALL - - 15 - + COUNT ( * ) col0 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * + - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - col1 * 92 + + col2 FROM tab2 AS cor0
----
-4669
-6106
-7044

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT ALL 19 DIV 9 * + col1 + - col1 - + col0 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL 19 / 9 * + col1 + - col1 - + col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT + MIN( + col1 ) * - COUNT( * ) - - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6466
SELECT + MIN ( + col1 ) * - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT 38 + + 18 FROM tab2
----
56
56
56

query I rowsort
SELECT ALL + col1 * col0 + ( + - col0 ) * + 33 AS col2 FROM tab0 AS cor0 WHERE col1 <> - col1
----
-1044
-3104
720

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6473
SELECT SUM ( ALL col1 ) FROM tab0 cor0
----
103

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

query I rowsort
SELECT DISTINCT + col2 * - - 79 FROM tab1 AS cor0
----
4661
5372
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL SUM( - + 11 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL SUM ( - + 11 ) FROM tab0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 86 / + col1 IS NOT NULL
----

query I rowsort
SELECT + 45 * + col2 FROM tab1
----
2655
3060
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL - MIN( ALL - 95 ) AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - MIN ( ALL - 95 ) AS col2 FROM tab1
----
95

query I rowsort
SELECT DISTINCT - 79 FROM tab2 WHERE ( NOT NULL = NULL )
----

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

query I rowsort
SELECT DISTINCT col2 + + 48 FROM tab1 AS cor0
----
107
116
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT - + 12 + SUM( DISTINCT - - 5 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - + 12 + SUM ( DISTINCT - - 5 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

query II rowsort
SELECT DISTINCT - ( - - 86 ), col2 FROM tab2
----
-86
23
-86
40
-86
58

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

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

query I rowsort
SELECT col0 + col0 * ( + 1 ) FROM tab2
----
128
150
92

query II rowsort
SELECT + 76 * - col2 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
-4484
5
-5168
47
-7296
14

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT + ( + col0 ) DIV + + 41 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6489
SELECT + ( + col0 ) / + + 41 FROM tab1 AS cor0
----
1
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col0, - 84 + col1 col0 FROM tab0 AS cor0
----
1
-83
21
-63
81
-3

query I rowsort
SELECT ALL - col2 * + col2 - + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-310
-6016
-9900

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT ALL + CAST( + col2 AS SIGNED ) + ( + + 3 ) * - col1 AS col0 FROM tab1 AS cor0
----
-73
44
54

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + CAST ( + col2 AS INTEGER ) + ( + + 3 ) * - col1 AS col0 FROM tab1 AS cor0
----
-73
44
54

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 * col1 col2, - col1 AS col0 FROM tab0 WHERE NOT ( NOT ( NULL IS NOT NULL ) ) OR NOT NULL IS NOT NULL
----
-1215
-81
-15
-1
-315
-21

query I rowsort
SELECT + 22 + - col1 AS col0 FROM tab2
----
-29
-45
-55

query I rowsort
SELECT ALL + 33 * + 27 - - col0 FROM tab1
----
942
976
982

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - SUM( DISTINCT 94 ) + 35 - - + 61 + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6500
SELECT - SUM ( DISTINCT 94 ) + 35 - - + 61 + - COUNT ( * ) FROM tab2 AS cor0
----
-1

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

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL CAST ( NULL AS REAL ) - + - 13 * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

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

query II rowsort
SELECT ALL col2 AS col2, + col0 + + col0 FROM tab1 AS cor0
----
59
170
68
182
96
102

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

query I rowsort
SELECT + col1 * - + 64 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-261
-2940
-800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6508
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV - - col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT CAST ( col1 AS INTEGER ) / - - col1 FROM tab0 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6511
SELECT DISTINCT * FROM tab1 WHERE NOT - - 63 + + - 34 / + - 64 <= + + col2 + + - col2 - - 97 + + - CAST( col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6511
SELECT DISTINCT * FROM tab1 WHERE NOT - - 63 + + - 34 / + - 64 <= + + col2 + + - col2 - - 97 + + - CAST ( col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - col1 * + - col0 FROM tab2
----
197120
291450
53958

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6515
SELECT CAST( 46 AS SIGNED ) DIV col0 * + - col0, col1 + - col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-6515
SELECT CAST ( 46 AS INTEGER ) / col0 * + - col0, col1 + - col1 + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT ALL col2 * + col0 + - col1 + - 94 * + col0 * + col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-113571
-170802
581

query I rowsort
SELECT DISTINCT - col2 + col1 * - col1 AS col0 FROM tab1 cor0
----
-2277
-292
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6518
SELECT DISTINCT + COUNT( DISTINCT + ( - CAST( + 67 AS SIGNED ) ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + COUNT ( DISTINCT + ( - CAST ( + 67 AS INTEGER ) ) ) FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT + - 73 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6521
SELECT + - 73 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-70

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

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

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

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

query II rowsort
SELECT + col2, - ( + col0 ) FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT + COUNT( * ) AS col0, 23 * - 75 + 86 AS col0 FROM tab1
----
3
-1639

skipif mysql # not compatible
query II rowsort label-6526
SELECT + COUNT ( * ) AS col0, 23 * - 75 + 86 AS col0 FROM tab1
----
3
-1639

query II rowsort
SELECT ( col1 ) AS col1, 12 FROM tab0
----
1
12
21
12
81
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 AS col2, 80 col1 FROM tab1, tab1 cor0
----
18 values hashing to 224b7b5aed1e322f4dd8038e634746f8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6529
SELECT ALL + 52 / - - col0 + + 94 + + - CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL + 52 / - - col0 + + 94 + + - CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL 70 * + + 83 - + COUNT( * ) - + - COUNT( * ) FROM tab0
----
5810

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 70 * + + 83 - + COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
5810

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 - + 17 AS col2 FROM tab2 cor0
----
34
50
60

query I rowsort
SELECT DISTINCT - 11 * + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1067
165
957

query I rowsort
SELECT ALL + col0 - + 48 AS col2 FROM tab1 AS cor0
----
3
37
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL - 44 * - COUNT( * ) * - 60 FROM tab1 AS cor0
----
-7920

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - 44 * - COUNT ( * ) * - 60 FROM tab1 AS cor0
----
-7920

query I rowsort
SELECT 20 * - 18 * + col0 AS col1 FROM tab2
----
-16560
-23040
-27000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT ALL - SUM( 36 ) AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - SUM ( 36 ) AS col1 FROM tab1 AS cor0
----
-108

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6542
SELECT + - 19 DIV + 22 AS col1, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-6542
SELECT + - 19 / + 22 AS col1, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

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

query I rowsort
SELECT - - 2 AS col1 FROM tab1 cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 79 col0, - 27 - - ( col0 ) AS col0 FROM tab1
----
79
24
79
58
79
64

query I rowsort
SELECT 14 * + col2 FROM tab1
----
1344
826
952

query I rowsort
SELECT DISTINCT col2 * 54 AS col0 FROM tab0
----
2538
5346
540

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT DISTINCT col2 DIV 16 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT col2 / 16 AS col1 FROM tab2
----
1
2
3

query I rowsort
SELECT - 46 + - 19 + + - 54 + + col2 AS col1 FROM tab0 AS cor0
----
-109
-20
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT SUM( - col1 ) + + 54 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6551
SELECT SUM ( - col1 ) + + 54 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL + - 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT 28 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT CAST ( NULL AS REAL ) / - col1 + + col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL 63 + + + ( - col0 ) * - - col1 AS col1 FROM tab0
----
-1152
-1764
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT 48 + - MIN( + ( + 5 ) ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT 48 + - MIN ( + ( + 5 ) ) FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT + ( 73 ) * + - 4 * + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT ALL + col1 DIV col1 + 50 AS col0 FROM tab1
----
51
51
51

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + col1 / col1 + 50 AS col0 FROM tab1
----
51
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT 33 + + CAST( NULL AS SIGNED ) / + COUNT( * ) + - 43 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT 33 + + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - 43 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * - 98 FROM tab0 cor0 WHERE - 19 - - col0 + - col2 * + 59 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT ( MIN( - + col1 ) ) * + - 45 + - COUNT( * ) FROM tab0 AS cor0
----
3642

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT ( MIN ( - + col1 ) ) * + - 45 + - COUNT ( * ) FROM tab0 AS cor0
----
3642

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT + + SUM( ALL - - 91 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
273

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + + SUM ( ALL - - 91 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
273

query I rowsort
SELECT ALL - col1 * 92 AS col0 FROM tab1
----
-1288
-4324
-460

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT - col0 DIV - + 18 - ( - + 34 ) FROM tab2 AS cor0
----
36
37
38

skipif mysql # not compatible
query I rowsort label-6567
SELECT - col0 / - + 18 - ( - + 34 ) FROM tab2 AS cor0
----
36
37
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - COUNT( * ) * + 74 + MIN( 83 ) AS col2 FROM tab2 cor0
----
-139

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - COUNT ( * ) * + 74 + MIN ( 83 ) AS col2 FROM tab2 cor0
----
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + 96 col0 FROM tab1 AS cor0
----
1440
3292
391

query I rowsort
SELECT ALL - ( + - col1 ) * + + col2 AS col0 FROM tab1 cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 69 col2 FROM tab2 AS cor0
----
3174
4416
5175

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

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

skipif mysql # not compatible
query I rowsort label-6573
SELECT COUNT ( * ) * MIN ( col2 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT - ( + 62 ) * + + 49 + + 33 FROM tab1
----
-3005
-3005
-3005

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL 54 * + - COUNT( * ) AS col1 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 54 * + - COUNT ( * ) AS col1 FROM tab2
----
-162

query I rowsort
SELECT + col2 * + - col2 + + col0 + - col2 * + col2 AS col1 FROM tab1
----
-18381
-6877
-9157

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

query I rowsort
SELECT DISTINCT + 68 * - col2 FROM tab2 cor0
----
-1564
-2720
-3944

query I rowsort
SELECT DISTINCT + col0 + + ( + col2 ) + + ( + - col0 ) * + + col0 AS col0 FROM tab0 AS cor0
----
-163
-7472
-9213

query I rowsort
SELECT ALL col0 - + ( - 39 ) FROM tab0 cor0
----
126
136
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 cor0 WHERE NULL BETWEEN - col0 AND 2 * + 79 * 39
----

query I rowsort
SELECT DISTINCT + 19 - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
1192
3099
3905

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT - - MAX( + col2 ) * - COUNT( * ) FROM tab2 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6585
SELECT - - MAX ( + col2 ) * - COUNT ( * ) FROM tab2 cor0
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + col2 col2, col1 FROM tab1
----
21
47
54
5
82
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col2 col1 FROM tab0
----
-705
-870
-9603

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

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

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

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

query I rowsort
SELECT + col2 * + col2 + - 96 FROM tab1 AS cor0
----
3385
4528
9120

query I rowsort
SELECT DISTINCT + + 96 AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col0 <> - 13 - - col0 / + 69 * + 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6593
SELECT ALL CAST( col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL CAST ( col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6594
SELECT - col0 DIV - + 73 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6594
SELECT - col0 / - + 73 FROM tab0 AS cor0
----
0
1
1

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

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6598
SELECT ALL - - MAX( + col0 ) + + COUNT( * ) - + 72 + CAST( - CAST( + ( - 80 ) AS SIGNED ) AS SIGNED ) AS col1, + 60 AS col2 FROM tab1 AS cor0
----
102
60

skipif mysql # not compatible
query II rowsort label-6598
SELECT ALL - - MAX ( + col0 ) + + COUNT ( * ) - + 72 + CAST ( - CAST ( + ( - 80 ) AS INTEGER ) AS INTEGER ) AS col1, + 60 AS col2 FROM tab1 AS cor0
----
102
60

query I rowsort
SELECT DISTINCT - col0 + + 10 - - 48 FROM tab0
----
-29
-39
43

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

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

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

query I rowsort
SELECT DISTINCT + 23 + - col2 FROM tab1
----
-36
-45
-73

query I rowsort
SELECT ALL - col2 * - 86 FROM tab1
----
5074
5848
8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col1 col2 FROM tab2 AS cor0
----
1173
3080
3886

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT + + COUNT( ALL - col1 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6606
SELECT + + COUNT ( ALL - col1 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT - col2 * - ( - col1 ) + + 80 AS col1 FROM tab0 AS cor0
----
-130
-19
-3727

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL - COUNT( 64 ) + - - 25 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - COUNT ( 64 ) + - - 25 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT ALL - col2 * - + 24 * + + col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NULL > + 34
----

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

query I rowsort
SELECT - + col0 - - 93 FROM tab2 AS cor0
----
18
29
47

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

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - MAX ( DISTINCT - + col0 ) FROM tab0
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT COUNT( - 92 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6617
SELECT COUNT ( - 92 ) AS col0 FROM tab0 cor0
----
3

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

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

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

query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + 44 + COUNT( * ) AS col0 FROM tab1 WHERE NOT - 34 / + col0 + - col1 IS NOT NULL
----
44

skipif mysql # not compatible
query I rowsort label-6621
SELECT + 44 + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 34 / + col0 + - col1 IS NOT NULL
----
44

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT DISTINCT - col0 + + 32 FROM tab2 WHERE NOT NULL BETWEEN - CAST( + col2 AS SIGNED ) + - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT - col0 + + 32 FROM tab2 WHERE NOT NULL BETWEEN - CAST ( + col2 AS INTEGER ) + - col1 AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + 40 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL ( - COUNT( * ) ) + - MIN( ALL + col0 ) AS col0 FROM tab2 WHERE NOT ( - 76 + + col1 ) IS NULL
----
-49

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL ( - COUNT ( * ) ) + - MIN ( ALL + col0 ) AS col0 FROM tab2 WHERE NOT ( - 76 + + col1 ) IS NULL
----
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT ALL - SUM( col2 ) + 35 AS col0 FROM tab1 WHERE NOT + col1 * col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL - SUM ( col2 ) + 35 AS col0 FROM tab1 WHERE NOT + col1 * col1 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 71 / col1 + - 20 * - 56 NOT BETWEEN NULL AND ( + 5 )
----

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

query I rowsort
SELECT + ( 5 ) * 29 FROM tab0 WHERE ( NULL ) < - col2 * 47
----

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

query I rowsort
SELECT - 59 * col1 FROM tab2
----
-3009
-3953
-4543

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + COUNT( ALL ( + 6 ) ) FROM tab1 WHERE 75 * + 96 NOT IN ( 69 )
----
3

skipif mysql # not compatible
query I rowsort label-6636
SELECT + COUNT ( ALL ( + 6 ) ) FROM tab1 WHERE 75 * + 96 NOT IN ( 69 )
----
3

query I rowsort
SELECT + ( - 76 ) * - col2 FROM tab1
----
4484
5168
7296

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6638
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( ( - col1 ) AS DECIMAL ) * - col2 ) <= 46 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6638
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( ( - col1 ) AS REAL ) * - col2 ) <= 46 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-6639
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT col2 * col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6640
SELECT ALL + 1 + ( COUNT( * ) ) DIV - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + 1 + ( COUNT ( * ) ) / - COUNT ( * ) FROM tab2
----
0

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

query I rowsort
SELECT ALL - 99 / - col0 + + 22 * - 67 AS col1 FROM tab0 WHERE NOT ( - col2 ) BETWEEN NULL AND ( + 38 - - col0 )
----

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

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

query I rowsort
SELECT - col2 + + 87 FROM tab0
----
-12
40
77

query I rowsort
SELECT DISTINCT - 25 + + col1 FROM tab0 AS cor0 WHERE NOT ( - col1 - 82 ) IS NULL
----
-24
-4
56

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col2 ) - 43 col1 FROM tab1
----
3438
4581
9173

query I rowsort
SELECT + col2 + 30 * + 80 FROM tab1
----
2459
2468
2496

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN ( col0 ) AND + 3 + - col2 * col0
----

query I rowsort
SELECT DISTINCT + - col0 + 9 FROM tab0 AS cor0
----
-6
-78
-88

query I rowsort
SELECT DISTINCT ( - col0 ) + + col0 * col0 FROM tab2 AS cor0 WHERE + 77 + + 87 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL - COUNT( + 25 ) + - 45 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-48

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - COUNT ( + 25 ) + - 45 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-48

query I rowsort
SELECT 93 * - col0 AS col0 FROM tab1 cor0
----
-4743
-7905
-8463

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

query I rowsort
SELECT DISTINCT - col0 * - col2 FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
705
870
9603

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 2 )
----

query I rowsort
SELECT - ( - + 63 ) AS col0 FROM tab2
----
63
63
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6664
SELECT - 19 DIV - - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6664
SELECT - 19 / - - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab0 WHERE ( col2 * 55 + 77 * + col2 ) BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6666
SELECT MAX ( DISTINCT - 80 ) AS col0 FROM tab2 AS cor0
----
-80

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6668
SELECT DISTINCT - COUNT( * ) * - COUNT( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND CAST( col0 AS DECIMAL ) / + 52
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - COUNT ( * ) * - COUNT ( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND CAST ( col0 AS REAL ) / + 52
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL SUM( + + 47 ) AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL SUM ( + + 47 ) AS col2 FROM tab0
----
141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT + COUNT( * ) * - 42 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-378

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + COUNT ( * ) * - 42 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-378

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT DISTINCT - + col0 DIV + col1 AS col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - + col0 / + col1 AS col1 FROM tab1 cor0
----
-1
-17
-3

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

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

query I rowsort
SELECT 44 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
44
44
44

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 * - - col1 + - - col0 * 53 col2 FROM tab0 AS cor0
----
4116
5182
5472

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

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

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

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

query I rowsort
SELECT ALL + col2 + + col0 - + 88 * + 66 FROM tab1 AS cor0
----
-5649
-5661
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6684
SELECT ALL * FROM tab1 AS cor0 WHERE 27 * CAST( - 89 AS SIGNED ) / + col0 NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-6684
SELECT ALL * FROM tab1 AS cor0 WHERE 27 * CAST ( - 89 AS INTEGER ) / + col0 NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 * ( + col2 ) col2 FROM tab2 AS cor0
----
-1480
-2146
-851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 24 col2 FROM tab1 AS cor0
----
120
83
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6687
SELECT ALL - CAST( + col2 AS SIGNED ) DIV 92 * - - col0 + col1 DIV 48 AS col1 FROM tab0
----
-97
0
1

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - CAST ( + col2 AS INTEGER ) / 92 * - - col0 + col1 / 48 AS col1 FROM tab0
----
-97
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col2 FROM tab2 WHERE ( col2 ) <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT MAX( - col2 ) * - 63 AS col1 FROM tab2 WHERE NULL BETWEEN - + 42 AND 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT MAX ( - col2 ) * - 63 AS col1 FROM tab2 WHERE NULL BETWEEN - + 42 AND 61
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 + - + 64 * col1 * - + col0 col2 FROM tab1
----
27271
273799
45767

query I rowsort
SELECT DISTINCT col1 + col2 * + + col0 FROM tab0
----
786
891
9604

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL AND ( NOT + col1 * - 37 <> - ( - col1 ) + 88 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT DISTINCT - 36 DIV col1 + - col1 * col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - 36 / col1 + - col1 * col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

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

query I rowsort
SELECT 82 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - + col0 col1 FROM tab0
----
108
96
98

query I rowsort
SELECT - col1 - + - col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 8 * - + col2 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT ALL 17 * + - col0 AS col0 FROM tab0 AS cor0
----
-1479
-1649
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col0 FROM tab1 AS cor0
----
-77

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

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

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

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

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

query I rowsort
SELECT ALL + - 79 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT + MAX( + 53 ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-6710
SELECT + MAX ( + 53 ) FROM tab1
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 75 * - - col1 col0 FROM tab1
----
51
1050
85
375
91
3525

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6713
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query III rowsort label-6713
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) = - col2
----

query I rowsort
SELECT ALL col1 * - - col1 AS col0 FROM tab1
----
196
2209
25

query I rowsort
SELECT col1 * - 5 * + col2 * - - col2 FROM tab1
----
-1086640
-645120
-87025

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT 62 * + MAX( DISTINCT col2 ) FROM tab0
----
6138

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT 62 * + MAX ( DISTINCT col2 ) FROM tab0
----
6138

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

skipif mysql # not compatible
query I rowsort label-6717
SELECT ( + col2 ) / - + col2 FROM tab0
----
-1
-1
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + CAST ( NULL AS REAL ) / + - 60 - + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 + - col0 + col1 + + - 54 + + col1 * 55 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT COUNT( * ) * 99 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-6722
SELECT COUNT ( * ) * 99 FROM tab1
----
297

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

query I rowsort
SELECT DISTINCT + 27 + col2 FROM tab0 AS cor0
----
126
37
74

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

query I rowsort
SELECT - + 10 + + 87 AS col0 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - - 39 * + - 88 + + + SUM( ALL col0 ) AS col1 FROM tab1 WHERE col1 <= + + col0
----
-3205

skipif mysql # not compatible
query I rowsort label-6731
SELECT - - 39 * + - 88 + + + SUM ( ALL col0 ) AS col1 FROM tab1 WHERE col1 <= + + col0
----
-3205

query I rowsort
SELECT - 26 FROM tab0 WHERE - col2 + - + col0 IN ( + col2 )
----

query II rowsort
SELECT ALL col0, - 19 * col1 + - 73 AS col2 FROM tab2
----
46
-1042
64
-1536
75
-1346

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

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL 69 + + + MIN ( + ( - col0 ) ) FROM tab0
----
-28

query I rowsort
SELECT DISTINCT + col1 + + + col0 AS col2 FROM tab0
----
108
96
98

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

query I rowsort
SELECT ALL col2 + col2 + + ( - col1 ) FROM tab2
----
-5
3
49

query I rowsort
SELECT DISTINCT 80 + + 60 FROM tab2
----
140

query I rowsort
SELECT + 61 FROM tab0 WHERE - - col1 * - 59 IS NULL
----

query I rowsort
SELECT + col2 * - col1 + col2 FROM tab2 WHERE + col0 * col1 * - 3 IS NOT NULL
----
-1150
-3040
-3828

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT + + col0 - + 61 FROM tab2 AS cor0
----
-15
14
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col1 + 11 / + + 25 * col2 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT 32 - SUM( ALL - 47 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT 32 - SUM ( ALL - 47 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + ( col0 ) )
----
NULL

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

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

query I rowsort
SELECT ALL + 82 * 87 FROM tab0, tab2 AS cor0
----
9 values hashing to 0fba39f4f0f656e0a1f566cbceb20f4c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE col2 NOT IN ( col2 )
----

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

query II rowsort
SELECT DISTINCT + + col0 * + - 23 AS col2, 28 AS col1 FROM tab1 AS cor0
----
-1173
28
-1955
28
-2093
28

query II rowsort
SELECT DISTINCT + 34 * - + ( + 76 ) AS col2, col2 FROM tab2
----
-2584
23
-2584
40
-2584
58

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

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

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab0 WHERE col1 * col2 <= NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) < col2
----

query I rowsort
SELECT DISTINCT - 92 * - - col2 * + - col0 FROM tab2 AS cor0
----
235520
400200
97336

query I rowsort
SELECT ALL - + ( - + 20 ) + + col0 FROM tab2 AS cor0
----
66
84
95

query I rowsort
SELECT + col0 + + 76 * - col2 AS col0 FROM tab2
----
-1702
-2976
-4333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6759
SELECT ALL CAST( + 3 AS SIGNED ), 89 + + col0 + + - col2 - + 64 * 27 AS col0 FROM tab1
----
3
-1613
3
-1616
3
-1684

skipif mysql # not compatible
query II rowsort label-6759
SELECT ALL CAST ( + 3 AS INTEGER ), 89 + + col0 + + - col2 - + 64 * 27 AS col0 FROM tab1
----
3
-1613
3
-1616
3
-1684

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

query I rowsort
SELECT ALL - 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT COUNT( * ) * - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-6762
SELECT COUNT ( * ) * - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-597

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

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

query I rowsort
SELECT - col2 * - 98 AS col1 FROM tab0 AS cor0
----
4606
9702
980

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + COUNT( * ) * - + MAX( - 67 ) FROM tab0 cor0
----
201

skipif mysql # not compatible
query I rowsort label-6766
SELECT + COUNT ( * ) * - + MAX ( - 67 ) FROM tab0 cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL - + COUNT( * ) + 41 AS col2 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL - + COUNT ( * ) + 41 AS col2 FROM tab0 AS cor0
----
38

query I rowsort
SELECT - 47 - - col1 * col2 - col0 FROM tab1 AS cor0
----
1246
163
3058

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + + AVG ( DISTINCT + col1 ) + - COUNT( * ) FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT + + AVG ( DISTINCT + col1 ) + - COUNT ( * ) FROM tab2 WHERE - col2 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT + - COUNT( * ) * - 34 + - AVG ( DISTINCT 95 ) AS col0 FROM tab1 WHERE NULL BETWEEN 23 + + 48 AND + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT + - COUNT ( * ) * - 34 + - AVG ( DISTINCT 95 ) AS col0 FROM tab1 WHERE NULL BETWEEN 23 + + 48 AND + - 20
----
NULL

query I rowsort
SELECT 4 + - 1 * + - col1 * col2 AS col1 FROM tab0
----
103
214
3811

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

query I rowsort
SELECT - col1 + 16 + + col1 AS col0 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 cor0 WHERE col1 < col1
----

query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab0 cor0 WHERE NULL <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-6777
SELECT CAST ( - 26 AS INTEGER ) FROM tab2 AS cor0
----
-26
-26
-26

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 * 91 * + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
20475
688779
856219

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT ALL col2 AS col0, col2 * - col2 AS col0 FROM tab2 AS cor0
----
23
-529
40
-1600
58
-3364

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 82 col2, 43 FROM tab0 AS cor0
----
-82
43
-82
43
-82
43

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

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

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

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

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

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

query II rowsort
SELECT - col2 * + col0 AS col1, ( + + 1 ) FROM tab2
----
-1058
1
-2560
1
-4350
1

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

query I rowsort
SELECT DISTINCT - col2 * col0 * col2 AS col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT - ( 38 ) * - + COUNT( + col2 ) AS col0, 8 AS col1 FROM tab1
----
114
8

skipif mysql # not compatible
query II rowsort label-6796
SELECT - ( 38 ) * - + COUNT ( + col2 ) AS col0, 8 AS col1 FROM tab1
----
114
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 99 ) * - col2 * + col0 col1 FROM tab1
----
-484704
-496485
-612612

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT COUNT( * ) * 46 AS col2 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-6798
SELECT COUNT ( * ) * 46 AS col2 FROM tab1
----
138

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

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

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

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

query I rowsort
SELECT + col2 * - col2 FROM tab0 AS cor0 WHERE col2 BETWEEN 31 * 47 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6803
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - col2 + - ( + 1 ) - 21 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT - CAST ( NULL AS REAL ) / - col2 + - ( + 1 ) - 21 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 51 * + col1 FROM tab0 AS cor0
----
-1071
-4131
-51

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 71 > + + 58
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT COUNT( * ) * 19 * + + SUM( DISTINCT CAST( + col1 AS SIGNED ) ) FROM tab2
----
11115

skipif mysql # not compatible
query I rowsort label-6809
SELECT COUNT ( * ) * 19 * + + SUM ( DISTINCT CAST ( + col1 AS INTEGER ) ) FROM tab2
----
11115

query I rowsort
SELECT DISTINCT - col1 - - col2 * - - col2 FROM tab1
----
3476
4577
9202

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col2 AS col1 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - COUNT( * ) * - - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-117

skipif mysql # not compatible
query I rowsort label-6814
SELECT - COUNT ( * ) * - - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-117

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 84 + - + col1 NOT BETWEEN + col2 AND 27 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6817
SELECT + SUM( DISTINCT + col1 ) AS col2, + 59 FROM tab0 cor0
----
103
59

skipif mysql # not compatible
query II rowsort label-6817
SELECT + SUM ( DISTINCT + col1 ) AS col2, + 59 FROM tab0 cor0
----
103
59

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

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

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

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

query II rowsort
SELECT + 39, + col2 - col0 AS col2 FROM tab0
----
39
-77
39
2
39
32

query I rowsort
SELECT ALL - 83 * + - 81 * col0 + 43 AS col2 FROM tab0
----
100888
584944
652174

query II rowsort
SELECT DISTINCT col2 AS col0, + 37 * col1 AS col2 FROM tab1 AS cor0
----
59
185
68
1739
96
518

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

query I rowsort
SELECT + 96 + 19 FROM tab0 cor0
----
115
115
115

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 >= 10 * - col0 - - - col1 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 16 - col1 - col2 AS col1 FROM tab0 AS cor0
----
-116
-144
-47

query I rowsort
SELECT 70 - + 18 AS col2 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + + col2 - + - 64 FROM tab1 AS cor0
----
123
132
160

query I rowsort
SELECT DISTINCT col0 - 14 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
73
83

query II rowsort
SELECT col2 - 90, + col1 AS col0 FROM tab2 AS cor0
----
-32
67
-50
77
-67
51

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

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

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

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

query I rowsort
SELECT - ( + 26 ) + - col2 AS col2 FROM tab1
----
-122
-85
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 * + col2 + - col1 col2 FROM tab0
----
-3277
-6733
-701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * col1 * - col1 col0 FROM tab2
----
-132605
-300688
-456469

query I rowsort
SELECT DISTINCT - 23 * - col0 AS col0 FROM tab2
----
1058
1472
1725

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 BETWEEN + col2 AND col0 + - 27 OR + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6840
SELECT * FROM tab0 WHERE NOT - col1 / - col1 * + ( - - 62 ) + CAST( NULL AS SIGNED ) = - 78
----

skipif mysql # not compatible
query III rowsort label-6840
SELECT * FROM tab0 WHERE NOT - col1 / - col1 * + ( - - 62 ) + CAST ( NULL AS INTEGER ) = - 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT ALL col1 DIV + - 84 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL col1 / + - 84 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 57 - - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 - - col0 * ( + 32 ) / - - ( col0 ) AND NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL = 78
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6844
SELECT MAX( + + CAST( - col0 AS SIGNED ) ) DIV - + 42 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6844
SELECT MAX ( + + CAST ( - col0 AS INTEGER ) ) / - + 42 AS col0 FROM tab2
----
1

query II rowsort
SELECT ALL col1, + 47 * 17 * + - 50 AS col2 FROM tab0
----
1
-39950
21
-39950
81
-39950

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6846
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) / 57 * - ( col1 ) NOT BETWEEN - - 43 AND 61
----

skipif mysql # not compatible
query III rowsort label-6846
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) / 57 * - ( col1 ) NOT BETWEEN - - 43 AND 61
----

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

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + col0 / col0 * col1 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT DISTINCT - 88 DIV - 77 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT - 88 / - 77 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT ALL + + MAX( - col2 ) AS col2, 16 FROM tab2 cor0
----
-23
16

skipif mysql # not compatible
query II rowsort label-6849
SELECT ALL + + MAX ( - col2 ) AS col2, 16 FROM tab2 cor0
----
-23
16

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 32 * - col1 + + + 23 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6852
SELECT + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col1, - SUM( + col2 ) DIV - COUNT( * ) FROM tab1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-6852
SELECT + COUNT ( * ) + CAST ( NULL AS REAL ) AS col1, - SUM ( + col2 ) / - COUNT ( * ) FROM tab1
----
NULL
74

query I rowsort
SELECT DISTINCT 88 + + 1 FROM tab0
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - COUNT( * ) * COUNT( * ) FROM tab2 WHERE col1 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6855
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE col1 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ( SUM( + 26 ) ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-6856
SELECT ( SUM ( + 26 ) ) FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT DISTINCT - 57 AS col0 FROM tab1 WHERE + ( + - CAST( NULL AS SIGNED ) ) + - col2 = 23 + col2
----

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT - 57 AS col0 FROM tab1 WHERE + ( + - CAST ( NULL AS INTEGER ) ) + - col2 = 23 + col2
----

query I rowsort
SELECT ALL - 88 + - 34 AS col1 FROM tab0 AS cor0
----
-122
-122
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT - COUNT( * ) * - 25 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6859
SELECT - COUNT ( * ) * - 25 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT + + col0 * 14 + + 24 AS col1 FROM tab2 cor0
----
1074
668
920

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

query I rowsort
SELECT + 30 - + 56 * + 43 AS col1 FROM tab1 AS cor0
----
-2378
-2378
-2378

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT DISTINCT col1 - - + ( + - col0 ) DIV - 73 + ( - ( + 79 ) ) FROM tab0 AS cor0
----
-57
-77
2

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT col1 - - + ( + - col0 ) / - 73 + ( - ( + 79 ) ) FROM tab0 AS cor0
----
-57
-77
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) <> - - col1 * - col1 * + 34 + + 87
----
0

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) <> - - col1 * - col1 * + 34 + + 87
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6869
SELECT AVG ( DISTINCT 45 ) / + + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT AVG ( DISTINCT 45 ) / + + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT - col1 * + + col0 * + + col2 AS col2 FROM tab1
----
-25075
-290836
-68544

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + col2 + ( - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT MAX( col1 ) * + - COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT MAX ( col1 ) * + - COUNT ( * ) FROM tab0
----
-243

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2, tab2 cor0
----
30

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

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6879
SELECT ALL MIN( 13 ) DIV COUNT( * ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL MIN ( 13 ) / COUNT ( * ) AS col0 FROM tab0
----
4

query I rowsort
SELECT ALL ( 72 ) AS col2 FROM tab0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT DISTINCT - + CAST( - 21 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT - + CAST ( - 21 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
21

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0, + col1 * + col1 + - - col0, - + ( + col2 ), col1, + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL - + COUNT( * ) + - 29 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6883
SELECT ALL - + COUNT ( * ) + - 29 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6884
SELECT + COUNT( * ) * + 1 * - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6884
SELECT + COUNT ( * ) * + 1 * - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT - CAST( - 97 AS SIGNED ) + + col0 + - 77 * + - ( + + col0 ) AS col2 FROM tab1 cor0 WHERE + col0 <> + col2
----
4075
6727
7195

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - CAST ( - 97 AS INTEGER ) + + col0 + - 77 * + - ( + + col0 ) AS col2 FROM tab1 cor0 WHERE + col0 <> + col2
----
4075
6727
7195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT + SUM( col0 ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col1 >= - ( + ( + CAST( 50 AS SIGNED ) ) ) )
----
368

skipif mysql # not compatible
query I rowsort label-6886
SELECT + SUM ( col0 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col1 >= - ( + ( + CAST ( 50 AS INTEGER ) ) ) )
----
368

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6892
SELECT COUNT ( ALL - - col1 ) col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT DISTINCT + col2 * ( - col2 ) DIV - + col0 FROM tab2
----
11
25
44

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT + col2 * ( - col2 ) / - + col0 FROM tab2
----
11
25
44

query I rowsort
SELECT ALL + 56 + + + 57 AS col2 FROM tab2
----
113
113
113

query I rowsort
SELECT DISTINCT + col1 + - + col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL 25 + - - col1 FROM tab0
----
106
26
46

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6898
SELECT - col1 * CAST( + col2 AS SIGNED ) + + col2 + + 28 - + ( col2 ) + + CAST( - + ( + col2 ) AS SIGNED ) DIV 43 AS col1 FROM tab1
----
-1318
-268
-3169

skipif mysql # not compatible
query I rowsort label-6898
SELECT - col1 * CAST ( + col2 AS INTEGER ) + + col2 + + 28 - + ( col2 ) + + CAST ( - + ( + col2 ) AS INTEGER ) / 43 AS col1 FROM tab1
----
-1318
-268
-3169

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

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

query I rowsort
SELECT ALL - + 14 * col0 FROM tab2 AS cor0
----
-1050
-644
-896

query I rowsort
SELECT 83 * - col0 + + 96 + - col2 FROM tab0 AS cor0
----
-1196
-7135
-8054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT DISTINCT - CAST( 45 AS SIGNED ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT - CAST ( 45 AS INTEGER ) FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6903
SELECT DISTINCT COUNT( * ) - COUNT( * ), - COUNT( * ) * + 86 AS col2 FROM tab1 AS cor0
----
0
-258

skipif mysql # not compatible
query II rowsort label-6903
SELECT DISTINCT COUNT ( * ) - COUNT ( * ), - COUNT ( * ) * + 86 AS col2 FROM tab1 AS cor0
----
0
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT + + col1 - + 65 + ( - 20 ) * - CAST( - 91 AS SIGNED ) + 60 FROM tab0 AS cor0
----
-1744
-1804
-1824

skipif mysql # not compatible
query I rowsort label-6904
SELECT + + col1 - + 65 + ( - 20 ) * - CAST ( - 91 AS INTEGER ) + 60 FROM tab0 AS cor0
----
-1744
-1804
-1824

query I rowsort
SELECT + col1 - - + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT COUNT( DISTINCT - 22 ) * - SUM( ALL - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6908
SELECT COUNT ( DISTINCT - 22 ) * - SUM ( ALL - col0 ) FROM tab1
----
227

query I rowsort
SELECT + 65 * - col2 FROM tab2
----
-1495
-2600
-3770

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

query II rowsort
SELECT DISTINCT - 21 AS col0, 28 FROM tab2 AS cor0
----
-21
28

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col1, + 7 * col1 AS col2 FROM tab1 AS cor0
----
-51
98
-85
35
-91
329

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL 86 * + + MIN( ALL + 98 ) FROM tab0 cor0
----
8428

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL 86 * + + MIN ( ALL + 98 ) FROM tab0 cor0
----
8428

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

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
86

query I rowsort
SELECT ALL 69 * - 87 FROM tab2 WHERE NOT + col2 IS NULL
----
-6003
-6003
-6003

query I rowsort
SELECT ALL + col1 * - col2 * + 1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

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

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) + - 52 * - COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT ALL - 7 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT 73 + - col2 AS col0 FROM tab0 AS cor0
----
-26
26
63

query I rowsort
SELECT ALL col1 * - - col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col2 + - 76 FROM tab2
----
-18
-36
-53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL + 71 * + COUNT( * ) FROM tab0, tab1 AS cor0
----
639

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + 71 * + COUNT ( * ) FROM tab0, tab1 AS cor0
----
639

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

query II rowsort
SELECT + 2 * + col0 * + col2 AS col0, col1 FROM tab0 AS cor0
----
1410
81
1740
21
19206
1

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 <= - + 41 / col0 + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) - - 54 * + 32 * + 80 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) - - 54 * + 32 * + 80 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - COUNT( ALL + col0 ) + + 80 AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6931
SELECT - COUNT ( ALL + col0 ) + + 80 AS col2 FROM tab0 AS cor0
----
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col1 * + 69 col0 FROM tab2
----
2461
273
2753

query I rowsort
SELECT col1 * 85 + - + 83 FROM tab0
----
1702
2
6802

query I rowsort
SELECT ALL - 90 FROM tab2 WHERE NULL BETWEEN + col0 AND - + col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col0, - col0, + col0 col0 FROM tab1 AS cor0
----
9 values hashing to 32623ccaa159383e1d6a8425edfdd7a4

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT DISTINCT - 70 * COUNT( * ) AS col2 FROM tab2 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT - 70 * COUNT ( * ) AS col2 FROM tab2 cor0
----
-210

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

query II rowsort
SELECT ALL + 28 * + 93 + - col0, - col1 AS col2 FROM tab2 AS cor0 WHERE - col1 > + col0
----

query II rowsort
SELECT 47, col2 AS col2 FROM tab1 AS cor0
----
47
59
47
68
47
96

query II rowsort
SELECT - col0 AS col0, col1 * col0 * - col2 FROM tab0 AS cor0
----
-15
-57105
-87
-18270
-97
-9603

query I rowsort
SELECT - 45 * + 72 AS col2 FROM tab2 AS cor0
----
-3240
-3240
-3240

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

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

query I rowsort
SELECT ALL - 57 FROM tab2 WHERE NOT - col0 IS NULL
----
-57
-57
-57

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

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

query I rowsort
SELECT ALL 28 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

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

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

query II rowsort
SELECT ALL col2 * - + 87 AS col2, col0 FROM tab1 cor0
----
-5133
85
-5916
91
-8352
51

query I rowsort
SELECT + col2 * + + 25 + + col0 FROM tab0 AS cor0
----
1190
2572
337

query I rowsort
SELECT + col1 + - ( col0 ) + 51 AS col1 FROM tab1
----
-29
14
7

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 44 * - - ( col2 ) AS col1 FROM tab1 AS cor0
----
2596
2992
4224

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6959
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 - - + CAST( + col1 AS SIGNED ) + + col0 BETWEEN - col1 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6959
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 - - + CAST ( + col1 AS INTEGER ) + + col0 BETWEEN - col1 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 30 FROM tab0 AS cor0 WHERE 40 >= 51
----

query I rowsort
SELECT DISTINCT + 75 FROM tab2 AS cor0 WHERE NOT col2 * 14 NOT BETWEEN + col0 / + 14 + - col2 AND - 74
----

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT col0 * - - col0 + - + 66 + + col0 FROM tab0
----
174
7590
9440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT DISTINCT - CAST( + 30 AS SIGNED ) + + 79 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT - CAST ( + 30 AS INTEGER ) + + 79 FROM tab2
----
49

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

query II rowsort
SELECT DISTINCT - col2 * - 66 AS col2, + col0 AS col0 FROM tab0
----
3102
15
6534
97
660
87

query I rowsort
SELECT + ( - col2 ) + - - 73 AS col2 FROM tab2 AS cor0
----
15
33
50

query I rowsort
SELECT DISTINCT + ( + - 57 ) - + col0 FROM tab0 AS cor0
----
-144
-154
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - COUNT( ALL - + col2 ) + - MIN( + col2 ) * 70 FROM tab0 AS cor0
----
-703

skipif mysql # not compatible
query I rowsort label-6969
SELECT - COUNT ( ALL - + col2 ) + - MIN ( + col2 ) * 70 FROM tab0 AS cor0
----
-703

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - col2 <> + col2 / col1 )
----

query I rowsort
SELECT + 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6974
SELECT ALL col2 DIV 31 * col0 AS col1, + ( - 32 ) * - col1 * col0 col0 FROM tab0 AS cor0
----
0
58464
15
38880
291
3104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6974
SELECT ALL col2 / 31 * col0 AS col1, + ( - 32 ) * - col1 * col0 col0 FROM tab0 AS cor0
----
0
58464
15
38880
291
3104

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + SUM( ALL - - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + SUM ( ALL - - col1 ) FROM tab2 cor0
----
195

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

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

query II rowsort
SELECT DISTINCT - 70 AS col2, ( col0 ) AS col1 FROM tab0
----
-70
15
-70
87
-70
97

query II rowsort
SELECT DISTINCT 20 AS col2, + col2 + + col0 AS col1 FROM tab0
----
20
196
20
62
20
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT 16 AS col0, + 46 * - COUNT( - col1 ) FROM tab0
----
16
-138

skipif mysql # not compatible
query II rowsort label-6984
SELECT 16 AS col0, + 46 * - COUNT ( - col1 ) FROM tab0
----
16
-138

query I rowsort
SELECT ALL 51 * - col0 AS col0 FROM tab1
----
-2601
-4335
-4641

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

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

query I rowsort
SELECT DISTINCT + 11 + + 3 + - 82 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-68

query I rowsort
SELECT + 39 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + col0, + 79 + - col1 * - + 98 * - 16 col2 FROM tab0
----
0
-126929
0
-1489
0
-32849

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT + + MIN( - col1 ) + COUNT( * ) FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT + + MIN ( - col1 ) + COUNT ( * ) FROM tab1 cor0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE NOT + col0 + + - col0 IS NULL
----
15
87
97

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * - + col2 col0 FROM tab1 AS cor0
----
2124
2448
3456

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + + col2 * + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0 + + 11
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT - 90 DIV + col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT - 90 / + col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL 43 + col1 FROM tab1
----
48
57
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7005
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) + + col2 DIV ( + CAST( + 13 AS SIGNED ) ) AS col0 FROM tab1
----
103
63
73

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) + + col2 / ( + CAST ( + 13 AS INTEGER ) ) AS col0 FROM tab1
----
103
63
73

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

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

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

query I rowsort
SELECT + + col0 * + 8 + + col2 AS col2 FROM tab0 AS cor0
----
167
706
875

query I rowsort
SELECT ALL 31 * + - col0 AS col2 FROM tab0 AS cor0
----
-2697
-3007
-465

query I rowsort
SELECT + col2 * + + 91 FROM tab1
----
5369
6188
8736

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7012
SELECT DISTINCT 87 / col1 * ( - ( 46 ) ) * - + 66 * CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT 87 / col1 * ( - ( 46 ) ) * - + 66 * CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT MAX( ALL ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT MAX ( ALL ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
15
87
97

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

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

query I rowsort
SELECT - 76 * col1 AS col2 FROM tab2
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query II rowsort label-7017
SELECT + 11 AS col1, + 57 * - + 24 * + COUNT( * ) FROM tab1
----
11
-4104

skipif mysql # not compatible
query II rowsort label-7017
SELECT + 11 AS col1, + 57 * - + 24 * + COUNT ( * ) FROM tab1
----
11
-4104

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

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

query I rowsort
SELECT - 61 * col2 AS col1 FROM tab2
----
-1403
-2440
-3538

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 73 - col0 NOT BETWEEN - ( + - col2 ) * + + 9 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT - MAX( - - 60 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7023
SELECT - MAX ( - - 60 ) FROM tab0
----
-60

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

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

query I rowsort
SELECT + 47 + + 52 FROM tab2 AS cor0
----
99
99
99

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

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

query I rowsort
SELECT - - 58 + - col2 AS col2 FROM tab1 AS cor0
----
-1
-10
-38

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

query III rowsort
SELECT * FROM tab0 WHERE - + col0 < - 94
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT ALL + col0 + - col1 DIV 20 FROM tab0
----
11
86
97

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + col0 + - col1 / 20 FROM tab0
----
11
86
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL ( - + col2 ) * - 34 + - col0 - + col0 + + col2 - col2 + 37 * + col1 + - - 37 FROM tab0
----
3246
4602
980

query II rowsort
SELECT col1 * 35 AS col2, - col2 FROM tab1
----
1645
-68
175
-59
490
-96

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

query II rowsort
SELECT + 96, col2 + - - col2 AS col2 FROM tab1 AS cor0
----
96
118
96
136
96
192

query I rowsort
SELECT + 84 * + col1 + - col0 FROM tab1 cor0
----
1125
335
3857

query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL + - MIN( + 83 ) AS col0 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + - MIN ( + 83 ) AS col0 FROM tab0 AS cor0
----
-83

query II rowsort
SELECT DISTINCT + + ( 9 ) AS col0, + col2 AS col0 FROM tab2 cor0
----
9
23
9
40
9
58

query I rowsort
SELECT col1 + + - col1 + - ( - - 76 ) FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col0 + - + col2 - + 48 FROM tab2
----
-24
-25
-31

query I rowsort
SELECT ALL col1 + col2 + col1 FROM tab2
----
125
192
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - COUNT( * ) + 52 * 70 - + ( 25 ) AS col0 FROM tab2
----
3612

skipif mysql # not compatible
query I rowsort label-7043
SELECT - COUNT ( * ) + 52 * 70 - + ( 25 ) AS col0 FROM tab2
----
3612

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

query II rowsort
SELECT col2 * + col0 * ( - col0 ) + col1 AS col1, + col1 AS col0 FROM tab2
----
-163763
77
-326183
67
-48617
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT COUNT( * ) * - + MIN( + - col2 ) AS col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7046
SELECT COUNT ( * ) * - + MIN ( + - col2 ) AS col0 FROM tab2 AS cor0
----
174

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7049
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0, + SUM( + col1 ) FROM tab1 AS cor0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-7049
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, + SUM ( + col1 ) FROM tab1 AS cor0
----
NULL
66

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

query I rowsort
SELECT + 79 * + col2 AS col0 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT ALL + 14 FROM tab0 cor0
----
14
14
14

query I rowsort
SELECT DISTINCT + + 72 * + 69 FROM tab1 AS cor0
----
4968

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

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

query I rowsort
SELECT ALL + - col0 * - col1 * + col0 FROM tab0 cor0
----
158949
18225
9409

query II rowsort
SELECT DISTINCT 76 * 98 AS col0, ( - 11 ) FROM tab0
----
7448
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL + 41 + + COUNT( ALL - - 39 ) col2 FROM tab1
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7058
SELECT ALL + 41 + + COUNT ( ALL - - 39 ) col2 FROM tab1
----
44

query I rowsort
SELECT col0 + - ( + col0 ) AS col1 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-7060
SELECT COUNT ( * ) * + 60 FROM tab1
----
180

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7062
SELECT DISTINCT - col2 * + CAST( 46 AS SIGNED ) - - col1 FROM tab0 AS cor0
----
-2081
-439
-4553

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - col2 * + CAST ( 46 AS INTEGER ) - - col1 FROM tab0 AS cor0
----
-2081
-439
-4553

onlyif mysql # DIV for integer division: 
query II rowsort label-7063
SELECT - col2 DIV - col2 col0, ( 97 ) FROM tab2 AS cor0
----
1
97
1
97
1
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7063
SELECT - col2 / - col2 col0, ( 97 ) FROM tab2 AS cor0
----
1
97
1
97
1
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 71 * col1 <= NULL
----

query I rowsort
SELECT ALL + 87 + - 30 + - col0 AS col1 FROM tab0
----
-30
-40
42

query I rowsort
SELECT DISTINCT - col1 * + - 8 AS col1 FROM tab1 AS cor0 WHERE NOT col2 / - col0 IS NULL
----
112
376
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - 18 + + + col0 / - - 93 + - - 1 <= NULL
----

query II rowsort
SELECT col1, + 97 * + - col0 AS col1 FROM tab1 AS cor0
----
14
-4947
47
-8827
5
-8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 * + col1 * - 11 col0 FROM tab0 AS cor0
----
17787
68607
847

query II rowsort
SELECT 18 AS col0, 90 FROM tab2 AS cor0
----
18
90
18
90
18
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT ( col0 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT ( col0 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 22 * + 58 * - ( + col0 ) AS col0 FROM tab2
----
-58696
-81664
-95700

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT COUNT( * ) AS col0, + SUM( + 8 ) FROM tab2
----
3
24

skipif mysql # not compatible
query II rowsort label-7073
SELECT COUNT ( * ) AS col0, + SUM ( + 8 ) FROM tab2
----
3
24

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

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

query III rowsort
SELECT * FROM tab2 WHERE + - col0 IN ( 45, - col2 + + - 67 + - col2 * col2, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT ALL 50 * - col0 + 64 DIV + col1 AS col0 FROM tab0
----
-4347
-4786
-750

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL 50 * - col0 + 64 / + col1 AS col0 FROM tab0
----
-4347
-4786
-750

query II rowsort
SELECT - col0 AS col0, - 4 AS col0 FROM tab2
----
-46
-4
-64
-4
-75
-4

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE - col1 + + col1 > + col0 * - 46
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT + 74 AS col2, SUM( ALL 2 ) FROM tab2 AS cor0
----
74
6

skipif mysql # not compatible
query II rowsort label-7079
SELECT + 74 AS col2, SUM ( ALL 2 ) FROM tab2 AS cor0
----
74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT - MIN( ALL + 60 ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7080
SELECT - MIN ( ALL + 60 ) AS col2 FROM tab1 AS cor0
----
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 17 + + 26 - col1 + + - col1 + - 71 / - 99 * + col0 + + col2 * + 28 * col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - - 31 ) FROM tab1 AS cor0
----
-31
-31
-31

query II rowsort
SELECT ALL - col1 * - col1 * - 71 * - col2, + 45 AS col1 FROM tab1 AS cor0
----
104725
45
10665052
45
1335936
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT DISTINCT MIN( col2 ) * 31 FROM tab0 AS cor0
----
310

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT MIN ( col2 ) * 31 FROM tab0 AS cor0
----
310

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7085
SELECT DISTINCT + ( 50 ) * col2 + - 18 * - ( - ( - 63 ) ) AS col0, - col0 AS col2 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7085
SELECT DISTINCT + ( 50 ) * col2 + - 18 * - ( - ( - 63 ) ) AS col0, - col0 AS col2 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NOT NULL > - + ( - ( - - col0 ) ) / + + col0
----

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

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + ( COUNT ( + 76 ) ) AS col1 FROM tab0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab0 AS cor0 WHERE NOT NULL >= 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 98 ) * + + ( - col1 ) * 89 col1 FROM tab1 AS cor0
----
122108
409934
43610

query I rowsort
SELECT + 53 * ( + col0 ) FROM tab2 AS cor0
----
2438
3392
3975

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

query I rowsort
SELECT ALL + - 57 * 46 AS col1 FROM tab2 AS cor0
----
-2622
-2622
-2622

query I rowsort
SELECT col1 * ( 94 ) FROM tab2
----
4794
6298
7238

query I rowsort
SELECT - 23 FROM tab2 WHERE NULL IS NULL
----
-23
-23
-23

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) > + - 71
----
15
81
47

query I rowsort
SELECT ALL 68 + - - 31 * - 64 AS col0 FROM tab1
----
-1916
-1916
-1916

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + 4 + 87 AS col2 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT + 94 + + - COUNT( * ) + - 0 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT + 94 + + - COUNT ( * ) + - 0 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
91

query I rowsort
SELECT - 87 + + col0 * + + col1 AS col2 FROM tab2 cor0
----
2259
4841
4938

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 <= - 70
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 58 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT COUNT( * ) FROM tab0 WHERE ( 92 * + CAST( NULL AS SIGNED ) + + col0 ) >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT COUNT ( * ) FROM tab0 WHERE ( 92 * + CAST ( NULL AS INTEGER ) + + col0 ) >= + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 47 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + - 67 col2 FROM tab0
----
-19
-19
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT col2 DIV + 22 col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7110
SELECT col2 / + 22 col2 FROM tab2
----
1
1
2

query I rowsort
SELECT ALL 19 * col0 AS col1 FROM tab2 WHERE NULL IN ( + ( + col1 ) + + col2 * + 95 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7113
SELECT SUM( col1 ) DIV - COUNT( ALL - col1 - - col2 ) AS col1 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-7113
SELECT SUM ( col1 ) / - COUNT ( ALL - col1 - - col2 ) AS col1 FROM tab2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT MAX( ALL col1 ) DIV 71 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7114
SELECT MAX ( ALL col1 ) / 71 AS col1 FROM tab0
----
1

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 78 + + 2 >= col2
----
15
81
47
87
21
10

query I rowsort
SELECT - 97 AS col2 FROM tab2 WHERE NULL IS NULL
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT DISTINCT - 2 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - 2 / col2 FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT 43 DIV - col0 - - col1 * - col1 FROM tab0
----
-1
-441
-6563

skipif mysql # not compatible
query I rowsort label-7120
SELECT 43 / - col0 - - col1 * - col1 FROM tab0
----
-1
-441
-6563

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 52 * 99 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT - SUM( - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7122
SELECT - SUM ( - col0 ) AS col1 FROM tab2
----
185

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 >= + 17
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT - 78 DIV + 25 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 78 / + 25 FROM tab2
----
-3
-3
-3

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7132
SELECT - ( - MIN( + CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 + 12 ) >= - col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * 24 FROM tab2 AS cor0
----
-1392
-552
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT - MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT - MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT + COUNT( ALL - CAST( col2 AS SIGNED ) ) + 49 FROM tab2 AS cor0 WHERE NOT ( - 32 ) NOT IN ( col1 )
----
49

skipif mysql # not compatible
query I rowsort label-7137
SELECT + COUNT ( ALL - CAST ( col2 AS INTEGER ) ) + 49 FROM tab2 AS cor0 WHERE NOT ( - 32 ) NOT IN ( col1 )
----
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 - col0 ) NOT BETWEEN - col2 AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7139
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( col2 + CAST( - col2 AS SIGNED ) * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7139
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( col2 + CAST ( - col2 AS INTEGER ) * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 * + 3 FROM tab0 cor0
----
-141
-297
-30

query I rowsort
SELECT col1 + - + col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7142
SELECT DISTINCT * FROM tab2 WHERE col2 + col0 > + CAST( col2 AS SIGNED ) * - ( - ( col1 ) * col1 ) + 83
----

skipif mysql # not compatible
query III rowsort label-7142
SELECT DISTINCT * FROM tab2 WHERE col2 + col0 > + CAST ( col2 AS INTEGER ) * - ( - ( col1 ) * col1 ) + 83
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / col0 <= ( - 27 ) OR col0 + 80 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 62 + 75 col1 FROM tab1
----
142
151
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 + col2 * col0 col2 FROM tab0
----
745
910
9643

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT 82 * COUNT( * ) AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-7147
SELECT 82 * COUNT ( * ) AS col2 FROM tab0
----
246

query I rowsort
SELECT DISTINCT - 13 * + - 59 * + 49 AS col0 FROM tab1
----
37583

query I rowsort
SELECT ALL - ( + 23 ) * - col0 FROM tab0 cor0
----
2001
2231
345

query I rowsort
SELECT - ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE col2 * - 89 IS NULL
----

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab0 WHERE - col1 / col2 - ( - 4 + 39 ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7153
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7153
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + - 28 + + col2 col2 FROM tab0
----
-101
-12
-64

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 80 IS NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7158
SELECT ALL + + col1 - + col0 * col1 / + col1 col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7159
SELECT DISTINCT + ( + ( - - CAST( 90 AS SIGNED ) ) ) DIV CAST( - col2 * 86 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT + ( + ( - - CAST ( 90 AS INTEGER ) ) ) / CAST ( - col2 * 86 AS INTEGER ) FROM tab0 AS cor0
----
0

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

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

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

query I rowsort
SELECT + + col2 * - + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - col2 * + - 60 AS col0 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT ALL col1 * + col2 * - col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query II rowsort label-7165
SELECT DISTINCT + COUNT( * ) * + + 95 AS col1, 41 + - 52 AS col0 FROM tab2
----
285
-11

skipif mysql # not compatible
query II rowsort label-7165
SELECT DISTINCT + COUNT ( * ) * + + 95 AS col1, 41 + - 52 AS col0 FROM tab2
----
285
-11

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

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

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

query I rowsort
SELECT DISTINCT - 29 FROM tab1 AS cor0 WHERE + 25 + + 9 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT MAX( - col1 ) AS col1 FROM tab1 WHERE NOT ( + - ( col1 ) ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT MAX ( - col1 ) AS col1 FROM tab1 WHERE NOT ( + - ( col1 ) ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT + + SUM( 83 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
747

skipif mysql # not compatible
query I rowsort label-7173
SELECT + + SUM ( 83 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
747

query I rowsort
SELECT ALL ( 7 ) FROM tab1 cor0
----
7
7
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 99 * + 12 * + 7 + - ( - col0 ) ) NOT BETWEEN col0 AND NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7177
SELECT 17 / - COUNT ( * ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

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

query II rowsort
SELECT 96 AS col0, + col0 + + - col0 * + col0 AS col1 FROM tab0
----
96
-210
96
-7482
96
-9312

query I rowsort
SELECT DISTINCT - col1 + + + col1 + 14 AS col2 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT + SUM( ALL col1 ) + - COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + SUM ( ALL col1 ) + - COUNT ( * ) AS col2 FROM tab1
----
63

query I rowsort
SELECT - col2 * - - col1 + + col2 + ( col0 ) AS col2 FROM tab2
----
-1104
-2976
-3753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT DISTINCT - + CAST( + COUNT( DISTINCT 63 ) AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + - 54 + SUM( - + col2 ) col1 FROM tab1 AS cor0
----
-277

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

query I rowsort
SELECT DISTINCT - - 62 + - - 93 FROM tab1 AS cor0
----
155

query I rowsort
SELECT ALL - 45 + + col1 + + - 29 FROM tab1 AS cor0
----
-27
-60
-69

query I rowsort
SELECT col1 - + + 96 + + 23 FROM tab0
----
-52
-72
8

query I rowsort
SELECT DISTINCT col2 * - 54 * - col0 AS col1 FROM tab0 AS cor0
----
38070
46980
518562

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7191
SELECT COUNT( DISTINCT col0 ) DIV 24 + - 31 + + 3 * 27 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----
50

skipif mysql # not compatible
query I rowsort label-7191
SELECT COUNT ( DISTINCT col0 ) / 24 + - 31 + + 3 * 27 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----
50

query I rowsort
SELECT DISTINCT + - 95 AS col2 FROM tab1 cor0
----
-95

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <= - ( - 85 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7194
SELECT - ( + + COUNT( col1 ) ) * + CAST( NULL AS DECIMAL ) - MAX( DISTINCT col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT - ( + + COUNT ( col1 ) ) * + CAST ( NULL AS REAL ) - MAX ( DISTINCT col0 ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * + + col0 AS col2 FROM tab0
----
225
7569
9409

query I rowsort
SELECT - - 50 * ( - col0 ) + col2 FROM tab1 AS cor0
----
-2454
-4191
-4482

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT MIN( ALL + ( + 71 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE - ( 17 ) IS NOT NULL
----
71

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT MIN ( ALL + ( + 71 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE - ( 17 ) IS NOT NULL
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + SUM( DISTINCT + col0 ) + 12 AS col2 FROM tab0
----
211

skipif mysql # not compatible
query I rowsort label-7199
SELECT + SUM ( DISTINCT + col0 ) + 12 AS col2 FROM tab0
----
211

query I rowsort
SELECT ALL + 0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - ( COUNT( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7201
SELECT - ( COUNT ( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT 51 * - ( + + col0 ) >= + col0
----
51
85
91

query I rowsort
SELECT DISTINCT 86 + col0 + 12 FROM tab2 AS cor0
----
144
162
173

query I rowsort
SELECT ALL + + 47 AS col1 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL col2 + + 19 AS col2 FROM tab0
----
118
29
66

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

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

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

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

query I rowsort
SELECT ALL - + col2 * + 78 + 9 * 45 + - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-3276
-462
-7414

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT SUM( + 93 ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-7209
SELECT SUM ( + 93 ) FROM tab2
----
279

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

query I rowsort
SELECT DISTINCT - col2 + 44 FROM tab0
----
-3
-55
34

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7213
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - + col0 * - CAST( NULL AS SIGNED ) * + col1 * + col1 > - col2
----

skipif mysql # not compatible
query III rowsort label-7213
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - + col0 * - CAST ( NULL AS INTEGER ) * + col1 * + col1 > - col2
----

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

query I rowsort
SELECT ALL + - 30 AS col1 FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT DISTINCT + SUM( DISTINCT col1 ) - - 51 AS col2 FROM tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT + SUM ( DISTINCT col1 ) - - 51 AS col2 FROM tab1 cor0
----
117

query I rowsort
SELECT + ( + col0 ) + + + 3 FROM tab1 AS cor0
----
54
88
94

onlyif mysql # DIV for integer division: 
query II rowsort label-7218
SELECT - + 86 DIV - col1 + + col1 * - col2 * - 24 AS col0, col1 * + col2 FROM tab0 AS cor0
----
2462
99
5044
210
91369
3807

skipif mysql # not compatible
query II rowsort label-7218
SELECT - + 86 / - col1 + + col1 * - col2 * - 24 AS col0, col1 * + col2 FROM tab0 AS cor0
----
2462
99
5044
210
91369
3807

query I rowsort
SELECT - 22 + - 95 AS col0 FROM tab2 AS cor0
----
-117
-117
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT MIN( + col1 ) + + - 60 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-7220
SELECT MIN ( + col1 ) + + - 60 FROM tab1
----
-55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT CAST( COUNT( * ) AS SIGNED ) * - 28 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7222
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 28 FROM tab1
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * - col0 col2 FROM tab0
----
-1131
-1261
-195

query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab0 AS cor0 WHERE ( + 47 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7225
SELECT col0, col1 * + CAST( + + 46 AS SIGNED ) + + 87 + + col0 * - - 46 * + 26 - + col0 * col0 AS col0 FROM tab0 AS cor0
----
15
21528
87
97536
97
106736

skipif mysql # not compatible
query II rowsort label-7225
SELECT col0, col1 * + CAST ( + + 46 AS INTEGER ) + + 87 + + col0 * - - 46 * + 26 - + col0 * col0 AS col0 FROM tab0 AS cor0
----
15
21528
87
97536
97
106736

query I rowsort
SELECT ALL - ( - 31 ) * 47 AS col2 FROM tab2 cor0
----
1457
1457
1457

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7229
SELECT ALL - + 68, + COUNT( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL - + 68, + COUNT ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
-68
3

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT DISTINCT - - COUNT( * ) - - CAST( COUNT( * ) AS SIGNED ) FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT - - COUNT ( * ) - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7235
SELECT ALL - 3 DIV - CAST( col0 AS SIGNED ) col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7235
SELECT ALL - 3 / - CAST ( col0 AS INTEGER ) col1 FROM tab2
----
0
0
0

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 BETWEEN + 98 + col2 AND + col0 * - + col0 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-7238
SELECT - ( - - ( + - MIN ( + + col2 ) ) ) FROM tab0
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT + MAX( ALL col2 ) + 42 AS col0 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7240
SELECT + MAX ( ALL col2 ) + 42 AS col0 FROM tab1 AS cor0
----
138

query I rowsort
SELECT + - 65 + + - col0 * col0 AS col1 FROM tab0 cor0
----
-290
-7634
-9474

query II rowsort
SELECT ( + - 8 ) AS col1, + ( + 6 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 07f72d4f2814a2a951fccb3928a8ae0e

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT + 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-7245
SELECT + CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * ( + col2 ) - + + col0 <= + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT + + ( + col1 ) * + CAST( NULL AS SIGNED ) + - col0 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-7247
SELECT + + ( + col1 ) * + CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col0 * + + 57 - + 36 FROM tab1 AS cor0
----
2871
4809
5151

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

query I rowsort
SELECT DISTINCT + - 0 + + - 83 AS col1 FROM tab0 AS cor0
----
-83

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

query I rowsort
SELECT DISTINCT ( + col0 ) + col2 * - ( - col1 ) FROM tab1
----
1395
3287
380

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

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

query I rowsort
SELECT - 40 + - col0 AS col1 FROM tab0
----
-127
-137
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + 32
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT + + 64 * SUM( + col1 ) FROM tab1 AS cor0
----
4224

skipif mysql # not compatible
query I rowsort label-7258
SELECT + + 64 * SUM ( + col1 ) FROM tab1 AS cor0
----
4224

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT col2 DIV - - 85 col2 FROM tab1 cor0
----
0
0
1

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

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

query I rowsort
SELECT 97 * - ( + 29 ) FROM tab0
----
-2813
-2813
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT - 45 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-7263
SELECT - 45 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-135

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + col1 / - col1 - col0 * - - 91 * - + col1 / - col0 * - + 7 * col1 * - + col2 AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( 44 ) col0 FROM tab2
----
-2024
-2816
-3300

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

query I rowsort
SELECT DISTINCT ( + + 29 ) AS col2 FROM tab1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT COUNT( * ) * - 4 col0 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7270
SELECT COUNT ( * ) * - 4 col0 FROM tab0
----
-12

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

query I rowsort
SELECT ALL col0 * + 73 FROM tab1 cor0
----
3723
6205
6643

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ALL + - COUNT( ALL - 99 ) * - 68 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL + - COUNT ( ALL - 99 ) * - 68 FROM tab1 AS cor0
----
204

query I rowsort
SELECT DISTINCT + 17 + + - 29 FROM tab0 AS cor0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL + COUNT( * ) + + ( + 67 ) AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL + COUNT ( * ) + + ( + 67 ) AS col2 FROM tab1
----
70

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

query II rowsort
SELECT + - 2 + + - col2 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-61
85
-70
91
-98
51

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

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

query I rowsort
SELECT ALL - 55 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0 / col2 * col1
----

query II rowsort
SELECT + ( + 23 ) + - 87 AS col1, col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 ) AND + col1 - - col0 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 96 ) * 36 col0, col0 FROM tab1
----
3456
51
3456
85
3456
91

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

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

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

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

query I rowsort
SELECT ALL - 41 + - + 10 AS col2 FROM tab2
----
-51
-51
-51

query I rowsort
SELECT ( + + col0 ) - + col0 AS col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT + + ( + 58 ) AS col2 FROM tab1 WHERE col0 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT 5 - 61 FROM tab0
----
-56
-56
-56

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

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

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

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

query I rowsort
SELECT + col2 / - col2 * + + col0 FROM tab2 AS cor0 WHERE NOT ( - 72 ) >= NULL
----

query I rowsort
SELECT + ( + col1 ) * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + 44 * + 78 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7297
SELECT col1 DIV + - col2 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
-1
64
-1
75
-2
46

skipif mysql # not compatible
query II rowsort label-7297
SELECT col1 / + - col2 AS col1, + col0 AS col1 FROM tab2 AS cor0
----
-1
64
-1
75
-2
46

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7299
SELECT + col2 FROM tab1 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7299
SELECT + col2 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - + MIN( DISTINCT - col0 ) * + - 42 AS col0 FROM tab2 AS cor0
----
-3150

skipif mysql # not compatible
query I rowsort label-7300
SELECT - + MIN ( DISTINCT - col0 ) * + - 42 AS col0 FROM tab2 AS cor0
----
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT ALL - col2 + + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL - col2 + + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-116
-46
-80

query II rowsort
SELECT DISTINCT col2 AS col2, 22 AS col1 FROM tab1
----
59
22
68
22
96
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT - ( + + SUM( + - ( 25 ) ) ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - ( + + SUM ( + - ( 25 ) ) ) FROM tab0
----
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7307
SELECT ALL col1 * ( - col2 ) AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
query II rowsort label-7307
SELECT ALL col1 * ( - col2 ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL - COUNT( ALL + - col1 ) + + + ( + 33 ) + + COUNT( * ) * - + 50 * 23 FROM tab1 AS cor0
----
-3420

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL - COUNT ( ALL + - col1 ) + + + ( + 33 ) + + COUNT ( * ) * - + 50 * 23 FROM tab1 AS cor0
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL + MIN( ALL - col0 ) AS col1 FROM tab2 cor0 WHERE NOT 89 / + col2 + col0 + + col1 <> col1 + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + MIN ( ALL - col0 ) AS col1 FROM tab2 cor0 WHERE NOT 89 / + col2 + col0 + + col1 <> col1 + 87
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 - - + col0 FROM tab2 AS cor0
----
2162
4160
5700

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <> ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL ) <= - col0 )
----

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

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

query II rowsort
SELECT DISTINCT 9 * - 93 AS col1, 60 AS col0 FROM tab2 AS cor0
----
-837
60

query I rowsort
SELECT ALL + + 35 + + col2 + col2 FROM tab2 AS cor0
----
115
151
81

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

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

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

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

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

query I rowsort
SELECT col0 - - col1 * + - col2 FROM tab1 cor0
----
-1293
-210
-3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( 53 ) col0 FROM tab2 AS cor0
----
-2
14
24

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL - col0 / 32 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT + 15 * - - 47 AS col1 FROM tab2
----
705
705
705

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7328
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7328
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

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

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

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

query I rowsort
SELECT DISTINCT col2 + + - ( col1 ) FROM tab0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + + 40 + - ( - col1 ), - col1 col1 FROM tab2
----
2091
-51
2747
-67
3157
-77

query I rowsort
SELECT ALL - col2 * + 74 AS col2 FROM tab0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7334
SELECT DISTINCT + MIN( DISTINCT - col1 ) DIV + COUNT( * ) + - 90 FROM tab2 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT + MIN ( DISTINCT - col1 ) / + COUNT ( * ) + - 90 FROM tab2 AS cor0
----
-115

query I rowsort
SELECT + + ( - col1 ) * 56 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT - COUNT( * ) + + MAX( + col2 ) * + 81 AS col2 FROM tab2 AS cor0
----
4695

skipif mysql # not compatible
query I rowsort label-7336
SELECT - COUNT ( * ) + + MAX ( + col2 ) * + 81 AS col2 FROM tab2 AS cor0
----
4695

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT ALL col2 DIV col1 * - - 73 * - col2 - - col1 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-43378
-47667
-8113

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL col2 / col1 * - - 73 * - col2 - - col1 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-43378
-47667
-8113

query I rowsort
SELECT + 68 * + - col2 AS col2 FROM tab2 AS cor0
----
-1564
-2720
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 42 * - - 11 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 42 * - - 11 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7342
SELECT ALL + ( + 30 ) - - col0, + col2 + col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
115
NULL
121
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7342
SELECT ALL + ( + 30 ) - - col0, + col2 + col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
115
NULL
121
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 + + + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= + col0 + + - col2 + + - col1
----

query I rowsort
SELECT 16 * - - 18 FROM tab0
----
288
288
288

query II rowsort
SELECT 56 * - + col1 * + col1 * - 29, col1 FROM tab0
----
10655064
81
1624
1
716184
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7347
SELECT ALL - CAST( NULL AS DECIMAL ) + 84 + - COUNT( * ) AS col1 FROM tab1 WHERE NOT - + ( + col2 ) + - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - CAST ( NULL AS REAL ) + 84 + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + ( + col2 ) + - + col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT ALL - col2 DIV - + col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - col2 / - + col2 AS col0 FROM tab0
----
1
1
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT - ( COUNT( * ) ) * 51 AS col1 FROM tab2 WHERE NULL = - 32
----
0

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - ( COUNT ( * ) ) * 51 AS col1 FROM tab2 WHERE NULL = - 32
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 2 IS NOT NULL
----

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

query I rowsort
SELECT col2 * + + 37 * + 86 AS col2 FROM tab0 AS cor0
----
149554
315018
31820

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT SUM( + 76 ) AS col2 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-7357
SELECT SUM ( + 76 ) AS col2 FROM tab2
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

query I rowsort
SELECT - + 39 * - - col2 AS col1 FROM tab1 AS cor0
----
-2301
-2652
-3744

onlyif mysql # DIV for integer division: 
query II rowsort label-7361
SELECT - + 9 DIV + col0 * 46, col0 AS col1 FROM tab2 cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-7361
SELECT - + 9 / + col0 * 46, col0 AS col1 FROM tab2 cor0
----
0
46
0
64
0
75

query I rowsort
SELECT ALL - col1 + - - 15 * - col0 FROM tab2 AS cor0
----
-1037
-1192
-741

query I rowsort
SELECT DISTINCT - 78 + - 59 - + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 + - + col2 + col1 - + 23 + - 80 FROM tab0 AS cor0
----
-113
-150
-202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + + ( - col1 ) col0 FROM tab0 AS cor0
----
-16
-76
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col1 FROM tab2 AS cor0
----
40
40
40

query II rowsort
SELECT ALL - 55, col0 AS col0 FROM tab1 cor0
----
-55
51
-55
85
-55
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + - COUNT( * ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7368
SELECT + - COUNT ( * ) col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT 20 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT - + ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7370
SELECT - + ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT 85 * + MAX( + + 26 ) FROM tab1
----
2210

skipif mysql # not compatible
query I rowsort label-7372
SELECT 85 * + MAX ( + + 26 ) FROM tab1
----
2210

onlyif mysql # DIV for integer division: 
query II rowsort label-7373
SELECT ( - 6 ) * 51 AS col2, - col0 DIV - + col2 + col1 FROM tab1
----
-306
14
-306
48
-306
6

skipif mysql # not compatible
query II rowsort label-7373
SELECT ( - 6 ) * 51 AS col2, - col0 / - + col2 + col1 FROM tab1
----
-306
14
-306
48
-306
6

query I rowsort
SELECT DISTINCT 83 * - + col1 FROM tab2
----
-4233
-5561
-6391

query I rowsort
SELECT 33 * + - 31 AS col2 FROM tab2
----
-1023
-1023
-1023

query I rowsort
SELECT col1 * + col0 * - col0 * + 46 AS col0 FROM tab0
----
-432814
-7311654
-838350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 col2, col2 AS col1 FROM tab1
----
26
59
26
68
26
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7378
SELECT CAST( - - 14 AS SIGNED ) DIV + col1 AS col2, + 65 AS col2 FROM tab2
----
0
65
0
65
0
65

skipif mysql # not compatible
query II rowsort label-7378
SELECT CAST ( - - 14 AS INTEGER ) / + col1 AS col2, + 65 AS col2 FROM tab2
----
0
65
0
65
0
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT - 70, COUNT( * ) col2 FROM tab1 AS cor0
----
-70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7379
SELECT - 70, COUNT ( * ) col2 FROM tab1 AS cor0
----
-70
3

query I rowsort
SELECT DISTINCT 82 * - col2 FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT + 98 + - 2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
96
96
96

query II rowsort
SELECT ALL + col1 AS col0, + col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT 2 * 62 * COUNT( * ) AS col0 FROM tab2
----
372

skipif mysql # not compatible
query I rowsort label-7383
SELECT 2 * 62 * COUNT ( * ) AS col0 FROM tab2
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT DISTINCT - COUNT( * ) + + CAST( + - 75 AS SIGNED ) + - CAST( NULL AS SIGNED ) * + 25 + + 88 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - COUNT ( * ) + + CAST ( + - 75 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + 25 + + 88 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col1, col1 AS col1 FROM tab0 AS cor0 WHERE 84 - + col1 = NULL
----

query I rowsort
SELECT DISTINCT col1 * - 75 AS col1 FROM tab1 AS cor0
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT ALL COUNT( * ) * - 10 AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL COUNT ( * ) * - 10 AS col2 FROM tab2 AS cor0
----
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 13 * + - 97 + - col0 BETWEEN - - 20 AND col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - AVG ( + - 42 ) FROM tab1 WHERE + 27 / - + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7391
SELECT ALL + col1 + + CAST( NULL AS DECIMAL ) FROM tab2 WHERE - col0 IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + col1 + + CAST ( NULL AS REAL ) FROM tab2 WHERE - col0 IN ( col0 )
----

query I rowsort
SELECT ALL ( - + col0 ) * 73 AS col1 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT ALL col2 DIV + - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL col2 / + - col2 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + 63, 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63
89

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7396
SELECT DISTINCT + col0 + col0 * 85 DIV col0 AS col1 FROM tab1
----
136
170
176

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT + col0 + col0 * 85 / col0 AS col1 FROM tab1
----
136
170
176

query I rowsort
SELECT ALL col2 * - 60 AS col2 FROM tab2 AS cor0
----
-1380
-2400
-3480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( + 10 - + + col2, 59 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 22 AS col1 FROM tab1 cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7400
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7400
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7401
SELECT DISTINCT - + col1 col2, - col1 DIV col2 AS col1 FROM tab2 AS cor0
----
-51
-2
-67
-1
-77
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7401
SELECT DISTINCT - + col1 col2, - col1 / col2 AS col1 FROM tab2 AS cor0
----
-51
-2
-67
-1
-77
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 col0, + col0 AS col0 FROM tab1 cor0
----
8
51
8
85
8
91

query II rowsort
SELECT - 27 AS col2, ( col2 ) AS col2 FROM tab1 AS cor0
----
-27
59
-27
68
-27
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT + 13 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 13 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7407
SELECT ALL * FROM tab1 WHERE ( CAST( NULL AS DECIMAL ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-7407
SELECT ALL * FROM tab1 WHERE ( CAST ( NULL AS REAL ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + col1 * + - 12 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + col1 * + - 12 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + 51 AND - + col1 + + col0
----

query I rowsort
SELECT ALL 63 + - col2 AS col1 FROM tab1
----
-33
-5
4

query I rowsort
SELECT ALL 35 AS col0 FROM tab0 WHERE NOT + col1 + - + col2 * col2 BETWEEN + - col0 AND + 75 * + + col2 + - - 1
----
35
35

query I rowsort
SELECT DISTINCT - col2 + col0 * + - col2 * + 10 * - - col0 * - col0 AS col2 FROM tab1
----
127344864
362333691
512428212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT SUM( - CAST( + - col1 AS SIGNED ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7413
SELECT SUM ( - CAST ( + - col1 AS INTEGER ) ) FROM tab1
----
66

query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE col0 > - - col0
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col0 <> - col1
----
51
67
77

query I rowsort
SELECT ALL + col2 * + col1 + + col2 + 35 FROM tab1 cor0
----
1475
3299
389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL col0 + + CAST( NULL AS SIGNED ) - + 54 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) - + 54 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 18 FROM tab1 cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( - col1 ) * + col1 col1 FROM tab0 cor0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT + - 31 * col2 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT + 95 * - COUNT( * ) * ( + 42 ) AS col2 FROM tab1 cor0
----
-11970

skipif mysql # not compatible
query I rowsort label-7421
SELECT + 95 * - COUNT ( * ) * ( + 42 ) AS col2 FROM tab1 cor0
----
-11970

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 / - - ( - col0 ) + + col2 BETWEEN - 5 * - 90 * - 94 + - - ( + + col0 ) + + col1 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT 58 DIV 28 * + col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-7423
SELECT 58 / 28 * + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + + col1 + + - 84 FROM tab1 AS cor0
----
-37
-70
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT DISTINCT - ( - + col1 ) DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - ( - + col1 ) / - col2 AS col1 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7426
SELECT DISTINCT - + col1 + CAST( NULL AS SIGNED ) * - col2, + 87 + 33 col0 FROM tab0 AS cor0
----
NULL
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7426
SELECT DISTINCT - + col1 + CAST ( NULL AS INTEGER ) * - col2, + 87 + 33 col0 FROM tab0 AS cor0
----
NULL
120

query I rowsort
SELECT - 48 * - col1 + 86 AS col1 FROM tab0
----
1094
134
3974

query I rowsort
SELECT DISTINCT col1 + + col2 + + col1 FROM tab0
----
101
209
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT - col0 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT - col0 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE + + col2 + + col1 <> - ( col0 ) + - col2
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + col2 * + col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + col2 * + col0 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7432
SELECT + 40 * CAST( - col0 AS SIGNED ) DIV 96 FROM tab1 AS cor0
----
-21
-35
-37

skipif mysql # not compatible
query I rowsort label-7432
SELECT + 40 * CAST ( - col0 AS INTEGER ) / 96 FROM tab1 AS cor0
----
-21
-35
-37

query I rowsort
SELECT + - 85 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL 70 * + col0 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT - 87 + - - col2 = + 34
----
14
47
5

query II rowsort
SELECT DISTINCT - 36 AS col0, col1 + - + col2 FROM tab0
----
-36
-98
-36
11
-36
34

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
-46
-64
-75

query II rowsort
SELECT + col1 AS col0, - 5 AS col2 FROM tab2
----
51
-5
67
-5
77
-5

query II rowsort
SELECT 37 AS col0, ( - + col1 ) + - 56 FROM tab0
----
37
-137
37
-57
37
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT 43 DIV - - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT 43 / - - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + 47 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT + CAST( col2 AS SIGNED ) - - 18 / + + col1 / col1 AS col1 FROM tab1 cor0 WHERE NOT + 16 * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7442
SELECT + CAST ( col2 AS INTEGER ) - - 18 / + + col1 / col1 AS col1 FROM tab1 cor0 WHERE NOT + 16 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT - COUNT( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7443
SELECT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NULL = + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - COUNT( ALL - + 17 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7445
SELECT - COUNT ( ALL - + 17 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT DISTINCT + COUNT( - 50 ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + COUNT ( - 50 ) FROM tab0, tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + col0 * + - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 + + col1 FROM tab2 cor0
----
28
37
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT DISTINCT col1 * CAST( + + 18 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1206
1386
918

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT col1 * CAST ( + + 18 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1206
1386
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT + col1 * - CAST( - + col1 AS SIGNED ) + - CAST( + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-34
100
2141

skipif mysql # not compatible
query I rowsort label-7451
SELECT + col1 * - CAST ( - + col1 AS INTEGER ) + - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-34
100
2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 * - 90 * col2 * + col1 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT - col2 DIV + - 14 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7454
SELECT - col2 / + - 14 FROM tab2 AS cor0
----
1
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT + 99 DIV + col1 FROM tab1
----
19
2
7

skipif mysql # not compatible
query I rowsort label-7455
SELECT + 99 / + col1 FROM tab1
----
19
2
7

query I rowsort
SELECT DISTINCT + col1 + - - col1 * - + col2 * 94 AS col2 FROM tab1
----
-126322
-27725
-300377

query III rowsort
SELECT * FROM tab1 WHERE col1 * col1 / + col1 * - col2 < NULL
----

query I rowsort
SELECT 47 * + - col1 FROM tab1
----
-2209
-235
-658

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7459
SELECT CAST( NULL AS DECIMAL ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7459
SELECT CAST ( NULL AS REAL ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL 67 + col1 FROM tab1
----
114
72
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + + 41 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT SUM( ALL - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7463
SELECT SUM ( ALL - col0 ) FROM tab2
----
-185

query II rowsort
SELECT ALL - col1 AS col2, col1 + col0 + + 85 FROM tab2
----
-51
182
-67
227
-77
226

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 71
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7466
SELECT DISTINCT + 43 DIV 49 col1, + SUM( - + col1 ) + - 2 + + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7466
SELECT DISTINCT + 43 / 49 col1, + SUM ( - + col1 ) + - 2 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - MAX( DISTINCT + - 48 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7467
SELECT - MAX ( DISTINCT + - 48 ) FROM tab0 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col1 AS col1, + col0 AS col0, 10 + - col2 col1 FROM tab0 AS cor0
----
9 values hashing to ebe927c58f6b0a53c241d25bbb3564b1

onlyif mysql # aggregate syntax: 
query II rowsort label-7469
SELECT + - COUNT( + 39 ) AS col0, MAX( col0 ) AS col2 FROM tab1 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-7469
SELECT + - COUNT ( + 39 ) AS col0, MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
-3
91

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - + MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7471
SELECT - + MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT ( + 75 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + COUNT( * ) * 19 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7473
SELECT + COUNT ( * ) * 19 FROM tab2
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7474
SELECT DISTINCT - 9 * + + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - 9 * + + COUNT ( * ) * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT + COUNT( DISTINCT - 75 ) FROM tab0, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7475
SELECT + COUNT ( DISTINCT - 75 ) FROM tab0, tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col2 <> ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + 40 + 31 + + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 21 + + ( col0 ) - - - 54 AS col1 FROM tab0 AS cor0
----
-60
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT + + COUNT( + ( 2 ) ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN 96 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + + COUNT ( + ( 2 ) ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN 96 AND NULL
----
0

query I rowsort
SELECT - ( ( - - 46 ) ) FROM tab2
----
-46
-46
-46

query II rowsort
SELECT DISTINCT - 74, + col0 FROM tab2
----
-74
46
-74
64
-74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT COUNT( * ) * + 52 - 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
382

skipif mysql # not compatible
query I rowsort label-7482
SELECT COUNT ( * ) * + 52 - 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
382

query I rowsort
SELECT - + 45 * - col0 FROM tab2 cor0
----
2070
2880
3375

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + + 22 - - - ( + + 3 ) col1 FROM tab1 AS cor0
----
1339
1339
1339

onlyif mysql # aggregate syntax: 
query II rowsort label-7486
SELECT DISTINCT COUNT( * ), - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7486
SELECT DISTINCT COUNT ( * ), - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL COUNT( ALL - + col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL COUNT ( ALL - + col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT + col2 - 24 AS col1, + col2 AS col2 FROM tab2
----
-1
23
16
40
34
58

query I rowsort
SELECT ALL - col2 - - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7492
SELECT DISTINCT - 81 + + CAST( + - ( + col0 ) AS SIGNED ) - - ( + + 11 ) - col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - 81 + + CAST ( + - ( + col0 ) AS INTEGER ) - - ( + + 11 ) - col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - ( + 2 ) * - col2 * - 80 * - 74 FROM tab0 AS cor0
----
1172160
118400
556480

query I rowsort
SELECT + 29 * - col2 + + - 27 FROM tab0 AS cor0
----
-1390
-2898
-317

query II rowsort
SELECT ALL + col0 + 54 AS col2, + col1 + - col0 + - - 66 / + col1 * - col0 * - col1 + + col0 FROM tab1 AS cor0 WHERE ( - 22 ) >= 73 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7496
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( + + col0 AS SIGNED ) + + - col0 NOT BETWEEN + col0 AND col0
----

skipif mysql # not compatible
query III rowsort label-7496
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( + + col0 AS INTEGER ) + + - col0 NOT BETWEEN + col0 AND col0
----

query I rowsort
SELECT DISTINCT + 78 * - ( + col0 ) AS col1 FROM tab2
----
-3588
-4992
-5850

query I rowsort
SELECT ALL - 20 / + col2 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + 4 col0 FROM tab0 cor0
----
324
4
84

query I rowsort
SELECT DISTINCT - 83 * 29 FROM tab0 AS cor0
----
-2407

query I rowsort
SELECT ALL - + 5 * - 11 AS col2 FROM tab0 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT DISTINCT + 39 + - MIN( ALL + col0 ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT + 39 + - MIN ( ALL + col0 ) AS col0 FROM tab0
----
24

query I rowsort
SELECT ( 21 ) AS col0 FROM tab1
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + MIN( - + 57 ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-7504
SELECT + MIN ( - + 57 ) FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT - COUNT( 76 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7505
SELECT - COUNT ( 76 ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NOT + ( - col0 ) <= NULL
----

query I rowsort
SELECT col1 + + 94 FROM tab2
----
145
161
171

query I rowsort
SELECT ALL - 61 - col2 FROM tab0
----
-108
-160
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + COUNT( * ) + - COUNT( + 3 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7509
SELECT + COUNT ( * ) + - COUNT ( + 3 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7510
SELECT ALL + col0 * + - col1 * - 27 - - + CAST( 27 AS SIGNED ) DIV + col2 AS col0 FROM tab1 AS cor0
----
11475
115479
19278

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + col0 * + - col1 * - 27 - - + CAST ( 27 AS INTEGER ) / + col2 AS col0 FROM tab1 AS cor0
----
11475
115479
19278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT - ( 54 ) AS col2 FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) < + col2
----

skipif mysql # not compatible
query I rowsort label-7511
SELECT - ( 54 ) AS col2 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) < + col2
----

query I rowsort
SELECT DISTINCT - 39 - + 50 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-2904
-3348
-4788

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7513
SELECT * FROM tab0 AS cor0 WHERE - col2 * col0 <> - CAST( 45 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7513
SELECT * FROM tab0 AS cor0 WHERE - col2 * col0 <> - CAST ( 45 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 33 - + + col1 AS col0 FROM tab0 AS cor0
----
-48
12
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT + COUNT( * ) * + 79, 14 AS col0 FROM tab2 AS cor0
----
237
14

skipif mysql # not compatible
query II rowsort label-7515
SELECT + COUNT ( * ) * + 79, 14 AS col0 FROM tab2 AS cor0
----
237
14

query I rowsort
SELECT col0 - + + 84 AS col0 FROM tab0
----
-69
13
3

query I rowsort
SELECT ALL 40 + + - col1 AS col2 FROM tab0
----
-41
19
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT - MAX( ALL 69 ) FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - MAX ( ALL 69 ) FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----
NULL

query I rowsort
SELECT + col0 - - + 65 AS col0 FROM tab0
----
152
162
80

query I rowsort
SELECT DISTINCT col2 * + col1 * 92 FROM tab0
----
19320
350244
9108

query I rowsort
SELECT ALL col1 + + - col1 * - ( - 70 ) AS col1 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - 86 * + COUNT( * ) col2 FROM tab1
----
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7522
SELECT - 86 * + COUNT ( * ) col2 FROM tab1
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT - COUNT( * ) * + - COUNT( * ) * 28 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-7523
SELECT - COUNT ( * ) * + - COUNT ( * ) * 28 FROM tab0
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) <> col1
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) <> col1
----
0

query II rowsort
SELECT + col0 AS col1, + col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 59 / - col2 IN ( + col2 * - col1, + 22 + + col2 + col1 * - + col2 + + 10 + col0 * + - 33 + - 59 + + - col0 * + 52 )
----

query I rowsort
SELECT DISTINCT - col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT SUM( DISTINCT col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT DISTINCT + MAX( ALL 95 ) FROM tab1 WHERE - col0 + + col2 IS NOT NULL
----
95

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT + MAX ( ALL 95 ) FROM tab1 WHERE - col0 + + col2 IS NOT NULL
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 WHERE - 37 / - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 WHERE - 37 / - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab0 WHERE NOT 57 IS NULL
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT DISTINCT + CAST( MIN( + col1 ) AS SIGNED ) - 6 col1 FROM tab0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7532
SELECT DISTINCT + CAST ( MIN ( + col1 ) AS INTEGER ) - 6 col1 FROM tab0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT - CAST( ( + AVG ( - 16 ) ) AS SIGNED ) - 50 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-7533
SELECT - CAST ( ( + AVG ( - 16 ) ) AS INTEGER ) - 50 FROM tab2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT + col2 - - col0 DIV col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-7534
SELECT + col2 - - col0 / col0 FROM tab1
----
60
69
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab1 WHERE - 49 > col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < + col1 + + 23
----

query I rowsort
SELECT ALL + 75 + - col2 * - ( + ( col2 ) + - 67 ) FROM tab0 WHERE NOT col2 <= col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 - + 16 FROM tab0
----
-15
5
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL MIN( col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL MIN ( col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT 58 - - 61 * - 87 FROM tab2
----
-5249
-5249
-5249

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT SUM( DISTINCT col1 ) * 10 FROM tab1 WHERE col1 NOT IN ( 17 )
----
660

skipif mysql # not compatible
query I rowsort label-7542
SELECT SUM ( DISTINCT col1 ) * 10 FROM tab1 WHERE col1 NOT IN ( 17 )
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT COUNT( + col2 ) - + 42 AS col1 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-7543
SELECT COUNT ( + col2 ) - + 42 AS col1 FROM tab0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7544
SELECT DISTINCT * FROM tab2 WHERE NOT 82 NOT IN ( - 80 + ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7544
SELECT DISTINCT * FROM tab2 WHERE NOT 82 NOT IN ( - 80 + ( CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 49 ) col1 FROM tab1
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT + COUNT( * ) - + COUNT( DISTINCT col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7546
SELECT + COUNT ( * ) - + COUNT ( DISTINCT col1 ) FROM tab0
----
0

query I rowsort
SELECT ALL - 28 * + col2 FROM tab1
----
-1652
-1904
-2688

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7548
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7548
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) BETWEEN col2 AND col2 + + 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 24 * + 23 AS col1 FROM tab0
----
552
552
552

query I rowsort
SELECT ALL 32 * - col0 AS col1 FROM tab2 AS cor0
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT MAX( col0 ) + 21 FROM tab0 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-7552
SELECT MAX ( col0 ) + 21 FROM tab0 AS cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + COUNT( * ) * - COUNT( * ) FROM tab0 cor0 WHERE col2 BETWEEN NULL AND col0 * 97
----
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0 WHERE col2 BETWEEN NULL AND col0 * 97
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 80 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 58 ) NOT IN ( 78 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( + 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 55 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( col2 * + 80 + - 32 / - ( - col1 + + col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 * col0 + + 97 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT ALL - 4 DIV + 9 - - col1 * - col2 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL - 4 / + 9 - - col1 * - col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL - 91 + MAX( ALL col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL - 91 + MAX ( ALL col0 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 44 * - col2 + 37 ) NOT BETWEEN NULL AND 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT DISTINCT - col0 DIV + 61 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - col0 / + 61 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 14 <> NULL
----

query I rowsort
SELECT - 26 * 15 - col1 FROM tab0 AS cor0
----
-391
-411
-471

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - 91 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7566
SELECT - 91 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT - - 57 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7568
SELECT - - 57 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT + CAST( NULL AS SIGNED ) * - 2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT + CAST ( NULL AS INTEGER ) * - 2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0 / 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 73 / 93 + 90 )
----

query I rowsort
SELECT - 0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND 85
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE 48 - - ( col1 + col0 ) * + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / 60 NOT IN ( - col1 + 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT + - 3 + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-3
-3
96

skipif mysql # not compatible
query I rowsort label-7575
SELECT + - 3 + col2 / col1 AS col0 FROM tab0 AS cor0
----
-3
-3
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT - AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT + col0 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT + col0 + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( - 23 * + col1 - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > col1 * 98 - 31
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 70 - + col1 NOT IN ( + 68 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7580
SELECT * FROM tab2 WHERE NOT + CAST( - col1 AS SIGNED ) / + 6 + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7580
SELECT * FROM tab2 WHERE NOT + CAST ( - col1 AS INTEGER ) / + 6 + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7581
SELECT + CAST( - 59 AS SIGNED ) * SUM( ALL + col1 * col2 ) FROM tab1
----
-285265

skipif mysql # not compatible
query I rowsort label-7581
SELECT + CAST ( - 59 AS INTEGER ) * SUM ( ALL + col1 * col2 ) FROM tab1
----
-285265

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + MIN( 17 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7582
SELECT + MIN ( 17 ) FROM tab0
----
17

query I rowsort
SELECT - col1 * + - 52 * + col1 FROM tab1
----
10192
114868
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT MIN( DISTINCT 56 ) AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-7584
SELECT MIN ( DISTINCT 56 ) AS col2 FROM tab0
----
56

query I rowsort
SELECT col2 + col2 FROM tab0 cor0 WHERE NOT 25 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT - MIN( ALL + - 97 ) FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-7586
SELECT - MIN ( ALL + - 97 ) FROM tab2 cor0
----
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN ( ( + col2 ) ) AND ( NULL )
----

query I rowsort
SELECT ALL + - col2 * - - col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE - ( - col2 ) * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / col2 IN ( + 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT ALL 38 * col1 + - ( col2 ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( 49 )
----

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL 38 * col1 + - ( col2 ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( 49 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col0 BETWEEN NULL AND + 50
----
-1
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT col2 DIV - 19 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-7593
SELECT col2 / - 19 FROM tab1 AS cor0
----
-3
-3
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN - col2 + col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT + COUNT( * ) * 43 AS col2 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + COUNT ( * ) * 43 AS col2 FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL < col0 + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL < col0 + col0
----
0

query I rowsort
SELECT DISTINCT - col0 * 11 + - + col2 FROM tab0 AS cor0
----
-1166
-212
-967

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IN ( + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT + 12 + + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-34
-52
-63

skipif mysql # not compatible
query I rowsort label-7599
SELECT + 12 + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-34
-52
-63

query I rowsort
SELECT ALL + 81 * + col0 + + 52 + col1 FROM tab1
----
4197
6942
7470

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 17 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 87 + - - COUNT( * ) + + COUNT( * ) * + 72 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 87 + - - COUNT ( * ) + + COUNT ( * ) * + 72 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 / - - col1 + - 37 * + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * + 99 AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) + - CAST( - 69 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) + - CAST ( - 69 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE col0 + + + 36 >= col2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * - - 87 col0 FROM tab0
----
-4042
-8514
-860

query I rowsort
SELECT ALL + 44 + col0 + + col2 AS col1 FROM tab2
----
113
148
177

query I rowsort
SELECT DISTINCT + 37 FROM tab0 WHERE NOT ( + col2 ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7610
SELECT - 15 * - CAST( + col1 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) = ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-7610
SELECT - 15 * - CAST ( + col1 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE ( col1 ) = ( - col1 )
----

query I rowsort
SELECT + 12 * - - col0 + - col2 AS col0 FROM tab1 AS cor0
----
1024
516
961

query I rowsort
SELECT DISTINCT + 14 + + 94 AS col1 FROM tab1 WHERE NOT ( ( 39 ) <= NULL ) OR NOT ( 71 ) BETWEEN NULL AND 26
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT - 57 DIV 94 + 77 FROM tab0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-7613
SELECT - 57 / 94 + 77 FROM tab0
----
77
77
77

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * - ( - - col1 ) + 12 + + 32 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN + 18 AND ( + col0 )
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7619
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND ( col0 + + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7619
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND ( col0 + + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * col1 ) IS NULL
----

query II rowsort
SELECT DISTINCT col0, col0 * + col2 * col1 + 33 + + col1 * - col2 FROM tab2 AS cor0
----
46
52818
64
194073
75
287597

query II rowsort
SELECT ALL + + 79 AS col0, + col1 AS col0 FROM tab1 AS cor0
----
79
14
79
47
79
5

query II rowsort
SELECT ALL + col1 AS col1, col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7623
SELECT ALL CAST( NULL AS DECIMAL ) * - ( - col0 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL CAST ( NULL AS REAL ) * - ( - col0 ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7624
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7624
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7625
SELECT + COUNT( * ) DIV + 69 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT + COUNT ( * ) / + 69 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT - ( - col1 ) DIV + 86 * col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT - ( - col1 ) / + 86 * col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL + col1 AS col1, 46 AS col2 FROM tab2
----
51
46
67
46
77
46

query I rowsort
SELECT ALL AVG ( - col2 ) FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT 21 * + 27 AS col0 FROM tab0
----
567
567
567

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT MAX( - 31 ) FROM tab1 WHERE NOT ( ( ( + - col1 ) ) IS NULL )
----
-31

skipif mysql # not compatible
query I rowsort label-7630
SELECT MAX ( - 31 ) FROM tab1 WHERE NOT ( ( ( + - col1 ) ) IS NULL )
----
-31

query I rowsort
SELECT ALL + 9 + + col2 AS col0 FROM tab2 WHERE ( NOT ( + col0 * - ( + col0 ) NOT BETWEEN col1 AND ( col0 * col0 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT ALL col0 DIV + - 48 + - col1 FROM tab2 AS cor0
----
-51
-68
-78

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL col0 / + - 48 + - col1 FROM tab2 AS cor0
----
-51
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT 3 * - COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7633
SELECT 3 * - COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - COUNT( 26 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7634
SELECT - COUNT ( 26 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 91 * + col2 AS col0 FROM tab1 WHERE NOT - - col0 / - 78 + + 47 - 88 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 16 * 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT DISTINCT 85 * + col0 * - CAST( + 67 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-495465
-552415
-85425

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT 85 * + col0 * - CAST ( + 67 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-495465
-552415
-85425

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( + col1 * 22 + + 18 + ( col2 ) * col0 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT - + 22 * - - SUM( - col1 ) FROM tab0 AS cor0
----
2266

skipif mysql # not compatible
query I rowsort label-7641
SELECT - + 22 * - - SUM ( - col1 ) FROM tab0 AS cor0
----
2266

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN col1 / - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 38 + + + col0 AS col1 FROM tab2
----
26
37
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 12 * + + col2 - col0 IN ( - 2 + + col2 / col2 + 53 * - col2 )
----

query I rowsort
SELECT ALL - 64 * col1 + + - ( - - col2 ) + - col1 * - - col0 AS col0 FROM tab1
----
-1706
-7353
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT DISTINCT COUNT( * ) - - 17 * + 57 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
972

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT COUNT ( * ) - - 17 * + 57 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
972

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 * + + 23 + - - 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7648
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( + 2 + + CAST( - col2 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-7648
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( + 2 + + CAST ( - col2 AS INTEGER ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT + + 15 * COUNT( * ) + - COUNT( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7649
SELECT DISTINCT + + 15 * COUNT ( * ) + - COUNT ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
42

query II rowsort
SELECT DISTINCT + col1 * - - 40, - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1880
-91
200
-85
560
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7651
SELECT - 40 DIV CAST( CAST( + 21 AS SIGNED ) AS SIGNED ) col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7651
SELECT - 40 / CAST ( CAST ( + 21 AS INTEGER ) AS INTEGER ) col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7652
SELECT ALL + COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT - col1 - + col0 + + - col1 AS col0 FROM tab1
----
-185
-79
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT col2 DIV - - col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-7654
SELECT col2 / - - col1 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT SUM( + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7655
SELECT SUM ( + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7656
SELECT DISTINCT 85 DIV - col2, CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
-1
NULL
-2
NULL
-3
NULL

skipif mysql # not compatible
query II rowsort label-7656
SELECT DISTINCT 85 / - col2, CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
-1
NULL
-2
NULL
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT col2 * - col1 * + - col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE col2 * + 99 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col2 * + 99 * col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * 2 + - col2 IN ( + col1 * col2, col2 * + + col2 )
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT + col0 DIV + 79 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7661
SELECT + col0 / + 79 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < - ( ( + col0 ) ) AND ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL + MAX( col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + MAX ( col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT ( - 79 ) AS col1 FROM tab2
----
-79
-79
-79

query III rowsort
SELECT ALL * FROM tab1 WHERE + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 90 AS col2 FROM tab1 WHERE NOT col1 * 60 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT - COUNT( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7667
SELECT - COUNT ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7668
SELECT DISTINCT - 5 + ( - col2 ) + - col2 - + col1 * + + col1 + ( + col1 ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT - 5 + ( - col2 ) + - col2 - + col1 * + + col1 + ( + col1 ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query II rowsort
SELECT col0, + col2 + ( + - col1 ) FROM tab1
----
51
82
85
54
91
21

query I rowsort
SELECT ALL 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7671
SELECT ALL * FROM tab0 WHERE NOT - 39 > ( + CAST( NULL AS SIGNED ) + - - col0 )
----

skipif mysql # not compatible
query III rowsort label-7671
SELECT ALL * FROM tab0 WHERE NOT - 39 > ( + CAST ( NULL AS INTEGER ) + - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7672
SELECT ALL - + col0 col2, + col0, + + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
9 values hashing to c8beef9b5d95032ecdf18cdd53ed129b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7672
SELECT ALL - + col0 col2, + col0, + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
9 values hashing to c8beef9b5d95032ecdf18cdd53ed129b

query I rowsort
SELECT - col2 * - col2 + 10 * - - col2 + - col0 - + 73 AS col1 FROM tab0 AS cor0
----
10621
2591
40

query I rowsort
SELECT ALL - col1 + - 12 FROM tab2 AS cor0
----
-63
-79
-89

query I rowsort
SELECT DISTINCT - - col0 + - col0 + + - col1 * + col2 * - + ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE 93 = - 37
----

query I rowsort
SELECT - + 89 * + 78 + - col1 FROM tab1 cor0
----
-6947
-6956
-6989

query I rowsort
SELECT DISTINCT + - 56 AS col0 FROM tab0 AS cor0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7678
SELECT - 98 DIV + SUM( DISTINCT + 28 ) + MIN( + 47 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7678
SELECT - 98 / + SUM ( DISTINCT + 28 ) + MIN ( + 47 ) FROM tab1 AS cor0
----
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 38 * ( col0 ) <> NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE NULL = NULL
----

query II rowsort
SELECT DISTINCT + 65, + col2 FROM tab1 AS cor0
----
65
59
65
68
65
96

query I rowsort
SELECT ALL 64 + 52 AS col1 FROM tab2
----
116
116
116

query I rowsort
SELECT DISTINCT - col1 + - col0 + + 9 FROM tab0
----
-87
-89
-99

query I rowsort
SELECT DISTINCT 82 + - col2 AS col1 FROM tab2
----
24
42
59

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT ALL + col0 + + 59 AS col0 FROM tab2
----
105
123
134

query I rowsort
SELECT ALL - col0 * - - col0 - col1 FROM tab1
----
-2615
-7230
-8328

query III rowsort
SELECT * FROM tab0 WHERE - 77 * 4 + ( + 10 ) * + 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT col1 DIV - col1 + - col2 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-7689
SELECT col1 / - col1 + - col2 FROM tab1 AS cor0
----
-60
-69
-97

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7691
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / - col1 + ( - - CAST( - col0 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / - col1 + ( - - CAST ( - col0 AS INTEGER ) ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - COUNT( * ) * - 97 AS col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7693
SELECT - COUNT ( * ) * - 97 AS col2 FROM tab1 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-7694
SELECT + 24 AS col1, COUNT( * ) FROM tab0 AS cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-7694
SELECT + 24 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
24
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT + 6 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT + 6 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT ALL + col0 DIV - - 22 AS col0 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + col0 / - - 22 AS col0 FROM tab2
----
2
2
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 + - 71 NOT IN ( - + 2 )
----

query II rowsort
SELECT ALL - 49 * - 34 AS col2, - col1 FROM tab1
----
1666
-14
1666
-47
1666
-5

query I rowsort
SELECT col0 + - + col2 - + col2 AS col0 FROM tab0 AS cor0
----
-101
-79
67

query I rowsort
SELECT ALL - 1 * + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7701
SELECT CAST( NULL AS SIGNED ) AS col0, col2 - - col1 + col1 FROM tab0
----
NULL
101
NULL
209
NULL
52

skipif mysql # not compatible
query II rowsort label-7701
SELECT CAST ( NULL AS INTEGER ) AS col0, col2 - - col1 + col1 FROM tab0
----
NULL
101
NULL
209
NULL
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7702
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL IS NULL ) ) OR + CAST( + - col1 AS SIGNED ) >= 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7702
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL IS NULL ) ) OR + CAST ( + - col1 AS INTEGER ) >= 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - ( - + col1 ) ) FROM tab1 AS cor0 WHERE - col2 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <= - - col2
----

query II rowsort
SELECT ALL + ( - col1 ) * + col0, col1 AS col1 FROM tab1 cor0
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT col1 * - - col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL + MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL + MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 ) NOT BETWEEN 74 AND NULL
----

query I rowsort
SELECT + col2 - ( + - 23 ) FROM tab0 AS cor0
----
122
33
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 23 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 39 col0 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - 63 + - + col0 FROM tab2 AS cor0
----
-109
-127
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT ALL + CAST( + 82 AS SIGNED ) + col1 AS col2 FROM tab1
----
129
87
96

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + CAST ( + 82 AS INTEGER ) + col1 AS col2 FROM tab1
----
129
87
96

query I rowsort
SELECT DISTINCT + col1 + - col2 + + col0 AS col1 FROM tab0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - COUNT( ALL + col2 ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - COUNT ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7716
SELECT + 35 DIV col0 + col1 + col1 AS col2, - 27 col2 FROM tab1
----
10
-27
28
-27
94
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7716
SELECT + 35 / col0 + col1 + col1 AS col2, - 27 col2 FROM tab1
----
10
-27
28
-27
94
-27

query I rowsort
SELECT ALL - col1 + 69 FROM tab2
----
-8
18
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT + 33 - SUM( + 57 ) * - 1 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT + 33 - SUM ( + 57 ) * - 1 FROM tab1
----
204

query II rowsort
SELECT + 81, - 4 * - 21 * + col2 * + 94 AS col2 FROM tab2
----
81
181608
81
315840
81
457968

query I rowsort
SELECT ( - 64 ) FROM tab1
----
-64
-64
-64

query II rowsort
SELECT - col1 AS col1, col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + col1 - 51 * - - ( + - 19 ) + + col2 AS col1 FROM tab0 AS cor0
----
1000
1069
1097

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( - col0 + ( col0 ) )
----

query I rowsort
SELECT DISTINCT + col0 - + col1 + col0 * + col2 * - - col1 FROM tab0 AS cor0
----
18336
57039
9699

query I rowsort
SELECT ( - - 81 ) FROM tab1 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7726
SELECT 38, ( + COUNT( * ) ) DIV 45 + - CAST( - 76 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
38
76

skipif mysql # not compatible
query II rowsort label-7726
SELECT 38, ( + COUNT ( * ) ) / 45 + - CAST ( - 76 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
38
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT DISTINCT - SUM( ALL + - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - SUM ( ALL + - col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL + SUM( ALL 11 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + SUM ( ALL 11 ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT ( - 58 ) AS col2 FROM tab1
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----
0

query I rowsort
SELECT - ( - + ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT - + ( - col0 ) AS col2, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT MAX( ALL + col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7734
SELECT MAX ( ALL + col1 ) AS col2 FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7735
SELECT ALL - COUNT( ALL - - col2 ), - 2 * - - ( 91 ) * - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3
546

skipif mysql # not compatible
query II rowsort label-7735
SELECT ALL - COUNT ( ALL - - col2 ), - 2 * - - ( 91 ) * - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3
546

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - SUM( DISTINCT + ( - + 28 ) ) col2 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7737
SELECT - SUM ( DISTINCT + ( - + 28 ) ) col2 FROM tab0 AS cor0
----
28

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 52 < NULL
----

query I rowsort
SELECT ALL + col1 * - - col1 AS col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT + CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT + CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT MAX( + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT MAX ( + col0 ) AS col0 FROM tab1
----
91

query II rowsort
SELECT ALL 88 AS col2, - 91 FROM tab0
----
88
-91
88
-91
88
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 AS col1, 27 col1 FROM tab2 AS cor0
----
38
27
38
27
38
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + COUNT( * ) * + + 63 AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7744
SELECT + COUNT ( * ) * + + 63 AS col0 FROM tab0 AS cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 89 * 26 col1 FROM tab0 AS cor0
----
-2314

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL + COUNT( DISTINCT - 82 ) * COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL + COUNT ( DISTINCT - 82 ) * COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - 24 + - COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-7747
SELECT - 24 + - COUNT ( * ) FROM tab2
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7748
SELECT col2 DIV col2 + - col0 * - CAST( + 78 AS SIGNED ) * - col1 DIV + + col1 FROM tab2
----
-3587
-4991
-5849

skipif mysql # not compatible
query I rowsort label-7748
SELECT col2 / col2 + - col0 * - CAST ( + 78 AS INTEGER ) * - col1 / + + col1 FROM tab2
----
-3587
-4991
-5849

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT + COUNT( DISTINCT ( + 88 ) ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT + COUNT ( DISTINCT ( + 88 ) ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 43 * 54 FROM tab1 cor0
----
2322
2322
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT MIN( ALL + - 7 ) * COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7751
SELECT MIN ( ALL + - 7 ) * COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL + MIN( ALL 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL + MIN ( ALL 3 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col0 + - - 42 AS col1 FROM tab0 AS cor0
----
129
139
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT + CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7754
SELECT + CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7755
SELECT DISTINCT - col0 DIV + 49 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - col0 / + 49 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL + MAX( DISTINCT - 56 ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + MAX ( DISTINCT - 56 ) AS col0 FROM tab2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT + col1 DIV + + col0 - ( - col0 ) * col0 + col2 col1 FROM tab2
----
2140
4137
5683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7757
SELECT + col1 / + + col0 - ( - col0 ) * col0 + col2 col1 FROM tab2
----
2140
4137
5683

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 <> + - col2
----

query I rowsort
SELECT ALL col2 * - col2 - - + col2 FROM tab0
----
-2162
-90
-9702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT ALL + - COUNT( * ) DIV - 88 * + ( - 61 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + - COUNT ( * ) / - 88 * + ( - 61 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 83 * + col1 AS col1 FROM tab2 AS cor0
----
4233
5561
6391

query I rowsort
SELECT DISTINCT - + 15 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-15

query I rowsort
SELECT ALL 18 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7764
SELECT + 42 DIV - SUM( DISTINCT col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT + 42 / - SUM ( DISTINCT col2 ) FROM tab2
----
0

query II rowsort
SELECT DISTINCT col0, col2 + + + col1 * + 81 AS col0 FROM tab1
----
51
1230
85
464
91
3875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7766
SELECT 32 * + col0 + col2 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT 32 * + col0 + col2 * + - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 4 * + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-784
-8836

query II rowsort
SELECT DISTINCT col2, + 69 AS col2 FROM tab0 AS cor0
----
10
69
47
69
99
69

query II rowsort
SELECT + col0, 97 FROM tab0 AS cor0
----
15
97
87
97
97
97

query II rowsort
SELECT + 96, + col1 - - 6 AS col0 FROM tab2 AS cor0
----
96
57
96
73
96
83

query II rowsort
SELECT + col2, - ( col0 ) * 59 AS col0 FROM tab1 AS cor0
----
59
-5015
68
-5369
96
-3009

query I rowsort
SELECT DISTINCT 44 FROM tab2 WHERE NOT + col0 IS NULL
----
44

query II rowsort
SELECT DISTINCT col2 * + col2 AS col0, col2 * ( - col0 ) AS col1 FROM tab1
----
3481
-5015
4624
-6188
9216
-4896

query I rowsort
SELECT - col1 + - - col0 AS col0 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - + AVG ( DISTINCT - - col0 ) FROM tab1 AS cor0 WHERE NOT col1 * - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT + + col0 FROM tab1 AS cor0 WHERE col1 * - + 93 + - - 15 * CAST( NULL AS SIGNED ) + - col2 * - col2 NOT BETWEEN NULL AND - ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-7776
SELECT + + col0 FROM tab1 AS cor0 WHERE col1 * - + 93 + - - 15 * CAST ( NULL AS INTEGER ) + - col2 * - col2 NOT BETWEEN NULL AND - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT + COUNT( * ) + 0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7777
SELECT + COUNT ( * ) + 0 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL > NULL )
----

query I rowsort
SELECT DISTINCT - 61 + col2 AS col0 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + 83 * - 16 + + col1 - + 32 AS col2 FROM tab1
----
-1313
-1346
-1355

query I rowsort
SELECT ALL - + col0 + + 60 AS col1 FROM tab2 AS cor0
----
-15
-4
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT col0 - col1 - 95 * - CAST( NULL AS SIGNED ) 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-7782
SELECT col0 - col1 - 95 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - col1 + + col1 )
----

query I rowsort
SELECT + col2 - 18 FROM tab0 cor0
----
-8
29
81

query I rowsort
SELECT DISTINCT + 28 - ( - col2 ) + col0 + - - col1 FROM tab1 AS cor0
----
177
189
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7786
SELECT COUNT( ALL - 30 ) + AVG ( col1 ) * CAST( NULL AS SIGNED ) * - SUM( + + CAST( col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7786
SELECT COUNT ( ALL - 30 ) + AVG ( col1 ) * CAST ( NULL AS INTEGER ) * - SUM ( + + CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7787
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7787
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query II rowsort
SELECT ALL - - 80 AS col0, col0 * - col1 AS col0 FROM tab1 cor0
----
80
-425
80
-4277
80
-714

query I rowsort
SELECT ALL - 91 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT - MIN( - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - MIN ( - col1 ) AS col0 FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT DISTINCT - 2 DIV + + col1 * + + col1 + 79 * + 34 + - col2 FROM tab0
----
2585
2639
2676

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - 2 / + + col1 * + + col1 + 79 * + 34 + - col2 FROM tab0
----
2585
2639
2676

query II rowsort
SELECT ALL + col1 * - col0, + col2 FROM tab0
----
-1215
47
-1827
10
-97
99

query III rowsort
SELECT ALL * FROM tab1 WHERE 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( + 68 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col1 FROM tab2
----
-37

query I rowsort
SELECT DISTINCT - + ( - 93 ) FROM tab1 AS cor0
----
93

query II rowsort
SELECT DISTINCT + 71 AS col2, - col1 FROM tab0 cor0
----
71
-1
71
-21
71
-81

query I rowsort
SELECT ALL 51 AS col2 FROM tab2 cor0
----
51
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT - col1 DIV + - 14 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 IS NULL
----
15
5
50

skipif mysql # not compatible
query I rowsort label-7799
SELECT - col1 / + - 14 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 IS NULL
----
15
5
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col1 FROM tab1 cor0
----
15
15
15

query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT 44 + + col1 AS col0 FROM tab2
----
111
121
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT DISTINCT - + 94 FROM tab1 WHERE + col0 * - col2 - + col1 + - + col2 * - col0 * + + CAST( NULL AS SIGNED ) * - col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - + 94 FROM tab1 WHERE + col0 * - col2 - + col1 + - + col2 * - col0 * + + CAST ( NULL AS INTEGER ) * - col0 < NULL
----

query I rowsort
SELECT ALL + col1 * - - col1 * + col0 * + - col0 AS col2 FROM tab1
----
-180625
-18292729
-509796

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT 71 + + COUNT( * ) col0 FROM tab1
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7805
SELECT DISTINCT 71 + + COUNT ( * ) col0 FROM tab1
----
74

query I rowsort
SELECT col0 * - ( - 84 ) * - + 17 FROM tab1
----
-121380
-129948
-72828

query III rowsort
SELECT * FROM tab2 WHERE + col0 + 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT MIN( DISTINCT col0 ) FROM tab2 AS cor0 WHERE col2 + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT MIN ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE col2 + col2 IS NULL
----
NULL

query I rowsort
SELECT - 93 + + col0 AS col1 FROM tab0 AS cor0
----
-6
-78
4

query I rowsort
SELECT ALL 63 + col2 + 4 AS col0 FROM tab1
----
126
135
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 68 FROM tab1 AS cor0 WHERE NULL IS NULL
----
68
68
68

query I rowsort
SELECT - col0 * - 27 * + col2 FROM tab0 cor0
----
19035
23490
259281

query I rowsort
SELECT ALL - col2 - + col0 + + ( - 66 ) * - col0 AS col0 FROM tab2 cor0
----
2967
4120
4817

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7815
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7815
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS REAL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 93 - - col1 col0 FROM tab1 AS cor0
----
107
140
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) > - - 29
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - COUNT( * ) * + 75 AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-7818
SELECT - COUNT ( * ) * + 75 AS col0 FROM tab1
----
-225

query I rowsort
SELECT DISTINCT + 62 * col1 AS col1 FROM tab2
----
3162
4154
4774

query I rowsort
SELECT - - col2 * 83 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT 63 DIV - col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT 63 / - col2 FROM tab0
----
-1
-6
0

query I rowsort
SELECT + 25 * 55 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7823
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( - + col2 AS SIGNED ) <> col0
----

skipif mysql # not compatible
query III rowsort label-7823
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( - + col2 AS INTEGER ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT + COUNT( ALL + + 81 ) AS col2 FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + COUNT ( ALL + + 81 ) AS col2 FROM tab0 WHERE col1 IS NULL
----
0

query II rowsort
SELECT ALL + col1 AS col2, - col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 92 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + 21 + - 29 + - - 86 * + col1
----

query I rowsort
SELECT + - ( + 50 ) FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT ( - col2 ) DIV - col1 + - 97 FROM tab2 cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-7829
SELECT ( - col2 ) / - col1 + - 97 FROM tab2 cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT + COUNT( * ) * - 53 * 37 FROM tab0 AS cor0
----
-5883

skipif mysql # not compatible
query I rowsort label-7830
SELECT + COUNT ( * ) * - 53 * 37 FROM tab0 AS cor0
----
-5883

query I rowsort
SELECT 74 FROM tab1 cor0 WHERE NULL IS NULL
----
74
74
74

query I rowsort
SELECT - ( - - 11 ) FROM tab1 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col1 FROM tab1 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 24 + + - 43 - 59 * - 19 * + 9 + + + 65 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE + + 22 NOT BETWEEN col2 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT 85 + - 90 + - + col2 FROM tab1
----
-101
-64
-73

query I rowsort
SELECT DISTINCT + col2 + - 41 + - col0 * + col1 + + ( - col0 ) FROM tab0
----
-1224
-136
-1945

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + 54 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + 54 FROM tab2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7839
SELECT ( + - 47 ) + 87 + - - 43 * + col0 DIV - + col0 + - ( - col1 ) AS col0 FROM tab0
----
-2
18
78

skipif mysql # not compatible
query I rowsort label-7839
SELECT ( + - 47 ) + 87 + - - 43 * + col0 / - + col0 + - ( - col1 ) AS col0 FROM tab0
----
-2
18
78

query I rowsort
SELECT ALL + 24 FROM tab0, tab0 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - col1 + col0 * - 32 FROM tab0 AS cor0
----
-2805
-3105
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT MAX( DISTINCT 56 ) - - ( + COUNT( * ) ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT MAX ( DISTINCT 56 ) - - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT + + MIN( + - col1 ) col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7843
SELECT + + MIN ( + - col1 ) col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - + col0 - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT - - CAST( 67 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-7845
SELECT - - CAST ( 67 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
67
67
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + col2
----

query II rowsort
SELECT DISTINCT + col0 * + col1 AS col0, col2 FROM tab1 AS cor0
----
425
59
4277
68
714
96

query I rowsort
SELECT - AVG ( ALL + col2 ) FROM tab0 cor0 WHERE NOT NULL BETWEEN + ( - + col0 ) AND col1
----
NULL

query I rowsort
SELECT + 91 AS col1 FROM tab0 WHERE NOT - 11 * - col2 + col0 IS NOT NULL
----

query II rowsort
SELECT ALL col2 * col0 AS col2, + col1 * 93 * 53 * - 39 FROM tab1
----
4896
-2691234
5015
-961155
6188
-9034857

query I rowsort
SELECT + 39 * - 43 AS col2 FROM tab1
----
-1677
-1677
-1677

query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT DISTINCT + - 10 * COUNT( * ) col2, 5 col1 FROM tab1 AS cor0
----
-30
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7854
SELECT DISTINCT + - 10 * COUNT ( * ) col2, 5 col1 FROM tab1 AS cor0
----
-30
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7855
SELECT ALL - - 19 * - - col2, CAST( + + 77 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1881
77
190
77
893
77

skipif mysql # not compatible
query II rowsort label-7855
SELECT ALL - - 19 * - - col2, CAST ( + + 77 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1881
77
190
77
893
77

query I rowsort
SELECT ALL col0 + - ( + col0 ) FROM tab1 AS cor0 WHERE NOT + 90 IN ( - - ( - + col1 ) )
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + 30 * - col1 * - - col2 FROM tab0
----
-114210
-2970
-6300

query II rowsort
SELECT - col0, 46 AS col1 FROM tab1
----
-51
46
-85
46
-91
46

query I rowsort
SELECT ALL + col0 + - - 82 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE ( + ( + 33 ) ) * + 57 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * + col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT ALL - CAST( + 90 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND - + col2 + + 65
----

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - CAST ( + 90 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND - + col2 + + 65
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN col0 AND - col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 4 + 2 + - col1 AS col1 FROM tab2 AS cor0
----
-45
-61
-71

query II rowsort
SELECT + col1 AS col2, col0 * col1 AS col1 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab1 WHERE NULL IS NULL
----
90

query III rowsort
SELECT * FROM tab1 WHERE - ( + 57 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7870
SELECT 65 DIV - COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-7870
SELECT 65 / - COUNT ( * ) FROM tab1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7871
SELECT ALL - CAST( + + MIN( ALL - 93 ) AS SIGNED ) + + COUNT( * ) + + + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - CAST ( + + MIN ( ALL - 93 ) AS INTEGER ) + + COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT ALL + 32 * + col0 / - + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL + 32 * + col0 / - + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + col1 * + + 44 AS col2 FROM tab0
----
3564
44
924

query I rowsort
SELECT ALL 64 + - col2 AS col1 FROM tab0
----
-35
17
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7875
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 + + col0 + + ( col0 ) AS col1 FROM tab0
----
184
293
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT + MIN( col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7877
SELECT + MIN ( col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT col2 - col1 * + 22 + - col0 FROM tab1 AS cor0
----
-1057
-136
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT + 84 + COUNT( * ) + ( COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-7879
SELECT + 84 + COUNT ( * ) + ( COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + ( - + COUNT( col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7880
SELECT + ( - + COUNT ( col0 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL + 40 FROM tab1 AS cor0 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7882
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - col2 + col1 AND col1 / col0
----

skipif mysql # not compatible
query III rowsort label-7882
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - col2 + col1 AND col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + SUM( DISTINCT col0 ) * + ( 46 ) AS col0 FROM tab0 AS cor0
----
9154

skipif mysql # not compatible
query I rowsort label-7883
SELECT + SUM ( DISTINCT col0 ) * + ( 46 ) AS col0 FROM tab0 AS cor0
----
9154

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ALL + - 47 * COUNT( * ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + - 47 * COUNT ( * ) FROM tab0 AS cor0
----
-141

query I rowsort
SELECT DISTINCT + + col1 * + 27 FROM tab2 AS cor0
----
1377
1809
2079

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - col0 / + + 52 * + col1 / - ( col1 )
----

query I rowsort
SELECT ALL col1 * + 36 FROM tab1
----
1692
180
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT + SUM( DISTINCT + - col0 ) AS col1 FROM tab2 WHERE NOT - 50 IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT + SUM ( DISTINCT + - col0 ) AS col1 FROM tab2 WHERE NOT - 50 IS NULL
----
-185

query II rowsort
SELECT ALL col1 AS col1, + col1 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT DISTINCT col0, - col1 + + ( + - col2 ) FROM tab2
----
46
-74
64
-117
75
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + COUNT( col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + COUNT ( col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT 31 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 + 78 FROM tab0 AS cor0
----
1
77
21
57
81
-3

query II rowsort
SELECT + - col1 AS col0, 71 AS col1 FROM tab0 AS cor0
----
-1
71
-21
71
-81
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT MIN( ALL + 26 ) + + 26 AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7895
SELECT MIN ( ALL + 26 ) + + 26 AS col1 FROM tab0 AS cor0
----
52

query III rowsort
SELECT * FROM tab1 WHERE NULL > 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7897
SELECT + col2 AS col0 FROM tab0 cor0 WHERE ( - CAST( - col2 AS SIGNED ) ) >= + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7897
SELECT + col2 AS col0 FROM tab0 cor0 WHERE ( - CAST ( - col2 AS INTEGER ) ) >= + col1 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + col2 * + + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT + - col1 / - 72 * + - col1 + + - CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT + - col1 / - 72 * + - col1 + + - CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( col2 ) * - 52 + - col1 FROM tab0 AS cor0
----
2363
499
5147

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT - - 78 DIV + 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT - - 78 / + 84 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 41 AS col0 FROM tab0 AS cor0
----
-3567
-3977
-615

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL - col0 DIV - col2 + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - col0 / - col2 + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT ALL + 88 DIV col2 AS col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + 88 / col2 AS col1 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7907
SELECT DISTINCT 6 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT 6 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 91 + + 35 AS col1 FROM tab1 AS cor0
----
126
126
126

query III rowsort
SELECT * FROM tab0 WHERE NULL > - + col1
----

query I rowsort
SELECT DISTINCT - col2 * - 17 + col1 * + 54 FROM tab1
----
1273
2388
3694

query I rowsort
SELECT ALL 17 * - col1 + + col1 + + col0 + + 7 FROM tab1
----
-166
-654
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT + + MAX( + - 44 ) * SUM( + - col1 ) AS col1 FROM tab1 AS cor0
----
2904

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + + MAX ( + - 44 ) * SUM ( + - col1 ) AS col1 FROM tab1 AS cor0
----
2904

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT ALL col2 DIV col1 * col1 AS col2 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL col2 / col1 * col1 AS col2 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT ALL + + 56 DIV - ( + - col0 ) FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + + 56 / - ( + - col0 ) FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + col2 - + - 3 FROM tab1 AS cor0
----
62
71
99

query II rowsort
SELECT col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT col2 * - - CAST( NULL AS SIGNED ) / + - col2 + - col2 + - col0 FROM tab0 AS cor0 WHERE + col0 BETWEEN - ( col2 ) + - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7919
SELECT col2 * - - CAST ( NULL AS INTEGER ) / + - col2 + - col2 + - col0 FROM tab0 AS cor0 WHERE + col0 BETWEEN - ( col2 ) + - - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 col2, col2 AS col0 FROM tab1 WHERE NOT - - col2 IS NULL
----
-45
59
-45
68
-45
96

query I rowsort
SELECT - + ( 21 ) AS col1 FROM tab0 WHERE NOT ( ( col1 ) > ( NULL ) )
----

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - - 0 + 3 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NULL <> 45
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NULL <> 45
----
0

query I rowsort
SELECT ALL + ( - + 40 ) FROM tab2 AS cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 56 * col0 - + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 73 * - 97 * - 87 AND + col2 AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 4 col2 FROM tab0
----
-348
-388
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL MAX( ALL 45 ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL MAX ( ALL 45 ) AS col0 FROM tab1
----
45

query I rowsort
SELECT - ( + 99 ) FROM tab2
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT + - 55 DIV - - col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7932
SELECT + - 55 / - - col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT + SUM( DISTINCT + ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7933
SELECT + SUM ( DISTINCT + ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT - 79 + col1 AS col1 FROM tab0 AS cor0
----
-58
-78
2

query II rowsort
SELECT 25 + + col0 AS col1, + 9 FROM tab2 AS cor0
----
100
9
71
9
89
9

query II rowsort
SELECT ALL + ( - 97 ) AS col1, - 62 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 col1 FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT - COUNT( * ), COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 + - + col0 IS NOT NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-7938
SELECT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 + - + col0 IS NOT NULL
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT DISTINCT - CAST( - - 13 AS SIGNED ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - CAST ( - - 13 AS INTEGER ) FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - 24 * + ( - 88 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - 24 * + ( - 88 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7941
SELECT ALL + 85 + - - COUNT( * ) AS col0, - 90 FROM tab2
----
88
-90

skipif mysql # not compatible
query II rowsort label-7941
SELECT ALL + 85 + - - COUNT ( * ) AS col0, - 90 FROM tab2
----
88
-90

query I rowsort
SELECT 54 - + col0 AS col0 FROM tab0
----
-33
-43
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL col1 * - 12 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL col1 * - 12 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL BETWEEN - col2 AND + ( - 63 ) )
----

query I rowsort
SELECT ALL - 58 - col0 AS col0 FROM tab1
----
-109
-143
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT + COUNT( * ) FROM tab2 WHERE NULL BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN NULL AND col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL + CAST( + - col1 AS SIGNED ) + + 73 FROM tab1
----
26
59
68

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + CAST ( + - col1 AS INTEGER ) + + 73 FROM tab1
----
26
59
68

query I rowsort
SELECT DISTINCT + - col2 - 52 AS col0 FROM tab0 cor0
----
-151
-62
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7949
SELECT DISTINCT col2 DIV col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT col2 / col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col0 * + col0 - + + col0 AS col2 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - ( - 80 ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 * + ( + - 12 ) / - ( - col2 ) * - col0 IS NULL
----
-240

skipif mysql # not compatible
query I rowsort label-7951
SELECT - ( - 80 ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 * + ( + - 12 ) / - ( - col2 ) * - col0 IS NULL
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7952
SELECT ALL - - 85 DIV ( - MAX( DISTINCT 66 ) ) col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7952
SELECT ALL - - 85 / ( - MAX ( DISTINCT 66 ) ) col2 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7953
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( 7 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7953
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( 7 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > - ( - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * - + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT - ( + CAST( NULL AS SIGNED ) ) * + 94 FROM tab2 cor0 WHERE NOT + 75 * + - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + 94 FROM tab2 cor0 WHERE NOT + 75 * + - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT DISTINCT - - MIN( ALL col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT - - MIN ( ALL col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + 95 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 4 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7960
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( - + col1 AS DECIMAL ) NOT BETWEEN col2 - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7960
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( - + col1 AS REAL ) NOT BETWEEN col2 - col2 AND NULL
----

query I rowsort
SELECT + ( + + 6 ) AS col2 FROM tab0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7962
SELECT ALL COUNT( * ) DIV + - CAST( + COUNT( ALL + ( col2 ) ) AS SIGNED ) + + 84 AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL COUNT ( * ) / + - CAST ( + COUNT ( ALL + ( col2 ) ) AS INTEGER ) + + 84 AS col1 FROM tab1
----
83

query II rowsort
SELECT DISTINCT ( + 93 ), col1 AS col0 FROM tab0
----
93
1
93
21
93
81

query II rowsort
SELECT + col2 + col2, - col1 * + + 77 AS col0 FROM tab0 AS cor0
----
198
-77
20
-1617
94
-6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7965
SELECT DISTINCT - CAST( - MAX( ALL + - col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - CAST ( - MAX ( ALL + - col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT COUNT( * ) + + - ( 95 ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7966
SELECT COUNT ( * ) + + - ( 95 ) FROM tab0 AS cor0
----
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( col2 )
----

query II rowsort
SELECT col0 AS col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL - MAX( DISTINCT + 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - MAX ( DISTINCT + 45 ) FROM tab1
----
-45

query I rowsort
SELECT - 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND col0 * 96 * - + 33
----

query I rowsort
SELECT - + 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 11 + - col2 IS NULL
----

query II rowsort
SELECT DISTINCT + + col1 - - 30 + col2, 50 AS col1 FROM tab0 AS cor0
----
130
50
158
50
61
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT + 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-7976
SELECT DISTINCT + COUNT ( - + col2 ) col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - col0, + col2 + 87 AS col0 FROM tab2 AS cor0
----
-46
110
-64
127
-75
145

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col1 + + 75 AS col1 FROM tab2 cor0
----
126
142
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + COUNT( * ) + - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7980
SELECT + COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col0 + - - col2 * - - col2 FROM tab2 WHERE col0 >= - col2
----
1664
3439
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT DISTINCT + col1 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + col1 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 + - - 98 * - col1 AS col2 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT - COUNT( * ) * - MIN( DISTINCT - col2 ) + + 38 FROM tab1
----
-250

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - COUNT ( * ) * - MIN ( DISTINCT - col2 ) + + 38 FROM tab1
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT + 62 * - COUNT( * ) AS col2 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + 62 * - COUNT ( * ) AS col2 FROM tab0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT - ( + MAX( DISTINCT + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT - ( + MAX ( DISTINCT + col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT 16 * MIN( ALL + ( + + col2 ) ) FROM tab2 AS cor0
----
368

skipif mysql # not compatible
query I rowsort label-7989
SELECT 16 * MIN ( ALL + ( + + col2 ) ) FROM tab2 AS cor0
----
368

query I rowsort
SELECT DISTINCT col0 * - 1 AS col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT ALL 59 DIV + col1 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL 59 / + col1 FROM tab1
----
1
11
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7992
SELECT col0 + - CAST( NULL AS SIGNED ) AS col0, 68 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7992
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col0, 68 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT 71 * COUNT( ALL - col2 ) AS col2 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-7993
SELECT 71 * COUNT ( ALL - col2 ) AS col2 FROM tab0
----
213

query I rowsort
SELECT ALL ( 38 ) FROM tab2
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL - COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL - COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT - 56 * + COUNT( * ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7996
SELECT - 56 * + COUNT ( * ) FROM tab1 AS cor0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL - SUM( + 57 ) * - MIN( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - SUM ( + 57 ) * - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 + - col0 + + - col2 * - 78 col2 FROM tab1 AS cor0
----
4583
5279
7503

query II rowsort
SELECT DISTINCT 97, - 68 * + col1 * + 0 AS col2 FROM tab0
----
97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 49 AS col1, col2 col0 FROM tab2 WHERE NOT - col2 BETWEEN NULL AND col0 - + col2
----

query I rowsort
SELECT - 60 * 77 AS col2 FROM tab2
----
-4620
-4620
-4620

query II rowsort
SELECT - col2, 65 AS col1 FROM tab1
----
-59
65
-68
65
-96
65

query I rowsort
SELECT + 78 * col0 FROM tab2
----
3588
4992
5850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 29 + col0 * - col0 * - 67 + col1 col2 FROM tab2
----
141840
274544
376988

query I rowsort
SELECT DISTINCT + 29 + + ( - 55 ) + - 66 FROM tab2
----
-92

query I rowsort
SELECT ALL + ( 75 ) FROM tab1
----
75
75
75

query II rowsort
SELECT ALL + col0 AS col1, + 12 * 44 + + - col2 FROM tab0 AS cor0
----
15
481
87
518
97
429

query III rowsort
SELECT * FROM tab2 cor0 WHERE 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + - col1 col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT col0 * 79 AS col1 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( 67 )
----

query I rowsort
SELECT DISTINCT 8 / + col2 FROM tab2 WHERE ( - 35 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT ALL col2 + - CAST( 47 AS SIGNED ) AS col0 FROM tab1
----
12
21
49

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL col2 + - CAST ( 47 AS INTEGER ) AS col0 FROM tab1
----
12
21
49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 82 * - col0 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL COUNT( * ) * 50 col1 FROM tab1
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8015
SELECT ALL COUNT ( * ) * 50 col1 FROM tab1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT COUNT( * ) FROM tab2 WHERE - 4 IN ( 30 + col2 * - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT COUNT ( * ) FROM tab2 WHERE - 4 IN ( 30 + col2 * - 16 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL + ( + 18 ) * - ( + COUNT( * ) ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + ( + 18 ) * - ( + COUNT ( * ) ) FROM tab0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 14 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col0 / col2 <= + col2 * + col2 - ( + col0 + col1 )
----

query I rowsort
SELECT ALL 52 / col1 + - col1 FROM tab2 WHERE NOT 21 * col1 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
46
64
75

query I rowsort
SELECT + ( - col2 ) + 66 AS col2 FROM tab2
----
26
43
8

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col2 + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT ALL + 24 DIV 47 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + 24 / 47 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN + col1 AND - col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 27 FROM tab2 WHERE ( NULL ) NOT IN ( 76 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8028
SELECT + CAST( - col0 AS DECIMAL ) FROM tab0 WHERE NOT 87 * col2 + - col0 NOT IN ( ( - col2 ) * - col0 + - 79 * + 96 )
----

skipif mysql # not compatible
query I rowsort label-8028
SELECT + CAST ( - col0 AS REAL ) FROM tab0 WHERE NOT 87 * col2 + - col0 NOT IN ( ( - col2 ) * - col0 + - 79 * + 96 )
----

query I rowsort
SELECT ALL + 72 + - 8 AS col2 FROM tab2
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL - COUNT( * ) * 67 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - COUNT ( * ) * 67 FROM tab1
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT ALL 32 * + 19 + - COUNT( * ) AS col2 FROM tab0
----
605

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL 32 * + 19 + - COUNT ( * ) AS col2 FROM tab0
----
605

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - MAX( ALL - ( col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8032
SELECT - MAX ( ALL - ( col0 ) ) AS col1 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col1 ) ) NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > 54 * - col0 + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 20 NOT IN ( - 44 * 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT COUNT( ( col2 ) ) * - MIN( DISTINCT col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8036
SELECT COUNT ( ( col2 ) ) * - MIN ( DISTINCT col1 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT - ( COUNT( 95 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - ( COUNT ( 95 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8038
SELECT - COUNT( * ) + - COUNT( * ) DIV - 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8038
SELECT - COUNT ( * ) + - COUNT ( * ) / - 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + COUNT( * ) - 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-82

skipif mysql # not compatible
query I rowsort label-8039
SELECT + COUNT ( * ) - 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-82

query I rowsort
SELECT DISTINCT 58 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
58

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * 7 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT 89 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT 89 NOT IN ( col1 )
----
0

query I rowsort
SELECT DISTINCT col1 - 98 FROM tab0 AS cor0 WHERE ( + 51 + + col0 ) >= col2
----
-17
-77
-97

query I rowsort
SELECT + 25 * ( - col1 + + 94 * 69 ) FROM tab2 AS cor0
----
160225
160475
160875

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <= 65
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT + + 88 DIV - 60 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8046
SELECT + + 88 / - 60 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 71 = - 25 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8048
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * + 50 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8050
SELECT DISTINCT + col2 + - CAST( - col2 + col2 AS SIGNED ) DIV 7 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + col2 + - CAST ( - col2 + col2 AS INTEGER ) / 7 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( - col1 ) * - 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ( COUNT( * ) ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8052
SELECT ( COUNT ( * ) ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT DISTINCT 68 DIV + - 18 + 48 * col0 FROM tab2
----
2205
3069
3597

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT 68 / + - 18 + 48 * col0 FROM tab2
----
2205
3069
3597

query I rowsort
SELECT ALL + col2 + 50 AS col1 FROM tab1
----
109
118
146

query I rowsort
SELECT col1 * - 17 + 88 AS col0 FROM tab2
----
-1051
-1221
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT + SUM( ALL - + col1 ) + + COUNT( ALL + col0 - + col1 ) col1 FROM tab1
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8056
SELECT DISTINCT + SUM ( ALL - + col1 ) + + COUNT ( ALL + col0 - + col1 ) col1 FROM tab1
----
-63

query I rowsort
SELECT - col1 + - 47 FROM tab0 WHERE - 36 * + col0 + col2 IS NULL
----

query I rowsort
SELECT ALL + col1 + + col0 + col1 AS col2 FROM tab0
----
129
177
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 85 AS col1 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT + 72 + COUNT( * ) FROM tab2 WHERE NOT + col0 IN ( col2 )
----
75

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + 72 + COUNT ( * ) FROM tab2 WHERE NOT + col0 IN ( col2 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL ( - COUNT( * ) ) + - 82 AS col0 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL ( - COUNT ( * ) ) + - 82 AS col0 FROM tab0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 82 * 93 col1 FROM tab2 WHERE NOT - 81 >= 6 * - col1 + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT 34 + - COUNT( * ) FROM tab0 cor0
----
31

skipif mysql # not compatible
query I rowsort label-8064
SELECT 34 + - COUNT ( * ) FROM tab0 cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT 85 DIV + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8066
SELECT 85 / + col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT - + COUNT( * ) * + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - + COUNT ( * ) * + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN - 51 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT COUNT( * ) * - MIN( - col0 ) + + 96 col0 FROM tab1
----
369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8069
SELECT DISTINCT COUNT ( * ) * - MIN ( - col0 ) + + 96 col0 FROM tab1
----
369

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + + col0 * col1 - - 36 AND col1
----

query I rowsort
SELECT ALL col1 - - 65 * col0 - 10 FROM tab2 AS cor0
----
3031
4227
4932

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8072
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 * 44 NOT BETWEEN ( + ( + col1 ) ) AND CAST( + col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8072
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 * 44 NOT BETWEEN ( + ( + col1 ) ) AND CAST ( + col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 NOT IN ( - col0 )
----

query II rowsort
SELECT - col1 AS col1, 64 * - 68 FROM tab1 cor0
----
-14
-4352
-47
-4352
-5
-4352

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT + MAX( ALL 99 ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + MAX ( ALL 99 ) AS col1 FROM tab2
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT - CAST( - - col1 AS SIGNED ) * + - col2 + + col0 * 68 AS col2 FROM tab1
----
4812
6075
9384

skipif mysql # not compatible
query I rowsort label-8077
SELECT - CAST ( - - col1 AS INTEGER ) * + - col2 + + col0 * 68 AS col2 FROM tab1
----
4812
6075
9384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - col2 * + - 8 AS col2 FROM tab0
----
376
792
80

query I rowsort
SELECT ALL 75 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( + - ( + col1 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( + - ( + col1 ) ) IS NOT NULL
----
0

query I rowsort
SELECT ( + 5 ) * - 16 * - + col1 + + col2 FROM tab1
----
1216
3828
459

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT col1 DIV col1 * - col0 + 54 + - col2 + 52 AS col0 FROM tab2 AS cor0
----
-27
2
37

skipif mysql # not compatible
query I rowsort label-8083
SELECT col1 / col1 * - col0 + 54 + - col2 + 52 AS col0 FROM tab2 AS cor0
----
-27
2
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT DISTINCT CAST( NULL AS SIGNED ) + 9 FROM tab0 AS cor0 WHERE + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 9 FROM tab0 AS cor0 WHERE + col1 <= NULL
----

query I rowsort
SELECT 52 + 72 AS col1 FROM tab1 AS cor0
----
124
124
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 71 col0 FROM tab1 AS cor0
----
3621
6035
6461

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8087
SELECT DISTINCT CAST( - - col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col1 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT CAST ( - - col0 AS REAL ) FROM tab0 AS cor0 WHERE NOT col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - col2 - + col2 * - col2 * col0 col0 FROM tab1 AS cor0
----
295858
420748
469952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8089
SELECT ALL - - COUNT( * ) DIV - 91 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - - COUNT ( * ) / - 91 FROM tab2 cor0
----
0

query II rowsort
SELECT - 91 AS col2, 17 AS col0 FROM tab0 AS cor0
----
-91
17
-91
17
-91
17

query I rowsort
SELECT DISTINCT - 2 + + 5 FROM tab2
----
3

query II rowsort
SELECT - 10 AS col0, 54 - - 28 AS col0 FROM tab0
----
-10
82
-10
82
-10
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col0 + 49 )
----

query I rowsort
SELECT DISTINCT + ( - 90 ) + + 35 AS col0 FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8095
SELECT - col2 col2, CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8095
SELECT - col2 col2, CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL COUNT( * ) * 38 FROM tab0 AS cor0 WHERE NULL IS NULL
----
114

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL COUNT ( * ) * 38 FROM tab0 AS cor0 WHERE NULL IS NULL
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT - MAX( 84 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> 93 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT - MAX ( 84 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> 93 + - col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) + + col0 + + + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + col2 * + 87 + ( - col0 ) - - - col1 FROM tab1
----
-302937
-402426
-801857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT - col2 * 69 * + CAST( NULL AS SIGNED ) + - + col1 * + + ( - 50 ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT - col2 * 69 * + CAST ( NULL AS INTEGER ) + - + col1 * + + ( - 50 ) * col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8101
SELECT DISTINCT CAST( + 27 AS SIGNED ) DIV + + col2 * - - ( - - col0 ) DIV col0 FROM tab2 WHERE NULL IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT CAST ( + 27 AS INTEGER ) / + + col2 * - - ( - - col0 ) / col0 FROM tab2 WHERE NULL IS NULL
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 21 * + + CAST( + 49 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 21 * + + CAST ( + 49 AS INTEGER ) IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 96 * + 16 + + col2 + ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 64 + - col0, - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - COUNT( ALL ( + col1 ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8105
SELECT - COUNT ( ALL ( + col1 ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - + 99 * - COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8106
SELECT - + 99 * - COUNT ( * ) FROM tab0 AS cor0
----
297

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT - col1 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT - MAX( col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8108
SELECT - MAX ( col2 ) AS col0 FROM tab0
----
-99

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col0 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - + col2 - - - col0 FROM tab2 WHERE NOT + col1 <> + - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT DISTINCT - AVG ( DISTINCT + col1 ) FROM tab2 WHERE - ( - - CAST( NULL AS SIGNED ) ) BETWEEN col2 AND ( col2 + col1 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT - AVG ( DISTINCT + col1 ) FROM tab2 WHERE - ( - - CAST ( NULL AS INTEGER ) ) BETWEEN col2 AND ( col2 + col1 + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2
----
3
3

query II rowsort
SELECT DISTINCT + 12 AS col0, 32 * + - 87 FROM tab2 AS cor0
----
12
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL + + 87 + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) > - col1
----
87

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + + 87 + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) > - col1
----
87

query II rowsort
SELECT + - col2, - col1 * + 67 AS col1 FROM tab1 AS cor0
----
-59
-335
-68
-3149
-96
-938

query I rowsort
SELECT DISTINCT - col2 + - col0 * col2 AS col1 FROM tab0 WHERE NOT ( col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + 24 * + SUM( ALL - col0 ) FROM tab1
----
-5448

skipif mysql # not compatible
query I rowsort label-8117
SELECT + 24 * + SUM ( ALL - col0 ) FROM tab1
----
-5448

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 45 >= - - 75 * - col0 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / + + 55 col0 FROM tab2 WHERE NOT NULL >= + + 41 + + col0
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + 14 AND 29
----

query I rowsort
SELECT DISTINCT + - col0 * - - col0 * - col1 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT ALL + + 55 FROM tab1 cor0
----
55
55
55

query II rowsort
SELECT - col2 * - col2, - 82 * + col1 AS col1 FROM tab2 AS cor0
----
1600
-6314
3364
-5494
529
-4182

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * + - col1 NOT IN ( + col2, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8125
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - col0 + - col1 + - col0 FROM tab2 AS cor0
----
-2443
-5069
-5167

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col0 + - col1 + - col0 FROM tab2 AS cor0
----
-2443
-5069
-5167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT ALL CAST( col1 AS SIGNED ) + + 86 AS col0 FROM tab2
----
137
153
163

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL CAST ( col1 AS INTEGER ) + + 86 AS col0 FROM tab2
----
137
153
163

query I rowsort
SELECT DISTINCT 76 + col2 FROM tab0
----
123
175
86

query I rowsort
SELECT - col1 + - - col1 - - col1 - - + 73 * ( - col0 ) + + col2 * + col0 * + col2 AS col1 FROM tab2
----
21027
246892
97805

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 + - 65 + col2 + 61 * 95 ) BETWEEN col0 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8130
SELECT - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0, 78 AS col1 FROM tab2 cor0
----
46
78
64
78
75
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT - 15 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT - 15 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - - col0 - - 78 * + ( + + col1 ) FROM tab2 AS cor0
----
10102
10851
6094

query I rowsort
SELECT DISTINCT + 57 + + - ( - col1 ) AS col2 FROM tab1
----
104
62
71

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( + 87 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col0 NOT IN ( + 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 95 AS col2, - 11 AS col2 FROM tab1 AS cor0
----
95
-11
95
-11
95
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT - SUM( DISTINCT - ( + + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8139
SELECT - SUM ( DISTINCT - ( + + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8141
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT ALL - col1 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - col1 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 15 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
-15
-46
-15
-64
-15
-75

query I rowsort
SELECT ALL - 56 * + 20 + 69 * + 4 + col1 AS col0 FROM tab1 AS cor0
----
-797
-830
-839

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 59, 60, col2 )
----

query I rowsort
SELECT - + ( + + 85 ) FROM tab1 AS cor0
----
-85
-85
-85

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( - + 72 ) > - 33 )
----

query I rowsort
SELECT - col1 * col0 * - col2 * - - col0 * col1 AS col2 FROM tab0
----
33379290
69382575
931491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8149
SELECT DISTINCT CAST( + 31 AS SIGNED ), + COUNT( * ) AS col0 FROM tab0
----
31
3

skipif mysql # not compatible
query II rowsort label-8149
SELECT DISTINCT CAST ( + 31 AS INTEGER ), + COUNT ( * ) AS col0 FROM tab0
----
31
3

query I rowsort
SELECT + col0 * + col0 * - + col1 AS col2 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - 56 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 88 FROM tab1 cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 + - col1 col2 FROM tab0 AS cor0
----
-118
-38
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL COUNT( * ) + - 4 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL COUNT ( * ) + - 4 AS col1 FROM tab1
----
-1

query I rowsort
SELECT 2 + col1 AS col1 FROM tab2
----
53
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT 71 * - 38 + - + ( - COUNT( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-2695

skipif mysql # not compatible
query I rowsort label-8156
SELECT 71 * - 38 + - + ( - COUNT ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT DISTINCT - SUM( DISTINCT - col1 ) + 23 / COUNT( * ) * MIN( + CAST( NULL AS SIGNED ) ) + + 36 FROM tab0 cor0 WHERE NOT - col0 * - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - SUM ( DISTINCT - col1 ) + 23 / COUNT ( * ) * MIN ( + CAST ( NULL AS INTEGER ) ) + + 36 FROM tab0 cor0 WHERE NOT - col0 * - - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab0 cor0
----
43

query II rowsort
SELECT ALL - + 28 AS col0, - 32 FROM tab2 AS cor0
----
-28
-32
-28
-32
-28
-32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 / col2 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8161
SELECT * FROM tab2 AS cor0 WHERE NULL = 74 * + + ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8161
SELECT * FROM tab2 AS cor0 WHERE NULL = 74 * + + ( - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col0 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - 25 * - COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-8163
SELECT - 25 * - COUNT ( * ) FROM tab1
----
75

query I rowsort
SELECT DISTINCT - ( + 61 ) AS col0 FROM tab0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT DISTINCT ( col0 ) * + - col0 + - 71 * - 78 * - 42 + col2 + col1 - - CAST( + col1 AS SIGNED ) + ( + + col2 ) * - col2 FROM tab2
----
-235116
-238098
-241393

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT ( col0 ) * + - col0 + - 71 * - 78 * - 42 + col2 + col1 - - CAST ( + col1 AS INTEGER ) + ( + + col2 ) * - col2 FROM tab2
----
-235116
-238098
-241393

query I rowsort
SELECT ALL - col1 + 39 FROM tab0
----
-42
18
38

query I rowsort
SELECT col1 * 93 AS col1 FROM tab0
----
1953
7533
93

query I rowsort
SELECT DISTINCT + col2 + + + col0 + 19 AS col0 FROM tab1
----
163
166
178

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT DISTINCT + 4 DIV - 35 - 51 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + 4 / - 35 - 51 FROM tab0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 <= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8171
SELECT + col0 - - + col1 + - + col1 DIV col0 AS col2, - 76 + 44 FROM tab1
----
138
-32
65
-32
90
-32

skipif mysql # not compatible
query II rowsort label-8171
SELECT + col0 - - + col1 + - + col1 / col0 AS col2, - 76 + 44 FROM tab1
----
138
-32
65
-32
90
-32

query I rowsort
SELECT ALL + col2 * + col2 - - 55 FROM tab2 cor0
----
1655
3419
584

query I rowsort
SELECT ALL - col1 * - + col1 + - col0 FROM tab2 AS cor0
----
2555
4414
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT MIN( ALL 71 ) FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT MIN ( ALL 71 ) FROM tab2 cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 94 <= - col0 * col1 + - + col2
----
3

skipif mysql # not compatible
query I rowsort label-8175
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 94 <= - col0 * col1 + - + col2
----
3

query I rowsort
SELECT 34 * - + 38 AS col1 FROM tab1
----
-1292
-1292
-1292

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col0 NOT IN ( + + col2, + 11 * col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT DISTINCT + col1 DIV - - col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + col1 / - - col0 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + SUM( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + SUM ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 99 FROM tab1 AS cor0 WHERE NULL IS NULL
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT + - CAST( - ( - + 7 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8182
SELECT + - CAST ( - ( - + 7 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + SUM( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8183
SELECT + SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - 64 + - - 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8186
SELECT col1 * - col0 * - - CAST( NULL AS SIGNED ) AS col1, col1 * - + 45 AS col2 FROM tab0 AS cor0
----
NULL
-3645
NULL
-45
NULL
-945

skipif mysql # not compatible
query II rowsort label-8186
SELECT col1 * - col0 * - - CAST ( NULL AS INTEGER ) AS col1, col1 * - + 45 AS col2 FROM tab0 AS cor0
----
NULL
-3645
NULL
-45
NULL
-945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 * + 13 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 * + 13 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8188
SELECT ALL + COUNT( DISTINCT + + CAST( NULL AS DECIMAL ) ) DIV - - 87 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) / - - 87 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 18 * - col0 * + col1 * - col1 FROM tab1 AS cor0
----
-179928
-3618342
-38250

query II rowsort
SELECT + col2, - 32 * + col2 FROM tab0
----
10
-320
47
-1504
99
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL + 51 * - + 60 * + + COUNT( * ) AS col1 FROM tab1
----
-9180

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL + 51 * - + 60 * + + COUNT ( * ) AS col1 FROM tab1
----
-9180

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT COUNT( - - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8192
SELECT COUNT ( - - col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col1 * + 48 AS col0 FROM tab0
----
1008
3888
48

query I rowsort
SELECT DISTINCT 32 + + col2 FROM tab0 WHERE NOT + - col0 * 68 - + 71 - - col2 - - + col1 + col0 IS NULL
----
131
42
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col0 + - ( + 1 ) col0 FROM tab2
----
-51
45
-67
74
-77
63

query I rowsort
SELECT DISTINCT - col0 * - + 15 AS col0 FROM tab1 AS cor0
----
1275
1365
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col0 * - col2 * CAST( NULL AS SIGNED ) + - + col1 + col2
----

skipif mysql # not compatible
query I rowsort label-8197
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col0 * - col2 * CAST ( NULL AS INTEGER ) + - + col1 + col2
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 18 IS NOT NULL OR NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT COUNT( DISTINCT + 81 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT COUNT ( DISTINCT + 81 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1

query I rowsort
SELECT DISTINCT 44 * col0 FROM tab2 AS cor0
----
2024
2816
3300

query I rowsort
SELECT - 12 * 19 FROM tab0 AS cor0
----
-228
-228
-228

query I rowsort
SELECT ALL - col1 - + 80 AS col2 FROM tab2 AS cor0
----
-131
-147
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT - - ( - + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8203
SELECT - - ( - + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - col0 col1, col1 AS col1 FROM tab2 AS cor0
----
-17
67
-23
51
-24
77

query II rowsort
SELECT - - 44 - + - 31, col1 + 12 AS col0 FROM tab0 AS cor0
----
75
13
75
33
75
93

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL AND NULL <= - col2
----

query I rowsort
SELECT DISTINCT + - 35 - + col1 FROM tab1 AS cor0
----
-40
-49
-82

query I rowsort
SELECT + 36 * - col2 + - 37 * - + col2 * + col1 + + col1 FROM tab0 cor0
----
100
139248
7431

query II rowsort
SELECT - col1 + + + ( - 46 ) AS col1, + 0 AS col1 FROM tab0
----
-127
0
-47
0
-67
0

query II rowsort
SELECT ALL + col2, + col0 FROM tab1 WHERE NULL IS NULL
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( - col0 * col0, col2 )
----

query I rowsort
SELECT ALL col1 - + col0 AS col2 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * - - col1 = NULL
----

query I rowsort
SELECT 21 AS col0 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT DISTINCT 0 DIV + col0 - + + col0 AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT 0 / + col0 - + + col0 AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ( - + COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8216
SELECT ( - + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 20 <= ( - - col2 )
----
87
21
10

query I rowsort
SELECT ALL + 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT DISTINCT - 67 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT - 67 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT - 39 + + COUNT( * ) FROM tab2 WHERE NOT + + 96 + - 3 * ( - col0 ) IN ( + + 58 / col1 / col2 * + col2 )
----
-36

skipif mysql # not compatible
query I rowsort label-8220
SELECT - 39 + + COUNT ( * ) FROM tab2 WHERE NOT + + 96 + - 3 * ( - col0 ) IN ( + + 58 / col1 / col2 * + col2 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + MIN( + - 9 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8221
SELECT + MIN ( + - 9 ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT - ( + 6 ) AS col1 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT ALL - 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 - - 26 IS NOT NULL
----

query I rowsort
SELECT col1 * - - 51 AS col2 FROM tab2
----
2601
3417
3927

query I rowsort
SELECT + + ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= + col0 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 * - 60 col2, 66 FROM tab0 AS cor0
----
1260
66
4860
66
60
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - 17 * + 93 - + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1578

skipif mysql # not compatible
query I rowsort label-8228
SELECT - 17 * + 93 - + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1578

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col2 + + + 93
----

query I rowsort
SELECT DISTINCT + col1 * 31 + col0 FROM tab1 cor0
----
1548
240
485

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT ALL COUNT( * ), COUNT( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8231
SELECT ALL COUNT ( * ), COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT - - 76 NOT BETWEEN ( + col2 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL - COUNT( DISTINCT 7 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL - COUNT ( DISTINCT 7 ) FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT - SUM( - + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8236
SELECT - SUM ( - + col0 ) AS col1 FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT col0 DIV + ( col1 ) AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8237
SELECT col0 / + ( col1 ) AS col2 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8238
SELECT - ( + + col0 ) DIV + - 87, col1 AS col0 FROM tab1
----
0
14
0
5
1
47

skipif mysql # not compatible
query II rowsort label-8238
SELECT - ( + + col0 ) / + - 87, col1 AS col0 FROM tab1
----
0
14
0
5
1
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT col1 DIV - - 84 + + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8239
SELECT col1 / - - 84 + + - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT COUNT( * ) * COUNT( ALL + - col2 ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + - col2 ) AS col2 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - 42 * COUNT( * ) + - + ( - + 95 ) + + 54 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 42 * COUNT ( * ) + - + ( - + 95 ) + + 54 FROM tab1 AS cor0
----
23

query I rowsort
SELECT ALL + 78 * - + 66 FROM tab2 AS cor0
----
-5148
-5148
-5148

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + COUNT( * ) + + - 78 AS col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8243
SELECT + COUNT ( * ) + + - 78 AS col1 FROM tab1 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + COUNT( * ) * + - COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8245
SELECT + COUNT ( * ) * + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT ALL + col1 * + 88 FROM tab0 AS cor0
----
1848
7128
88

query II rowsort
SELECT - col0, + col1 FROM tab0 cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT - + MIN( ALL - - col0 ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8248
SELECT DISTINCT - + MIN ( ALL - - col0 ) col2 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT ALL - col2 AS col0, + col0 * - col2 AS col1 FROM tab1 cor0
----
-59
-5015
-68
-6188
-96
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT DISTINCT 3 - 98 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
5001
8333
8921

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT 3 - 98 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
5001
8333
8921

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT 74 + COUNT( * ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT 74 + COUNT ( * ) FROM tab0 AS cor0
----
77

query II rowsort
SELECT + 79 * - col1 AS col2, 33 * - - 89 AS col2 FROM tab0 AS cor0
----
-1659
2937
-6399
2937
-79
2937

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT DISTINCT + col1 DIV col1 * + - 68 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT + col1 / col1 * + - 68 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT col0 * + 22 - + col1 FROM tab2
----
1331
1583
961

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - COUNT( * ) - + 3 + + 3 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8255
SELECT - COUNT ( * ) - + 3 + + 3 FROM tab2
----
-3

query I rowsort
SELECT + ( + 52 ) / col2 + - - col2 FROM tab1 WHERE + + ( + - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8257
SELECT - col1 - + 57 AS col2, col2 DIV - + col0 AS col1 FROM tab0
----
-138
-3
-58
-1
-78
0

skipif mysql # not compatible
query II rowsort label-8257
SELECT - col1 - + 57 AS col2, col2 / - + col0 AS col1 FROM tab0
----
-138
-3
-58
-1
-78
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( 60 ) AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ( - SUM( DISTINCT + col2 ) ) - 14 FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-8259
SELECT ( - SUM ( DISTINCT + col2 ) ) - 14 FROM tab0
----
-170

query I rowsort
SELECT col2 * col1 - + col1 AS col2 FROM tab0
----
189
3726
98

query I rowsort
SELECT ALL - col1 + - col0 - - 26 * col1 FROM tab0
----
-72
2010
438

query I rowsort
SELECT + - ( col2 ) FROM tab0 cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT - - SUM( - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT - - SUM ( - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT - + col2 DIV + + col2 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8264
SELECT - + col2 / + + col2 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8265
SELECT DISTINCT - col2 AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8265
SELECT DISTINCT - col2 AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT + col1 * 89 AS col0 FROM tab1 AS cor0
----
1246
4183
445

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + MAX( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8267
SELECT + MAX ( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL 66 * + 51 FROM tab1 AS cor0
----
3366
3366
3366

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8269
SELECT + col0 AS col2, + col0 * - col2 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
57105
87
18270
97
9603

skipif mysql # not compatible
query II rowsort label-8269
SELECT + col0 AS col2, + col0 * - col2 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
57105
87
18270
97
9603

query II rowsort
SELECT DISTINCT + col1 * - + ( + col0 ), ( col1 ) AS col2 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab1 WHERE NOT ( - col1 ) * 65 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - 70 * - + col1 FROM tab2
----
3547
4632
5350

query I rowsort
SELECT + + col2 + - + 55 * col2 * + col1 FROM tab1 AS cor0
----
-16166
-175712
-73824

query I rowsort
SELECT ALL + col2 * + col1 + + + 98 FROM tab2 cor0
----
1271
3178
3984

onlyif mysql # aggregate syntax: 
query II rowsort label-8275
SELECT ALL - COUNT( * ) * + 35 AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-105
-3

skipif mysql # not compatible
query II rowsort label-8275
SELECT ALL - COUNT ( * ) * + 35 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-105
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT DISTINCT col1 DIV + col0 * col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT col1 / + col0 * col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT DISTINCT 96 DIV col1 + - + col2 col0 FROM tab1 AS cor0
----
-40
-66
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8277
SELECT DISTINCT 96 / col1 + - + col2 col0 FROM tab1 AS cor0
----
-40
-66
-90

query I rowsort
SELECT ALL + ( 51 ) FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL 85 + COUNT( * ) FROM tab0 WHERE NULL = NULL
----
85

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL 85 + COUNT ( * ) FROM tab0 WHERE NULL = NULL
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT col0 - - 70 * + - col2 + - + ( - col0 ) * - col2 + 84 * + - CAST( - ( ( + 46 ) ) AS SIGNED ) * - - col1 col1 FROM tab0
----
-12572
309004
79661

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8280
SELECT col0 - - 70 * + - col2 + - + ( - col0 ) * - col2 + 84 * + - CAST ( - ( ( + 46 ) ) AS INTEGER ) * - - col1 col1 FROM tab0
----
-12572
309004
79661

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 3 NOT BETWEEN ( NULL ) AND ( 8 )
----

query I rowsort
SELECT 14 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8283
SELECT DISTINCT + SUM( - col2 ) DIV 96 AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT + SUM ( - col2 ) / 96 AS col2 FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col0 FROM tab0 cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT - + ( + COUNT( * ) ) * + 86 + - 74 AS col0 FROM tab0 AS cor0
----
-332

skipif mysql # not compatible
query I rowsort label-8285
SELECT - + ( + COUNT ( * ) ) * + 86 + - 74 AS col0 FROM tab0 AS cor0
----
-332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT DISTINCT + - 39 - - 84 * + SUM( CAST( NULL AS SIGNED ) ) + + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT + - 39 - - 84 * + SUM ( CAST ( NULL AS INTEGER ) ) + + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT COUNT( * ) + - 91 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8287
SELECT COUNT ( * ) + - 91 FROM tab2 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 col2, - col2 AS col1 FROM tab0
----
39
-10
39
-47
39
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <= ( + ( 84 ) )
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8290
SELECT DISTINCT col1 AS col1, - col0 + + CAST( + 48 AS SIGNED ) FROM tab1 AS cor0
----
14
-3
47
-43
5
-37

skipif mysql # not compatible
query II rowsort label-8290
SELECT DISTINCT col1 AS col1, - col0 + + CAST ( + 48 AS INTEGER ) FROM tab1 AS cor0
----
14
-3
47
-43
5
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col0 FROM tab0 cor0
----
-1
97
-21
87
-81
15

onlyif mysql # DIV for integer division: 
query II rowsort label-8292
SELECT ALL col2 AS col1, + ( + col2 ) DIV - - ( - ( + col0 ) ) + + col1 AS col2 FROM tab0 AS cor0
----
10
21
47
78
99
0

skipif mysql # not compatible
query II rowsort label-8292
SELECT ALL col2 AS col1, + ( + col2 ) / - - ( - ( + col0 ) ) + + col1 AS col2 FROM tab0 AS cor0
----
10
21
47
78
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL - ( - COUNT( * ) ) AS col0 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8294
SELECT - col1 DIV + 12, col2 FROM tab1
----
-1
96
-3
68
0
59

skipif mysql # not compatible
query II rowsort label-8294
SELECT - col1 / + 12, col2 FROM tab1
----
-1
96
-3
68
0
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT ( NULL IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 48 + + col1 - - col2 FROM tab1 cor0
----
16
62
67

query I rowsort
SELECT - col0 + - ( - col1 ) FROM tab0 cor0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT + 63 * COUNT( ALL - + col0 ) / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( 56 * + 86 / + ( col1 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + 63 * COUNT ( ALL - + col0 ) / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( 56 * + 86 / + ( col1 ) ) IS NULL
----
NULL

query I rowsort
SELECT ALL 95 / col0 + + + col0 + - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + col1 + + 77 FROM tab0 AS cor0
----
173
175
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT - MIN( - + 97 ) AS col0 FROM tab0 AS cor0 WHERE 48 + col1 >= + col0
----
97

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - MIN ( - + 97 ) AS col0 FROM tab0 AS cor0 WHERE 48 + col1 >= + col0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL CAST( col2 AS SIGNED ) + 10 AS col0 FROM tab2
----
33
50
68

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL CAST ( col2 AS INTEGER ) + 10 AS col0 FROM tab2
----
33
50
68

query II rowsort
SELECT - 20, + col0 FROM tab2
----
-20
46
-20
64
-20
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= + - col0 + 97
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8306
SELECT COUNT( * ) col1, 87 AS col0 FROM tab1
----
3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8306
SELECT COUNT ( * ) col1, 87 AS col0 FROM tab1
----
3
87

query II rowsort
SELECT DISTINCT - 69 + col1 * + col0 * col2 AS col2, - 93 FROM tab0 WHERE - col0 <> + 74
----
18201
-93
57036
-93
9534
-93

query I rowsort
SELECT + col0 * - 27 FROM tab0
----
-2349
-2619
-405

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 + - col1 * + 57 AND + 80
----

query II rowsort
SELECT col2 + + + col0, + col2 AS col1 FROM tab2
----
104
40
133
58
69
23

onlyif mysql # DIV for integer division: 
query II rowsort label-8311
SELECT + col0 + + col2 * - - col2 DIV - 1 AS col0, + 23 + - 46 AS col0 FROM tab1
----
-3396
-23
-4533
-23
-9165
-23

skipif mysql # not compatible
query II rowsort label-8311
SELECT + col0 + + col2 * - - col2 / - 1 AS col0, + 23 + - 46 AS col0 FROM tab1
----
-3396
-23
-4533
-23
-9165
-23

query I rowsort
SELECT ( - - col2 ) + + col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8313
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8313
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 50 * - col1 - - col2 FROM tab2 AS cor0
----
-2527
-3292
-3810

query II rowsort
SELECT DISTINCT - col2 * - + col1 AS col1, - 26 * col2 * 36 FROM tab2 cor0
----
1173
-21528
3080
-37440
3886
-54288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8317
SELECT + ( - 52 ) * col2 * col0 + - + 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-8317
SELECT + ( - 52 ) * col2 * col0 + - + CAST ( NULL AS INTEGER ) col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL 15 * + - col2 FROM tab2 AS cor0
----
-345
-600
-870

query I rowsort
SELECT - col2 * col2 * - 59 AS col1 FROM tab1
----
205379
272816
543744

query I rowsort
SELECT DISTINCT + col0 * 16 FROM tab2
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT COUNT( ALL - 84 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8321
SELECT COUNT ( ALL - 84 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( 31 * col2 ) = 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + MIN( - - col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8323
SELECT + MIN ( - - col2 ) col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + MAX( ALL 34 ) AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8324
SELECT + MAX ( ALL 34 ) AS col1 FROM tab0 AS cor0
----
34

query I rowsort
SELECT + 65 * - - col1 AS col2 FROM tab1 AS cor0
----
3055
325
910

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - col1
----

query I rowsort
SELECT col1 * - 5 AS col2 FROM tab0
----
-105
-405
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT ALL + col1 * 73 * col1 DIV - 24 AS col2 FROM tab0
----
-1341
-19956
-3

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + col1 * 73 * col1 / - 24 AS col2 FROM tab0
----
-1341
-19956
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT DISTINCT - 63 DIV - COUNT( + + 95 ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT - 63 / - COUNT ( + + 95 ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8330
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 25 + CAST( + - col1 AS SIGNED ) + - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8330
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 25 + CAST ( + - col1 AS INTEGER ) + - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 65 FROM tab1 cor0
----
-3055
-325
-910

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE col2 * + 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 9 * + - 58 + - 0 BETWEEN NULL AND + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL SUM( DISTINCT + + 53 ) AS col2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL SUM ( DISTINCT + + 53 ) AS col2 FROM tab2 AS cor0
----
53

query I rowsort
SELECT - - 27 * + 38 FROM tab0 AS cor0 WHERE ( 31 BETWEEN NULL AND - - 7 * 22 * + 18 * + col1 )
----

query II rowsort
SELECT 94 AS col2, 3 + - col2 AS col2 FROM tab1 AS cor0
----
94
-56
94
-65
94
-93

query I rowsort
SELECT 21 + - col0 FROM tab0 cor0
----
-66
-76
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT - col2 + + CAST( + ( - - 74 ) AS SIGNED ) FROM tab1
----
-22
15
6

skipif mysql # not compatible
query I rowsort label-8338
SELECT - col2 + + CAST ( + ( - - 74 ) AS INTEGER ) FROM tab1
----
-22
15
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + MAX( - col2 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT + MAX ( - col2 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT DISTINCT - col1 + - 76 AS col2 FROM tab0
----
-157
-77
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col0 * - - 23
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 - - - 43 AS col1 FROM tab0 AS cor0
----
-124
-44
-64

query I rowsort
SELECT + - ( + - 71 ) * + + 34 * + + col1 AS col2 FROM tab1 AS cor0
----
113458
12070
33796

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 2 * 69 = NULL
----

query I rowsort
SELECT DISTINCT - - 77 - + 27 AS col2 FROM tab1 AS cor0
----
50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 28 / col1 <= - 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + 37 * - + 89 AS col0 FROM tab0
----
-3293
-3293
-3293

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * col2 * + 51 + col1 > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT - SUM( ALL CAST( + + col2 AS SIGNED ) ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8352
SELECT - SUM ( ALL CAST ( + + col2 AS INTEGER ) ) FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8353
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( - - CAST( NULL AS SIGNED ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8353
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( - - CAST ( NULL AS INTEGER ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 27 >= - + 36 - 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8355
SELECT - + CAST( NULL AS DECIMAL ) AS col2, 76 FROM tab2 AS cor0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
query II rowsort label-8355
SELECT - + CAST ( NULL AS REAL ) AS col2, 76 FROM tab2 AS cor0
----
NULL
76
NULL
76
NULL
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + col1 NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT + 31 * + + COUNT( * ) + + + COUNT( ALL - 48 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT + 31 * + + COUNT ( * ) + + + COUNT ( ALL - 48 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT - SUM( 67 ) FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8358
SELECT - SUM ( 67 ) FROM tab2 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT - COUNT( * ) * 38 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 65 AND - 87 * + 93 + + + col1 + - + col1 + - 30
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8359
SELECT - COUNT ( * ) * 38 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 65 AND - 87 * + 93 + + + col1 + - + col1 + - 30
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * 66 * - - col2, col1 col1 FROM tab1 AS cor0
----
323136
14
330990
5
408408
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8361
SELECT ALL - CAST( NULL AS DECIMAL ) * + - COUNT( * ) / + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL - CAST ( NULL AS REAL ) * + - COUNT ( * ) / + COUNT ( * ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) * + - 36 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) * + - 36 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col1 * + col0 * - + col1 AS col2 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT ALL 83 * - + col1 * - + col2 AS col2 FROM tab1
----
111552
24485
265268

query I rowsort
SELECT ALL + - 39 + + col1 AS col2 FROM tab2 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab1
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 52 col0 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL + col1 * col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + col1 * col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8369
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8369
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( col1 ) col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - 31 * + - col1 FROM tab1
----
1457
155
434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col2 col0 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT MAX( - + 17 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT MAX ( - + 17 ) FROM tab1
----
-17

query I rowsort
SELECT col0 + 30 * col1 FROM tab0
----
127
2445
717

query I rowsort
SELECT 81 * - - 15 + - - col0 AS col1 FROM tab1 AS cor0
----
1266
1300
1306

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 <> 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0, - col2 FROM tab0 cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT + + MIN( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + + MIN ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8379
SELECT - 41 DIV - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-8379
SELECT - 41 / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT DISTINCT 84 * + col2 + + col0 DIV + col2 FROM tab0
----
3948
8316
848

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT 84 * + col2 + + col0 / + col2 FROM tab0
----
3948
8316
848

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL MIN( - col2 ) + + ( + COUNT( 99 ) ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL MIN ( - col2 ) + + ( + COUNT ( 99 ) ) FROM tab0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 - - - col2 * + + 22 col1 FROM tab1
----
-1270
-1468
-2084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, + col1 col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + col1 col0 FROM tab2 cor0
----
15
31
41

query III rowsort
SELECT * FROM tab1 WHERE + 57 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 12 * + 47 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8388
SELECT ALL col1 * - CAST( NULL AS SIGNED ), col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8388
SELECT ALL col1 * - CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL + - 40 - - col1 + - - col0 / - + ( CAST( NULL AS SIGNED ) ) * col2 + + - col2 col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8389
SELECT ALL + - 40 - - col1 + - - col0 / - + ( CAST ( NULL AS INTEGER ) ) * col2 + + - col2 col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT - 0 DIV col0 * + col1 - col0 * ( col0 ) + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-7482
-9312

skipif mysql # not compatible
query I rowsort label-8390
SELECT - 0 / col0 * + col1 - col0 * ( col0 ) + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-7482
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT DISTINCT - + 50 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT - + 50 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT - + 3 AS col0 FROM tab0 cor0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL + MAX( + col2 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8394
SELECT ALL + MAX ( + col2 ) col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

query I rowsort
SELECT - - ( - col2 ) * - col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + 73 * - + col2 FROM tab0 AS cor0 WHERE NOT - 15 <> NULL
----

query II rowsort
SELECT - + col2, - col2 * + - ( - 4 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 33, 72 * + col0 AS col1 FROM tab1
----
33
3672
33
6120
33
6552

query I rowsort
SELECT DISTINCT + col0 + - 59 + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 93 AS col0, - col0 * + + ( - col1 ) AS col1 FROM tab0
----
93
1215
93
1827
93
97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - 83
----

query II rowsort
SELECT ALL + 81 * - col0 * col1 AS col2, - 17 AS col2 FROM tab0 AS cor0
----
-147987
-17
-7857
-17
-98415
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + + + 55 col2 FROM tab1 AS cor0
----
132
132
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + - col1 * 67 col1 FROM tab0 AS cor0
----
-29547
-439587
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT MAX( ALL 55 ) + 44 AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8406
SELECT MAX ( ALL 55 ) + 44 AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + COUNT( * ) + - - 6 * 69 FROM tab2 AS cor0
----
417

skipif mysql # not compatible
query I rowsort label-8407
SELECT + COUNT ( * ) + - - 6 * 69 FROM tab2 AS cor0
----
417

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT + col1 * col0 * + - 89 * + - col2 + - col0 DIV - + col2 + + - col2 AS col0 FROM tab1 AS cor0
----
2231617
25884337
6100320

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT + col1 * col0 * + - 89 * + - col2 + - col0 / - + col2 + + - col2 AS col0 FROM tab1 AS cor0
----
2231617
25884337
6100320

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 39 < + 78 * ( + 60 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) * - - 96 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - - 96 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL ( - + COUNT( * ) ) + + - 72 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL ( - + COUNT ( * ) ) + + - 72 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT + col2 + - - 20 * - col0 - - + col2 AS col2 FROM tab2 cor0
----
-1200
-1384
-874

query I rowsort
SELECT ( - col2 ) * + 99 + + 13 * - - col1 FROM tab1 AS cor0
----
-5776
-6121
-9322

query I rowsort
SELECT - col1 + - 95 + + 56 + + col1 * - - col1 - + - col0 FROM tab1
----
194
2214
66

query I rowsort
SELECT DISTINCT - col1 + + + col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 34 col0 FROM tab2
----
17
33
43

query I rowsort
SELECT ALL col1 + + 86 FROM tab1
----
100
133
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT ALL - col1 + CAST( + col0 AS SIGNED ) FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - col1 + CAST ( + col0 AS INTEGER ) FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query II rowsort
SELECT col2, - ( 39 ) AS col1 FROM tab1 AS cor0
----
59
-39
68
-39
96
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT COUNT( * ) col1, + COUNT( * ) + - ( + MAX( DISTINCT + col2 ) ) AS col0 FROM tab0 AS cor0
----
3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8422
SELECT COUNT ( * ) col1, + COUNT ( * ) + - ( + MAX ( DISTINCT + col2 ) ) AS col0 FROM tab0 AS cor0
----
3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + COUNT( ALL + ( col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8423
SELECT + COUNT ( ALL + ( col0 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + 63 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT col0, - 85 + col0 AS col0 FROM tab2 AS cor0
----
46
-39
64
-21
75
-10

query II rowsort
SELECT ALL + - 63, - col2 * col2 AS col0 FROM tab1 AS cor0
----
-63
-3481
-63
-4624
-63
-9216

query II rowsort
SELECT DISTINCT + col1, col1 * col1 FROM tab0 AS cor0
----
1
1
21
441
81
6561

query I rowsort
SELECT DISTINCT 5 + + - col2 AS col2 FROM tab1
----
-54
-63
-91

query I rowsort
SELECT 24 * 77 * + 81 * - + 44 FROM tab2
----
-6586272
-6586272
-6586272

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - - col1 - - col2 NOT BETWEEN col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL - - ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - - ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + 3 <> col1 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - 43 col1 FROM tab2
----
110
120
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT - COUNT( * ) + - 43 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8434
SELECT - COUNT ( * ) + - 43 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT ( 69 ) * + col0 AS col2 FROM tab2 AS cor0
----
3174
4416
5175

query II rowsort
SELECT DISTINCT + 38, col0 FROM tab0 cor0
----
38
15
38
87
38
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL - MAX( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - MAX ( ALL + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col2 * - col0 * - col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 87 AS col1, col0 col0 FROM tab2 AS cor0
----
87
46
87
64
87
75

query II rowsort
SELECT + - col2 AS col2, - 30 AS col0 FROM tab0 AS cor0
----
-10
-30
-47
-30
-99
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT DISTINCT + col0 * - CAST( - 76 AS SIGNED ) * - col0 * + 29 + + col1 FROM tab0
----
-16682055
-20737435
-495819

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT + col0 * - CAST ( - 76 AS INTEGER ) * - col0 * + 29 + + col1 FROM tab0
----
-16682055
-20737435
-495819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8443
SELECT + CAST( NULL AS SIGNED ) - + + col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8443
SELECT + CAST ( NULL AS INTEGER ) - + + col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - col0 FROM tab2 WHERE - 67 < - col0 + ( + + col0 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT COUNT( * ) - - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8445
SELECT COUNT ( * ) - - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - 66 AS col2, col0 col0 FROM tab2
----
-117
46
-133
75
-143
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ( COUNT( * ) ) - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT ( COUNT ( * ) ) - COUNT ( * ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19 * + - col0 - + 9 + - 79 * - col0 col2, 51 AS col0 FROM tab1
----
3051
51
5091
51
5451
51

query I rowsort
SELECT 63 - 60 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL 2 * + COUNT( * ) + - - 24 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL 2 * + COUNT ( * ) + - - 24 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ( - 77 ) - - - MAX( ALL - 78 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8451
SELECT ( - 77 ) - - - MAX ( ALL - 78 ) FROM tab2
----
1

query I rowsort
SELECT ALL - col2 + + 41 FROM tab1
----
-18
-27
-55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < col1 / col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT col0 DIV + 92 col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8454
SELECT col0 / + 92 col2 FROM tab0
----
0
0
1

query I rowsort
SELECT 17 * - 41 FROM tab0
----
-697
-697
-697

query I rowsort
SELECT ALL + col0 * + - col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - - 52 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ( + + 50 ) FROM tab2
----
50
50
50

query I rowsort
SELECT ALL + - col1 + - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT DISTINCT + + col0 DIV - - col2 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + + col0 / - - col2 FROM tab0 cor0
----
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8461
SELECT ALL - 5 DIV 53 * 29 + 81 FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL - 5 / 53 * 29 + 81 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT - - CAST( - MIN( - 95 ) AS SIGNED ) FROM tab1 cor0
----
95

skipif mysql # not compatible
query I rowsort label-8462
SELECT - - CAST ( - MIN ( - 95 ) AS INTEGER ) FROM tab1 cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT + + ( CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8463
SELECT + + ( CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL ( + CAST( + - COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8465
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
3

query II rowsort
SELECT ALL - col1 AS col2, col0 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT 88 AS col0 FROM tab0 WHERE NOT ( col0 / - 62 ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT - MAX( + - col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8468
SELECT - MAX ( + - col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT 93 * - col1 * + - col2 FROM tab0
----
19530
354051
9207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - - col0, col0 col1 FROM tab1
----
2601
51
7225
85
8281
91

query I rowsort
SELECT 55 * + ( - 94 ) FROM tab0
----
-5170
-5170
-5170

query I rowsort
SELECT ALL col1 + + + ( - + 1 ) AS col2 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL col2 + - - 3 AS col2 FROM tab1
----
62
71
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8474
SELECT DISTINCT + col1 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8474
SELECT DISTINCT + col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + 92 + COUNT( * ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + 92 + COUNT ( * ) FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT - 18 - 81 col1, COUNT( col2 ) FROM tab2 AS cor0
----
-99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8476
SELECT - 18 - 81 col1, COUNT ( col2 ) FROM tab2 AS cor0
----
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT + COUNT( DISTINCT - 20 ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + COUNT ( DISTINCT - 20 ) AS col2 FROM tab1 cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 63 IS NULL )
----

query I rowsort
SELECT DISTINCT - 14 * + 26 AS col0 FROM tab2
----
-364

query I rowsort
SELECT ALL + 87 * - 71 FROM tab2
----
-6177
-6177
-6177

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT MIN( ( + col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8482
SELECT MIN ( ( + col0 ) ) AS col0 FROM tab1
----
51

query II rowsort
SELECT col2 AS col0, col1 * + 89 FROM tab1 AS cor0
----
59
445
68
4183
96
1246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8484
SELECT ALL CAST( NULL AS SIGNED ) / ( col2 ) AS col2, - ( - - col1 ) + 10 FROM tab1 AS cor0
----
NULL
-37
NULL
-4
NULL
5

skipif mysql # not compatible
query II rowsort label-8484
SELECT ALL CAST ( NULL AS INTEGER ) / ( col2 ) AS col2, - ( - - col1 ) + 10 FROM tab1 AS cor0
----
NULL
-37
NULL
-4
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 65 AS col1, col0 col1 FROM tab1 cor0
----
-65
51
-65
85
-65
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8486
SELECT - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN col2 + col1 * 67 AND ( NULL )
----

query I rowsort
SELECT + col2 * + 20 - ( col2 ) * + ( col0 ) AS col0 FROM tab2
----
-1760
-3190
-598

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + 20 * 34 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 22 ) <= NULL
----

query I rowsort
SELECT col0 * 79 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT 56 * - 77 FROM tab2
----
-4312
-4312
-4312

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + 42 BETWEEN ( col0 ) AND + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT CAST( ( + 97 ) AS SIGNED ) FROM tab1
----
97
97
97

skipif mysql # not compatible
query I rowsort label-8495
SELECT CAST ( ( + 97 ) AS INTEGER ) FROM tab1
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8496
SELECT * FROM tab0 WHERE NOT col0 / + CAST( - col2 * col0 AS SIGNED ) BETWEEN col0 AND 68 * ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8496
SELECT * FROM tab0 WHERE NOT col0 / + CAST ( - col2 * col0 AS INTEGER ) BETWEEN col0 AND 68 * ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + ( col1 ) col2 FROM tab1
----
28
37
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / + col2 < ( NULL )
----

query I rowsort
SELECT ALL - 13 * 26 FROM tab2
----
-338
-338
-338

query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT ALL + MAX( ALL - col0 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + MAX ( ALL - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 <= NULL
----

query I rowsort
SELECT DISTINCT 33 - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-18
-52
-58

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT + 8 * + 42 > NULL
----

query I rowsort
SELECT DISTINCT + 75 - col2 AS col2 FROM tab2
----
17
35
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT ( - 26 ) * 11 + - CAST( - 23 + - 2 AS SIGNED ) col0 FROM tab2
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8506
SELECT DISTINCT ( - 26 ) * 11 + - CAST ( - 23 + - 2 AS INTEGER ) col0 FROM tab2
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8507
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8507
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 96 <> ( - col2 * + col1 )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT ALL - 30 DIV 44 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL - 30 / 44 - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL - + COUNT( ALL 65 ) * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8512
SELECT ALL - + COUNT ( ALL 65 ) * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + - 70 - - ( COUNT( col1 ) ) AS col2 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8513
SELECT + - 70 - - ( COUNT ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8514
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8514
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 81 - + col1 FROM tab0 AS cor0
----
0
60
80

query I rowsort
SELECT col1 - - + col0 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT - 69 * - ( CAST( + col1 AS SIGNED ) ) AS col0 FROM tab0
----
1449
5589
69

skipif mysql # not compatible
query I rowsort label-8517
SELECT - 69 * - ( CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0
----
1449
5589
69

query I rowsort
SELECT - 87 * col1 * 78 AS col1 FROM tab0
----
-142506
-549666
-6786

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( 9 / - col1 )
----

query I rowsort
SELECT ALL 88 * - - col0 * col1 FROM tab2
----
206448
433664
442200

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - ( - COUNT( * ) ) * 19 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-8521
SELECT - ( - COUNT ( * ) ) * 19 FROM tab1
----
57

query I rowsort
SELECT - 3 * + - col2 AS col1 FROM tab1
----
177
204
288

query I rowsort
SELECT ALL 59 AS col2 FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT - 86 FROM tab1 AS cor0 WHERE NOT 74 * 6 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab1 cor0
----
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 18 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 <= - col0 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT COUNT( * ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - col0 AS col0, 1 * + 17 FROM tab1
----
-51
17
-85
17
-91
17

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( 77 ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8532
SELECT - ( + ( + COUNT( * ) ) ) DIV COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8532
SELECT - ( + ( + COUNT ( * ) ) ) / COUNT ( * ) FROM tab2 cor0
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT 55 DIV - MIN( ALL col2 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8534
SELECT 55 / - MIN ( ALL col2 ) FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8535
SELECT + - CAST( COUNT( ALL 51 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8535
SELECT + - CAST ( COUNT ( ALL 51 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 81 + + 45 + - col0 AS col1 FROM tab0 AS cor0
----
111
29
39

query I rowsort
SELECT ALL + 47 + + + col1 FROM tab2
----
114
124
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT CAST( NULL AS SIGNED ) * + col0 + + 71 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT CAST ( NULL AS INTEGER ) * + col0 + + 71 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 20 + 90 col0, col1 FROM tab2
----
70
51
70
67
70
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT - 47 + - CAST( NULL AS SIGNED ) * col2 FROM tab1 WHERE + col0 BETWEEN - - col2 * col2 AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 47 + - CAST ( NULL AS INTEGER ) * col2 FROM tab1 WHERE + col0 BETWEEN - - col2 * col2 AND ( col1 )
----

query I rowsort
SELECT col1 * + col0 * - col2 + 43 * 34 FROM tab0
----
-16808
-55643
-8141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT - 91 * - CAST( 3 AS SIGNED ) + col2 FROM tab1
----
332
341
369

skipif mysql # not compatible
query I rowsort label-8542
SELECT - 91 * - CAST ( 3 AS INTEGER ) + col2 FROM tab1
----
332
341
369

query I rowsort
SELECT ( 43 ) FROM tab0 WHERE + 16 - 10 IS NOT NULL
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - + col1 * + - col1 AS col2 FROM tab0
----
2
462
6642

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT DISTINCT - + 29 DIV 87 + - ( ( + col0 ) + col1 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT - + 29 / 87 + - ( ( + col0 ) + col1 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-138
-65
-90

query I rowsort
SELECT ALL + col1 * col1 - - 26 FROM tab0 AS cor0
----
27
467
6587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col1 FROM tab2 AS cor0 WHERE NOT ( ( + + col0 ) NOT IN ( - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col1 FROM tab2 AS cor0 WHERE NOT ( ( + + col0 ) NOT IN ( - col2 ) )
----

query I rowsort
SELECT col1 * 56 * - + 6 FROM tab1 cor0
----
-15792
-1680
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL + - COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + - COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > ( + - col1 * - 79 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT - CAST( NULL AS SIGNED ) / - - col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8553
SELECT - CAST ( NULL AS INTEGER ) / - - col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 < - + ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND + 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <> - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL MIN( + col1 ) FROM tab1 WHERE NULL IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL MIN ( + col1 ) FROM tab1 WHERE NULL IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + + COUNT( * ) + + + 77 FROM tab2 cor0
----
80

skipif mysql # not compatible
query I rowsort label-8558
SELECT + + COUNT ( * ) + + + 77 FROM tab2 cor0
----
80

query I rowsort
SELECT + + 17 AS col2 FROM tab0 AS cor0
----
17
17
17

query II rowsort
SELECT - - 50 AS col2, col0 AS col2 FROM tab1 AS cor0
----
50
51
50
85
50
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8561
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - CAST( - col1 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8561
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - CAST ( - col1 AS INTEGER ) ) < NULL
----

query II rowsort
SELECT + 68 * - col2 * - col2 AS col1, 78 * - col0 + - col2 * 18 AS col2 FROM tab1 AS cor0
----
236708
-7692
314432
-8322
626688
-5706

query II rowsort
SELECT ALL col2, col2 - - + col2 * - col1 FROM tab1
----
59
-236
68
-3128
96
-1248

query I rowsort
SELECT DISTINCT 74 + - 23 FROM tab0, tab0 AS cor0
----
51

query I rowsort
SELECT ALL - 93 * + col2 FROM tab1
----
-5487
-6324
-8928

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT ( + + col1 - - - col2 + - col2 + - ( 30 ) * 32 ) <= ( - 54 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 34 * - ( col0 ) / + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + ( + - MAX( + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8569
SELECT + ( + - MAX ( + col0 ) ) FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 + - col1 + col2 * col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT 47 AS col2, COUNT( * ) col2 FROM tab0
----
47
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8571
SELECT 47 AS col2, COUNT ( * ) col2 FROM tab0
----
47
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 + - ( - col2 ) * 89 ) NOT IN ( col0 )
----

query II rowsort
SELECT ALL col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL 88 * col2 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - 20, col0 )
----

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8576
SELECT col0, + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8576
SELECT col0, + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8577
SELECT ALL + col2, - CAST( - + ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-8577
SELECT ALL + col2, - CAST ( - + ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT - SUM( ALL col2 ) * 85 FROM tab0 AS cor0
----
-13260

skipif mysql # not compatible
query I rowsort label-8578
SELECT - SUM ( ALL col2 ) * 85 FROM tab0 AS cor0
----
-13260

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT COUNT( * ) + 42 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN ( col1 * + + col1 + - ( + col0 ) ) AND ( NULL )
----
42

skipif mysql # not compatible
query I rowsort label-8579
SELECT COUNT ( * ) + 42 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN ( col1 * + + col1 + - ( + col0 ) ) AND ( NULL )
----
42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <= 66
----
46
51
23

query II rowsort
SELECT DISTINCT - - col2 * + 26 AS col1, 33 FROM tab1 AS cor0
----
1534
33
1768
33
2496
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + ( - col0 ) )
----

query I rowsort
SELECT ALL + col2 * - + 48 * + col1 AS col1 FROM tab1 AS cor0
----
-14160
-153408
-64512

query I rowsort
SELECT DISTINCT - 73 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
51465
63510
701019

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col2 / + col2
----

query I rowsort
SELECT ALL col1 * 0 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( 84 ) <> col1
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( 84 ) <> col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 14 / - - col1 * 8 * - 0 / col2 + 80 AND ( NULL )
----

query III rowsort
SELECT - + col0 + + ( - col0 ) AS col1, - col0 * 60 AS col0, ( col1 ) * + 46 + col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to f681f02feb61ea439ed0250fb08b6597

query I rowsort
SELECT ALL 84 * - 66 + - col0 - + + col0 FROM tab1 AS cor0
----
-5646
-5714
-5726

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + + + 60 - - + 38 + + 93 * col1 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + - SUM( ALL col2 ) + ( 81 ) + - - 56 + + + MIN( 78 ) - 79 AS col0 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8592
SELECT + - SUM ( ALL col2 ) + ( 81 ) + - - 56 + + + MIN ( 78 ) - 79 AS col0 FROM tab2 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 IN ( - 70 * col1 + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT - 59 + - COUNT( * ) AS col1, - 12 FROM tab2 AS cor0
----
-62
-12

skipif mysql # not compatible
query II rowsort label-8594
SELECT - 59 + - COUNT ( * ) AS col1, - 12 FROM tab2 AS cor0
----
-62
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( col1 ) NOT BETWEEN NULL AND NULL ) )
----

query II rowsort
SELECT DISTINCT - col1 + + 5 AS col0, + 23 FROM tab1 AS cor0
----
-42
23
-9
23
0
23

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - 91 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8598
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( + col1 AS DECIMAL ) > + 16 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8598
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( + col1 AS REAL ) > + 16 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT ALL - + 17 DIV - + col1 + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-3473
-4577
-9201

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - + 17 / - + col1 + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-3473
-4577
-9201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8600
SELECT ALL - MIN( + CAST( + + col1 AS SIGNED ) ) DIV - 6 * - 9 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - MIN ( + CAST ( + + col1 AS INTEGER ) ) / - 6 * - 9 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL 71 + + + COUNT( * ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL 71 + + + COUNT ( * ) FROM tab2
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 35 col1 FROM tab2
----
46
-35
64
-35
75
-35

query I rowsort
SELECT - 58 * col1 AS col1 FROM tab1
----
-2726
-290
-812

query I rowsort
SELECT + 76 * - + col1 AS col2 FROM tab0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL SUM( ALL + + 67 ) + - + COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL SUM ( ALL + + 67 ) + - + COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col0 ) * + - 11, - ( + 57 ) col1 FROM tab0
----
1067
-57
165
-57
957
-57

query II rowsort
SELECT + col2, 38 FROM tab2
----
23
38
40
38
58
38

query I rowsort
SELECT ALL 5 * - col2 AS col1 FROM tab2
----
-115
-200
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL + COUNT( * ) * - 2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL + COUNT ( * ) * - 2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + col1 - - ( - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 6 - - col0 AS col1 FROM tab2 AS cor0
----
52
70
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT ALL - 69 DIV - 78 * 87 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - 69 / - 78 * 87 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8614
SELECT * FROM tab2 AS cor0 WHERE CAST( + - 92 AS SIGNED ) * - - 65 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8614
SELECT * FROM tab2 AS cor0 WHERE CAST ( + - 92 AS INTEGER ) * - - 65 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 75 + - 62 AS col0 FROM tab1
----
13

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8617
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 >= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8617
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 >= - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 17 * + - 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to bfbe7ead6046460c3d61fbd84bd15969

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8619
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8619
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT COUNT( ALL - col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT COUNT ( ALL - col0 ) FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT + - 87 * 44 AS col0, - col2 FROM tab0 AS cor0
----
-3828
-10
-3828
-47
-3828
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL col2 * col0 * 62 - - + 81 - + col2 - - + 49 * - 38 * 4 + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL col2 * col0 * 62 - - + 81 - + col2 - - + 49 * - 38 * 4 + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8623
SELECT + + 30 * 13 DIV + + MAX( - col1 ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8623
SELECT + + 30 * 13 / + + MAX ( - col1 ) FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT - ( + COUNT( ALL col2 ) ) AS col2, - COUNT( * ) AS col1 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8625
SELECT - ( + COUNT ( ALL col2 ) ) AS col2, - COUNT ( * ) AS col1 FROM tab1
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT + COUNT( 8 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8626
SELECT + COUNT ( 8 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8627
SELECT 27 DIV + ( + - MIN( col0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT 27 / + ( + - MIN ( col0 ) ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 84 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT COUNT( * ) DIV 68 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT COUNT ( * ) / 68 AS col2 FROM tab2
----
0

query II rowsort
SELECT ALL + col2, - col2 + - col0 * + 99 AS col1 FROM tab1 AS cor0
----
59
-8474
68
-9077
96
-5145

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 4 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8632
SELECT ALL CAST( col2 AS SIGNED ) + col1 DIV + col1 AS col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL CAST ( col2 AS INTEGER ) + col1 / + col1 AS col2 FROM tab2
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - 4 * - 49 col2 FROM tab2 AS cor0
----
23
196
40
196
58
196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 * + col0 = + ( - col0 )
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col0 * ( - col2 ) IS NOT NULL
----
59
68
96

query II rowsort
SELECT ALL col1, 85 AS col2 FROM tab1 AS cor0
----
14
85
47
85
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL - 92 + COUNT( * ) col2 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8637
SELECT ALL - 92 + COUNT ( * ) col2 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT + 47 + - - col2 AS col1 FROM tab0 AS cor0
----
146
57
94

query I rowsort
SELECT ALL - col0 + ( 48 ) AS col2 FROM tab2 AS cor0
----
-16
-27
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT + + CAST( + 30 AS SIGNED ) + + 21 + - col0 * + 70 + + col2 AS col2 FROM tab1 AS cor0
----
-3423
-5840
-6251

skipif mysql # not compatible
query I rowsort label-8640
SELECT + + CAST ( + 30 AS INTEGER ) + + 21 + - col0 * + 70 + + col2 AS col2 FROM tab1 AS cor0
----
-3423
-5840
-6251

query II rowsort
SELECT col2 + col1, - col1 AS col2 FROM tab2
----
117
-77
125
-67
74
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8642
SELECT DISTINCT + MIN( col2 ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT + MIN ( col2 ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + - col2 * col1 * - - col0 AS col0 FROM tab2
----
-197043
-291383
-53907

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 15 IS NOT NULL
----

query I rowsort
SELECT + - col0 * - 29 FROM tab2 AS cor0 WHERE - 91 IS NULL
----

query I rowsort
SELECT - 26 * + 32 FROM tab0
----
-832
-832
-832

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8647
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( + CAST( 51 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8647
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( + CAST ( 51 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT SUM( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8648
SELECT SUM ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT + 66 + - col2 AS col1, ( - col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + 86 ) AS col0 FROM tab1 AS cor0
----
86

query I rowsort
SELECT DISTINCT - 70 + - 32 AS col1 FROM tab0 AS cor0 WHERE ( - col1 + 99 + + - ( - col1 ) * + + col1 * + col0 ) NOT BETWEEN NULL AND - col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT - MAX( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT - MAX ( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + + col0 + + col2 FROM tab2 AS cor0 WHERE NULL > col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT + MIN( ALL + 26 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8654
SELECT + MIN ( ALL + 26 ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8655
SELECT ALL 82 AS col0, - ( - MIN( + ( - + ( - - 43 ) ) ) ) col0 FROM tab0 cor0
----
82
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8655
SELECT ALL 82 AS col0, - ( - MIN ( + ( - + ( - - 43 ) ) ) ) col0 FROM tab0 cor0
----
82
-43

query II rowsort
SELECT - - col2, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL - SUM( ALL ( col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL - SUM ( ALL ( col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8658
SELECT + COUNT( * ) AS col2, + COUNT( * ) + + ( + ( - + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8658
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) + + ( + ( - + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT 45 * + - COUNT( DISTINCT + col0 ) AS col0 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT 45 * + - COUNT ( DISTINCT + col0 ) AS col0 FROM tab0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT ALL - 42 * - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - 42 * - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT COUNT( * ) * - SUM( + 48 ) FROM tab0
----
-432

skipif mysql # not compatible
query I rowsort label-8662
SELECT COUNT ( * ) * - SUM ( + 48 ) FROM tab0
----
-432

query I rowsort
SELECT 14 * + + col1 AS col0 FROM tab0
----
1134
14
294

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 23 + + col1 <> - + ( - col0 ) / - ( col2 ) + + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL MIN( ALL + 10 ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL MIN ( ALL + 10 ) AS col0 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ALL + 24 + + COUNT( * ) + 32 AS col1 FROM tab1 WHERE NOT - + 24 * + col0 + - col0 * + ( + col1 ) + - 17 > - col2 * + + col0
----
57

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL + 24 + + COUNT ( * ) + 32 AS col1 FROM tab1 WHERE NOT - + 24 * + col0 + - col0 * + ( + col1 ) + - 17 > - col2 * + + col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + 40 * + MAX( DISTINCT col1 ) * ( - ( + COUNT( * ) ) ) AS col1 FROM tab0
----
-9720

skipif mysql # not compatible
query I rowsort label-8667
SELECT + 40 * + MAX ( DISTINCT col1 ) * ( - ( + COUNT ( * ) ) ) AS col1 FROM tab0
----
-9720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL - - CAST( + - MIN( ALL + 93 ) AS SIGNED ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - - CAST ( + - MIN ( ALL + 93 ) AS INTEGER ) FROM tab0 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8670
SELECT ALL + COUNT( * ) + CAST( + 93 AS SIGNED ) DIV - + MAX( ALL - col0 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + COUNT ( * ) + CAST ( + 93 AS INTEGER ) / - + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT - CAST( - col1 AS SIGNED ) + + - col2 col2 FROM tab2 WHERE - + col0 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8671
SELECT - CAST ( - col1 AS INTEGER ) + + - col2 col2 FROM tab2 WHERE - + col0 >= CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 95, + 45 col1 FROM tab2 AS cor0
----
95
45
95
45
95
45

query I rowsort
SELECT - col2 + + + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - + col0 + + col2 * + - col1 FROM tab2 AS cor0
----
-3519
-8008
-8911

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8677
SELECT ALL + COUNT( * ), + COUNT( * ) DIV - - 53 AS col2 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL + COUNT ( * ), + COUNT ( * ) / - - 53 AS col2 FROM tab2 AS cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL + MAX( DISTINCT + 54 ) AS col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL + MAX ( DISTINCT + 54 ) AS col1 FROM tab1 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL + COUNT( DISTINCT col1 ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT ALL + COUNT ( DISTINCT col1 ) col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL + COUNT( * ) + + COUNT( * ) * + COUNT( + - col0 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * + COUNT ( + - col0 ) FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT MAX( ALL - CAST( 37 AS SIGNED ) ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8681
SELECT MAX ( ALL - CAST ( 37 AS INTEGER ) ) FROM tab0 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8682
SELECT ALL CAST( NULL AS SIGNED ) AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8682
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75 col1, + col2 AS col0 FROM tab2
----
75
23
75
40
75
58

query I rowsort
SELECT DISTINCT 63 + col1 - + + col0 AS col1 FROM tab1
----
-17
19
26

query I rowsort
SELECT - 51 - + col1 FROM tab2
----
-102
-118
-128

query I rowsort
SELECT 46 - + col1 AS col2 FROM tab0
----
-35
25
45

query I rowsort
SELECT + col1 * - col0 FROM tab1 WHERE - col2 < + col0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 - - 92 + + - 42 * + 55, - 72 * - + 70 + - - 17 col1 FROM tab2
----
-2314
5057
-2314
5057
-2314
5057

query I rowsort
SELECT ALL + col0 + + col1 + col1 AS col2 FROM tab0
----
129
177
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT ALL + col1 DIV + - 50 - + + col0 + 21 AS col2 FROM tab2
----
-26
-44
-55

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + col1 / + - 50 - + + col0 + 21 AS col2 FROM tab2
----
-26
-44
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 95 ) - + 88 col2 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT MIN( + + col1 ) AS col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT MIN ( + + col1 ) AS col1 FROM tab2 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT ALL - col2 DIV 77 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - col2 / 77 AS col1 FROM tab0 cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / - + ( + - col0 ) + + col0 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - - 97 * + + col1 AND + + col0 * col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT - MIN( + 68 ) AS col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT - MIN ( + 68 ) AS col0 FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL + COUNT( * ) * 33 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + COUNT ( * ) * 33 FROM tab2 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + col1 AS col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT - 76 * + - 55 FROM tab1
----
4180

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT ALL ( - 68 ) * - + COUNT( * ), + 79 AS col2 FROM tab1
----
204
79

skipif mysql # not compatible
query II rowsort label-8701
SELECT ALL ( - 68 ) * - + COUNT ( * ), + 79 AS col2 FROM tab1
----
204
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT IN ( 19 + + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT 35 DIV + col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8703
SELECT 35 / + col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col0 * 66 * + col1 FROM tab0
----
120582
6402
80190

query III rowsort
SELECT * FROM tab0 WHERE NOT 88 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 39, col2 AS col0 FROM tab1
----
39
59
39
68
39
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT - ( - MIN( DISTINCT + - 60 ) ) col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8708
SELECT - ( - MIN ( DISTINCT + - 60 ) ) col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-60

query I rowsort
SELECT DISTINCT - 16 * + + col2 FROM tab2 AS cor0
----
-368
-640
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + 52 + - COUNT( * ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8710
SELECT + 52 + - COUNT ( * ) FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL + 98 + col1 FROM tab0 AS cor0
----
119
179
99

query II rowsort
SELECT 86, + col2 FROM tab2 AS cor0
----
86
23
86
40
86
58

query I rowsort
SELECT + 61 * + col2 * - 85 AS col1 FROM tab0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 / 66 + - 99 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8716
SELECT * FROM tab1 WHERE + 18 * - CAST( NULL AS DECIMAL ) + + col1 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8716
SELECT * FROM tab1 WHERE + 18 * - CAST ( NULL AS REAL ) + + col1 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT DISTINCT 99 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
99

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT 99 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
99

query I rowsort
SELECT DISTINCT - + col1 * - 57 - col0 * - 92 AS col2 FROM tab1 AS cor0
----
11051
5490
8105

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT DISTINCT - ( - - COUNT( * ) ), - 81 AS col0 FROM tab0 AS cor0
----
-3
-81

skipif mysql # not compatible
query II rowsort label-8719
SELECT DISTINCT - ( - - COUNT ( * ) ), - 81 AS col0 FROM tab0 AS cor0
----
-3
-81

query II rowsort
SELECT DISTINCT 68 AS col1, ( + 25 ) * - col1 + - ( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
68
-1978
68
-515
68
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = - + 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT col2 + - col2 DIV 26 FROM tab1 AS cor0
----
57
66
93

skipif mysql # not compatible
query I rowsort label-8722
SELECT col2 + - col2 / 26 FROM tab1 AS cor0
----
57
66
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT col2 * 87 AS col0 FROM tab2 WHERE + col1 IS NOT NULL
----
2001
3480
5046

query I rowsort
SELECT + col2 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT ALL col2 + 21 - col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL col2 + 21 - col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT + col1 * col2 * - - col1 * CAST( NULL AS SIGNED ) * 13 + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT + col1 * col2 * - - col1 * CAST ( NULL AS INTEGER ) * 13 + col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8728
SELECT MIN( DISTINCT - ( + col1 ) ) col1, - 2 FROM tab0
----
-81
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8728
SELECT MIN ( DISTINCT - ( + col1 ) ) col1, - 2 FROM tab0
----
-81
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + ( - - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8729
SELECT + ( - - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 60 * + 47 AS col1 FROM tab2
----
2820
2820
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - MIN( - - 30 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-30

skipif mysql # not compatible
query I rowsort label-8731
SELECT - MIN ( - - 30 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-30

query I rowsort
SELECT + col2 * + 95 FROM tab0
----
4465
9405
950

query I rowsort
SELECT - 24 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * - ( - + 46 ) * + 36 col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL BETWEEN - 95 AND - + col2 )
----

query I rowsort
SELECT DISTINCT - col1 * - ( + 30 ) FROM tab2 AS cor0
----
1530
2010
2310

query II rowsort
SELECT 46 AS col2, col1 AS col1 FROM tab1 AS cor0
----
46
14
46
47
46
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 col1, col1 * + - col1 FROM tab0 AS cor0
----
33
-1
33
-441
33
-6561

query I rowsort
SELECT DISTINCT 65 * + - col0 FROM tab2 AS cor0
----
-2990
-4160
-4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 68 * + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

query II rowsort
SELECT ALL - col2 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + SUM( + 95 ) AS col2 FROM tab2 cor0
----
285

skipif mysql # not compatible
query I rowsort label-8743
SELECT + SUM ( + 95 ) AS col2 FROM tab2 cor0
----
285

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8744
SELECT DISTINCT + col0 * + col1, 52 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-8744
SELECT DISTINCT + col0 * + col1, 52 / CAST ( NULL AS REAL ) AS col1 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

query I rowsort
SELECT DISTINCT - ( 16 ) FROM tab1
----
-16

query I rowsort
SELECT DISTINCT col2 + - + 33 * + col2 AS col1 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8747
SELECT + COUNT( * ) DIV - 28 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT + COUNT ( * ) / - 28 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + 31 * - COUNT( * ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8748
SELECT + 31 * - COUNT ( * ) FROM tab2
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8749
SELECT DISTINCT * FROM tab0 WHERE - col0 + col1 <> ( col2 / - + col0 + - CAST( NULL AS DECIMAL ) + + 29 )
----

skipif mysql # not compatible
query III rowsort label-8749
SELECT DISTINCT * FROM tab0 WHERE - col0 + col1 <> ( col2 / - + col0 + - CAST ( NULL AS REAL ) + + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + COUNT( 66 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8750
SELECT + COUNT ( 66 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT + - 88 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8751
SELECT + - 88 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-264

query III rowsort
SELECT DISTINCT + ( - 98 ) AS col2, col1, - col0 FROM tab2 AS cor0
----
9 values hashing to 4f2e9d151dceaec4ab2a449184b6295b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - - 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT DISTINCT + MAX( DISTINCT + + col2 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + MAX ( DISTINCT + + col2 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 78 AS col0 FROM tab1 cor0 WHERE ( NOT + 92 IS NOT NULL )
----

query I rowsort
SELECT ALL + ( col0 ) FROM tab2 AS cor0 WHERE ( ( NOT col0 + 57 IS NULL ) )
----
46
64
75

query I rowsort
SELECT - - 14 + + + 0 * - 46 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 * - col2 - - + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT 42 + + SUM( ALL - - col2 ) + - + MIN( + ( col0 ) ) * - - MAX( - col0 ) * COUNT( * ) AS col1 FROM tab1
----
8068

skipif mysql # not compatible
query I rowsort label-8759
SELECT 42 + + SUM ( ALL - - col2 ) + - + MIN ( + ( col0 ) ) * - - MAX ( - col0 ) * COUNT ( * ) AS col1 FROM tab1
----
8068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 67 col0 FROM tab2
----
107
125
90

query I rowsort
SELECT DISTINCT - - 88 + - 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 50 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 * + - 44 col2 FROM tab1 AS cor0
----
-215424
-220660
-272272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8764
SELECT COUNT( * ) DIV + 51 + 91 FROM tab2 cor0 WHERE - CAST( col2 AS SIGNED ) >= col2
----
91

skipif mysql # not compatible
query I rowsort label-8764
SELECT COUNT ( * ) / + 51 + 91 FROM tab2 cor0 WHERE - CAST ( col2 AS INTEGER ) >= col2
----
91

query II rowsort
SELECT ALL + - col2, - col2 AS col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT col2 * + + col2 - + - col0 AS col0 FROM tab1
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL COUNT( * ) + + 49 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL COUNT ( * ) + + 49 FROM tab1
----
52

query I rowsort
SELECT ALL + col1 * - - col2 + - col1 FROM tab0
----
189
3726
98

query I rowsort
SELECT - col1 - + - col0 AS col2 FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT - - COUNT( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - - COUNT ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT - CAST( NULL AS SIGNED ) * + ( ( - + col1 ) ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT - CAST ( NULL AS INTEGER ) * + ( ( - + col1 ) ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT MAX( + 41 ) col2 FROM tab2
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8774
SELECT DISTINCT MAX ( + 41 ) col2 FROM tab2
----
41

query I rowsort
SELECT ALL - col0 * + 67 * col2 FROM tab2
----
-171520
-291450
-70886

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL COUNT( * ) * + - 6 * ( 17 ) AS col2 FROM tab2 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL COUNT ( * ) * + - 6 * ( 17 ) AS col2 FROM tab2 AS cor0
----
-306

query I rowsort
SELECT - 12 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> - col1 - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8778
SELECT ALL 43 + - col0 * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL 43 + - col0 * - - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT + MAX( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8779
SELECT + MAX ( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / + - col2 + + + col2 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NULL <= + col2
----

query I rowsort
SELECT DISTINCT + col0 + col2 + - + col1 AS col0 FROM tab0
----
-19
195
76

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + col1 * - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col1 * - + col2 + - col2 > + + col0
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE NOT + col0 + ( + 71 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * - - 69 FROM tab0 AS cor0
----
1449
5589
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT ALL 62 DIV - 20 col2 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8788
SELECT ALL 62 / - 20 col2 FROM tab2
----
-3
-3
-3

query II rowsort
SELECT + col1, col0 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8790
SELECT ALL - COUNT( ALL + 11 ) DIV + 66 * + 79 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - COUNT ( ALL + 11 ) / + 66 * + 79 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * col1 - + 71 AS col1 FROM tab0 AS cor0
----
-512
-6632
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT - - SUM( + 35 ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - - SUM ( + 35 ) FROM tab2 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT DISTINCT 39 DIV - 10 AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT 39 / - 10 AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8794
SELECT ( + col0 ) + + - CAST( - 99 AS SIGNED ) + ( - 14 ) DIV - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
150
184
190

skipif mysql # not compatible
query I rowsort label-8794
SELECT ( + col0 ) + + - CAST ( - 99 AS INTEGER ) + ( - 14 ) / - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
150
184
190

query I rowsort
SELECT ALL + + 46 AS col1 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8796
SELECT - + col0 + + - col1 + CAST( NULL AS SIGNED ), + 20 col2 FROM tab0 AS cor0
----
NULL
20
NULL
20
NULL
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8796
SELECT - + col0 + + - col1 + CAST ( NULL AS INTEGER ), + 20 col2 FROM tab0 AS cor0
----
NULL
20
NULL
20
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - MIN( - col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8797
SELECT - MIN ( - col1 ) AS col1 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT col2 AS col1 FROM tab0 WHERE NOT col2 / - + CAST( + ( + col1 ) AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-8798
SELECT col2 AS col1 FROM tab0 WHERE NOT col2 / - + CAST ( + ( + col1 ) AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8799
SELECT DISTINCT col1, + CAST( + 20 AS SIGNED ) * - ( + col0 ) AS col2 FROM tab0
----
1
-1940
21
-1740
81
-300

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT col1, + CAST ( + 20 AS INTEGER ) * - ( + col0 ) AS col2 FROM tab0
----
1
-1940
21
-1740
81
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT + ( + SUM( DISTINCT col1 ) ) FROM tab0 WHERE NOT - 96 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + ( + SUM ( DISTINCT col1 ) ) FROM tab0 WHERE NOT - 96 IS NULL
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT AVG ( DISTINCT + 96 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 72 - 58 + - col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT AVG ( DISTINCT + 96 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 72 - 58 + - col2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT COUNT( + + col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8802
SELECT COUNT ( + + col1 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col2 * - ( - col0 ) AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col2 * - ( - col0 ) AND - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL SUM( + col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL SUM ( + col2 ) AS col0 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT - COUNT( * ) * + + 82, MIN( + col1 ) * COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8805
SELECT - COUNT ( * ) * + + 82, MIN ( + col1 ) * COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
NULL

query I rowsort
SELECT 56 AS col1 FROM tab2 AS cor0 WHERE NOT ( 65 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 7 / - col1, - 3 FROM tab1 AS cor0 WHERE NOT col0 * + 8 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - col1 + 32 FROM tab2 AS cor0
----
19
27
40

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL = + col1 * - - 75
----

query II rowsort
SELECT - col1, ( + + col1 ) FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL + 53 * 82 + + COUNT( * ) FROM tab0
----
4349

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + 53 * 82 + + COUNT ( * ) FROM tab0
----
4349

query I rowsort
SELECT 88 * + col1 AS col0 FROM tab0
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT MIN( - col1 ) + - COUNT( * ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT MIN ( - col1 ) + - COUNT ( * ) FROM tab2
----
-80

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 31 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL COUNT( ALL - - 63 ) + - 0 col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT ALL COUNT ( ALL - - 63 ) + - 0 col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 61 * 77 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 61 * 77 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT - col0 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT - col0 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col0 * col2 - - - 61 AS col0 FROM tab1 AS cor0
----
-4957
-5076
-6249

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL - MAX( - + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - MAX ( - + col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT + SUM( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8827
SELECT col0 * - CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8827
SELECT col0 * - CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT - 65 * - col2 AS col2, col2 AS col1 FROM tab1
----
3835
59
4420
68
6240
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT DISTINCT + col1 * col2 DIV + 77 FROM tab0
----
1
2
49

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT + col1 * col2 / + 77 FROM tab0
----
1
2
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8830
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1, col2, - + CAST( - 56 AS SIGNED ), + + col1 )
----

skipif mysql # not compatible
query III rowsort label-8830
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1, col2, - + CAST ( - 56 AS INTEGER ), + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT + MAX( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT + MAX ( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + - 28 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT DISTINCT + 8 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT + 8 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8835
SELECT + SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8836
SELECT ALL * FROM tab2 cor0 WHERE CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8836
SELECT ALL * FROM tab2 cor0 WHERE CAST ( - - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col2 * + - col1 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT - 80 * 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 20d43f794fc5fbe8be619fb60ac948b0

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + ( + SUM( + 5 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8839
SELECT + ( + SUM ( + 5 ) ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT + - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL MAX( col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL MAX ( col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 67 + - 26 FROM tab2 AS cor0
----
41

query I rowsort
SELECT + + ( - + 60 ) AS col0 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT DISTINCT - + col2 / 0 * - 4 FROM tab1 AS cor0 WHERE + CAST( 35 AS SIGNED ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT - + col2 / 0 * - 4 FROM tab1 AS cor0 WHERE + CAST ( 35 AS INTEGER ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8845
SELECT col2 + + CAST( + 49 AS SIGNED ) AS col1, - col1 AS col1 FROM tab0 AS cor0
----
148
-1
59
-21
96
-81

skipif mysql # not compatible
query II rowsort label-8845
SELECT col2 + + CAST ( + 49 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 AS cor0
----
148
-1
59
-21
96
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT ALL - + col1 * - col1 + - 66 + - - 29 * ( col2 ) DIV col1 AS col2 FROM tab1 AS cor0
----
2184
301
328

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL - + col1 * - col1 + - 66 + - - 29 * ( col2 ) / col1 AS col2 FROM tab1 AS cor0
----
2184
301
328

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - SUM( - 64 ) + - 63 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-8847
SELECT - SUM ( - 64 ) + - 63 FROM tab1 AS cor0
----
129

query I rowsort
SELECT DISTINCT - col1 * col0 * + col2 + col2 * - + 37 FROM tab1
----
-27258
-293352
-72096

onlyif mysql # aggregate syntax: 
query II rowsort label-8849
SELECT + COUNT( * ) * + + SUM( + ( - - col1 ) ) AS col0, + MIN( ALL + - ( 3 ) ) FROM tab2 AS cor0
----
585
-3

skipif mysql # not compatible
query II rowsort label-8849
SELECT + COUNT ( * ) * + + SUM ( + ( - - col1 ) ) AS col0, + MIN ( ALL + - ( 3 ) ) FROM tab2 AS cor0
----
585
-3

query I rowsort
SELECT DISTINCT - 55 * col0 + + col1 - 3 - col2 AS col2 FROM tab2 AS cor0
----
-2505
-3486
-4119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT DISTINCT - MIN( - ( + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT - MIN ( - ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT + - col1 DIV 48 + col1 AS col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8852
SELECT + - col1 / 48 + col1 AS col1 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT 87 * - col0 * - 77 FROM tab2 AS cor0
----
308154
428736
502425

query I rowsort
SELECT DISTINCT 1 * - - ( - + col1 ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + ( - - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - ( + + col1 ) FROM tab0 cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col0 FROM tab2 AS cor0
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 <= + col2 * + + col2 * - col0 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 = ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 54 ) * + 56 FROM tab0
----
3024
3024
3024

query I rowsort
SELECT DISTINCT 92 + - 15 + + col0 + - col1 FROM tab1 WHERE NOT ( + 51 >= - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT COUNT( ALL + - 29 ) * + + COUNT( * ) * - 87 * - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
2349

skipif mysql # not compatible
query I rowsort label-8863
SELECT COUNT ( ALL + - 29 ) * + + COUNT ( * ) * - 87 * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
2349

query II rowsort
SELECT DISTINCT - 97, + col1 AS col1 FROM tab0
----
-97
1
-97
21
-97
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + + MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8866
SELECT + + MAX ( - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - COUNT( * ) + - + 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-8869
SELECT - COUNT ( * ) + - + 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col2 / - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col2 / - col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 + + col0 + + col2 FROM tab2
----
18
27
66

query I rowsort
SELECT 19 + - + col0 FROM tab2 AS cor0
----
-27
-45
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL COUNT( DISTINCT + 54 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL COUNT ( DISTINCT + 54 ) AS col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT + col2 AS col0, col2 AS col2 FROM tab2 AS cor0 WHERE col0 + - col0 <= - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT SUM( DISTINCT + 88 ) AS col0 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-8876
SELECT SUM ( DISTINCT + 88 ) AS col0 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL 66 + - COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL 66 + - COUNT ( * ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + COUNT( + - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8878
SELECT + COUNT ( + - col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT DISTINCT - 84 + COUNT( * ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8879
SELECT DISTINCT - 84 + COUNT ( * ) col0 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-8880
SELECT DISTINCT col1 * col2 DIV - - col1 + + col2 AS col0, col0 * + col1 * 8 AS col2 FROM tab2
----
116
40200
46
18768
80
39424

skipif mysql # not compatible
query II rowsort label-8880
SELECT DISTINCT col1 * col2 / - - col1 + + col2 AS col0, col0 * + col1 * 8 AS col2 FROM tab2
----
116
40200
46
18768
80
39424

query I rowsort
SELECT - col2 - + 90 FROM tab0
----
-100
-137
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-8882
SELECT ALL - col1 DIV - col0 - 24 FROM tab1
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - col1 / - col0 - 24 FROM tab1
----
-24
-24
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE + 43 - + + col0 * + + 79 - col0 < NULL
----

query I rowsort
SELECT ALL col2 + - 67 FROM tab1
----
-8
1
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 + col1 * + 89 col0 FROM tab1 cor0
----
1216
415
4153

query I rowsort
SELECT + 60 * + col2 + col0 FROM tab0 cor0
----
2835
6037
687

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE + col2 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL 35 + + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-2081
-4061
-5590

query I rowsort
SELECT - 2 + - + col1 AS col0 FROM tab2 AS cor0
----
-53
-69
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT - MIN( ALL + - 18 ), MAX( + ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8891
SELECT - MIN ( ALL + - 18 ), MAX ( + ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8892
SELECT ALL - MIN( ALL col0 ) AS col0, 36 AS col0 FROM tab2 AS cor0
----
-46
36

skipif mysql # not compatible
query II rowsort label-8892
SELECT ALL - MIN ( ALL col0 ) AS col0, 36 AS col0 FROM tab2 AS cor0
----
-46
36

query I rowsort
SELECT 54 * + - col2 AS col2 FROM tab1 cor0
----
-3186
-3672
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - MAX( DISTINCT - 89 ) * + 69 FROM tab2
----
6141

skipif mysql # not compatible
query I rowsort label-8894
SELECT - MAX ( DISTINCT - 89 ) * + 69 FROM tab2
----
6141

query I rowsort
SELECT DISTINCT col1 * col2 * - col1 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT 18 * - + col0 FROM tab2
----
-1152
-1350
-828

query I rowsort
SELECT ALL + 23 * + col2 AS col2 FROM tab2
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + SUM( DISTINCT + 89 ) AS col2 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-8898
SELECT + SUM ( DISTINCT + 89 ) AS col2 FROM tab1
----
89

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 68 * + 58 FROM tab0
----
3944
3944
3944

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col0 ) * + 77 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > + 56
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( 5 * + col2, - 95 - col0 + col2 * + 81, + 4, + col0 * 25 + + 43 * 84, col2, + 22 )
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2 / + + ( - 68 )
----

query I rowsort
SELECT + 2 * - col0 - + col0 * + col1 * + 15 AS col0 FROM tab1 AS cor0
----
-10812
-64337
-6545

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8907
SELECT ALL + CAST( NULL AS SIGNED ), col2 DIV - - col1 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
99

skipif mysql # not compatible
query II rowsort label-8907
SELECT ALL + CAST ( NULL AS INTEGER ), col2 / - - col1 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - COUNT( * ) + MIN( DISTINCT + + 15 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8909
SELECT - COUNT ( * ) + MIN ( DISTINCT + + 15 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT + + 59 + col0 + + 51 AS col2 FROM tab2 AS cor0
----
156
174
185

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT ALL - col2 DIV + - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL - col2 / + - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT - ( + - CAST( NULL AS SIGNED ) ) + ( - - 76 ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT - ( + - CAST ( NULL AS INTEGER ) ) + ( - - 76 ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT DISTINCT + + col0 DIV - + 41 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT + + col0 / - + 41 FROM tab0 AS cor0
----
-2
0

query II rowsort
SELECT DISTINCT - col2, + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 <= + 13
----
-10
10
-47
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8915
SELECT DISTINCT 81 * + CAST( NULL AS DECIMAL ) + MIN( - 66 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT 81 * + CAST ( NULL AS REAL ) + MIN ( - 66 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 64 FROM tab1 WHERE NOT NULL BETWEEN - + 69 * + + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT ALL 48 - - col2 * col0 FROM tab2
----
1106
2608
4398

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8919
SELECT DISTINCT CAST( NULL AS DECIMAL ) - 71 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT CAST ( NULL AS REAL ) - 71 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT + 14 - + 26 DIV - col0 * 37 AS col2 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8920
SELECT + 14 - + 26 / - col0 * 37 AS col2 FROM tab1 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 - - ( col1 ) col0 FROM tab0 AS cor0
----
18
38
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - col1, col2, col0 * + col1 )
----
97
1
99

query II rowsort
SELECT - col1 AS col0, - col1 * ( + - 57 ) * - col2 FROM tab1
----
-14
-76608
-47
-182172
-5
-16815

query II rowsort
SELECT - col0, col0 + - col0 AS col2 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - ( + - col0 ) col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT COUNT( DISTINCT - 37 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8926
SELECT COUNT ( DISTINCT - 37 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT 44 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col2 * col2 + + ( + col0 )
----

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - col2 * - + 12 AS col2 FROM tab0 AS cor0
----
1188
120
564

query I rowsort
SELECT - 36 * - - col1 * col2 FROM tab0
----
-137052
-3564
-7560

query II rowsort
SELECT DISTINCT ( + col2 ) / + 15, 82 * - + col2 / + 2 FROM tab1 WHERE NULL BETWEEN + col2 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8932
SELECT DISTINCT 43 * - 7 + + ( + + CAST( NULL AS SIGNED ) ), 33 - - + COUNT( * ) AS col0 FROM tab0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-8932
SELECT DISTINCT 43 * - 7 + + ( + + CAST ( NULL AS INTEGER ) ), 33 - - + COUNT ( * ) AS col0 FROM tab0
----
NULL
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col1 ) + - 43 <= - + col1
----

query II rowsort
SELECT - col1 + col0, + col1 FROM tab1 AS cor0
----
37
14
44
47
80
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT col0 DIV + - col2 + - 3 FROM tab1
----
-3
-4
-4

skipif mysql # not compatible
query I rowsort label-8936
SELECT col0 / + - col2 + - 3 FROM tab1
----
-3
-4
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8937
SELECT DISTINCT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT DISTINCT col2 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT - - col0 - + + 45 AS col2 FROM tab1 AS cor0
----
40
46
6

query I rowsort
SELECT ALL - 41 * col0 FROM tab0 cor0
----
-3567
-3977
-615

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT DISTINCT 32 DIV col2 AS col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT 32 / col2 AS col2 FROM tab0 AS cor0
----
0
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT + 17 DIV - + col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8943
SELECT + 17 / - + col2 FROM tab0 cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT + col2 * - - col1 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT + col2 * - - col1 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + 59 - + col2 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL - 32 + + COUNT( * ) AS col1 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL - 32 + + COUNT ( * ) AS col1 FROM tab2
----
-29

query I rowsort
SELECT ALL - 88 + col1 + - col0 AS col1 FROM tab2
----
-75
-83
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + COUNT( * ) + MIN( DISTINCT 70 ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-8948
SELECT + COUNT ( * ) + MIN ( DISTINCT 70 ) AS col2 FROM tab0
----
73

query II rowsort
SELECT ALL 61 AS col2, + col2 AS col1 FROM tab2 AS cor0 WHERE col1 + - + ( + - col0 ) - + - 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + COUNT( * ) - + - ( + - 21 ) FROM tab0 AS cor0 WHERE NOT + 31 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-8950
SELECT + COUNT ( * ) - + - ( + - 21 ) FROM tab0 AS cor0 WHERE NOT + 31 IS NOT NULL
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT + MIN( + CAST( - + 75 AS SIGNED ) ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8951
SELECT + MIN ( + CAST ( - + 75 AS INTEGER ) ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT ALL + - 10 - - 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT - + col0 / - + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 / - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8954
SELECT - + col0 / - + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 / - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8955
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col1, + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8955
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1, + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
-3

query I rowsort
SELECT 2 + + + col2 * - 48 AS col2 FROM tab0
----
-2254
-4750
-478

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 53 + + + 1 + col2 > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 31 * + 8 AS col2 FROM tab2
----
248
248
248

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT 63 > 35 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + MIN( - + 68 ) AS col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8961
SELECT + MIN ( - + 68 ) AS col0 FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT - COUNT( * ) DIV + ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8962
SELECT - COUNT ( * ) / + ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8963
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - col0 = - CAST( + 5 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8963
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - col0 = - CAST ( + 5 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + col1 ) * - 74 FROM tab0
----
1554
5994
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col0 FROM tab0 WHERE NOT 55 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 WHERE NOT 55 IS NOT NULL
----
0

query I rowsort
SELECT col0 * - col0 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND 37 / + 58
----

query I rowsort
SELECT col0 + - 66 FROM tab1
----
-15
19
25

query I rowsort
SELECT ALL 0 * 19 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT COUNT( * ) * + 30 + - COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT COUNT ( * ) * + 30 + - COUNT ( * ) FROM tab2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT DISTINCT - 97 DIV ( + ( COUNT( * ) ) * - 28 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT - 97 / ( + ( COUNT ( * ) ) * - 28 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL COUNT( * ) - + 36 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL COUNT ( * ) - + 36 FROM tab1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT 81 DIV + 56 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8972
SELECT 81 / + 56 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + MIN( DISTINCT + 36 ) + - 88 FROM tab1 WHERE NULL IS NULL
----
-52

skipif mysql # not compatible
query I rowsort label-8973
SELECT + MIN ( DISTINCT + 36 ) + - 88 FROM tab1 WHERE NULL IS NULL
----
-52

query I rowsort
SELECT 89 * + 72 FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * 10 AS col1 FROM tab1
----
590
680
960

query I rowsort
SELECT DISTINCT - 45 - + col1 FROM tab1
----
-50
-59
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE - 32 * 65 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8979
SELECT ALL - 63 DIV + COUNT( col1 * col1 ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - 63 / + COUNT ( col1 * col1 ) AS col0 FROM tab2
----
-21

query I rowsort
SELECT 49 - + col0 AS col0 FROM tab2
----
-15
-26
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 30 * - 47 - - col2 AND - 85
----

query I rowsort
SELECT - col1 * - 31 AS col0 FROM tab2
----
1581
2077
2387

query I rowsort
SELECT - 93 * col0 AS col0 FROM tab0
----
-1395
-8091
-9021

query I rowsort
SELECT + 10 * 63 FROM tab1
----
630
630
630

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 19 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 - - 40 AS col2 FROM tab1
----
125
131
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 78 + 69 col0 FROM tab1
----
-3909
-6561
-7029

query I rowsort
SELECT DISTINCT + 24 + 60 FROM tab2
----
84

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col0 / col1 NOT BETWEEN ( col1 ) AND - 27 * col0
----
46
64
75

query I rowsort
SELECT DISTINCT ( 51 ) FROM tab1 cor0
----
51

query I rowsort
SELECT + col2 + col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) = ( + 81 ) * + col2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT + ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT ( + 9 ) > - col0
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT + ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT ( + 9 ) > - col0
----
0

query I rowsort
SELECT + col1 + col0 FROM tab1 WHERE NOT NULL = + col0 / + col1 + + col0
----

query I rowsort
SELECT ALL + 43 * + col1 AS col1 FROM tab1
----
2021
215
602

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8996
SELECT ALL col1 FROM tab2 cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - MAX( col1 ) + - 96 col2 FROM tab1 cor0
----
-143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT - MAX ( col1 ) + - 96 col2 FROM tab1 cor0
----
-143

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 94 + - 40 AS col2 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL + SUM( 54 ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + SUM ( 54 ) FROM tab0 AS cor0
----
162

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 + - 50 col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - - col2 * - 92 FROM tab1 AS cor0
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + COUNT( * ) + MAX( + col2 ) AS col1 FROM tab1 WHERE NULL <= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT + COUNT ( * ) + MAX ( + col2 ) AS col1 FROM tab1 WHERE NULL <= col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * - col2 ) >= col1 / 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 12 + + + col2 + col2 * + 65 AS col1 FROM tab2
----
1530
2652
3840

query I rowsort
SELECT + col2 * 88 AS col0 FROM tab2
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL + SUM( DISTINCT + 32 ) + COUNT( * ) AS col2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL + SUM ( DISTINCT + 32 ) + COUNT ( * ) AS col2 FROM tab2
----
35

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9011
SELECT - ( 79 ) DIV - col0 + - col0 * - col0 FROM tab2 AS cor0
----
2117
4097
5626

skipif mysql # not compatible
query I rowsort label-9011
SELECT - ( 79 ) / - col0 + - col0 * - col0 FROM tab2 AS cor0
----
2117
4097
5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col0 ) col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col0 + - 76 FROM tab1
----
-25
15
9

query I rowsort
SELECT DISTINCT - col2 + - + col0 * col1 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT ALL col0 * + col2 - col2 FROM tab1
----
4800
4956
6120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col1 ) col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) * + 15 * - MIN( col0 ) AS col2 FROM tab2 AS cor0
----
2073

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) * + 15 * - MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
2073

query I rowsort
SELECT + + 47 - + col0 * col0 AS col0 FROM tab1 AS cor0
----
-2554
-7178
-8234

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN - col2 * + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 + 0 / + col0 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 10 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT ALL + ( + 96 ) * col0 DIV 26 + + 46 FROM tab2 AS cor0
----
215
282
322

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + ( + 96 ) * col0 / 26 + + 46 FROM tab2 AS cor0
----
215
282
322

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT MIN( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 + 73 NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT MIN ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 + 73 NOT IN ( col1 )
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND ( 83 - col2 ) AND col0 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 NOT BETWEEN - col2 AND 33
----

query I rowsort
SELECT ALL 80 * - col1 AS col1 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT MIN( + ( col2 ) ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT MIN ( + ( col2 ) ) col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL + MIN( col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + MIN ( col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9029
SELECT COUNT( * ) DIV 76 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT COUNT ( * ) / 76 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + ( - + col0 ) * col0 + + 48 FROM tab1
----
-2553
-7177
-8233

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT 11 DIV + 34 * - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT 11 / + 34 * - col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9032
SELECT ALL * FROM tab2 WHERE - - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9032
SELECT ALL * FROM tab2 WHERE - - CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL + MAX( 84 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + MAX ( 84 ) FROM tab2 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 32 col0 FROM tab2 cor0
----
-32
-32
-32

query I rowsort
SELECT + ( 49 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( 29 ) > ( NULL )
----

query I rowsort
SELECT col2 * 23 * + col0 FROM tab1 AS cor0
----
112608
115345
142324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT - ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT - ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL 83 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL 83 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-249

query I rowsort
SELECT ALL 20 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 46 * 1 / + - col2 )
----

query I rowsort
SELECT ( - 75 ) AS col0 FROM tab1 AS cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 * - col0 + 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9042
SELECT + ( COUNT( * ) ) * + + MIN( CAST( col1 AS SIGNED ) ) - - 35 AS col0 FROM tab2 cor0
----
188

skipif mysql # not compatible
query I rowsort label-9042
SELECT + ( COUNT ( * ) ) * + + MIN ( CAST ( col1 AS INTEGER ) ) - - 35 AS col0 FROM tab2 cor0
----
188

query II rowsort
SELECT col1 AS col2, - col0 + + col0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT - 82 * - + col2 + + col1 FROM tab2 AS cor0
----
1937
3357
4823

query I rowsort
SELECT - 25 AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9046
SELECT * FROM tab2 WHERE NULL IN ( CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9046
SELECT * FROM tab2 WHERE NULL IN ( CAST ( + col0 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND ( NULL )
----

query I rowsort
SELECT + 57 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT MIN( - 96 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT MIN ( - 96 ) AS col1 FROM tab0
----
-96

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + 70 AS col0 FROM tab0
----
151
71
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT col0 + + - col1 + - col1 * CAST( - 43 AS SIGNED ) * + - 72 * + col1 AS col0 FROM tab2
----
-13897936
-18356197
-8052701

skipif mysql # not compatible
query I rowsort label-9052
SELECT col0 + + - col1 + - col1 * CAST ( - 43 AS INTEGER ) * + - 72 * + col1 AS col0 FROM tab2
----
-13897936
-18356197
-8052701

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + ( + - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + ( + - COUNT ( * ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + + col0 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9057
SELECT DISTINCT 56 AS col2, CAST( - + 44 AS SIGNED ) DIV - col2 - - + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
56
59
56
68
56
96

skipif mysql # not compatible
query II rowsort label-9057
SELECT DISTINCT 56 AS col2, CAST ( - + 44 AS INTEGER ) / - col2 - - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
56
59
56
68
56
96

query I rowsort
SELECT ALL col2 + 68 FROM tab1
----
127
136
164

query I rowsort
SELECT - col1 * - 38 * + - 42 FROM tab2 AS cor0
----
-106932
-122892
-81396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL col2 + + 13 + + 79 FROM tab2
----
115
132
150

query I rowsort
SELECT DISTINCT col2 + + ( 95 ) AS col1 FROM tab1
----
154
163
191

query I rowsort
SELECT - col2 * - col2 - - col0 * + 35 AS col0 FROM tab0
----
13196
2734
3145

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT - SUM( ALL + - 72 ) + + 76 FROM tab1
----
292

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT - SUM ( ALL + - 72 ) + + 76 FROM tab1
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL - - ( - COUNT( DISTINCT + 34 ) ) - + COUNT( * ) - - + ( + - 38 ) AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - - ( - COUNT ( DISTINCT + 34 ) ) - + COUNT ( * ) - - + ( + - 38 ) AS col1 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL + - COUNT( * ) - SUM( ALL - col1 ) + + + SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + - COUNT ( * ) - SUM ( ALL - col1 ) + + + SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 15 col1 FROM tab0 cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - ( - 36 ) FROM tab0 AS cor0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT ALL 50 * col2 * col1 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-73750
-7510600
-940800

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL 50 * col2 * col1 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-73750
-7510600
-940800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 79 ) col0, + col0 AS col0 FROM tab2 AS cor0
----
-79
46
-79
64
-79
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5, col2 col1 FROM tab2
----
-5
23
-5
40
-5
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + SUM( DISTINCT - 31 ) AS col1 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9073
SELECT + SUM ( DISTINCT - 31 ) AS col1 FROM tab2
----
-31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 56 + col0 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT 97 - MAX( - + col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT 97 - MAX ( - + col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - ( - + 89 ) AS col1 FROM tab1
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT ALL + - 79 DIV + - col1 FROM tab1 WHERE NOT + col2 IS NULL
----
1
15
5

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + - 79 / + - col1 FROM tab1 WHERE NOT + col2 IS NULL
----
1
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT - ( + COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9078
SELECT - ( + COUNT ( * ) ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT SUM( - - col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9079
SELECT SUM ( - - col0 ) col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-9080
SELECT + + COUNT( * ), MIN( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-9080
SELECT + + COUNT ( * ), MIN ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT - CAST( + - ( + + col0 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9081
SELECT - CAST ( + - ( + + col0 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
46
64
75

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE 60 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9083
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9084
SELECT DISTINCT COUNT( * ) * - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2, tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT + 39 - 92 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-53

query I rowsort
SELECT ALL + - col1 * 27 * + - col0 FROM tab1 AS cor0
----
11475
115479
19278

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 69 NOT BETWEEN 44 * - 41 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT COUNT( * ) + + ( + 11 ) AS col2 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9088
SELECT COUNT ( * ) + + ( + 11 ) AS col2 FROM tab1 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT + col2 * + col2 DIV col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9089
SELECT + col2 * + col2 / col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT ALL 46 * col2 AS col0, col1 FROM tab1 cor0
----
2714
5
3128
47
4416
14

query I rowsort
SELECT 23 * - 87 FROM tab1
----
-2001
-2001
-2001

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE + col2 IN ( col2 / - - col0 + + 19, - col0 )
----

query I rowsort
SELECT ALL col1 + - ( - - col1 ) * - + col1 FROM tab1
----
210
2256
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + col1 * + col2 * + + ( + 30 ) + + - 80 - + col1
----

query II rowsort
SELECT DISTINCT - col1 + - + 53 - col1, col0 * + 20 AS col2 FROM tab2
----
-155
920
-187
1500
-207
1280

query III rowsort
SELECT ALL * FROM tab1 WHERE - 21 IN ( 27, - 97 / - col2 )
----

query I rowsort
SELECT DISTINCT 36 + - + 51 AS col1 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + 64 <> - - 93 + - - col2 + + col1 + + 50 / - 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT - + COUNT( * ) * + - 50 + + COUNT( * ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9100
SELECT - + COUNT ( * ) * + - 50 + + COUNT ( * ) FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT - - SUM( DISTINCT + col0 ) * + + 11 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT - - SUM ( DISTINCT + col0 ) * + + 11 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9102
SELECT + 87 DIV + MIN( ALL + - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9102
SELECT + 87 / + MIN ( ALL + - col2 ) FROM tab0
----
0

query I rowsort
SELECT ALL 54 + - - 55 * - - col0 AS col1 FROM tab2
----
2584
3574
4179

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT - COUNT( * ), - ( + COUNT( * ) ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9104
SELECT - COUNT ( * ), - ( + COUNT ( * ) ) FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT + COUNT( * ) * + 85 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT + COUNT ( * ) * + 85 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
258

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( - 95 ) * + col2 - - + col0 - + - col1 - col2 ) IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col1 FROM tab2 AS cor0
----
33

query II rowsort
SELECT DISTINCT col0, - col1 AS col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT ( + 26 ) + - 53 FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col0 FROM tab2 AS cor0 WHERE NOT - col2 IN ( + + col2 )
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9111
SELECT SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT col1 * + 68 * - - col2 AS col0 FROM tab1
----
20060
217328
91392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT ALL - COUNT( * ) * + + COUNT( * ) DIV + 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) / + 91 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * 55 * col0 + + - 16 AS col0 FROM tab1 WHERE NOT + 36 > NULL
----

query III rowsort
SELECT - col0 * + + col2, + col2 AS col0, col2 * - col0 + + + col2 - + col2 FROM tab2
----
9 values hashing to df378f7cdfcc9ee067f7b957f265b872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + 19 * - COUNT( * ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9117
SELECT + 19 * - COUNT ( * ) FROM tab2
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - - ( col0 ) col1 FROM tab2 cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 cor0 WHERE NOT - col1 + - + col1 BETWEEN - col2 AND - 70
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( 95 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT - + CAST( COUNT( DISTINCT - 66 ) AS SIGNED ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9121
SELECT - + CAST ( COUNT ( DISTINCT - 66 ) AS INTEGER ) FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 0 col2 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 * + + col1 + - col2 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL + col0 * + 44 * - ( + ( + col2 ) ) AS col1 FROM tab0
----
-31020
-38280
-422532

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - - 96 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT 57 DIV col1 * - col0 FROM tab0 AS cor0
----
-174
-5529
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT 57 / col1 * - col0 FROM tab0 AS cor0
----
-174
-5529
0

query I rowsort
SELECT ALL 22 + col1 + + col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL > NULL ) )
----

query I rowsort
SELECT DISTINCT + 84 * col0 FROM tab1 AS cor0
----
4284
7140
7644

query I rowsort
SELECT DISTINCT + 54 * 45 FROM tab0 AS cor0
----
2430

query I rowsort
SELECT + + col2 + + col0 + + 96 FROM tab0 AS cor0
----
158
193
292

query I rowsort
SELECT - 10 + - 94 FROM tab0 AS cor0
----
-104
-104
-104

query I rowsort
SELECT ALL 6 + - col0 - 60 AS col1 FROM tab0
----
-141
-151
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT 91 + - MAX( ALL + - col0 ) AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT 91 + - MAX ( ALL + - col0 ) AS col0 FROM tab0
----
106

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + 98 * + col2 * + + ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT ALL 45 * + COUNT( * ) col2, COUNT( * ) FROM tab1
----
135
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9136
SELECT ALL 45 * + COUNT ( * ) col2, COUNT ( * ) FROM tab1
----
135
3

query I rowsort
SELECT + col1 * + col0 - + col0 AS col0 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT + - ( - + 83 ) - + col1 AS col0 FROM tab0 cor0
----
2
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + 96 + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
105

skipif mysql # not compatible
query I rowsort label-9139
SELECT + 96 + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
105

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN + - col2 * - col1 AND ( - col0 * col1 * + + 67 - + col0 * + - col1 * - - col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + - col0 * + 44 + 34 AS col1 FROM tab1 AS cor0
----
215458
220694
272306

query I rowsort
SELECT ALL + + 12 AS col2 FROM tab0 AS cor0 WHERE - col0 * - 31 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT ALL - - col2 DIV col0 col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9143
SELECT ALL - - col2 / col0 col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + - 99 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT + CAST( + 41 AS SIGNED ) FROM tab0 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-9145
SELECT + CAST ( + 41 AS INTEGER ) FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE - col2 + - col0 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT - CAST( NULL AS SIGNED ) * + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9147
SELECT - CAST ( NULL AS INTEGER ) * + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT + MIN( - - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT + MIN ( - - col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 73
----

query II rowsort
SELECT ALL col0, 44 + - col2 + - ( col0 ) AS col2 FROM tab1
----
51
-103
85
-100
91
-115

query II rowsort
SELECT - 24 AS col1, col1 AS col0 FROM tab1
----
-24
14
-24
47
-24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT COUNT( * ) * + - 5 AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9153
SELECT COUNT ( * ) * + - 5 AS col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL - + MAX( + 0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - + MAX ( + 0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + 8, - col2 FROM tab1 AS cor0 WHERE NOT 32 >= + + 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9156
SELECT DISTINCT ( - CAST( + ( + 26 ) AS SIGNED ) ), 84 * + col1 AS col2 FROM tab0 AS cor0
----
-26
1764
-26
6804
-26
84

skipif mysql # not compatible
query II rowsort label-9156
SELECT DISTINCT ( - CAST ( + ( + 26 ) AS INTEGER ) ), 84 * + col1 AS col2 FROM tab0 AS cor0
----
-26
1764
-26
6804
-26
84

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT 8 + + - COUNT( * ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-9158
SELECT 8 + + - COUNT ( * ) AS col2 FROM tab0
----
5

query I rowsort
SELECT ALL + 37 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1887
2479
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9160
SELECT MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - 43 - + - COUNT( - 97 ) AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 43 - + - COUNT ( - 97 ) AS col2 FROM tab0
----
-40

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL IN ( - col1 * 65 )
----

query I rowsort
SELECT + ( + col0 ) * ( - col1 ) - col1 FROM tab1
----
-430
-4324
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ALL - MAX( + - col1 ) * MIN( - col0 ) + - + 44 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - MAX ( + - col1 ) * MIN ( - col0 ) + - + 44 FROM tab0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT DISTINCT col2 * col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT col2 * col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT DISTINCT 66 - - col2 + + col1 DIV - col0 FROM tab1 AS cor0
----
125
134
162

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT 66 - - col2 + + col1 / - col0 FROM tab1 AS cor0
----
125
134
162

query I rowsort
SELECT ALL + col0 - - - col2 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT + col0 * + col1 * col2 * + + 64 FROM tab2 AS cor0 WHERE NOT ( NULL ) > col2
----

query I rowsort
SELECT ALL 88 * - 4 AS col2 FROM tab0
----
-352
-352
-352

query I rowsort
SELECT + 40 * + - 35 AS col1 FROM tab1
----
-1400
-1400
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT ALL + 22 + - - col1 AS col2 FROM tab2 WHERE NOT col2 + + col2 + + + CAST( - 46 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + 22 + - - col1 AS col2 FROM tab2 WHERE NOT col2 + + col2 + + + CAST ( - 46 AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE - 8 * + col1 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT ALL + col2, col2 AS col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT - 17 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT ( - - COUNT( - + col2 ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9175
SELECT DISTINCT ( - - COUNT ( - + col2 ) ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 25 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT + SUM( ALL + col2 ) * 77 AS col2 FROM tab2 AS cor0
----
9317

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + SUM ( ALL + col2 ) * 77 AS col2 FROM tab2 AS cor0
----
9317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT CAST( NULL AS SIGNED ) * + 26 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT CAST ( NULL AS INTEGER ) * + 26 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 WHERE NOT - 9 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 9 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT DISTINCT 79 + + 19 + col0 DIV + col0 AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT 79 + + 19 + col0 / + col0 AS col1 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + + 38 FROM tab1
----
43
52
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9183
SELECT DISTINCT col2 DIV - + col2 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT col2 / - + col2 AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-3

query I rowsort
SELECT ALL - 36 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT + 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 79 + + - 31 AS col2 FROM tab0
----
48

query I rowsort
SELECT + 48 + - 78 FROM tab1 AS cor0 WHERE - col0 * + col2 = + col1 + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9189
SELECT - - col2 DIV + + col2 + - - col2 + + + col0 AS col1, col0 FROM tab0 AS cor0
----
197
97
63
15
98
87

skipif mysql # not compatible
query II rowsort label-9189
SELECT - - col2 / + + col2 + - - col2 + + + col0 AS col1, col0 FROM tab0 AS cor0
----
197
97
63
15
98
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - 20 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 66 + col1 - col0 FROM tab1
----
-14
22
29

query I rowsort
SELECT + 7 * - 45 FROM tab2 WHERE col2 * 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + CAST( - col2 AS SIGNED ) - - col0 * - col2 * + col0 / - col0 + - - 98 + - + 25 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + CAST ( - col2 AS INTEGER ) - - col0 * - col2 * + col0 / - col0 + - - 98 + - + 25 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT 62 * - COUNT( * ) FROM tab1 WHERE 94 IS NOT NULL
----
-186

skipif mysql # not compatible
query I rowsort label-9194
SELECT 62 * - COUNT ( * ) FROM tab1 WHERE 94 IS NOT NULL
----
-186

query I rowsort
SELECT ALL + col0 - col0 + + - col1 + - col0 AS col0 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT * FROM tab0 WHERE + 50 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + col2 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 38 NOT IN ( - col2 - 27 )
----

query I rowsort
SELECT DISTINCT 89 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT SUM( ALL - + col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9201
SELECT SUM ( ALL - + col1 ) AS col0 FROM tab0 cor0
----
-103

query I rowsort
SELECT DISTINCT + - col2 * - - 10 AS col0 FROM tab0 cor0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT + 43 + + - COUNT( * ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT + 43 + + - COUNT ( * ) FROM tab2 AS cor0
----
40

query II rowsort
SELECT ALL + col2 * 62, col0 AS col2 FROM tab0
----
2914
15
6138
97
620
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT 43 + - MAX( ALL 15 ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT 43 + - MAX ( ALL 15 ) AS col1 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT DISTINCT 38 + + 45 + + - 36 + ( - 65 ) + 60 * + 29 * - CAST( col1 AS SIGNED ) + - 65 FROM tab2 WHERE NOT ( - 1 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT 38 + + 45 + + - 36 + ( - 65 ) + 60 * + 29 * - CAST ( col1 AS INTEGER ) + - 65 FROM tab2 WHERE NOT ( - 1 ) >= NULL
----

query I rowsort
SELECT - col2 * + - 93 FROM tab0
----
4371
9207
930

query I rowsort
SELECT ( + col0 ) * - col0 AS col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT - 56 * - + col0 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT 13 * ( - + 84 ) AS col0 FROM tab2
----
-1092
-1092
-1092

query II rowsort
SELECT DISTINCT ( - + col0 ), + col2 FROM tab2
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT DISTINCT col0 + + 66 * + - ( col2 ) + + CAST( + 40 AS SIGNED ) + 96 * + + 99 FROM tab2 AS cor0
----
5791
6968
8072

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT col0 + + 66 * + - ( col2 ) + + CAST ( + 40 AS INTEGER ) + 96 * + + 99 FROM tab2 AS cor0
----
5791
6968
8072

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT MIN( + 48 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT MIN ( + 48 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 / - col1 + - ( + - col0 ) - - 3 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col1 * + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9216
SELECT ALL CAST( NULL AS DECIMAL ) * - + 13 - + - col1 FROM tab0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL CAST ( NULL AS REAL ) * - + 13 - + - col1 FROM tab0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT ALL - CAST( NULL AS SIGNED ) - + 57 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - CAST ( NULL AS INTEGER ) - + 57 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 60 ) FROM tab2 WHERE NULL IS NULL
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col0 + - 59 - - - col2 FROM tab0 AS cor0
----
-121
-156
-255

query I rowsort
SELECT DISTINCT + ( col1 ) - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - col0 - - + col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 31 >= NULL
----

query I rowsort
SELECT col1 - - - col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 31 col1, col0 AS col2 FROM tab2
----
31
46
31
64
31
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT COUNT( ALL 78 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9226
SELECT COUNT ( ALL 78 ) FROM tab1
----
3

query II rowsort
SELECT ALL + col1 AS col2, + col0 * + 25 AS col0 FROM tab2
----
51
1150
67
1875
77
1600

query II rowsort
SELECT DISTINCT 21, 5 + + col1 + + col2 AS col2 FROM tab1
----
21
115
21
120
21
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL > - 49 * + 27 + + + col2
----
0

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL > - 49 * + 27 + + + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9230
SELECT + col0 * - + CAST( NULL AS SIGNED ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9230
SELECT + col0 * - + CAST ( NULL AS INTEGER ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9231
SELECT col1 AS col2, 41 * - col0 DIV col0 FROM tab1 WHERE NOT ( NOT ( NOT + 97 IS NULL ) )
----
14
-41
47
-41
5
-41

skipif mysql # not compatible
query II rowsort label-9231
SELECT col1 AS col2, 41 * - col0 / col0 FROM tab1 WHERE NOT ( NOT ( NOT + 97 IS NULL ) )
----
14
-41
47
-41
5
-41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT DISTINCT 38 * - ( + COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-342

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT 38 * - ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + COUNT( DISTINCT + + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9234
SELECT + COUNT ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL + COUNT( * ) * - 55 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + COUNT ( * ) * - 55 FROM tab2 AS cor0
----
-165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * col2 col2 FROM tab1 cor0
----
-1020
-1440
-885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT CAST( 81 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-9237
SELECT CAST ( 81 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab1 WHERE ( - 85 * + col1 * + col2 + - 15 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( col0 ) + 58 FROM tab0
----
-29
-39
43

query I rowsort
SELECT + 9 * - col1 * 17 + + 42 FROM tab2
----
-10209
-11739
-7761

query I rowsort
SELECT col0 + + 82 + + + col0 * col1 FROM tab0
----
1312
1996
276

query I rowsort
SELECT ALL + col2 + - 67 FROM tab2
----
-27
-44
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col1 col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9244
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT 49 > NULL ) )
----

query I rowsort
SELECT DISTINCT - + col0 * + col1 + - - 80 FROM tab2 AS cor0
----
-2266
-4848
-4945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9247
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + ( + 34 ) AS col0 FROM tab0
----
133
44
81

query I rowsort
SELECT DISTINCT - col1 - + ( 29 ) FROM tab1
----
-34
-43
-76

query I rowsort
SELECT DISTINCT col2 + - col2 * - 36 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT col2 + + CAST( + 45 AS SIGNED ) col1 FROM tab1 AS cor0
----
104
113
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9251
SELECT col2 + + CAST ( + 45 AS INTEGER ) col1 FROM tab1 AS cor0
----
104
113
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + 22 * - col2 col2 FROM tab1 AS cor0
----
-1269
-1467
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT + ( - COUNT( * ) ) + - 27 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9253
SELECT + ( - COUNT ( * ) ) + - 27 FROM tab2 AS cor0
----
-30

query II rowsort
SELECT + col2 * + 14 AS col2, col0 FROM tab0 cor0
----
1386
97
140
87
658
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT - COUNT( * ) * - + COUNT( + col0 ) + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( + col0 ) + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - - 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9257
SELECT * FROM tab2 WHERE NOT - col1 / + ( - ( - - CAST( NULL AS SIGNED ) ) ) < - - col2
----

skipif mysql # not compatible
query III rowsort label-9257
SELECT * FROM tab2 WHERE NOT - col1 / + ( - ( - - CAST ( NULL AS INTEGER ) ) ) < - - col2
----

query I rowsort
SELECT 49 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT + + 53 AS col1 FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL + MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT ALL - - CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 31 + + + col0 AS col1 FROM tab2
----
15
33
44

query I rowsort
SELECT + 98 + 47 FROM tab2
----
145
145
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT + SUM( DISTINCT - - col0 ) + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-9264
SELECT + SUM ( DISTINCT - - col0 ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
188

query I rowsort
SELECT - - col2 + - 72 + col1 AS col0 FROM tab0 AS cor0
----
-41
28
56

query I rowsort
SELECT ALL + - ( + 86 ) AS col2 FROM tab2 cor0
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-9267
SELECT - 29 DIV 67 * - ( + col2 ), col0 AS col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-9267
SELECT - 29 / 67 * - ( + col2 ), col0 AS col2 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9268
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( + + 10 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( + + 10 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT DISTINCT CAST( + 1 AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT CAST ( + 1 AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 26 * - 17 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - 55 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 * + + ( 88 ) AS col0 FROM tab2 AS cor0 WHERE ( - 84 ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 78 col1 FROM tab2 AS cor0
----
129
145
155

query II rowsort
SELECT ALL + col1 + + - col1 AS col2, col2 FROM tab1
----
0
59
0
68
0
96

query II rowsort
SELECT DISTINCT ( 36 ) AS col1, - 33 AS col2 FROM tab0
----
36
-33

query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab1 WHERE + col2 >= 94
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT ALL 63 + CAST( NULL AS SIGNED ) - col1 + - - 69 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL 63 + CAST ( NULL AS INTEGER ) - col1 + - - 69 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - 42 + - + col2 FROM tab2
----
-2165
-2872
-3274

query I rowsort
SELECT DISTINCT - col0 * col0 * + + col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT ALL + col0 * - 55 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + col0 * - 55 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 83 - + col1 AS col2 FROM tab1
----
36
69
78

query I rowsort
SELECT + 66 + + col1 AS col1 FROM tab2 AS cor0
----
117
133
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL CAST( + 10 AS SIGNED ) - - col2 FROM tab0 AS cor0
----
109
20
57

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL CAST ( + 10 AS INTEGER ) - - col2 FROM tab0 AS cor0
----
109
20
57

query I rowsort
SELECT 50 + + - col1 + + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL + col2 * + col0 + - + 6 + + + CAST( col0 AS SIGNED ) * + + 91 FROM tab0 AS cor0
----
18424
2064
8781

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + col2 * + col0 + - + 6 + + + CAST ( col0 AS INTEGER ) * + + 91 FROM tab0 AS cor0
----
18424
2064
8781

query I rowsort
SELECT DISTINCT - col1 * 99 + - 19 + + col2 FROM tab2 AS cor0
----
-5045
-6594
-7602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9287
SELECT CAST( - ( - col1 ) AS SIGNED ), + 96 AS col2 FROM tab0
----
1
96
21
96
81
96

skipif mysql # not compatible
query II rowsort label-9287
SELECT CAST ( - ( - col1 ) AS INTEGER ), + 96 AS col2 FROM tab0
----
1
96
21
96
81
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col2 ) + + 72 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 4 * 40 + - 48 AS col1 FROM tab2 cor0
----
112
112
112

query I rowsort
SELECT + + 30 * + col2 AS col2 FROM tab0 AS cor0
----
1410
2970
300

query II rowsort
SELECT ALL + 39, + col1 FROM tab2 AS cor0
----
39
51
39
67
39
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - MIN( DISTINCT 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-9292
SELECT - MIN ( DISTINCT 15 ) FROM tab2
----
-15

query I rowsort
SELECT DISTINCT - col1 * - ( + col1 ) + + - col0 - + + col0 + - + col2 FROM tab0 WHERE NOT NULL IN ( - 35, - 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT col1 DIV + + 90 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT col1 / + + 90 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 * + - col1 + - col0 - + col2 * col2 FROM tab2 WHERE NOT col0 >= NULL
----

query II rowsort
SELECT 43 * + - 19, 14 AS col1 FROM tab1
----
-817
14
-817
14
-817
14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9297
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9297
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 40 + 46 AS col2 FROM tab2 AS cor0 WHERE col2 * 27 * + ( - + 31 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE 80 BETWEEN NULL AND ( + col2 * - 98 )
----

query I rowsort
SELECT - 9 AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - 84 AS col2, col0 FROM tab0 cor0
----
-84
15
-84
87
-84
97

query II rowsort
SELECT + + 78 AS col0, + col1 * - col1 AS col1 FROM tab2 AS cor0
----
78
-2601
78
-4489
78
-5929

query I rowsort
SELECT + col1 * + col2 + - col2 * - col2 FROM tab1 AS cor0
----
10560
3776
7820

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT - SUM( ALL + - 62 ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - SUM ( ALL + - 62 ) FROM tab2 AS cor0
----
186

query I rowsort
SELECT 66 + 39 AS col0 FROM tab0 AS cor0
----
105
105
105

query I rowsort
SELECT ALL - + 5 * - + col2 + col2 * - - col2 + + col1 AS col2 FROM tab0 AS cor0
----
10297
171
2525

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE col1 NOT BETWEEN NULL AND col0 * + 57
----

query I rowsort
SELECT DISTINCT - - col1 / - col2 AS col0 FROM tab2 WHERE ( NULL <= + col0 * col0 * 67 )
----

query I rowsort
SELECT DISTINCT col2 * + 38 + - + col1 FROM tab2
----
1443
2137
823

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - MIN( DISTINCT + 40 ) + + - COUNT( * ) AS col2 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-9310
SELECT - MIN ( DISTINCT + 40 ) + + - COUNT ( * ) AS col2 FROM tab0
----
-43

query I rowsort
SELECT ALL - 81 + - - col2 * - + col0 AS col1 FROM tab0
----
-786
-951
-9684

query I rowsort
SELECT DISTINCT - col1 * col2 + - col2 AS col1 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT + - 80 * - col2 AS col0 FROM tab0 AS cor0
----
3760
7920
800

query I rowsort
SELECT + + 17 AS col2 FROM tab0 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 96 col2 FROM tab2 AS cor0
----
4896
6432
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT + MIN( + + col2 ) col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9316
SELECT DISTINCT + MIN ( + + col2 ) col1 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - ( - + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL - col1 + col0 AS col2, - col1 FROM tab1 AS cor0
----
37
-14
44
-47
80
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL CAST( NULL AS SIGNED ) + + col1 * - col2 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 * - col2 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col1 FROM tab2 WHERE NULL > - col0 AND NOT - col1 * + col0 BETWEEN col1 AND + 89
----

query I rowsort
SELECT - + 56 * + col0 FROM tab1 AS cor0
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - SUM( ALL ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9322
SELECT - SUM ( ALL ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT - - MAX( - + col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9323
SELECT - - MAX ( - + col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT - col0 - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT - col0 - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT col2 + - ( + col0 ) DIV 86 + col1 + + + col2 + - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
128
220
229

skipif mysql # not compatible
query I rowsort label-9325
SELECT col2 + - ( + col0 ) / 86 + col1 + + + col2 + - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
128
220
229

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + ( + MAX( ALL col0 ) ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9326
SELECT + ( + MAX ( ALL col0 ) ) FROM tab2 cor0
----
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col0 * + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 96 + + - 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * + col2 * col1 * - 46 AS col1 FROM tab0 AS cor0
----
-14184882
-202860
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL + COUNT( DISTINCT + - col1 ) * - COUNT( ALL + 27 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL + COUNT ( DISTINCT + - col1 ) * - COUNT ( ALL + 27 ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9331
SELECT col2 FROM tab0 WHERE NOT - + col0 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9331
SELECT col2 FROM tab0 WHERE NOT - + col0 * + CAST ( NULL AS REAL ) IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9332
SELECT 4 DIV + col2 * + col0, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9332
SELECT 4 / + col2 * + col0, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

query II rowsort
SELECT + 52, + col1 FROM tab0
----
52
1
52
21
52
81

query II rowsort
SELECT ALL col1 AS col2, - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
1
96
21
66
81
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT MAX( - 25 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT MAX ( - 25 ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT ALL + col2 + + ( - + 71 ) FROM tab2 AS cor0
----
-13
-31
-48

query I rowsort
SELECT 52 + 20 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT - 70 * - col1 + - 15 FROM tab1
----
3275
335
965

query II rowsort
SELECT + col0 + - col2 AS col2, col2 * + - 15 AS col1 FROM tab0 AS cor0
----
-2
-1485
-32
-705
77
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - ( + SUM( ALL + col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9340
SELECT - ( + SUM ( ALL + col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT DISTINCT 73, - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9342
SELECT - COUNT( * ) DIV - 88 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT - COUNT ( * ) / - 88 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT ALL COUNT( * ) + - - 44 + - + 13 AS col1, MAX( DISTINCT 53 ) + - - COUNT( * ) AS col1 FROM tab2
----
34
56

skipif mysql # not compatible
query II rowsort label-9343
SELECT ALL COUNT ( * ) + - - 44 + - + 13 AS col1, MAX ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab2
----
34
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - ( - - col2 ) col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT - SUM( - + col2 ) + COUNT( * ) * + 34 + - 93 + COUNT( * ) AS col1 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-9345
SELECT - SUM ( - + col2 ) + COUNT ( * ) * + 34 + - 93 + COUNT ( * ) AS col1 FROM tab0
----
168

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN - - col0 * + col1 AND - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 91
----

query II rowsort
SELECT ALL col1 AS col2, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 47 * - - 73 + col0 + - col2 * + - col0 * + 41, - 15 col0 FROM tab0 cor0
----
25489
-15
32326
-15
390389
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL - 25 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - 25 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - + 87 FROM tab0
----
4089
8613
870

query I rowsort
SELECT + col0 * 33 AS col0 FROM tab1
----
1683
2805
3003

query II rowsort
SELECT ALL col0 * + - col2, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT + ( + col1 ) + + col2 DIV - col0 AS col1 FROM tab1 WHERE NOT ( col2 + + - 74 DIV col1 IS NULL )
----
13
47
5

skipif mysql # not compatible
query I rowsort label-9354
SELECT + ( + col1 ) + + col2 / - col0 AS col1 FROM tab1 WHERE NOT ( col2 + + - 74 / col1 IS NULL )
----
13
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT + 13 DIV - ( 65 ) AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 13 / - ( 65 ) AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL 92 * - col0 * col2 * - 37 AS col2 FROM tab2 AS cor0
----
14807400
3601432
8714240

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT 95 * + - COUNT( * ) AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT 95 * + - COUNT ( * ) AS col1 FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + MIN( + - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9358
SELECT + MIN ( + - col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT + 49 + ( 65 ) DIV - col2 AS col2 FROM tab2 AS cor0
----
47
48
48

skipif mysql # not compatible
query I rowsort label-9359
SELECT + 49 + ( 65 ) / - col2 AS col2 FROM tab2 AS cor0
----
47
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL + MIN( DISTINCT - + ( - 4 ) ) + + 99 * - - 65 AS col2 FROM tab0 cor0
----
6439

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + MIN ( DISTINCT - + ( - 4 ) ) + + 99 * - - 65 AS col2 FROM tab0 cor0
----
6439

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL - + 52 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - + 52 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-156

query I rowsort
SELECT + + ( col1 ) + + + 3 FROM tab2 AS cor0
----
54
70
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 BETWEEN 37 * - 86 AND NULL )
----

query I rowsort
SELECT col2 + - - 79 FROM tab0 cor0
----
126
178
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 62 col0 FROM tab1 AS cor0
----
-2914
-310
-868

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 5 IS NULL )
----

query I rowsort
SELECT DISTINCT - + 73 + - col1 AS col1 FROM tab2 AS cor0
----
-124
-140
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-9369
SELECT DISTINCT - - 21 col2, + COUNT( * ) * + + 93 FROM tab0 AS cor0
----
21
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9369
SELECT DISTINCT - - 21 col2, + COUNT ( * ) * + + 93 FROM tab0 AS cor0
----
21
279

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT col0 DIV + - ( 86 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT col0 / + - ( 86 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9372
SELECT ALL + 12 DIV + + COUNT( * ), 88 AS col2 FROM tab1
----
4
88

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL + 12 / + + COUNT ( * ), 88 AS col2 FROM tab1
----
4
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT ALL ( - CAST( - + 77 AS SIGNED ) ) + - - col2 AS col1 FROM tab0
----
124
176
87

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL ( - CAST ( - + 77 AS INTEGER ) ) + - - col2 AS col1 FROM tab0
----
124
176
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT COUNT( DISTINCT - col0 ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT COUNT ( DISTINCT - col0 ) + COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + - 99, + col0 * - ( + 4 ) col2 FROM tab0
----
-52
-60
-89
-348
0
-388

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 89 - + + col0 AND + + 61 - + - col2
----

query I rowsort
SELECT ALL col0 + - col1 * + + 22 AS col1 FROM tab0
----
-1767
-375
75

query I rowsort
SELECT DISTINCT - + 4 AS col0 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 57 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT - 35 * - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
315

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - 35 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
315

query I rowsort
SELECT DISTINCT col1 * + 34 * col0 AS col2 FROM tab1 cor0 WHERE col2 * - 70 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - 7, - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-7
-51
-7
-85
-7
-91

query II rowsort
SELECT + 54 AS col0, col1 FROM tab1 AS cor0
----
54
14
54
47
54
5

query II rowsort
SELECT - 10, + col0 AS col0 FROM tab1 cor0
----
-10
51
-10
85
-10
91

query I rowsort
SELECT ALL - 47 * + col1 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT SUM( ALL + 79 ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9386
SELECT SUM ( ALL + 79 ) FROM tab0 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL COUNT( - 33 ) * MIN( ALL - - col2 ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL COUNT ( - 33 ) * MIN ( ALL - - col2 ) FROM tab0 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9388
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT COUNT( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9389
SELECT COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9390
SELECT MAX( DISTINCT - + 82 ) DIV 88 col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9390
SELECT MAX ( DISTINCT - + 82 ) / 88 col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL col0 AS col1, + col0 FROM tab0 WHERE NOT NULL = + + col0
----

query I rowsort
SELECT 48 * + 12 * - col1 AS col0 FROM tab1
----
-27072
-2880
-8064

query I rowsort
SELECT + 60 FROM tab0 WHERE NOT - col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT ( + 97 ) FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - MAX( DISTINCT + 87 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9395
SELECT - MAX ( DISTINCT + 87 ) FROM tab0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT col2 * + 15 / - + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT col2 * + 15 / - + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 96 * col0 AS col2 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT ALL ( - + 92 ) AS col1 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT ALL - col2 * - 63 AS col2 FROM tab0 AS cor0
----
2961
6237
630

query I rowsort
SELECT ALL - 94 + + col1 FROM tab0 cor0
----
-13
-73
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT ALL - COUNT( * ) + + + COUNT( * ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-9401
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
0
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9402
SELECT ALL + col0 * col2 + - col1 + 32 * + + ( - + col0 ) * - CAST( NULL AS SIGNED ) AS col1, col1 + 90 * + + col2 FROM tab1
----
NULL
5315
NULL
6167
NULL
8654

skipif mysql # not compatible
query II rowsort label-9402
SELECT ALL + col0 * col2 + - col1 + 32 * + + ( - + col0 ) * - CAST ( NULL AS INTEGER ) AS col1, col1 + 90 * + + col2 FROM tab1
----
NULL
5315
NULL
6167
NULL
8654

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT MIN( + + 73 ) + - - COUNT( * ) + + - COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-9403
SELECT MIN ( + + 73 ) + - - COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT ALL 65 * - + 64 AS col1 FROM tab1
----
-4160
-4160
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL MIN( ALL + + col2 ) * + 14 FROM tab1 AS cor0
----
826

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL MIN ( ALL + + col2 ) * + 14 FROM tab1 AS cor0
----
826

query I rowsort
SELECT + + col2 * + col0 * - - col2 * - col2 FROM tab0 AS cor0
----
-1557345
-87000
-94119003

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9407
SELECT ALL - - 79 DIV + - COUNT( * ) + - + 4 AS col0, 68 FROM tab0 AS cor0
----
-30
68

skipif mysql # not compatible
query II rowsort label-9407
SELECT ALL - - 79 / + - COUNT ( * ) + - + 4 AS col0, 68 FROM tab0 AS cor0
----
-30
68

query I rowsort
SELECT ALL 80 * - + col0 * + col2 - - col0 FROM tab0 AS cor0
----
-56385
-69513
-768143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT + ( - + col2 ) - + col0 AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-9410
SELECT + ( - + col2 ) - + col0 AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-196
-62
-97

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL + + COUNT( * ) + + SUM( ALL - - 12 ) + ( - 4 ) * - - 23 AS col2 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + + COUNT ( * ) + + SUM ( ALL - - 12 ) + ( - 4 ) * - - 23 AS col2 FROM tab0 AS cor0
----
-53

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = col0 / 13
----

query I rowsort
SELECT col0 - + 88 AS col1 FROM tab0
----
-1
-73
9

query II rowsort
SELECT + ( + + col0 ) * - 70 + 33 AS col2, 80 FROM tab2
----
-3187
80
-4447
80
-5217
80

query I rowsort
SELECT DISTINCT col1 + + - 54 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT DISTINCT - 31 - - + col1 FROM tab0
----
-10
-30
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL 49 - + col0 DIV + 85 AS col1 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 49 - + col0 / + 85 AS col1 FROM tab2
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT col2 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9420
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9420
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9421
SELECT * FROM tab0 WHERE + 27 / col2 + - CAST( - col0 AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9421
SELECT * FROM tab0 WHERE + 27 / col2 + - CAST ( - col0 AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - ( + col1 ) FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - COUNT( * ) * ( MIN( ALL - 75 ) ) + + COUNT( * ) AS col1 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-9423
SELECT - COUNT ( * ) * ( MIN ( ALL - 75 ) ) + + COUNT ( * ) AS col1 FROM tab2
----
228

query I rowsort
SELECT DISTINCT + col1 + - 7 FROM tab0
----
-6
14
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 + 92 * + col1 col2 FROM tab0
----
151
1991
7511

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 93 / + 65 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL + MAX( ALL ( col1 ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + MAX ( ALL ( col1 ) ) AS col2 FROM tab1
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - 26 >= NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE - col0 <= + col0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 24 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL ( MIN( ALL col2 ) ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL ( MIN ( ALL col2 ) ) AS col1 FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE - col0 > NULL
----

query I rowsort
SELECT DISTINCT + 50 + - col2 AS col0 FROM tab0 WHERE NOT + col0 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 <> ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 37 ) AS col1 FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT DISTINCT + 35 * - COUNT( * ) AS col2 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + 35 * - COUNT ( * ) AS col2 FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT SUM( 92 ) AS col1 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-9437
SELECT SUM ( 92 ) AS col1 FROM tab0
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT COUNT( * ) - + CAST( NULL AS SIGNED ) / 9 FROM tab1 WHERE - col1 * + col2 NOT BETWEEN - 49 * + 34 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT COUNT ( * ) - + CAST ( NULL AS INTEGER ) / 9 FROM tab1 WHERE - col1 * + col2 NOT BETWEEN - 49 * + 34 AND NULL
----
NULL

query I rowsort
SELECT - 70 - + 71 * + col1 AS col0 FROM tab1
----
-1064
-3407
-425

query I rowsort
SELECT + 91 AS col2 FROM tab1 WHERE NOT NULL IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( col2 )
----

query I rowsort
SELECT ALL - col2 + + col2 * ( col0 ) AS col1 FROM tab0
----
658
860
9504

query I rowsort
SELECT ALL - 76 - - col2 FROM tab1
----
-17
-8
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9444
SELECT * FROM tab1 WHERE NOT 25 + + CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9444
SELECT * FROM tab1 WHERE NOT 25 + + CAST ( col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col0 * col2 AS col1 FROM tab2 WHERE NOT col2 * 67 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - 28 * col0 AND ( - col0 )
----

query I rowsort
SELECT 1 * + col2 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT 7 * col0 FROM tab0
----
105
609
679

query I rowsort
SELECT ( - ( + ( col0 ) ) ) * col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( - col2 ) <= col2 * + col1
----
14
47
5

query I rowsort
SELECT ALL + col2 + 60 AS col0 FROM tab2
----
100
118
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT col0 * CAST( col1 AS SIGNED ) col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9452
SELECT col0 * CAST ( col1 AS INTEGER ) col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 20 * + 83 + - col1 / col2 AND + 48
----

query I rowsort
SELECT DISTINCT 68 + + 11 AS col0 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT col0 + - 31 FROM tab1 WHERE + col0 <> 49
----
20
54
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT DISTINCT 41 + - MAX( + 99 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT 41 + - MAX ( + 99 ) AS col0 FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL MIN( DISTINCT - col0 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL MIN ( DISTINCT - col0 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT DISTINCT + col1 / - CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 94 FROM tab0
----
115
175
95

query I rowsort
SELECT ALL + col2 * col0 - - 31 * col0 FROM tab2 cor0
----
2484
4544
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT MIN( 6 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 62 ) AND + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT MIN ( 6 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 62 ) AND + 13
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 8 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL - - MIN( col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - - MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + 9 * 67 + col1 FROM tab0 AS cor0
----
604
624
684

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + 11 * COUNT( - col0 ) + COUNT( * ) FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-9465
SELECT + 11 * COUNT ( - col0 ) + COUNT ( * ) FROM tab1 cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL - ( col2 ) * col0 - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - ( col2 ) * col0 - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + COUNT( * ) + - 2 col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9467
SELECT + COUNT ( * ) + - 2 col0 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT + 65 DIV + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-9468
SELECT + 65 / + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - COUNT( DISTINCT 48 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9469
SELECT - COUNT ( DISTINCT 48 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL 60 + + COUNT( * ) FROM tab1 WHERE NOT NULL > + col0
----
60

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL 60 + + COUNT ( * ) FROM tab1 WHERE NOT NULL > + col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9471
SELECT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9471
SELECT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 68 * 89 + col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 3 * - - 36 FROM tab0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL COUNT( * ) * - + 52 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL COUNT ( * ) * - + 52 FROM tab2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL <> col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT col1 DIV + 44 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT col1 / + 44 FROM tab2
----
1

query I rowsort
SELECT col2 FROM tab0 WHERE ( col0 * - 16 ) IS NOT NULL OR ( - 22 ) IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - col0 NOT BETWEEN - col1 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 1 * 28 FROM tab1
----
-28

query I rowsort
SELECT + 81 FROM tab2 WHERE NOT - 99 * 66 - ( col1 + + col1 ) * - col1 IS NULL
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + COUNT( ALL 7 ) FROM tab2 cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + COUNT ( ALL 7 ) FROM tab2 cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL + COUNT( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9482
SELECT ALL + COUNT ( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN ( ( col0 ) ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 - col0 AS col2 FROM tab1 WHERE NOT - - col0 <= col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 24 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT + 80 * + + COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT + 80 * + + COUNT ( * ) FROM tab0
----
240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9488
SELECT ALL - SUM( ALL 96 ) AS col0 FROM tab0 WHERE NOT - + col2 >= + 43 + col0 * - CAST( 51 + col2 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - SUM ( ALL 96 ) AS col0 FROM tab0 WHERE NOT - + col2 >= + 43 + col0 * - CAST ( 51 + col2 AS REAL )
----
NULL

query I rowsort
SELECT 48 * + col2 FROM tab1 WHERE NOT - + 66 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 13 NOT BETWEEN NULL AND ( - col0 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT DISTINCT - MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT - MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 42
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 53 BETWEEN + 46 + 56 AND ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col2 * - - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 WHERE NOT col2 < + 75
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 16 BETWEEN NULL AND - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 11 / col0 + col2 IS NULL
----

query I rowsort
SELECT ALL 12 AS col0 FROM tab0 WHERE ( - col0 * - col1 + col0 ) BETWEEN col0 * + col0 + 90 AND col2
----

query I rowsort
SELECT ALL col1 * - col1 + - - 61 - - + 5 - col0 FROM tab0
----
-32
-462
-6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT DISTINCT + + COUNT( * ) DIV - 71 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + + COUNT ( * ) / - 71 FROM tab2 WHERE NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * + 87 * col0 + + col0 * col1 FROM tab2
----
186438
361280
494400

query III rowsort
SELECT * FROM tab0 WHERE ( - + 57 ) >= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT COUNT( ALL col2 ) AS col0, 51 AS col1 FROM tab2
----
3
51

skipif mysql # not compatible
query II rowsort label-9503
SELECT COUNT ( ALL col2 ) AS col0, 51 AS col1 FROM tab2
----
3
51

query III rowsort
SELECT * FROM tab0 WHERE - 20 NOT BETWEEN + + 90 / - col1 AND ( NULL )
----
15
81
47
87
21
10

query I rowsort
SELECT ( - - 4 ) AS col0 FROM tab0
----
4
4
4

query I rowsort
SELECT ALL col1 * + - 19 + - col0 AS col2 FROM tab1
----
-180
-317
-984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9507
SELECT MIN( ALL - - ( - CAST( + ( 94 ) AS SIGNED ) ) ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9507
SELECT MIN ( ALL - - ( - CAST ( + ( 94 ) AS INTEGER ) ) ) FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + MIN( ALL - - 87 ) FROM tab2 WHERE NULL IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-9508
SELECT + MIN ( ALL - - 87 ) FROM tab2 WHERE NULL IS NULL
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 15 * 16 NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT col2 - + col1 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT - - COUNT( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - - COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT SUM( DISTINCT - col0 ) + - COUNT( * ) * COUNT( * ) * - COUNT( * ) FROM tab0
----
-172

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT SUM ( DISTINCT - col0 ) + - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-172

query I rowsort
SELECT - + 85 * col2 + col0 FROM tab2 WHERE col0 + 10 IS NOT NULL
----
-1909
-3336
-4855

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab1 WHERE - col1 NOT IN ( + col1 )
----
20

query I rowsort
SELECT DISTINCT - ( - - 69 ) + col0 FROM tab0 AS cor0 WHERE col1 <> - - col0
----
-54
18
28

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 43 < NULL
----

query I rowsort
SELECT DISTINCT - + col0 - - col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 94 * + col0 - + + 65 * col0 FROM tab0 AS cor0
----
-13833
-15423
-2385

query I rowsort
SELECT + + 29 * + 83 - - col0 + + 86 AS col1 FROM tab0 AS cor0
----
2508
2580
2590

query II rowsort
SELECT ALL + col0, 60 + - - ( - col2 ) + col0 FROM tab1 cor0
----
51
15
85
86
91
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 * col0 * + col0 col2 FROM tab1
----
51
132651
85
614125
91
753571

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - ( + + 98 ) * SUM( DISTINCT + - 56 ) AS col1 FROM tab0
----
5488

skipif mysql # not compatible
query I rowsort label-9522
SELECT - ( + + 98 ) * SUM ( DISTINCT + - 56 ) AS col1 FROM tab0
----
5488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 * - 14, col0 col0 FROM tab2
----
-784
46
-784
64
-784
75

query I rowsort
SELECT DISTINCT - + col1 * + + col1 - col1 AS col1 FROM tab1 WHERE NOT ( - col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT + 23 DIV col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9526
SELECT + 23 / col2 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + - ( + + col2 ) ) * - 5 FROM tab0
----
235
495
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9529
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( ( NULL ) BETWEEN - col0 + col2 AND - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9529
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( ( NULL ) BETWEEN - col0 + col2 AND - CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT ALL col0 AS col2, col1 AS col2 FROM tab1 cor0
----
51
14
85
5
91
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 54 NOT BETWEEN 19 AND ( - col0 * + col1 * - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) + - + ( - - col1 ) IN ( 22 )
----
10
47
99

query I rowsort
SELECT + + ( col1 ) FROM tab0 AS cor0 WHERE NOT + 48 IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / + + col1 + - 30 >= - col1 * + col0
----

query II rowsort
SELECT DISTINCT - ( + 61 ) AS col1, col2 - 84 FROM tab2 cor0
----
-61
-26
-61
-44
-61
-61

query I rowsort
SELECT ALL - col0 * col2 FROM tab2 AS cor0 WHERE ( 68 ) IS NOT NULL
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 < col1
----
15
81
47

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 cor0 WHERE col1 NOT BETWEEN col0 + - - 3 - - col1 AND NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= col0
----
75
67
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 4 < + col0
----

query I rowsort
SELECT + - 62 + + ( 54 ) + col1 + + col1 - + col0 * - col2 FROM tab0 AS cor0
----
859
904
9597

query I rowsort
SELECT ALL col2 + - + col2 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - 81 ) BETWEEN + col1 AND 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT 91 + + + MAX( ALL + col0 ) AS col2 FROM tab1
----
182

skipif mysql # not compatible
query I rowsort label-9544
SELECT 91 + + + MAX ( ALL + col0 ) AS col2 FROM tab1
----
182

query I rowsort
SELECT - ( + - col1 ) * + ( 57 ) + 50 AS col1 FROM tab2
----
2957
3869
4439

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL SUM( + - col2 ) + + 24 col1 FROM tab0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9546
SELECT ALL SUM ( + - col2 ) + + 24 col1 FROM tab0
----
-132

query II rowsort
SELECT - col1 + ( col1 ) AS col1, + 87 FROM tab1
----
0
87
0
87
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL - COUNT( * ) + 34 AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - COUNT ( * ) + 34 AS col1 FROM tab1
----
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - + + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab2 cor0
----
69

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( 40 ) + - + ( + col1 ) IN ( - 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT DISTINCT - - MAX( ALL - ( - 5 ) ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-9552
SELECT DISTINCT - - MAX ( ALL - ( - 5 ) ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - + COUNT( - 4 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9554
SELECT - + COUNT ( - 4 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT COUNT( * ) - + - 30 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9555
SELECT COUNT ( * ) - + - 30 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ( 60 ) - col1 AS col2 FROM tab2
----
-17
-7
9

query I rowsort
SELECT DISTINCT 23 * col1 * + - col1 AS col2 FROM tab1 AS cor0 WHERE 87 + - 95 NOT IN ( 66 * - - 11 * - col0 )
----
-4508
-50807
-575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9558
SELECT DISTINCT - CAST( + - COUNT( ALL - + 40 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - CAST ( + - COUNT ( ALL - + 40 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9559
SELECT DISTINCT ( - col2 ) AS col2, - col1 + ( + + col1 ) - - - col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-9559
SELECT DISTINCT ( - col2 ) AS col2, - col1 + ( + + col1 ) - - - col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - 32 * + MIN( ALL 14 ) AS col2 FROM tab0 AS cor0
----
-448

skipif mysql # not compatible
query I rowsort label-9560
SELECT - 32 * + MIN ( ALL 14 ) AS col2 FROM tab0 AS cor0
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - - SUM( ALL ( + col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9561
SELECT - - SUM ( ALL ( + col2 ) ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT + + 40 AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT col0 * - col1 + + + col1 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT - + 20 * col0 * + col0 FROM tab1 AS cor0
----
-144500
-165620
-52020

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - 72 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 < col2 + - + ( - 79 )
----

query I rowsort
SELECT DISTINCT - col1 * 57 FROM tab0
----
-1197
-4617
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT COUNT( - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9568
SELECT COUNT ( - col2 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NOT NULL AND ( + ( - col1 ) > - 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9570
SELECT ALL col0, col2 + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL col0, col2 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT + + col1 * 44 NOT BETWEEN 75 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ( COUNT( * ) ) * + COUNT( * ) - ( + - 78 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-9572
SELECT ( COUNT ( * ) ) * + COUNT ( * ) - ( + - 78 ) FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT COUNT( * ) * + + 99 AS col2 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-9573
SELECT COUNT ( * ) * + + 99 AS col2 FROM tab2
----
297

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT DISTINCT - + col0 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - + col0 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 71 AS col2 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 25, - ( col0 ) * + 67 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 25, - ( col0 ) * + 67 + col0 )
----
0

query I rowsort
SELECT DISTINCT - 56 * + + 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2632

query I rowsort
SELECT + 73 * - - 88 + + + col2 AS col0 FROM tab0
----
6434
6471
6523

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9580
SELECT - + CAST( NULL AS DECIMAL ) + - + MIN( DISTINCT - + ( + col2 ) ) - 76 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT - + CAST ( NULL AS REAL ) + - + MIN ( DISTINCT - + ( + col2 ) ) - 76 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT COUNT( * ) * 72 + - COUNT( DISTINCT - 19 ) FROM tab0 cor0
----
215

skipif mysql # not compatible
query I rowsort label-9581
SELECT COUNT ( * ) * 72 + - COUNT ( DISTINCT - 19 ) FROM tab0 cor0
----
215

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT + col2 DIV 22 + - + col1 AS col0 FROM tab2 AS cor0
----
-50
-65
-76

skipif mysql # not compatible
query I rowsort label-9582
SELECT + col2 / 22 + - + col1 AS col0 FROM tab2 AS cor0
----
-50
-65
-76

query I rowsort
SELECT DISTINCT col1 * - 17 * + ( - + col1 ) FROM tab0 AS cor0
----
111537
17
7497

query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 / + col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - 40 * - - ( + 14 ) AS col0 FROM tab0 AS cor0
----
-560
-560
-560

query I rowsort
SELECT DISTINCT + col0 * - - 21 * col1 FROM tab1 cor0
----
14994
8925
89817

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + 58 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * col0 * + - col1 AS col2 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT ALL * FROM tab1 WHERE + 99 + + 69 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9592
SELECT - ( CAST( - MAX( ALL col0 ) AS SIGNED ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9592
SELECT - ( CAST ( - MAX ( ALL col0 ) AS INTEGER ) ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + 33 * COUNT( * ) + - 63 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 33 * COUNT ( * ) + - 63 AS col2 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT - COUNT( - + ( - + col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT - COUNT ( - + ( - + col1 ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9596
SELECT + - col1 DIV + - 33 + - col2, - 35 AS col2 FROM tab0 AS cor0
----
-10
-35
-45
-35
-99
-35

skipif mysql # not compatible
query II rowsort label-9596
SELECT + - col1 / + - 33 + - col2, - 35 AS col2 FROM tab0 AS cor0
----
-10
-35
-45
-35
-99
-35

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col2 ) > + col2 * - - 6 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT DISTINCT - col2 DIV + 14 - col2 * + col2 FROM tab2 AS cor0
----
-1602
-3368
-530

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT - col2 / + 14 - col2 * + col2 FROM tab2 AS cor0
----
-1602
-3368
-530

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-9599
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT - MAX( DISTINCT + CAST( + - col0 AS SIGNED ) ) * COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9600
SELECT - MAX ( DISTINCT + CAST ( + - col0 AS INTEGER ) ) * COUNT ( * ) FROM tab0
----
45

query II rowsort
SELECT + col0, col1 * + 31 AS col2 FROM tab1
----
51
434
85
155
91
1457

query II rowsort
SELECT + col0 AS col2, + col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - - ( + - 8 ) FROM tab2 cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT - SUM( ALL + 15 ) AS col2 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT - SUM ( ALL + 15 ) AS col2 FROM tab2 AS cor0
----
-45

query II rowsort
SELECT + + col0 AS col2, 48 * - 51 AS col0 FROM tab0 AS cor0
----
15
-2448
87
-2448
97
-2448

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT DISTINCT + COUNT( DISTINCT + + 15 ) AS col1, COUNT( * ) AS col1 FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-9606
SELECT DISTINCT + COUNT ( DISTINCT + + 15 ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
1
3

query I rowsort
SELECT col1 * + 2 * col1 AS col2 FROM tab0
----
13122
2
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9608
SELECT - SUM( ALL - - 31 ) * + CAST( - MAX( ALL 87 ) AS SIGNED ) AS col1 FROM tab1
----
8091

skipif mysql # not compatible
query I rowsort label-9608
SELECT - SUM ( ALL - - 31 ) * + CAST ( - MAX ( ALL 87 ) AS INTEGER ) AS col1 FROM tab1
----
8091

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 90 * + col0 <> NULL
----

query II rowsort
SELECT + ( + col2 ) AS col1, col1 + - - col0 * + col0 AS col0 FROM tab1
----
59
7230
68
8328
96
2615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT CAST( NULL AS SIGNED ) * - SUM( DISTINCT + + 27 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + + 27 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9612
SELECT DISTINCT COUNT( * ) * + 58 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT COUNT ( * ) * + 58 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * + 42 FROM tab1 AS cor0
----
1974
210
588

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * + 42 FROM tab1 AS cor0
----
1974
210
588

query II rowsort
SELECT DISTINCT + col2 + - col0 AS col1, - 35 FROM tab2 AS cor0
----
-17
-35
-23
-35
-24
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT - COUNT( - - 69 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9615
SELECT - COUNT ( - - 69 ) col2 FROM tab1
----
-3

query I rowsort
SELECT ALL + col0 + + 68 AS col0 FROM tab2 AS cor0
----
114
132
143

query I rowsort
SELECT DISTINCT + 96 * + 35 + 2 AS col2 FROM tab1 AS cor0
----
3362

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 59 <= + col2
----

query I rowsort
SELECT ( col0 ) * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT DISTINCT + COUNT( * ) * 82 + + - 44 col1 FROM tab1 AS cor0
----
202

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9620
SELECT DISTINCT + COUNT ( * ) * 82 + + - 44 col1 FROM tab1 AS cor0
----
202

query I rowsort
SELECT + col0 + col0 + - col0 AS col2 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 + + ( - 53 ) col0 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 * ( - - col2 ) - + - 10 col0 FROM tab2
----
237170
260372
59833

query III rowsort
SELECT * FROM tab2 WHERE + + 75 / - + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9625
SELECT + 28, + COUNT( * ) AS col0 FROM tab0
----
28
3

skipif mysql # not compatible
query II rowsort label-9625
SELECT + 28, + COUNT ( * ) AS col0 FROM tab0
----
28
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT + 34 DIV + COUNT( * ) + 75 * + - MIN( ALL + col0 ) col0 FROM tab1
----
-3814

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9626
SELECT DISTINCT + 34 / + COUNT ( * ) + 75 * + - MIN ( ALL + col0 ) col0 FROM tab1
----
-3814

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9627
SELECT * FROM tab0 AS cor0 WHERE col1 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9627
SELECT * FROM tab0 AS cor0 WHERE col1 = CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9628
SELECT ALL 50 - + - ( + 19 ) * CAST( - MIN( ALL + 74 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1356

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL 50 - + - ( + 19 ) * CAST ( - MIN ( ALL + 74 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1356

query I rowsort
SELECT - - col0 - + col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( 92 )
----

query II rowsort
SELECT ( col0 ), 27 * - col1 AS col1 FROM tab0 cor0
----
15
-2187
87
-567
97
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + + col2 col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < ( - 93 )
----

query I rowsort
SELECT DISTINCT - + ( - 11 ) FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT - MAX( + 93 ) col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9635
SELECT DISTINCT - MAX ( + 93 ) col1 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT + 35 FROM tab0 cor0 WHERE - col2 IS NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 27 + + - col1 - col2 < - 4 * - 39 * 49 + + - 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, + col1 + ( - - col1 ) * col0 AS col2 FROM tab2
----
23
2397
40
5005
58
5092

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT - COUNT( * ) AS col0, 45 FROM tab0 AS cor0
----
-3
45

skipif mysql # not compatible
query II rowsort label-9639
SELECT - COUNT ( * ) AS col0, 45 FROM tab0 AS cor0
----
-3
45

query I rowsort
SELECT 84 + ( + + ( - 78 ) ) FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL + + COUNT( * ) * 97 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + + COUNT ( * ) * 97 FROM tab2 AS cor0
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT 78 * - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-9642
SELECT 78 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL 91 * MIN( 11 ) FROM tab2 AS cor0
----
1001

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL 91 * MIN ( 11 ) FROM tab2 AS cor0
----
1001

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - col2 ) > NULL
----

query I rowsort
SELECT col2 * - 94 FROM tab2 AS cor0
----
-2162
-3760
-5452

query I rowsort
SELECT DISTINCT col1 * + ( + - col0 ) + col1 + - + 93 FROM tab1 cor0
----
-4323
-513
-793

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT + + COUNT( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + + COUNT ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 + + col1 - 62 * + 79 + + col2 * - col1 * col1 AS col2 FROM tab1
----
-155131
-23796
-6427

query III rowsort
SELECT * FROM tab2 WHERE 82 > + col0 + - ( + ( + 81 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 37 FROM tab1 WHERE - + col2 <= - - col2 / + col1
----
-37
-37
-37

query II rowsort
SELECT + col1 + - - ( 77 ), col0 FROM tab2
----
128
46
144
75
154
64

query I rowsort
SELECT col2 + - col1 * - col0 + - 46 * - - ( + 14 ) FROM tab1
----
-160
166
3701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT + CAST( - 2 AS SIGNED ) * + - col2 FROM tab2 WHERE + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-9653
SELECT + CAST ( - 2 AS INTEGER ) * + - col2 FROM tab2 WHERE + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT - col2 + 52 + + col2 + - + CAST( NULL AS SIGNED ) * - + 3 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT - col2 + 52 + + col2 + - + CAST ( NULL AS INTEGER ) * - + 3 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + 70 FROM tab2
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL 65 - COUNT( * ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL 65 - COUNT ( * ) AS col0 FROM tab1
----
62

query I rowsort
SELECT + 29 AS col1 FROM tab2 WHERE + + col0 BETWEEN - + col2 AND + ( col2 )
----

query I rowsort
SELECT + 44 + + - col2 FROM tab1
----
-15
-24
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT ALL - ( + + COUNT( * ) ) - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL - ( + + COUNT ( * ) ) - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 48 * + col1 col2 FROM tab2 WHERE 75 NOT IN ( col2 )
----
-124848
-215472
-284592

query II rowsort
SELECT DISTINCT + + 34 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
34
-1
34
-21
34
-81

query I rowsort
SELECT ALL col2 - + + 93 AS col1 FROM tab0 AS cor0
----
-46
-83
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT + - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT 65 * + + 17 * + + COUNT( * ) AS col2 FROM tab1
----
3315

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT 65 * + + 17 * + + COUNT ( * ) AS col2 FROM tab1
----
3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT - COUNT( * ) DIV - - 56 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9666
SELECT - COUNT ( * ) / - - 56 AS col2 FROM tab2
----
0

query II rowsort
SELECT - ( col2 ), + col1 + col0 * + col1 - 66 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 33 / - col2 * + ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 45 ) * + 76 * col1 + + col1 FROM tab2 AS cor0
----
-174369
-229073
-263263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 52 + - AVG ( DISTINCT + + 16 ) col0, 50 AS col0 FROM tab0 WHERE NOT + col2 * - + col1 < + 83
----
NULL
50

query I rowsort
SELECT ALL - col0 + + 3 * - col2 + - 15 AS col0 FROM tab0
----
-132
-171
-409

query II rowsort
SELECT DISTINCT ( 50 ) AS col1, col0 FROM tab2
----
50
46
50
64
50
75

query I rowsort
SELECT DISTINCT ( col1 ) + + col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9675
SELECT - COUNT( * ) AS col2, - COUNT( - + 65 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9675
SELECT - COUNT ( * ) AS col2, - COUNT ( - + 65 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 60 ) col2, col2 AS col1 FROM tab2 AS cor0
----
-60
23
-60
40
-60
58

query II rowsort
SELECT col0 AS col1, 48 + - col0 + + + 50 * col2 FROM tab1
----
51
4797
85
2913
91
3357

onlyif mysql # aggregate syntax: 
query II rowsort label-9678
SELECT ALL + + COUNT( * ), - 77 AS col2 FROM tab0 AS cor0
----
3
-77

skipif mysql # not compatible
query II rowsort label-9678
SELECT ALL + + COUNT ( * ), - 77 AS col2 FROM tab0 AS cor0
----
3
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + - SUM( + col1 ) - 78 * - 28 FROM tab0 cor0
----
2081

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + - SUM ( + col1 ) - 78 * - 28 FROM tab0 cor0
----
2081

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 + + col0 + + col1 * + - col1 + - col1 FROM tab1 cor0
----
-2233
-255
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT - + 19 + + - 97 + - + COUNT( * ) * - CAST( NULL AS SIGNED ) + + - 70 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT - + 19 + + - 97 + - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - 70 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 + 55 + - col0 * 83 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - col1 BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT + 22 * col1 AS col1 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT ALL - col2 + - 11 FROM tab2
----
-34
-51
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT 89 + - COUNT( * ) * - + 93 AS col0 FROM tab2
----
368

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT 89 + - COUNT ( * ) * - + 93 AS col0 FROM tab2
----
368

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-9690
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT CAST( + 62 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9690
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT CAST ( + 62 AS REAL ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT CAST( + - CAST( - - col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9692
SELECT CAST ( + - CAST ( - - col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT - 13 * 41 + + col0 + col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * ( - 25 ) IS NOT NULL
----
-395
-443
-468

skipif mysql # not compatible
query I rowsort label-9693
SELECT - 13 * 41 + + col0 + col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * ( - 25 ) IS NOT NULL
----
-395
-443
-468

onlyif mysql # aggregate syntax: 
query II rowsort label-9694
SELECT DISTINCT + ( + - 25 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-25
3

skipif mysql # not compatible
query II rowsort label-9694
SELECT DISTINCT + ( + - 25 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-25
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9695
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9695
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + + 76 <> + col0 + - - ( 28 )
----
0

skipif mysql # not compatible
query I rowsort label-9696
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + + 76 <> + col0 + - - ( 28 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT ALL CAST( - 4 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL CAST ( - 4 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT - 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT + + COUNT( * ) col0, COUNT( * ) AS col2 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9699
SELECT + + COUNT ( * ) col0, COUNT ( * ) AS col2 FROM tab1 cor0
----
3
3

query II rowsort
SELECT + 94, - col2 AS col1 FROM tab2 AS cor0
----
94
-23
94
-40
94
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT COUNT( + ( + 85 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9701
SELECT COUNT ( + ( + 85 ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - + COUNT( + - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9702
SELECT - + COUNT ( + - col2 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col2 AS col2, 77 * + 38 AS col1 FROM tab1 AS cor0
----
-59
2926
-68
2926
-96
2926

query I rowsort
SELECT ALL - 74 * + 77 AS col0 FROM tab0 AS cor0
----
-5698
-5698
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL - COUNT( * ) * - 15 AS col2 FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - COUNT ( * ) * - 15 AS col2 FROM tab0 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT COUNT( DISTINCT - col0 ) * + 10 AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT COUNT ( DISTINCT - col0 ) * + 10 AS col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL - + col0 + 22 * + 11 - col2 + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - - col2 ) * 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 75, + col0 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT ALL CAST( NULL AS SIGNED ) + + + MIN( DISTINCT - col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL CAST ( NULL AS INTEGER ) + + + MIN ( DISTINCT - col1 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 53 + 0 - + col1 + - 95 * + col2 + - ( col1 ) - + - 45 AS col1 FROM tab2
----
-2189
-3856
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT SUM( + col1 ) + + 48 FROM tab0 cor0
----
151

skipif mysql # not compatible
query I rowsort label-9713
SELECT SUM ( + col1 ) + + 48 FROM tab0 cor0
----
151

query I rowsort
SELECT - col2 + 81 FROM tab2 AS cor0
----
23
41
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT ALL CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL - COUNT( * ) - 73 + + ( 86 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - COUNT ( * ) - 73 + + ( 86 ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT - col2 - - 3 AS col1 FROM tab2 AS cor0
----
-20
-37
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT ALL COUNT( ALL col2 ) AS col2, 7 + - - 8 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
15

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL COUNT ( ALL col2 ) AS col2, 7 + - - 8 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
15

query I rowsort
SELECT - col1 * + 10 FROM tab2
----
-510
-670
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT DISTINCT + col2 DIV 40 col0 FROM tab0 WHERE NOT 29 IS NULL
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT DISTINCT + col2 / 40 col0 FROM tab0 WHERE NOT 29 IS NULL
----
0
1
2

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) + - 56 IS NOT NULL AND NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9722
SELECT ALL * FROM tab2 WHERE NOT - + col0 + + col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9722
SELECT ALL * FROM tab2 WHERE NOT - + col0 + + col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 86, - col0 AS col1 FROM tab0
----
86
-15
86
-87
86
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + 91 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 36 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 <= - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL MIN( + 18 ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL MIN ( + 18 ) AS col1 FROM tab2 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col1 col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL = col2 / + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT DISTINCT CAST( + MIN( ALL + + col0 ) AS SIGNED ) * 32 FROM tab0 AS cor0
----
480

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT CAST ( + MIN ( ALL + + col0 ) AS INTEGER ) * 32 FROM tab0 AS cor0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT DISTINCT + - SUM( DISTINCT + ( - - 20 ) ) AS col1 FROM tab0 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT + - SUM ( DISTINCT + ( - - 20 ) ) AS col1 FROM tab0 cor0
----
-20

query I rowsort
SELECT ALL + col2 + col0 + - + col0 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT + AVG ( - - col0 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT + AVG ( - - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 27 / + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab1
----
77

query I rowsort
SELECT ALL col1 * - - ( + - col2 ) AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL + 73 + + SUM( col0 ) * 6 * + + ( + CAST( 82 AS SIGNED ) ) FROM tab2 AS cor0
----
91093

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + 73 + + SUM ( col0 ) * 6 * + + ( + CAST ( 82 AS INTEGER ) ) FROM tab2 AS cor0
----
91093

query I rowsort
SELECT col0 - - col2 * - + 50 FROM tab1
----
-2865
-3309
-4749

query I rowsort
SELECT ALL 17 + + col0 + - 22 FROM tab0
----
10
82
92

query III rowsort
SELECT * FROM tab0 WHERE NULL < - - col2
----

query I rowsort
SELECT DISTINCT - 52 - col2 AS col1 FROM tab0 AS cor0
----
-151
-62
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 - - col0 col2 FROM tab2 cor0
----
23
41
52

query I rowsort
SELECT + 25 + - col1 FROM tab0 AS cor0
----
-56
24
4

query I rowsort
SELECT ALL - + ( + col0 ) - - - col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL 0 - SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL 0 - SUM ( col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT + 81 * + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT + 81 * + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9750
SELECT DISTINCT + col2 DIV col2, - col0 col2 FROM tab0 cor0
----
1
-15
1
-87
1
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9750
SELECT DISTINCT + col2 / col2, - col0 col2 FROM tab0 cor0
----
1
-15
1
-87
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT + MIN( ALL + + 62 ) * 5 AS col1 FROM tab1 AS cor0
----
310

skipif mysql # not compatible
query I rowsort label-9751
SELECT + MIN ( ALL + + 62 ) * 5 AS col1 FROM tab1 AS cor0
----
310

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT - MAX( 93 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT - MAX ( 93 ) FROM tab0
----
-93

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL <= + col2
----

query II rowsort
SELECT DISTINCT 66 AS col2, col2 FROM tab2
----
66
23
66
40
66
58

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL - COUNT( ALL 0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - COUNT ( ALL 0 ) FROM tab0
----
-3

query I rowsort
SELECT ALL + - 93 * - col1 FROM tab2 AS cor0
----
4743
6231
7161

query I rowsort
SELECT - 85 AS col0 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN col1 + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + 48 + + col2 FROM tab0 AS cor0
----
110
145
244

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT DISTINCT + + 11 / + col1 + 9 + col1 + col0 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT + + 11 / + col1 + 9 + col1 + col0 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col1, 3 FROM tab2 AS cor0
----
51
3
67
3
77
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - - col1 * + col2 AS col2, - 39 col1 FROM tab2 AS cor0
----
-123200
-39
-225388
-39
-26979
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9765
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <> + 2 * + - col1 * - CAST( - 6 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9765
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <> + 2 * + - col1 * - CAST ( - 6 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + MAX( 7 ) - + ( + COUNT( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT + MAX ( 7 ) - + ( + COUNT ( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 93 + + 71 FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT ALL + col1 * + + col2 DIV - + col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + col1 * + + col2 / - + col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col2 * + - ( col1 ) * + 85 * 92 + 34 + col0 + - col0 AS col0 FROM tab0
----
1642234
29770774
774214

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL - MIN( ALL - col1 ) * COUNT( - 77 ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - MIN ( ALL - col1 ) * COUNT ( - 77 ) AS col2 FROM tab2 AS cor0
----
231

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 + - col1 < + 29 / - - col2 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - - 88 AND col0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9773
SELECT ALL + - CAST( - - col0 AS SIGNED ) DIV 87 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL + - CAST ( - - col0 AS INTEGER ) / 87 AS col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT - 38 + - col0 AS col1 FROM tab0 AS cor0
----
-125
-135
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 60 col2 FROM tab0
----
-45
27
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9776
SELECT ALL - COUNT( * ), MIN( ( - col0 ) ) * + + 32 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL - COUNT ( * ), MIN ( ( - col0 ) ) * + + 32 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 59 IN ( + - col1 / col2, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - ( + - 72 ) * + + col1 FROM tab0 AS cor0
----
1512
5832
72

query II rowsort
SELECT ALL col1, 30 FROM tab0
----
1
30
21
30
81
30

query I rowsort
SELECT - 65 * + + col2 * - 31 AS col0 FROM tab2
----
116870
46345
80600

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col1 * - - col1 BETWEEN - col1 * col1 AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE NOT CAST( - col1 AS SIGNED ) * + - 79 + - - col0 - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE NOT CAST ( - col1 AS INTEGER ) * + - 79 + - - col0 - col0 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9784
SELECT ALL - CAST( - 83 AS SIGNED ) DIV - - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - CAST ( - 83 AS INTEGER ) / - - col1 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT 60 DIV - - 51 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9785
SELECT 60 / - - 51 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9786
SELECT DISTINCT + COUNT( * ) + + - CAST( NULL AS SIGNED ) + + 90, + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * + + 67 >= - - 42
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9786
SELECT DISTINCT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + + 90, + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * + + 67 >= - - 42
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col1, - col1 FROM tab0 cor0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT - col0 * + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-2139
-4136
-5683

query I rowsort
SELECT col2 * + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - MAX( ALL - - 52 ) + - COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9791
SELECT - MAX ( ALL - - 52 ) + - COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT col2 + + - col2 + - - 44 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT - col2 + - 30 FROM tab0 AS cor0
----
-129
-40
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT - ( - - 66 ) * - - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT - ( - - 66 ) * - - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) * col2 + + 18 AS col1 FROM tab2 cor0
----
-1040
-2542
-4332

query I rowsort
SELECT col1 + - col0 * + col1 * col1 FROM tab0 AS cor0
----
-38346
-96
-98334

query II rowsort
SELECT DISTINCT + col2 * col2 * + 29 * col0 * + + col0 + col2 AS col1, + col0 FROM tab1
----
1110449044
91
695153760
51
729356584
85

query I rowsort
SELECT ALL + + ( 84 ) FROM tab1 WHERE + 66 + + 99 + - col0 + + col2 IS NOT NULL
----
84
84
84

query I rowsort
SELECT DISTINCT + 0 + + 48 AS col0 FROM tab1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT - col1 + - + ( + col2 ) + - 41 DIV - col0 AS col1 FROM tab0
----
-100
-126
-31

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - col1 + - + ( + col2 ) + - 41 / - col0 AS col1 FROM tab0
----
-100
-126
-31

query I rowsort
SELECT col0 * - + col2 AS col0 FROM tab0 WHERE ( + col1 + + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL SUM( DISTINCT + col0 ) - COUNT( * ) FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL SUM ( DISTINCT + col0 ) - COUNT ( * ) FROM tab1
----
224

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9804
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9804
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 74 * col1 * ( - + col1 ) + - - col1 + col1 - + col0 FROM tab1 AS cor0
----
-14527
-163463
-1925

onlyif mysql # DIV for integer division: 
query II rowsort label-9806
SELECT ALL col1 - 92 + 90 + - ( + col1 ) DIV - - col1 AS col2, + ( + - 62 ) - col1 FROM tab2 AS cor0
----
48
-113
64
-129
74
-139

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL col1 - 92 + 90 + - ( + col1 ) / - - col1 AS col2, + ( + - 62 ) - col1 FROM tab2 AS cor0
----
48
-113
64
-129
74
-139

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9807
SELECT DISTINCT + 90 * - - COUNT( * ) / - CAST( NULL AS DECIMAL ) * - - 81 - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9807
SELECT DISTINCT + 90 * - - COUNT ( * ) / - CAST ( NULL AS REAL ) * - - 81 - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT - - COUNT( + - 43 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT - - COUNT ( + - 43 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT - - MAX( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9809
SELECT - - MAX ( ALL - - col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + + MAX( DISTINCT - ( col1 ) ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9810
SELECT + + MAX ( DISTINCT - ( col1 ) ) AS col0 FROM tab2 cor0
----
-51

query I rowsort
SELECT ALL - + ( - 27 ) AS col1 FROM tab1 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 col0 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT ALL + ( - - col2 ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT - col0 * + col0, col1 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT - CAST( NULL AS SIGNED ) / 21 * 32 + + 43 / + col0 FROM tab0 AS cor0 WHERE NOT 16 * 8 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9815
SELECT - CAST ( NULL AS INTEGER ) / 21 * 32 + + 43 / + col0 FROM tab0 AS cor0 WHERE NOT 16 * 8 <= NULL
----

query I rowsort
SELECT DISTINCT - 66 * + 82 FROM tab1 AS cor0
----
-5412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT CAST( - + 97 AS SIGNED ) * col2 AS col1 FROM tab1
----
-5723
-6596
-9312

skipif mysql # not compatible
query I rowsort label-9817
SELECT CAST ( - + 97 AS INTEGER ) * col2 AS col1 FROM tab1
----
-5723
-6596
-9312

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 * - col0 + + + ( + col2 ) AS col1 FROM tab1
----
51
4992
85
5074
91
6256

query II rowsort
SELECT ALL + + 67 * col2, col1 FROM tab0 WHERE NOT NULL = + 86
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * - col2 = + + 82 / + + 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9821
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 74 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT CAST ( NULL AS REAL ) * - 74 FROM tab2
----
NULL

query II rowsort
SELECT - 68 AS col1, - col0 AS col1 FROM tab0
----
-68
-15
-68
-87
-68
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT DISTINCT 77 DIV - col1 AS col2 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT 77 / - col1 AS col2 FROM tab1
----
-1
-15
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT + ( - COUNT( * ) ) DIV + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9824
SELECT + ( - COUNT ( * ) ) / + COUNT ( * ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT + ( + col1 ) * col0 * col0 * + 6 + + CAST( NULL AS SIGNED ) + 49 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT + ( + col1 ) * col0 * col0 * + 6 + + CAST ( NULL AS INTEGER ) + 49 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 89 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 89 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT CAST( NULL AS SIGNED ) + + ( + 90 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT CAST ( NULL AS INTEGER ) + + ( + 90 ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT COUNT( * ) + - 8 col2 FROM tab0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9828
SELECT COUNT ( * ) + - 8 col2 FROM tab0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9830
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, - 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-9830
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT + ( ( - COUNT( + col0 ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9831
SELECT + ( ( - COUNT ( + col0 ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9832
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * - 24 BETWEEN + col2 AND - col1 - - CAST( - col0 AS SIGNED ) + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9832
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * - 24 BETWEEN + col2 AND - col1 - - CAST ( - col0 AS INTEGER ) + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col0 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
-60
145
2118

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9834
SELECT * FROM tab1 WHERE CAST( - 8 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9834
SELECT * FROM tab1 WHERE CAST ( - 8 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 - col2 - + col1 + + col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT MAX( + col0 ) + - 75 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT MAX ( + col0 ) + - 75 AS col0 FROM tab2
----
0

query I rowsort
SELECT + 14 - - - 16 AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT - + col0 FROM tab0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT DISTINCT 68 + - col1, - 56 * col1 AS col1 FROM tab1
----
21
-2632
54
-784
63
-280

query I rowsort
SELECT - - col2 + - - 77 + + 15 AS col2 FROM tab1 AS cor0
----
151
160
188

query I rowsort
SELECT ALL - ( - - col0 ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + ( + + 72 ) FROM tab2
----
72

query I rowsort
SELECT ALL - - col0 - + + col2 FROM tab0 cor0 WHERE + col2 <> - col1
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * + 46 AS col0 FROM tab1 AS cor0
----
2714
3128
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-9847
SELECT col0 * - + col0 * + col2 DIV - - col2 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-9847
SELECT col0 * - + col0 * + col2 / - - col2 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - col2 * + - col0 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - 67 + - col1 AS col1 FROM tab1
----
-114
-72
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 83 * + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9851
SELECT ALL col1 DIV - col1 AS col1, col1 col1 FROM tab0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9851
SELECT ALL col1 / - col1 AS col1, col1 col1 FROM tab0
----
-1
1
-1
21
-1
81

query I rowsort
SELECT + col0 + - ( col2 ) * - col0 FROM tab0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9853
SELECT ALL * FROM tab1 WHERE NOT - ( - + ( - - 92 ) ) >= CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9853
SELECT ALL * FROM tab1 WHERE NOT - ( - + ( - - 92 ) ) >= CAST ( col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9854
SELECT - col0 DIV col0 * + 41 * col0 col2, - col1 FROM tab2 AS cor0
----
-1886
-51
-2624
-77
-3075
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9854
SELECT - col0 / col0 * + 41 * col0 col2, - col1 FROM tab2 AS cor0
----
-1886
-51
-2624
-77
-3075
-67

query I rowsort
SELECT ALL col1 + + - col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + - COUNT( * ) AS col2 FROM tab0 WHERE + 6 * + 33 * 27 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9856
SELECT + - COUNT ( * ) AS col2 FROM tab0 WHERE + 6 * + 33 * 27 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT DISTINCT - 33 + + ( 19 ) + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - 33 + + ( 19 ) + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 21 * col0 * + 47 * - col2 FROM tab2 AS cor0
----
-1044246
-2526720
-4293450

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE ( NULL ) = col2 * - - col0 + - 12 * - col0 + - col2 - + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + - ( - - col1 ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 3 BETWEEN + + 39 + + col2 * + 73 + - col1 AND ( col1 * col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT + col2 AS col2, - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT ALL 56 + - ( + - 26 ) * + 77 - col1 DIV - col2 AS col2 FROM tab0
----
2058
2059
2060

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL 56 + - ( + - 26 ) * + 77 - col1 / - col2 AS col2 FROM tab0
----
2058
2059
2060

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * - + 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * - + col2 + col0 FROM tab0
----
187
2224
9898

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT ALL 77 - + - 28 * SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL 77 - + - 28 * SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT + 33, + col0 FROM tab1
----
33
51
33
85
33
91

query I rowsort
SELECT DISTINCT + col1 + 79 + + ( - 97 ) AS col0 FROM tab1
----
-13
-4
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT COUNT( * ) - - 57 AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9872
SELECT COUNT ( * ) - - 57 AS col2 FROM tab0 AS cor0
----
60

query II rowsort
SELECT DISTINCT - 74, + col0 FROM tab2 AS cor0
----
-74
46
-74
64
-74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9874
SELECT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( + col1 + - col2 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( + + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col2 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT MAX( ALL col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT MAX ( ALL col1 ) col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * 54 AS col2 FROM tab0 AS cor0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9883
SELECT COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9884
SELECT ALL - col0 * + - col0 AS col1, + 15 / - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
2116
NULL
4096
NULL
5625
NULL

skipif mysql # not compatible
query II rowsort label-9884
SELECT ALL - col0 * + - col0 AS col1, + 15 / - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
2116
NULL
4096
NULL
5625
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT + 82 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3854
-8118
-820

skipif mysql # not compatible
query I rowsort label-9885
SELECT + 82 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL 62 + + COUNT( * ) AS col1 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL 62 + + COUNT ( * ) AS col1 FROM tab2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT + 2 * col0 DIV ( + 9 ) FROM tab1
----
11
18
20

skipif mysql # not compatible
query I rowsort label-9887
SELECT + 2 * col0 / ( + 9 ) FROM tab1
----
11
18
20

query I rowsort
SELECT DISTINCT 50 * - - col1 FROM tab1
----
2350
250
700

query I rowsort
SELECT ALL 68 * + + 33 FROM tab0
----
2244
2244
2244

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9890
SELECT ALL * FROM tab0 WHERE NOT CAST( + ( - 47 ) AS DECIMAL ) * - ( + - col2 ) + + ( - + col1 ) + - 74 + + col2 * - CAST( NULL AS SIGNED ) * 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9890
SELECT ALL * FROM tab0 WHERE NOT CAST ( + ( - 47 ) AS REAL ) * - ( + - col2 ) + + ( - + col1 ) + - 74 + + col2 * - CAST ( NULL AS INTEGER ) * 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 * - 33 FROM tab1 AS cor0
----
-1551
-165
-462

query I rowsort
SELECT ALL - col1 * 28 AS col2 FROM tab1 AS cor0
----
-1316
-140
-392

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * col1 > - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL + MIN( - col2 ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + MIN ( - col2 ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 37 col1 FROM tab2 cor0
----
-21
-3
14

query I rowsort
SELECT col2 * - 67 AS col2 FROM tab2
----
-1541
-2680
-3886

query I rowsort
SELECT - ( col2 ) + - col0 AS col2 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL - COUNT( + 15 ) * - 37 AS col2 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - COUNT ( + 15 ) * - 37 AS col2 FROM tab1
----
111

query I rowsort
SELECT + ( - 69 ) + - ( + col2 ) AS col1 FROM tab2
----
-109
-127
-92

query I rowsort
SELECT 53 FROM tab1 WHERE - col2 NOT IN ( - 9 )
----
53
53
53

query I rowsort
SELECT col0 - 1 FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9903
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( col1 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9903
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( col1 AS REAL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT ALL - col0 DIV col1 col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9905
SELECT ALL - col0 / col1 col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT col2 + ( col1 + - col1 ) AS col0 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + 72 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 * - col2 AND col1
----

query I rowsort
SELECT - col2 * + col2 FROM tab1 WHERE + col1 * - col0 IS NOT NULL
----
-3481
-4624
-9216

query I rowsort
SELECT AVG ( 75 ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9911
SELECT ALL * FROM tab0 WHERE NOT ( + ( CAST( NULL AS DECIMAL ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9911
SELECT ALL * FROM tab0 WHERE NOT ( + ( CAST ( NULL AS REAL ) ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 * + 2 + 71 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab1 WHERE - 65 * 54 + 10 IN ( 89 )
----

query I rowsort
SELECT 97 * + 38 + col0 FROM tab2
----
3732
3750
3761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + - col1 * + col0 col2 FROM tab1
----
-420
-4272
-709

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT 58 DIV 9 FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9916
SELECT 58 / 9 FROM tab2
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT 27 DIV 51 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT 27 / 51 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) + col2 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT - 84 DIV - 31 col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9920
SELECT - 84 / - 31 col2 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL 12 * MAX( DISTINCT col1 ) AS col1 FROM tab2
----
924

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL 12 * MAX ( DISTINCT col1 ) AS col1 FROM tab2
----
924

query I rowsort
SELECT - 57 * 65 FROM tab0
----
-3705
-3705
-3705

query I rowsort
SELECT - 68 * - 52 FROM tab2
----
3536
3536
3536

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 27 - - 17 <= NULL
----

query I rowsort
SELECT + 57 * col2 AS col2 FROM tab1
----
3363
3876
5472

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9927
SELECT ALL * FROM tab1 WHERE CAST( 18 AS SIGNED ) + 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9927
SELECT ALL * FROM tab1 WHERE CAST ( 18 AS INTEGER ) + 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE ( - 83 ) IS NULL
----

query I rowsort
SELECT ALL col2 / 41 + + col2 * + 49 FROM tab1 WHERE NULL NOT BETWEEN 67 AND 77 - + col0 * 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9930
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) + + col1 <> - 25 - + 20 * 48
----

skipif mysql # not compatible
query III rowsort label-9930
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + + col1 <> - 25 - + 20 * 48
----

query I rowsort
SELECT DISTINCT 87 * + col2 AS col2 FROM tab2 AS cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT CAST( col0 AS SIGNED ) * - col1 FROM tab1 cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-9932
SELECT CAST ( col0 AS INTEGER ) * - col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9933
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + - CAST( NULL AS DECIMAL ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9933
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + - CAST ( NULL AS REAL ) ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 18 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT + col0 DIV 14 AS col0 FROM tab1
----
3
6
6

skipif mysql # not compatible
query I rowsort label-9937
SELECT + col0 / 14 AS col0 FROM tab1
----
3
6
6

query I rowsort
SELECT DISTINCT 3 * 80 FROM tab1 AS cor0 CROSS JOIN tab0
----
240

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + 8 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE + ( + col2 ) * 65 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 67 - col1 * col0 col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT + 76 DIV 27 col1 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9942
SELECT + 76 / 27 col1 FROM tab2 cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9943
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 BETWEEN CAST( 15 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9943
SELECT * FROM tab0 AS cor0 WHERE NOT + 76 BETWEEN CAST ( 15 AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT + ( 18 ) AS col1 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT SUM( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-9945
SELECT SUM ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
66

query I rowsort
SELECT ALL + 94 + + col0 * 84 AS col0 FROM tab1
----
4378
7234
7738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT + col0 * - col0 / - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + col2 * + 42 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT + col0 * - col0 / - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 * + 42 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT + ( 23 ) * - SUM( - col2 - 81 ) AS col1 FROM tab2
----
8372

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT + ( 23 ) * - SUM ( - col2 - 81 ) AS col1 FROM tab2
----
8372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE ( col2 ) > NULL
----

query I rowsort
SELECT ALL - 92 + + + 20 + col2 * - 0 AS col0 FROM tab2
----
-72
-72
-72

query I rowsort
SELECT col1 + + col0 * + col1 AS col2 FROM tab1
----
430
4324
728

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + col2 * col2 NOT BETWEEN ( col0 ) AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT - 28 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT - 28 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + COUNT( * ) - 59 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-9957
SELECT + COUNT ( * ) - 59 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT ALL - col2 DIV - 32 + - 32 AS col0 FROM tab1 AS cor0
----
-29
-30
-31

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL - col2 / - 32 + - 32 AS col0 FROM tab1 AS cor0
----
-29
-30
-31

query I rowsort
SELECT + col2 + - - col1 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT ALL + - col2 * + CAST( NULL AS SIGNED ) * - col2 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + - col2 * + CAST ( NULL AS INTEGER ) * - col2 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE ( + 52 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL col1 - - - col1 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + ( - COUNT( * ) ) + + 42 AS col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9963
SELECT + ( - COUNT ( * ) ) + + 42 AS col2 FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9964
SELECT - ( COUNT( DISTINCT col0 ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT - ( COUNT ( DISTINCT col0 ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9965
SELECT + COUNT( * ) * - - 28 * + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9965
SELECT + COUNT ( * ) * - - 28 * + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT - col0 - + 40 FROM tab2 AS cor0
----
-104
-115
-86

query I rowsort
SELECT ALL col1 * col1 + col2 AS col1 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT col2 DIV - 82 col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9968
SELECT col2 / - 82 col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT + MAX( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT + MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ( - ( + col0 ) ) + - col1 AS col0 FROM tab1 WHERE NOT ( + 62 ) >= - col2
----

query I rowsort
SELECT DISTINCT + - 20 + 91 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9972
SELECT DISTINCT COUNT( * ) * 20 AS col2, 50 * SUM( ALL - col2 ) * - COUNT( * ) FROM tab0
----
60
23400

skipif mysql # not compatible
query II rowsort label-9972
SELECT DISTINCT COUNT ( * ) * 20 AS col2, 50 * SUM ( ALL - col2 ) * - COUNT ( * ) FROM tab0
----
60
23400

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 61 = ( 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL - 59 * + + ( - COUNT( * ) ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - 59 * + + ( - COUNT ( * ) ) AS col1 FROM tab1
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 51 * col1 col0, + col2 + + - col2 FROM tab1
----
2397
0
255
0
714
0

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * - col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 69 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9979
SELECT col2 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST( + + 2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-9979
SELECT col2 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( + + 2 AS REAL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT DISTINCT 41 DIV - - SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT 41 / - - SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + 98 * col1 - - 48 AS col0 FROM tab2
----
5092
6689
7658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab1 WHERE - 45 > ( NULL ) OR 20 * col1 >= + col0 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE - 45 > ( NULL ) OR 20 * col1 >= + col0 + - col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 12 >= - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT 89 * + - ( - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9985
SELECT 89 * + - ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT + - ( col1 ) DIV - col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9986
SELECT + - ( col1 ) / - col1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9987
SELECT - col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT IN ( - ( - col1 ) - + col1 )
----

skipif mysql # not compatible
query I rowsort label-9987
SELECT - col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( - ( - col1 ) - + col1 )
----

query I rowsort
SELECT ALL + + col1 - col0 FROM tab2 AS cor0 WHERE 10 <> 48 + + col2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL COUNT( DISTINCT + 1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL COUNT ( DISTINCT + 1 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 3 < NULL
----

query I rowsort
SELECT ALL - + 3 + - + col0 AS col0 FROM tab0 cor0
----
-100
-18
-90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + 68
----

query I rowsort
SELECT DISTINCT col2 + - 95 * + ( col0 ) + - col0 AS col0 FROM tab2
----
-4393
-6104
-7142

query I rowsort
SELECT + - col0 AS col1 FROM tab1 WHERE - 97 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL <> - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9996
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( + ( + col1 ) AS DECIMAL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9996
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( + ( + col1 ) AS REAL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9997
SELECT MAX( - col2 ) + - 3 * + + MIN( 50 ) + + 40 DIV COUNT( * ) AS col2 FROM tab2
----
-160

skipif mysql # not compatible
query I rowsort label-9997
SELECT MAX ( - col2 ) + - 3 * + + MIN ( 50 ) + + 40 / COUNT ( * ) AS col2 FROM tab2
----
-160

query II rowsort
SELECT DISTINCT + col2 AS col2, - 47 FROM tab1
----
59
-47
68
-47
96
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + COUNT( DISTINCT col0 ) + - 0 col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9999
SELECT + COUNT ( DISTINCT col0 ) + - 0 col2 FROM tab0 AS cor0
----
3

