sqllogictest
Artifact Content
Not logged in

Artifact 88b923c4575657a07ab8da28517fc1952c85286e:


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)

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

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

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

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT 64 / + + col0 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE 92 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 * - - col0 AS col1, + 30 FROM tab2
----
1058
30
2560
30
4350
30

query I rowsort
SELECT ALL col1 * + 35 * + 40 FROM tab2
----
107800
71400
93800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5
SELECT * FROM tab2 AS cor0 WHERE + 46 + - ( - col2 ) * - - CAST( + col2 AS SIGNED ) >= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5
SELECT * FROM tab2 AS cor0 WHERE + 46 + - ( - col2 ) * - - CAST ( + col2 AS INTEGER ) >= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 / col0 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( 20 ) AS col2 FROM tab1 cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT DISTINCT + MAX( + ( - col2 ) ) * - - 33 FROM tab0 cor0
----
-330

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT + MAX ( + ( - col2 ) ) * - - 33 FROM tab0 cor0
----
-330

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) >= + 67 + - col0 + - col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-11
SELECT ALL + - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

query I rowsort
SELECT 41 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query II rowsort
SELECT DISTINCT ( + - 27 ), col2 FROM tab1
----
-27
59
-27
68
-27
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 col2, - 38 FROM tab1
----
30
-38
30
-38
30
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT ALL - COUNT( * ) * - 55 AS col1, + 21 AS col2 FROM tab0
----
165
21

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL - COUNT ( * ) * - 55 AS col1, + 21 AS col2 FROM tab0
----
165
21

query III rowsort
SELECT DISTINCT col2, + 80, col2 AS col2 FROM tab2
----
9 values hashing to 44fa0a20756ff4ff14cc6a5c650377d5

query II rowsort
SELECT ALL + col0 AS col0, 95 FROM tab2
----
46
95
64
95
75
95

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT - CAST( NULL AS SIGNED ) + + SUM( col1 ) + - + 62 + 22 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT - CAST ( NULL AS INTEGER ) + + SUM ( col1 ) + - + 62 + 22 AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT + 79 * + col0 - 60 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NULL
----
3574
4996
5865

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

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT DISTINCT + 16 * col0 + 74 DIV - col2 + - - 82 AS col1 FROM tab1 AS cor0
----
1441
1537
898

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + 16 * col0 + 74 / - col2 + - - 82 AS col1 FROM tab1 AS cor0
----
1441
1537
898

query I rowsort
SELECT + - 67 AS col2 FROM tab1 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + 22 * - COUNT( * ) * - COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-28
SELECT + 22 * - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
198

query I rowsort
SELECT + col2 FROM tab1 WHERE col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + + ( col2 ) - col0 + col2 * + col1 AS col0 FROM tab1 WHERE NOT + - 31 NOT BETWEEN + col2 / + - 60 AND - - col2
----

query I rowsort
SELECT + AVG ( - - 51 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT - MIN( - 18 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT - MIN ( - 18 ) AS col1 FROM tab0
----
18

query I rowsort
SELECT + + ( - + col0 ) + - - col2 * - col2 FROM tab0 AS cor0
----
-187
-2224
-9898

query I rowsort
SELECT col2 * - 81 + 73 AS col1 FROM tab2 AS cor0
----
-1790
-3167
-4625

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 83 + - + 46 * + 51 IS NOT NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 - + 61 col0 FROM tab2
----
-141
-141
-141

query I rowsort
SELECT 94 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - 31 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

query I rowsort
SELECT - 73 * - - col2 FROM tab2 cor0
----
-1679
-2920
-4234

query II rowsort
SELECT - col2 * col2, 77 * - 87 AS col1 FROM tab0 AS cor0
----
-100
-6699
-2209
-6699
-9801
-6699

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT ( - + 32 ) DIV col0 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-45
SELECT ( - + 32 ) / col0 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-47
SELECT - col2 DIV + col0, - 5 DIV - 18 FROM tab2 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-47
SELECT - col2 / + col0, - 5 / - 18 FROM tab2 AS cor0
----
0
0
0
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT DISTINCT 58 * + 38 * + COUNT( * ) col2 FROM tab2 AS cor0
----
6612

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

query I rowsort
SELECT + 36 * + 6 FROM tab1 cor0
----
216
216
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-50
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT col0 * - 12 FROM tab1
----
-1020
-1092
-612

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

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT + MAX( - col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-55
SELECT + MAX ( - col2 ) col2 FROM tab2
----
-23

query I rowsort
SELECT ALL ( 36 ) AS col2 FROM tab2 WHERE + + 83 * + 22 IS NOT NULL
----
36
36
36

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

onlyif mysql # DIV for integer division: 
query II rowsort label-58
SELECT - col1 * + col2 - + - 74 + + 41 * col2 DIV - - 49 + col0 + - ( - + ( 86 ) ) AS col1, col1 FROM tab0 AS cor0
----
-3593
81
240
1
45
21

skipif mysql # not compatible
query II rowsort label-58
SELECT - col1 * + col2 - + - 74 + + 41 * col2 / - - 49 + col0 + - ( - + ( 86 ) ) AS col1, col1 FROM tab0 AS cor0
----
-3593
81
240
1
45
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT + MAX( - CAST( NULL AS SIGNED ) ) + 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + + 70 BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) + 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + + 70 BETWEEN NULL AND NULL )
----
NULL

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

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

query I rowsort
SELECT 31 * 25 FROM tab1
----
775
775
775

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

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

query I rowsort
SELECT ALL - col0 + - col0 + - col2 FROM tab2 cor0
----
-115
-168
-208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 86 BETWEEN col0 + + - col0 AND + + col2
----

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

skipif mysql # not compatible
query I rowsort label-66
SELECT 5 * COUNT ( * ) + - SUM ( ALL col1 ) FROM tab1 AS cor0
----
-51

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

query I rowsort
SELECT ALL - 19 + + + 66 AS col1 FROM tab1
----
47
47
47

query I rowsort
SELECT - 62 AS col2 FROM tab0 WHERE - col1 / col1 <> - 20
----
-62
-62
-62

query I rowsort
SELECT DISTINCT ( + 96 ) * col2 * + col2 * 72 - - col0 * col0 FROM tab0 cor0
----
15268833
67753921
698769

query I rowsort
SELECT + col0 + col1 + + col1 AS col2 FROM tab1
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL - MIN( - col1 ) * - + 80 AS col1 FROM tab1 AS cor0
----
-3760

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - MIN ( - col1 ) * - + 80 AS col1 FROM tab1 AS cor0
----
-3760

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + + col0 < 24
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT + col1 DIV + col2 - + col2 AS col2 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-76
SELECT + col1 / + col2 - + col2 AS col2 FROM tab0 AS cor0
----
-46
-8
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-77
SELECT ALL + - 70 DIV 97 * col2, - col1 * + col1 AS col2 FROM tab2 cor0
----
0
-2601
0
-4489
0
-5929

skipif mysql # not compatible
query II rowsort label-77
SELECT ALL + - 70 / 97 * col2, - col1 * + col1 AS col2 FROM tab2 cor0
----
0
-2601
0
-4489
0
-5929

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-79
SELECT DISTINCT - COUNT( * ), 73 * + - MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3
-3358

skipif mysql # not compatible
query II rowsort label-79
SELECT DISTINCT - COUNT ( * ), 73 * + - MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-3
-3358

query II rowsort
SELECT DISTINCT - - col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT - ( col1 ) * - 0 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - col0 + + 20 FROM tab1 AS cor0
----
-31
-65
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL 51 + + COUNT( * ) - 98 AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL 51 + + COUNT ( * ) - 98 AS col0 FROM tab0 AS cor0
----
-44

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN - col0 AND - col2 / + col0
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL > col2 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-90
SELECT + 1 / + + 66 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-91
SELECT - - col1 - + CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-91
SELECT - - col1 - + CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT - col0 * - - col1 - + col2 AS col0 FROM tab0
----
-1262
-1837
-196

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT 46 + + + 50 DIV - SUM( DISTINCT - col1 ) * + - COUNT( * ) * COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-94
SELECT 46 + + + 50 / - SUM ( DISTINCT - col1 ) * + - COUNT ( * ) * COUNT ( * ) FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-95
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN - 4 * col0 AND CAST( NULL AS SIGNED ) + + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-95
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN - 4 * col0 AND CAST ( NULL AS INTEGER ) + + col1 ) )
----

query I rowsort
SELECT - col2 + 83 - - col2 AS col2 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - + 37 + + col1 AS col2 FROM tab0 WHERE ( ( col0 ) * - - col1 + + col1 ) NOT IN ( col0, ( + col0 ), + col0 )
----
-16
-36
44

query II rowsort
SELECT ALL + - 53 + col1, 73 AS col2 FROM tab1 WHERE - col0 NOT BETWEEN + col0 - - col1 AND NULL
----
-39
73
-48
73
-6
73

query I rowsort
SELECT 67 * - col1 * - 70 * col1 + - + 7 + 55 AS col2 FROM tab2 AS cor0
----
12198738
21053458
27807058

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + col0 + ( - col2 ) col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT ALL + col2 * + col2 * col1 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT ALL CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 30 <= NULL
----

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 30 <= NULL
----

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

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

query I rowsort
SELECT ALL + + 50 * + col1 * ( + + 92 ) AS col0 FROM tab1 AS cor0
----
216200
23000
64400

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

query I rowsort
SELECT ALL + col0 * col1 * col2 AS col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT DISTINCT + + 16 AS col1 FROM tab1 WHERE NOT - - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL 87 * ( - COUNT( col2 ) ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 87 * ( - COUNT ( col2 ) ) FROM tab0
----
-261

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

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT MAX ( - + col1 ) / MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col0 * + - 47 col1 FROM tab0
----
-10575
-355743
-442223

query I rowsort
SELECT - col2 * - 58 FROM tab1
----
3422
3944
5568

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

query II rowsort
SELECT + col0, col1 + + col1 AS col2 FROM tab0
----
15
162
87
42
97
2

query II rowsort
SELECT 66, col2 FROM tab1 AS cor0
----
66
59
66
68
66
96

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

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

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

query I rowsort
SELECT ALL + 65 + + 25 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * col0 - - col0 IS NULL
----
90
90
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL COUNT( * ) - 3 col2 FROM tab0 WHERE NOT 85 IS NULL
----
0

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

query I rowsort
SELECT + 98 FROM tab0 WHERE ( NULL ) IN ( col0 )
----

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

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

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

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

query I rowsort
SELECT - 41 * col2 FROM tab1
----
-2419
-2788
-3936

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT col2 + 82 DIV + col0 AS col1 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT col2 + 82 / + col0 AS col1 FROM tab0
----
10
52
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT CAST( 28 AS SIGNED ) * col0 FROM tab2
----
1288
1792
2100

skipif mysql # not compatible
query I rowsort label-128
SELECT CAST ( 28 AS INTEGER ) * col0 FROM tab2
----
1288
1792
2100

query III rowsort
SELECT ALL * FROM tab2 WHERE + 43 >= NULL
----

query I rowsort
SELECT ALL ( col0 ) + col1 * - col2 FROM tab1
----
-1293
-210
-3105

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT ALL + 66 + + col2 DIV - col2 AS col0 FROM tab1 WHERE col2 NOT BETWEEN NULL AND col1
----
65
65
65

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + 66 + + col2 / - col2 AS col0 FROM tab1 WHERE col2 NOT BETWEEN NULL AND col1
----
65
65
65

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

query I rowsort
SELECT - 38 * 71 FROM tab2
----
-2698
-2698
-2698

query I rowsort
SELECT ALL 49 * - col2 FROM tab0
----
-2303
-4851
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL MAX( 67 ) * COUNT( * ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL MAX ( 67 ) * COUNT ( * ) FROM tab2
----
201

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 <> ( + 71 * + col0 + 6 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT ALL - col1 DIV + ( 12 * + 95 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL - col1 / + ( 12 * + 95 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT - MAX( DISTINCT - 38 ) + 22 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-141
SELECT - MAX ( DISTINCT - 38 ) + 22 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-142
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + 66 + col1 * col0 BETWEEN - col1 + - col0 AND - col2 + col1
----

query I rowsort
SELECT 25 - col1 * col1 FROM tab2 WHERE + col1 * - col0 NOT IN ( + col2 / 69 )
----
-2576
-4464
-5904

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

query I rowsort
SELECT col0 + + col2 * 93 FROM tab0
----
1017
4386
9304

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-148
SELECT DISTINCT - CAST( MIN( ALL col0 ) AS SIGNED ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - CAST ( MIN ( ALL col0 ) AS INTEGER ) FROM tab0
----
-15

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

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

query I rowsort
SELECT DISTINCT 64 + 64 AS col2 FROM tab2 AS cor0
----
128

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

query I rowsort
SELECT 56 * col2 FROM tab0 AS cor0
----
2632
5544
560

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

query I rowsort
SELECT ALL 78 * col2 AS col0 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT 4 * col2 AS col0 FROM tab1
----
236
272
384

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT 90 + + COUNT( * ) * MIN( ALL + 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
198

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT 90 + + COUNT ( * ) * MIN ( ALL + 12 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL < NULL
----
0

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

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

query I rowsort
SELECT ALL - + 9 * - 14 FROM tab1 cor0
----
126
126
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-160
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 * 74 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1702
2960
4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-162
SELECT + CAST( COUNT( * ) AS SIGNED ) * ( + 61 * + 65 + 79 ) FROM tab1 AS cor0
----
12132

skipif mysql # not compatible
query I rowsort label-162
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * ( + 61 * + 65 + 79 ) FROM tab1 AS cor0
----
12132

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

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

query I rowsort
SELECT - + 76 * col0 FROM tab1 AS cor0
----
-3876
-6460
-6916

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-166
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-166
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - CAST ( col1 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col2 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + ( - 27 ) AS col2 FROM tab1
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 53 col2 FROM tab0
----
-2491
-5247
-530

query I rowsort
SELECT + 64 * ( - col1 ) AS col2 FROM tab2
----
-3264
-4288
-4928

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT SUM( ALL - 15 ) * 32 FROM tab2
----
-1440

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT SUM ( ALL - 15 ) * 32 FROM tab2
----
-1440

query I rowsort
SELECT ALL - ( col0 ) * 99 AS col2 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT DISTINCT 97 DIV + col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT 97 / + col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + col0 * + 79 * - col0 FROM tab1
----
-205479
-570775
-654199

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-176
SELECT ALL - col2 DIV - col1 AS col0 FROM tab0 WHERE ( CAST( 94 AS SIGNED ) ) NOT IN ( - col1 )
----
0
0
99

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL - col2 / - col1 AS col0 FROM tab0 WHERE ( CAST ( 94 AS INTEGER ) ) NOT IN ( - col1 )
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT COUNT( * ) FROM tab1 WHERE NOT - 38 - - col0 NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-177
SELECT COUNT ( * ) FROM tab1 WHERE NOT - 38 - - col0 NOT IN ( + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT DISTINCT col2 DIV col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
11
6

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT col2 / col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
11
6

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

query I rowsort
SELECT 4 * 19 + col0 * - col0 FROM tab0 WHERE - col1 * + col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT + SUM( ALL - 91 ) + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT + SUM ( ALL - 91 ) + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-264

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
4032
7779
9508

query I rowsort
SELECT ALL - 71 + + ( - 65 ) AS col0 FROM tab1 AS cor0
----
-136
-136
-136

query I rowsort
SELECT 60 + + col0 FROM tab2 AS cor0
----
106
124
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT - + 46 * + - 64 + - CAST( NULL AS SIGNED ) * - 65 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT - + 46 * + - 64 + - CAST ( NULL AS INTEGER ) * - 65 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) <> 94 / + 52 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-189
SELECT - COUNT( * ) DIV 29 + + COUNT( * ) FROM tab1 AS cor0 WHERE 37 * col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-189
SELECT - COUNT ( * ) / 29 + + COUNT ( * ) FROM tab1 AS cor0 WHERE 37 * col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL 83 * - COUNT( * ) FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL 83 * - COUNT ( * ) FROM tab1
----
-249

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( - 47 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT ALL - CAST( - 18 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL - CAST ( - 18 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

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

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

query I rowsort
SELECT - - col2 * + col1 * + + 47 FROM tab2 AS cor0
----
144760
182642
55131

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

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

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

query I rowsort
SELECT - 57 - - + col2 + + col1 AS col2 FROM tab2 AS cor0
----
17
60
68

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT DISTINCT COUNT( * ) + - ( - 12 ) col0 FROM tab1 AS cor0
----
15

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

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

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

query I rowsort
SELECT ALL - col0 + + 39 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
-12
-46
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 - - col1 col0 FROM tab2 AS cor0
----
-1
-11
-27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 19 NOT IN ( + ( + 51 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL - - COUNT( * ) - - 30 col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-204
SELECT ALL - - COUNT ( * ) - - 30 col0 FROM tab2 AS cor0
----
33

query I rowsort
SELECT + col0 - - - ( + - col1 ) * + 98 FROM tab1 AS cor0
----
1423
4697
575

query I rowsort
SELECT ALL col2 + 41 * + ( + 91 ) * col0 FROM tab2
----
171649
238824
279883

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT DISTINCT - col1 DIV - 83 + - 63 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - col1 / - 83 + - 63 FROM tab1
----
-63

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL CAST ( 15 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT col0 * col0 - - col0 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query II rowsort label-214
SELECT + 17, COUNT( * ) col1 FROM tab0
----
17
3

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * - 99 col2 FROM tab1 AS cor0 WHERE ( 12 * + 44 ) > col2
----
8316

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

query I rowsort
SELECT DISTINCT 86 FROM tab0 AS cor0 WHERE NOT + ( - - col1 ) * col0 + 82 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 47 * + col1 - + col0 + - + 65 ) > NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT + + 1 IN ( - - 61 )
----
10
47
99

query I rowsort
SELECT - col1 + 14 * + 83 + + col2 AS col1 FROM tab2
----
1125
1134
1153

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT COUNT( * ) * - ( - COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-228
SELECT COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab1
----
9

query I rowsort
SELECT col2 * + col0 * + + col1 AS col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT 16 * + + col0 AS col2 FROM tab2
----
1024
1200
736

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

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab1 AS cor0 WHERE ( col2 / - ( + col0 ) * - + col0 * - col2 ) BETWEEN ( - 26 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 0 + + + col1 * + ( col2 ) - - + col1 * - col1 FROM tab0 AS cor0
----
-252
-2835
97

query I rowsort
SELECT - col1 * - col2 + - 31 AS col1 FROM tab0
----
179
3776
68

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL - COUNT( * ) + - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-101

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - COUNT ( * ) + - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-101

query I rowsort
SELECT - 79 + + col0 * - 61 FROM tab1
----
-3190
-5264
-5630

query I rowsort
SELECT - 73 + col1 FROM tab1 cor0
----
-26
-59
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL - COUNT( * ) + + 67 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - COUNT ( * ) + + 67 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-204

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT - col1 * - - CAST( 68 AS SIGNED ) + 98 * 11 col2 FROM tab0 AS cor0 WHERE col0 * + col2 = - 38
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-240
SELECT - col1 * - - CAST ( 68 AS INTEGER ) + 98 * 11 col2 FROM tab0 AS cor0 WHERE col0 * + col2 = - 38
----

query II rowsort
SELECT ALL - 11 * + 60 + 47, + col0 FROM tab2 AS cor0
----
-613
46
-613
64
-613
75

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

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

query I rowsort
SELECT ALL - 57 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-244
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( - - CAST( + 25 AS SIGNED ), + 98 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-244
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( - - CAST ( + 25 AS INTEGER ), + 98 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT + 45 * + CAST( + - col0 AS SIGNED ) FROM tab0 WHERE NOT + + col1 IN ( - + col1 )
----
-3915
-4365
-675

skipif mysql # not compatible
query I rowsort label-245
SELECT + 45 * + CAST ( + - col0 AS INTEGER ) FROM tab0 WHERE NOT + + col1 IN ( - + col1 )
----
-3915
-4365
-675

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
15
87
97

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col0 FROM tab1
----
-25

query I rowsort
SELECT - ( - 85 ) AS col0 FROM tab2
----
85
85
85

query I rowsort
SELECT - 63 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( + 12 ) < ( + - 57 ) )
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT ( - col2 ) > + 68
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

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

query II rowsort
SELECT DISTINCT + 56 + + - 28 AS col0, col2 AS col0 FROM tab2 AS cor0
----
28
23
28
40
28
58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT COUNT( * ) * + - 62 AS col1 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-260
SELECT COUNT ( * ) * + - 62 AS col1 FROM tab2
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-261
SELECT ALL - CAST( + col0 AS SIGNED ) + - col1 AS col2, - col1 AS col0 FROM tab1 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query II rowsort label-261
SELECT ALL - CAST ( + col0 AS INTEGER ) + - col1 AS col2, - col1 AS col0 FROM tab1 WHERE NOT NULL > ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-263
SELECT - CAST( col2 AS SIGNED ) DIV - col2 + - 37 + + - col1 AS col0 FROM tab1 AS cor0
----
-41
-50
-83

skipif mysql # not compatible
query I rowsort label-263
SELECT - CAST ( col2 AS INTEGER ) / - col2 + - 37 + + - col1 AS col0 FROM tab1 AS cor0
----
-41
-50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT + 67 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-264
SELECT + 67 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT ALL + COUNT( * ) + 8 AS col2 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + COUNT ( * ) + 8 AS col2 FROM tab1 cor0
----
11

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab2 WHERE + + col2 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + - 2 - + COUNT( * ) * - COUNT( - - col1 ) AS col2 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-269
SELECT + - 2 - + COUNT ( * ) * - COUNT ( - - col1 ) AS col2 FROM tab2 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 * - col0 col2 FROM tab2 AS cor0
----
-552
-768
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT DISTINCT - 83 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - 83 / - col0 AS col0 FROM tab0 AS cor0
----
0
5

query I rowsort
SELECT ALL - col1 * - + ( - + col0 ) + + 50 AS col2 FROM tab1 AS cor0
----
-375
-4227
-664

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

skipif mysql # not compatible
query III rowsort label-273
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT DISTINCT 7 DIV + 16 - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT 7 / + 16 - + COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT ALL col1 FROM tab0 WHERE NOT - + ( col1 ) * - 18 + col1 + 69 * + CAST( NULL AS SIGNED ) IN ( + - col0 )
----

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL col1 FROM tab0 WHERE NOT - + ( col1 ) * - 18 + col1 + 69 * + CAST ( NULL AS INTEGER ) IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT 5 + - - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <= - - col0
----
5

skipif mysql # not compatible
query I rowsort label-277
SELECT 5 + - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <= - - col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL - 38 * + 40 * + ( + - ( - + COUNT( * ) ) ) AS col2 FROM tab2
----
-4560

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - 38 * + 40 * + ( + - ( - + COUNT ( * ) ) ) AS col2 FROM tab2
----
-4560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col1 + - ( - col2 ) > + + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL + 57 * + 40 * + SUM( - + col0 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL + 57 * + 40 * + SUM ( - + col0 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT - - 61 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT ALL col1 DIV - - col0 + - 6 * - + 35 AS col0 FROM tab1 AS cor0
----
210
210
210

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL col1 / - - col0 + - 6 * - + 35 AS col0 FROM tab1 AS cor0
----
210
210
210

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

skipif mysql # not compatible
query II rowsort label-283
SELECT ALL - 10 / - col2, col1 AS col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query II rowsort
SELECT ALL col2, 78 FROM tab2
----
23
78
40
78
58
78

query I rowsort
SELECT ALL 69 * + 40 AS col0 FROM tab0
----
2760
2760
2760

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT COUNT( ALL - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-287
SELECT COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT col2 + - - 76 FROM tab1 AS cor0
----
135
144
172

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL 79 + + COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL 79 + + COUNT ( * ) FROM tab1 AS cor0
----
82

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-293
SELECT DISTINCT * FROM tab0 WHERE NOT - 11 = CAST( NULL AS SIGNED ) OR + col0 NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-293
SELECT DISTINCT * FROM tab0 WHERE NOT - 11 = CAST ( NULL AS INTEGER ) OR + col0 NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT + col2 DIV - + col0 + + col2 * 25 FROM tab1
----
1475
1700
2399

skipif mysql # not compatible
query I rowsort label-294
SELECT + col2 / - + col0 + + col2 * 25 FROM tab1
----
1475
1700
2399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-295
SELECT ALL ( + COUNT( * ) ) + - CAST( + + 22 AS SIGNED ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL ( + COUNT ( * ) ) + - CAST ( + + 22 AS INTEGER ) AS col2 FROM tab0
----
-19

query I rowsort
SELECT DISTINCT 2 - col0 AS col2 FROM tab2
----
-44
-62
-73

query II rowsort
SELECT DISTINCT - col1 / col0 AS col2, 9 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - 69 ) FROM tab2
----
-69
-69
-69

query I rowsort
SELECT 57 * + col0 AS col0 FROM tab2
----
2622
3648
4275

query I rowsort
SELECT col1 * + 17 * 61 AS col0 FROM tab0
----
1037
21777
83997

query III rowsort
SELECT * FROM tab2 WHERE + 80 + col1 * + col2 * + 21 * - col0 > ( - - 18 )
----

query I rowsort
SELECT ALL + col0 + - + col0 + + 36 * col1 AS col0 FROM tab2
----
1836
2412
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT ALL + col2 + - col1 + - col1 DIV col2 DIV col1 AS col0 FROM tab1 cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL + col2 + - col1 + - col1 / col2 / col1 AS col0 FROM tab1 cor0
----
21
54
82

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

skipif mysql # not compatible
query I rowsort label-304
SELECT ( - 35 ) * + CAST ( NULL AS INTEGER ) + + 45 * + COUNT ( * ) + 85 FROM tab1
----
NULL

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

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

query I rowsort
SELECT 64 + col1 - + col2 + + - col0 * col1 FROM tab2
----
-2254
-4827
-4952

query I rowsort
SELECT - col1 + + - col1 + col2 FROM tab1
----
-26
49
68

query I rowsort
SELECT 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

query I rowsort
SELECT + col1 * + + 71 * - col0 FROM tab0 AS cor0
----
-129717
-6887
-86265

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL CAST( 52 AS SIGNED ) FROM tab0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL CAST ( 52 AS INTEGER ) FROM tab0
----
52
52
52

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

query I rowsort
SELECT ALL col1 * + 57 * + + col0 FROM tab1
----
24225
243789
40698

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT + 72 * - COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + 72 * - COUNT ( * ) FROM tab0
----
-216

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IN ( 42 )
----

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

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT + COUNT ( * ) / + SUM ( + ( + + col2 ) ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT - COUNT( * ) * + 41 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - COUNT ( * ) * + 41 FROM tab0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT + - COUNT( * ) + + - 80 AS col1 FROM tab1 AS cor0 WHERE + 25 IN ( + 86 / - - col2, col1, + + col1 * + ( - col1 ) + + + 47 + + - col2 - 49 * col2 * col2 )
----
-80

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + - COUNT ( * ) + + - 80 AS col1 FROM tab1 AS cor0 WHERE + 25 IN ( + 86 / - - col2, col1, + + col1 * + ( - col1 ) + + + 47 + + - col2 - 49 * col2 * col2 )
----
-80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-324
SELECT + 76 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 51 IN ( + + CAST( col2 AS SIGNED ) - + ( + 79 ) )
----
228

skipif mysql # not compatible
query I rowsort label-324
SELECT + 76 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 51 IN ( + + CAST ( col2 AS INTEGER ) - + ( + 79 ) )
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT DISTINCT - 34 FROM tab1 AS cor0 WHERE ( + col2 ) >= col0 * + CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT - 34 FROM tab1 AS cor0 WHERE ( + col2 ) >= col0 * + CAST ( NULL AS INTEGER ) + + col1
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT 20 DIV 83 + - MAX( DISTINCT + 22 ) AS col1 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-328
SELECT 20 / 83 + - MAX ( DISTINCT + 22 ) AS col1 FROM tab2
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - 96, col1 * + - 96 col1 FROM tab1
----
-5664
-480
-6528
-4512
-9216
-1344

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-331
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 > - - col0 / + CAST( col2 AS SIGNED ) * + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-331
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 > - - col0 / + CAST ( col2 AS INTEGER ) * + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 + + 18 FROM tab2 AS cor0
----
64
82
93

query II rowsort
SELECT DISTINCT + col1 * 30 AS col1, col2 FROM tab1 cor0
----
1410
68
150
59
420
96

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT DISTINCT - 71 + - COUNT( * ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT - 71 + - COUNT ( * ) FROM tab2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-335
SELECT DISTINCT CAST( - + 34 AS SIGNED ) - + col2 * + col1 FROM tab1
----
-1378
-3230
-329

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT CAST ( - + 34 AS INTEGER ) - + col2 * + col1 FROM tab1
----
-1378
-3230
-329

query I rowsort
SELECT + 45 + + - col2 AS col2 FROM tab1
----
-14
-23
-51

query II rowsort
SELECT DISTINCT 43 AS col2, 42 AS col0 FROM tab0
----
43
42

query I rowsort
SELECT - col1 + - col1 + 37 FROM tab1
----
-57
27
9

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

query I rowsort
SELECT ALL - - col0 FROM tab1 cor0 WHERE NOT col1 > 21
----
51
85

query I rowsort
SELECT ALL + ( + - 6 ) FROM tab1
----
-6
-6
-6

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-345
SELECT + 82 * - 80 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-6560
-3

skipif mysql # not compatible
query II rowsort label-345
SELECT + 82 * - 80 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-6560
-3

query I rowsort
SELECT DISTINCT ( - 44 ) FROM tab2 cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-347
SELECT DISTINCT CAST( + col2 AS SIGNED ) * 39 + + col1 AS col2 FROM tab2
----
1637
2329
948

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * 39 + + col1 AS col2 FROM tab2
----
1637
2329
948

query I rowsort
SELECT DISTINCT - 44 * + + col0 FROM tab0
----
-3828
-4268
-660

query I rowsort
SELECT DISTINCT - - 61 AS col1 FROM tab2 WHERE col1 + + 97 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 15 NOT BETWEEN + - 60 AND ( - 12 + - col2 )
----

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

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

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

query I rowsort
SELECT DISTINCT + - 83 * - + 69 FROM tab0 cor0
----
5727

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

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

query I rowsort
SELECT + 18 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT 38 BETWEEN NULL AND NULL )
----

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

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

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE 99 NOT BETWEEN - + 87 AND + col2
----
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT COUNT( * ) * + COUNT( * ) * SUM( col0 ) + 83 AS col2 FROM tab2 cor0
----
1748

skipif mysql # not compatible
query I rowsort label-361
SELECT COUNT ( * ) * + COUNT ( * ) * SUM ( col0 ) + 83 AS col2 FROM tab2 cor0
----
1748

query I rowsort
SELECT ALL col1 * + 70 + col0 AS col0 FROM tab1 AS cor0
----
1031
3381
435

query I rowsort
SELECT + 27 * + - 66 FROM tab2
----
-1782
-1782
-1782

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-365
SELECT COUNT ( ALL col1 ) col1, 81 FROM tab1
----
3
81

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

query III rowsort
SELECT * FROM tab1 WHERE + 28 <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-369
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + col1 + + 98 * - col2 + + - col0 + + 43 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + col1 + + 98 * - col2 + + - col0 + + 43 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 - 60 FROM tab1
----
-107
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT - COUNT( 69 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - COUNT ( 69 ) FROM tab2
----
-3

query I rowsort
SELECT - col1 * - 36 AS col1 FROM tab2
----
1836
2412
2772

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-373
SELECT * FROM tab2 WHERE - - 57 IN ( - col2 + - + CAST( - - ( 86 ) AS SIGNED ), + 48 * col1 + col1 * - 13 )
----

skipif mysql # not compatible
query III rowsort label-373
SELECT * FROM tab2 WHERE - - 57 IN ( - col2 + - + CAST ( - - ( 86 ) AS INTEGER ), + 48 * col1 + col1 * - 13 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT ALL - MIN( DISTINCT + 20 ), - COUNT( * ) + + 59 AS col1 FROM tab0
----
-20
56

skipif mysql # not compatible
query II rowsort label-374
SELECT ALL - MIN ( DISTINCT + 20 ), - COUNT ( * ) + + 59 AS col1 FROM tab0
----
-20
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-375
SELECT DISTINCT - col1 - + + 26 AS col1, + col2 / + - col0 + - - CAST( 55 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-375
SELECT DISTINCT - col1 - + + 26 AS col1, + col2 / + - col0 + - - CAST ( 55 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - ( 33 ) * + 31 * + 31 FROM tab2 cor0
----
31713
31713
31713

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

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

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

query I rowsort
SELECT + + col1 * - + 16 * ( + + col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-21555
-4805
-51227

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 3 <> NULL
----

query I rowsort
SELECT - + 21 * + col1 FROM tab0 AS cor0
----
-1701
-21
-441

query II rowsort
SELECT col1, - 92 AS col0 FROM tab1 AS cor0
----
14
-92
47
-92
5
-92

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

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

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

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

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

query I rowsort
SELECT - + col1 AS col2 FROM tab1 cor0 WHERE NOT - col2 <> + + col0 * + 76
----

query II rowsort
SELECT ALL - col1 AS col2, ( - + col0 ) * - + col0 FROM tab2 AS cor0
----
-51
2116
-67
5625
-77
4096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 44 col1 FROM tab1 AS cor0
----
2596
2992
4224

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

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

query I rowsort
SELECT ALL - - col2 * col2 FROM tab1 WHERE NULL IN ( col0 + - - col0, - 79 )
----

query I rowsort
SELECT + col2 + 91 AS col1 FROM tab1 AS cor0
----
150
159
187

query I rowsort
SELECT DISTINCT 62 * + col1 FROM tab0 AS cor0
----
1302
5022
62

query II rowsort
SELECT DISTINCT col2 AS col1, - 50 FROM tab1
----
59
-50
68
-50
96
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL SUM( - col1 ) + - 12 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL SUM ( - col1 ) + - 12 FROM tab2
----
-207

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + 76 AND NULL
----

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

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT - + SUM( DISTINCT + col2 ) - + + 57 - + - 2 AS col0 FROM tab1 AS cor0
----
-278

skipif mysql # not compatible
query I rowsort label-401
SELECT - + SUM ( DISTINCT + col2 ) - + + 57 - + - 2 AS col0 FROM tab1 AS cor0
----
-278

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 98 col1 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT ALL col0 - - + ( 68 ) * - col0 FROM tab0
----
-1005
-5829
-6499

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

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT ALL - 46 DIV + col2 FROM tab0 WHERE - - ( col1 ) <> 95 DIV col2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 46 / + col2 FROM tab0 WHERE - - ( col1 ) <> 95 / col2
----
-4
0
0

query I rowsort
SELECT - - 62 - col0 * + col1 FROM tab2 WHERE - + col1 + col0 IS NOT NULL
----
-2284
-4866
-4963

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

query I rowsort
SELECT col0 + - col1 - + col2 * - col2 + + 27 AS col0 FROM tab1
----
3588
4695
9280

query I rowsort
SELECT ALL col0 * col2 * - + col2 FROM tab0
----
-33135
-8700
-950697

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

query I rowsort
SELECT 69 * + 45 AS col1 FROM tab1 AS cor0
----
3105
3105
3105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL - + COUNT( * ) * 37 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - + COUNT ( * ) * 37 FROM tab1 AS cor0
----
-111

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

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

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

query I rowsort
SELECT ALL + - col2 * - + 45 + - col2 FROM tab0 AS cor0 WHERE - 18 IS NOT NULL
----
2068
4356
440

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT + 72 DIV + CAST( - - col0 AS SIGNED ) * - col1 DIV 40 + + + col2 AS col1 FROM tab2
----
22
39
58

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + 72 / + CAST ( - - col0 AS INTEGER ) * - col1 / 40 + + + col2 AS col1 FROM tab2
----
22
39
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 96 > NULL
----

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

query I rowsort
SELECT + ( - + col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query II rowsort label-424
SELECT ALL - + COUNT( - 85 ) AS col2, - MIN( - 30 ) col0 FROM tab0 AS cor0
----
-3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-424
SELECT ALL - + COUNT ( - 85 ) AS col2, - MIN ( - 30 ) col0 FROM tab0 AS cor0
----
-3
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT 73 * - + CAST( NULL AS SIGNED ) * + + MAX( ALL + CAST( 75 AS SIGNED ) ) / - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT 73 * - + CAST ( NULL AS INTEGER ) * + + MAX ( ALL + CAST ( 75 AS INTEGER ) ) / - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT ALL - - 85 DIV + + ( + + ( - ( col0 ) ) ) FROM tab0 WHERE NOT + col1 - - + col1 IS NULL
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - - 85 / + + ( + + ( - ( col0 ) ) ) FROM tab0 WHERE NOT + col1 - - + col1 IS NULL
----
-5
0
0

query I rowsort
SELECT 61 + - col0 AS col1 FROM tab1
----
-24
-30
10

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

query I rowsort
SELECT 55 * col0 + + + 14 AS col2 FROM tab1
----
2819
4689
5019

query I rowsort
SELECT 2 + - + col0 FROM tab1
----
-49
-83
-89

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE ( + 29 ) NOT BETWEEN col1 AND NULL
----
-81

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

query I rowsort
SELECT + col0 * + + col0 FROM tab2 WHERE NULL >= - - 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT col2 DIV + - col1 * + - ( col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-435
SELECT col2 / + - col1 * + - ( col2 ) FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT - - COUNT( * ) * 14 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-437
SELECT - - COUNT ( * ) * 14 FROM tab1 AS cor0
----
42

query II rowsort
SELECT - 73 * + col1 + - + ( 49 ) AS col0, - col0 AS col1 FROM tab0
----
-122
-97
-1582
-87
-5962
-15

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) * 24 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) * 24 FROM tab1 AS cor0
----
72

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

query I rowsort
SELECT ALL + 93 + - - col1 AS col0 FROM tab2
----
144
160
170

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT 8 * - ( - + COUNT( * ) ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-446
SELECT 8 * - ( - + COUNT ( * ) ) FROM tab0
----
24

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

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT - MIN ( + 10 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT col2 * + ( + - col0 ) * + col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL col2 * col0 * + - col0 * - col2 FROM tab2
----
1119364
18922500
6553600

query I rowsort
SELECT ALL + - col0 * - - col1 * - 99 AS col2 FROM tab0 WHERE - - col1 * - - col1 BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - - 26 <= + + col2 + - - 76
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 3 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT DISTINCT COUNT( * ) * - 13 col2 FROM tab1 cor0
----
-39

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

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

skipif mysql # not compatible
query II rowsort label-455
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3

query II rowsort
SELECT + - 92 * - ( col2 ), col0 FROM tab0 AS cor0
----
4324
15
9108
97
920
87

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-459
SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) FROM tab1
----
NULL
3

query I rowsort
SELECT + 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT + 2 + + SUM( - 72 ) AS col1 FROM tab1 AS cor0
----
-214

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + 2 + + SUM ( - 72 ) AS col1 FROM tab1 AS cor0
----
-214

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

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

query I rowsort
SELECT DISTINCT + + col0 + + col1 * - 85 AS col2 FROM tab0 AS cor0
----
-1698
-6870
12

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - SUM( + 23 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-464
SELECT - SUM ( + 23 ) FROM tab1 AS cor0
----
-69

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT - ( + 25 ) * + SUM( DISTINCT + col0 ) AS col2 FROM tab0 WHERE NOT - ( - 32 ) < 30 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT - ( + 25 ) * + SUM ( DISTINCT + col0 ) AS col2 FROM tab0 WHERE NOT - ( - 32 ) < 30 + + col0
----
NULL

query II rowsort
SELECT ALL ( + 81 ), - col2 + + + col0 * 78 + + ( - - 75 ) AS col1 FROM tab0
----
81
1198
81
6851
81
7542

query III rowsort
SELECT * FROM tab0 WHERE ( - - 31 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - 18 * + - col1 * + 24 IS NOT NULL OR NOT NULL = + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL - 32 * + + ( - col0 ) FROM tab0
----
2784
3104
480

query I rowsort
SELECT + 11 + col0 + - 68 * + col1 AS col1 FROM tab0
----
-1330
-5482
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL - + col0 + - CAST( col0 AS SIGNED ) + - - col1 * - 34 FROM tab1 AS cor0
----
-1780
-340
-578

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - + col0 + - CAST ( col0 AS INTEGER ) + - - col1 * - 34 FROM tab1 AS cor0
----
-1780
-340
-578

query I rowsort
SELECT - ( - col2 ) * + col2 + + col0 * col2 + - + col2 AS col1 FROM tab0 AS cor0
----
19305
2867
960

query I rowsort
SELECT ALL 43 + col0 AS col1 FROM tab1 AS cor0
----
128
134
94

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 31 / + col2 / - - 3 IS NULL
----

query I rowsort
SELECT 26 - - - col0 AS col2 FROM tab1 AS cor0
----
-25
-59
-65

query I rowsort
SELECT ALL + col0 * + 45 AS col0 FROM tab1 AS cor0
----
2295
3825
4095

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-482
SELECT + SUM( DISTINCT + col2 ) - - 96 DIV + - 17 FROM tab0 cor0
----
151

skipif mysql # not compatible
query I rowsort label-482
SELECT + SUM ( DISTINCT + col2 ) - - 96 / + - 17 FROM tab0 cor0
----
151

query I rowsort
SELECT ALL - + 63 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1110
3017
3823

query I rowsort
SELECT col2 - - - 47 FROM tab0 AS cor0
----
-37
0
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-485
SELECT CAST( - - col1 AS SIGNED ) * - + ( + col0 ) * - - col2 - col2 AS col0 FROM tab2 AS cor0
----
-197160
-291508
-53981

skipif mysql # not compatible
query I rowsort label-485
SELECT CAST ( - - col1 AS INTEGER ) * - + ( + col0 ) * - - col2 - col2 AS col0 FROM tab2 AS cor0
----
-197160
-291508
-53981

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT DISTINCT 83 * COUNT( ALL - 3 ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT 83 * COUNT ( ALL - 3 ) AS col0 FROM tab1
----
249

query I rowsort
SELECT - + 70 FROM tab0 WHERE NOT 67 BETWEEN + - 50 AND - + 66
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT - 25 * - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2175
2425
375

skipif mysql # not compatible
query I rowsort label-492
SELECT - 25 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2175
2425
375

query I rowsort
SELECT ALL - col2 * + + col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT col0 * + + 37 * 78 FROM tab2
----
132756
184704
216450

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT DISTINCT + col0 DIV - 15 AS col0 FROM tab1
----
-3
-5
-6

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT + col0 / - 15 AS col0 FROM tab1
----
-3
-5
-6

query II rowsort
SELECT ALL - 97, + col2 * + ( + + col1 ) AS col0 FROM tab0
----
-97
210
-97
3807
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT ALL + 84 DIV - + col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL + 84 / - + col2 FROM tab0 AS cor0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT MIN( DISTINCT - col1 ) + - + 85 AS col0 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-498
SELECT MIN ( DISTINCT - col1 ) + - + 85 AS col0 FROM tab1 AS cor0
----
-132

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL COUNT( * ) * ( + 8 ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL COUNT ( * ) * ( + 8 ) FROM tab0 cor0
----
24

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT ALL COUNT( * ) + ( + + 4 ) DIV - 24 col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-503
SELECT ALL COUNT ( * ) + ( + + 4 ) / - 24 col1 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT - col2 + - 37 AS col2 FROM tab1
----
-105
-133
-96

query I rowsort
SELECT ALL - 4 * col1 AS col1 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT ALL - col2 * 79 FROM tab2
----
-1817
-3160
-4582

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT + 71 * + - COUNT( ALL col1 ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT + 71 * + - COUNT ( ALL col1 ) FROM tab0
----
-213

query I rowsort
SELECT ALL col0 + 61 AS col2 FROM tab1
----
112
146
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-509
SELECT ALL ( - 33 ) DIV - - MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL ( - 33 ) / - - MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( NOT NULL = + ( - + col2 ) + 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT + + col2 DIV 75 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-511
SELECT + + col2 / 75 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - 98 AS col2 FROM tab1 AS cor0 WHERE - 83 * - 55 IS NULL
----

query I rowsort
SELECT ALL - 82 * + - 86 * + 17 + + + ( - + ( col1 ) ) + + 99 AS col1 FROM tab0 AS cor0
----
119902
119962
119982

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-514
SELECT + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT col0 DIV + 11 col1 FROM tab0
----
1
7
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-519
SELECT col0 / + 11 col1 FROM tab0
----
1
7
8

query I rowsort
SELECT - 8 * col2 FROM tab1
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT COUNT( 82 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-521
SELECT COUNT ( 82 ) AS col1 FROM tab1
----
3

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

query I rowsort
SELECT DISTINCT + ( 23 ) FROM tab1
----
23

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

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

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

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

skipif mysql # not compatible
query II rowsort label-526
SELECT DISTINCT + 83 AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
83
3

onlyif mysql # aggregate syntax: 
query II rowsort label-527
SELECT + COUNT( * ) col1, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-527
SELECT + COUNT ( * ) col1, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
3
3

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

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

query I rowsort
SELECT - + col2 * + 93 AS col0 FROM tab0 WHERE NOT - - col2 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col1 * + 87 FROM tab0 AS cor0
----
1827
7047
87

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

skipif mysql # not compatible
query I rowsort label-532
SELECT + + SUM ( + CAST ( - - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT DISTINCT - 90 DIV - 85 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT - 90 / - 85 AS col0 FROM tab0
----
1

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

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT ALL 0 - + - col0 + col0 + col1 AS col1 FROM tab2
----
143
205
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT + - SUM( + 85 ) * + COUNT( * ) + - MIN( ALL CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
-816

skipif mysql # not compatible
query I rowsort label-536
SELECT + - SUM ( + 85 ) * + COUNT ( * ) + - MIN ( ALL CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT - COUNT( * ) + - - ( - 68 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - COUNT ( * ) + - - ( - 68 ) FROM tab2
----
-71

query I rowsort
SELECT ALL - 31 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-539
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-539
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT + 67 * + col2 AS col0 FROM tab1
----
3953
4556
6432

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

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT - 43 DIV col2 * col1 * - 30 AS col0 FROM tab0 AS cor0
----
0
0
2520

skipif mysql # not compatible
query I rowsort label-544
SELECT - 43 / col2 * col1 * - 30 AS col0 FROM tab0 AS cor0
----
0
0
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT DISTINCT COUNT( * ) * - + ( + 25 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT COUNT ( * ) * - + ( + 25 ) FROM tab0 AS cor0
----
-75

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

skipif mysql # not compatible
query I rowsort label-546
SELECT + MAX ( - - 48 ) AS col2 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT - 10 + - 16 + + 18 + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT - 10 + - 16 + + 18 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-549
SELECT DISTINCT CAST( - 84 AS SIGNED ) DIV + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT CAST ( - 84 AS INTEGER ) / + col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-550
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1
----
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND 71 * - col0 * + - 41 - + 5
----

query II rowsort
SELECT + - col1 * - col0 AS col0, col1 FROM tab1 cor0
----
425
5
4277
47
714
14

query I rowsort
SELECT DISTINCT col2 + 55 * col0 FROM tab2 AS cor0
----
2553
3560
4183

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-557
SELECT DISTINCT - col0, 95 DIV 93 AS col0 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
query II rowsort label-557
SELECT DISTINCT - col0, 95 / 93 AS col0 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * col2 > ( 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NOT col0 >= - 89 / - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NOT col0 >= - 89 / - col0 )
----
0

query I rowsort
SELECT DISTINCT col1 * 25 + - + 53 + 81 * - + 36 AS col2 FROM tab2 AS cor0
----
-1044
-1294
-1694

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL - COUNT( * ) - - + 52 + 81 AS col2 FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - COUNT ( * ) - - + 52 + 81 AS col2 FROM tab0
----
130

query I rowsort
SELECT + 97 * + 40 AS col2 FROM tab2
----
3880
3880
3880

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

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

query I rowsort
SELECT 40 * - + 6 FROM tab0
----
-240
-240
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 - col0 col1 FROM tab2 AS cor0
----
-122
-140
-151

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 33 IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT + 34 DIV - 10 AS col2 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-573
SELECT + 34 / - 10 AS col2 FROM tab2
----
-3
-3
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-575
SELECT - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) / - 84 * + 72 * - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) / - 84 * + 72 * - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT - 85 AS col0, COUNT( * ) AS col1 FROM tab0
----
-85
3

skipif mysql # not compatible
query II rowsort label-576
SELECT - 85 AS col0, COUNT ( * ) AS col1 FROM tab0
----
-85
3

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT MAX( - - col2 ) * COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-577
SELECT MAX ( - - col2 ) * COUNT ( * ) FROM tab1
----
288

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

query II rowsort
SELECT ALL - - 72, 53 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
72
151
72
19
72
42

query I rowsort
SELECT + 47 + - col1 - - col1 * - 86 + col0 FROM tab2 AS cor0
----
-4344
-5707
-6588

onlyif mysql # DIV for integer division: 
query II rowsort label-581
SELECT DISTINCT col1 AS col0, 79 DIV + 39 + + col0 FROM tab2 AS cor0
----
51
48
67
77
77
66

skipif mysql # not compatible
query II rowsort label-581
SELECT DISTINCT col1 AS col0, 79 / + 39 + + col0 FROM tab2 AS cor0
----
51
48
67
77
77
66

query I rowsort
SELECT - col0 * 55 * - col2 * + ( 34 ) FROM tab1
----
11571560
9155520
9378050

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

query I rowsort
SELECT DISTINCT col1 + - - col0 * col2 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT - 13 * + - CAST( NULL AS SIGNED ) * - 70 * 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-585
SELECT - 13 * + - CAST ( NULL AS INTEGER ) * - 70 * 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT CAST( - AVG ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-586
SELECT CAST ( - AVG ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-74

query I rowsort
SELECT + col1 * col1 * col0 - + col0 FROM tab2 cor0
----
119600
336600
379392

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

onlyif mysql # DIV for integer division: 
query I rowsort label-589
SELECT ALL 96 + - col0 + 20 DIV - col1 AS col2 FROM tab1 AS cor0
----
44
5
7

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL 96 + - col0 + 20 / - col1 AS col2 FROM tab1 AS cor0
----
44
5
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL ( - 69 ) + 16 * - COUNT( * ) FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL ( - 69 ) + 16 * - COUNT ( * ) FROM tab1 AS cor0
----
-117

query I rowsort
SELECT ALL - 85 + + 13 FROM tab1 AS cor0
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT ALL col1 DIV - - col1 - 84 AS col0 FROM tab0 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL col1 / - - col1 - 84 AS col0 FROM tab0 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL - col2 - - col0 * col1 * - col2 FROM tab2 AS cor0
----
-197160
-291508
-53981

query I rowsort
SELECT col2 + + col1 * - - col2 FROM tab1
----
1440
3264
354

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 * - + col1 col1 FROM tab0 AS cor0
----
1785
6885
85

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

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

query I rowsort
SELECT DISTINCT + col1 * + 5 AS col1 FROM tab2 AS cor0
----
255
335
385

query I rowsort
SELECT - col1 + + col0 FROM tab2 WHERE NOT ( - col0 ) <> + col0
----

query I rowsort
SELECT DISTINCT 31 + + col1 AS col2 FROM tab2
----
108
82
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( 71 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL + COUNT( * ) + 95 AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL + COUNT ( * ) + 95 AS col1 FROM tab1
----
98

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

query I rowsort
SELECT ALL col1 * col2 FROM tab0 WHERE NULL BETWEEN ( col0 + + col2 ) AND ( col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT CAST( col1 AS SIGNED ) + 82 FROM tab2
----
133
149
159

skipif mysql # not compatible
query I rowsort label-607
SELECT CAST ( col1 AS INTEGER ) + 82 FROM tab2
----
133
149
159

query I rowsort
SELECT col2 * + col0 + + col2 FROM tab1
----
4992
5074
6256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL COUNT( ( col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL COUNT ( ( col1 ) ) FROM tab1
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( 65 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 + + col1 col0 FROM tab1
----
30
39
72

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE col2 NOT BETWEEN NULL AND + col1 * + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT - 15 + - 78 DIV - col0 AS col2 FROM tab0
----
-10
-15
-15

skipif mysql # not compatible
query I rowsort label-616
SELECT - 15 + - 78 / - col0 AS col2 FROM tab0
----
-10
-15
-15

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

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

query I rowsort
SELECT DISTINCT + ( + col2 ) - - 16 FROM tab1
----
112
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT ALL 81 DIV col2 FROM tab0 WHERE NULL IS NULL
----
0
1
8

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL 81 / col2 FROM tab0 WHERE NULL IS NULL
----
0
1
8

query III rowsort
SELECT * FROM tab1 WHERE 52 - + 46 <= NULL
----

query I rowsort
SELECT ALL - 57 FROM tab1 WHERE 75 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE col1 BETWEEN col0 * col0 + + col0 * + col2 AND 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT - MIN( + 26 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT - MIN ( + 26 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT ALL col2 DIV - col2 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL col2 / - col2 AS col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 + col0 * 90 AS col2 FROM tab1 AS cor0
----
4604
7655
8237

query I rowsort
SELECT ALL + col0 * - 75 + 31 FROM tab0
----
-1094
-6494
-7244

query I rowsort
SELECT DISTINCT + col2 * 4 FROM tab1
----
236
272
384

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

skipif mysql # not compatible
query I rowsort label-629
SELECT 89 + + COUNT ( * ) FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - - SUM( ALL col0 ) + COUNT( * ) * 98 col0 FROM tab2 AS cor0
----
479

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-630
SELECT - - SUM ( ALL col0 ) + COUNT ( * ) * 98 col0 FROM tab2 AS cor0
----
479

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

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT 73 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-632
SELECT 73 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
76

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

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

query I rowsort
SELECT ALL - col2 * 16 + 96 FROM tab1 cor0
----
-1440
-848
-992

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT DISTINCT 55 DIV COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT 55 / COUNT ( * ) FROM tab1 AS cor0
----
18

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

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

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

query I rowsort
SELECT 92 * col2 FROM tab2 cor0 WHERE col2 NOT IN ( col1 )
----
2116
3680
5336

query I rowsort
SELECT col2 * col0 + 31 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
736
901
9634

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

query I rowsort
SELECT - ( ( 73 ) ) FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - ( 66 ) - col1 AS col1 FROM tab0 AS cor0
----
-147
-67
-87

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

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

query I rowsort
SELECT DISTINCT 70 - 40 + col1 * 8 * + 90 AS col1 FROM tab0
----
15150
58350
750

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL COUNT ( + CAST ( 0 AS INTEGER ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT 32 - - ( col2 ) AS col0 FROM tab0
----
131
42
79

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT col0 * + 57 IN ( col2 )
----
1
21
81

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-655
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( 79 AS SIGNED ) NOT IN ( + col0 * col2 )
----

skipif mysql # not compatible
query III rowsort label-655
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( 79 AS INTEGER ) NOT IN ( + col0 * col2 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-658
SELECT + + COUNT ( - 62 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - col2 * + col0 * col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

query I rowsort
SELECT + - 9 * - - 34 FROM tab0 AS cor0
----
-306
-306
-306

query I rowsort
SELECT 71 + + col0 AS col2 FROM tab1 WHERE NOT col1 * col1 <= ( col2 / 75 )
----
122
156
162

query I rowsort
SELECT ALL - ( - 17 ) AS col1 FROM tab1
----
17
17
17

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 15 ) NOT BETWEEN ( + 88 ) AND ( + 96 )
----

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

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

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

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

query I rowsort
SELECT - - 82 * - 84 FROM tab2 AS cor0 WHERE NOT - 28 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + col0 * - 71 <= - 80 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 35 + + col2 AS col0 FROM tab2 AS cor0
----
58
75
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( - col1 ) * 56 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-674
SELECT ALL - - COUNT( * ) AS col1, - MIN( DISTINCT + - col0 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-674
SELECT ALL - - COUNT ( * ) AS col1, - MIN ( DISTINCT + - col0 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
88

query II rowsort
SELECT DISTINCT - - 66, 28 AS col1 FROM tab2 AS cor0
----
66
28

query I rowsort
SELECT + + col1 * - col2 - + + col2 AS col1 FROM tab0 AS cor0
----
-198
-220
-3854

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

query I rowsort
SELECT ALL 41 * - col1 AS col1 FROM tab0 cor0
----
-3321
-41
-861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col1 FROM tab0 cor0
----
-225
-7569
-9409

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

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

query I rowsort
SELECT - - 85 * + col1 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT ALL col1 * + 7 * + - col0 FROM tab0
----
-12789
-679
-8505

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

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

query I rowsort
SELECT ALL - ( col1 ) / - col1 AS col0 FROM tab1 WHERE NOT ( - - 3 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT ALL SUM( ALL col1 ) * SUM( ALL + - col1 ) FROM tab1
----
-4356

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL SUM ( ALL col1 ) * SUM ( ALL + - col1 ) FROM tab1
----
-4356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT COUNT( 10 ) + - COUNT( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + - CAST( NULL AS SIGNED ) AND - - col2 * ( + col1 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-686
SELECT COUNT ( 10 ) + - COUNT ( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND - - col2 * ( + col1 + col0 )
----
0

query I rowsort
SELECT - 70 - - 48 FROM tab0 WHERE NULL <= ( col2 ) AND NULL NOT BETWEEN col1 * - col2 - col1 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT + MAX( - 75 ) * ( + COUNT( * ) ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + MAX ( - 75 ) * ( + COUNT ( * ) ) FROM tab0
----
-225

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT col2 DIV 20 * - col0 FROM tab2
----
-128
-150
-46

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT col2 / 20 * - col0 FROM tab2
----
-128
-150
-46

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

query I rowsort
SELECT col1 * - + col2 * + - col0 AS col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 WHERE - + 74 + - - col2 + + 94 * col2 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 24 col1 FROM tab1 AS cor0
----
29
38
71

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

query I rowsort
SELECT - + col1 - + - 33 * + - 26 FROM tab0 AS cor0
----
-859
-879
-939

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

query I rowsort
SELECT ( col2 ) - + - 19 * + 98 FROM tab2 AS cor0
----
1885
1902
1920

query I rowsort
SELECT ALL - 40 + + ( - 44 ) AS col0 FROM tab0 AS cor0
----
-84
-84
-84

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

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

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

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

query I rowsort
SELECT ALL + col2 - col0 + - 44 AS col1 FROM tab1
----
-67
-70
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - 64 ) IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + - 89, - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN NULL AND - col1 * 20 - + col0 - - col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL SUM( DISTINCT + + col2 ) + + - 99 AS col2 FROM tab1 WHERE NOT NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL SUM ( DISTINCT + + col2 ) + + - 99 AS col2 FROM tab1 WHERE NOT NULL = col2
----
NULL

query I rowsort
SELECT + - col0 + - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-174
-194
-30

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

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

query I rowsort
SELECT ALL 1 FROM tab2 AS cor0 WHERE NOT - col2 * + 62 = col0
----
1
1
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT + SUM( + 61 ) FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-714
SELECT + SUM ( + 61 ) FROM tab1 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-715
SELECT - - ( - CAST( NULL AS SIGNED ) ), ( + 50 ) AS col0 FROM tab2 cor0
----
NULL
50
NULL
50
NULL
50

skipif mysql # not compatible
query II rowsort label-715
SELECT - - ( - CAST ( NULL AS INTEGER ) ), ( + 50 ) AS col0 FROM tab2 cor0
----
NULL
50
NULL
50
NULL
50

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT ALL + - 39 * col0 + - - col1 * 18 + col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
-3015
-3765
878

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL + - 39 * col0 + - - col1 * 18 + col1 / + col0 AS col0 FROM tab0 AS cor0
----
-3015
-3765
878

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT COUNT( * ) * + - 85 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT COUNT ( * ) * + - 85 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT ALL + - 67 + - col1 AS col1 FROM tab0 AS cor0
----
-148
-68
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - 63 + + 39 >= NULL
----

query I rowsort
SELECT ( col2 ) FROM tab2 AS cor0 WHERE NOT ( + 43 * + 61 ) <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-721
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * CAST( - + 77 AS DECIMAL ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-721
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * CAST ( - + 77 AS REAL ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT col0, col1 + - col1 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT + col0 * + 56 AS col0 FROM tab2
----
2576
3584
4200

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

query I rowsort
SELECT ALL 99 * - col0 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT + 38 * 71 AS col0 FROM tab2
----
2698
2698
2698

query I rowsort
SELECT - col2 * + col1 * 17 FROM tab0
----
-1683
-3570
-64719

query II rowsort
SELECT col0 AS col1, - col0 * 58 - - + col0 FROM tab1
----
51
-2907
85
-4845
91
-5187

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

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

query I rowsort
SELECT ALL + 3 * 73 * 20 + - 32 + + + col2 FROM tab2 cor0
----
4371
4388
4406

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-732
SELECT DISTINCT - 23 * - col1 * CAST( 93 AS SIGNED ), + col2 FROM tab0 AS cor0
----
173259
47
2139
99
44919
10

skipif mysql # not compatible
query II rowsort label-732
SELECT DISTINCT - 23 * - col1 * CAST ( 93 AS INTEGER ), + col2 FROM tab0 AS cor0
----
173259
47
2139
99
44919
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 57 > col1
----

query I rowsort
SELECT DISTINCT 29 * + 43 - - - col0 FROM tab0 AS cor0
----
1150
1160
1232

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL - MAX( ALL - 87 ) AS col1 FROM tab1 AS cor0 WHERE NOT 49 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - MAX ( ALL - 87 ) AS col1 FROM tab1 AS cor0 WHERE NOT 49 <= NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-738
SELECT ALL 12 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-738
SELECT ALL 12 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

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

query II rowsort
SELECT col1, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT MIN( ALL + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT MIN ( ALL + col0 ) AS col2 FROM tab1
----
51

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

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab1 WHERE - 93 = col1
----

query II rowsort
SELECT - 80 AS col2, 51 AS col0 FROM tab0
----
-80
51
-80
51
-80
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-748
SELECT DISTINCT + + 73 * - CAST( + + 2 AS SIGNED ) * col2 + - - col2, col1 FROM tab1 cor0
----
-13920
14
-8555
5
-9860
47

skipif mysql # not compatible
query II rowsort label-748
SELECT DISTINCT + + 73 * - CAST ( + + 2 AS INTEGER ) * col2 + - - col2, col1 FROM tab1 cor0
----
-13920
14
-8555
5
-9860
47

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT ALL + COUNT( * ) * + 80 AS col1 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + COUNT ( * ) * + 80 AS col1 FROM tab0 AS cor0
----
240

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

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

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

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

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

query I rowsort
SELECT + 63 - + 69 AS col0 FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
-6
-6
-6

query I rowsort
SELECT ALL + 78 + + 2 * - col1 * col2 + + col0 * - col1 AS col2 FROM tab0
----
-2169
-217
-8751

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL - ( + COUNT( * ) ) + + - 91 col1 FROM tab2 AS cor0 WHERE 91 IS NOT NULL
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-755
SELECT ALL - ( + COUNT ( * ) ) + + - 91 col1 FROM tab2 AS cor0 WHERE 91 IS NOT NULL
----
-94

query II rowsort
SELECT - 26, + col0 FROM tab1 AS cor0
----
-26
51
-26
85
-26
91

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

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

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

query I rowsort
SELECT col2 * + col2 FROM tab1 AS cor0 WHERE ( - col1 / + col1 ) NOT BETWEEN + ( - col0 ) AND 34 * - 96
----
3481
4624
9216

query I rowsort
SELECT ALL + col2 * + 94 + col0 FROM tab0 AS cor0 WHERE ( ( - col1 ) ) NOT BETWEEN NULL AND col0 * + - 19
----
1027
4433
9403

query I rowsort
SELECT ALL - col1 + col2 + - - ( col2 ) + + col0 * col1 * - col1 * + col2 FROM tab0 AS cor0
----
-383671
-4625492
-9406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-763
SELECT ALL COUNT( * ) + + 23 DIV 38 * COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-763
SELECT ALL COUNT ( * ) + + 23 / 38 * COUNT ( * ) col0 FROM tab2
----
3

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

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

query I rowsort
SELECT - 28 * - col0 * + - col1 AS col0 FROM tab1
----
-11900
-119756
-19992

query I rowsort
SELECT ALL - ( - col2 ) * col1 + + + 26 FROM tab1
----
1370
321
3222

query I rowsort
SELECT col1 + - 38 AS col2 FROM tab1
----
-24
-33
9

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 + + 88 + + col1 AS col2 FROM tab1 cor0
----
152
198
203

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + 64 + + - COUNT( * ) col0 FROM tab1 AS cor0
----
61

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-771
SELECT col0 + - + col1 AS col2, CAST( 52 AS SIGNED ) * - 84 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
37
-419328
44
-297024
80
-257712

skipif mysql # not compatible
query II rowsort label-771
SELECT col0 + - + col1 AS col2, CAST ( 52 AS INTEGER ) * - 84 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
37
-419328
44
-297024
80
-257712

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

query I rowsort
SELECT - ( + 81 ) - + 20 + + - col1 * + 83 * + + col0 FROM tab0 AS cor0
----
-100946
-151742
-8152

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-776
SELECT 19 * col0 * - col2 AS col0, + col0 DIV col1 * + 97 + + - col0 DIV + - col0 - + col0 * + + col0 FROM tab0 AS cor0
----
-13395
-224
-16530
-7180
-182457
1

skipif mysql # not compatible
query II rowsort label-776
SELECT 19 * col0 * - col2 AS col0, + col0 / col1 * + 97 + + - col0 / + - col0 - + col0 * + + col0 FROM tab0 AS cor0
----
-13395
-224
-16530
-7180
-182457
1

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

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

query I rowsort
SELECT ALL col1 * - col1 * - - col2 + col0 FROM tab0 AS cor0
----
-2
-308352
-4323

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

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

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

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

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

query I rowsort
SELECT ALL col2 * + + 4 FROM tab0
----
188
396
40

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

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

query I rowsort
SELECT DISTINCT - col0 * - 78 FROM tab0
----
1170
6786
7566

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT DISTINCT + CAST( + 85 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
85

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + CAST ( + 85 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-787
SELECT + 7 / 90 FROM tab1 WHERE NOT ( NULL NOT IN ( CAST( NULL AS DECIMAL ) * + 61 * - + col1 + + col1, + ( - - ( + col0 ) ), + 50 * + - col0 + + + col0 * ( + col2 ) * col1 ) )
----

skipif mysql # not compatible
query I rowsort label-787
SELECT + 7 / 90 FROM tab1 WHERE NOT ( NULL NOT IN ( CAST ( NULL AS REAL ) * + 61 * - + col1 + + col1, + ( - - ( + col0 ) ), + 50 * + - col0 + + + col0 * ( + col2 ) * col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-788
SELECT + col1 + - + CAST( - - col2 AS SIGNED ) * + 99 - + 75 - - + col2 DIV - col2 + col2 AS col2 FROM tab0 AS cor0
----
-1035
-4601
-9777

skipif mysql # not compatible
query I rowsort label-788
SELECT + col1 + - + CAST ( - - col2 AS INTEGER ) * + 99 - + 75 - - + col2 / - col2 + col2 AS col2 FROM tab0 AS cor0
----
-1035
-4601
-9777

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 28 + + ( 23 ) IN ( + col0 + 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-790
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 / + 94 - - 32 * col0 * 79 * - CAST( NULL AS SIGNED ) - + col0 * + - col2 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-790
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 / + 94 - - 32 * col0 * 79 * - CAST ( NULL AS INTEGER ) - + col0 * + - col2 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT ALL - ( + + COUNT( * ) ) + - + 20 AS col1, + MIN( DISTINCT + 52 ) AS col1 FROM tab1 AS cor0
----
-23
52

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL - ( + + COUNT ( * ) ) + - + 20 AS col1, + MIN ( DISTINCT + 52 ) AS col1 FROM tab1 AS cor0
----
-23
52

query I rowsort
SELECT - - ( + col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, 20 / + col1, - + col0, + 68 * 97 - col0 + + 30 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-797
SELECT - + 21 DIV - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-797
SELECT - + 21 / - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab1 WHERE NOT - ( + col0 ) > - col0 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab1 WHERE NOT - ( + col0 ) > - col0 * + 62
----
NULL

query II rowsort
SELECT ALL col1 AS col2, + 96 + + + col2 FROM tab1
----
14
192
47
164
5
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT + COUNT( * ) col1 FROM tab0 WHERE - CAST( - ( col1 ) AS SIGNED ) <> col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-801
SELECT + COUNT ( * ) col1 FROM tab0 WHERE - CAST ( - ( col1 ) AS INTEGER ) <> col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-802
SELECT DISTINCT * FROM tab0 WHERE NOT - 92 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-802
SELECT DISTINCT * FROM tab0 WHERE NOT - 92 IN ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT 72 AS col0, - col0 + 43 FROM tab1
----
72
-42
72
-48
72
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL + MIN( + 29 ) + - - COUNT( * ) FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL + MIN ( + 29 ) + - - COUNT ( * ) FROM tab1 cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT ALL + col2 * - + 84 + - col2 + 2 * + 93 DIV + 67 AS col0 FROM tab1 AS cor0
----
-5013
-5778
-8158

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + col2 * - + 84 + - col2 + 2 * + 93 / + 67 AS col0 FROM tab1 AS cor0
----
-5013
-5778
-8158

query I rowsort
SELECT 28 * + - 37 - + col0 FROM tab1 AS cor0
----
-1087
-1121
-1127

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT DISTINCT + - 11 * col2 FROM tab1 AS cor0 WHERE NOT NULL > CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT + - 11 * col2 FROM tab1 AS cor0 WHERE NOT NULL > CAST ( col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT DISTINCT MAX( + col1 ) AS col0, 97 AS col0 FROM tab0 AS cor0
----
81
97

skipif mysql # not compatible
query II rowsort label-811
SELECT DISTINCT MAX ( + col1 ) AS col0, 97 AS col0 FROM tab0 AS cor0
----
81
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT 80 * - + COUNT( * ) * CAST( - 92 AS SIGNED ) col2 FROM tab0 AS cor0
----
22080

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-812
SELECT 80 * - + COUNT ( * ) * CAST ( - 92 AS INTEGER ) col2 FROM tab0 AS cor0
----
22080

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT + MIN( ALL - + 67 ) col2 FROM tab1
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-815
SELECT + MIN ( ALL - + 67 ) col2 FROM tab1
----
-67

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

query II rowsort
SELECT col0, 0 AS col2 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT ALL - 28 + - + 65, - COUNT( * ) col0 FROM tab2 WHERE col0 * col2 IS NOT NULL
----
-93
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-818
SELECT ALL - 28 + - + 65, - COUNT ( * ) col0 FROM tab2 WHERE col0 * col2 IS NOT NULL
----
-93
-3

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + ( + - col1 ), + 65 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT ALL + 74 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + 74 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT + col2 DIV + col1 + - + col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-824
SELECT + col2 / + col1 + - + col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT - 17 + + + col2 DIV 60 * - col1 FROM tab1
----
-17
-31
-64

skipif mysql # not compatible
query I rowsort label-826
SELECT - 17 + + + col2 / 60 * - col1 FROM tab1
----
-17
-31
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT ALL - 51 DIV - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - 51 / - COUNT ( * ) FROM tab1
----
17

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query II rowsort
SELECT - 73 / 48 * + col0 AS col0, col2 AS col2 FROM tab1 WHERE + 48 BETWEEN NULL AND + + col0 * + col1 + + col0
----

query I rowsort
SELECT DISTINCT col0 * - + col1 + + col2 + - col0 FROM tab2 AS cor0
----
-2369
-4952
-5042

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - - col2 * - col2 + - 87 BETWEEN + - col0 + + + 52 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT DISTINCT + CAST( + + 46 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
-1
32
41

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + CAST ( + + 46 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
-1
32
41

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

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT ALL - col0 * col1 DIV + col0 + - 10 FROM tab2 AS cor0
----
-61
-77
-87

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - col0 * col1 / + col0 + - 10 FROM tab2 AS cor0
----
-61
-77
-87

query I rowsort
SELECT ALL + 35 + + - col1 AS col2 FROM tab1
----
-12
21
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-841
SELECT DISTINCT - 2 + - col0 / - - CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT - 2 + - col0 / - - CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 34 - col2 FROM tab2
----
-24
-6
11

query I rowsort
SELECT + col2 * + col1 + + 78 * + + 42 FROM tab1 AS cor0
----
3571
4620
6472

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-849
SELECT DISTINCT + + 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 59 + - ( ( CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + + 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 59 + - ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT + 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL 60 * - + col1 * + col0 AS col0 FROM tab2
----
-140760
-295680
-301500

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 62 * col0 * + col1 > - + col1
----

query I rowsort
SELECT col2 * + col0 - - 57 AS col0 FROM tab0 cor0
----
762
927
9660

query II rowsort
SELECT + + col2 * + col2, + col0 AS col1 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

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

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL + 76 * MIN( - col0 ) col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-856
SELECT ALL + 76 * MIN ( - col0 ) col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

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

query I rowsort
SELECT col1 * + 51 * + col2 FROM tab1 AS cor0
----
15045
162996
68544

query I rowsort
SELECT 26 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-860
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + col2 AS col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-860
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col2 AS col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-862
SELECT * FROM tab0 WHERE NOT - - ( + CAST( - 26 AS SIGNED ) ) * - col0 > - col0 + - col0
----

skipif mysql # not compatible
query III rowsort label-862
SELECT * FROM tab0 WHERE NOT - - ( + CAST ( - 26 AS INTEGER ) ) * - col0 > - col0 + - col0
----

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

query I rowsort
SELECT DISTINCT + col1 * col0 * - 36 FROM tab2 AS cor0
----
-177408
-180900
-84456

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

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - CAST ( - - 87 AS INTEGER ) FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT - MIN( ALL - 44 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
44

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT - MIN ( ALL - 44 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
44

query I rowsort
SELECT DISTINCT + + col0 * col0 * + + col1 * + 97 + + col0 AS col1 FROM tab2 AS cor0
----
10467898
30593088
36556950

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT ALL 13 * - - 9 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL 13 * - - 9 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 24 * - - col2 AS col2 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT + 1 * - 38 FROM tab1
----
-38
-38
-38

query II rowsort
SELECT DISTINCT + 78 + - 25, 50 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
53
50

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

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

query I rowsort
SELECT col0 + 47 FROM tab2 AS cor0
----
111
122
93

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL 7 * + MIN( col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL 7 * + MIN ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 10 + + col1 FROM tab1 cor0
----
15
24
57

query I rowsort
SELECT ALL ( - - 85 ) + + 30 AS col1 FROM tab2 cor0
----
115
115
115

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

onlyif mysql # DIV for integer division: 
query II rowsort label-879
SELECT DISTINCT - col2 - + - col2 AS col2, + 33 + - col0 DIV - 50 AS col2 FROM tab2
----
0
33
0
34

skipif mysql # not compatible
query II rowsort label-879
SELECT DISTINCT - col2 - + - col2 AS col2, + 33 + - col0 / - 50 AS col2 FROM tab2
----
0
33
0
34

query I rowsort
SELECT ALL ( - col0 ) + 15 AS col1 FROM tab0
----
-72
-82
0

query I rowsort
SELECT ALL + col1 - ( col0 ) AS col0 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-882
SELECT DISTINCT * FROM tab2 WHERE ( 47 NOT IN ( col2 / - col2 + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-882
SELECT DISTINCT * FROM tab2 WHERE ( 47 NOT IN ( col2 / - col2 + CAST ( NULL AS REAL ) ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT - 84 - + 94 - - 20 DIV - 28 FROM tab2
----
-178
-178
-178

skipif mysql # not compatible
query I rowsort label-884
SELECT - 84 - + 94 - - 20 / - 28 FROM tab2
----
-178
-178
-178

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-886
SELECT DISTINCT * FROM tab1 WHERE NOT ( 50 ) * - + CAST( NULL AS SIGNED ) + 90 + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-886
SELECT DISTINCT * FROM tab1 WHERE NOT ( 50 ) * - + CAST ( NULL AS INTEGER ) + 90 + - col2 IS NULL
----

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

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

query II rowsort
SELECT 5 AS col1, 67 FROM tab1
----
5
67
5
67
5
67

query I rowsort
SELECT ALL ( 17 ) FROM tab1
----
17
17
17

query I rowsort
SELECT DISTINCT - 30 FROM tab1 AS cor0 WHERE NOT + col0 * col0 + 57 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 23 AS col2 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT - 99 * - col0 * + col1 AS col0 FROM tab2 AS cor0
----
232254
487872
497475

query I rowsort
SELECT DISTINCT - 10 * + col1 + + + col0 FROM tab2 AS cor0
----
-464
-595
-706

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT col1 * + ( - + col1 ) * + 70 + + col0 DIV + ( + 86 ) FROM tab2 AS cor0
----
-182070
-314230
-415030

skipif mysql # not compatible
query I rowsort label-895
SELECT col1 * + ( - + col1 ) * + 70 + + col0 / + ( + 86 ) FROM tab2 AS cor0
----
-182070
-314230
-415030

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 BETWEEN + col1 - + col1 AND + col2 * + - 73 - - 93 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NOT - col2 / - ( - col0 ) + + col0 + col2 * 96 * + + ( + col0 ) + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 54 < col2
----
75
67
58

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

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

query I rowsort
SELECT ALL 89 * + 83 * - ( + 13 ) FROM tab2
----
-96031
-96031
-96031

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

skipif mysql # not compatible
query II rowsort label-902
SELECT - CAST ( + col1 AS INTEGER ) AS col0, 89 FROM tab1
----
-14
89
-47
89
-5
89

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

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

query I rowsort
SELECT DISTINCT col0 * - - col0 + - 4 FROM tab0 AS cor0
----
221
7565
9405

query I rowsort
SELECT DISTINCT - + 41 * col0 FROM tab2 AS cor0
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - COUNT( * ) + + 24 * - 19 * + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
-26904

skipif mysql # not compatible
query I rowsort label-906
SELECT - COUNT ( * ) + + 24 * - 19 * + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
-26904

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT IN ( 59 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT 55 DIV + COUNT( DISTINCT + + col0 ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-908
SELECT 55 / + COUNT ( DISTINCT + + col0 ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT 26 - 73 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - - 66 - + ( + col1 ) AS col2 FROM tab1 AS cor0
----
19
52
61

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-913
SELECT DISTINCT - + col0 AS col2 FROM tab1 AS cor0 WHERE + ( + ( CAST( NULL AS DECIMAL ) ) ) * + 19 + + col2 = + col0
----

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT - + col0 AS col2 FROM tab1 AS cor0 WHERE + ( + ( CAST ( NULL AS REAL ) ) ) * + 19 + + col2 = + col0
----

query I rowsort
SELECT DISTINCT + 84 + 71 + 98 + - col1 FROM tab0
----
172
232
252

query I rowsort
SELECT + 42 + col1 AS col2 FROM tab0
----
123
43
63

query II rowsort
SELECT ALL - 56 / + col1 + + col2 - - - col0, + col1 AS col2 FROM tab2 WHERE NULL = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT ALL + MAX( ALL 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL + MAX ( ALL 7 ) FROM tab1
----
7

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

query II rowsort
SELECT - 99, + 67 + - col1 + + + 58 * - + col2 * - - 78 AS col1 FROM tab2
----
-99
-104036
-99
-180970
-99
-262392

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

query I rowsort
SELECT DISTINCT + 61 * + + 13 AS col0 FROM tab1 AS cor0
----
793

query II rowsort
SELECT DISTINCT 94, + 72 * - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT + 53 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-924
SELECT + 53 / + col1 AS col0 FROM tab0 AS cor0
----
0
2
53

query I rowsort
SELECT DISTINCT - 23 * - col0 * - ( - - col1 ) FROM tab2
----
-113344
-115575
-53958

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + SUM( - 81 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-927
SELECT + SUM ( - 81 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
729

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-931
SELECT ALL - CAST( NULL AS SIGNED ) * - + 18 + + COUNT( DISTINCT - col2 ), COUNT( * ) * SUM( DISTINCT 3 ) col2 FROM tab2 AS cor0
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-931
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 18 + + COUNT ( DISTINCT - col2 ), COUNT ( * ) * SUM ( DISTINCT 3 ) col2 FROM tab2 AS cor0
----
NULL
9

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL ( - AVG ( DISTINCT + col2 ) ) FROM tab2 WHERE NOT + ( - col1 ) <> + 7
----
NULL

query I rowsort
SELECT col2 * + 63 + 65 FROM tab2
----
1514
2585
3719

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT 39, - COUNT( + col1 ) * COUNT( * ) col0 FROM tab0
----
39
-9

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT - col0 + + 46 DIV col2 col2 FROM tab0
----
-15
-83
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-938
SELECT - col0 + + 46 / col2 col2 FROM tab0
----
-15
-83
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT + 5 DIV + + col0 * 59 + col2 * - col0 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-939
SELECT + 5 / + + col0 * 59 + col2 * - col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-940
SELECT CAST( + col1 AS SIGNED ) DIV - 62 * + col2 * - col2 + + + 67 FROM tab1 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-940
SELECT CAST ( + col1 AS INTEGER ) / - 62 * + col2 * - col2 + + + 67 FROM tab1 AS cor0
----
67
67
67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - ( - 28 ) col1 FROM tab2 AS cor0
----
-1120
-1624
-644

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

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

query I rowsort
SELECT ALL + 83 FROM tab0 AS cor0 WHERE - ( - - col1 ) NOT BETWEEN - 88 AND + col1 / + 84
----

query I rowsort
SELECT ALL + + col0 + - 61 AS col2 FROM tab0 AS cor0
----
-46
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT + 89 + + + COUNT( * ) FROM tab1 WHERE NULL > - - col2 + 11
----
89

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT + 89 + + + COUNT ( * ) FROM tab1 WHERE NULL > - - col2 + 11
----
89

query I rowsort
SELECT DISTINCT ( + - 29 ) FROM tab1
----
-29

query II rowsort
SELECT DISTINCT col2 * 87, 56 AS col2 FROM tab1
----
5133
56
5916
56
8352
56

query I rowsort
SELECT + 59 * - col1 AS col0 FROM tab1
----
-2773
-295
-826

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT COUNT( * ) AS col0, COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-950
SELECT COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT ALL col2 DIV - ( - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL col2 / - ( - col0 ) FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 87 + - col1 + - + 33, + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-121
99
-141
10
-201
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-954
SELECT 63 DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-954
SELECT 63 / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

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

query I rowsort
SELECT ALL + 10 + + + 51 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-957
SELECT - CAST( - 13 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
1248
767
884

skipif mysql # not compatible
query I rowsort label-957
SELECT - CAST ( - 13 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
1248
767
884

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

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT ALL - + 75 + + COUNT( ALL + col1 ) AS col2 FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL - + 75 + + COUNT ( ALL + col1 ) AS col2 FROM tab0 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT SUM( + 57 ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT SUM ( + 57 ) FROM tab1 AS cor0
----
171

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

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

query I rowsort
SELECT - + col0 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT DISTINCT 51 DIV + - COUNT( * ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT 51 / + - COUNT ( * ) FROM tab0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-964
SELECT SUM( ALL + col0 ) FROM tab0 WHERE - col2 BETWEEN 0 - col1 AND + 37 * CAST( NULL AS SIGNED ) / - col2 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT SUM ( ALL + col0 ) FROM tab0 WHERE - col2 BETWEEN 0 - col1 AND + 37 * CAST ( NULL AS INTEGER ) / - col2 + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT ( + COUNT( - - 63 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT ( + COUNT ( - - 63 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( - col1 ) + + col2 * ( 93 ) FROM tab0 AS cor0
----
4452
9208
951

query I rowsort
SELECT 83 + + + 8 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-968
SELECT col2 + - CAST( ( - 5 ) AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
105
133
36

skipif mysql # not compatible
query I rowsort label-968
SELECT col2 + - CAST ( ( - 5 ) AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
105
133
36

query I rowsort
SELECT DISTINCT - col1 * + - ( + col1 ) + - 24 - 52 * - col0 AS col0 FROM tab2
----
4969
8365
9233

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-970
SELECT ALL - MIN( - CAST( NULL AS DECIMAL ) ) / + COUNT( * ) + - - 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL - MIN ( - CAST ( NULL AS REAL ) ) / + COUNT ( * ) + - - 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT - col0 - 41 FROM tab1 AS cor0
----
-126
-132
-92

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

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

query I rowsort
SELECT + + 33 * + - col2 * + 86 + - - col0 AS col2 FROM tab1 AS cor0
----
-167357
-192893
-272397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT + - col2 * CAST( 4 AS SIGNED ) + + 44 + - - col1 FROM tab1 cor0
----
-181
-187
-326

skipif mysql # not compatible
query I rowsort label-974
SELECT + - col2 * CAST ( 4 AS INTEGER ) + + 44 + - - col1 FROM tab1 cor0
----
-181
-187
-326

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-975
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
51
85
91

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

skipif mysql # not compatible
query II rowsort label-976
SELECT ALL - 20 AS col1, COUNT ( * ) FROM tab2
----
-20
3

query II rowsort
SELECT ALL 65, + col1 AS col0 FROM tab1
----
65
14
65
47
65
5

query II rowsort
SELECT ALL col2 AS col0, - 5 FROM tab0
----
10
-5
47
-5
99
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT + col0 * col1 DIV col2 FROM tab1
----
62
7
7

skipif mysql # not compatible
query I rowsort label-979
SELECT + col0 * col1 / col2 FROM tab1
----
62
7
7

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

query I rowsort
SELECT ALL - ( - 5 ) AS col1 FROM tab1
----
5
5
5

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

skipif mysql # not compatible
query I rowsort label-982
SELECT ( + COUNT ( - - ( + col2 ) ) ) FROM tab1
----
3

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

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

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

query I rowsort
SELECT ALL col2 * + - col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + 8 * + - col1 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
-10701
-2275
-25477

query I rowsort
SELECT + + col1 + + + col2 * - 40 FROM tab1 AS cor0
----
-2355
-2673
-3826

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

query I rowsort
SELECT 73 * - col2 + + col0 FROM tab1 cor0
----
-4222
-4873
-6957

query I rowsort
SELECT ALL + 33 + + col2 + - 77 * 27 AS col0 FROM tab0 AS cor0
----
-1947
-1999
-2036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-991
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) col1, - 85 FROM tab2 cor0
----
NULL
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-991
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) col1, - 85 FROM tab2 cor0
----
NULL
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - col0 * + 7 col0 FROM tab2
----
-276
-384
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL - COUNT( - - 17 ) * + COUNT( ALL 47 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL - COUNT ( - - 17 ) * + COUNT ( ALL 47 ) AS col2 FROM tab0
----
-9

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

query I rowsort
SELECT DISTINCT + 29 * + col2 AS col0 FROM tab0
----
1363
2871
290

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT col2 DIV - + 7 FROM tab0
----
-1
-14
-6

skipif mysql # not compatible
query I rowsort label-996
SELECT col2 / - + 7 FROM tab0
----
-1
-14
-6

query I rowsort
SELECT ALL col1 * + - 73 AS col2 FROM tab0
----
-1533
-5913
-73

query I rowsort
SELECT ( + + 83 ) * - col2 AS col1 FROM tab1
----
-4897
-5644
-7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT CAST( NULL AS SIGNED ) / - 18 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT CAST ( NULL AS INTEGER ) / - 18 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT 57 DIV - COUNT( * ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-1000
SELECT 57 / - COUNT ( * ) FROM tab1
----
-19

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

query I rowsort
SELECT col2 * - - col1 AS col2 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 30, - 51 )
----

query I rowsort
SELECT ALL col0 + + + col2 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT - 58 + - 22 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT ALL 69 DIV 64 - + - col1 col0 FROM tab0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1006
SELECT ALL 69 / 64 - + - col1 col0 FROM tab0
----
2
22
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1007
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1007
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1008
SELECT COUNT( * ), CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1008
SELECT COUNT ( * ), CAST ( NULL AS REAL ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0
NULL

query I rowsort
SELECT ( + col2 ) * col2 * + - col1 AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT + col2 * - col0 * - col1 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT COUNT( ALL - 67 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1011
SELECT COUNT ( ALL - 67 ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND - - col0
----
15
81
47

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

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

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

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

query I rowsort
SELECT col1 * - col0 AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL ( + 28 ) FROM tab2
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT COUNT( * ) * + MAX( ALL col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL col1 ) FROM tab1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT DISTINCT - col2 DIV + - 32 AS col0 FROM tab0 WHERE - col0 DIV + 39 IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT - col2 / + - 32 AS col0 FROM tab0 WHERE - col0 / + 39 IS NOT NULL
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL 35 * - COUNT( * ) + 39 * + 92 * COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
10659

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1019
SELECT ALL 35 * - COUNT ( * ) + 39 * + 92 * COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
10659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 6 col1 FROM tab0 AS cor0
----
103
21
93

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1022
SELECT DISTINCT 86 AS col0, COUNT( * ) + + + SUM( - col1 ) AS col2 FROM tab0
----
86
-100

skipif mysql # not compatible
query II rowsort label-1022
SELECT DISTINCT 86 AS col0, COUNT ( * ) + + + SUM ( - col1 ) AS col2 FROM tab0
----
86
-100

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

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

query I rowsort
SELECT ALL 2 AS col0 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + col2 + - - 98 FROM tab2 AS cor0
----
121
138
156

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT + ( + + col2 ) + + - col2 DIV - - col0 + 59 FROM tab1 AS cor0
----
118
127
154

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT + ( + + col2 ) + + - col2 / - - col0 + 59 FROM tab1 AS cor0
----
118
127
154

query II rowsort
SELECT + + col2, col0 - + - 85 FROM tab2 AS cor0
----
23
131
40
149
58
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT ALL + 47 DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
15

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

query I rowsort
SELECT DISTINCT - - 96 * + 6 + - + col0 + + + 91 * - 16 FROM tab0 AS cor0 WHERE NOT col0 * col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1031
SELECT ALL col2 * ( CAST( - 53 AS SIGNED ) ) AS col2, + col1 FROM tab0 AS cor0
----
-2491
81
-5247
1
-530
21

skipif mysql # not compatible
query II rowsort label-1031
SELECT ALL col2 * ( CAST ( - 53 AS INTEGER ) ) AS col2, + col1 FROM tab0 AS cor0
----
-2491
81
-5247
1
-530
21

query II rowsort
SELECT - col1 + - - col1 * + ( - col0 ) AS col2, col1 FROM tab0 cor0
----
-1296
81
-1848
21
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT DISTINCT + COUNT( * ) * + + MAX( 11 ) AS col0 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + COUNT ( * ) * + + MAX ( 11 ) AS col0 FROM tab2
----
33

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

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

query I rowsort
SELECT DISTINCT col0 * + - 12 FROM tab2
----
-552
-768
-900

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

query I rowsort
SELECT 47 + + - col2 FROM tab2
----
-11
24
7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - col1 * - + 89 col1 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-1041
SELECT + col0 DIV col2 AS col1, - col1 col2 FROM tab2 cor0
----
1
-67
1
-77
2
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1041
SELECT + col0 / col2 AS col1, - col1 col2 FROM tab2 cor0
----
1
-67
1
-77
2
-51

query I rowsort
SELECT + col0 * - 23 FROM tab1 cor0
----
-1173
-1955
-2093

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 78 + - + 8 IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col1 + + col2 BETWEEN NULL AND - + 39 )
----

query I rowsort
SELECT col1 * 98 FROM tab0 cor0
----
2058
7938
98

query I rowsort
SELECT DISTINCT col2 * 46 FROM tab0 AS cor0
----
2162
4554
460

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - MAX( + 79 ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-1051
SELECT - MAX ( + 79 ) FROM tab1
----
-79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 + + 20 col0, + 1 AS col2 FROM tab0 AS cor0
----
-1
1
-61
1
19
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT + - ( + 57 ) DIV + col1 + - 69 col1 FROM tab0 AS cor0
----
-126
-69
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1056
SELECT + - ( + 57 ) / + col1 + - 69 col1 FROM tab0 AS cor0
----
-126
-69
-71

query I rowsort
SELECT + 15 + - + col2 AS col2 FROM tab2 AS cor0
----
-25
-43
-8

query I rowsort
SELECT 4 + + - col0 FROM tab0 AS cor0
----
-11
-83
-93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1061
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + col1 * 22 AS col0 FROM tab2 AS cor0
----
1173
1541
1771

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + col1 * 22 AS col0 FROM tab2 AS cor0
----
1173
1541
1771

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 26 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 AS col2, 73 + col1 col1 FROM tab2
----
-71
124
-71
140
-71
150

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( + - col1 ) ) col1 FROM tab1
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT 4 * + COUNT( * ) - - 66 - + + MIN( 26 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-1068
SELECT 4 * + COUNT ( * ) - - 66 - + + MIN ( 26 ) FROM tab2
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 91, 57 col1 FROM tab2 AS cor0 WHERE + col1 < + col2
----

query II rowsort
SELECT + ( + col1 ) - - + col2 + + col1 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
124
-96
162
-68
69
-59

query I rowsort
SELECT + 81 FROM tab1 cor0 WHERE ( NOT - 62 <= NULL )
----

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT COUNT( * ) * 43 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
3483

skipif mysql # not compatible
query I rowsort label-1073
SELECT COUNT ( * ) * 43 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
3483

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1074
SELECT DISTINCT 86 * CAST( NULL AS SIGNED ) AS col2, + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1074
SELECT DISTINCT 86 * CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT - - 53 * + COUNT( * ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - - 53 * + COUNT ( * ) FROM tab0 AS cor0
----
159

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT COUNT ( * ) / - 18 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1078
SELECT DISTINCT - col2 DIV - + 74, col2 col1 FROM tab1 cor0
----
0
59
0
68
1
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1078
SELECT DISTINCT - col2 / - + 74, col2 col1 FROM tab1 cor0
----
0
59
0
68
1
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT DISTINCT + 1 DIV + - MIN( ALL + + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + 1 / + - MIN ( ALL + + col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT DISTINCT CAST( - 29 AS SIGNED ) AS col0 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT CAST ( - 29 AS INTEGER ) AS col0 FROM tab0
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT DISTINCT - MAX( ALL 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT - MAX ( ALL 45 ) FROM tab2
----
-45

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 64 * + col2 > NULL
----

query I rowsort
SELECT ALL - - 53 + + + col0 AS col2 FROM tab1 AS cor0
----
104
138
144

query I rowsort
SELECT DISTINCT + + col2 + - col2 + + + 40 FROM tab2 AS cor0 WHERE NOT NULL < 7
----

query I rowsort
SELECT - ( + 39 ) + 44 AS col2 FROM tab1 AS cor0
----
5
5
5

query III rowsort
SELECT ALL * FROM tab1 WHERE 38 <> NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + 50 * + SUM( ALL + col2 ) AS col0 FROM tab1
----
11150

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + 50 * + SUM ( ALL + col2 ) AS col0 FROM tab1
----
11150

query I rowsort
SELECT DISTINCT - 94 + - col0 * + col1 FROM tab0
----
-1309
-191
-1921

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT - SUM( DISTINCT 49 ) AS col0 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT - SUM ( DISTINCT 49 ) AS col0 FROM tab1
----
-49

query III rowsort
SELECT * FROM tab2 WHERE 47 * 79 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 61 ) AS col1 FROM tab0
----
-61
-61
-61

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

query I rowsort
SELECT col0 + 79 * - 23 AS col1 FROM tab1
----
-1726
-1732
-1766

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT 65 DIV - col1 + - col1 FROM tab2
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-1101
SELECT 65 / - col1 + - col1 FROM tab2
----
-52
-67
-77

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE - col0 * - 90 NOT BETWEEN 58 + 34 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT + 25 + SUM( - 35 ) AS col2 FROM tab0 WHERE + 20 * - 90 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT + 25 + SUM ( - 35 ) AS col2 FROM tab0 WHERE + 20 * - 90 = ( NULL )
----
NULL

query I rowsort
SELECT ALL + 55 + + col1 AS col0 FROM tab0
----
136
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT - 18 + - COUNT( * ) AS col2 FROM tab0 WHERE + 86 * col1 <> - col1 - - col1 * col0
----
-20

skipif mysql # not compatible
query I rowsort label-1105
SELECT - 18 + - COUNT ( * ) AS col2 FROM tab0 WHERE + 86 * col1 <> - col1 - - col1 * col0
----
-20

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 * col1 col1 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE col2 >= ( ( + col2 ) )
----
59
68
96

query I rowsort
SELECT DISTINCT + 96 * - col2 AS col2 FROM tab2
----
-2208
-3840
-5568

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE ( + col0 ) IN ( + 4 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 82 col0 FROM tab0
----
3854
8118
820

query I rowsort
SELECT col1 FROM tab0 WHERE ( 39 ) IN ( - 58 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1113
SELECT ALL SUM( ALL 88 ) DIV + COUNT( * ) col2 FROM tab0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1113
SELECT ALL SUM ( ALL 88 ) / + COUNT ( * ) col2 FROM tab0
----
88

query I rowsort
SELECT 87 * - 6 FROM tab1
----
-522
-522
-522

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 98 = col1
----

query I rowsort
SELECT 19 * col2 FROM tab0 cor0
----
1881
190
893

query I rowsort
SELECT - 83 * - col0 FROM tab2 AS cor0
----
3818
5312
6225

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * - 5 FROM tab1 AS cor0
----
295
340
480

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

query I rowsort
SELECT ALL + 92 * + 63 FROM tab2 AS cor0
----
5796
5796
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT + MAX( DISTINCT 65 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1124
SELECT + MAX ( DISTINCT 65 ) FROM tab0 AS cor0
----
65

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

query I rowsort
SELECT AVG ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT 80 NOT BETWEEN ( NULL ) AND ( - col2 )
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT + COUNT( ALL + col0 ) * 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + COUNT ( ALL + col0 ) * 97 FROM tab2
----
291

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 * + col1 > 53
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + 1 col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL 57 * - - COUNT( * ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL 57 * - - COUNT ( * ) FROM tab1
----
171

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

query I rowsort
SELECT ALL + 70 AS col0 FROM tab2 AS cor0 WHERE + col0 + - col1 = col1
----

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

query I rowsort
SELECT + 9 * col1 AS col1 FROM tab2 WHERE + 8 * 46 + + 19 > col0
----
459
603
693

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT + ( - col0 ) + + col2 + - col1 DIV + col0 col2 FROM tab2
----
-17
-24
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1139
SELECT + ( - col0 ) + + col2 + - col1 / + col0 col2 FROM tab2
----
-17
-24
-25

query I rowsort
SELECT 6 * - 85 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 60 col0 FROM tab2
----
-106
-124
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - - COUNT( col0 ) + - ( 4 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1142
SELECT - - COUNT ( col0 ) + - ( 4 ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL + 17 + col2 / col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL + COUNT( * ) + - - 29 FROM tab2 cor0
----
32

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + COUNT ( * ) + - - 29 FROM tab2 cor0
----
32

query I rowsort
SELECT DISTINCT + col0 * col1 + + - 59 + col0 FROM tab1 AS cor0
----
4309
451
706

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

query I rowsort
SELECT DISTINCT 93 - + - col2 + + 46 AS col1 FROM tab2
----
162
179
197

query I rowsort
SELECT col2 - + 53 + 80 FROM tab2
----
50
67
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1149
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE col0 BETWEEN - 75 AND 8
----

skipif mysql # not compatible
query I rowsort label-1149
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE col0 BETWEEN - 75 AND 8
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT DISTINCT ( SUM( + + 4 ) ) * - + 34 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT ( SUM ( + + 4 ) ) * - + 34 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + 93 * COUNT( * ) * + COUNT( * ) FROM tab0
----
837

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + 93 * COUNT ( * ) * + COUNT ( * ) FROM tab0
----
837

onlyif mysql # DIV for integer division: 
query II rowsort label-1155
SELECT DISTINCT - 26, col0 DIV - 52 AS col2 FROM tab0
----
-26
-1
-26
0

skipif mysql # not compatible
query II rowsort label-1155
SELECT DISTINCT - 26, col0 / - 52 AS col2 FROM tab0
----
-26
-1
-26
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT DISTINCT - ( ( - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) / col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - ( ( - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) / col0 IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + 14 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1159
SELECT + 14 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-42

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT NULL IN ( - - col1 ) ) )
----

query I rowsort
SELECT DISTINCT + col1 * - 46 AS col0 FROM tab1
----
-2162
-230
-644

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 84 * + 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT DISTINCT + 20 DIV col2 + col1 col1 FROM tab0 AS cor0
----
1
23
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1164
SELECT DISTINCT + 20 / col2 + col1 col1 FROM tab0 AS cor0
----
1
23
81

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1168
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT ALL col0 + ( - 36 ) + + - col2 + + + col1 DIV + + 28 FROM tab2
----
-10
-12
-17

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL col0 + ( - 36 ) + + - col2 + + + col1 / + + 28 FROM tab2
----
-10
-12
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1170
SELECT DISTINCT - 1 * - 43 - CAST( NULL AS SIGNED ) + + col2 + + + col2 - 83 * - + 73 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT - 1 * - 43 - CAST ( NULL AS INTEGER ) + + col2 + + + col2 - 83 * - + 73 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - col2 - col2 + - 65 AS col0 FROM tab2 AS cor0
----
-1146
-2665
-4473

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1173
SELECT DISTINCT + col0 + - CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT + col0 + - CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT DISTINCT - 49 * + MAX( col1 ) + COUNT( * ) FROM tab2 AS cor0
----
-3770

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - 49 * + MAX ( col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
-3770

query I rowsort
SELECT DISTINCT + col2 - - 0 AS col0 FROM tab1 cor0
----
59
68
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1177
SELECT ALL * FROM tab0 WHERE NULL BETWEEN 83 AND + CAST( NULL AS SIGNED ) + - col2 + + col0 * - col2 * - - 85 * - 11
----

skipif mysql # not compatible
query III rowsort label-1177
SELECT ALL * FROM tab0 WHERE NULL BETWEEN 83 AND + CAST ( NULL AS INTEGER ) + - col2 + + col0 * - col2 * - - 85 * - 11
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 38 + + + 62 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - + 89 * + 15 AS col1 FROM tab1 AS cor0
----
-1335
-1335
-1335

query I rowsort
SELECT DISTINCT 97 - + + 35 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT SUM( + col0 ) col1 FROM tab0
----
199

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

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

query I rowsort
SELECT - col0 + + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL col2 * ( - - 8 ) * 65 AS col2 FROM tab2
----
11960
20800
30160

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT 61 * + - COUNT( * ) AS col0 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-1187
SELECT 61 * + - COUNT ( * ) AS col0 FROM tab1
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + 14 * + col2 * col1 AS col0 FROM tab0
----
1386
2940
53298

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT + 41 DIV - 88 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1191
SELECT + 41 / - 88 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1192
SELECT + col0, col2 + + - col2 DIV + 45 AS col2 FROM tab2
----
46
23
64
40
75
57

skipif mysql # not compatible
query II rowsort label-1192
SELECT + col0, col2 + + - col2 / + 45 AS col2 FROM tab2
----
46
23
64
40
75
57

query I rowsort
SELECT + 72 AS col1 FROM tab0 cor0 WHERE ( - 53 ) IS NULL
----

query I rowsort
SELECT ( 8 ) * 55 * ( + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
20680
2200
6160

query I rowsort
SELECT ALL - 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + 77 + CAST( + col2 AS SIGNED ) * + 45 < + 82 * - col1
----

skipif mysql # not compatible
query I rowsort label-1196
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + 77 + CAST ( + col2 AS INTEGER ) * + 45 < + 82 * - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT DISTINCT 78 DIV col0 + - col2 AS col1 FROM tab2 cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT 78 / col0 + - col2 AS col1 FROM tab2 cor0
----
-22
-39
-57

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

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

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

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

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

query I rowsort
SELECT - + col1 * - - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT + - 67 * - 52, col0 FROM tab1 AS cor0
----
3484
51
3484
85
3484
91

query I rowsort
SELECT ALL 66 FROM tab2 WHERE NOT 80 + + + col1 + + 13 IN ( + col1 )
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1207
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + - col2 < col1 / + 94
----

skipif mysql # not compatible
query III rowsort label-1207
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + - col2 < col1 / + 94
----

query II rowsort
SELECT - + 43 AS col0, 35 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

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

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

query I rowsort
SELECT ALL col1 + ( + 52 ) AS col0 FROM tab1 AS cor0
----
57
66
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT - 20 * + CAST( col2 AS SIGNED ) FROM tab2
----
-1160
-460
-800

skipif mysql # not compatible
query I rowsort label-1211
SELECT - 20 * + CAST ( col2 AS INTEGER ) FROM tab2
----
-1160
-460
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT col2 DIV - + col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1212
SELECT col2 / - + col2 AS col2 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT - 87 * - + ( + col0 ) FROM tab0
----
1305
7569
8439

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

skipif mysql # not compatible
query I rowsort label-1215
SELECT + COUNT ( * ) + + MIN ( ALL - ( col0 ) ) AS col1 FROM tab0
----
-94

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT ALL MIN( - col0 ) AS col1, COUNT( * ) AS col0 FROM tab2
----
-75
3

skipif mysql # not compatible
query II rowsort label-1217
SELECT ALL MIN ( - col0 ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
-75
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1218
SELECT + + 32 + 2, MIN( col1 ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
34
-2

skipif mysql # not compatible
query II rowsort label-1218
SELECT + + 32 + 2, MIN ( col1 ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
34
-2

query I rowsort
SELECT ALL - col1 * 61 + - 65 AS col2 FROM tab2 AS cor0
----
-3176
-4152
-4762

query I rowsort
SELECT DISTINCT - col0 + - + col2 FROM tab2 AS cor0
----
-104
-133
-69

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

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

query I rowsort
SELECT ALL ( + col2 ) - + + 98 AS col1 FROM tab2
----
-40
-58
-75

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

query I rowsort
SELECT DISTINCT col1 - + 81 AS col0 FROM tab1
----
-34
-67
-76

query I rowsort
SELECT + 99 * - 76 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b89f5963778e4928c825993e28f9c50a

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT - 33 * - SUM( 63 ) - + 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18686

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - 33 * - SUM ( 63 ) - + 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18686

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT - col2 + col2 FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN CAST( NULL AS SIGNED ) AND - col0 * + + col0 * col2 * - 52 OR NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-1228
SELECT - col2 + col2 FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN CAST ( NULL AS INTEGER ) AND - col0 * + + col0 * col2 * - 52 OR NULL >= NULL
----

query I rowsort
SELECT ALL 80 * col0 AS col2 FROM tab1 AS cor0
----
4080
6800
7280

query I rowsort
SELECT 64 * + 24 FROM tab0 cor0
----
1536
1536
1536

query II rowsort
SELECT ALL + col1, + 35 + - - col0 + ( - col2 ) + - + col0 FROM tab1 AS cor0
----
14
-61
47
-33
5
-24

query I rowsort
SELECT ALL + + 67 * - 47 FROM tab0 AS cor0
----
-3149
-3149
-3149

query II rowsort
SELECT + 62 * col0 + col1 AS col2, 87 FROM tab2 AS cor0
----
2903
87
4045
87
4717
87

query II rowsort
SELECT + col0, - col0 * + 75 FROM tab2 AS cor0
----
46
-3450
64
-4800
75
-5625

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

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

query I rowsort
SELECT DISTINCT ( - 16 ) FROM tab0
----
-16

query I rowsort
SELECT ALL + - 50 AS col1 FROM tab2 WHERE - + 21 * - 45 IS NOT NULL
----
-50
-50
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT + MAX( - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1239
SELECT + MAX ( - - col1 ) FROM tab2
----
77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col1 ) col0, + col0 * + - 12 AS col2 FROM tab1 AS cor0
----
-14
-612
-47
-1092
-5
-1020

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 98 + 35 FROM tab0 AS cor0
----
133

query I rowsort
SELECT DISTINCT - col2 * col2 + 19 FROM tab0 cor0 WHERE - 36 IS NOT NULL
----
-2190
-81
-9782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + - - col2 col0 FROM tab1 AS cor0
----
120
129
157

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + - col1 col2 FROM tab2
----
102
134
154

query I rowsort
SELECT - col2 * + - ( - + 50 ) AS col1 FROM tab2
----
-1150
-2000
-2900

query I rowsort
SELECT DISTINCT ( - - 96 ) * - col2 * - + 84 + - + col0 * - col0 + - col0 + - ( 77 ) AS col1 FROM tab2
----
187465
326515
473185

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT SUM( + 41 ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT SUM ( + 41 ) FROM tab0
----
123

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL + 80 + + 86 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + 80 + + 86 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
169

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT ALL + 66 DIV 94 + - col1 - + 93 FROM tab1 AS cor0
----
-107
-140
-98

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL + 66 / 94 + - col1 - + 93 FROM tab1 AS cor0
----
-107
-140
-98

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

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

query I rowsort
SELECT DISTINCT col0 * 77 - + 54 AS col0 FROM tab0
----
1101
6645
7415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1263
SELECT CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1264
SELECT MAX( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 99 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT MAX ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 99 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT + 42 + + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) * col0 IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-1266
SELECT + 42 + + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) * col0 IS NULL
----
39

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

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

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

query I rowsort
SELECT 65 * - - col1 * - col2 * - col2 FROM tab2
----
14650220
1753635
8008000

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1270
SELECT ALL MIN ( + 90 ) col2 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + ( - MAX( - 44 ) ) AS col2 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-1271
SELECT + ( - MAX ( - 44 ) ) AS col2 FROM tab1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT MAX( + CAST( + col2 AS SIGNED ) ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1272
SELECT MAX ( + CAST ( + col2 AS INTEGER ) ) col2 FROM tab2
----
58

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - - col0 * - 59 > - col0
----
23
40
58

query I rowsort
SELECT DISTINCT ( - 89 ) * - col1 AS col0 FROM tab2
----
4539
5963
6853

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

query I rowsort
SELECT ALL - ( - + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT DISTINCT + COUNT( * ) * + 70 + + SUM( - - CAST( 12 AS SIGNED ) ) - - COUNT( col1 ) AS col2 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT + COUNT ( * ) * + 70 + + SUM ( - - CAST ( 12 AS INTEGER ) ) - - COUNT ( col1 ) AS col2 FROM tab2 AS cor0
----
249

query I rowsort
SELECT 86 * - - col2 * + + 48 AS col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL NOT BETWEEN - 93 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
3

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

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

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

query I rowsort
SELECT - 25 * - 84 FROM tab0 cor0
----
2100
2100
2100

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1288
SELECT ALL + col0 + col1 * - col2 DIV - col2 AS col0, 0 AS col2 FROM tab2 AS cor0
----
141
0
142
0
97
0

skipif mysql # not compatible
query II rowsort label-1288
SELECT ALL + col0 + col1 * - col2 / - col2 AS col0, 0 AS col2 FROM tab2 AS cor0
----
141
0
142
0
97
0

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

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

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

query I rowsort
SELECT 14 * - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1485
-150
-705

query I rowsort
SELECT ALL 65 - col1 * + - ( - col0 ) FROM tab0
----
-1150
-1762
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT + col1 * + col2 + + col0 DIV - - 94 * col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1293
SELECT + col1 * + col2 + + col0 / - - 94 * col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - 92 - + 83 AS col0 FROM tab0
----
-175
-175
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - COUNT( * ) FROM tab0 WHERE - 59 <> + col0
----
-3

skipif mysql # not compatible
query I rowsort label-1295
SELECT - COUNT ( * ) FROM tab0 WHERE - 59 <> + col0
----
-3

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL col2 * 87 AS col2 FROM tab0
----
4089
8613
870

query I rowsort
SELECT + 19 * + col2 AS col2 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT ALL 36 AS col2 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

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

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

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

query I rowsort
SELECT + col1 * + 36 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT - col1 * - + col1 + + - 87 AS col0 FROM tab2 AS cor0
----
2514
4402
5842

query II rowsort
SELECT 83 AS col2, AVG ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
83
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 * + col1 col1 FROM tab0 AS cor0
----
-3240
-40
-840

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL + MAX( ALL 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + MAX ( ALL 12 ) FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 47 ) col0 FROM tab1
----
47
47
47

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + + ( - + col0 ) + - + 65 FROM tab1 cor0
----
360
4212
649

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL + 49 * + COUNT( * ) AS col0 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + 49 * + COUNT ( * ) AS col0 FROM tab0
----
147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 BETWEEN + - col2 + - col2 AND - col0
----
87
21
10

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1317
SELECT + 13 + - - CAST( - - ( + + 86 ) AS SIGNED ) * + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 13 + - - CAST ( - - ( + + 86 ) AS INTEGER ) * + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col1 + - 74 * + col0 AS col1 FROM tab0 AS cor0
----
-6396
-7176
-948

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT - 86 + - 46 + - col0 * - + col2 + 61 + - col2 DIV + ( - col2 ) FROM tab1 AS cor0
----
4826
4945
6118

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - 86 + - 46 + - col0 * - + col2 + 61 + - col2 / + ( - col2 ) FROM tab1 AS cor0
----
4826
4945
6118

query I rowsort
SELECT ALL ( - 2 ) * col1 + - col1 * ( - - 97 ) + + + col1 + - col2 AS col2 FROM tab2
----
-5021
-6624
-7586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 2 FROM tab0
----
15
2
87
2
97
2

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 10 col0 FROM tab2
----
-33
-50
-68

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

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

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

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE NOT + col2 - + - col0 IS NULL
----
-14
-47
-5

query II rowsort
SELECT - - 33 * col2, col0 AS col0 FROM tab0 AS cor0
----
1551
15
3267
97
330
87

query I rowsort
SELECT ( 10 ) * + 55 + - - 55 FROM tab1
----
605
605
605

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 45 * - - col0 + + col2 + - 55 * + 61 / + col0 * col2 + - - ( + - 69 ) > NULL
----

query I rowsort
SELECT ALL 80 * col2 FROM tab2
----
1840
3200
4640

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT 13 * - CAST( NULL AS SIGNED ) / + - 9 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT 13 * - CAST ( NULL AS INTEGER ) / + - 9 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( col2 ) * - - col2 + - - col0 AS col2 FROM tab2 AS cor0
----
1664
3439
575

query II rowsort
SELECT - 5, + 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT DISTINCT ( + COUNT( * ) ) AS col2, 11 AS col1 FROM tab1
----
3
11

skipif mysql # not compatible
query II rowsort label-1339
SELECT DISTINCT ( + COUNT ( * ) ) AS col2, 11 AS col1 FROM tab1
----
3
11

query I rowsort
SELECT ALL - col0 * - - 93 FROM tab2 WHERE NOT col1 = NULL
----

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

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

query I rowsort
SELECT 49 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT - - CAST( + - col2 AS SIGNED ) - + + 65 * + - col1 + - - 65 AS col0 FROM tab0 AS cor0
----
1420
31
5283

skipif mysql # not compatible
query I rowsort label-1343
SELECT - - CAST ( + - col2 AS INTEGER ) - + + 65 * + - col1 + - - 65 AS col0 FROM tab0 AS cor0
----
1420
31
5283

query I rowsort
SELECT col1 * - 55 + + - 63 - - - col1 FROM tab0 AS cor0
----
-119
-1239
-4599

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

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

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

query II rowsort
SELECT DISTINCT + + col1 + col0 AS col0, col1 FROM tab2 AS cor0
----
141
77
142
67
97
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT - - 74 + + COUNT( * ) - + + 39 FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-1348
SELECT - - 74 + + COUNT ( * ) - + + 39 FROM tab1 cor0
----
38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT - col1 + col2 - - ( - col0 ) - - - col0 DIV 45 FROM tab0 cor0
----
-1
-49
-99

skipif mysql # not compatible
query I rowsort label-1350
SELECT - col1 + col2 - - ( - col0 ) - - - col0 / 45 FROM tab0 cor0
----
-1
-49
-99

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

query I rowsort
SELECT ALL + col1 + ( ( - col2 ) ) AS col2 FROM tab0
----
-98
11
34

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 >= NULL
----

query I rowsort
SELECT 18 * + col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1062
1224
1728

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 37 BETWEEN col0 AND - - col0 * - 3
----
46
64
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL + COUNT( ALL - 6 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL + COUNT ( ALL - 6 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 >= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT + - MAX( + - 25 ) * 64 AS col0, + 58 AS col2 FROM tab0 AS cor0
----
1600
58

skipif mysql # not compatible
query II rowsort label-1360
SELECT + - MAX ( + - 25 ) * 64 AS col0, + 58 AS col2 FROM tab0 AS cor0
----
1600
58

query I rowsort
SELECT DISTINCT - 19 * ( col1 ) FROM tab1
----
-266
-893
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT ALL + 86 DIV + 41 col2 FROM tab1
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1362
SELECT ALL + 86 / + 41 col2 FROM tab1
----
2
2
2

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - MIN ( 41 ) FROM tab0 AS cor0
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT + 90 + - COUNT( * ) FROM tab1 AS cor0
----
87

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 26 NOT IN ( + - col1, col2 + + + col2, - 97 + - 11 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT + - SUM( - 77 ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT + - SUM ( - 77 ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT 35 * - COUNT ( + col1 ) FROM tab2 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 44 NOT IN ( + col2, - col0 + + + col2, + - 50 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <= ( ( + + col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 < - col2
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1379
SELECT MIN( + col0 ) AS col2, - 56 FROM tab0
----
15
-56

skipif mysql # not compatible
query II rowsort label-1379
SELECT MIN ( + col0 ) AS col2, - 56 FROM tab0
----
15
-56

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 - 22 * 31 col0 FROM tab1
----
4214
4333
5506

query I rowsort
SELECT col2 + + + 13 FROM tab0
----
112
23
60

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1385
SELECT - COUNT( * ) DIV - - MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT - COUNT ( * ) / - - MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + - col0 + 16 * - - 77 col0 FROM tab2 AS cor0
----
3532
6096
6182

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE - 96 + - 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
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-1389
SELECT DISTINCT - MAX ( DISTINCT + col0 ) col2 FROM tab2
----
-75

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT CAST ( 6 AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0
----
18

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 64 > - + col0
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1394
SELECT - 53 + - - COUNT( * ), - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----
-53
0

skipif mysql # not compatible
query II rowsort label-1394
SELECT - 53 + - - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----
-53
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT - 3 DIV - - col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT - 3 / - - col1 FROM tab0
----
-3
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT - 70 DIV col2 * - - col1 FROM tab1
----
-47
-5
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT - 70 / col2 * - - col1 FROM tab1
----
-47
-5
0

query I rowsort
SELECT DISTINCT - col0 * col0 * ( 45 ) FROM tab2
----
-184320
-253125
-95220

query I rowsort
SELECT ALL - ( - col2 ) + + 79 AS col2 FROM tab0 AS cor0
----
126
178
89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1399
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( + 28 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1399
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( + 28 AS REAL ) IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 35 + col2 FROM tab2 AS cor0
----
58
75
93

query I rowsort
SELECT col1 * + 27 AS col2 FROM tab0 cor0
----
2187
27
567

query I rowsort
SELECT 10 * + 68 FROM tab1 AS cor0
----
680
680
680

query I rowsort
SELECT - 22 * + - 94 + - 70 * - - 40 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT - ( + + 82 ) + col1 FROM tab1
----
-35
-68
-77

query III rowsort
SELECT * FROM tab0 WHERE - - 1 * + col1 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query III rowsort label-1410
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - col2 + - col1 - - 13, + col1, - - col2 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT ALL + 9 * + COUNT( * ) DIV - MAX( - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + 9 * + COUNT ( * ) / - MAX ( - col1 ) FROM tab2 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1414
SELECT DISTINCT + - col0 * col0 + - 84 AS col1, + col2 DIV 87 - + col1 AS col1 FROM tab1 AS cor0
----
-2685
-13
-7309
-5
-8365
-47

skipif mysql # not compatible
query II rowsort label-1414
SELECT DISTINCT + - col0 * col0 + - 84 AS col1, + col2 / 87 - + col1 AS col1 FROM tab1 AS cor0
----
-2685
-13
-7309
-5
-8365
-47

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT 67 * - - COUNT( * ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT 67 * - - COUNT ( * ) FROM tab2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT + - COUNT( col0 ) * + + SUM( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1419
SELECT + - COUNT ( col0 ) * + + SUM ( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
-669

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col0 + 74 AS col2 FROM tab1 AS cor0
----
132725
614199
753645

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

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

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

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < - 78
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + COUNT( * ) + 22 FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-1426
SELECT + COUNT ( * ) + 22 FROM tab2 cor0
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-1427
SELECT DISTINCT col1 DIV + - col2, + col1 FROM tab2 AS cor0
----
-1
67
-1
77
-2
51

skipif mysql # not compatible
query II rowsort label-1427
SELECT DISTINCT col1 / + - col2, + col1 FROM tab2 AS cor0
----
-1
67
-1
77
-2
51

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

query I rowsort
SELECT - 22 + col1 * - 83 FROM tab2 AS cor0
----
-4255
-5583
-6413

query I rowsort
SELECT DISTINCT - - 52 * 1 + + col2 AS col1 FROM tab1 AS cor0
----
111
120
148

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

query I rowsort
SELECT + col2 + + 32 AS col0 FROM tab2 AS cor0 WHERE + col0 * - col0 IS NOT NULL
----
55
72
90

query I rowsort
SELECT DISTINCT + - 13 FROM tab1 cor0
----
-13

query I rowsort
SELECT ALL col2 * 20 AS col1 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + + 70 / + col1 IS NOT NULL
----

query I rowsort
SELECT ( 64 ) AS col2 FROM tab1
----
64
64
64

query II rowsort
SELECT col2 * + - ( - col2 ) AS col2, - 50 + - 73 - - - 20 * + - col0 FROM tab0
----
100
1617
2209
177
9801
1817

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

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

query I rowsort
SELECT ALL + col0 + - - col1 AS col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1440
SELECT + ( + + 75 ) * + - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND 20 - col1 + - + col0 + + 50 / col2 + col0
----

query II rowsort
SELECT + col0, 2 + - + 24 FROM tab2 AS cor0
----
46
-22
64
-22
75
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

query II rowsort
SELECT DISTINCT + 5 AS col0, col2 FROM tab0 AS cor0
----
5
10
5
47
5
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL SUM( DISTINCT 24 ) * + + ( COUNT( * ) ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL SUM ( DISTINCT 24 ) * + + ( COUNT ( * ) ) AS col2 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL COUNT( * ) * - 27 AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL COUNT ( * ) * - 27 AS col1 FROM tab1
----
-81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - 56 col1, - 71 - col1 AS col1 FROM tab1
----
2856
-85
4760
-76
5096
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-1453
SELECT + COUNT( * ), MAX( - 69 ) AS col0 FROM tab1 WHERE NOT + col1 * - col2 * - 19 NOT BETWEEN NULL AND + - 28
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1453
SELECT + COUNT ( * ), MAX ( - 69 ) AS col0 FROM tab1 WHERE NOT + col1 * - col2 * - 19 NOT BETWEEN NULL AND + - 28
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT DISTINCT + MAX( ALL + col2 ) * MAX( + + col1 ) AS col0 FROM tab0
----
8019

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT + MAX ( ALL + col2 ) * MAX ( + + col1 ) AS col0 FROM tab0
----
8019

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1455
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < - - 4 + + col1
----

skipif mysql # not compatible
query III rowsort label-1455
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < - - 4 + + col1
----

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT 83 / + col0 AS col1 FROM tab2
----
1
1
1

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

query II rowsort
SELECT + 5 * - 20, 41 AS col0 FROM tab1 WHERE NULL IS NULL
----
-100
41
-100
41
-100
41

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1459
SELECT DISTINCT - col1 / + + ( + CAST ( NULL AS REAL ) ) col2 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT ALL - col1, 51 FROM tab2 AS cor0 WHERE + col0 / + col1 = ( - col0 )
----

query I rowsort
SELECT DISTINCT - 24 + + 58 FROM tab1 AS cor0
----
34

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT DISTINCT col2 + + CAST( col1 AS SIGNED ) * - col1 + 11 * + ( - - 66 ) FROM tab0 AS cor0
----
-5788
295
824

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT col2 + + CAST ( col1 AS INTEGER ) * - col1 + 11 * + ( - - 66 ) FROM tab0 AS cor0
----
-5788
295
824

query I rowsort
SELECT + + 5 + - col0 FROM tab2 AS cor0
----
-41
-59
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT + COUNT( * ) + 70 * + + MAX( + + col2 ) - - MIN( - 5 ) AS col1 FROM tab2
----
4058

skipif mysql # not compatible
query I rowsort label-1468
SELECT + COUNT ( * ) + 70 * + + MAX ( + + col2 ) - - MIN ( - 5 ) AS col1 FROM tab2
----
4058

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL 95 - + COUNT( * ) + + COUNT( * ) * SUM( + - 99 ) AS col0 FROM tab1
----
-799

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL 95 - + COUNT ( * ) + + COUNT ( * ) * SUM ( + - 99 ) AS col0 FROM tab1
----
-799

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

skipif mysql # not compatible
query II rowsort label-1471
SELECT COUNT ( * ) * + + COUNT ( ALL + 75 ) + + - COUNT ( * ) AS col1, ( - COUNT ( * ) ) FROM tab1
----
6
-3

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

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

query I rowsort
SELECT DISTINCT col2 * - 75 FROM tab0
----
-3525
-7425
-750

query II rowsort
SELECT + col2 AS col1, + col2 - + col1 * - 11 AS col1 FROM tab0 AS cor0
----
10
241
47
938
99
110

query I rowsort
SELECT + - col2 * - col1 - col2 + + col2 + - col0 + + col2 * col1 * - col0 FROM tab1 cor0
----
-24865
-287731
-67251

query I rowsort
SELECT DISTINCT - 80 * - col2 AS col1 FROM tab1 AS cor0
----
4720
5440
7680

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

skipif mysql # not compatible
query I rowsort label-1477
SELECT - CAST ( 18 AS INTEGER ) FROM tab2 AS cor0
----
-18
-18
-18

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 < - 33 + - col2
----
15
81
47
97
1
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL + MAX( DISTINCT - 39 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + MAX ( DISTINCT - 39 ) FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT - 74 * - COUNT( * ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1482
SELECT - 74 * - COUNT ( * ) FROM tab2
----
222

query I rowsort
SELECT ALL + col1 * 17 FROM tab0
----
1377
17
357

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 42 * - 25 = NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * + col2 + + col0 + + 26 - - + col2 + - - col1 col2, - col1 FROM tab2 AS cor0
----
-1027
-51
-2873
-77
-3660
-67

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

query I rowsort
SELECT ALL + col0 * col2 + - - col0 AS col0 FROM tab1 cor0
----
4947
5100
6279

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

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

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

query I rowsort
SELECT - col0 + + 83 FROM tab2 AS cor0
----
19
37
8

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

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

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

query I rowsort
SELECT + col2 / + 16 FROM tab0 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL + 37 + col2 * col0 AS col1 FROM tab2 AS cor0
----
1095
2597
4387

query I rowsort
SELECT + ( - col2 ) * + 5 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT + col1 - - ( ( 46 ) ) FROM tab0
----
127
47
67

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

query I rowsort
SELECT ALL - col1 - + col0 * + 0 * - 55 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT - MIN( + + col2 ) col1 FROM tab0
----
-10

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

query I rowsort
SELECT + col2 - + 98 FROM tab0 AS cor0
----
-51
-88
1

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 65 + - 47 - 73 * - col2 * - col2 - - col2
----

query I rowsort
SELECT - 20 - - + 34 FROM tab2 AS cor0 WHERE NOT + col0 + + - 43 IS NULL
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT CAST( MAX( - 75 ) AS SIGNED ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1506
SELECT CAST ( MAX ( - 75 ) AS INTEGER ) FROM tab0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT + 67 + col0 DIV + col2 FROM tab0
----
67
67
75

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 67 + col0 / + col2 FROM tab0
----
67
67
75

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

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

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

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

query I rowsort
SELECT ALL col1 + - 2 FROM tab1
----
12
3
45

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

query I rowsort
SELECT DISTINCT - col2 + 11 * col2 AS col2 FROM tab1
----
590
680
960

query I rowsort
SELECT - ( 44 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-44
-44
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1515
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 78 AND - CAST( + 34 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1515
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 78 AND - CAST ( + 34 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT MAX( 84 ) + 89 FROM tab0
----
173

skipif mysql # not compatible
query I rowsort label-1516
SELECT MAX ( 84 ) + 89 FROM tab0
----
173

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 * col2 ) IN ( + 90 * + 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT COUNT( * ) + - 18 * + COUNT( * ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1518
SELECT COUNT ( * ) + - 18 * + COUNT ( * ) AS col2 FROM tab2
----
-51

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) <> ( + col0 / - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col0 FROM tab1
----
-2505
-7166
-8213

query I rowsort
SELECT 7 + - 45 AS col0 FROM tab0
----
-38
-38
-38

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

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

query I rowsort
SELECT DISTINCT col1 + - 54 FROM tab0
----
-33
-53
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT col2 = col0 * - col1
----
3

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT col2 = col0 * - col1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) < 56 + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1528
SELECT ALL * FROM tab2 WHERE NOT + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1528
SELECT ALL * FROM tab2 WHERE NOT + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + 4 * COUNT ( * ) FROM tab2
----
12

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

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

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

query I rowsort
SELECT ALL + 34 * col1 AS col0 FROM tab2 AS cor0
----
1734
2278
2618

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 86
----

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

query I rowsort
SELECT DISTINCT - col0 + ( + ( - 37 ) - + col0 ) FROM tab2 AS cor0
----
-129
-165
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT + ( - SUM( ALL - 78 ) ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1537
SELECT + ( - SUM ( ALL - 78 ) ) FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT DISTINCT + SUM( DISTINCT + 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT + SUM ( DISTINCT + 28 ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT 75 * - COUNT( * ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-1539
SELECT 75 * - COUNT ( * ) AS col1 FROM tab2
----
-225

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL COUNT ( ALL - 47 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = - 34 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - + col2 - - ( + col1 ) * - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT + col2 - + col1 * - 55 FROM tab1 AS cor0
----
2653
334
866

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + - 19 - MAX( DISTINCT col2 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-1546
SELECT + - 19 - MAX ( DISTINCT col2 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
155

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

query I rowsort
SELECT ALL 65 + + ( col2 + + col0 * col0 ) * - 97 FROM tab0 AS cor0
----
-26319
-735098
-922211

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT - 32 + SUM( col0 + + 38 ) FROM tab1 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-1549
SELECT - 32 + SUM ( col0 + + 38 ) FROM tab1 AS cor0
----
309

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT DISTINCT + col2 DIV + col1 + - ( col1 ) * - 36 FROM tab0 AS cor0
----
135
2916
756

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT + col2 / + col1 + - ( col1 ) * - 36 FROM tab0 AS cor0
----
135
2916
756

query I rowsort
SELECT DISTINCT col0 * + col0 - + 98 AS col2 FROM tab1 AS cor0
----
2503
7127
8183

query I rowsort
SELECT + 3 * + col1 + col0 FROM tab1 AS cor0
----
100
232
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL 89 + + COUNT( * ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL 89 + + COUNT ( * ) AS col1 FROM tab2
----
92

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1557
SELECT DISTINCT MIN( - ( col2 ) ) DIV - COUNT( * ) - 11 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT MIN ( - ( col2 ) ) / - COUNT ( * ) - 11 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL COUNT( * ) - 78 AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL COUNT ( * ) - 78 AS col2 FROM tab0
----
-75

query I rowsort
SELECT 20 AS col2 FROM tab2 WHERE ( + 90 + - 13 ) <= NULL
----

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

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

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL < col2
----

query I rowsort
SELECT col1 * - col1 FROM tab1 WHERE + col2 <= col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 * + + 60 col2 FROM tab1 AS cor0
----
660
660
660

query I rowsort
SELECT + - col2 * col0 * - col2 + + col2 AS col1 FROM tab0 AS cor0
----
33182
8710
950796

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

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

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1568
SELECT ALL * FROM tab0 WHERE ( col1 + - col0 ) = col0 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1568
SELECT ALL * FROM tab0 WHERE ( col1 + - col0 ) = col0 + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - col0 * col1 AS col1 FROM tab0 WHERE ( NULL ) > + 89
----

query II rowsort
SELECT - col0 AS col1, + 98 FROM tab1 AS cor0
----
-51
98
-85
98
-91
98

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

query I rowsort
SELECT DISTINCT + - col1 * - col1 * + - ( col0 ) FROM tab2 AS cor0
----
-119646
-336675
-379456

query II rowsort
SELECT + - 35 AS col0, - ( - col1 ) FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + 77 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 3 ) * 74 col0 FROM tab1 AS cor0
----
222
222
222

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT DISTINCT - col1 DIV + 52 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - col1 / + 52 AS col0 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT - COUNT( * ) + + 22 AS col1 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-1578
SELECT - COUNT ( * ) + + 22 AS col1 FROM tab1 AS cor0
----
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT 44 AS col2 FROM tab1 AS cor0 WHERE NOT + 57 + + CAST( NULL AS SIGNED ) IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-1580
SELECT 44 AS col2 FROM tab1 AS cor0 WHERE NOT + 57 + + CAST ( NULL AS INTEGER ) IN ( + col2 )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT ALL COUNT( ALL + col0 ) * 9 DIV + MAX( DISTINCT + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL COUNT ( ALL + col0 ) * 9 / + MAX ( DISTINCT + col0 ) FROM tab2
----
0

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

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL IN ( - - 31 )
----

query I rowsort
SELECT DISTINCT + - 45 FROM tab0 WHERE NULL > + col0
----

query I rowsort
SELECT ALL + col2 + + 46 FROM tab0
----
145
56
93

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1589
SELECT ALL + col2 * + ( ( 43 ) ) - 47 + + col1 * CAST( - ( + 63 ) DIV col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2490
2877
4067

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL + col2 * + ( ( 43 ) ) - 47 + + col1 * CAST ( - ( + 63 ) / col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2490
2877
4067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT ALL - + 7 + + CAST( - - col2 AS SIGNED ) * + col2 + + col0 FROM tab1 AS cor0
----
3559
4708
9260

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - + 7 + + CAST ( - - col2 AS INTEGER ) * + col2 + + col0 FROM tab1 AS cor0
----
3559
4708
9260

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE ( - 24 ) + - 56 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT ALL COUNT( * ) * MAX( ALL 90 ) FROM tab0 cor0 WHERE NOT + 9 + - 87 NOT IN ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL COUNT ( * ) * MAX ( ALL 90 ) FROM tab0 cor0 WHERE NOT + 9 + - 87 NOT IN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT - COUNT ( ALL 2 ) FROM tab1 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT COUNT( + + 85 ) + - - 9 * 69 - - 67 * COUNT( * ) FROM tab2 AS cor0
----
825

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT COUNT ( + + 85 ) + - - 9 * 69 - - 67 * COUNT ( * ) FROM tab2 AS cor0
----
825

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 - + + col2 FROM tab2
----
28
37
9

query I rowsort
SELECT + col2 * - + col0 * 69 AS col2 FROM tab0
----
-48645
-60030
-662607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 col0 FROM tab1
----
-90

query II rowsort
SELECT col2, + ( + 67 ) AS col2 FROM tab2
----
23
67
40
67
58
67

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

query I rowsort
SELECT ALL + 29 * - + ( + 44 ) * + 18 * + - col2 FROM tab0 AS cor0
----
1079496
2273832
229680

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + MAX( DISTINCT 40 ) AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-1609
SELECT + MAX ( DISTINCT 40 ) AS col0 FROM tab1
----
40

query I rowsort
SELECT 27 - 27 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - 47 * - 28 * + col0 FROM tab0 AS cor0
----
114492
127652
19740

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT - COUNT( DISTINCT col0 ) * SUM( DISTINCT + col1 ) + + + ( - 95 ) * - 52 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
14235

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - COUNT ( DISTINCT col0 ) * SUM ( DISTINCT + col1 ) + + + ( - 95 ) * - 52 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
14235

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

query I rowsort
SELECT - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 95 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT + 29 * MIN( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
1711

skipif mysql # not compatible
query I rowsort label-1615
SELECT + 29 * MIN ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
1711

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT + + MAX( DISTINCT + 31 ) * + 80 AS col1 FROM tab1 AS cor0
----
2480

skipif mysql # not compatible
query I rowsort label-1618
SELECT + + MAX ( DISTINCT + 31 ) * + 80 AS col1 FROM tab1 AS cor0
----
2480

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

query I rowsort
SELECT col1 * 67 FROM tab0
----
1407
5427
67

query II rowsort
SELECT - ( + - 14 ) + - - col1 + - col2 AS col0, 19 * - + col0 AS col0 FROM tab2
----
23
-1425
42
-874
51
-1216

query I rowsort
SELECT + col1 + - col2 * - + 56 AS col1 FROM tab2
----
1339
2317
3315

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL - MIN( + col0 ) * + - 25 FROM tab2
----
1150

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - MIN ( + col0 ) * + - 25 FROM tab2
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT + - MAX( + 54 ) + 61 AS col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1625
SELECT + - MAX ( + 54 ) + 61 AS col2 FROM tab0 AS cor0
----
7

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

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

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

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

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

query I rowsort
SELECT - col1 + + + 28 AS col1 FROM tab0 AS cor0
----
-53
27
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT + - ( - + col0 ) * - - 0 + - col0 FROM tab0 AS cor0 WHERE ( CAST( + col2 AS SIGNED ) ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1631
SELECT + - ( - + col0 ) * - - 0 + - col0 FROM tab0 AS cor0 WHERE ( CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - - 16 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1634
SELECT DISTINCT 47 col0, - CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab2
----
47
NULL

query I rowsort
SELECT ALL col0 * 25 AS col0 FROM tab1
----
1275
2125
2275

query III rowsort
SELECT * FROM tab1 WHERE NOT 41 - col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1638
SELECT ALL + MAX( + - CAST( + + ( 72 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + MAX ( + - CAST ( + + ( 72 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT + + 66 * + 36 AS col2 FROM tab1 AS cor0
----
2376
2376
2376

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < col0 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT + COUNT( * ) * + + ( + 79 ) FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT + COUNT ( * ) * + + ( + 79 ) FROM tab1
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT + CAST( - - 77 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif mysql # not compatible
query I rowsort label-1644
SELECT + CAST ( - - 77 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + - 57 + - 92 AS col1 FROM tab1 AS cor0
----
-149
-149
-149

query I rowsort
SELECT DISTINCT - col0 + + col2 + + 97 * col1 AS col1 FROM tab1 AS cor0
----
1403
4536
459

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

query I rowsort
SELECT DISTINCT + 35 * + col2 + + + col1 FROM tab1 AS cor0 WHERE NOT + col1 <= ( - + col1 ) * - 31 + + col2 + ( + + col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 + - col2 * + col0 + + ( + 30 ) + + - col1 * + - ( - + col0 ) IN ( + 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT + col0 * + - 30 * - col2 + - 42 FROM tab1 WHERE - - 29 * - CAST( NULL AS SIGNED ) + - col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1651
SELECT + col0 * + - 30 * - col2 + - 42 FROM tab1 WHERE - - 29 * - CAST ( NULL AS INTEGER ) + - col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT ALL - col0 DIV - 61 col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1652
SELECT ALL - col0 / - 61 col2 FROM tab2
----
0
1
1

query II rowsort
SELECT - 88 * + col1 AS col2, - 19 FROM tab1
----
-1232
-19
-4136
-19
-440
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1654
SELECT MIN( ALL - + 68 ) AS col1, + 97 AS col0 FROM tab2
----
-68
97

skipif mysql # not compatible
query II rowsort label-1654
SELECT MIN ( ALL - + 68 ) AS col1, + 97 AS col0 FROM tab2
----
-68
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL + COUNT( * ) + + 52 AS col0 FROM tab0 cor0 WHERE col0 = NULL
----
52

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + COUNT ( * ) + + 52 AS col0 FROM tab0 cor0 WHERE col0 = NULL
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1658
SELECT - ( CAST( + + AVG ( ALL - col2 ) AS SIGNED ) ) DIV - - 55 - + + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1658
SELECT - ( CAST ( + + AVG ( ALL - col2 ) AS INTEGER ) ) / - - 55 - + + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 * - col1 + - col0 + + - 86 FROM tab1 AS cor0
----
254
4100
577

query I rowsort
SELECT ALL - + 64 + - 11 FROM tab2 AS cor0
----
-75
-75
-75

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 10 * - 91 AS col2 FROM tab1 AS cor0
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT + SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT + SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 FROM tab1 AS cor0 WHERE NOT NULL > ( col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 19 * - col2 * + col1 * + - col2 + 27 NOT IN ( + - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col0, + col0 * + 32 FROM tab1 AS cor0
----
59
2720
68
2912
96
1632

query II rowsort
SELECT ( - col1 ) AS col2, - col1 AS col0 FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1671
SELECT - col2 AS col2 FROM tab0 WHERE + col0 * + + CAST( col1 AS DECIMAL ) IS NOT NULL OR NULL <= NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1671
SELECT - col2 AS col2 FROM tab0 WHERE + col0 * + + CAST ( col1 AS REAL ) IS NOT NULL OR NULL <= NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT + col1 DIV + + col1 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1672
SELECT + col1 / + + col1 col0 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1673
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT + SUM( - 97 ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + SUM ( - 97 ) FROM tab2
----
-291

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * + + 30 - col0 + ( + - 7 ) * 36 + + + col2, + col1 AS col2 FROM tab2 cor0 WHERE 21 / - col2 IS NOT NULL
----
1471
67
415
51
924
77

query I rowsort
SELECT ALL - ( + 82 ) AS col0 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + - 85 AS col2 FROM tab2 AS cor0 WHERE NOT 28 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT - ( MIN( - col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT - ( MIN ( - col1 ) ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT - 90 DIV col0 col1 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1680
SELECT - 90 / col0 col1 FROM tab0
----
-1
-6
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 21 <= ( + - ( + + col1 ) * - - 62 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 78 + + col2 * - col0 FROM tab2 AS cor0
----
-2482
-4272
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT + 70 + + + col2 + - + 83 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT + 70 + + + col2 + - + 83 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT MIN( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1684
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ( - - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT - COUNT( - + 4 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1686
SELECT - COUNT ( - + 4 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT ALL CAST( - SUM( - - col0 ) AS SIGNED ) + 99 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL CAST ( - SUM ( - - col0 ) AS INTEGER ) + 99 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ( - col2 ) + col0 AS col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL - 45 + + 13 + + col2 AS col1 FROM tab1
----
27
36
64

query II rowsort
SELECT col1 + + 48 AS col2, - col2 FROM tab2
----
115
-58
125
-40
99
-23

query I rowsort
SELECT col0 + - + col2 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT + ( - + col2 ) + 95 AS col1 FROM tab0
----
-4
48
85

query I rowsort
SELECT DISTINCT - 77 * + col0 AS col1 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1694
SELECT SUM( + + CAST( col2 AS SIGNED ) ) + + 10 * - 19 * - 77 AS col2, MAX( col2 ) FROM tab2
----
14751
58

skipif mysql # not compatible
query II rowsort label-1694
SELECT SUM ( + + CAST ( col2 AS INTEGER ) ) + + 10 * - 19 * - 77 AS col2, MAX ( col2 ) FROM tab2
----
14751
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL + SUM( + - 36 ) FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + SUM ( + - 36 ) FROM tab1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1696
SELECT + 53 * + 77 col1, - CAST( NULL AS SIGNED ) * col0 FROM tab1 WHERE NULL IS NULL
----
4081
NULL
4081
NULL
4081
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1696
SELECT + 53 * + 77 col1, - CAST ( NULL AS INTEGER ) * col0 FROM tab1 WHERE NULL IS NULL
----
4081
NULL
4081
NULL
4081
NULL

query II rowsort
SELECT DISTINCT - col1 AS col2, - ( + 24 ) FROM tab0
----
-1
-24
-21
-24
-81
-24

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - - col0 * + col1 AND 23 * col0 * - col0 + - ( + 58 ) * - col0 / + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + + + col0 + + + 76 FROM tab1 AS cor0
----
141
166
214

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL + - 42 - COUNT( * ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + - 42 - COUNT ( * ) FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT DISTINCT col2 * + - CAST( NULL AS SIGNED ) - 83 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT col2 * + - CAST ( NULL AS INTEGER ) - 83 FROM tab1
----
NULL

query I rowsort
SELECT - 24 + - col1 AS col1 FROM tab2 WHERE NOT - 89 * - + col2 <> col0
----

query I rowsort
SELECT ALL ( + 72 ) AS col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT - ( + col0 ) * + col1 AS col0 FROM tab1 cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 57 * - + col0 + ( 57 ) FROM tab1 AS cor0
----
-2850
-4788
-5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT ALL + CAST( NULL AS SIGNED ) * + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + CAST ( NULL AS INTEGER ) * + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - - MAX( 17 ) * + 55 FROM tab0 AS cor0
----
935

skipif mysql # not compatible
query I rowsort label-1709
SELECT - - MAX ( 17 ) * + 55 FROM tab0 AS cor0
----
935

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT DISTINCT - 6 DIV + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT - 6 / + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 57 * ( - 39 ) * + col1 AS col1 FROM tab2 AS cor0
----
-113373
-148941
-171171

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - - col1, 73, - col0 * + col1, + 4 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT + col2 DIV 45 * + col2 AS col2 FROM tab1 AS cor0
----
192
59
68

skipif mysql # not compatible
query I rowsort label-1713
SELECT + col2 / 45 * + col2 AS col2 FROM tab1 AS cor0
----
192
59
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 73 / - + col2 * - 85 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT COUNT( * ) * 72 * 95 * + COUNT( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
61560

skipif mysql # not compatible
query I rowsort label-1715
SELECT COUNT ( * ) * 72 * 95 * + COUNT ( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
61560

query II rowsort
SELECT + col0, 94 FROM tab1
----
51
94
85
94
91
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 7 FROM tab1
----
59
7
68
7
96
7

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( - 52 ) > + col2
----
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1719
SELECT DISTINCT 38 AS col2, COUNT( * ) FROM tab2
----
38
3

skipif mysql # not compatible
query II rowsort label-1719
SELECT DISTINCT 38 AS col2, COUNT ( * ) FROM tab2
----
38
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1720
SELECT - 2 * MAX( DISTINCT - col0 ), 96 AS col1 FROM tab1 cor0
----
102
96

skipif mysql # not compatible
query II rowsort label-1720
SELECT - 2 * MAX ( DISTINCT - col0 ), 96 AS col1 FROM tab1 cor0
----
102
96

query I rowsort
SELECT + + col0 * + 99 AS col2 FROM tab2 AS cor0
----
4554
6336
7425

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 38 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1723
SELECT + COUNT( DISTINCT - col1 ) AS col0, 78 AS col0 FROM tab1
----
3
78

skipif mysql # not compatible
query II rowsort label-1723
SELECT + COUNT ( DISTINCT - col1 ) AS col0, 78 AS col0 FROM tab1
----
3
78

query I rowsort
SELECT + ( + 7 ) + - col0 * - col1 * - - col0 FROM tab1
----
36132
36421
389214

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - - COUNT( * ) + - ( 34 ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1725
SELECT - - COUNT ( * ) + - ( 34 ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT + + col0 + + - 87 AS col0 FROM tab2 AS cor0
----
-12
-23
-41

query I rowsort
SELECT + - col2 * + - col1 + + col1 FROM tab0 cor0
----
100
231
3888

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT DISTINCT - col2 + col1 - + ( + ( 57 ) ) DIV col1 FROM tab0 cor0
----
-155
34
9

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - col2 + col1 - + ( + ( 57 ) ) / col1 FROM tab0 cor0
----
-155
34
9

query I rowsort
SELECT DISTINCT - col1 * 72 + 52 AS col1 FROM tab0 AS cor0
----
-1460
-20
-5780

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + col0 > + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT ALL CAST( + col1 AS SIGNED ) + - ( + col2 ) FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL CAST ( + col1 AS INTEGER ) + - ( + col2 ) FROM tab2
----
28
37
9

query I rowsort
SELECT + col0 - 64 AS col0 FROM tab0
----
-49
23
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + 39 - + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1734
SELECT + 39 - + COUNT ( * ) FROM tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT + col1 - + col0 + + - col0 + - col2 * - 74 * CAST( + ( - + 4 ) AS SIGNED ) AS col2 FROM tab1
----
-17629
-20263
-28504

skipif mysql # not compatible
query I rowsort label-1735
SELECT + col1 - + col0 + + - col0 + - col2 * - 74 * CAST ( + ( - + 4 ) AS INTEGER ) AS col2 FROM tab1
----
-17629
-20263
-28504

query I rowsort
SELECT - col0 * col1 * + + col0 + + ( - ( 43 ) ) AS col0 FROM tab2 AS cor0
----
-107959
-315435
-376918

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL + 0 - - COUNT( DISTINCT - ( + - ( - + col0 ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + 0 - - COUNT ( DISTINCT - ( + - ( - + col0 ) ) ) AS col2 FROM tab2
----
3

query II rowsort
SELECT - col1 AS col0, 35 FROM tab2
----
-51
35
-67
35
-77
35

query I rowsort
SELECT ALL - col1 * + col1 * - 58 AS col2 FROM tab1 AS cor0
----
11368
128122
1450

query I rowsort
SELECT DISTINCT + - col1 * - + col2 * ( - 5 ) AS col2 FROM tab2 AS cor0
----
-15400
-19430
-5865

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1741
SELECT DISTINCT CAST( - - 77 AS SIGNED ) DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT CAST ( - - 77 AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
0
1
7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - 19 / - 40 + + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1743
SELECT 21, COUNT( * ) * + - 97 AS col2 FROM tab0 AS cor0
----
21
-291

skipif mysql # not compatible
query II rowsort label-1743
SELECT 21, COUNT ( * ) * + - 97 AS col2 FROM tab0 AS cor0
----
21
-291

query I rowsort
SELECT 49 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + + 52 FROM tab2 AS cor0
----
1225
3132
3938

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL SUM( ALL - 1 ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL SUM ( ALL - 1 ) * + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-1747
SELECT - 76 + col0 col1, - col0 DIV - + col0 FROM tab2 AS cor0
----
-1
1
-12
1
-30
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1747
SELECT - 76 + col0 col1, - col0 / - + col0 FROM tab2 AS cor0
----
-1
1
-12
1
-30
1

query II rowsort
SELECT + col0 + - 13, 98 AS col1 FROM tab2 cor0
----
33
98
51
98
62
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 83 col0 FROM tab0
----
1743
6723
83

query I rowsort
SELECT DISTINCT col1 - - col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - ( - 39 ) * - col0
----

query I rowsort
SELECT ALL + 72 + + 39 + - col2 - col2 AS col1 FROM tab2
----
-5
31
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col0 + - 53 - + - col0 * + 3 * + col2 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 + + col1 * 83 FROM tab1 AS cor0
----
1213
3992
500

query I rowsort
SELECT - col1 * - col0 - + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 45 + + col1 FROM tab0 AS cor0
----
-24
-44
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT - COUNT( * ) * ( - 14 ) + + + COUNT( * ) - - + 13 AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1756
SELECT - COUNT ( * ) * ( - 14 ) + + + COUNT ( * ) - - + 13 AS col0 FROM tab0 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1757
SELECT - CAST( NULL AS DECIMAL ) + - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1757
SELECT - CAST ( NULL AS REAL ) + - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ), col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - col1 + 75 * + col1 AS col1 FROM tab1 AS cor0
----
1036
3478
370

query I rowsort
SELECT ALL - 21 + + - 7 + - ( - 51 ) * col2 AS col2 FROM tab1 AS cor0
----
2981
3440
4868

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1760
SELECT 55 * + + COUNT( * ) + + 12 * COUNT( * ), + 47 + - ( - - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2
----
201
NULL

skipif mysql # not compatible
query II rowsort label-1760
SELECT 55 * + + COUNT ( * ) + + 12 * COUNT ( * ), + 47 + - ( - - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2
----
201
NULL

query I rowsort
SELECT ALL col0 * + col0 - col0 AS col0 FROM tab2
----
2070
4032
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT - COUNT( * ) - + 39 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT - COUNT ( * ) - + 39 FROM tab2
----
-42

query I rowsort
SELECT ALL 59 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + ( ( + - col1 ) ) * - col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT + ( + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col1 FROM tab0 AS cor0
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL OR NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 38 <= 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL - COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT 0 AS col1, - col1 AS col1 FROM tab1 AS cor0
----
0
-14
0
-47
0
-5

query I rowsort
SELECT - ( + 93 ) * + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + - col0 ) * - col2 + - 22 FROM tab0 AS cor0
----
683
848
9581

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL + + MAX( - - 80 ) AS col1 FROM tab1 cor0
----
80

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL + + MAX ( - - 80 ) AS col1 FROM tab1 cor0
----
80

query I rowsort
SELECT DISTINCT 8 * + col1 FROM tab1
----
112
376
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT col2 / - + 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-1775
SELECT DISTINCT col2 / - + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 22 * col0 + + col1 + + col0 > + col0
----

query II rowsort
SELECT ( col2 ), - col0 AS col1 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT col1 * - ( - 30 ) AS col2 FROM tab2
----
1530
2010
2310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * + 79 col2 FROM tab0
----
2133
2133
2133

query II rowsort
SELECT - col2 AS col0, + col2 * - ( - col0 ) + - 88 AS col2 FROM tab0
----
-10
782
-47
617
-99
9515

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT ALL COUNT( * ) DIV - - 26 FROM tab2 AS cor0 WHERE NULL IN ( 98 * + col1 + 81 + - - col1 DIV col2 + - col0 - - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL COUNT ( * ) / - - 26 FROM tab2 AS cor0 WHERE NULL IN ( 98 * + col1 + 81 + - - col1 / col2 + - col0 - - 51 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col0 col2, col0 AS col2 FROM tab2
----
1058
46
2560
64
4350
75

query III rowsort
SELECT * FROM tab1 WHERE ( ( - - col0 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1785
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 14 IS NOT NULL
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT - + COUNT( * ) * + 28 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1787
SELECT - + COUNT ( * ) * + 28 FROM tab0 AS cor0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT - col1 DIV + 67 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT - col1 / + 67 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE 10 >= + - 65
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-1790
SELECT - ( - - 62 ) AS col0, col2 DIV + 44 FROM tab0 cor0
----
-62
0
-62
1
-62
2

skipif mysql # not compatible
query II rowsort label-1790
SELECT - ( - - 62 ) AS col0, col2 / + 44 FROM tab0 cor0
----
-62
0
-62
1
-62
2

query I rowsort
SELECT ALL - col1 - 75 * col0 FROM tab0
----
-1206
-6546
-7276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - + col2 col1 FROM tab0
----
-49
3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT SUM( ALL + 81 ) AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT SUM ( ALL + 81 ) AS col2 FROM tab0
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1794
SELECT ( - - 32 ) - SUM( + - col0 ) DIV + - 80 AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-1794
SELECT ( - - 32 ) - SUM ( + - col0 ) / + - 80 AS col0 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT ALL + col0 * - + col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + col0 * - + col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 18 * + 75 FROM tab0
----
1350
1350
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + 27 - + + 21 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-162

skipif mysql # not compatible
query I rowsort label-1797
SELECT + 27 - + + 21 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-162

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 15 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL COUNT( ( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL COUNT ( ( + col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1801
SELECT ALL - MIN( - 71 ) AS col1, SUM( DISTINCT + col1 ) col2 FROM tab0 cor0
----
71
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1801
SELECT ALL - MIN ( - 71 ) AS col1, SUM ( DISTINCT + col1 ) col2 FROM tab0 cor0
----
71
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col2 FROM tab1 cor0
----
10

query I rowsort
SELECT - 71 * - - col0 AS col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT COUNT( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * 82 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT COUNT ( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * 82 AND col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1805
SELECT + COUNT( * ) DIV - ( - 53 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT + COUNT ( * ) / - ( - 53 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * + ( - col1 ) + + 25 + col1 FROM tab0 AS cor0
----
125
256
3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT 94 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT 94 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT DISTINCT 72 * + + COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT 72 * + + COUNT ( * ) FROM tab0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT MIN( DISTINCT col1 ) * - - MAX( ALL + - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1809
SELECT MIN ( DISTINCT col1 ) * - - MAX ( ALL + - col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT - col2 DIV - - 98 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1810
SELECT - col2 / - - 98 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT col1 * - col0 + - col1 - + col2 * - col2 * - col2 + CAST( - 70 AS SIGNED ) + - - 10 - + col0 + + col0 + + - 65 col1 FROM tab1
----
-205934
-318881
-885589

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1811
SELECT col1 * - col0 + - col1 - + col2 * - col2 * - col2 + CAST ( - 70 AS INTEGER ) + - - 10 - + col0 + + col0 + + - 65 col1 FROM tab1
----
-205934
-318881
-885589

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1812
SELECT * FROM tab0 cor0 WHERE CAST( ( - 6 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1812
SELECT * FROM tab0 cor0 WHERE CAST ( ( - 6 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - COUNT( * ) + + - COUNT( * ) + 85 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1813
SELECT - COUNT ( * ) + + - COUNT ( * ) + 85 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL 48 FROM tab0 AS cor0 WHERE + col1 * 13 < + col0 * - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT MAX( + 71 ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1815
SELECT MAX ( + 71 ) AS col2 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL + - col0 + + + 65 FROM tab0 AS cor0
----
-22
-32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT - + MAX( ALL 61 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-1817
SELECT - + MAX ( ALL 61 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query I rowsort
SELECT 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 89 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT + col1 / - col2 AS col1 FROM tab0 WHERE NOT col2 BETWEEN NULL AND NULL AND NOT col0 BETWEEN NULL AND + col1 * - + 84
----

query I rowsort
SELECT - 16 * - col2 * - 96 - - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-13533
-151967
-70977

query II rowsort
SELECT + col2 + + col0 AS col0, col2 FROM tab0 AS cor0
----
196
99
62
47
97
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + 26 + - MIN( ALL 0 ) AS col1 FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + 26 + - MIN ( ALL 0 ) AS col1 FROM tab2 cor0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1824
SELECT COUNT( * ) + + 42 DIV + 42 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1824
SELECT COUNT ( * ) + + 42 / + 42 FROM tab2 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT col1 DIV - + 24 + 71 + - ( 69 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1825
SELECT col1 / - + 24 + 71 + - ( 69 ) FROM tab2 AS cor0
----
-1
0
0

query II rowsort
SELECT - + col2 + - - col0, + col0 AS col2 FROM tab1 AS cor0
----
-45
51
23
91
26
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1827
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1827
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 87 + - col0 * + + col1 - + 94 + - col2 FROM tab0 AS cor0
----
-1269
-1844
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL 63 - - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL 63 - - COUNT ( * ) FROM tab2
----
66

query I rowsort
SELECT + 42 + - 77 - + col0 * + col1 FROM tab0
----
-1250
-132
-1862

query I rowsort
SELECT DISTINCT + - 58 AS col2 FROM tab0 WHERE - 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - COUNT( * ) * + - 39 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - COUNT ( * ) * + - 39 FROM tab1
----
117

query II rowsort
SELECT ALL + col2 * + 80 AS col0, 90 AS col2 FROM tab2
----
1840
90
3200
90
4640
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT 8 DIV + col1 - col1 FROM tab1 AS cor0
----
-14
-4
-47

skipif mysql # not compatible
query I rowsort label-1834
SELECT 8 / + col1 - col1 FROM tab1 AS cor0
----
-14
-4
-47

query I rowsort
SELECT col0 - + col1 + + 5 + + col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 64 + - - 12 + - + col2 = + 46 * - + col0 * - + 15
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT - 37 AS col0, + COUNT( * ) AS col0 FROM tab1
----
-37
3

skipif mysql # not compatible
query II rowsort label-1837
SELECT - 37 AS col0, + COUNT ( * ) AS col0 FROM tab1
----
-37
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1838
SELECT DISTINCT + col1 DIV col0 FROM tab0 WHERE - - col0 + - col1 + + CAST( NULL AS SIGNED ) IS NULL
----
0
5

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + col1 / col0 FROM tab0 WHERE - - col0 + - col1 + + CAST ( NULL AS INTEGER ) IS NULL
----
0
5

query II rowsort
SELECT - col0, 36 * col1 - + 17 AS col2 FROM tab1 AS cor0
----
-51
487
-85
163
-91
1675

query II rowsort
SELECT col1 AS col2, 29 * 65 AS col2 FROM tab2 AS cor0
----
51
1885
67
1885
77
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + + 67 + COUNT( * ) FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-1841
SELECT + + 67 + COUNT ( * ) FROM tab1 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL - col2 + ( - + 6 ) DIV - + col2 + + - col1 + - 64 * + col0 DIV col0 * + 84 * + 93 AS col1 FROM tab1 AS cor0
----
-500032
-500078
-500083

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - col2 + ( - + 6 ) / - + col2 + + - col1 + - 64 * + col0 / col0 * + 84 * + 93 AS col1 FROM tab1 AS cor0
----
-500032
-500078
-500083

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1843
SELECT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1843
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT - ( + col1 ) + col1 DIV + 84 + + col0 FROM tab0 cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-1845
SELECT - ( + col1 ) + col1 / + 84 + + col0 FROM tab0 cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL COUNT( DISTINCT - 11 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL COUNT ( DISTINCT - 11 ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT - col1 DIV col1 DIV + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT - col1 / col1 / + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT + 54 * + COUNT( DISTINCT - + 65 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + 54 * + COUNT ( DISTINCT - + 65 ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1850
SELECT DISTINCT - MIN( - 35 ) AS col2, 77 AS col2 FROM tab0
----
35
77

skipif mysql # not compatible
query II rowsort label-1850
SELECT DISTINCT - MIN ( - 35 ) AS col2, 77 AS col2 FROM tab0
----
35
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + COUNT( * ) * - 65 AS col2 FROM tab0 WHERE - - 6 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1851
SELECT + COUNT ( * ) * - 65 AS col2 FROM tab0 WHERE - - 6 IS NULL
----
0

query I rowsort
SELECT + 87 AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + MAX( + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL + MAX ( + + col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1854
SELECT ALL - col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL - col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL IN ( - - 35 ) )
----

query I rowsort
SELECT - - 52 AS col0 FROM tab2 cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1857
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - 89 + - CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1857
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - 89 + - CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + + 31 + 4 AS col1 FROM tab1 cor0
----
120
126
86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 > NULL )
----

query I rowsort
SELECT DISTINCT + 90 + + + col1 FROM tab1 AS cor0
----
104
137
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1861
SELECT ALL COUNT( * ), - 36 * + 21 AS col1 FROM tab1 WHERE col0 BETWEEN + 16 AND NULL
----
0
-756

skipif mysql # not compatible
query II rowsort label-1861
SELECT ALL COUNT ( * ), - 36 * + 21 AS col1 FROM tab1 WHERE col0 BETWEEN + 16 AND NULL
----
0
-756

query I rowsort
SELECT - 55 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query II rowsort
SELECT ALL - col2 AS col1, - 2 AS col2 FROM tab1 AS cor0
----
-59
-2
-68
-2
-96
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * - col0 col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT - + 45 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - + 45 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT + 18 * + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1867
SELECT DISTINCT + 18 * + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT + MIN( ALL col1 ) * + COUNT( * ) FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT + MIN ( ALL col1 ) * + COUNT ( * ) FROM tab2 cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT DISTINCT + ( + 11 ) DIV - ( + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT + ( + 11 ) / - ( + col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( - 52 ) * ( - - col2 ) - - col1 AS col0 FROM tab1
----
-3063
-3489
-4978

query I rowsort
SELECT + ( + - 38 ) AS col1 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT ALL 46 * + 21 * + + col2 FROM tab0
----
45402
95634
9660

query I rowsort
SELECT 24 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36 col0, 35 AS col0 FROM tab0
----
36
35
36
35
36
35

query I rowsort
SELECT DISTINCT + col2 * - col2 * + - 25 AS col0 FROM tab2 AS cor0
----
13225
40000
84100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT DISTINCT CAST( NULL AS SIGNED ) / + AVG ( DISTINCT 7 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT 7 ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT ( + 68 ) DIV + 71 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1877
SELECT ( + 68 ) / + 71 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT - MIN( + 56 ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-1879
SELECT - MIN ( + 56 ) FROM tab2
----
-56

query I rowsort
SELECT ALL - + 73 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT MIN( ALL ( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT MIN ( ALL ( + col0 ) ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL - COUNT( * ) * + MAX( + col0 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - COUNT ( * ) * + MAX ( + col0 ) FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + MAX( DISTINCT + col0 ) - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT + MAX ( DISTINCT + col0 ) - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1884
SELECT ALL - col1 + col2 + + ( + - col2 ) * CAST( NULL AS SIGNED ) - - CAST( - - col2 AS SIGNED ) col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1884
SELECT ALL - col1 + col2 + + ( + - col2 ) * CAST ( NULL AS INTEGER ) - - CAST ( - - col2 AS INTEGER ) col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT 8 * - COUNT( * ) + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT 8 * - COUNT ( * ) + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT ALL + col2 DIV - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-102
-69
-70

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + col2 / - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-102
-69
-70

query II rowsort
SELECT DISTINCT + - 14 + - 36 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
-50
-46
-50
-64
-50
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + + SUM( + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1888
SELECT + + SUM ( + col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT - 17 * - col2 + - - col1 + - col2 AS col1 FROM tab2 cor0
----
419
717
995

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT COUNT( * ) + - COUNT( DISTINCT col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT COUNT ( * ) + - COUNT ( DISTINCT col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 * + - col2 * - col1 + - col0 FROM tab0
----
-196
-308382
-4497

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col1 < + ( + col2 ) * - - col2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + 58 + - 88 AS col1 FROM tab1 AS cor0
----
-30

query II rowsort
SELECT + col1 AS col2, 70 AS col1 FROM tab1 AS cor0
----
14
70
47
70
5
70

query I rowsort
SELECT ALL + + col2 + 92 * + 45 AS col1 FROM tab0 AS cor0
----
4150
4187
4239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, + col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT - 99 AS col0, - col0 * - col0 AS col2 FROM tab0 AS cor0
----
-99
225
-99
7569
-99
9409

query II rowsort
SELECT - 35 AS col2, - col2 FROM tab1 AS cor0
----
-35
-59
-35
-68
-35
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1899
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - ( + col1 ) ) * - CAST( - col1 AS SIGNED ) > + col0 / + + col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-1899
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - ( + col1 ) ) * - CAST ( - col1 AS INTEGER ) > + col0 / + + col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 - - ( - ( + - 76 ) ) col2 FROM tab1
----
159

query I rowsort
SELECT DISTINCT - + col1 * - col2 + - 0 * + 32 * - + col2 + + 95 * - - col2 FROM tab2 AS cor0
----
3358
6880
9396

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT COUNT( * ) * - 38 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1902
SELECT COUNT ( * ) * - 38 FROM tab1 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + MAX( ALL + col2 ) * + + 60 col0 FROM tab1 cor0
----
5760

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1903
SELECT + MAX ( ALL + col2 ) * + + 60 col0 FROM tab1 cor0
----
5760

query I rowsort
SELECT + + ( 53 ) FROM tab2 cor0
----
53
53
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * col2 / - 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1906
SELECT ALL col1, + CAST( - + col0 AS SIGNED ) FROM tab0
----
1
-97
21
-87
81
-15

skipif mysql # not compatible
query II rowsort label-1906
SELECT ALL col1, + CAST ( - + col0 AS INTEGER ) FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ALL col2 * - + col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - + 20 * + - 60 AS col0 FROM tab0 AS cor0
----
1200
1200
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + MAX( col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1909
SELECT + MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1911
SELECT DISTINCT - 28 AS col0, CAST( col1 AS SIGNED ) col2 FROM tab1
----
-28
14
-28
47
-28
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1911
SELECT DISTINCT - 28 AS col0, CAST ( col1 AS INTEGER ) col2 FROM tab1
----
-28
14
-28
47
-28
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL - MIN( col0 ) * + 20 AS col0 FROM tab1
----
-1020

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL - MIN ( col0 ) * + 20 AS col0 FROM tab1
----
-1020

query I rowsort
SELECT - col1 + - ( col2 ) AS col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + COUNT( * ) + - + 23 AS col1 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1914
SELECT + COUNT ( * ) + - + 23 AS col1 FROM tab1
----
-20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 AND - 93 + + 49
----

query I rowsort
SELECT DISTINCT - - col0 + + col2 + + - col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - SUM( + + 4 ) + MAX( + 63 ) AS col0 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1917
SELECT - SUM ( + + 4 ) + MAX ( + 63 ) AS col0 FROM tab0 cor0
----
51

query II rowsort
SELECT ALL - col2 AS col1, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col0 * col2 col0 FROM tab2 cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT ( 76 ) + ( col1 ) AS col0 FROM tab0 AS cor0
----
157
77
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 71 < NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col1 - - + col2 * + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-639
-936
-9699

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT - ( - COUNT( * ) ) + - + 96 + - 81 AS col2 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - ( - COUNT ( * ) ) + - + 96 + - 81 AS col2 FROM tab2 AS cor0
----
-174

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1924
SELECT ALL + CAST( NULL AS DECIMAL ) * + col1 * + - col0 + col2 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-1924
SELECT ALL + CAST ( NULL AS REAL ) * + col1 * + - col0 + col2 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1925
SELECT ALL - CAST( NULL AS DECIMAL ) * + - MAX( ALL + col0 ) * + COUNT( DISTINCT - 29 ) - - + 71 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL - CAST ( NULL AS REAL ) * + - MAX ( ALL + col0 ) * + COUNT ( DISTINCT - 29 ) - - + 71 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT MAX( + 66 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT MAX ( + 66 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL > col1 + col2 - + + col2 + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + - col2
----

query II rowsort
SELECT + col1 * + - 43 AS col1, col2 * - 86 + col0 FROM tab2
----
-2193
-1932
-2881
-4913
-3311
-3376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT 33 DIV MIN( + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1930
SELECT 33 / MIN ( + col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) * ( + - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) * ( + - col0 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - col0 col0 FROM tab0
----
174
194
30

query I rowsort
SELECT - + col2 - + - ( col2 ) + + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-1934
SELECT DISTINCT + + col2 DIV col0 - + - col1 * + 32 - + col2 AS col2, - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
1609
-46
2086
-75
2424
-64

skipif mysql # not compatible
query II rowsort label-1934
SELECT DISTINCT + + col2 / col0 - + - col1 * + 32 - + col2 AS col2, - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
1609
-46
2086
-75
2424
-64

query I rowsort
SELECT ALL 93 + - 47 AS col2 FROM tab2
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ( - MAX( col2 ) ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1936
SELECT ( - MAX ( col2 ) ) col1 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT - + 18 AS col2 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> 52 * - 68 + - col0 + + col1
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1940
SELECT - CAST( NULL AS DECIMAL ) * - MAX( + ( ( - 72 ) ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT - CAST ( NULL AS REAL ) * - MAX ( + ( ( - 72 ) ) ) AS col0 FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT - 87 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-87
59
-87
68
-87
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( + - ( + - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col1 FROM tab0 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = 54 * - - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT + 69 * - COUNT( * ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + 69 * - COUNT ( * ) FROM tab1
----
-207

query I rowsort
SELECT ALL - col1 * + + 63 * + col1 FROM tab1
----
-12348
-139167
-1575

query I rowsort
SELECT ALL + ( - + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE + 77 / - 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 82 AS col2 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - COUNT( * ) * + 69 AS col1 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - COUNT ( * ) * + 69 AS col1 FROM tab2
----
-207

query I rowsort
SELECT ALL + col0 * - col0 + + col0 FROM tab0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT - + col0 + - - col0 + + col0 * - - col1 * - col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 AS col1, + col1 col2 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 73 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 39 ) + 25 col1 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL 91 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT IN ( + 77, ( - + col1 ), - col0 )
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 17 + + - col1 AS col1, 29 * - col0, 23 col0 FROM tab2
----
9 values hashing to c17c37d2ef42e0710a25752ac1c4efdf

query I rowsort
SELECT ALL - ( - + 78 ) AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT ALL + 89 * col2 - col2 + - + col1 * + + col2 FROM tab1
----
2788
4897
7104

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1961
SELECT - COUNT( * ) + - - COUNT( * ) + - + 50 AS col1 FROM tab0 WHERE CAST( - + 62 AS DECIMAL ) IS NOT NULL
----
-50

skipif mysql # not compatible
query I rowsort label-1961
SELECT - COUNT ( * ) + - - COUNT ( * ) + - + 50 AS col1 FROM tab0 WHERE CAST ( - + 62 AS REAL ) IS NOT NULL
----
-50

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - + 97 AND NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, 59 FROM tab1 cor0
----
-14
59
-47
59
-5
59

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 AS cor0 WHERE + col2 <> - - 21 + + col1
----
-10
-47
-99

query I rowsort
SELECT - - 91 * - - col2 AS col1 FROM tab0 AS cor0
----
4277
9009
910

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col0 + + 38 * + 99 IS NOT NULL )
----

query I rowsort
SELECT ALL + + col2 - 47 FROM tab0 AS cor0
----
-37
0
52

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 91 - - col0 + + 20 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT 86 * + COUNT( * ) + - SUM( + col1 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1969
SELECT 86 * + COUNT ( * ) + - SUM ( + col1 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT + + 21 FROM tab2 cor0
----
21
21
21

query II rowsort
SELECT 37 * + col1, + 97 * + - col2 + + 42 AS col1 FROM tab0 AS cor0
----
2997
-4517
37
-9561
777
-928

query II rowsort
SELECT DISTINCT ( - 91 ) * + col0 + - col0 / 28, col1 FROM tab1 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT col1 * - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 82 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * 94 AS col2 FROM tab0
----
4418
9306
940

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - - col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - COUNT( * ) FROM tab2 WHERE NOT + + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1976
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + + col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL - SUM( - 72 ) col2 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1977
SELECT ALL - SUM ( - 72 ) col2 FROM tab0 AS cor0
----
216

query II rowsort
SELECT + 14 AS col2, + col0 FROM tab1 AS cor0
----
14
51
14
85
14
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT COUNT( * ) * + 44 + - 57 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-1979
SELECT COUNT ( * ) * + 44 + - 57 FROM tab0
----
75

query I rowsort
SELECT DISTINCT - 79 + + 76 AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col0 * 74 = - 76
----

query I rowsort
SELECT DISTINCT 69 * col0 - - 14 FROM tab1
----
3533
5879
6293

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT + 37 + MAX( ALL + col2 + + col2 ) FROM tab0
----
235

skipif mysql # not compatible
query I rowsort label-1983
SELECT + 37 + MAX ( ALL + col2 + + col2 ) FROM tab0
----
235

query I rowsort
SELECT + 27 * col0 FROM tab0
----
2349
2619
405

query I rowsort
SELECT - 44 * col1 AS col1 FROM tab1
----
-2068
-220
-616

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * - 14 - col0 * 7 ) < - 29 + + col2 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL IN ( col1 * ( col0 * + col2 ) )
----

query I rowsort
SELECT DISTINCT 23 * 6 AS col1 FROM tab0
----
138

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 61 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 87 + - col1 * - 81 FROM tab0
----
168
1788
6648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT ALL 92 AS col0 FROM tab1 WHERE NOT + 21 + - ( col2 + + col2 ) BETWEEN CAST( NULL AS SIGNED ) AND 68 + col2
----

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL 92 AS col0 FROM tab1 WHERE NOT + 21 + - ( col2 + + col2 ) BETWEEN CAST ( NULL AS INTEGER ) AND 68 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1992
SELECT ALL * FROM tab1 WHERE NOT ( 2 * + col1 ) NOT BETWEEN NULL AND - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1992
SELECT ALL * FROM tab1 WHERE NOT ( 2 * + col1 ) NOT BETWEEN NULL AND - col1 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 31 + 80 AS col1 FROM tab2
----
111
111
111

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1994
SELECT DISTINCT * FROM tab2 WHERE NOT 74 * + 79 = + CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-1994
SELECT DISTINCT * FROM tab2 WHERE NOT 74 * + 79 = + CAST ( NULL AS INTEGER ) * col2
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN ( + col1 ) AND ( col1 + col1 * col0 )
----

query I rowsort
SELECT + col0 * col2 FROM tab2 WHERE - 36 BETWEEN - 10 - col0 * + 88 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT 54 DIV col1 FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-1997
SELECT 54 / col1 FROM tab0
----
0
2
54

query I rowsort
SELECT DISTINCT col1 + 98 AS col1 FROM tab0
----
119
179
99

query I rowsort
SELECT ALL col0 + + 19 AS col1 FROM tab0
----
106
116
34

query I rowsort
SELECT DISTINCT col0 * ( ( + col0 ) ) AS col0 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT + 7 * + 10 FROM tab2
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2002
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2003
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL ( COUNT( * ) ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL ( COUNT ( * ) ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + col2 * col1 + col1 FROM tab0 AS cor0 WHERE NOT 61 * 46 < - 53 + - col0 / - col1
----
100
231
3888

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col1 ) NOT BETWEEN + col2 * - ( + 51 ) - col2 AND ( NULL )
----

query I rowsort
SELECT + + 1 * - 24 AS col1 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - col0 * 56 IN ( 83 )
----
10
47
99

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - col0 NOT BETWEEN + 72 * col1 AND NULL
----

query I rowsort
SELECT - - 32 * - col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2012
SELECT COUNT( * ) DIV + COUNT( * ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2012
SELECT COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT COUNT( * ) FROM tab1 WHERE NOT + col0 * - ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col0 * - ( - col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - COUNT( + col0 ) * + COUNT( * ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2014
SELECT - COUNT ( + col0 ) * + COUNT ( * ) col2 FROM tab1
----
-9

query I rowsort
SELECT + 41 * - col1 FROM tab2
----
-2091
-2747
-3157

query I rowsort
SELECT DISTINCT + ( 67 ) AS col2 FROM tab0 WHERE NULL >= ( 65 * + 51 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 92 * col0 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL + COUNT( * ) * + COUNT( * ) + + MIN( - col1 ) * + COUNT( * ) AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + + MIN ( - col1 ) * + COUNT ( * ) AS col2 FROM tab1
----
-132

query I rowsort
SELECT ALL + col1 + + - col0 AS col1 FROM tab0 cor0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 * - 15 + - 92 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 AS cor0 WHERE NOT ( - col2 * + col1 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2022
SELECT MIN( 19 ) DIV + + 2 + - 97 AS col2 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-2022
SELECT MIN ( 19 ) / + + 2 + - 97 AS col2 FROM tab1
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 82 ) + - col2 col1 FROM tab0
----
-17
35
72

query I rowsort
SELECT 47 FROM tab0 WHERE ( + - 80 * 13 ) IS NOT NULL
----
47
47
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + 44 )
----

query I rowsort
SELECT 41 FROM tab2 AS cor0 INNER JOIN tab2 cor1 ON NULL IS NULL
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT - - MAX( - 8 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT - - MAX ( - 8 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT - + CAST( + - col0 AS SIGNED ) + 79 + 50 * col0 FROM tab1 cor0
----
2680
4414
4720

skipif mysql # not compatible
query I rowsort label-2028
SELECT - + CAST ( + - col0 AS INTEGER ) + 79 + 50 * col0 FROM tab1 cor0
----
2680
4414
4720

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT + col0 DIV - col0 + - col2 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + col0 / - col0 + - col2 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT - + col1 + + - col2 * CAST( col0 AS SIGNED ) * 28 FROM tab2 AS cor0
----
-121867
-29675
-71757

skipif mysql # not compatible
query I rowsort label-2030
SELECT - + col1 + + - col2 * CAST ( col0 AS INTEGER ) * 28 FROM tab2 AS cor0
----
-121867
-29675
-71757

query I rowsort
SELECT + col1 + - col2 * + col2 FROM tab0 AS cor0
----
-2128
-79
-9800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT + - 56 * - - CAST( col2 AS SIGNED ) + - 51 FROM tab1 AS cor0
----
-3355
-3859
-5427

skipif mysql # not compatible
query I rowsort label-2032
SELECT + - 56 * - - CAST ( col2 AS INTEGER ) + - 51 FROM tab1 AS cor0
----
-3355
-3859
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT 8 * - SUM( + ( col0 ) ) + - 90 AS col0 FROM tab0 AS cor0
----
-1682

skipif mysql # not compatible
query I rowsort label-2033
SELECT 8 * - SUM ( + ( col0 ) ) + - 90 AS col0 FROM tab0 AS cor0
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL - - 76 * - MAX( - ( - ( + col0 ) ) ) * + 30 - 41 * + 42 AS col2 FROM tab1 AS cor0
----
-209202

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - - 76 * - MAX ( - ( - ( + col0 ) ) ) * + 30 - 41 * + 42 AS col2 FROM tab1 AS cor0
----
-209202

query I rowsort
SELECT ALL 79 + - 76 FROM tab1
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT DISTINCT col2 - 47 DIV + col0 FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT col2 - 47 / + col0 FROM tab0
----
10
44
99

query II rowsort
SELECT ALL + col1 - col2 AS col2, col1 AS col1 FROM tab0
----
-98
1
11
21
34
81

query I rowsort
SELECT + ( col2 ) * 83 FROM tab1 WHERE - col0 IS NOT NULL
----
4897
5644
7968

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= + - col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT + 66 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL col2 - + col1 * - + 74 * - 46 * 62 - col0 FROM tab2
----
-10763471
-14140233
-16250720

query I rowsort
SELECT - 55 * col2 + col2 * - col2 FROM tab1 WHERE ( + col2 + - col0 + col1 * - col1 ) > + col1 * - col2 + - 7
----
-14496
-6726
-8364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - AVG ( - col2 ) * + - 84 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - AVG ( - col2 ) * + - 84 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT + ( + + 51 ) * COUNT( * ) * COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-2045
SELECT + ( + + 51 ) * COUNT ( * ) * COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT + col0 * - 58 * + CAST( - col0 AS SIGNED ) * - col0 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
-35619191
-43707050
-7693662

skipif mysql # not compatible
query I rowsort label-2046
SELECT + col0 * - 58 * + CAST ( - col0 AS INTEGER ) * - col0 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
-35619191
-43707050
-7693662

query I rowsort
SELECT ALL + col0 * - - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT - COUNT( * ) * - COUNT( DISTINCT - 55 ) DIV - + 33 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT - COUNT ( * ) * - COUNT ( DISTINCT - 55 ) / - + 33 AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT DISTINCT + + COUNT( * ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT + + COUNT ( * ) / - + COUNT ( * ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + 51 * - COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 51 * - COUNT ( * ) FROM tab0 AS cor0
----
-153

query I rowsort
SELECT ALL + 12 FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2052
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 / - + col2 ) NOT BETWEEN + col1 AND 3 - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2052
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 / - + col2 ) NOT BETWEEN + col1 AND 3 - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT ALL + col0 * 57 * - ( + - col1 ) * CAST( + col1 * col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54698112
7146375
779149644

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + col0 * 57 * - ( + - col1 ) * CAST ( + col1 * col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54698112
7146375
779149644

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT DISTINCT - COUNT( * ), MAX( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-2054
SELECT DISTINCT - COUNT ( * ), MAX ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-3
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2055
SELECT * FROM tab2 WHERE NOT ( NOT 63 + + CAST( NULL AS SIGNED ) + + col1 / + 55 IN ( + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-2055
SELECT * FROM tab2 WHERE NOT ( NOT 63 + + CAST ( NULL AS INTEGER ) + + col1 / + 55 IN ( + col1 ) )
----

query II rowsort
SELECT ALL col1 AS col0, 14 - + 82 FROM tab2
----
51
-68
67
-68
77
-68

query II rowsort
SELECT col1, + 48 AS col0 FROM tab2
----
51
48
67
48
77
48

query I rowsort
SELECT col0 + + - col2 + + col2 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL NOT BETWEEN 61 AND + col2
----

query I rowsort
SELECT 69 + + + col2 * + col0 FROM tab0
----
774
939
9672

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + COUNT( * ) * + COUNT( * ) - - - 42 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2061
SELECT + COUNT ( * ) * + COUNT ( * ) - - - 42 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2062
SELECT DISTINCT - + MAX( col0 ) * + 49, 77 + - + 1 AS col2 FROM tab2 cor0
----
-3675
76

skipif mysql # not compatible
query II rowsort label-2062
SELECT DISTINCT - + MAX ( col0 ) * + 49, 77 + - + 1 AS col2 FROM tab2 cor0
----
-3675
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2063
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - COUNT( * ) * - AVG ( DISTINCT 2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - CAST ( NULL AS REAL ) + - COUNT ( * ) * - AVG ( DISTINCT 2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT - SUM( ALL + 28 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2064
SELECT - SUM ( ALL + 28 ) FROM tab1 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2065
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 52 <> - - CAST( + 84 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2065
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 52 <> - - CAST ( + 84 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 5 - - col2 AS col1 FROM tab0 AS cor0
----
104
15
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2068
SELECT DISTINCT - COUNT( * ) DIV + 24 + - COUNT( * ) DIV + MAX( ALL + - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - COUNT ( * ) / + 24 + - COUNT ( * ) / + MAX ( ALL + - col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT MIN( ALL + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT MIN ( ALL + col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2070
SELECT + 77 AS col2, + COUNT( * ) FROM tab2
----
77
3

skipif mysql # not compatible
query II rowsort label-2070
SELECT + 77 AS col2, + COUNT ( * ) FROM tab2
----
77
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 10 / ( - ( - col1 ) ) > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 21 * - - col1 FROM tab1
----
-105
-294
-987

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2073
SELECT col1 AS col2, CAST( - + 10 AS SIGNED ) FROM tab0
----
1
-10
21
-10
81
-10

skipif mysql # not compatible
query II rowsort label-2073
SELECT col1 AS col2, CAST ( - + 10 AS INTEGER ) FROM tab0
----
1
-10
21
-10
81
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) > - col2
----

query I rowsort
SELECT + ( - + col1 ) * + 16 AS col2 FROM tab1 AS cor0
----
-224
-752
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT + SUM( ALL + 25 ) FROM tab2, tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT + SUM ( ALL + 25 ) FROM tab2, tab1 AS cor0
----
225

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 62 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2078
SELECT ALL - 20 DIV MIN( col0 ) * SUM( ALL + col1 ) * - 91 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - 20 / MIN ( col0 ) * SUM ( ALL + col1 ) * - 91 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT - col0 DIV + 99 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - col0 / + 99 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2080
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( 61 AS SIGNED ) / + - col2 + + col1 + + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2080
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( 61 AS INTEGER ) / + - col2 + + col1 + + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 8 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 8 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT 84 * col1 AS col0 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT ( col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN 28 AND + - col2
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN 28 AND + - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( + col2 ) * + 58 AS col1 FROM tab1
----
3422
3944
5568

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2087
SELECT ALL * FROM tab1 WHERE NOT - + col1 * CAST( NULL AS SIGNED ) = col2 * + ( - + col2 )
----

skipif mysql # not compatible
query III rowsort label-2087
SELECT ALL * FROM tab1 WHERE NOT - + col1 * CAST ( NULL AS INTEGER ) = col2 * + ( - + col2 )
----

query I rowsort
SELECT col1 + 6 FROM tab2
----
57
73
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2089
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - - 1 AND + + 14
----

skipif mysql # not compatible
query III rowsort label-2089
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - - 1 AND + + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT SUM( + col2 ) + - SUM( ALL - 71 ) FROM tab1
----
436

skipif mysql # not compatible
query I rowsort label-2090
SELECT SUM ( + col2 ) + - SUM ( ALL - 71 ) FROM tab1
----
436

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT DISTINCT col0 + + col2 + - col2 DIV + - col1 AS col0 FROM tab0 cor0
----
295
62
97

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT col0 + + col2 + - col2 / + - col1 AS col0 FROM tab0 cor0
----
295
62
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2092
SELECT ALL + COUNT( * ) DIV + - MAX( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
----
0
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2092
SELECT ALL + COUNT ( * ) / + - MAX ( DISTINCT - col0 ) col2, 7 AS col0 FROM tab0 cor0
----
0
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT DISTINCT + col0 DIV - 89 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + col0 / - 89 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - + ( - 11 ) AS col1 FROM tab0 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 4 ) col1 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL COUNT( * ) + 5 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL COUNT ( * ) + 5 FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL + COUNT( * ) - MIN( DISTINCT - col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + COUNT ( * ) - MIN ( DISTINCT - col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL - COUNT( * ) * + + ( + 59 ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - COUNT ( * ) * + + ( + 59 ) FROM tab2 AS cor0
----
-177

query I rowsort
SELECT 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT ALL - 74 - - col0 * - CAST( NULL AS SIGNED ) * + + col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2101
SELECT ALL - 74 - - col0 * - CAST ( NULL AS INTEGER ) * + + col2 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL ( 63 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL ( 63 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
189

query I rowsort
SELECT - + 78 * - col1 * - ( - col0 ) * + - 41 + + 4 AS col2 FROM tab1 AS cor0
----
-1359146
-13677842
-2283368

query I rowsort
SELECT - 97 + + 23 + - col1 + - + col1 AS col2 FROM tab1 AS cor0
----
-102
-168
-84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT + COUNT( * ) + + ( 69 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2106
SELECT + COUNT ( * ) + + ( 69 ) FROM tab1 AS cor0
----
72

query II rowsort
SELECT + - 9, ( + 98 ) AS col0 FROM tab1 AS cor0
----
-9
98
-9
98
-9
98

query II rowsort
SELECT DISTINCT + 98, + col0 AS col2 FROM tab2 AS cor0
----
98
46
98
64
98
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT - CAST( + 55 AS SIGNED ) FROM tab1 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-2109
SELECT - CAST ( + 55 AS INTEGER ) FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2110
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col2 * CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2110
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col2 * CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT ALL - - 14 FROM tab2 WHERE - col2 + + 26 IS NOT NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + COUNT( * ) FROM tab2 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2112
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT + - 16 AS col1 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + ( col2 ) * - 8 FROM tab2 AS cor0
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT ALL + COUNT( + 56 ) AS col0, + 36 * 41 FROM tab2 AS cor0
----
3
1476

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL + COUNT ( + 56 ) AS col0, + 36 * 41 FROM tab2 AS cor0
----
3
1476

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 >= - + 15 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * + col0 + col0 + col1 * 46 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2118
SELECT ALL COUNT( * ) DIV + 33 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL COUNT ( * ) / + 33 AS col2 FROM tab1
----
0

query II rowsort
SELECT ALL + - col1 * col0 * col0 + + - col1 AS col2, 90 + + + 8 FROM tab0 cor0
----
-158970
98
-18306
98
-9410
98

query I rowsort
SELECT 73 + + 74 FROM tab1 AS cor0
----
147
147
147

query II rowsort
SELECT DISTINCT 77, - 27 AS col2 FROM tab0 AS cor0
----
77
-27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 < + col1
----

query II rowsort
SELECT + + 42 * - col2 + col0, + col2 AS col2 FROM tab0 AS cor0
----
-1959
47
-333
10
-4061
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2124
SELECT + 55 AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
55
-3

skipif mysql # not compatible
query II rowsort label-2124
SELECT + 55 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
55
-3

query I rowsort
SELECT DISTINCT + col1 * + 14 FROM tab2
----
1078
714
938

query I rowsort
SELECT col2 * + col1 * + + col1 * + col0 AS col0 FROM tab2
----
15178240
19527150
2751858

query I rowsort
SELECT ALL - 36 + + 18 FROM tab2
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-2128
SELECT ALL + 31 DIV + 75 * col1 * + + col2 AS col1, col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL + 31 / + 75 * col1 * + + col2 AS col1, col1 FROM tab1
----
0
14
0
47
0
5

query III rowsort
SELECT * FROM tab0 WHERE + - col2 BETWEEN - + col2 * - 53 * col1 AND NULL
----

query I rowsort
SELECT col0 * + - ( + 26 ) FROM tab0
----
-2262
-2522
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 91 col1 FROM tab0
----
-4277
-9009
-910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2132
SELECT + COUNT( * ) DIV + MAX( + 86 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2132
SELECT + COUNT ( * ) / + MAX ( + 86 ) col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 19 col0 FROM tab0
----
-1539
-19
-399

query I rowsort
SELECT + - col0 + + 53 FROM tab0 cor0
----
-34
-44
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NULL IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NULL IN ( - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 col2 FROM tab0 AS cor0 WHERE - col2 * + 85 + + col2 IS NOT NULL
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL + ( + MAX( - + col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + ( + MAX ( - + col1 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2138
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + CAST( NULL AS SIGNED ), col1, + 52 / + ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-2138
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + CAST ( NULL AS INTEGER ), col1, + 52 / + ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT DISTINCT - - COUNT( * ), - 63 AS col1 FROM tab2 AS cor0
----
3
-63

skipif mysql # not compatible
query II rowsort label-2139
SELECT DISTINCT - - COUNT ( * ), - 63 AS col1 FROM tab2 AS cor0
----
3
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-2140
SELECT ALL - col2 AS col0, - col2 DIV - + col0 + + col0 + - 56 + - ( - + 19 ) AS col2 FROM tab1 AS cor0
----
-59
48
-68
54
-96
15

skipif mysql # not compatible
query II rowsort label-2140
SELECT ALL - col2 AS col0, - col2 / - + col0 + + col0 + - 56 + - ( - + 19 ) AS col2 FROM tab1 AS cor0
----
-59
48
-68
54
-96
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT ALL + col0 / + 70 * - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2141
SELECT ALL + col0 / + 70 * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 > + + col2 * - - 59 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 26 IS NOT NULL
----

query II rowsort
SELECT col0, + 11 * - - col1 AS col0 FROM tab0
----
15
891
87
231
97
11

query I rowsort
SELECT DISTINCT + ( - + 25 ) FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT ALL 89 AS col2, COUNT( * ) AS col1 FROM tab2
----
89
3

skipif mysql # not compatible
query II rowsort label-2146
SELECT ALL 89 AS col2, COUNT ( * ) AS col1 FROM tab2
----
89
3

query II rowsort
SELECT DISTINCT col1, + 82 * + 2 FROM tab1
----
14
164
47
164
5
164

query II rowsort
SELECT col2, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2150
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT + 46 + + + col0 * 85 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT - col2 * - ( + + col1 ) FROM tab0 cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2153
SELECT 42 DIV - col2 AS col2, - col2 * 80 * - col2 FROM tab1
----
0
278480
0
369920
0
737280

skipif mysql # not compatible
query II rowsort label-2153
SELECT 42 / - col2 AS col2, - col2 * 80 * - col2 FROM tab1
----
0
278480
0
369920
0
737280

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT MAX( ALL + - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2154
SELECT MAX ( ALL + - col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT ( - 10 ) DIV + - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2155
SELECT ( - 10 ) / + - col1 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 63 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col0 * 99 AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2158
SELECT DISTINCT col1 * + + col1 + + col2 * 0 DIV + - CAST( + - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT col1 * + + col1 + + col2 * 0 / + - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
1
441
6561

query I rowsort
SELECT ALL + 93 + col0 FROM tab0 AS cor0
----
108
180
190

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col1 IN ( + col1, col0, - col1 ) AND NOT - 86 > + 66 + - + 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + + 33 FROM tab2 cor0
----
56
73
91

query I rowsort
SELECT - - col2 + + col2 - col2 * - 65 * + + col0 FROM tab0 AS cor0
----
45919
56570
624393

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + ( - COUNT( * ) ) + + MAX( DISTINCT + + col1 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2163
SELECT + ( - COUNT ( * ) ) + + MAX ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - COUNT( * ) + - MAX( DISTINCT + col2 ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2164
SELECT - COUNT ( * ) + - MAX ( DISTINCT + col2 ) FROM tab2
----
-61

query III rowsort
SELECT * FROM tab0 WHERE - 8 BETWEEN - col2 AND - col0 + col1
----
15
81
47

query II rowsort
SELECT ALL col1 AS col0, + col2 * 81 AS col0 FROM tab2
----
51
1863
67
4698
77
3240

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - + col0 + + col2 IN ( ( - col2 ), col1 / col0 * + col2 / + + ( - col1 ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 * + col2 + col2 AS col0, 22 AS col0 FROM tab0
----
-658
22
-860
22
-9504
22

query I rowsort
SELECT ALL + 2 * col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2170
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( ( + col0 ), + CAST( 26 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2170
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( ( + col0 ), + CAST ( 26 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT + 8 DIV + - 21 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + 8 / + - 21 AS col0 FROM tab1
----
0

query II rowsort
SELECT - col2 AS col0, - 28 AS col2 FROM tab2 AS cor0
----
-23
-28
-40
-28
-58
-28

query I rowsort
SELECT + 0 - - ( + 17 ) FROM tab2 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT - + 74 - - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT - + 74 - - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 27 FROM tab0
----
2349
2619
405

query I rowsort
SELECT - col2 * + 68 + + col2 FROM tab1 cor0
----
-3953
-4556
-6432

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( + - col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2178
SELECT ALL - COUNT( * ) DIV - 34 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - COUNT ( * ) / - 34 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col0 AS col2, col1 * + 46 AS col2 FROM tab2 AS cor0 WHERE NOT col1 >= + + 60
----
46
2346

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query II rowsort
SELECT - col1 AS col2, 27 FROM tab0 cor0 WHERE NOT col0 * - + 34 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ( - MIN( DISTINCT + - col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2182
SELECT ( - MIN ( DISTINCT + - col2 ) ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + + 71 IS NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * + col2 + + - 52 + - col2 * - col0 * + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT COUNT( * ) col0, + 84 AS col2 FROM tab0
----
3
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2186
SELECT COUNT ( * ) col0, + 84 AS col2 FROM tab0
----
3
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL CAST( NULL AS SIGNED ) + - col0 FROM tab2 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 FROM tab2 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT col0 FROM tab1 cor0 WHERE NOT 58 + col0 > CAST( col2 AS SIGNED ) - + + col2
----

skipif mysql # not compatible
query I rowsort label-2188
SELECT col0 FROM tab1 cor0 WHERE NOT 58 + col0 > CAST ( col2 AS INTEGER ) - + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT ALL - col2 DIV + col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2189
SELECT ALL - col2 / + col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2190
SELECT DISTINCT - ( + 89 ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - ( + 89 ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 34 + + 58 * - 4 + - col1 AS col0 FROM tab0 AS cor0
----
-199
-219
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT - COUNT( DISTINCT - 99 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2193
SELECT - COUNT ( DISTINCT - 99 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2194
SELECT ALL + 60 col2, COUNT( * ) + + + ( - 70 ) FROM tab1 AS cor0
----
60
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2194
SELECT ALL + 60 col2, COUNT ( * ) + + + ( - 70 ) FROM tab1 AS cor0
----
60
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - + COUNT( * ) * 0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2195
SELECT - + COUNT ( * ) * 0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT + 39 + 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-2196
SELECT + 39 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT COUNT( ALL + 52 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT COUNT ( ALL + 52 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query III rowsort label-2199
SELECT ALL MIN( + col2 ) AS col1, + ( + - COUNT( * ) ) AS col1, + 96 FROM tab0
----
10
-3
96

skipif mysql # not compatible
query III rowsort label-2199
SELECT ALL MIN ( + col2 ) AS col1, + ( + - COUNT ( * ) ) AS col1, + 96 FROM tab0
----
10
-3
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - + + 83 col0 FROM tab1
----
-19
27
32

query II rowsort
SELECT ALL - col2, + col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL + col2 + - col1 + - col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 WHERE NOT NULL <> - 49 + 0 * col2 / + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT ( - 2 ) + + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT ( - 2 ) + + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 25 + - 30 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - ( 88 ) AS col0 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT ALL - - col0 + - col0 + - - col0 * + col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - 1 + - - 42 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL + COUNT( 36 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + COUNT ( 36 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT 85 + - COUNT( + ( + col0 ) ) AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT 85 + - COUNT ( + ( + col0 ) ) AS col2 FROM tab2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT - col0 * + col2 * - col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2211
SELECT - col0 * + col2 * - col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NOT + 52 + + col0 IN ( 10, - 1 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2213
SELECT COUNT( * ) DIV + - ( - 91 ) - ( + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2213
SELECT COUNT ( * ) / + - ( - 91 ) - ( + COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ( - 95 ) - - - 99 + + SUM( + 55 ) + + + 17 AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2214
SELECT ( - 95 ) - - - 99 + + SUM ( + 55 ) + + + 17 AS col1 FROM tab2
----
-12

query I rowsort
SELECT - col0 + col2 * - 39 / - col1 FROM tab1 WHERE NULL <= ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + MIN( ALL - 42 ) - + + COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2216
SELECT + MIN ( ALL - 42 ) - + + COUNT ( * ) FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - SUM( + col2 ) * + + 79 + - 24 FROM tab1
----
-17641

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - SUM ( + col2 ) * + + 79 + - 24 FROM tab1
----
-17641

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT col1 DIV + 91 - + col0 * - + 87 + - - 6 FROM tab0
----
1311
7575
8445

skipif mysql # not compatible
query I rowsort label-2218
SELECT col1 / + 91 - + col0 * - + 87 + - - 6 FROM tab0
----
1311
7575
8445

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + 84 + + COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + 84 + + COUNT ( * ) AS col2 FROM tab0
----
87

query I rowsort
SELECT - 69 + col1 * - + col0 FROM tab0 AS cor0
----
-1284
-166
-1896

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE ( NOT + 18 * + col1 * col1 + - + col1 IS NOT NULL )
----

query II rowsort
SELECT col1 + + col2 AS col1, + col2 + - + col2 * - col1 AS col1 FROM tab1 AS cor0
----
110
1440
115
3264
64
354

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 45 ) + + 5 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col1, col0 + - + 5 AS col2 FROM tab0
----
-1
92
-21
82
-81
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + MIN( + 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2225
SELECT + MIN ( + 41 ) FROM tab0
----
41

query I rowsort
SELECT ( + col0 ) FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col2 * 15 AS col0 FROM tab1
----
1020
1440
885

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL - 97 * + COUNT( * ) FROM tab0 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - 97 * + COUNT ( * ) FROM tab0 cor0
----
-291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT + CAST( NULL AS SIGNED ) * + MIN( - col1 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2229
SELECT + CAST ( NULL AS INTEGER ) * + MIN ( - col1 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2230
SELECT * FROM tab1, tab1 AS cor0 WHERE + 35 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2230
SELECT * FROM tab1, tab1 AS cor0 WHERE + 35 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL col2 * col0, col1 AS col2 FROM tab2
----
1058
51
2560
77
4350
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + + col0
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT ALL CAST( 11 AS SIGNED ) FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL CAST ( 11 AS INTEGER ) FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT + 40 * - SUM( ALL - ( + col1 ) ) AS col2 FROM tab0
----
4120

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + 40 * - SUM ( ALL - ( + col1 ) ) AS col2 FROM tab0
----
4120

query I rowsort
SELECT + 41 * + ( + 49 ) + - col2 FROM tab1 cor0
----
1913
1941
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2236
SELECT - + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2237
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL + - MAX( - 78 ) + - COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + - MAX ( - 78 ) + - COUNT ( * ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT + col1 - + - col0 AS col1 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col0 * + col1
----

query I rowsort
SELECT DISTINCT 41 * - - col2 + - + 88 FROM tab0 AS cor0
----
1839
322
3971

query I rowsort
SELECT ALL + - col1 * col1 * - 40 + + - 69 + - - 47 * - 70 AS col1 FROM tab2 AS cor0
----
100681
176201
233801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT - col1 + - + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2243
SELECT - col1 + - + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - 6 + 13 AS col1 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2245
SELECT - - 14 * - + CAST( NULL AS SIGNED ) + - - COUNT( * ) * + MIN( ALL - col0 ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT - - 14 * - + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + MIN ( ALL - col0 ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col0 * - 53 + + col1 FROM tab0 AS cor0
----
-4590
-5140
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE - 52 + + col2 - + col2 * + 20 + + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2248
SELECT ALL + col1 - - CAST( + 56 AS SIGNED ) col1 FROM tab2
----
107
123
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2248
SELECT ALL + col1 - - CAST ( + 56 AS INTEGER ) col1 FROM tab2
----
107
123
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + + - col0 col1 FROM tab1
----
-146
-180
-186

query I rowsort
SELECT - 27 FROM tab2 WHERE NULL < + 10 * - ( + + col2 ) * - + 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT DISTINCT 85 DIV col2 - 67 col2 FROM tab2
----
-64
-65
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2251
SELECT DISTINCT 85 / col2 - 67 col2 FROM tab2
----
-64
-65
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - - 93 AS col1, col2 * - col2 + + col0 col2 FROM tab1
----
2
-4533
42
-9165
8
-3396

query III rowsort
SELECT * FROM tab0 WHERE - 5 >= + 50 * + col2 + - + col1 + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT ALL - COUNT( * ) AS col0, 59 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9
59

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL - COUNT ( * ) AS col0, 59 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9
59

query II rowsort
SELECT ALL - col2 * col0 AS col1, 13 FROM tab1
----
-4896
13
-5015
13
-6188
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) * - + 55 AS col2 FROM tab0 AS cor0
----
-1155
-4455
-55

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) * - + 55 AS col2 FROM tab0 AS cor0
----
-1155
-4455
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT + ( + col0 ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT + ( + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - MIN( DISTINCT - + 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2260
SELECT - MIN ( DISTINCT - + 80 ) FROM tab2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT col2 DIV 40 * col1 AS col0 FROM tab1
----
28
47
5

skipif mysql # not compatible
query I rowsort label-2261
SELECT col2 / 40 * col1 AS col0 FROM tab1
----
28
47
5

query II rowsort
SELECT 32, - col2 AS col1 FROM tab0
----
32
-10
32
-47
32
-99

query I rowsort
SELECT ALL - 91 * - col1 FROM tab2
----
4641
6097
7007

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2264
SELECT CAST( NULL AS DECIMAL ) AS col2, 77 FROM tab2
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-2264
SELECT CAST ( NULL AS REAL ) AS col2, 77 FROM tab2
----
NULL
77
NULL
77
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT + - COUNT( * ) * - 29 FROM tab1 AS cor0 WHERE ( NULL ) = + CAST( + ( + col2 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT + - COUNT ( * ) * - 29 FROM tab1 AS cor0 WHERE ( NULL ) = + CAST ( + ( + col2 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL 58 * COUNT( DISTINCT + + col2 ) AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL 58 * COUNT ( DISTINCT + + col2 ) AS col1 FROM tab2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2267
SELECT ALL - col2 * CAST( NULL AS SIGNED ) * - - col2 * + + col2 AS col0, ( col1 ) + + 13 AS col2 FROM tab1
----
NULL
18
NULL
27
NULL
60

skipif mysql # not compatible
query II rowsort label-2267
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) * - - col2 * + + col2 AS col0, ( col1 ) + + 13 AS col2 FROM tab1
----
NULL
18
NULL
27
NULL
60

query I rowsort
SELECT DISTINCT + col2 + - col1 + 34 FROM tab1 AS cor0
----
116
55
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 + - 10 col0 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL col2 * - - col1 + + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
197
318
3903

query I rowsort
SELECT 76 FROM tab1 cor0 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT DISTINCT col2 - - col2 + - + 75 * - + col0 AS col0 FROM tab0
----
1219
6545
7473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT CAST( NULL AS SIGNED ) - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT CAST ( NULL AS INTEGER ) - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE - 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + SUM( ALL - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2277
SELECT + SUM ( ALL - col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL + + MAX( col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + + MAX ( col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT - - COUNT( * ) * + - 5 AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2279
SELECT - - COUNT ( * ) * + - 5 AS col1 FROM tab1 AS cor0
----
-15

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 * - col2 - + 2 + - col1 FROM tab2
----
23
-1111
40
-2639
58
-4419

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT 82 * + + MIN( DISTINCT col1 ) col0 FROM tab0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2281
SELECT DISTINCT 82 * + + MIN ( DISTINCT col1 ) col0 FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT + MIN( + 71 ) AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + MIN ( + 71 ) AS col1 FROM tab1 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT + - CAST( - col0 AS SIGNED ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT + - CAST ( - col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 * + col1 * col1 + + col1 FROM tab0 AS cor0 WHERE ( NULL ) < + col0 * - col1
----

query II rowsort
SELECT + col1 AS col1, 64 + - ( + - 5 ) * col2 AS col0 FROM tab1 AS cor0
----
14
544
47
404
5
359

query I rowsort
SELECT - - col1 * col0 + + col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT CAST( + - SUM( + col1 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2287
SELECT CAST ( + - SUM ( + col1 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-195

query I rowsort
SELECT ALL 82 * + col0 AS col1 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 77 + + col2 AS col2 FROM tab2
----
3950
5217
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT + COUNT( * ) * - COUNT( * ) + 96 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2291
SELECT + COUNT ( * ) * - COUNT ( * ) + 96 FROM tab1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT ALL - COUNT( * ) + - - 20 DIV - 11 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - COUNT ( * ) + - - 20 / - 11 FROM tab2
----
-4

query III rowsort
SELECT * FROM tab2 WHERE + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 9 AS col2 FROM tab2 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT - - MAX( - col1 ) + - 90 AS col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - - MAX ( - col1 ) + - 90 AS col1 FROM tab2 AS cor0
----
-141

query II rowsort
SELECT col2, 40 + + + col2 AS col0 FROM tab2
----
23
63
40
80
58
98

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2298
SELECT DISTINCT ( col0 ) / + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2298
SELECT DISTINCT ( col0 ) / + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

query II rowsort
SELECT + col2 * - 8 + col0 - col0 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
-472
59
-544
68
-768
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + 54 BETWEEN + col2 + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - 46 + COUNT( DISTINCT + 9 ) AS col0 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2301
SELECT - 46 + COUNT ( DISTINCT + 9 ) AS col0 FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT - - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) <= - 26 + + col0 - - col1
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2302
SELECT - - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) <= - 26 + + col0 - - col1
----
10
47
99

query I rowsort
SELECT + 51 + + + ( + col1 ) + 60 AS col0 FROM tab1 AS cor0
----
116
125
158

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + 15 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2305
SELECT DISTINCT col2 DIV - - col2 AS col0, - col1 AS col2 FROM tab0
----
1
-1
1
-21
1
-81

skipif mysql # not compatible
query II rowsort label-2305
SELECT DISTINCT col2 / - - col2 AS col0, - col1 AS col2 FROM tab0
----
1
-1
1
-21
1
-81

query I rowsort
SELECT - 61 AS col2 FROM tab1 WHERE NOT + - col2 + - 66 BETWEEN + col1 / + - col1 AND - col2
----
-61
-61
-61

query I rowsort
SELECT - col2 * - ( + - col0 ) * - col2 * - + 31 + + + 12 FROM tab0 AS cor0
----
-1027173
-269688
-29471595

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2308
SELECT DISTINCT - + 97 AS col1, + CAST( NULL AS SIGNED ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2308
SELECT DISTINCT - + 97 AS col1, + CAST ( NULL AS INTEGER ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT MIN( ALL col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT MIN ( ALL col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + COUNT( * ) + + + 22 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2311
SELECT + COUNT ( * ) + + + 22 FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2312
SELECT COUNT( * ) DIV + 53 + 60 AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2312
SELECT COUNT ( * ) / + 53 + 60 AS col1 FROM tab1 AS cor0
----
60

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL <> 4 / - 89 * col2 + 64
----

query I rowsort
SELECT DISTINCT - col1 + + 86 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 + 38 + - 44 + - ( ( 62 ) ) * + 15 * + col2 * - - 46 AS col2 FROM tab2 AS cor0
----
-1711166
-2481188
-983923

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT - + COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - + COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + col1 * + - col0 FROM tab0
----
10
-1827
47
-1215
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col0 FROM tab0 WHERE NOT col0 * 38 NOT IN ( ( col0 ), - col2 * + - col1, + - col2 * - col1 * + 1 + + - col0 * - col2 )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + + 99 NOT BETWEEN - 80 AND - col1
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT ( ( + col0 ) IS NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2321
SELECT + 45 DIV - - COUNT( * ) col2 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2321
SELECT + 45 / - - COUNT ( * ) col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + COUNT( * ) * - MIN( ALL - + ( 77 ) ) FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-2322
SELECT + COUNT ( * ) * - MIN ( ALL - + ( 77 ) ) FROM tab1
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT - 70 + CAST( - 93 AS SIGNED ) + + - col0 * + + col0 * 57 + + - col1 AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
-120826
-233712
-320855

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 70 + CAST ( - 93 AS INTEGER ) + + - col0 * + + col0 * 57 + + - col1 AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
-120826
-233712
-320855

query I rowsort
SELECT + col1 * 13 AS col1 FROM tab0
----
1053
13
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT DISTINCT - 14 + - + ( - col1 ) + - + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST( - 83 AS SIGNED ) AND + - 28
----

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - 14 + - + ( - col1 ) + - + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN CAST ( - 83 AS INTEGER ) AND + - 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT + - CAST( NULL AS SIGNED ) + + ( + col1 ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - CAST ( NULL AS INTEGER ) + + ( + col1 ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col0 - + + col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + + 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - 97 * 56 + - 72 AS col1 FROM tab2
----
-5504
-5504
-5504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT ALL col0 / + + 20 * - + col0 - - CAST( NULL AS SIGNED ) * + col0 + - CAST( NULL AS SIGNED ) + - 57 * + col1 + - col0 * + 50 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL col0 / + + 20 * - + col0 - - CAST ( NULL AS INTEGER ) * + col0 + - CAST ( NULL AS INTEGER ) + - 57 * + col1 + - col0 * + 50 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - ( - 63 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT DISTINCT 11 - - COUNT( * ) * - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT 11 - - COUNT ( * ) * - SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - 29 - - MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 29 - - MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-80

query I rowsort
SELECT ALL - 58 * - ( col0 ) * col2 FROM tab1 AS cor0
----
283968
290870
358904

onlyif mysql # aggregate syntax: 
query II rowsort label-2336
SELECT - 11 * + COUNT( * ), - 45 AS col1 FROM tab1 AS cor0
----
-33
-45

skipif mysql # not compatible
query II rowsort label-2336
SELECT - 11 * + COUNT ( * ), - 45 AS col1 FROM tab1 AS cor0
----
-33
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 48 AS col0, 15 * - 74 * - - 79 col0 FROM tab2
----
48
-87690

query II rowsort
SELECT DISTINCT col1 AS col0, 28 + 83 FROM tab1
----
14
111
47
111
5
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2339
SELECT + 50 * + + MIN( + - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab2
----
-3750

skipif mysql # not compatible
query I rowsort label-2339
SELECT + 50 * + + MIN ( + - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab2
----
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT COUNT( * ) * - + MIN( DISTINCT col0 ) AS col2 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-2340
SELECT COUNT ( * ) * - + MIN ( DISTINCT col0 ) AS col2 FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - SUM( + 78 ) AS col0 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-2341
SELECT - SUM ( + 78 ) AS col0 FROM tab0
----
-234

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 / + + col2 <> NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN - col1 * + col1 * + - col0 AND col0 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 / col2 * - + col2 * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 49 ) AS col2 FROM tab1
----
-49
-49
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) * - - 28 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) * - - 28 FROM tab2
----
0

query I rowsort
SELECT ALL 96 * + - 94 AS col1 FROM tab1
----
-9024
-9024
-9024

query II rowsort
SELECT + col1, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 43 AND col0
----

query II rowsort
SELECT col1, + col2 * - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + - col2 / - - col0 AS col0 FROM tab0 cor0 WHERE NOT + ( - + 77 ) >= 3 * - ( - col1 ) * + - col2
----

query I rowsort
SELECT col1 * + 99 FROM tab1 AS cor0
----
1386
4653
495

query I rowsort
SELECT DISTINCT - - 68 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - col0 + + + 50 FROM tab0 AS cor0
----
-37
-47
35

query I rowsort
SELECT col1 + + col0 + + col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT MAX( + + col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2357
SELECT DISTINCT MAX ( + + col1 ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL COUNT( * ) + + + 1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL COUNT ( * ) + + + 1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE CAST( - col2 AS SIGNED ) * - 78 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2359
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE CAST ( - col2 AS INTEGER ) * - 78 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 57 + + + col0 AS col0 FROM tab2
----
103
121
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT COUNT( * ) + - MAX( - col0 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2361
SELECT COUNT ( * ) + - MAX ( - col0 ) FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL - MIN( - 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - MIN ( - 57 ) FROM tab1
----
57

query III rowsort
SELECT * FROM tab1 WHERE 94 < NULL
----

query I rowsort
SELECT ALL - 85 + + col0 AS col0 FROM tab1 AS cor0
----
-34
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT COUNT( * ) - + 34 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-2365
SELECT COUNT ( * ) - + 34 FROM tab1
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT col1 + + 58 FROM tab2
----
109
125
135

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 63 * ( + col0 ) + + col2 FROM tab0 AS cor0
----
-5471
-6012
-898

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT + - 94 DIV - col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2370
SELECT + - 94 / - col0 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + COUNT( - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2371
SELECT + COUNT ( - - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT - + COUNT( * ) * ( - MAX( DISTINCT + 94 ) ) FROM tab2 cor0
----
282

skipif mysql # not compatible
query I rowsort label-2372
SELECT - + COUNT ( * ) * ( - MAX ( DISTINCT + 94 ) ) FROM tab2 cor0
----
282

query II rowsort
SELECT ALL + col2 - - + ( + + 19 ) - - 87 * + 9, col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 >= + col1 + - 86
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2374
SELECT - + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col0, 19 FROM tab0 cor0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2374
SELECT - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col0, 19 FROM tab0 cor0
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT + SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT + SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2376
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2376
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 30 NOT BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT ALL COUNT( * ) AS col0, 25 FROM tab0, tab2 cor0
----
9
25

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL COUNT ( * ) AS col0, 25 FROM tab0, tab2 cor0
----
9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT - COUNT( col0 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - COUNT ( col0 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + 20 + col2 * + 47 * - col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) >= 78 * col2
----

query I rowsort
SELECT + 73 AS col2 FROM tab0 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT SUM( ALL - col1 ) AS col1 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2382
SELECT SUM ( ALL - col1 ) AS col1 FROM tab1 cor0
----
-66

query I rowsort
SELECT + col2 * + + 59 * - + col2 FROM tab2 AS cor0
----
-198476
-31211
-94400

query I rowsort
SELECT + + col0 * - 15 + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1270
-1318
-751

query I rowsort
SELECT DISTINCT 0 * - + col2 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + + col2
----

query I rowsort
SELECT - 81 + col1 AS col1 FROM tab2
----
-14
-30
-4

query I rowsort
SELECT 96 + ( 57 ) * - 16 AS col1 FROM tab0 cor0
----
-816
-816
-816

query I rowsort
SELECT + col2 * - col2 FROM tab0 AS cor0 WHERE + 97 IS NOT NULL
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL - MAX( + 38 ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - MAX ( + 38 ) FROM tab1 AS cor0
----
-38

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 76 + 48 * 83 FROM tab1 cor0
----
-1184
-3312
-500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 88 * - + 1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 88 * - + 1 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2394
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * - 76 + - col0 - - col0 NOT BETWEEN NULL AND - + col1
----

skipif mysql # not compatible
query III rowsort label-2394
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * - 76 + - col0 - - col0 NOT BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2395
SELECT + COUNT( * ) DIV - 58 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT + COUNT ( * ) / - 58 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT 73 - - - COUNT( * ) AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-2396
SELECT 73 - - - COUNT ( * ) AS col2 FROM tab2
----
70

query I rowsort
SELECT ALL col1 * + col2 - + col0 AS col2 FROM tab1
----
1293
210
3105

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - - col2
----

query I rowsort
SELECT col2 - + 71 FROM tab1
----
-12
-3
25

query I rowsort
SELECT 77 * - + 6 FROM tab2
----
-462
-462
-462

query I rowsort
SELECT DISTINCT + 54 * - - col0 * ( + col1 ) FROM tab1
----
22950
230958
38556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 16 col1, col2 AS col0 FROM tab0
----
-16
10
-16
47
-16
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + 91 + MIN( DISTINCT 64 ) AS col1 FROM tab1, tab2 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-2404
SELECT + 91 + MIN ( DISTINCT 64 ) AS col1 FROM tab1, tab2 AS cor0
----
155

query I rowsort
SELECT DISTINCT + - ( 1 ) FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL - MAX( + - 21 ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - MAX ( + - 21 ) AS col2 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL MIN( + + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL MIN ( + + col2 ) FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT - 27 * + 85 * + COUNT( * ) AS col2 FROM tab2
----
-6885

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - 27 * + 85 * + COUNT ( * ) AS col2 FROM tab2
----
-6885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT ALL - CAST( + COUNT( ALL - 44 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - CAST ( + COUNT ( ALL - 44 ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - col2 IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL - col0, - col1 * + col2 AS col0 FROM tab1
----
-51
-1344
-85
-295
-91
-3196

query I rowsort
SELECT DISTINCT col2 * + - 92 FROM tab0
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT + col0 * - - col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT ALL - + CAST( NULL AS SIGNED ) * 48 * - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - + CAST ( NULL AS INTEGER ) * 48 * - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( - + col0 ) AS col2 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2417
SELECT - - 99 AS col0, - CAST( + CAST( MIN( DISTINCT - 75 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
99
75

skipif mysql # not compatible
query II rowsort label-2417
SELECT - - 99 AS col0, - CAST ( + CAST ( MIN ( DISTINCT - 75 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
99
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL + SUM( + + 73 ) FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + SUM ( + + 73 ) FROM tab1 AS cor0
----
219

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL MAX( + col0 ) * + 9 + COUNT( * ) FROM tab1
----
822

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL MAX ( + col0 ) * + 9 + COUNT ( * ) FROM tab1
----
822

onlyif mysql # aggregate syntax: 
query II rowsort label-2421
SELECT DISTINCT - MIN( ALL + 12 ) + + 59 AS col2, 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
47
34

skipif mysql # not compatible
query II rowsort label-2421
SELECT DISTINCT - MIN ( ALL + 12 ) + + 59 AS col2, 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
47
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2422
SELECT DISTINCT + col2 DIV col0 * + - 15 DIV + 4 + + + 99 + - CAST( + col1 AS SIGNED ) col2 FROM tab2
----
22
32
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2422
SELECT DISTINCT + col2 / col0 * + - 15 / + 4 + + + 99 + - CAST ( + col1 AS INTEGER ) col2 FROM tab2
----
22
32
48

query I rowsort
SELECT 77 * col1 / 6 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + col2 - - + col0 - 52 * + col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - 40 + + 91 AS col2 FROM tab0 AS cor0
----
1971
4051
491

query II rowsort
SELECT 2 + + col0 AS col1, col2 FROM tab0 AS cor0
----
17
47
89
10
99
99

query I rowsort
SELECT DISTINCT - 99 + col1 AS col2 FROM tab2
----
-22
-32
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2428
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2428
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL CAST( - 35 AS SIGNED ) FROM tab2 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL CAST ( - 35 AS INTEGER ) FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - + 15 - - col0 FROM tab2 AS cor0
----
31
49
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( - 25 * - 59 ) AND + col2
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN + col1 + - 50 * + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( - 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 16 col0 FROM tab0
----
-31
-83
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col2 col2 FROM tab1
----
110
73
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2438
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2438
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT + 4 + + col2 DIV - 5 FROM tab0
----
-15
-5
2

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 4 + + col2 / - 5 FROM tab0
----
-15
-5
2

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) NOT IN ( - col1 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT ( - 0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2442
SELECT + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
0

query I rowsort
SELECT + 62 AS col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL MAX( 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL MAX ( 41 ) FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL - SUM( DISTINCT - 96 ) - - SUM( ALL - col2 ) * COUNT( * ) FROM tab1
----
-573

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - SUM ( DISTINCT - 96 ) - - SUM ( ALL - col2 ) * COUNT ( * ) FROM tab1
----
-573

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + MAX( 35 ) AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + MAX ( 35 ) AS col2 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT - COUNT( * ) * 61 + - ( - 3 ) AS col0 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - COUNT ( * ) * 61 + - ( - 3 ) AS col0 FROM tab0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT - col2 DIV 2 + + col2 FROM tab2
----
12
20
29

skipif mysql # not compatible
query I rowsort label-2448
SELECT - col2 / 2 + + col2 FROM tab2
----
12
20
29

query I rowsort
SELECT DISTINCT + 66 + col2 AS col0 FROM tab1
----
125
134
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL MIN( col1 ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL MIN ( col1 ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( col1 ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col2 FROM tab0 WHERE NOT 99 <= + col2 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + 83 + 40 FROM tab1 AS cor0
----
123

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - 38 * 13 )
----

query I rowsort
SELECT DISTINCT col2 * + 10 + - 41 FROM tab2 AS cor0
----
189
359
539

query I rowsort
SELECT ALL col0 * 54 FROM tab1 AS cor0
----
2754
4590
4914

query I rowsort
SELECT - col2 + 89 AS col1 FROM tab0
----
-10
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + 84 * COUNT( * ) + 20 FROM tab1
----
272

skipif mysql # not compatible
query I rowsort label-2460
SELECT + 84 * COUNT ( * ) + 20 FROM tab1
----
272

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * col0 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL col2 + - col0 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 77 * + col1 col0 FROM tab1 AS cor0
----
-1078
-3619
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT MIN( + 33 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 * + 34 AND ( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT MIN ( + 33 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 * + 34 AND ( 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( 39 ) - - ( - col1 ) FROM tab0 cor0
----
-42
18
38

query I rowsort
SELECT DISTINCT - col2 + + ( + 30 ) AS col1 FROM tab0 AS cor0 WHERE + 54 < ( NULL )
----

query I rowsort
SELECT ALL ( - col0 ) - + col0 AS col0 FROM tab0 cor0
----
-174
-194
-30

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 NOT BETWEEN - col1 AND col2
----
97
1
99

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE ( - 4 * + 43 ) NOT IN ( 88 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT COUNT( * ) - + SUM( - 84 ) - - COUNT( * ) FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-2471
SELECT COUNT ( * ) - + SUM ( - 84 ) - - COUNT ( * ) FROM tab2
----
258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT ALL COUNT( * ) + 40 DIV COUNT( * ) AS col2 FROM tab0 WHERE NOT ( 47 DIV - col1 ) IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL COUNT ( * ) + 40 / COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( 47 / - col1 ) IS NULL
----
16

query I rowsort
SELECT col1 FROM tab0 WHERE + col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT COUNT( 94 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2474
SELECT COUNT ( 94 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2475
SELECT * FROM tab1 WHERE ( - 30 ) NOT BETWEEN ( col2 - CAST( - 65 AS SIGNED ) ) AND ( col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2475
SELECT * FROM tab1 WHERE ( - 30 ) NOT BETWEEN ( col2 - CAST ( - 65 AS INTEGER ) ) AND ( col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT CAST( + col1 AS SIGNED ) - 98 FROM tab0
----
-17
-77
-97

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT CAST ( + col1 AS INTEGER ) - 98 FROM tab0
----
-17
-77
-97

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT - 48 * CAST( NULL AS SIGNED ) + + 31 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT - 48 * CAST ( NULL AS INTEGER ) + + 31 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + 26 AS col2 FROM tab1
----
31
40
73

query I rowsort
SELECT - col2 + + + 96 + 55 * + col0 AS col0 FROM tab1
----
2805
4712
5033

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + 10 NOT BETWEEN 19 * col2 AND 91
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 86 * + col1 AS col0 FROM tab0 AS cor0
----
1806
6966
86

query I rowsort
SELECT - 70 * + col1 FROM tab2 AS cor0 WHERE NOT 10 * 36 BETWEEN NULL AND ( - 78 + col0 )
----
-3570
-4690
-5390

query I rowsort
SELECT ALL - ( - + 82 ) * col1 FROM tab2 AS cor0
----
4182
5494
6314

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND - 87 * col1
----

query I rowsort
SELECT ALL + - 95 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 79 AS col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 33, col0 AS col1 FROM tab0
----
33
15
33
87
33
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - COUNT( * ) + - 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - COUNT ( * ) + - 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT COUNT( DISTINCT 34 ) FROM tab0 AS cor0 WHERE NOT col2 * + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT COUNT ( DISTINCT 34 ) FROM tab0 AS cor0 WHERE NOT col2 * + col0 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

query II rowsort
SELECT DISTINCT + col1 AS col2, 95 * 45 FROM tab1 AS cor0
----
14
4275
47
4275
5
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND 29 / + col2
----
-51
-85
-91

query II rowsort
SELECT ALL + col2 AS col1, 61 FROM tab1 AS cor0
----
59
61
68
61
96
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 74 + 65 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * - - col1 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * - - col1 ) <= NULL
----

query I rowsort
SELECT ALL 37 * 4 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 71 IS NULL
----
199
215
225

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT ALL - 70 AS col2, ( - col0 ) FROM tab2 AS cor0
----
-70
-46
-70
-64
-70
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 81 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - col2 ) <= NULL
----

query I rowsort
SELECT 36 - - ( - 5 ) * - 23 AS col1 FROM tab1 WHERE NOT - col1 * + col1 * - 19 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT ALL - col1 * - col1 DIV col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - col1 * - col1 / col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 58 ) col0 FROM tab2
----
-58
-58
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2505
SELECT + 14 DIV COUNT( * ) + + 43 + - SUM( ALL col1 ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 14 / COUNT ( * ) + + 43 + - SUM ( ALL col1 ) FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2506
SELECT ALL + COUNT( * ), 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
0

skipif mysql # not compatible
query II rowsort label-2506
SELECT ALL + COUNT ( * ), 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT DISTINCT col1 DIV - col1 + 93 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT col1 / - col1 + 93 FROM tab2
----
92

query I rowsort
SELECT + col2 / col1 AS col0 FROM tab2 WHERE - 65 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 NOT IN ( col2 / - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88, + 75 + - 36 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to b9f8214a976fb78b9693f06174aa0f67

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - + MAX( + 68 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - + MAX ( + 68 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT - col1 + + + col1 + - - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT - col1 + + + col1 + - - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 71 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 27 + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + ( - + COUNT( * ) ) + + - 20 FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2514
SELECT + ( - + COUNT ( * ) ) + + - 20 FROM tab1 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL - 5 + + + COUNT( * ) + + - 9 + 76 col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2515
SELECT ALL - 5 + + + COUNT ( * ) + + - 9 + 76 col1 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT ALL + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 + - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + MAX( ALL + - col0 ) + COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2517
SELECT + MAX ( ALL + - col0 ) + COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT - col0 + - col2 + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
-18
-27
-66

skipif mysql # not compatible
query I rowsort label-2518
SELECT - col0 + - col2 + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + 43 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 43 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT ALL - + 59 + - CAST( + - 6 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - + 59 + - CAST ( + - 6 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2521
SELECT DISTINCT - 53 DIV + CAST( + ( - ( + + col1 ) ) AS SIGNED ) + CAST( - 34 AS SIGNED ) * col2 - + ( - 18 + col2 ) AS col1 FROM tab1 AS cor0
----
-2037
-2361
-3339

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT - 53 / + CAST ( + ( - ( + + col1 ) ) AS INTEGER ) + CAST ( - 34 AS INTEGER ) * col2 - + ( - 18 + col2 ) AS col1 FROM tab1 AS cor0
----
-2037
-2361
-3339

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - col0 )
----

query I rowsort
SELECT - 17 + + col0 * + + 55 * + 66 FROM tab2 AS cor0
----
166963
232303
272233

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL + 81 + MAX( - col2 ) + - 19 * + COUNT( * ) * 74 AS col0 FROM tab1 AS cor0
----
-4196

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + 81 + MAX ( - col2 ) + - 19 * + COUNT ( * ) * 74 AS col0 FROM tab1 AS cor0
----
-4196

query I rowsort
SELECT + 50 + + 31 AS col0 FROM tab0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2526
SELECT MIN( DISTINCT - - col2 ) + CAST( + COUNT( * ) AS SIGNED ) AS col2, + 1 FROM tab0
----
13
1

skipif mysql # not compatible
query II rowsort label-2526
SELECT MIN ( DISTINCT - - col2 ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, + 1 FROM tab0
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT MAX( + col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2527
SELECT MAX ( + col1 ) col0 FROM tab2
----
77

query I rowsort
SELECT ALL col2 * + 66 - - col2 FROM tab0
----
3149
6633
670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col1 col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT + 49 - col2 FROM tab2
----
-9
26
9

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL MAX( + + 70 ) + + - MIN( ALL - col0 ) AS col0 FROM tab0
----
167

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL MAX ( + + 70 ) + + - MIN ( ALL - col0 ) AS col0 FROM tab0
----
167

query I rowsort
SELECT ALL - - col2 * + 68 AS col1 FROM tab2 AS cor0
----
1564
2720
3944

query I rowsort
SELECT DISTINCT + col0 * + col1 + col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT DISTINCT + col1 DIV + - 39 + + col2 * - + col0 - + 68 FROM tab1 AS cor0
----
-4964
-5083
-6257

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + col1 / + - 39 + + col2 * - + col0 - + 68 FROM tab1 AS cor0
----
-4964
-5083
-6257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT ALL + COUNT( - - col0 ) DIV - 43 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + COUNT ( - - col0 ) / - 43 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 87 * - ( 74 ) AS col0 FROM tab0 AS cor0
----
-6438
-6438
-6438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT - + MIN( - 18 ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2539
SELECT - + MIN ( - 18 ) AS col1 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 45 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2540
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 45 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( ( - + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + + MIN( ALL - 70 ) * - 39 FROM tab2 AS cor0
----
2730

skipif mysql # not compatible
query I rowsort label-2542
SELECT + + MIN ( ALL - 70 ) * - 39 FROM tab2 AS cor0
----
2730

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT DISTINCT 0 DIV 2 * col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT 0 / 2 * col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * - + 95 AS col2 FROM tab2 AS cor0
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + + COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + + COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT DISTINCT - col1 DIV - 52 * + - 41 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2546
SELECT DISTINCT - col1 / - 52 * + - 41 col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( - ( 73 ) ) )
----

query I rowsort
SELECT - + 94 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-94
-94
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2549
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + CAST( NULL AS DECIMAL ) ) > ( - col1 + col2 + 13 )
----

skipif mysql # not compatible
query III rowsort label-2549
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + CAST ( NULL AS REAL ) ) > ( - col1 + col2 + 13 )
----

query I rowsort
SELECT 40 * + + col0 * - - col2 FROM tab2
----
102400
174000
42320

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + - 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT - MAX( 90 ) + - SUM( + col2 ) FROM tab1 AS cor0
----
-313

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - MAX ( 90 ) + - SUM ( + col2 ) FROM tab1 AS cor0
----
-313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT ALL - 67 + - col1 * 42 * + + CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
-109
-18589
-275629

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL - 67 + - col1 * 42 * + + CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
-109
-18589
-275629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT ALL + CAST( - + col0 AS SIGNED ) + + - 40 * 46 AS col1 FROM tab2 cor0
----
-1886
-1904
-1915

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + CAST ( - + col0 AS INTEGER ) + + - 40 * 46 AS col1 FROM tab2 cor0
----
-1886
-1904
-1915

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 3 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + ( COUNT( * ) ) - - COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2556
SELECT ALL + ( COUNT ( * ) ) - - COUNT ( * ) col2 FROM tab0
----
6

query I rowsort
SELECT DISTINCT + 65 - - 15 AS col1 FROM tab2
----
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ( - - MIN( col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2559
SELECT ( - - MIN ( col0 ) ) FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 84 col2 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2561
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) NOT IN ( - CAST( col0 AS SIGNED ), + 83 * - 85, col0 )
----

skipif mysql # not compatible
query III rowsort label-2561
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) NOT IN ( - CAST ( col0 AS INTEGER ), + 83 * - 85, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2562
SELECT DISTINCT 43, + col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col0 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2562
SELECT DISTINCT 43, + col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 / + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT - - CAST( - col1 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2565
SELECT - - CAST ( - col1 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2566
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( 21 AS SIGNED ) * + col0 * 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2566
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( 21 AS INTEGER ) * + col0 * 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 91 col0 FROM tab2 WHERE NOT 50 * - - 54 IS NOT NULL
----

query II rowsort
SELECT col0, 60 * + col2 FROM tab1
----
51
5760
85
3540
91
4080

query I rowsort
SELECT ( + - 5 ) AS col0 FROM tab1
----
-5
-5
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 * 3 + + col0 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL 99 * COUNT( * ) col2 FROM tab1
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2571
SELECT ALL 99 * COUNT ( * ) col2 FROM tab1
----
297

query I rowsort
SELECT 85 FROM tab2 AS cor0 WHERE NOT ( - col2 = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 39 * - col0 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT + col0 * - + 5 AS col1 FROM tab0
----
-435
-485
-75

query I rowsort
SELECT DISTINCT col2 * + - 98 FROM tab1
----
-5782
-6664
-9408

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 45 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab2 WHERE NOT 96 BETWEEN - - 20 + - - 1 AND - + col1 + 88 * - col0 + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0 * col1 * - col0 * - + ( col0 ) + + col2 AS col2, + col1 AS col1 FROM tab1 cor0
----
1857210
14
3070684
5
35417905
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT + 52 * - COUNT( ALL - 54 ) + SUM( DISTINCT - 38 ) * - SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
5772

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + 52 * - COUNT ( ALL - 54 ) + SUM ( DISTINCT - 38 ) * - SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
5772

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 33 - col0 FROM tab2 cor0
----
-50
-56
-57

query I rowsort
SELECT - + col2 FROM tab1 WHERE col1 + col0 > col1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT - + col0 <= NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + col0 + - + 16 + + 70 FROM tab0
----
279
7623
9463

query I rowsort
SELECT - AVG ( + col2 ) AS col0 FROM tab0 WHERE ( NOT - 73 <> NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + 8 col1, col1 + - col2 AS col1 FROM tab1
----
408
-82
680
-54
728
-21

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 * col0 + + ( 98 ) AS col2 FROM tab0
----
33233
8798
950795

query II rowsort
SELECT DISTINCT - 76, col1 FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
-76
14
-76
47
-76
5

query I rowsort
SELECT 56 + + 42 FROM tab0 AS cor0
----
98
98
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT IN ( col0 ) )
----

query I rowsort
SELECT - - ( - 19 ) + - + ( + col1 ) + col1 * + - ( + col2 ) + - 15 + col1 FROM tab2 AS cor0
----
-1207
-3114
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - MIN( + 87 ) FROM tab0 AS cor0 WHERE NOT col0 * + col2 + + + col2 NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - MIN ( + 87 ) FROM tab0 AS cor0 WHERE NOT col0 * + col2 + + + col2 NOT IN ( - col2 )
----
NULL

query I rowsort
SELECT DISTINCT - + 67 AS col0 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT + col1 * + col0 - + ( + 71 ) FROM tab2 AS cor0
----
2275
4857
4954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT + COUNT( * ) DIV + - 6 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT + COUNT ( * ) / + - 6 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 45 * - - col0 FROM tab2 AS cor0
----
2070
2880
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT DISTINCT + MAX( ALL 75 ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + MAX ( ALL 75 ) AS col2 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL < col0
----
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL < col0
----
0

query II rowsort
SELECT ALL col2, + col2 AS col0 FROM tab1 WHERE 54 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2602
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - + 38 * + - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - + 38 * + - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 96 AS col1 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT 46 * 3 * + col1 FROM tab0 AS cor0
----
11178
138
2898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT + 48 + - + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-16
-27
2

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 48 + - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-16
-27
2

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL < 86 / + 60
----

query I rowsort
SELECT ALL - 14 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-14
-14
-14

query I rowsort
SELECT ALL col0 + + + col1 * - - col2 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

query II rowsort
SELECT + col0, - col1 * - col0 AS col1 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + col1 / - + 11 ) NOT IN ( + ( - col0 ) / + col2 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 45 * + col0 AS col2 FROM tab2 AS cor0
----
2070
2880
3375

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT + - col0 * col2 - - - ( 55 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
-1057
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2612
SELECT + - col0 * col2 - - - ( 55 ) / - col1 AS col0 FROM tab2 AS cor0
----
-1057
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 89 col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + 21 * - - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-2614
SELECT + 21 * - - COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT - 88 * - 45 * + col0 FROM tab2
----
182160
253440
297000

query I rowsort
SELECT - + ( + 10 ) + + 34 - - col2 * - + 73 * + - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT ALL 2 DIV + 47 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL 2 / + 47 FROM tab2
----
0
0
0

query I rowsort
SELECT 99 * + + 30 - ( + 11 ) - - 63 AS col2 FROM tab1
----
3022
3022
3022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, ( + COUNT( * ) ) + - 12 * ( - - 62 ) FROM tab2
----
NULL
-741

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, ( + COUNT ( * ) ) + - 12 * ( - - 62 ) FROM tab2
----
NULL
-741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT 71 - - COUNT( * ) DIV - 75 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-2620
SELECT 71 - - COUNT ( * ) / - 75 FROM tab2
----
71

query I rowsort
SELECT ALL + - 50 * col2 * col2 + - col1 FROM tab0 AS cor0
----
-110531
-490051
-5021

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 63 + + col2 NOT BETWEEN col2 AND + - col1 * + col0 - + col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 - - col0 * + - col2 col0 FROM tab0 AS cor0
----
-646
-811
-9544

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( + col0 * - - col0 * + - 24 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE - - 58 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT col2 - ( col1 ) DIV + + 59 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT col2 - ( col1 ) / + + 59 FROM tab1
----
59
68
96

query I rowsort
SELECT + 53 * + + 23 * - col2 * col0 AS col0 FROM tab0
----
-1060530
-11706057
-859395

query I rowsort
SELECT col0 * ( - col2 ) * + 32 - + 64 AS col2 FROM tab2
----
-139264
-33920
-81984

query I rowsort
SELECT - + col0 * + - 4 AS col0 FROM tab0 AS cor0
----
348
388
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 AS cor0 WHERE NOT 99 > + 31 + + 22 + col0
----
23
40
58

query I rowsort
SELECT + 38 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2632
SELECT ALL + ( - + ( 76 ) ) FROM tab0 WHERE - col2 >= - - col1 DIV col0 * + - 68 DIV col2 * + - CAST( + col1 AS SIGNED ) * + - col2 + + col1 + - col2 * + + col2 DIV - col0
----
-76

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + ( - + ( 76 ) ) FROM tab0 WHERE - col2 >= - - col1 / col0 * + - 68 / col2 * + - CAST ( + col1 AS INTEGER ) * + - col2 + + col1 + - col2 * + + col2 / - col0
----
-76

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + + 74 AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT DISTINCT + COUNT( * ), - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-2634
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2
----
3
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 * - - 90 + + + col2 AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + col2 * + col2, - col2 + + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 30, col1, + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN ( - 11 ) AND 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2639
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, + 6 FROM tab2 AS cor0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-2639
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, + 6 FROM tab2 AS cor0
----
NULL
6

query I rowsort
SELECT ALL - - 86 FROM tab0 cor0
----
86
86
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT - - col0 DIV + col1 + + - 33 * - col2 * - + 60 FROM tab2 AS cor0
----
-114839
-45540
-79200

skipif mysql # not compatible
query I rowsort label-2642
SELECT - - col0 / + col1 + + - 33 * - col2 * - + 60 FROM tab2 AS cor0
----
-114839
-45540
-79200

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT - MAX( + - 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - MAX ( + - 19 ) FROM tab0
----
19

query I rowsort
SELECT ALL - 11 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 3 + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND - col2
----

query I rowsort
SELECT - + col0 + 30 - col2 * + + col0 + - + col0 * + + col2 FROM tab0 AS cor0
----
-1395
-1797
-19273

query II rowsort
SELECT ALL - - col2 * + + col0, col0 FROM tab0 AS cor0
----
705
15
870
87
9603
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 15 * + + 64 + + + 85 + + col1 * ( + col2 ) * + + col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + col1 * + col1 * - col2 / col1 * - 99 AS col1 FROM tab1 cor0 WHERE NULL = col0 + + + col1
----

query I rowsort
SELECT 35 + + col2 * - - col0 AS col1 FROM tab1
----
4931
5050
6223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 + + col1 - - - col0 AS col1, + 22 * + col1 col2 FROM tab2
----
45
1474
58
1122
66
1694

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT + 19 * col0 DIV + col2 + + col0 FROM tab0
----
115
21
252

skipif mysql # not compatible
query I rowsort label-2653
SELECT + 19 * col0 / + col2 + + col0 FROM tab0
----
115
21
252

query I rowsort
SELECT DISTINCT - 27 * + col1 FROM tab2
----
-1377
-1809
-2079

query II rowsort
SELECT ALL 72, + col0 FROM tab1
----
72
51
72
85
72
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ALL + 33 DIV - 54 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + 33 / - 54 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96 col2, col2 AS col2 FROM tab0
----
96
10
96
47
96
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, 78 * + 29 col0 FROM tab0 cor0
----
10
2262
47
2262
99
2262

query I rowsort
SELECT - + 98 AS col2 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - 54 - col0 * - + 49 FROM tab1 AS cor0
----
2445
4111
4405

query I rowsort
SELECT + 68 - + col0 AS col0 FROM tab1 AS cor0
----
-17
-23
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - 98 - + MAX( + col1 ) FROM tab2
----
-175

skipif mysql # not compatible
query I rowsort label-2662
SELECT - 98 - + MAX ( + col1 ) FROM tab2
----
-175

query I rowsort
SELECT + col0 + + 77 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 11 + - 39 * + col1 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT DISTINCT - CAST( + 5 AS SIGNED ) col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2665
SELECT DISTINCT - CAST ( + 5 AS INTEGER ) col0 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT ( + ( - 33 ) ) * + col1 FROM tab1 AS cor0
----
-1551
-165
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT - 34 * - MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-2667
SELECT - 34 * - MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-170

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - - col1 * 57 AS col2 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT DISTINCT - 87 DIV - 69 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - 87 / - 69 AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 62 AND NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2673
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + CAST( NULL AS SIGNED ) BETWEEN 99 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2673
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + CAST ( NULL AS INTEGER ) BETWEEN 99 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 96 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2675
SELECT * FROM tab1 WHERE NOT 41 >= - CAST( - + col1 AS SIGNED ) AND NOT NULL = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2675
SELECT * FROM tab1 WHERE NOT 41 >= - CAST ( - + col1 AS INTEGER ) AND NOT NULL = CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT ALL MIN( ALL - CAST( + col2 AS SIGNED ) ) * - 93 * + MAX( col1 ) FROM tab1
----
419616

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL MIN ( ALL - CAST ( + col2 AS INTEGER ) ) * - 93 * + MAX ( col1 ) FROM tab1
----
419616

query I rowsort
SELECT DISTINCT + ( - 0 ) FROM tab0
----
0

query I rowsort
SELECT ALL - col0 + - - col0 * - + 42 * + col2 FROM tab1 AS cor0
----
-205683
-210715
-259987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT DISTINCT - - MIN( DISTINCT + - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - - MIN ( DISTINCT + - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2680
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 10 / + col0 + - + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 10 / + col0 + - + col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + - 91 + - + COUNT( * ) AS col2 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + - 91 + - + COUNT ( * ) AS col2 FROM tab2 cor0
----
-94

query I rowsort
SELECT - ( 73 ) FROM tab1 cor0
----
-73
-73
-73

query I rowsort
SELECT ALL - 24 + + - col2 FROM tab2 AS cor0
----
-47
-64
-82

query I rowsort
SELECT DISTINCT 61 + - col0 FROM tab1
----
-24
-30
10

query I rowsort
SELECT + 29 AS col0 FROM tab1 WHERE + 54 IS NOT NULL
----
29
29
29

query II rowsort
SELECT DISTINCT - col0 + + col1 - + 50 * col1 * col1 - col2 + col1, + col1 AS col1 FROM tab0
----
-22105
21
-244
1
-327950
81

query I rowsort
SELECT ALL + 91 FROM tab1, tab0 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + 33 * 34 - 86 FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to d22e53e7f48d2ce78d4af15cdae19842

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 <> - - col1 * - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + 78 AS col0 FROM tab0 cor0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL MAX( + - col2 ) * + 16 FROM tab2
----
-368

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL MAX ( + - col2 ) * + 16 FROM tab2
----
-368

query I rowsort
SELECT - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2693
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > CAST( - - 14 AS DECIMAL ) * + ( + 67 ) + col1 - + - 65 * - col1 * + + 58
----

skipif mysql # not compatible
query III rowsort label-2693
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > CAST ( - - 14 AS REAL ) * + ( + 67 ) + col1 - + - 65 * - col1 * + + 58
----

query I rowsort
SELECT ALL + - col1 * col1 * - col2 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT + 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-2695
SELECT + COUNT ( + + col2 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 1 * + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT col2 AS col2, - ( ( col1 ) ) FROM tab1
----
59
-5
68
-47
96
-14

query II rowsort
SELECT ALL + col2 AS col2, - col0 * 86 AS col0 FROM tab0
----
10
-7482
47
-1290
99
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT MAX( + + ( + - col1 ) ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2699
SELECT MAX ( + + ( + - col1 ) ) AS col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2700
SELECT + 37 AS col0, CAST( NULL AS SIGNED ) + + ( - col2 ) + - - col1 FROM tab1
----
37
NULL
37
NULL
37
NULL

skipif mysql # not compatible
query II rowsort label-2700
SELECT + 37 AS col0, CAST ( NULL AS INTEGER ) + + ( - col2 ) + - - col1 FROM tab1
----
37
NULL
37
NULL
37
NULL

query I rowsort
SELECT + col1 * 67 AS col0 FROM tab1
----
3149
335
938

onlyif mysql # DIV for integer division: 
query II rowsort label-2702
SELECT - col2 DIV - col2, - 51 * + col0 AS col0 FROM tab0
----
1
-4437
1
-4947
1
-765

skipif mysql # not compatible
query II rowsort label-2702
SELECT - col2 / - col2, - 51 * + col0 AS col0 FROM tab0
----
1
-4437
1
-4947
1
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT + 47 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 47 / - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col0 - 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - col1 / ( - - col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - col1 / ( - - col2 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - - col2 * - col0 AS col1 FROM tab0
----
-690
-783
-9506

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / - - 78 = col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + - col2 * + - col1 AS col2 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - + COUNT( * ) * 7 AS col1 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2709
SELECT - + COUNT ( * ) * 7 AS col1 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT - 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT - 9 DIV + 96 FROM tab0 AS cor0 WHERE col1 NOT IN ( - - col2, 77 + col2 - col2, - - 56 + 80, - - col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 9 / + 96 FROM tab0 AS cor0 WHERE col1 NOT IN ( - - col2, 77 + col2 - col2, - - 56 + 80, - - col2 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL + - ( - 53 ) + - + COUNT( * ) + + MIN( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + - ( - 53 ) + - + COUNT ( * ) + + MIN ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 FROM tab1 cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + MIN( - col0 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2714
SELECT + MIN ( - col0 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ( - - 26 ) * 89 + + + COUNT( * ) FROM tab1 AS cor0
----
2317

skipif mysql # not compatible
query I rowsort label-2715
SELECT ( - - 26 ) * 89 + + + COUNT ( * ) FROM tab1 AS cor0
----
2317

query I rowsort
SELECT ALL - + col0 + - col1 + - - col0 + + + 43 AS col1 FROM tab0 AS cor0
----
-38
22
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT ( + - COUNT( DISTINCT + col2 ) ) + + 87 * 71 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT ( + - COUNT ( DISTINCT + col2 ) ) + + 87 * 71 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + 71 + - 74 FROM tab0
----
6103
6813
991

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL + 64 - 83 * ( + COUNT( DISTINCT - col1 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + 64 - 83 * ( + COUNT ( DISTINCT - col1 ) ) FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * - col0 - - col2 + col0 - - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2721
SELECT MAX( - - col0 ) col1, + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
----
97
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2721
SELECT MAX ( - - col0 ) col1, + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE + 63 NOT BETWEEN - col1 * - 73 AND + - col0
----
97
9

query I rowsort
SELECT ALL col2 * - 57 AS col1 FROM tab1 cor0
----
-3363
-3876
-5472

query I rowsort
SELECT DISTINCT + col2 * - 2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT col2 DIV - - col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2724
SELECT col2 / - - col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 55 + + - col1 + col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 41 ) * + col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query I rowsort
SELECT 24 * 18 AS col1 FROM tab1 cor0
----
432
432
432

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 69 * + col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT - 49 * - COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT - 49 * - COUNT ( * ) FROM tab2
----
147

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col2 + + ( - col0 ) IN ( + - col1, + col1 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col1 BETWEEN + 82 AND + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 59 * + col1 FROM tab2 WHERE - col2 <= + 60
----
3009
3953
4543

query I rowsort
SELECT 30 AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
30
30
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2735
SELECT ALL MAX( DISTINCT - col2 ) DIV - COUNT( * ) AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL MAX ( DISTINCT - col2 ) / - COUNT ( * ) AS col1 FROM tab1
----
19

query I rowsort
SELECT ALL - col2 + + col1 * - col2 FROM tab0 cor0
----
-198
-220
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + 63 + + - COUNT( * ) col1 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2737
SELECT + 63 + + - COUNT ( * ) col1 FROM tab1
----
60

query I rowsort
SELECT ALL + 26 * col0 AS col2 FROM tab0
----
2262
2522
390

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL SUM( + - 19 ) * - 89 col0 FROM tab2
----
5073

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2739
SELECT ALL SUM ( + - 19 ) * - 89 col0 FROM tab2
----
5073

query I rowsort
SELECT DISTINCT - + col0 + + 27 AS col1 FROM tab1 AS cor0
----
-24
-58
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT 69 DIV - - 60 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2741
SELECT 69 / - - 60 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT + + 26 DIV 21 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT + + 26 / 21 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL 70 + + - col1 FROM tab2 AS cor0
----
-7
19
3

query I rowsort
SELECT DISTINCT - col0 + 0 * + col1 + col1 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 64 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2746
SELECT + + CAST( NULL AS SIGNED ) + - col0 AS col2, col0 - col1 + + CAST( - col0 AS SIGNED ) FROM tab1 cor0 WHERE ( NULL ) = NULL
----

skipif mysql # not compatible
query II rowsort label-2746
SELECT + + CAST ( NULL AS INTEGER ) + - col0 AS col2, col0 - col1 + + CAST ( - col0 AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL + + 48 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE - ( + col0 ) BETWEEN ( + col1 ) AND - 74 * 62 * - + col2 * 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT - MAX( + 49 ) + COUNT( * ) AS col1 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT - MAX ( + 49 ) + COUNT ( * ) AS col1 FROM tab0
----
-46

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2751
SELECT ALL 81 - + 27 + + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL 81 - + 27 + + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2752
SELECT 4 - + - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2752
SELECT 4 - + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - 68 + - + COUNT( * ) AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 68 + - + COUNT ( * ) AS col0 FROM tab1
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2754
SELECT DISTINCT + ( COUNT( * ) ), - 83 * COUNT( * ) AS col0 FROM tab0
----
3
-249

skipif mysql # not compatible
query II rowsort label-2754
SELECT DISTINCT + ( COUNT ( * ) ), - 83 * COUNT ( * ) AS col0 FROM tab0
----
3
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT + col2 DIV + - col2 + - 5 * - - 61 FROM tab2 AS cor0
----
-306
-306
-306

skipif mysql # not compatible
query I rowsort label-2755
SELECT + col2 / + - col2 + - 5 * - - 61 FROM tab2 AS cor0
----
-306
-306
-306

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab2 cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT - 69 DIV + + ( + col2 ) FROM tab2 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-2757
SELECT - 69 / + + ( + col2 ) FROM tab2 AS cor0
----
-1
-1
-3

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - - COUNT( * ) - + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

skipif mysql # not compatible
query I rowsort label-2759
SELECT - - COUNT ( * ) - + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

query II rowsort
SELECT col1, + col0 * col2 + col2 AS col0 FROM tab2
----
51
1081
67
4408
77
2600

query I rowsort
SELECT ALL - 15 * col1 FROM tab1 cor0
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + col0
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT DISTINCT - - COUNT( * ) + 22 * + ( + + 21 ) FROM tab1 AS cor0
----
465

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT - - COUNT ( * ) + 22 * + ( + + 21 ) FROM tab1 AS cor0
----
465

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT - col0 DIV - - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2765
SELECT - col0 / - - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 95 * - col2 AS col2 FROM tab0
----
-4465
-9405
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT - col2 + - - col2 * 13 DIV col2 * + col1 + col1 FROM tab2
----
1038
691
880

skipif mysql # not compatible
query I rowsort label-2767
SELECT - col2 + - - col2 * 13 / col2 * + col1 + col1 FROM tab2
----
1038
691
880

query I rowsort
SELECT col1 * - col1 * 95 + - 72 FROM tab0
----
-167
-41967
-623367

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 78 > NULL
----

query I rowsort
SELECT col2 + - 79 FROM tab1
----
-11
-20
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT ALL - col0 * + - col2 DIV + col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - col0 * + - col2 / + col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT DISTINCT + MAX( 50 ) * - 15 AS col0 FROM tab1
----
-750

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + MAX ( 50 ) * - 15 AS col0 FROM tab1
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL 74 * + - MAX( DISTINCT + col2 ) FROM tab0
----
-7326

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL 74 * + - MAX ( DISTINCT + col2 ) FROM tab0
----
-7326

query I rowsort
SELECT ALL - col0 + + + col1 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - - 91 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 * + 86 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 * + 86 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + - 61 ) FROM tab2 cor0
----
-61

query I rowsort
SELECT DISTINCT - 11 + - - 16 FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT + 8 DIV + - col1 + - 76 AS col2 FROM tab0 AS cor0
----
-76
-76
-84

skipif mysql # not compatible
query I rowsort label-2780
SELECT + 8 / + - col1 + - 76 AS col2 FROM tab0 AS cor0
----
-76
-76
-84

query I rowsort
SELECT ALL - - col1 + 64 AS col2 FROM tab0 AS cor0
----
145
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - MAX( ALL 80 ) FROM tab1 cor0 WHERE NULL BETWEEN col2 * + col1 + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT - MAX ( ALL 80 ) FROM tab1 cor0 WHERE NULL BETWEEN col2 * + col1 + - col0 AND NULL
----
NULL

query I rowsort
SELECT ALL + - col0 + - 1 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT DISTINCT - 48 DIV + 36 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT - 48 / + 36 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL - MIN( ALL + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - MIN ( ALL + col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - - COUNT( * ) * - - COUNT( - 1 ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2786
SELECT - - COUNT ( * ) * - - COUNT ( - 1 ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col2 * 24 * col0 FROM tab2
----
-104400
-25392
-61440

query I rowsort
SELECT 2 * + - col2 + + col0 + - col0 FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = col0
----

query I rowsort
SELECT + + col2 + + + ( + 3 ) + - col0 - - col0 FROM tab1 AS cor0
----
62
71
99

query I rowsort
SELECT DISTINCT + col2 - col1 FROM tab1 AS cor0 WHERE + col0 / + - 11 IS NOT NULL
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT + COUNT( * ) + 43 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + COUNT ( * ) + 43 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2794
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2794
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - + ( COUNT( - - 1 ) ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT - + ( COUNT ( - - 1 ) ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT ALL + col2 DIV - - col2 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + col2 / - - col2 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL - + SUM( ALL - + col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - + SUM ( ALL - + col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

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-2799
SELECT + + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2799
SELECT + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + ( + 95 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT COUNT( * ) * - 9 * + - 33 FROM tab2 cor0
----
891

skipif mysql # not compatible
query I rowsort label-2801
SELECT COUNT ( * ) * - 9 * + - 33 FROM tab2 cor0
----
891

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT - col2 DIV 22 DIV + ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT - col2 / 22 / + ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT - + MAX( ALL ( - 37 ) ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT - + MAX ( ALL ( - 37 ) ) FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2804
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + + CAST( + 93 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2804
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + + CAST ( + 93 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL + + COUNT( - - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + + COUNT ( - - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT DISTINCT + + col1 * 74 * - 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-2806
SELECT DISTINCT + + col1 * 74 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 IN ( + + col2, - 46 )
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE 62 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 - + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + ( + col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - - 21 FROM tab0
----
1827
2037
315

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE NOT col0 * + 9 * 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT MIN( + 76 ) * - - MAX( DISTINCT col1 ) FROM tab2
----
5852

skipif mysql # not compatible
query I rowsort label-2814
SELECT MIN ( + 76 ) * - - MAX ( DISTINCT col1 ) FROM tab2
----
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT DISTINCT COUNT( ALL - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT COUNT ( ALL - col0 ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT ALL + 29 DIV - 52 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + 29 / - 52 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) < - 88 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 * - col1 + + 6 - col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-2818
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 * - col1 + + 6 - col1 IS NOT NULL )
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - - 3 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2821
SELECT - CAST( NULL AS SIGNED ) col1, col0 + - col0 FROM tab0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2821
SELECT - CAST ( NULL AS INTEGER ) col1, col0 + - col0 FROM tab0
----
NULL
0
NULL
0
NULL
0

query II rowsort
SELECT DISTINCT + 9 AS col1, col1 AS col1 FROM tab2
----
9
51
9
67
9
77

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - 1 <> - col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL + col2 * col1 / + + col0 + + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + col2 * col1 / + + col0 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 30 > + + col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - + 96 + - + col0 AS col1 FROM tab1 AS cor0
----
-147
-181
-187

query II rowsort
SELECT col1 AS col2, col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT + SUM( - + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT + SUM ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT - col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - SUM( ALL 18 ) + + MAX( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2831
SELECT - SUM ( ALL 18 ) + + MAX ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ( - - col1 ) + + 33 + - - 20 FROM tab0
----
134
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COUNT( * ) FROM tab2 WHERE ( NULL <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2833
SELECT COUNT ( * ) FROM tab2 WHERE ( NULL <= NULL )
----
0

query I rowsort
SELECT ALL col2 + + col0 + col0 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ( - 74 ) * ( 74 ) FROM tab0 AS cor0
----
-5476
-5476
-5476

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) * ( 59 ) + - col2 FROM tab0 cor0
----
-1249
-158
-4826

query I rowsort
SELECT - + col2 - - 61 AS col0 FROM tab0 AS cor0
----
-38
14
51

query II rowsort
SELECT DISTINCT - + 13, col2 AS col2 FROM tab2 AS cor0
----
-13
23
-13
40
-13
58

query II rowsort
SELECT ALL col0 AS col1, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + col1 * + - 48 AS col1 FROM tab0 AS cor0
----
-1008
-3888
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL - - MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - - MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - 86 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col1, - col1 AS col0 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT + + col2, 4 FROM tab0 AS cor0
----
10
4
47
4
99
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT + + 94 DIV - + col2 + + ( + col2 ) * - 79 FROM tab0 AS cor0
----
-3715
-7821
-799

skipif mysql # not compatible
query I rowsort label-2845
SELECT + + 94 / - + col2 + + ( + col2 ) * - 79 FROM tab0 AS cor0
----
-3715
-7821
-799

query I rowsort
SELECT col1 * - 73 AS col0 FROM tab2
----
-3723
-4891
-5621

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2847
SELECT * FROM tab2 WHERE NOT + - col1 > col2 + CAST( - - 55 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2847
SELECT * FROM tab2 WHERE NOT + - col1 > col2 + CAST ( - - 55 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + COUNT( DISTINCT - - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2849
SELECT + COUNT ( DISTINCT - - col1 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col2 FROM tab0 cor0
----
95
95
95

query I rowsort
SELECT ALL - 88 * 53 + + 91 AS col2 FROM tab1 AS cor0
----
-4573
-4573
-4573

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 29 * + 18 <= NULL
----

query I rowsort
SELECT + 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT - col1 + col2 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT - col1 + col2 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 67 ) + + - col1 AS col0 FROM tab0 AS cor0
----
-14
46
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 29 + + + col1 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL + col2 * - 5 + + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + col2 * - 5 + + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 79 + col1 FROM tab2 AS cor0
----
130
146
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT CAST( - ( + ( col1 ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2859
SELECT CAST ( - ( + ( col1 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + 70 * - ( col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-3666
-6009
-6438

query I rowsort
SELECT DISTINCT - - 31 + + - col0 AS col1 FROM tab1 AS cor0
----
-20
-54
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2862
SELECT + - CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2862
SELECT + - CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2863
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 BETWEEN + col1 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2863
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 BETWEEN + col1 AND + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 70 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
121
155
161

query III rowsort
SELECT * FROM tab2 WHERE + - col1 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 19 FROM tab0 WHERE - + col2 BETWEEN col2 AND + 35 + 23 * + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2867
SELECT col2 / + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT col2 / + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * COUNT( * ) col0 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2868
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * COUNT ( * ) col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT + 10 - + MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-2869
SELECT + 10 - + MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
-49

query I rowsort
SELECT col0 - col1 - - - 0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2871
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT col1 IS NOT NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT DISTINCT + MIN( DISTINCT - 63 ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT + MIN ( DISTINCT - 63 ) AS col2 FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT - 78 * - col2 - ( - col2 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT - 78 * - col2 - ( - col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2874
SELECT ALL + 54 AS col0, + COUNT( * ) * 57 FROM tab2
----
54
171

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL + 54 AS col0, + COUNT ( * ) * 57 FROM tab2
----
54
171

query III rowsort
SELECT * FROM tab2 WHERE - ( 11 ) NOT BETWEEN NULL AND + - 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 88 + + + col2 AS col1 FROM tab0 AS cor0
----
-41
-78
11

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-2880
SELECT COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

query I rowsort
SELECT - 6 * + ( + ( - + 96 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 947b06b35fc8a3e412ba76444a850730

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL - COUNT( ALL + col2 ) * + COUNT( + col0 ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2882
SELECT ALL - COUNT ( ALL + col2 ) * + COUNT ( + col0 ) col1 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-2883
SELECT + 72 * col0 DIV + 7, col0 AS col2 FROM tab1 AS cor0
----
524
51
874
85
936
91

skipif mysql # not compatible
query II rowsort label-2883
SELECT + 72 * col0 / + 7, col0 AS col2 FROM tab1 AS cor0
----
524
51
874
85
936
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 WHERE - col2 * 6 + + 80 BETWEEN + + col1 AND + - 77
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2885
SELECT ALL ( + col1 ) * - + CAST( NULL AS DECIMAL ) * - - col2 + - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL ( + col1 ) * - + CAST ( NULL AS REAL ) * - - col2 + - - col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + 10 AS col2, 70 AS col2 FROM tab2
----
10
70
10
70
10
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 + col2 AS col2 FROM tab2 AS cor0
----
45
62
80

query I rowsort
SELECT ALL + ( - + 32 ) AS col1 FROM tab1 AS cor0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 * col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT COUNT( * ) * + 42 AS col1 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-2891
SELECT COUNT ( * ) * + 42 AS col1 FROM tab1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT + COUNT( * ) + - 37 AS col0 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2892
SELECT + COUNT ( * ) + - 37 AS col0 FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + COUNT( DISTINCT col0 ) FROM tab1 WHERE ( NULL ) >= 44
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT + COUNT ( DISTINCT col0 ) FROM tab1 WHERE ( NULL ) >= 44
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col0 + + 48 AND ( NULL )
----

query I rowsort
SELECT ALL 60 * col2 AS col0 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT ALL col0 + 82 FROM tab0
----
169
179
97

query I rowsort
SELECT - 15 * col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-345
-600
-870

query I rowsort
SELECT - col2 * - col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 94 ) NOT IN ( + col2 * col2 + 55 * + col1 )
----

query I rowsort
SELECT 64 - + 54 FROM tab2
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT DISTINCT + COUNT( * ) * + 68 AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + COUNT ( * ) * + 68 AS col2 FROM tab0
----
204

query I rowsort
SELECT ALL + col0 + + 74 AS col1 FROM tab1 WHERE NOT col1 BETWEEN - 14 * col0 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT 59 * + 69 + - 52 DIV - col0 AS col2 FROM tab2
----
4071
4071
4072

skipif mysql # not compatible
query I rowsort label-2905
SELECT 59 * + 69 + - 52 / - col0 AS col2 FROM tab2
----
4071
4071
4072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + 18 col2 FROM tab1 AS cor0
----
-4878
-4997
-6170

query I rowsort
SELECT + col1 * 57 AS col1 FROM tab0 AS cor0
----
1197
4617
57

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 * + ( 96 ) + + 53 NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2910
SELECT ALL CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col0 FROM tab0 AS cor0
----
29

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2913
SELECT - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2914
SELECT + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 34 * - col1 FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT + + col1 * 35 AS col1 FROM tab1 cor0
----
1645
175
490

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT - 49 DIV col2 FROM tab0 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 49 / col2 FROM tab0 cor0
----
-1
-4
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * - 73 ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT - - CAST( 61 AS SIGNED ) * - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2867
-305
-854

skipif mysql # not compatible
query I rowsort label-2919
SELECT - - CAST ( 61 AS INTEGER ) * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2867
-305
-854

query I rowsort
SELECT + col1 * - col0 * + col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ( + 94 ) FROM tab2 WHERE NOT col1 + + 1 BETWEEN NULL AND + 57
----
94
94

query I rowsort
SELECT ALL ( - col2 ) * + col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE NOT 90 = 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 80 * + - ( col1 ) FROM tab1
----
-1120
-3760
-400

query I rowsort
SELECT ALL + 23 * + 58 FROM tab0
----
1334
1334
1334

query I rowsort
SELECT DISTINCT - col0 + + 89 + - 20 * col1 AS col1 FROM tab2
----
-1326
-1515
-977

query III rowsort
SELECT * FROM tab2 WHERE NOT + 52 * ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) + AVG ( ALL - col2 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2928
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) + AVG ( ALL - col2 ) col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 74 / col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( - - 1 ) AS col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 93 + + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
2694
4582
6022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * - col0 col2 FROM tab0
----
-4350
-4850
-750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2934
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) * + 47 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2934
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) * + 47 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT ALL - col0 DIV + col1 col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT ALL - col0 / + col1 col2 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT ALL - - 80 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + COUNT( ALL + 94 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + COUNT ( ALL + 94 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 43 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
43
43
43

query II rowsort
SELECT col1, 47 FROM tab0 AS cor0
----
1
47
21
47
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - SUM( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2940
SELECT - SUM ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT DISTINCT + 46 * - 53 + col0 DIV + col2 FROM tab1 AS cor0
----
-2437
-2438

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + 46 * - 53 + col0 / + col2 FROM tab1 AS cor0
----
-2437
-2438

query I rowsort
SELECT DISTINCT - 0 - - 81 FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT - MAX( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - col2 col0, col0 AS col1 FROM tab2
----
-104
64
-133
75
-69
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - - + 68 AS col0, col1 col2 FROM tab1
----
115
47
73
5
82
14

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 * + + col1 - - col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL - COUNT( + - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - COUNT ( + - col1 ) AS col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 80 + 18 col2 FROM tab1
----
-1102
-3742
-382

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT - COUNT( * ) * + + ( - - 73 ) - + 2 * 0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT - COUNT ( * ) * + + ( - - 73 ) - + 2 * 0 FROM tab1
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT - CAST( NULL AS SIGNED ) * col2 + - - ( + col2 ) + col1 * 39 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT - CAST ( NULL AS INTEGER ) * col2 + - - ( + col2 ) + col1 * 39 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + COUNT( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( ( + col2 ) >= col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT + COUNT ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( ( + col2 ) >= col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT DISTINCT CAST( NULL AS SIGNED ) * 68 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2954
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 68 col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + + col2 IN ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 50
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 64 * - 48 + - + col2 < ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2958
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - + col1 / - 5 + CAST( col2 AS SIGNED ) * col2 ) NOT BETWEEN NULL AND col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2958
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - + col1 / - 5 + CAST ( col2 AS INTEGER ) * col2 ) NOT BETWEEN NULL AND col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( col1 ) ) BETWEEN ( NULL ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT ALL + col0 DIV - + 48 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + col0 / - + 48 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - SUM( DISTINCT + 22 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-2961
SELECT - SUM ( DISTINCT + 22 ) FROM tab2
----
-22

query I rowsort
SELECT DISTINCT - - 23 AS col0 FROM tab2 cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( col2 ) ) / + 14 + col0 NOT BETWEEN + col2 AND col1
----

query I rowsort
SELECT - 32 + 85 * col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > 91 / - 59 * - 26
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - col0 + + col0 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2967
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = CAST( - - col1 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = CAST ( - - col1 AS REAL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT - - MAX( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2968
SELECT DISTINCT - - MAX ( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + 18 * - + col2 AS col2 FROM tab1 AS cor0
----
-1062
-1224
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT - 43 DIV + MAX( ALL col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT - 43 / + MAX ( ALL col2 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT - ( - + 47 ) * - CAST( + 52 AS SIGNED ) FROM tab2
----
-2444
-2444
-2444

skipif mysql # not compatible
query I rowsort label-2973
SELECT - ( - + 47 ) * - CAST ( + 52 AS INTEGER ) FROM tab2
----
-2444
-2444
-2444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 57 col1 FROM tab0
----
2679
5643
570

query II rowsort
SELECT DISTINCT + 45, 1 + col0 * + col0 * 94 AS col1 FROM tab2
----
45
198905
45
385025
45
528751

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - 3 NOT IN ( + col0 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + + col1 * ( 64 ) * - 10 / - col2 + - 94 * col1 IS NULL
----

query I rowsort
SELECT ALL 33 / col2 + - 34 * 98 FROM tab0 WHERE - ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 57 * + col2 AS col0 FROM tab0 AS cor0
----
2679
5643
570

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + MAX( - + ( - 5 ) ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2980
SELECT + MAX ( - + ( - 5 ) ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT - 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT 81 IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 + col1 col2, 89 FROM tab0 AS cor0
----
-14
89
6
89
66
89

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 16
----

query I rowsort
SELECT ALL - col1 - - col2 AS col0 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> - col2
----

query I rowsort
SELECT ALL - col2 + 28 AS col2 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT COUNT( ALL + + 95 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2988
SELECT COUNT ( ALL + + 95 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 * - + 62 * - 27 + ( - col0 ) AS col1 FROM tab1
----
142205
152243
85323

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT ALL 13, - COUNT( * ) AS col2 FROM tab0
----
13
-3

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL 13, - COUNT ( * ) AS col2 FROM tab0
----
13
-3

query II rowsort
SELECT 9 * + + col1 * + col1 AS col2, col0 FROM tab2 AS cor0
----
23409
46
40401
75
53361
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - - col2 * - + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT COUNT( * ), - 6 AS col2 FROM tab1 AS cor0
----
3
-6

skipif mysql # not compatible
query II rowsort label-2993
SELECT COUNT ( * ), - 6 AS col2 FROM tab1 AS cor0
----
3
-6

query I rowsort
SELECT DISTINCT + - 10 * - col2 AS col2 FROM tab0 AS cor0
----
100
470
990

query I rowsort
SELECT ALL + - 93 / 20 + + - col1 * - 14 FROM tab2 cor0 WHERE NOT ( - 6 ) + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT + MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2996
SELECT + MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 FROM tab0 AS cor0
----
1000
103823
970299

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3000
SELECT ALL col2 * col0 DIV + col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL col2 * col0 / + col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 > - - col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT - MAX( ALL - 98 ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3002
SELECT - MAX ( ALL - 98 ) FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT - COUNT( * ) * 99 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT - COUNT ( * ) * 99 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT 75 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 + + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT 19 * SUM( + col2 ) * 37 FROM tab1 AS cor0
----
156769

skipif mysql # not compatible
query I rowsort label-3005
SELECT 19 * SUM ( + col2 ) * 37 FROM tab1 AS cor0
----
156769

query I rowsort
SELECT - + 76 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + 50 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - col2 + - - ( col1 ) * - 54 IS NOT NULL
----

query I rowsort
SELECT col1 * + col0 * - col0 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab2 WHERE 87 <= 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 53 AS col2, 2 FROM tab0
----
53
2
53
2
53
2

query I rowsort
SELECT ALL + 48 + - col0 FROM tab1 AS cor0
----
-3
-37
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT 41 + - COUNT( * ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3013
SELECT 41 + - COUNT ( * ) FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL - 40 + + col1 FROM tab2 AS cor0
----
11
27
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 + ( - 95 ) + - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 73 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3017
SELECT DISTINCT + - col1 AS col0, - CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NULL IS NOT NULL OR ( 60 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3017
SELECT DISTINCT + - col1 AS col0, - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NULL IS NOT NULL OR ( 60 ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT col2 AS col1, - 24 FROM tab2
----
23
-24
40
-24
58
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL + MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL + MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - col0 + + - 26 FROM tab1 AS cor0
----
-111
-117
-77

query II rowsort
SELECT 76 AS col2, 4 AS col2 FROM tab0 AS cor0
----
76
4
76
4
76
4

onlyif mysql # DIV for integer division: 
query II rowsort label-3022
SELECT col2, col1 DIV + col0 FROM tab2 AS cor0
----
23
1
40
1
58
0

skipif mysql # not compatible
query II rowsort label-3022
SELECT col2, col1 / + col0 FROM tab2 AS cor0
----
23
1
40
1
58
0

query I rowsort
SELECT - col0 - - + ( + + ( col0 ) ) * 33 AS col1 FROM tab0 AS cor0
----
2784
3104
480

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - COUNT( ALL + + col0 ) * + + SUM( + col1 ) - - + COUNT( * ) FROM tab0 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-3024
SELECT - COUNT ( ALL + + col0 ) * + + SUM ( + col1 ) - - + COUNT ( * ) FROM tab0 AS cor0
----
-306

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 / + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL MIN( ALL col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL MIN ( ALL col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL 90 * - - COUNT( * ) * - 68 FROM tab1
----
-18360

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL 90 * - - COUNT ( * ) * - 68 FROM tab1
----
-18360

query II rowsort
SELECT ALL + 18 * - col1, + col1 FROM tab1
----
-252
14
-846
47
-90
5

query I rowsort
SELECT ALL + 12 * + 89 FROM tab0
----
1068
1068
1068

query I rowsort
SELECT DISTINCT + col1 * + + col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3031
SELECT col0 / - + col1 / col2 / + CAST( - 89 AS SIGNED ) * + col0 + + - col0 AS col2, - 53 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3031
SELECT col0 / - + col1 / col2 / + CAST ( - 89 AS INTEGER ) * + col0 + + - col0 AS col2, - 53 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT MIN( col1 ) DIV + + COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3033
SELECT MIN ( col1 ) / + + COUNT ( * ) FROM tab2
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3034
SELECT ALL CAST( NULL AS DECIMAL ) + + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL CAST ( NULL AS REAL ) + + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 * + 83 FROM tab2
----
4233
5561
6391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 52 FROM tab0 AS cor0
----
-1
52
-21
52
-81
52

query I rowsort
SELECT + 17 * - 28 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 15 IS NULL
----
-379
-389
-461

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL SUM( col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL SUM ( col2 ) FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT COUNT( + - 78 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3039
SELECT COUNT ( + - 78 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 26 + - col0 IN ( - + col0 * 43, col2 + ( - col0 ), + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3041
SELECT ALL col1, ( ( - CAST( + col1 AS SIGNED ) ) ) + - 69 + + col1 + + col0 FROM tab0 AS cor0
----
1
28
21
18
81
-54

skipif mysql # not compatible
query II rowsort label-3041
SELECT ALL col1, ( ( - CAST ( + col1 AS INTEGER ) ) ) + - 69 + + col1 + + col0 FROM tab0 AS cor0
----
1
28
21
18
81
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT 97 * col0 DIV - col1 + col0 DIV - + 92 AS col0 FROM tab1
----
-1649
-187
-353

skipif mysql # not compatible
query I rowsort label-3042
SELECT 97 * col0 / - col1 + col0 / - + 92 AS col0 FROM tab1
----
-1649
-187
-353

query I rowsort
SELECT - 54 FROM tab1 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 57 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + 89 - 76 - - - col1 * + col0 + - 33 * + ( - - col1 ) * 58 + - col0 AS col1 FROM tab2
----
-133325
-152357
-99993

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT - + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
81

skipif mysql # not compatible
query I rowsort label-3047
SELECT - + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3048
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 56 ) col0 FROM tab0
----
56

query I rowsort
SELECT ALL col2 + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3051
SELECT col2 DIV - - 69 * + col2 AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3051
SELECT col2 / - - 69 * + col2 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + 81 ) + + 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL - SUM( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - SUM ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, 75 FROM tab2 AS cor0
----
23
75
40
75
58
75

query II rowsort
SELECT col2 AS col2, - 79 * + col0 AS col1 FROM tab2
----
23
-3634
40
-5056
58
-5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + 88 ) AS col0, - col2 col0 FROM tab1
----
88
-59
88
-68
88
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 95 / col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 52 * - 43 * + + 87 AS col1 FROM tab2
----
-194532

query I rowsort
SELECT ALL col1 * + col1 * - - col0 AS col0 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 89 = NULL
----

query I rowsort
SELECT + col1 * + + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + ( - col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT DISTINCT + + MIN( + + col0 ) * COUNT( * ) col0 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3064
SELECT DISTINCT + + MIN ( + + col0 ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
45

query I rowsort
SELECT DISTINCT ( + 13 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT col0 + ( + 13 ) FROM tab0
----
100
110
28

query I rowsort
SELECT + - col1 + + - col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT 61 + - col2 FROM tab1 AS cor0
----
-35
-7
2

query I rowsort
SELECT - + col0 * - - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + col2 * 23 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT 31 + COUNT( ALL - - ( + col0 ) ) * + + COUNT( * ) * + + 84 + - - 70 * 83 FROM tab1 AS cor0
----
6597

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT 31 + COUNT ( ALL - - ( + col0 ) ) * + + COUNT ( * ) * + + 84 + - - 70 * 83 FROM tab1 AS cor0
----
6597

query I rowsort
SELECT ALL - - 62 + + 46 * - col2 + + col1 + - col1 FROM tab1 AS cor0
----
-2652
-3066
-4354

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT - + SUM( - + 49 ) AS col0 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3073
SELECT - + SUM ( - + 49 ) AS col0 FROM tab0 AS cor0
----
147

query I rowsort
SELECT DISTINCT - 31 + + + col0 FROM tab0 AS cor0
----
-16
56
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT - MIN( - + col2 ) AS col2, - 50 + + 68 FROM tab0 AS cor0
----
99
18

skipif mysql # not compatible
query II rowsort label-3076
SELECT - MIN ( - + col2 ) AS col2, - 50 + + 68 FROM tab0 AS cor0
----
99
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT ALL - 26 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 * + - col2 - + 88 NOT IN ( + col1, col1 * + - col2 + + col0 * - + 99 + + CAST( NULL AS SIGNED ), col0 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - 26 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 * + - col2 - + 88 NOT IN ( + col1, col1 * + - col2 + + col0 * - + 99 + + CAST ( NULL AS INTEGER ), col0 + + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col1 BETWEEN NULL AND col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3079
SELECT + COUNT( * ) DIV - 84 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT + COUNT ( * ) / - 84 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT - COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL ( 37 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL ( 37 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 78 + col2 AS col0 FROM tab2 cor0
----
101
118
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + 57 + - + COUNT( * ) * - ( + COUNT( DISTINCT - + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3083
SELECT + 57 + - + COUNT ( * ) * - ( + COUNT ( DISTINCT - + col1 ) ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL - - COUNT( * ) + - SUM( 5 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL - - COUNT ( * ) + - SUM ( 5 ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT + 31 * col2 FROM tab2
----
1240
1798
713

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL BETWEEN + + col2 + - - col1 AND + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3087
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 AS col0 FROM tab0 cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT ALL - ( + COUNT( CAST( - + col2 AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - ( + COUNT ( CAST ( - + col2 AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3092
SELECT CAST( NULL AS SIGNED ) AS col1, 53 FROM tab2
----
NULL
53
NULL
53
NULL
53

skipif mysql # not compatible
query II rowsort label-3092
SELECT CAST ( NULL AS INTEGER ) AS col1, 53 FROM tab2
----
NULL
53
NULL
53
NULL
53

query I rowsort
SELECT - ( - ( + 22 ) ) AS col2 FROM tab2
----
22
22
22

query I rowsort
SELECT ALL col2 * 99 * - - 90 FROM tab2
----
204930
356400
516780

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - MAX( - 55 ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - MAX ( - 55 ) AS col0 FROM tab2
----
55

query I rowsort
SELECT - ( + + 11 ) AS col2 FROM tab0
----
-11
-11
-11

query II rowsort
SELECT DISTINCT - 77, col1 FROM tab2 cor0
----
-77
51
-77
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT ALL + col0 DIV + 8 + - col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-15
-190
-2198

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + col0 / + 8 + - col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-15
-190
-2198

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - - COUNT( * ) * - MAX( ALL - col1 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3099
SELECT - - COUNT ( * ) * - MAX ( ALL - col1 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL + 20 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT COUNT( * ), 22 AS col1 FROM tab2
----
3
22

skipif mysql # not compatible
query II rowsort label-3101
SELECT COUNT ( * ), 22 AS col1 FROM tab2
----
3
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3102
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 72 col0, col0 + - - col2 FROM tab1
----
72
144
72
147
72
159

query II rowsort
SELECT ALL - 45, col2 FROM tab1 cor0
----
-45
59
-45
68
-45
96

query I rowsort
SELECT DISTINCT + col1 + - - 25 * - + 69 AS col1 FROM tab2 AS cor0
----
-1648
-1658
-1674

query I rowsort
SELECT DISTINCT col2 * 94 * + col1 * 71 FROM tab0 AS cor0
----
1401540
25407918
660726

query I rowsort
SELECT DISTINCT - - col1 + - ( - col0 ) FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL + 85 * - - col0 FROM tab2
----
3910
5440
6375

query I rowsort
SELECT - col0 + 41 - - - 10 FROM tab2
----
-15
-33
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 64 + + + col0 col0 FROM tab2
----
156
192
214

query I rowsort
SELECT 60 + - + 5 * - - 50 FROM tab1
----
-190
-190
-190

query I rowsort
SELECT - col0 * + + 23 FROM tab2
----
-1058
-1472
-1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3113
SELECT CAST( - MIN( DISTINCT - 1 ) AS SIGNED ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3113
SELECT CAST ( - MIN ( DISTINCT - 1 ) AS INTEGER ) FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 = + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 23 * + col2 AS col2, + col1 AS col2 FROM tab0
----
-1081
81
-2277
1
-230
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT - CAST( + col0 AS SIGNED ) + 5 col0 FROM tab2 AS cor0 WHERE - 16 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3116
SELECT - CAST ( + col0 AS INTEGER ) + 5 col0 FROM tab2 AS cor0 WHERE - 16 IS NULL
----

query I rowsort
SELECT col2 - + col1 + col0 * + - 33 FROM tab1 AS cor0
----
-1601
-2751
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + COUNT( * ) - - 0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3118
SELECT + COUNT ( * ) - - 0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 3 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT COUNT( - col0 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3121
SELECT COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT - 4 DIV col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 4 / col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * + + 16 FROM tab1 AS cor0
----
-224
-752
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT + SUM( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3126
SELECT + SUM ( ALL - - col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL col0 FROM tab1 WHERE 96 / 10 NOT IN ( col1 )
----
51
85
91

query I rowsort
SELECT ALL col0 + + - col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 99 = - - 47 * + col2 + + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 0 + + + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL - COUNT( * ) + + - MAX( + col1 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL - COUNT ( * ) + + - MAX ( + col1 ) FROM tab2 AS cor0
----
-80

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE 71 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 / - 74 IS NULL
----

query I rowsort
SELECT - - 17 + + col1 * + col1 * col0 + - 28 - + + 71 AS col0 FROM tab0 WHERE + - 86 IS NULL
----

query I rowsort
SELECT - 2 * - - ( - - 47 ) + col2 + - - col1 FROM tab2
----
-20
23
31

query I rowsort
SELECT - 13 * + col2 AS col1 FROM tab1
----
-1248
-767
-884

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 WHERE - 82 NOT BETWEEN NULL AND - - 53 * + 13 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 47 AS col0, - col0 col1 FROM tab0 AS cor0
----
-47
-15
-47
-87
-47
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT COUNT( 38 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3140
SELECT COUNT ( 38 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3141
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * 62 NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-3141
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * 62 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT ALL - 18 / CAST( NULL AS SIGNED ) + + col1 / + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - 18 / CAST ( NULL AS INTEGER ) + + col1 / + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL - + col0, + ( + col2 ) / + - col0, - 31 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 66 AND + + col1 + - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT ALL + COUNT( * ) DIV - ( - 53 ) + - + 85 - - - 71 col0 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3145
SELECT ALL + COUNT ( * ) / - ( - 53 ) + - + 85 - - - 71 col0 FROM tab2 AS cor0
----
-156

query II rowsort
SELECT DISTINCT - ( - col0 ) + + col2 AS col1, ( + col2 ) FROM tab2 AS cor0
----
104
40
133
58
69
23

query I rowsort
SELECT - 40 FROM tab2 cor0 WHERE - col0 + + col0 IS NOT NULL
----
-40
-40
-40

query I rowsort
SELECT col2 * + - 39 + + col2 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-1786
-3762
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT - COUNT( 62 ) * + 35 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 * - 15
----
0

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( 62 ) * + 35 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 * - 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT + col0 * 85 - + + 89 * - col0 * - CAST( 18 AS SIGNED ) AS col0 FROM tab0
----
-131979
-147149
-22755

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + col0 * 85 - + + 89 * - col0 * - CAST ( 18 AS INTEGER ) AS col0 FROM tab0
----
-131979
-147149
-22755

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT + ( - - COUNT( * ) ) + - 18 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3151
SELECT + ( - - COUNT ( * ) ) + - 18 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ( + + COUNT( ALL 6 ) ) * + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3152
SELECT ( + + COUNT ( ALL 6 ) ) * + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT + + col2 * col1 * - CAST( NULL AS SIGNED ) / + - col2 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT + + col2 * col1 * - CAST ( NULL AS INTEGER ) / + - col2 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 49 / - - col2 FROM tab1 AS cor0 WHERE NOT 13 BETWEEN + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3155
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) / - 37, ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3155
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) / - 37, ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT ALL - - ( + 78 ) DIV - 41 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - - ( + 78 ) / - 41 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL COUNT( * ) * 11 AS col2 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL COUNT ( * ) * 11 AS col2 FROM tab0 cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3158
SELECT ALL + MAX( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - col0 - + - col1 - + + col0 AND - - col1 - - col2 + + - 4 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - col0 - + - col1 - + + col0 AND - - col1 - - col2 + + - 4 + + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT + col1 DIV + 16 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + col1 / + 16 FROM tab1 AS cor0
----
0
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 * - + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3162
SELECT DISTINCT + SUM( DISTINCT CAST( + + col0 AS DECIMAL ) ) * 19 FROM tab0 AS cor0 WHERE NOT + 81 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT + SUM ( DISTINCT CAST ( + + col0 AS REAL ) ) * 19 FROM tab0 AS cor0 WHERE NOT + 81 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3163
SELECT - CAST( NULL AS DECIMAL ) / - col2, + col0 AS col1 FROM tab2 WHERE NOT + + col2 + - 96 IS NULL
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3163
SELECT - CAST ( NULL AS REAL ) / - col2, + col0 AS col1 FROM tab2 WHERE NOT + + col2 + - 96 IS NULL
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3164
SELECT COUNT( * ) DIV - 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT COUNT ( * ) / - 85 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 col0, - col0 - + col0 FROM tab1
----
-43
-102
-43
-170
-43
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - COUNT( * ) FROM tab1 WHERE NOT + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3166
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + - col0 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ( - col0 ) + - - 23 AS col1 FROM tab2
----
-23
-41
-52

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT - SUM( col0 ) + 45 FROM tab0 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-3170
SELECT - SUM ( col0 ) + 45 FROM tab0 AS cor0
----
-154

query I rowsort
SELECT 21 * - 90 FROM tab0 AS cor0
----
-1890
-1890
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT 89 * + COUNT( * ) AS col2 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-3172
SELECT 89 * + COUNT ( * ) AS col2 FROM tab1
----
267

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 64 + col1 = NULL
----

query I rowsort
SELECT DISTINCT col2 + + - col2 - - - col1 * 4 - col0 FROM tab2 cor0
----
-250
-343
-372

query I rowsort
SELECT DISTINCT + + col2 + + + col0 FROM tab0 cor0
----
196
62
97

query II rowsort
SELECT DISTINCT - col2 - + + col1 + - col0 * + ( - col2 ), 58 FROM tab1 AS cor0 WHERE 22 <= NULL
----

query I rowsort
SELECT col2 + - + 26 + - col0 * - col1 FROM tab0 AS cor0
----
1236
170
1811

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - 74 + - 63 * COUNT( * ) FROM tab0 cor0
----
-263

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 74 + - 63 * COUNT ( * ) FROM tab0 cor0
----
-263

query I rowsort
SELECT DISTINCT 49 + - col2 + 62 * + + col0 FROM tab0 AS cor0
----
5433
5964
932

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT ALL + 8 * - col1 * + - col1 + + 34 DIV - col0 FROM tab2 AS cor0
----
20808
35912
47432

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + 8 * - col1 * + - col1 + + 34 / - col0 FROM tab2 AS cor0
----
20808
35912
47432

query I rowsort
SELECT DISTINCT col0 - - col2 AS col2 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL - ( ( COUNT( * ) ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3183
SELECT ALL - ( ( COUNT ( * ) ) ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT + col2 * - - ( + 75 ) FROM tab1 AS cor0
----
4425
5100
7200

query II rowsort
SELECT - + col0, - col1 - col1 AS col2 FROM tab1 AS cor0
----
-51
-28
-85
-10
-91
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - - 75 = NULL )
----

query I rowsort
SELECT DISTINCT + col1 + - - col2 * col0 AS col1 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3189
SELECT - - 20 AS col1, CAST( COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
20
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3189
SELECT - - 20 AS col1, CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
20
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + 91
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NULL BETWEEN + col1 AND - ( + - col0 )
----

query I rowsort
SELECT - - ( col1 ) + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT DISTINCT + col2 + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT + col2 + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 / - col0 * 66 * + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 / - col0 * 66 * + + col2 IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - - 63 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 98 BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 NOT IN ( col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT + ( + - col2 ) DIV - 48 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3199
SELECT + ( + - col2 ) / - 48 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT - col0 - - + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - ( + col1 ) + - - ( + - col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3202
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT 65 - + + col1 FROM tab2
----
-12
-2
14

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - 19, ( + 54 ), - col0 + - - col1, + - col2 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3206
SELECT 96 * - - COUNT( * ) AS col1, - COUNT( * ) FROM tab2
----
288
-3

skipif mysql # not compatible
query II rowsort label-3206
SELECT 96 * - - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2
----
288
-3

query I rowsort
SELECT - ( + - 68 ) FROM tab1 WHERE NOT NULL <> col0
----

query I rowsort
SELECT col2 * + + 20 AS col2 FROM tab0
----
1980
200
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3209
SELECT ALL + + CAST( SUM( DISTINCT + col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL + + CAST ( SUM ( DISTINCT + col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT col2 * 39 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT + + MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + + MIN ( + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT MAX( + col1 ) + COUNT( * ) AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-3215
SELECT MAX ( + col1 ) + COUNT ( * ) AS col1 FROM tab1
----
50

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - + col2 ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3218
SELECT DISTINCT 84 DIV + + col2 AS col0 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT 84 / + + col2 AS col0 FROM tab0
----
0
1
8

query I rowsort
SELECT ( + col1 ) + + col2 * col0 * - - 95 FROM tab2
----
100561
243277
413317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 51 * col0 col0, - 25 AS col2 FROM tab2
----
2346
-25
3264
-25
3825
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - AVG ( DISTINCT - col1 ) * SUM( DISTINCT - col2 ) FROM tab2 cor0 WHERE - 94 * - 24 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT - AVG ( DISTINCT - col1 ) * SUM ( DISTINCT - col2 ) FROM tab2 cor0 WHERE - 94 * - 24 * col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + 47 FROM tab0 AS cor0
----
146
57
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - COUNT( * ) + - MIN( DISTINCT + 22 ) FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - COUNT ( * ) + - MIN ( DISTINCT + 22 ) FROM tab1 cor0
----
-25

query II rowsort
SELECT - col2 - col2, col2 AS col0 FROM tab2
----
-116
58
-46
23
-80
40

query I rowsort
SELECT DISTINCT col2 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT - + ( - - col0 ) + col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3228
SELECT 29 DIV + COUNT( * ) + + + 92 * + MAX( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
8381

skipif mysql # not compatible
query I rowsort label-3228
SELECT 29 / + COUNT ( * ) + + + 92 * + MAX ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
8381

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT DISTINCT + COUNT( col1 ) + MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT + COUNT ( col1 ) + MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
100

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT - - col1 * 15 * - col1 + - + col1 FROM tab1 cor0
----
-2954
-33182
-380

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 75 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - ( + ( + SUM( - col1 ) ) ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3233
SELECT - ( + ( + SUM ( - col1 ) ) ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL + COUNT( DISTINCT + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + COUNT ( DISTINCT + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT SUM( + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3235
SELECT SUM ( + col1 ) AS col1 FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 32 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL ( - - MIN( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL ( - - MIN ( + col0 ) ) FROM tab1
----
51

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 WHERE NOT + col0 - - - col0 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3239
SELECT - - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT + - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT - - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT + - col2 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + 23 FROM tab0
----
15
23
87
23
97
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < 65 - - - ( - col1 )
----

query II rowsort
SELECT col0, + 74 AS col0 FROM tab0 cor0
----
15
74
87
74
97
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3243
SELECT COUNT( * ) * - + MIN( DISTINCT col0 ) DIV 62 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3243
SELECT COUNT ( * ) * - + MIN ( DISTINCT col0 ) / 62 AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + + COUNT( + 84 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3244
SELECT + + COUNT ( + 84 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 84 * - - 8 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT ( - col0 ) + + - col1 - + col2 DIV + + 54 + + + col0 FROM tab0 AS cor0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT ( - col0 ) + + - col1 - + col2 / + + 54 + + + col0 FROM tab0 AS cor0
----
-2
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT MAX( col1 ) + - - SUM( ALL - col0 ) FROM tab0 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT MAX ( col1 ) + - - SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT - SUM( ALL - - ( + 18 ) ) AS col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - SUM ( ALL - - ( + 18 ) ) AS col1 FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - MAX( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3250
SELECT - MAX ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - col0 + + - 75 FROM tab1 AS cor0
----
-126
-160
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT ALL COUNT( + col2 ) * CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3252
SELECT ALL COUNT ( + col2 ) * CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT + col0 * - + col0 * + - ( - + col2 ) FROM tab0
----
-10575
-75690
-931491

query III rowsort
SELECT * FROM tab2 WHERE col2 + - + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, 85 col2 FROM tab1 WHERE NULL IS NULL
----
-14
85
-47
85
-5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT + col1 DIV + + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3256
SELECT + col1 / + + col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT DISTINCT - + 0 FROM tab1 WHERE NOT + col2 + ( 91 ) <= - + col0 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - + 0 FROM tab1 WHERE NOT + col2 + ( 91 ) <= - + col0 * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * - - 95 + col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 + + col1 + + col1 FROM tab0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT ALL 47 AS col0, + COUNT( * ) FROM tab0
----
47
3

skipif mysql # not compatible
query II rowsort label-3261
SELECT ALL 47 AS col0, + COUNT ( * ) FROM tab0
----
47
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + + col1 col2 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * ( ( + col1 ) ) = 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1 col1, 67 AS col2 FROM tab0
----
1
67
1
67
1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT DISTINCT - 68 + - COUNT( * ) + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-68

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - 68 + - COUNT ( * ) + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-68

query I rowsort
SELECT DISTINCT - 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT ( - COUNT( ALL + CAST( NULL AS SIGNED ) ) ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT ( - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT ALL col2 DIV 28 AS col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL col2 / 28 AS col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT ALL + + col0 * 72 + - col1 * - col2 + + 58 AS col2 FROM tab1 AS cor0
----
5074
6473
9806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3271
SELECT DISTINCT + COUNT( * ) / + CAST( NULL AS SIGNED ) * + COUNT( * ) + + - 60 AS col2, + SUM( + + 35 ) * ( COUNT( * ) ) FROM tab0 AS cor0
----
NULL
315

skipif mysql # not compatible
query II rowsort label-3271
SELECT DISTINCT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 60 AS col2, + SUM ( + + 35 ) * ( COUNT ( * ) ) FROM tab0 AS cor0
----
NULL
315

query I rowsort
SELECT DISTINCT - col2 * + col1 * ( - - col1 ) FROM tab0 cor0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL < + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> + col1 - - col0 + + 52 * + col0 + + + 67
----

query I rowsort
SELECT - 22 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT + ( + - COUNT( * ) ), - 46 * + + COUNT( * ) * - 73 AS col0 FROM tab2 AS cor0
----
-3
10074

skipif mysql # not compatible
query II rowsort label-3276
SELECT + ( + - COUNT ( * ) ), - 46 * + + COUNT ( * ) * - 73 AS col0 FROM tab2 AS cor0
----
-3
10074

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT DISTINCT MAX( ALL 37 ) AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT MAX ( ALL 37 ) AS col0 FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3279
SELECT ALL * FROM tab1 WHERE ( NOT CAST( + + col0 AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3279
SELECT ALL * FROM tab1 WHERE ( NOT CAST ( + + col0 AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + 60 ) AS col2 FROM tab0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT CAST( - + 78 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-3281
SELECT CAST ( - + 78 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + 58 FROM tab0 AS cor0 WHERE - 87 * + 99 / col0 > - col2
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3283
SELECT col2 DIV col0 AS col2, + col1 FROM tab0 AS cor0
----
0
21
1
1
3
81

skipif mysql # not compatible
query II rowsort label-3283
SELECT col2 / col0 AS col2, + col1 FROM tab0 AS cor0
----
0
21
1
1
3
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - + col0 >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT CAST( + col1 AS SIGNED ) * col0 + + 94 AS col0 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
2440
5022
5119

skipif mysql # not compatible
query I rowsort label-3285
SELECT CAST ( + col1 AS INTEGER ) * col0 + + 94 AS col0 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
2440
5022
5119

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - col0 IS NULL )
----

query II rowsort
SELECT DISTINCT - + 83, col2 FROM tab2 cor0
----
-83
23
-83
40
-83
58

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 80 * - + col2 + - + col2 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT col0 * col0 * 55 DIV 11 + + col1 FROM tab1
----
13019
36130
41452

skipif mysql # not compatible
query I rowsort label-3290
SELECT col0 * col0 * 55 / 11 + + col1 FROM tab1
----
13019
36130
41452

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + COUNT( * ) + + MIN( ALL - + col1 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-3291
SELECT + COUNT ( * ) + + MIN ( ALL - + col1 ) FROM tab1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT DISTINCT ( - MIN( + 10 ) ) AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT ( - MIN ( + 10 ) ) AS col0 FROM tab1
----
-10

query I rowsort
SELECT - 25 - - - col0 FROM tab2 cor0
----
-100
-71
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + COUNT( * ) * - 65 + 31 - + 94 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-446

skipif mysql # not compatible
query I rowsort label-3294
SELECT + COUNT ( * ) * - 65 + 31 - + 94 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-446

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3295
SELECT COUNT( * ) - 31 * 10 * COUNT( * ) DIV 68 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3295
SELECT COUNT ( * ) - 31 * 10 * COUNT ( * ) / 68 FROM tab2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) - 22 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) - 22 FROM tab2
----
-25

query I rowsort
SELECT ALL 22 * col1 AS col2 FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - + ( - MIN( DISTINCT + + 25 ) ) AS col2 FROM tab0 WHERE NOT ( col1 IS NULL )
----
25

skipif mysql # not compatible
query I rowsort label-3298
SELECT - + ( - MIN ( DISTINCT + + 25 ) ) AS col2 FROM tab0 WHERE NOT ( col1 IS NULL )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT - COUNT( * ) * - MIN( - - col2 ) AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - COUNT ( * ) * - MIN ( - - col2 ) AS col2 FROM tab1 AS cor0
----
177

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 > + col0
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT + 15 * + COUNT( * ) FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + 15 * + COUNT ( * ) FROM tab0 cor0
----
45

query I rowsort
SELECT - col2 * 57 AS col0 FROM tab2 cor0
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT - 66 DIV - + COUNT( + + col2 ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3304
SELECT - 66 / - + COUNT ( + + col2 ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT col2 + 71 * + col0 * + col1 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col0 * ( - 80 ) * + 0 + + + col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 72 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT + + 56 + - + 4 FROM tab1 AS cor0 WHERE NULL <= 37 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + COUNT( * ) * - - COUNT( * ) * + + 40 AS col2 FROM tab1 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) * + + 40 AS col2 FROM tab1 AS cor0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - - COUNT( * ) * + 84 AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3311
SELECT - - COUNT ( * ) * + 84 AS col1 FROM tab1 AS cor0
----
252

query II rowsort
SELECT ALL - col2 AS col0, - col0 + - col0 AS col1 FROM tab0
----
-10
-174
-47
-30
-99
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT SUM( DISTINCT 75 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT SUM ( DISTINCT 75 ) FROM tab2
----
75

query I rowsort
SELECT ALL 95 * col0 AS col0 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT + COUNT( * ) AS col0, + COUNT( * ) * 74 AS col1 FROM tab1
----
3
222

skipif mysql # not compatible
query II rowsort label-3315
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) * 74 AS col1 FROM tab1
----
3
222

query I rowsort
SELECT DISTINCT - 81 * - 85 FROM tab1
----
6885

onlyif mysql # aggregate syntax: 
query II rowsort label-3317
SELECT DISTINCT 58 AS col2, - COUNT( * ) * + 45 AS col0 FROM tab2
----
58
-135

skipif mysql # not compatible
query II rowsort label-3317
SELECT DISTINCT 58 AS col2, - COUNT ( * ) * + 45 AS col0 FROM tab2
----
58
-135

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE + 35 NOT IN ( + col1 * - col1 + + - col2 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col2, + col2 - - col1 col0 FROM tab0
----
-15
128
-87
31
-97
100

query I rowsort
SELECT DISTINCT col1 + - 85 + col0 FROM tab0 AS cor0
----
11
13
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL + + ( - CAST( - - col1 AS SIGNED ) ) + - 71 AS col0 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + + ( - CAST ( - - col1 AS INTEGER ) ) + - 71 AS col0 FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT + 96 * + 40 FROM tab2 AS cor0
----
3840
3840
3840

query II rowsort
SELECT DISTINCT + col2 AS col1, + 37 * - col1 - + 66 + + - col1 - + 79 - + col2 + + col1 AS col1 FROM tab2 AS cor0
----
23
-2055
40
-3034
58
-2682

query II rowsort
SELECT DISTINCT col2 * - + col0 AS col1, + col1 * - 27 AS col2 FROM tab1
----
-4896
-378
-5015
-135
-6188
-1269

query I rowsort
SELECT DISTINCT col0 + ( + col0 ) FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3326
SELECT CAST( NULL AS SIGNED ) * - ( - + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT CAST ( NULL AS INTEGER ) * - ( - + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + + + col1 BETWEEN - 74 * + 80 * - col1 AND 22 / + 53 * col2 + + + col2 + + - col0 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + + col1 col2 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 47 * col2 col0 FROM tab0 AS cor0
----
-2194
-383
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT COUNT( * ) + + 77 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-3330
SELECT COUNT ( * ) + + 77 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
77

query I rowsort
SELECT ALL 42 + + + col1 FROM tab1 AS cor0
----
47
56
89

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3333
SELECT ALL + col0 DIV col1 * col2 + + 41 AS col0, col1 * - col2 FROM tab0
----
41
-3807
81
-210
9644
-99

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL + col0 / col1 * col2 + + 41 AS col0, col1 * - col2 FROM tab0
----
41
-3807
81
-210
9644
-99

query I rowsort
SELECT ALL 14 - col2 AS col1 FROM tab2
----
-26
-44
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT col2 - 81 + + col1 DIV + + col2 - col2 FROM tab2
----
-79
-80
-80

skipif mysql # not compatible
query I rowsort label-3336
SELECT col2 - 81 + + col1 / + + col2 - col2 FROM tab2
----
-79
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT col0 * - - 93 + col0 DIV + 24 - 16 FROM tab1
----
4729
7892
8450

skipif mysql # not compatible
query I rowsort label-3337
SELECT col0 * - - 93 + col0 / + 24 - 16 FROM tab1
----
4729
7892
8450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT ALL CAST( NULL AS SIGNED ) - - col1 / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL CAST ( NULL AS INTEGER ) - - col1 / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 6 col0 FROM tab1
----
11
20
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + + - 21 * col0 col1 FROM tab2
----
-1317
-1548
-939

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE - 87 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE - 87 >= NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * - col1 * col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - 57 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - 57 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL + 18 - - 38 + col2 + 27 AS col2 FROM tab1 AS cor0
----
142
151
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT - SUM( 78 ) * + COUNT( * ) + SUM( ALL 59 ) AS col1 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND - ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT - SUM ( 78 ) * + COUNT ( * ) + SUM ( ALL 59 ) AS col1 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND - ( - col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= - col0
----

query I rowsort
SELECT + col0 + - 71 * + col1 FROM tab1
----
-270
-3246
-943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT DISTINCT + col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT + 37 * col2 - - 3 DIV 52 FROM tab1
----
2183
2516
3552

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT + 37 * col2 - - 3 / 52 FROM tab1
----
2183
2516
3552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3350
SELECT DISTINCT * FROM tab1 WHERE + 41 + - col2 * + 59 BETWEEN NULL AND + CAST( + CAST( + 73 AS SIGNED ) AS SIGNED ) * 38
----

skipif mysql # not compatible
query III rowsort label-3350
SELECT DISTINCT * FROM tab1 WHERE + 41 + - col2 * + 59 BETWEEN NULL AND + CAST ( + CAST ( + 73 AS INTEGER ) AS INTEGER ) * 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL IN ( ( + 68 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL IN ( ( + 68 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3352
SELECT ALL col2 DIV - col0 + + 1 * col2 AS col0 FROM tab0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL col2 / - col0 + + 1 * col2 AS col0 FROM tab0
----
10
44
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT CAST( + AVG ( ALL - col1 ) AS SIGNED ) + 49 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3353
SELECT CAST ( + AVG ( ALL - col1 ) AS INTEGER ) + 49 FROM tab1
----
27

query I rowsort
SELECT DISTINCT 33 + + col1 AS col1 FROM tab2
----
100
110
84

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - col2 IS NULL
----

query I rowsort
SELECT - 80 - 56 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 3 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + MIN( - ( 95 ) ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-3358
SELECT + MIN ( - ( 95 ) ) FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + SUM( + 1 ) + 33 AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3359
SELECT + SUM ( + 1 ) + 33 AS col2 FROM tab0
----
36

query I rowsort
SELECT + ( 86 ) AS col1 FROM tab1
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT + col2 DIV 53 + - col2 AS col2 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-3361
SELECT + col2 / 53 + - col2 AS col2 FROM tab2
----
-23
-40
-57

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT ( - 21 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( col2 ) * - 4 + col1 AS col1 FROM tab1 WHERE NOT 15 IS NULL
----
-225
-231
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - COUNT( * ) + 40 * + 67 AS col1 FROM tab2
----
2677

skipif mysql # not compatible
query I rowsort label-3364
SELECT - COUNT ( * ) + 40 * + 67 AS col1 FROM tab2
----
2677

query I rowsort
SELECT 56 + - 71 * - 76 AS col2 FROM tab1
----
5452
5452
5452

query I rowsort
SELECT + 16 * + col2 AS col1 FROM tab2
----
368
640
928

query I rowsort
SELECT col2 * + 86 - + 21 FROM tab2
----
1957
3419
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT - 15 * - 19 + - COUNT( * ) * + 70 FROM tab2 WHERE ( col2 ) NOT IN ( + 12 + col0 )
----
75

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT - 15 * - 19 + - COUNT ( * ) * + 70 FROM tab2 WHERE ( col2 ) NOT IN ( + 12 + col0 )
----
75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 9 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 82 <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3371
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3371
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 47 FROM tab2 AS cor0 WHERE - col2 >= + 98 / + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * + col0 = col1
----

query I rowsort
SELECT DISTINCT col0 + - 52 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 = col0 + 39
----
-4437
-4947
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - 90 * + COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-3375
SELECT - 90 * + COUNT ( * ) FROM tab2
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * 54 col1 FROM tab1
----
3402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col1 FROM tab1
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * col0 col1 FROM tab0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 WHERE 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 WHERE 11 IS NULL
----
0

query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT + 26 + + col0 FROM tab0 AS cor0
----
113
123
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 IN ( col1 * 76 )
----

query I rowsort
SELECT 79 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-20
1649
6352

query I rowsort
SELECT - - 93 * + col2 + col1 FROM tab1 cor0
----
5492
6371
8942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT 90 * - 30 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT 90 * - 30 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 56 * + 38 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + ( 29 ) + COUNT( DISTINCT - ( - ( col1 ) ) ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3387
SELECT + ( 29 ) + COUNT ( DISTINCT - ( - ( col1 ) ) ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 34 ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT + 31 + - - col1 DIV + col2 FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-3389
SELECT + 31 + - - col1 / + col2 FROM tab1
----
31
31
31

query I rowsort
SELECT ALL + 14 + col0 AS col1 FROM tab1
----
105
65
99

query I rowsort
SELECT ALL ( + - ( - col1 ) ) - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( 96 ) * col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 - - col1 + col0 * 48 * col0 col2 FROM tab1
----
124940
346883
397613

query I rowsort
SELECT + 66 * 4 + col2 FROM tab0 AS cor0
----
274
311
363

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT + + 96 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3396
SELECT + + 96 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col0, 66 FROM tab1
----
51
66
85
66
91
66

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE ( + - col0 + - col0 ) IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - MIN( ALL 49 ) AS col2 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3400
SELECT - MIN ( ALL 49 ) AS col2 FROM tab0 AS cor0
----
-49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 32 )
----

query I rowsort
SELECT + ( - - 0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT - COUNT( * ) * + MIN( + col1 ) AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3403
SELECT - COUNT ( * ) * + MIN ( + col1 ) AS col0 FROM tab2 AS cor0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + + col0 col2 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT - + col1 DIV - col2 + + col1 + + 28 * col2 FROM tab1 cor0
----
1657
1951
2702

skipif mysql # not compatible
query I rowsort label-3405
SELECT - + col1 / - col2 + + col1 + + 28 * col2 FROM tab1 cor0
----
1657
1951
2702

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 - col1 = ( col0 / + 46 + - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT + col0 * + 72 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) < ( 0 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT + col0 * + 72 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) < ( 0 + - col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT IN ( + col2 * col1 + 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT + MAX( ALL + - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + MAX ( ALL + - col0 ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + + 22 - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT ALL - 28 FROM tab1 WHERE + col1 + + + CAST( NULL AS SIGNED ) IS NULL
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - 28 FROM tab1 WHERE + col1 + + + CAST ( NULL AS INTEGER ) IS NULL
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - 54 * col2 * + 29 AS col2 FROM tab1
----
-106488
-150336
-92394

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * 62 NOT IN ( 9 )
----

query I rowsort
SELECT ALL - col1 / - col1 - - ( col2 ) AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 90 * + 30 / col0 NOT IN ( col2 )
----

query II rowsort
SELECT ALL - col1 + + 39 AS col1, - col0 AS col1 FROM tab2
----
-12
-46
-28
-75
-38
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + MIN( - col2 ) col1 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3418
SELECT + MIN ( - col2 ) col1 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3419
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 31 > - col2 * - col0 - - CAST( - 91 + 75 AS SIGNED ) * ( + 45 / ( 54 ) )
----

skipif mysql # not compatible
query III rowsort label-3419
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 31 > - col2 * - col0 - - CAST ( - 91 + 75 AS INTEGER ) * ( + 45 / ( 54 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - - col2 ) + + col2 - 15 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT + + 38 + + - COUNT( * ) * - 41 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-3421
SELECT + + 38 + + - COUNT ( * ) * - 41 FROM tab2 AS cor0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - ( - COUNT( ALL 57 ) ) col1 FROM tab0 cor0 WHERE - col2 <= + ( - col1 )
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3422
SELECT - ( - COUNT ( ALL 57 ) ) col1 FROM tab0 cor0 WHERE - col2 <= + ( - col1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT + COUNT( * ) * - + ( - 29 ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3423
SELECT + COUNT ( * ) * - + ( - 29 ) AS col2 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT - + MIN( ALL + + 31 ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3424
SELECT - + MIN ( ALL + + 31 ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT ALL - + 85 + + + 59 AS col1 FROM tab1 AS cor0
----
-26
-26
-26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 97 IN ( col0 )
----

query II rowsort
SELECT DISTINCT - col0, - col0 - + col2 AS col1 FROM tab1 AS cor0 WHERE 15 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * col0 * + 8 - - + col0 AS col2 FROM tab2 AS cor0
----
16974
32832
45075

query I rowsort
SELECT + ( - - 4 ) AS col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT 88 - + ( col0 ) AS col1 FROM tab0 WHERE - + col0 * + col1 <> NULL
----

query I rowsort
SELECT + col0 * col0 / + col2 + - col2 FROM tab2 WHERE NULL BETWEEN NULL AND - col0 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ALL MAX( + col2 ) FROM tab0 WHERE ( NOT 63 / + col2 - 36 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL MAX ( + col2 ) FROM tab0 WHERE ( NOT 63 / + col2 - 36 IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col1 - - ( - 65 ) AS col1 FROM tab0
----
-44
-64
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3434
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3434
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT ALL + 52 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + 52 / + col2 FROM tab2
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT + MAX( 20 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + MAX ( 20 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - COUNT( * ) * - 67 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-3437
SELECT - COUNT ( * ) * - 67 FROM tab0 AS cor0
----
201

query I rowsort
SELECT + col2 * - - col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 < NULL
----

query I rowsort
SELECT col0 * - - col1 * col2 * - 96 FROM tab1
----
-2407200
-27920256
-6580224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 18 ) col2 FROM tab0
----
-18

query I rowsort
SELECT DISTINCT - col2 * 58 AS col0 FROM tab1
----
-3422
-3944
-5568

query I rowsort
SELECT + + col1 - col2 FROM tab0 cor0 WHERE NOT ( NULL ) <> col1 * + 94 / + col1 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3444
SELECT CAST( NULL AS DECIMAL ) * - 96 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT CAST ( NULL AS REAL ) * - 96 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT + MIN( ALL + + 16 ) * - 98 FROM tab0
----
-1568

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + MIN ( ALL + + 16 ) * - 98 FROM tab0
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL MIN( ( + col0 ) ) * + COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL MIN ( ( + col0 ) ) * + COUNT ( * ) FROM tab1
----
153

query I rowsort
SELECT + 46 + + 85 FROM tab2
----
131
131
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT - 94 + - COUNT( * ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3448
SELECT - 94 + - COUNT ( * ) FROM tab0
----
-97

query I rowsort
SELECT 85 + - - col2 AS col2 FROM tab2
----
108
125
143

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT ( + ( MIN( - - col2 ) ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT ( + ( MIN ( - - col2 ) ) ) AS col1 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT col2 * + - col1 * CAST( NULL AS SIGNED ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT col2 * + - col1 * CAST ( NULL AS INTEGER ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL MIN( DISTINCT - + ( - + col0 ) ) FROM tab0 WHERE - + 23 * + 15 BETWEEN ( col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL MIN ( DISTINCT - + ( - + col0 ) ) FROM tab0 WHERE - + 23 * + 15 BETWEEN ( col0 ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3454
SELECT - COUNT( * ) DIV + MAX( + + 95 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT - COUNT ( * ) / + MAX ( + + 95 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT - COUNT( * ) + - + 46 * - 84 FROM tab2 AS cor0
----
3861

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT - COUNT ( * ) + - + 46 * - 84 FROM tab2 AS cor0
----
3861

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL CAST( + 30 AS SIGNED ) + + ( ( + col2 ) ) * + - col2 AS col2 FROM tab2 cor0
----
-1570
-3334
-499

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL CAST ( + 30 AS INTEGER ) + + ( ( + col2 ) ) * + - col2 AS col2 FROM tab2 cor0
----
-1570
-3334
-499

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3458
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-3458
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT - + ( - + 40 ) AS col2 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - col1 NOT IN ( - 15, + 17 * col0, 56 )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 + - 42 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT + ( - 77 ) + - 37 DIV - col2 AS col2 FROM tab2 AS cor0
----
-76
-77
-77

skipif mysql # not compatible
query I rowsort label-3463
SELECT + ( - 77 ) + - 37 / - col2 AS col2 FROM tab2 AS cor0
----
-76
-77
-77

query I rowsort
SELECT DISTINCT col1 / - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 + + col2 AS col0, col2 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

query I rowsort
SELECT ALL - col2 + - - col2 - col1 + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 75 + - - col2 FROM tab1 AS cor0
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ( - MIN( + col1 ) ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3468
SELECT ( - MIN ( + col1 ) ) AS col1 FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT ALL - + col0 + - - col1 + 44 * ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - + col0 + - - col1 + 44 * ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - col2 + - col0, 43 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3471
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col2 + + col0 ) AND CAST( - col0 AS SIGNED ) / - - 96 + - - ( - - CAST( NULL AS DECIMAL ) ) * + col2 * col0
----

skipif mysql # not compatible
query III rowsort label-3471
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col2 + + col0 ) AND CAST ( - col0 AS INTEGER ) / - - 96 + - - ( - - CAST ( NULL AS REAL ) ) * + col2 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT DISTINCT + 33 DIV - col0 + - col2 FROM tab0 AS cor0
----
-10
-49
-99

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + 33 / - col0 + - col2 FROM tab0 AS cor0
----
-10
-49
-99

query I rowsort
SELECT ALL - col2 * col1 - - col0 * + + col2 FROM tab2 AS cor0
----
-115
-520
464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT COUNT( CAST( col1 AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3474
SELECT COUNT ( CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT + COUNT( * ) AS col0, + MAX( DISTINCT 59 ) FROM tab0
----
3
59

skipif mysql # not compatible
query II rowsort label-3475
SELECT + COUNT ( * ) AS col0, + MAX ( DISTINCT 59 ) FROM tab0
----
3
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL COUNT( ALL + - col0 ) * ( - MAX( DISTINCT 75 ) ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL COUNT ( ALL + - col0 ) * ( - MAX ( DISTINCT 75 ) ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NULL <> 9
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL <> 9
----
0

query I rowsort
SELECT - col0 + + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * + - 32 * ( - col0 ) * - 20 AS col1 FROM tab0
----
1169280
62080
777600

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 22 - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - 56 ) AS col0 FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - MIN( 29 ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-3482
SELECT - MIN ( 29 ) FROM tab0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT ALL col0 DIV + 93 - + + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL col0 / + 93 - + + col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT MIN( + 21 ) AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3484
SELECT MIN ( + 21 ) AS col1 FROM tab0 AS cor0
----
21

query II rowsort
SELECT + col2 AS col2, 51 AS col0 FROM tab0 cor0
----
10
51
47
51
99
51

query I rowsort
SELECT ALL + ( - 6 ) FROM tab2 AS cor0
----
-6
-6
-6

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN + col1 - - col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT + 97 * - 93 * - COUNT( - + 28 ) AS col2 FROM tab0
----
27063

skipif mysql # not compatible
query I rowsort label-3489
SELECT + 97 * - 93 * - COUNT ( - + 28 ) AS col2 FROM tab0
----
27063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( 52 ) col1 FROM tab1
----
-33
-39
1

query I rowsort
SELECT + ( + - col1 ) + - - col0 AS col1 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT 69 + + col0 - + + col1 FROM tab0 AS cor0
----
135
165
3

query I rowsort
SELECT ALL + 57 + + - ( - + col2 ) AS col2 FROM tab0 AS cor0
----
104
156
67

query I rowsort
SELECT - col1 * col2 + ( + + ( + - col0 ) ) FROM tab1 cor0
----
-1395
-3287
-380

query I rowsort
SELECT ALL - 80 - 90 * - + col2 AS col2 FROM tab1
----
5230
6040
8560

query I rowsort
SELECT - 49 * 30 FROM tab0 AS cor0
----
-1470
-1470
-1470

query II rowsort
SELECT ALL + - col0 AS col1, 21 FROM tab2 AS cor0
----
-46
21
-64
21
-75
21

query I rowsort
SELECT ALL + 47 * - col2 AS col0 FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT 6 - MAX( + 92 ) * COUNT( ALL - - col1 ) AS col1 FROM tab0 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3499
SELECT 6 - MAX ( + 92 ) * COUNT ( ALL - - col1 ) AS col1 FROM tab0 cor0
----
-270

query I rowsort
SELECT 42 - - + col0 FROM tab1 AS cor0
----
127
133
93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT NULL < - col0 )
----

query I rowsort
SELECT DISTINCT - 44 * 81 FROM tab2 AS cor0
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - 2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + - col0
----

query I rowsort
SELECT 78 * - col1 AS col2 FROM tab0
----
-1638
-6318
-78

query I rowsort
SELECT DISTINCT 67 * - ( + 95 ) FROM tab1
----
-6365

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL - MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 47 / + 80 IS NULL AND ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT DISTINCT + - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 35 ) IS NULL
----

query I rowsort
SELECT ALL - 86 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col1 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT + MIN( - col0 ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3514
SELECT + MIN ( - col0 ) AS col0 FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + ( - + col0 ) ) col0, col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - + col2 + - - col2 + + 61 * - + 32 FROM tab0 AS cor0
----
-1952
-1952
-1952

query I rowsort
SELECT - - 15 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - + 29 ) + 41 IS NOT NULL
----

query I rowsort
SELECT ALL - ( 93 ) AS col1 FROM tab0 cor0
----
-93
-93
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT - AVG ( ( + col1 ) ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT - AVG ( ( + col1 ) ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 79 FROM tab2 WHERE NOT - - col1 IS NULL
----
79
79
79

query I rowsort
SELECT DISTINCT 86 + col1 FROM tab0
----
107
167
87

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE col2 + - - col1 = ( - col1 + col2 + - - col1 )
----

query I rowsort
SELECT ALL col0 * col1 * + + 87 AS col2 FROM tab0
----
105705
158949
8439

query I rowsort
SELECT ALL col2 + + - col1 + col2 * - 89 FROM tab2
----
-2075
-3597
-5171

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3527
SELECT * FROM tab1 WHERE + 90 * CAST( NULL AS DECIMAL ) + - + ( + col1 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3527
SELECT * FROM tab1 WHERE + 90 * CAST ( NULL AS REAL ) + - + ( + col1 ) < NULL
----

query I rowsort
SELECT col1 + 89 FROM tab0
----
110
170
90

query I rowsort
SELECT - ( - col1 ) + - 59 FROM tab2
----
-8
18
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT - 16 DIV + col2 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT - 16 / + col2 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3531
SELECT - - col1 DIV + - 61, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-3531
SELECT - - col1 / + - 61, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3533
SELECT * FROM tab1 WHERE NOT - - ( - - CAST( 16 AS DECIMAL ) ) <= + col0
----

skipif mysql # not compatible
query III rowsort label-3533
SELECT * FROM tab1 WHERE NOT - - ( - - CAST ( 16 AS REAL ) ) <= + col0
----

query I rowsort
SELECT DISTINCT col2 * - + 59 AS col1 FROM tab0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT + 41 * - + SUM( + col0 ) AS col1 FROM tab1
----
-9307

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + 41 * - + SUM ( + col0 ) AS col1 FROM tab1
----
-9307

query II rowsort
SELECT ALL + 82 AS col0, col1 FROM tab0 AS cor0
----
82
1
82
21
82
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + SUM( 19 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3537
SELECT + SUM ( 19 ) FROM tab0 AS cor0
----
57

query II rowsort
SELECT ALL + 3, - col2 AS col2 FROM tab0 cor0
----
3
-10
3
-47
3
-99

query I rowsort
SELECT - + 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT DISTINCT 34 * 73 * 44 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
109208

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) BETWEEN 30 AND - 90
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT col1 DIV col1 + - 88 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT col1 / col1 + - 88 FROM tab2
----
-87

query I rowsort
SELECT col0 * - - col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - 27 + - col2 AS col1 FROM tab1 AS cor0
----
-123
-86
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 12 + + + col0 FROM tab0 AS cor0
----
3
75
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT SUM( ALL + 22 ) + - 4 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT SUM ( ALL + 22 ) + - 4 FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3548
SELECT ( - - col2 ) AS col2, col0 + + CAST( + col1 AS SIGNED ) * + col0 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
10
1904
47
1183
99
95

skipif mysql # not compatible
query II rowsort label-3548
SELECT ( - - col2 ) AS col2, col0 + + CAST ( + col1 AS INTEGER ) * + col0 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
10
1904
47
1183
99
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ALL + + col2 + + - col1 * col2 DIV + col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + + col2 + + - col1 * col2 / + col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - col1 )
----

query I rowsort
SELECT ALL 18 * + + col0 FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT DISTINCT - + 93 + 54 AS col2 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT DISTINCT col1 - - col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL col2 * + + 89 AS col0 FROM tab2
----
2047
3560
5162

query I rowsort
SELECT col0 + + col2 * - + col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-3556
SELECT DISTINCT 2 DIV + col1 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT 2 / + col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT 46 + + col0 AS col1 FROM tab1
----
131
137
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL - 32 / - + col1 * - col0 * + col2 + CAST( NULL AS SIGNED ) * + 55 / - 82 + 84 + + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - 32 / - + col1 * - col0 * + col2 + CAST ( NULL AS INTEGER ) * + 55 / - 82 + 84 + + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + - col1 + + col0 FROM tab2 AS cor0
----
-28
-50
-53

query I rowsort
SELECT + 57 + - col1 AS col2 FROM tab0 AS cor0
----
-24
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT + MIN( + 11 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + MIN ( + 11 ) FROM tab2
----
11

query I rowsort
SELECT DISTINCT ( + 15 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + + MAX( DISTINCT - - 12 ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3563
SELECT + + MAX ( DISTINCT - - 12 ) AS col0 FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3564
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-3564
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > - CAST ( NULL AS INTEGER ) * - col0
----

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 AS col1 FROM tab1 cor0
----
59
-5
68
-47
96
-14

query II rowsort
SELECT ALL - 20, + col0 FROM tab0 AS cor0
----
-20
15
-20
87
-20
97

query I rowsort
SELECT DISTINCT - ( + 38 ) FROM tab0
----
-38

query I rowsort
SELECT DISTINCT ( col0 ) * - ( 79 ) FROM tab1
----
-4029
-6715
-7189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 * - col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3570
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 71 - 10 - - + 17 * + - ( col2 ) / col1 NOT BETWEEN - - 66 * col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + col2, + 93 * - + col0 col1 FROM tab0
----
705
-1395
870
-8091
9603
-9021

query I rowsort
SELECT ( col1 ) * 75 FROM tab2 AS cor0
----
3825
5025
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - COUNT( * ) + - 51 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - COUNT ( * ) + - 51 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL + col0 * 63 AS col2 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT ALL - - 97 + - - col0 FROM tab2 cor0
----
143
161
172

query I rowsort
SELECT ALL + 55 + col0 AS col0 FROM tab1 AS cor0
----
106
140
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT ( + + COUNT( * ) ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ( + + COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT DISTINCT - - 18 DIV + 97 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - - 18 / + 97 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3580
SELECT col2 + + + col2 AS col0, + col1 DIV col0 FROM tab2
----
116
0
46
1
80
1

skipif mysql # not compatible
query II rowsort label-3580
SELECT col2 + + + col2 AS col0, + col1 / col0 FROM tab2
----
116
0
46
1
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT COUNT( * ) - + + 97 AS col0 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT COUNT ( * ) - + + 97 AS col0 FROM tab1
----
-94

query II rowsort
SELECT DISTINCT + 74 - - 32, col0 AS col0 FROM tab1
----
106
51
106
85
106
91

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col1 + + col1 IS NULL
----

query I rowsort
SELECT col2 * - + col2 * + col0 AS col2 FROM tab1
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 * + col0 col0 FROM tab1
----
-2091
-3485
-3731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col0 FROM tab2
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT DISTINCT - 48 DIV - - col0 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - 48 / - - col0 FROM tab0
----
-3
0

query I rowsort
SELECT + - 21 - - - col0 + + 78 * - - col2 FROM tab0 AS cor0
----
3630
672
7604

query I rowsort
SELECT DISTINCT + + col2 + 34 + + + 82 - + ( - col1 ) * - - col1 AS col1 FROM tab1 AS cor0
----
200
2393
408

query I rowsort
SELECT ALL - col1 * + col0 * - 49 FROM tab0 AS cor0
----
4753
59535
89523

query I rowsort
SELECT ALL 82 * + - col1 FROM tab2 AS cor0
----
-4182
-5494
-6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + - col1 * + - 68 col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT + + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 89 col1, - col2 AS col2 FROM tab1 AS cor0
----
-89
-59
-89
-68
-89
-96

query I rowsort
SELECT + + col1 * 81 * col2 FROM tab2 AS cor0
----
249480
314766
95013

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT - 50 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 3 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3598
SELECT 99 DIV + 59 AS col1, + col2 AS col2 FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-3598
SELECT 99 / + 59 AS col1, + col2 AS col2 FROM tab2
----
1
23
1
40
1
58

query II rowsort
SELECT - col2, + col1 AS col0 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT DISTINCT col1 + + col0 AS col2, col1 AS col1 FROM tab0 AS cor0
----
108
21
96
81
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + COUNT( ALL 4 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3601
SELECT + COUNT ( ALL 4 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3602
SELECT ALL + col0 * + - col1 + 71 * 54 FROM tab2 cor0 WHERE NULL IN ( 89, CAST( - - col0 AS DECIMAL ), - 64 + + col0 * col2, + - col2 * 75, col2 + ( - - 52 ) + col2 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + col0 * + - col1 + 71 * 54 FROM tab2 cor0 WHERE NULL IN ( 89, CAST ( - - col0 AS REAL ), - 64 + + col0 * col2, + - col2 * 75, col2 + ( - - 52 ) + col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT ALL + + 27 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
27
-3

skipif mysql # not compatible
query II rowsort label-3603
SELECT ALL + + 27 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
27
-3

query I rowsort
SELECT - 51 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT + SUM( DISTINCT - + ( col0 ) ) DIV COUNT( * ) * + ( 52 ) AS col0 FROM tab2 AS cor0
----
-3172

skipif mysql # not compatible
query I rowsort label-3605
SELECT + SUM ( DISTINCT - + ( col0 ) ) / COUNT ( * ) * + ( 52 ) AS col0 FROM tab2 AS cor0
----
-3172

query I rowsort
SELECT ALL col0 - - col0 + - + col1 AS col1 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT col0 + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT - COUNT( * ) - 47 AS col1, 76 + - 95 AS col1 FROM tab2 AS cor0
----
-50
-19

skipif mysql # not compatible
query II rowsort label-3608
SELECT - COUNT ( * ) - 47 AS col1, 76 + - 95 AS col1 FROM tab2 AS cor0
----
-50
-19

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT DISTINCT 57 - + - col2 * - col2 * + + 82 * col0 + CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2716998
-713256
-77957000

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT 57 - + - col2 * - col2 * + + 82 * col0 + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2716998
-713256
-77957000

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3611
SELECT DISTINCT - col0 * + - ( col2 ) + + 13 + CAST( - col0 AS DECIMAL ) - - CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - col0 * + - ( col2 ) + + 13 + CAST ( - col0 AS REAL ) - - CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3612
SELECT - MIN( ALL + col2 ) + ( + - 83 ) AS col0, 27 FROM tab2
----
-106
27

skipif mysql # not compatible
query II rowsort label-3612
SELECT - MIN ( ALL + col2 ) + ( + - 83 ) AS col0, 27 FROM tab2
----
-106
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT col0 * - CAST( NULL AS SIGNED ) * - col0 / - 61 + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT col0 * - CAST ( NULL AS INTEGER ) * - col0 / - 61 + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 AS col1 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT col0 + - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT col0 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 98 + 66 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL - - 23 * COUNT( * ) col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3617
SELECT ALL - - 23 * COUNT ( * ) col0 FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= col2 * + + col0 * + 92
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 + + 16 AND - 66
----

query I rowsort
SELECT ALL - 0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 94 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3621
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 94 IS NOT NULL
----
0

query II rowsort
SELECT ALL - col1, - col1 AS col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3623
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( + col2, col1 / + col1, - col2 / - + 98 * + col2 * - CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-3623
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( + col2, col1 / + col1, - col2 / - + 98 * + col2 * - CAST ( NULL AS INTEGER ) + - col2 )
----

query I rowsort
SELECT ALL 48 * + - 29 AS col2 FROM tab1
----
-1392
-1392
-1392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT ALL + col0 * + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + col0 * + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 - 27 - col2 - - 44 + - col0 / - 78 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT DISTINCT + col1 DIV - - 80 * + + col2 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3627
SELECT DISTINCT + col1 / - - 80 * + + col2 col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + 28 * + col1 + - ( + - col0 ) AND - col1 * 51 + + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT MAX( + 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3629
SELECT MAX ( + 3 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT DISTINCT + - col1 * col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-182
-25
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + - col1 * col0 / col2 AS col1 FROM tab0 AS cor0
----
-182
-25
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT - col2 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT - col2 / + + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT SUM( + + col0 ) * - 8 + - 15 FROM tab2
----
-1495

skipif mysql # not compatible
query I rowsort label-3632
SELECT SUM ( + + col0 ) * - 8 + - 15 FROM tab2
----
-1495

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - col0 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col2 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - SUM( ALL - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3635
SELECT - SUM ( ALL - col2 ) AS col0 FROM tab2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3636
SELECT CAST( + COUNT( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1, 8 AS col1 FROM tab2 AS cor0
----
0
8

skipif mysql # not compatible
query II rowsort label-3636
SELECT CAST ( + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, 8 AS col1 FROM tab2 AS cor0
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3637
SELECT ALL - 50 + 70 - - - 37 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-17
NULL
-17
NULL
-17
NULL

skipif mysql # not compatible
query II rowsort label-3637
SELECT ALL - 50 + 70 - - - 37 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-17
NULL
-17
NULL
-17
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col1 ) + - 54 col0 FROM tab2 AS cor0
----
-105
-121
-131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3639
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3639
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - + 58 + COUNT( * ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - + 58 + COUNT ( * ) FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - COUNT( * ) FROM tab1 WHERE - - 98 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COUNT ( * ) FROM tab1 WHERE - - 98 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND + col2
----

query I rowsort
SELECT - - 81 + col2 + 84 FROM tab1 AS cor0
----
224
233
261

query I rowsort
SELECT ALL - col0 * + + 88 * - - ( col2 ) FROM tab1 AS cor0
----
-430848
-441320
-544544

query I rowsort
SELECT ALL - 31 + + col1 FROM tab0 AS cor0
----
-10
-30
50

query I rowsort
SELECT - 37 + + 99 * - 62 FROM tab0 cor0
----
-6175
-6175
-6175

query I rowsort
SELECT ALL + 16 - - 86 AS col0 FROM tab2 cor0
----
102
102
102

query I rowsort
SELECT - 7 * - - col0 + col2 FROM tab2 cor0
----
-299
-408
-467

query I rowsort
SELECT + - 27 + + + col2 FROM tab2 AS cor0
----
-4
13
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col1 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT col2, col1 * - + col2 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

query II rowsort
SELECT - 8, - ( - 25 ) AS col0 FROM tab2 AS cor0
----
-8
25
-8
25
-8
25

query I rowsort
SELECT - 28 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3655
SELECT DISTINCT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) / 10 <> + + col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-3655
SELECT DISTINCT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) / 10 <> + + col0 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 90 >= + + 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 NOT BETWEEN + col0 + + + col2 AND NULL
----

query I rowsort
SELECT ALL - + 5 * - col1 AS col1 FROM tab2 AS cor0
----
255
335
385

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( col1, + col2, 38, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT DISTINCT - col2 * col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
11
25
44

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - col2 * col2 / - col0 AS col1 FROM tab2 AS cor0
----
11
25
44

query I rowsort
SELECT ALL 27 + - 44 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
41
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT DISTINCT - - col0 DIV + col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT - - col0 / + col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT + col2 * + + col0 * + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3665
SELECT DISTINCT + - COUNT( * ) DIV - - ( 31 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT + - COUNT ( * ) / - - ( 31 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 91 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - MIN( - 54 ) FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-3667
SELECT - MIN ( - 54 ) FROM tab0 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 17 * - COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3668
SELECT 17 * - COUNT ( * ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + - COUNT( ALL + + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + - COUNT ( ALL + + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT - ( + col1 ) DIV col2 + - 64 FROM tab2
----
-65
-65
-66

skipif mysql # not compatible
query I rowsort label-3670
SELECT - ( + col1 ) / col2 + - 64 FROM tab2
----
-65
-65
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3671
SELECT + 39 DIV 14 * - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3671
SELECT + 39 / 14 * - COUNT ( * ) FROM tab1
----
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col2 + - 32 * + - 41 * ( 12 ) + + col0 + + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3673
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - 99 + + col1 - - - CAST( + col1 AS SIGNED ) * col0 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-3673
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - 99 + + col1 - - - CAST ( + col1 AS INTEGER ) * col0 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT DISTINCT - + 64 DIV - + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT - + 64 / - + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
24

query I rowsort
SELECT + col0 + + 23 AS col0 FROM tab1 cor0
----
108
114
74

query I rowsort
SELECT ALL 25 * - 77 AS col1 FROM tab0
----
-1925
-1925
-1925

query I rowsort
SELECT + col1 * + 44 FROM tab0 AS cor0
----
3564
44
924

query I rowsort
SELECT ALL + - col2 * + 79 FROM tab0 AS cor0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL + 63 + - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + 63 + - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - 98 - + COUNT( * ) FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-3680
SELECT - 98 - + COUNT ( * ) FROM tab1 AS cor0
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 36 - col1 col1 FROM tab0 cor0
----
-45
15
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT - 90 + + MIN( - 39 ) FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - 90 + + MIN ( - 39 ) FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + MIN( DISTINCT 10 ) AS col1 FROM tab0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT + MIN ( DISTINCT 10 ) AS col1 FROM tab0 WHERE NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 col2, + 37 - - col2 + + col2 FROM tab1
----
-24
155
-24
173
-24
229

query II rowsort
SELECT - 14, col2 FROM tab1
----
-14
59
-14
68
-14
96

query II rowsort
SELECT 82 AS col2, col1 FROM tab1
----
82
14
82
47
82
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT + CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT + CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT ALL col0 * + 29 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL col0 * + 29 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

query II rowsort
SELECT col2 AS col0, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3691
SELECT - CAST( ( + - COUNT( * ) ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3691
SELECT - CAST ( ( + - COUNT ( * ) ) AS INTEGER ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + col2 ) ) col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT ALL 55 + 67 DIV col0 AS col0 FROM tab2
----
55
56
56

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL 55 + 67 / col0 AS col0 FROM tab2
----
55
56
56

query I rowsort
SELECT col0 + 23 * + 86 AS col1 FROM tab1 AS cor0 WHERE NOT - 24 IS NULL
----
2029
2063
2069

query I rowsort
SELECT DISTINCT - 94 * + - ( col2 ) FROM tab2 AS cor0
----
2162
3760
5452

query I rowsort
SELECT ALL - col0 * - col2 + + col1 * col0 AS col0 FROM tab1 cor0
----
10465
5440
5610

query I rowsort
SELECT DISTINCT - + col1 * + col2 + + 36 * - col1 + + col2 + col1 FROM tab2 AS cor0
----
-2935
-5735
-6173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT - 88 + 6 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT - 88 + 6 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 55 * + - 6 + + 2 * - col0 AS col2 FROM tab0
----
-360
-504
-524

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + COUNT( * ) + 8 AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-3700
SELECT + COUNT ( * ) + 8 AS col1 FROM tab1
----
11

query I rowsort
SELECT col1 + - - 73 AS col1 FROM tab0
----
154
74
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + + col1 col1 FROM tab1
----
39
48
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT col2 DIV + 29 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3703
SELECT col2 / + 29 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL 74 * - + COUNT( * ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL 74 * - + COUNT ( * ) FROM tab2
----
-222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT MIN( ALL col0 ) DIV + 48 col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3705
SELECT DISTINCT MIN ( ALL col0 ) / + 48 col1 FROM tab1
----
1

query I rowsort
SELECT ALL + ( + + 93 ) * col1 FROM tab0 AS cor0 WHERE + 47 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ALL ( + - col2 ) DIV col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL ( + - col2 ) / col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT CAST( NULL AS SIGNED ) - + 82 * + ( - ( col1 ) ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT CAST ( NULL AS INTEGER ) - + 82 * + ( - ( col1 ) ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT - 21 + - - SUM( 53 ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3709
SELECT - 21 + - - SUM ( 53 ) FROM tab0 AS cor0
----
138

query I rowsort
SELECT + + 27 * - + 32 AS col0 FROM tab1 AS cor0
----
-864
-864
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL + col1 + + - col2 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + col1 + + - col2 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - - SUM( DISTINCT - col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3712
SELECT - - SUM ( DISTINCT - col2 ) FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3713
SELECT COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT ( - CAST( + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3714
SELECT ( - CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3715
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 98 > col1 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
0

query II rowsort
SELECT col2 AS col1, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT COUNT( * ) * 63 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT COUNT ( * ) * 63 FROM tab0
----
189

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 19 NOT BETWEEN - col1 AND - ( - col1 ) + col1
----

query II rowsort
SELECT DISTINCT - 92, col0 AS col1 FROM tab1
----
-92
51
-92
85
-92
91

query I rowsort
SELECT 21 FROM tab0 WHERE NOT - + 60 IS NULL
----
21
21
21

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN 72 AND + 99
----
51
14
96

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + + MIN( 14 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3725
SELECT + + MIN ( 14 ) FROM tab1 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT DISTINCT + 5 * ( col2 ) DIV 18 AS col2 FROM tab0
----
13
2
27

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + 5 * ( col2 ) / 18 AS col2 FROM tab0
----
13
2
27

query I rowsort
SELECT DISTINCT + col2 + - - col0 + col1 * - col0 FROM tab0 AS cor0
----
-1153
-1730
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----
0

query II rowsort
SELECT + + col2 * - + 40 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
-1880
-81
-3960
-1
-400
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL + ( 75 ) + + COUNT( - - 69 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + ( 75 ) + + COUNT ( - - 69 ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col1 + - + col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT col0 + + + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL - 31 FROM tab0 cor0 WHERE NOT NULL > 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 AS col0, - col1 col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT 39 * - COUNT( * ) + - 11 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + 86 * + ( - col0 ), col2 )
----
-11

skipif mysql # not compatible
query I rowsort label-3735
SELECT 39 * - COUNT ( * ) + - 11 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + 86 * + ( - col0 ), col2 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3736
SELECT CAST( + - col0 AS SIGNED ), col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-3736
SELECT CAST ( + - col0 AS INTEGER ), col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab0 WHERE ( col2 + ( col0 ) * col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * - col2 * + col0 AS col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT col0 + 37 AS col0 FROM tab1
----
122
128
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3740
SELECT 29 + + 27 AS col1, col0 + - CAST( NULL AS SIGNED ) + col1 col1 FROM tab2
----
56
NULL
56
NULL
56
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3740
SELECT 29 + + 27 AS col1, col0 + - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab2
----
56
NULL
56
NULL
56
NULL

query I rowsort
SELECT DISTINCT - col2 * - + 45 AS col1 FROM tab0
----
2115
4455
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + 31 col1 FROM tab2 WHERE NOT col1 + + col0 + - 10 + col0 IS NULL
----
54
71
89

query I rowsort
SELECT ALL col0 * + 2 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT ALL COUNT( * ) * + - ( CAST( NULL AS SIGNED ) ) + + 36 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL COUNT ( * ) * + - ( CAST ( NULL AS INTEGER ) ) + + 36 FROM tab2
----
NULL

query I rowsort
SELECT 52 + + ( + col2 ) + - 33 FROM tab1
----
115
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL MIN( - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL MIN ( - - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT - col0 + + 72 AS col0 FROM tab2 AS cor0
----
-3
26
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT - col2 DIV + ( + col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-3748
SELECT - col2 / + ( + col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + + COUNT( * ) + + MAX( - + 96 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3749
SELECT + + COUNT ( * ) + + MAX ( - + 96 ) FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - col1 - + - 13 * col1 AS col0 FROM tab1 AS cor0
----
168
564
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <= ( - col0 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3752
SELECT DISTINCT col2 - + - CAST( - + col1 AS SIGNED ) + + 66 col2, ( col0 ) FROM tab0
----
164
97
32
15
55
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3752
SELECT DISTINCT col2 - + - CAST ( - + col1 AS INTEGER ) + + 66 col2, ( col0 ) FROM tab0
----
164
97
32
15
55
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT MAX( ALL + 32 ) col2 FROM tab2
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT MAX ( ALL + 32 ) col2 FROM tab2
----
32

query I rowsort
SELECT ALL 98 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT - SUM( ALL + 27 ) DIV - 74 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3755
SELECT - SUM ( ALL + 27 ) / - 74 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col2 * - - 73 AS col1 FROM tab2 AS cor0
----
1679
2920
4234

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT + 93 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3757
SELECT + 93 / + col0 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + 44 * - - col0 * - + col0 + - + col2 FROM tab1 AS cor0
----
-114540
-317959
-364432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 73 col1 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - 21 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + SUM( DISTINCT - 78 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + SUM ( DISTINCT - 78 ) FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT + col1 + - - col1 AS col1 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3762
SELECT + col1 + - - col1 AS col1 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - col2 * - 92 FROM tab2 AS cor0
----
2116
3680
5336

query II rowsort
SELECT DISTINCT col2 * - col0 AS col2, col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * 8, 0 col1 FROM tab2 AS cor0
----
368
0
512
0
600
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT ALL - + COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 74 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT COUNT( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

query II rowsort
SELECT col1, - 20 AS col0 FROM tab1
----
14
-20
47
-20
5
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> - col1
----

query I rowsort
SELECT col0 + + 89 + + col1 - - - 66 * col2 * - col0 FROM tab1 AS cor0
----
323290
331169
408635

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - 37 + COUNT( * ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - 37 + COUNT ( * ) FROM tab2 AS cor0
----
-34

query I rowsort
SELECT - 10 + + + ( - + col0 ) AS col0 FROM tab0
----
-107
-25
-97

query II rowsort
SELECT DISTINCT - col0 + col1 * - 44 + + col0 AS col0, + col1 AS col2 FROM tab1
----
-2068
47
-220
5
-616
14

query I rowsort
SELECT + 48 AS col2 FROM tab2 WHERE NULL IS NULL
----
48
48
48

query I rowsort
SELECT ALL + 69 + - + 53 FROM tab1 WHERE NOT NULL < - 71
----

query I rowsort
SELECT col1 * 92 * - 54 FROM tab0
----
-104328
-402408
-4968

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 29 IN ( + 22 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT 53 - col1 DIV col0 - + 72 FROM tab1 cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-3780
SELECT 53 - col1 / col0 - + 72 FROM tab1 cor0
----
-19
-19
-19

query I rowsort
SELECT col0 - 85 AS col2 FROM tab0 AS cor0
----
-70
12
2

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + ( - + col0 ) NOT BETWEEN - col0 AND - + col0 - - col1 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 58 * + 91 * - 37 AS col0 FROM tab2 AS cor0
----
-195286
-195286
-195286

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT - 62 * - COUNT( - col2 ) * - 54 + MIN( col1 ) col0 FROM tab0 AS cor0
----
-10043

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3784
SELECT - 62 * - COUNT ( - col2 ) * - 54 + MIN ( col1 ) col0 FROM tab0 AS cor0
----
-10043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT - COUNT( * ) * + CAST( + + 63 AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3785
SELECT - COUNT ( * ) * + CAST ( + + 63 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + SUM( - 52 ) FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-3786
SELECT + SUM ( - 52 ) FROM tab2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL SUM( + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL SUM ( + - col2 ) FROM tab2
----
-121

query II rowsort
SELECT ALL col0 * - + ( + col2 ), col0 * col1 + + + col2 * + col2 AS col0 FROM tab1
----
-4896
9930
-5015
3906
-6188
8901

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT MAX( ALL + + 30 ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT MAX ( ALL + + 30 ) AS col0 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3790
SELECT DISTINCT - 4 AS col0, col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN - col2 * col1 - + 29 AND NULL
----

skipif mysql # not compatible
query II rowsort label-3790
SELECT DISTINCT - 4 AS col0, col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 * col1 - + 29 AND NULL
----

query I rowsort
SELECT DISTINCT 11 * + col1 AS col1 FROM tab1 AS cor0
----
154
517
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3792
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 72 + - + col2 + - + col2 * + 61 col2 FROM tab2 AS cor0
----
1228
2246
3064

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT MIN( col0 ) * ( 77 ) FROM tab2
----
3542

skipif mysql # not compatible
query I rowsort label-3794
SELECT MIN ( col0 ) * ( 77 ) FROM tab2
----
3542

query I rowsort
SELECT col0 + - 87 FROM tab2 WHERE ( NULL ) IS NULL
----
-12
-23
-41

query I rowsort
SELECT + 51 * ( 30 ) AS col0 FROM tab0
----
1530
1530
1530

query I rowsort
SELECT DISTINCT - ( + 67 ) AS col2 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT COUNT( * ) * COUNT( - 5 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3798
SELECT COUNT ( * ) * COUNT ( - 5 ) FROM tab0
----
9

query I rowsort
SELECT AVG ( DISTINCT + 38 ) AS col2 FROM tab1 WHERE 54 * + ( 32 ) - ( + col1 ) < NULL
----
NULL

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL < - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3801
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE col1 * 42 < ( - 36 )
----

skipif mysql # not compatible
query I rowsort label-3801
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE col1 * 42 < ( - 36 )
----

query I rowsort
SELECT col0 + 61 AS col1 FROM tab1 WHERE NOT col2 >= col2
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - 88 AND col2 / 22
----

query I rowsort
SELECT DISTINCT col2 + ( + 46 ) AS col1 FROM tab0
----
145
56
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 - - 38 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 - - 38 <> NULL
----
0

query I rowsort
SELECT col2 * + col1 + - 42 AS col0 FROM tab1
----
1302
253
3154

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * - 44 AS col0 FROM tab0
----
-2068
-4356
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT - COUNT( ALL col1 ) * 91 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT - COUNT ( ALL col1 ) * 91 FROM tab0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT 69 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT 69 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT - COUNT( * ) DIV 43 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT - COUNT ( * ) / 43 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 + 16 AS col2 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT 36 - + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3814
SELECT 36 - + COUNT ( * ) FROM tab0
----
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < col2 * - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT col1 * + ( + 81 * CAST( col0 AS SIGNED ) ) FROM tab2
----
190026
399168
407025

skipif mysql # not compatible
query I rowsort label-3816
SELECT col1 * + ( + 81 * CAST ( col0 AS INTEGER ) ) FROM tab2
----
190026
399168
407025

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT 49 * COUNT( * ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-3817
SELECT 49 * COUNT ( * ) FROM tab1
----
147

query I rowsort
SELECT ALL + 50 * + col0 FROM tab2 WHERE ( NULL ) <> ( ( - 11 ) )
----

query I rowsort
SELECT DISTINCT col0 - + 98 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-23
-34
-52

query I rowsort
SELECT DISTINCT - 97 * col1 FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 93 * + col1 FROM tab1
----
-1302
-4371
-465

query I rowsort
SELECT + 59 * + 98 + col0 FROM tab2
----
5828
5846
5857

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 NOT BETWEEN NULL AND 56
----

query I rowsort
SELECT - 77 + col2 AS col0 FROM tab1 cor0
----
-18
-9
19

query I rowsort
SELECT ALL col1 + - 69 FROM tab1 cor0 WHERE NOT + 30 * col2 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT 78 + col2 FROM tab0 AS cor0
----
125
177
88

query I rowsort
SELECT + 57 * 57 AS col1 FROM tab0 AS cor0
----
3249
3249
3249

query I rowsort
SELECT col0 * - col1 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL MIN( 78 ) + SUM( DISTINCT - ( + col2 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL MIN ( 78 ) + SUM ( DISTINCT - ( + col2 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT MAX( ALL 39 ) + - 59 DIV + COUNT( * ) col2 FROM tab1 cor0 CROSS JOIN tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3831
SELECT MAX ( ALL 39 ) + - 59 / + COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3832
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL SUM( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL SUM ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 < ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 26
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT - - COUNT( * ) DIV - MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - - COUNT ( * ) / - MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 55 * - 56 FROM tab1 AS cor0
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT COUNT( * ) * 77 AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3837
SELECT COUNT ( * ) * 77 AS col0 FROM tab2 AS cor0
----
231

query I rowsort
SELECT ALL - - col2 * - 79 FROM tab0 AS cor0
----
-3713
-7821
-790

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 94 + - 24 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 83 + 86 FROM tab1 AS cor0 WHERE NOT ( 93 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT + MIN( + col1 ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3843
SELECT + MIN ( + col1 ) col1 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 78 * 17 ) NOT BETWEEN ( + ( + col0 ) ) AND - col0
----

query I rowsort
SELECT ALL - 17 * 43 FROM tab2
----
-731
-731
-731

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - 73 * - - MIN( - ( ( + col2 ) ) ) FROM tab2
----
4234

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - 73 * - - MIN ( - ( ( + col2 ) ) ) FROM tab2
----
4234

query I rowsort
SELECT - col1 + - ( - 45 ) AS col1 FROM tab1
----
-2
31
40

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT COUNT( * ) + - 4 * + 72 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
-288

skipif mysql # not compatible
query I rowsort label-3849
SELECT COUNT ( * ) + - 4 * + 72 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
-288

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) BETWEEN + 68 AND NULL
----

query I rowsort
SELECT ALL - 2 AS col0 FROM tab1 WHERE NULL <> 58 * + col1
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 <> ( 18 )
----

query I rowsort
SELECT ALL + 71 * col2 + - col0 FROM tab1 AS cor0
----
4104
4737
6765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT ALL - SUM( ALL + 60 ) DIV 32 FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - SUM ( ALL + 60 ) / 32 FROM tab2 cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * 22 + + 69 = - ( ( 77 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3856
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT - col1 * - + col0 * + col1 + 19 AS col1 FROM tab2 AS cor0
----
119665
336694
379475

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 54 < + 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL + COUNT( * ) - 43 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + COUNT ( * ) - 43 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 93 + col1 FROM tab1 WHERE - 72 >= ( + col0 * + ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT - ( - MIN( ALL - col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT - ( - MIN ( ALL - col2 ) ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT + col1 + - col1 * + 34 FROM tab1 WHERE ( - + col0 * 27 - - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT COUNT( DISTINCT - col2 ) + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3864
SELECT COUNT ( DISTINCT - col2 ) + COUNT ( * ) FROM tab2 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + col2 - + col1 = - col2 + - col2 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + 36 * - + 60 + + MAX( + col0 ) FROM tab2 AS cor0
----
-2085

skipif mysql # not compatible
query I rowsort label-3866
SELECT + 36 * - + 60 + + MAX ( + col0 ) FROM tab2 AS cor0
----
-2085

query I rowsort
SELECT DISTINCT + col1 + - col0 * - col0 AS col1 FROM tab0 cor0
----
306
7590
9410

query I rowsort
SELECT col2 * + 52 + + col1 * 70 AS col2 FROM tab0 AS cor0
----
1990
5218
8114

query I rowsort
SELECT ALL + - col0 * col1 - + 10 + col0 AS col1 FROM tab1 AS cor0
----
-350
-4196
-673

query I rowsort
SELECT + 45 * - col0 * + 0 + 18 AS col2 FROM tab2 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 12 * - col1 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT - 15 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT - 15 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT DISTINCT 8 * - - COUNT( * ) * + 97 + 29 AS col1 FROM tab0
----
2357

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT 8 * - - COUNT ( * ) * + 97 + 29 AS col1 FROM tab0
----
2357

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3878
SELECT * FROM tab0 WHERE ( + ( + - CAST( NULL AS SIGNED ) ) * col2 ) = col1
----

skipif mysql # not compatible
query III rowsort label-3878
SELECT * FROM tab0 WHERE ( + ( + - CAST ( NULL AS INTEGER ) ) * col2 ) = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 93 col1 FROM tab2 WHERE NULL > ( - col2 ) + + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + COUNT( * ) * 66 * + SUM( + col0 ) FROM tab2
----
36630

skipif mysql # not compatible
query I rowsort label-3880
SELECT + COUNT ( * ) * 66 * + SUM ( + col0 ) FROM tab2
----
36630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + MIN( ALL + col2 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + MIN ( ALL + col2 ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT ALL - col1 DIV - 69 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - col1 / - 69 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT COUNT( * ) + 23 FROM tab2 WHERE NULL >= ( NULL )
----
23

skipif mysql # not compatible
query I rowsort label-3883
SELECT COUNT ( * ) + 23 FROM tab2 WHERE NULL >= ( NULL )
----
23

query I rowsort
SELECT + col2 - + 23 * - + col1 * + - col0 FROM tab0
----
-2132
-27898
-42011

query III rowsort
SELECT * FROM tab2 WHERE 94 * - 73 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT + 67 - - col1 + - + col0 * + - CAST( col0 AS SIGNED ) * col2 * col1 FROM tab0 AS cor0
----
1589578
856723
931559

skipif mysql # not compatible
query I rowsort label-3886
SELECT + 67 - - col1 + - + col0 * + - CAST ( col0 AS INTEGER ) * col2 * col1 FROM tab0 AS cor0
----
1589578
856723
931559

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + - SUM( 87 ) * + 75 FROM tab0 AS cor0 WHERE NOT ( NULL <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT + - SUM ( 87 ) * + 75 FROM tab0 AS cor0 WHERE NOT ( NULL <> NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 83 < + 20
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + 14 - - 1 + - - col0 ) <= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3890
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - - col1 * - + 88 / - - col2 / col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3890
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - - col1 * - + 88 / - - col2 / col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col0 col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + - 83 * + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-3892
SELECT + - 83 * + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - 97 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 97 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-291

query I rowsort
SELECT - col1 - 69 * + col1 FROM tab0 AS cor0 WHERE NOT - 15 NOT BETWEEN ( NULL ) AND ( + col1 ) AND ( 93 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + MIN( col0 ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3895
SELECT + MIN ( col0 ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT + 11 * - 18 FROM tab2 cor0
----
-198
-198
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + + 59 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-3897
SELECT + + 59 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-177

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + 15 >= - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 56 >= NULL
----

query I rowsort
SELECT DISTINCT + 56 * - col0 * col1 FROM tab1
----
-23800
-239512
-39984

query I rowsort
SELECT ( - 62 ) FROM tab1 WHERE NOT ( NOT col0 IS NULL )
----

query I rowsort
SELECT + col0 * - - ( 87 ) FROM tab0 WHERE NOT + 75 NOT IN ( + 77 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 / col1 + + 64 * - 44 ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL SUM( ALL - col0 ) * - COUNT( ALL - col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL SUM ( ALL - col0 ) * - COUNT ( ALL - col0 ) FROM tab0
----
597

query III rowsort
SELECT * FROM tab0 WHERE NOT + 52 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + ( + col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 37, + col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT COUNT( * ) * COUNT( * ) col0 FROM tab2 WHERE NOT + + col1 NOT BETWEEN + + col2 AND col2 * col0 + - col1 + + col1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3908
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) col0 FROM tab2 WHERE NOT + + col1 NOT BETWEEN + + col2 AND col2 * col0 + - col1 + + col1
----
9

query II rowsort
SELECT + col1, - col1 AS col0 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT SUM( col1 ) * + + COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT SUM ( col1 ) * + + COUNT ( * ) FROM tab2
----
585

query I rowsort
SELECT - col0 * col1 * + - col2 + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 + + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + 15 * - col0 FROM tab1 AS cor0
----
-1275
-1365
-765

query I rowsort
SELECT + 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3915
SELECT + - MIN( CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3915
SELECT + - MIN ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 38 * col1 * - + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - + 55 - COUNT( * ) * - 58 * - + ( - COUNT( ALL - col2 ) ) AS col0 FROM tab1 AS cor0
----
467

skipif mysql # not compatible
query I rowsort label-3917
SELECT - + 55 - COUNT ( * ) * - 58 * - + ( - COUNT ( ALL - col2 ) ) AS col0 FROM tab1 AS cor0
----
467

query II rowsort
SELECT ALL + + 67 + col0 AS col2, + 35 * 9 * - col2 FROM tab0 AS cor0
----
154
-3150
164
-31185
82
-14805

query I rowsort
SELECT - + col2 - col1 - col1 * + 43 + + col2 * - col2 FROM tab1 AS cor0
----
-3760
-6760
-9928

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3920
SELECT * FROM tab2 AS cor0 WHERE + 74 * + CAST( + col0 AS SIGNED ) + 24 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3920
SELECT * FROM tab2 AS cor0 WHERE + 74 * + CAST ( + col0 AS INTEGER ) + 24 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - 91 * col1 - col1 FROM tab1 AS cor0
----
1260
4230
450

query I rowsort
SELECT - col2 / - col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - ( col0 ) + + col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3924
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1 * ( CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-3924
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1 * ( CAST ( + CAST ( NULL AS REAL ) AS REAL ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * - + 95 BETWEEN NULL AND col1 * - col0
----

query I rowsort
SELECT - col0 * - + col1 + + 31 + + 64 FROM tab0
----
1310
192
1922

query I rowsort
SELECT col1 + - col1 + - 66 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT ALL ( - 33 ) AS col1 FROM tab2
----
-33
-33
-33

query II rowsort
SELECT col1 * - - ( col0 ) AS col0, - 9 * + col1 AS col2 FROM tab2
----
2346
-459
4928
-693
5025
-603

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col1 IN ( 31 )
----
15
87
97

query I rowsort
SELECT 3 * + 34 * - 82 * + col1 * + col1 AS col1 FROM tab2
----
-21754764
-37545996
-49590156

query I rowsort
SELECT DISTINCT - col0 * col0 + + col1 * - + col0 FROM tab1 AS cor0
----
-12558
-3315
-7650

query I rowsort
SELECT DISTINCT - 41 * col1 * - col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-409836
-8241779
-87125

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT + MAX( + 14 ) FROM tab1 AS cor0 WHERE NOT col0 <> - 31 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT + MAX ( + 14 ) FROM tab1 AS cor0 WHERE NOT col0 <> - 31 + col2
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE + 53 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT ALL 16 DIV - col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL 16 / - col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT ( + ( + + 78 ) ) FROM tab0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3939
SELECT + - CAST( - CAST( + col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3939
SELECT + - CAST ( - CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT - + col0 + 66 FROM tab0 AS cor0 WHERE NOT 3 / + 34 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col2 col1, + col0 * + col2 + + + 14 AS col1 FROM tab0 cor0
----
-11
884
-34
719
98
9617

query I rowsort
SELECT - 17 + col2 + - col0 * - col2 FROM tab0
----
735
863
9685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT CAST( NULL AS SIGNED ) + - 45 + 71 / - + 98 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT CAST ( NULL AS INTEGER ) + - 45 + 71 / - + 98 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 17 AS col1 FROM tab1
----
-1445
-1547
-867

query I rowsort
SELECT 66 + - col2 * + + col1 AS col2 FROM tab1
----
-1278
-229
-3130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col2, col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1 + + 17 + + - col2 AS col1, - col0 + 74 - col1 FROM tab0 AS cor0
----
-111
-22
-14
-34
-83
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + 49 < + 45 - 99
----

query II rowsort
SELECT 5 AS col0, col1 AS col0 FROM tab0 AS cor0
----
5
1
5
21
5
81

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
50

query I rowsort
SELECT - 4 + + col0 * col2 - col0 FROM tab1
----
4841
4926
6093

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - + MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + 47 * + col0 + col2 AS col1 FROM tab1 AS cor0 WHERE NULL <= 55 - 29 * - col1
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE + col2 + - col2 < - 55
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + 26 * - + col1 / col1 + + 78 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - - col2 * - col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

onlyif mysql # DIV for integer division: 
query II rowsort label-3957
SELECT ALL + ( - 3 ) - 8 DIV - col0 AS col2, + col0 FROM tab0 AS cor0
----
-3
15
-3
87
-3
97

skipif mysql # not compatible
query II rowsort label-3957
SELECT ALL + ( - 3 ) - 8 / - col0 AS col2, + col0 FROM tab0 AS cor0
----
-3
15
-3
87
-3
97

query II rowsort
SELECT + col2, + col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT COUNT( DISTINCT - 19 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3959
SELECT COUNT ( DISTINCT - 19 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT DISTINCT COUNT( * ) DIV - - 54 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT COUNT ( * ) / - - 54 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL - COUNT( DISTINCT - + 42 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - COUNT ( DISTINCT - + 42 ) AS col0 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 + + - 55 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 BETWEEN col1 + - 78 AND 52 * + 69
----

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab0, tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT + MIN( ALL + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT + MIN ( ALL + col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT SUM( ALL - col2 ) * + 44 FROM tab2 AS cor0
----
-5324

skipif mysql # not compatible
query I rowsort label-3967
SELECT SUM ( ALL - col2 ) * + 44 FROM tab2 AS cor0
----
-5324

query I rowsort
SELECT + 8 * - 31 * + 89 FROM tab0 AS cor0
----
-22072
-22072
-22072

query I rowsort
SELECT + 13 * col2 AS col1 FROM tab0 cor0
----
1287
130
611

query I rowsort
SELECT - col0 * + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT DISTINCT CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT ALL + COUNT( * ) AS col0, + 84 * - COUNT( * ) * - COUNT( * ) + - ( + 99 ) FROM tab2 cor0
----
3
657

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL + COUNT ( * ) AS col0, + 84 * - COUNT ( * ) * - COUNT ( * ) + - ( + 99 ) FROM tab2 cor0
----
3
657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col0 ) col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3975
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT col0 NOT BETWEEN NULL AND - + 99 + + - col2 + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3975
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT col0 NOT BETWEEN NULL AND - + 99 + + - col2 + + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT - - col0 DIV + 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3976
SELECT - - col0 / + 93 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, 60 col0 FROM tab2 AS cor0
----
51
60
67
60
77
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - MIN( - 55 ) AS col1 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3978
SELECT - MIN ( - 55 ) AS col1 FROM tab0 AS cor0
----
55

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 11 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - + 58 * 92 + - MAX( + col1 ) - + 16 * - + 67 / 37 FROM tab1 WHERE 84 + + - 56 * + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT - + 58 * 92 + - MAX ( + col1 ) - + 16 * - + 67 / 37 FROM tab1 WHERE 84 + + - 56 * + - col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + + - col0 col0 FROM tab2
----
-11
0
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3982
SELECT - - 21 AS col2, - 58 + - + CAST( NULL AS SIGNED ) FROM tab0 WHERE - - 96 > NULL
----

skipif mysql # not compatible
query II rowsort label-3982
SELECT - - 21 AS col2, - 58 + - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - - 96 > NULL
----

query I rowsort
SELECT + col1 + col1 * - + col0 * + - col1 + ( col2 ) FROM tab1
----
10106
201134
2189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT - CAST( + + 98 AS SIGNED ) * + + col2 + + col1 * col1 * 7 FROM tab2
----
15953
25739
37583

skipif mysql # not compatible
query I rowsort label-3984
SELECT - CAST ( + + 98 AS INTEGER ) * + + col2 + + col1 * col1 * 7 FROM tab2
----
15953
25739
37583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3985
SELECT + - ( - + 21 ) + SUM( + col0 ) DIV 73 + - - COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3985
SELECT + - ( - + 21 ) + SUM ( + col0 ) / 73 + - - COUNT ( * ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL - col1 * - col1 - col1 AS col2 FROM tab2
----
2550
4422
5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 71 * ( + col0 ) - - col2 + ( - col2 ) + - + 97 col0 FROM tab2
----
150139
290719
399278

query I rowsort
SELECT 71 - + - 7 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + 70 * col0 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT COUNT( * ) * 92 - + MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
218

skipif mysql # not compatible
query I rowsort label-3990
SELECT COUNT ( * ) * 92 - + MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
218

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 64 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
64
64
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 27 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT DISTINCT COUNT( * ) DIV ( + COUNT( * ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT COUNT ( * ) / ( + COUNT ( * ) ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3995
SELECT + col2, CAST( - + col1 AS SIGNED ) DIV 63 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-3995
SELECT + col2, CAST ( - + col1 AS INTEGER ) / 63 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT ALL ( + + MAX( col2 ) ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL ( + + MAX ( col2 ) ) AS col2 FROM tab2
----
58

query I rowsort
SELECT ALL 92 * + - col0 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT + - ( - col0 ) FROM tab2 WHERE NOT - + 54 IS NOT NULL
----

query I rowsort
SELECT - col2 * 12 * - + 57 FROM tab1
----
40356
46512
65664

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL 58 * + COUNT( * ) FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL 58 * + COUNT ( * ) FROM tab1
----
174

query I rowsort
SELECT - col0 * - + col2 AS col0 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT - COUNT( ALL + - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4002
SELECT - COUNT ( ALL + - col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4003
SELECT + col2 col0, + 46 + - - col1 + CAST( - - col0 AS SIGNED ) * - col2 FROM tab2
----
23
-961
40
-2437
58
-4237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4003
SELECT + col2 col0, + 46 + - - col1 + CAST ( - - col0 AS INTEGER ) * - col2 FROM tab2
----
23
-961
40
-2437
58
-4237

query I rowsort
SELECT DISTINCT 9 * - 76 FROM tab1 AS cor0
----
-684

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + + col2 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT ALL + COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT - 22 * + - SUM( DISTINCT 16 ) AS col1 FROM tab1
----
352

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT - 22 * + - SUM ( DISTINCT 16 ) AS col1 FROM tab1
----
352

query II rowsort
SELECT DISTINCT col0 + col1, - 15 * col1 AS col2 FROM tab0 cor0
----
108
-315
96
-1215
98
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL + - 73 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> col2 + - - 84
----
-73

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + - 73 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> col2 + - - 84
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT SUM( ALL - col1 ) + + 96 * 25 * - + COUNT( * ) FROM tab1 AS cor0
----
-7266

skipif mysql # not compatible
query I rowsort label-4011
SELECT SUM ( ALL - col1 ) + + 96 * 25 * - + COUNT ( * ) FROM tab1 AS cor0
----
-7266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 46 ) col0 FROM tab0 AS cor0 WHERE NULL IN ( col2, col2 * + col2, + col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 36 + + col1 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + ( + - col1 ) ) col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 92 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT ALL - 17 AS col2, MAX( ALL + col2 ) FROM tab1
----
-17
96

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL - 17 AS col2, MAX ( ALL + col2 ) FROM tab1
----
-17
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + + 94 col2 FROM tab1
----
4990
5109
6282

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT + 75 DIV col2 AS col1 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4019
SELECT + 75 / col2 AS col1 FROM tab2
----
1
1
3

query II rowsort
SELECT DISTINCT + 58, + 58 * + - col2 AS col2 FROM tab0
----
58
-2726
58
-5742
58
-580

query I rowsort
SELECT DISTINCT col1 * + 97 AS col2 FROM tab0
----
2037
7857
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + col0 * 9 * 13 col2 FROM tab0
----
-1100853
-26325
-885573

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - COUNT( * ) FROM tab1 WHERE ( - col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COUNT ( * ) FROM tab1 WHERE ( - col1 IS NOT NULL )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4024
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT - 27 + - col0 AS col2 FROM tab1
----
-112
-118
-78

query II rowsort
SELECT 49 AS col0, - col0 AS col1 FROM tab1
----
49
-51
49
-85
49
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL - ( + ( + + COUNT( * ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL - ( + ( + + COUNT ( * ) ) ) AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + - 28 + col1 + + + col1 * + col1 col1 FROM tab0 cor0 WHERE - 10 * - + col2 * + col0 * - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT + - 33 + + COUNT( * ) AS col2 FROM tab2 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT + - 33 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT 84 + COUNT( ALL + col1 ) col1 FROM tab1
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4030
SELECT DISTINCT 84 + COUNT ( ALL + col1 ) col1 FROM tab1
----
87

query I rowsort
SELECT - 87 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query III rowsort
SELECT * FROM tab0 WHERE + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL CAST( + 90 AS SIGNED ) * + col1 * + col2 FROM tab2 cor0
----
105570
277200
349740

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL CAST ( + 90 AS INTEGER ) * + col1 * + col2 FROM tab2 cor0
----
105570
277200
349740

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT MAX( ALL - 69 ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT MAX ( ALL - 69 ) AS col2 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - ( - 90 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4035
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - ( - 90 ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 62 ) col0 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - + col2 * + - col0 * - col1 + 50 * - col1 AS col2 FROM tab0 AS cor0
----
-19320
-61155
-9653

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - - COUNT( ALL + 54 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4038
SELECT - - COUNT ( ALL + 54 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - + COUNT( 70 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4039
SELECT - + COUNT ( 70 ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL - col2 AS col1, col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT + ( - ( col2 ) ) * + + 39 * + + col1 AS col2 FROM tab1
----
-11505
-124644
-52416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > - + col2 * - 71
----

query I rowsort
SELECT DISTINCT col1 * + 18 AS col1 FROM tab0
----
1458
18
378

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT - 40 BETWEEN NULL AND - col0
----
51
85
91

query I rowsort
SELECT - + col1 * - 0 * col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4047
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / + + CAST( col2 AS SIGNED ) <= col2
----

skipif mysql # not compatible
query III rowsort label-4047
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / + + CAST ( col2 AS INTEGER ) <= col2
----

query I rowsort
SELECT + + 79 * + 1 AS col2 FROM tab0 AS cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 NOT IN ( - 5 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - 78
----

query I rowsort
SELECT - 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + - col1 / col1 + + col0 / + 2 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4053
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS DECIMAL ) + + - ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4053
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS REAL ) + + - ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT - - ( + COUNT( + + 12 ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4054
SELECT - - ( + COUNT ( + + 12 ) ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL col0 FROM tab1 cor0 WHERE + col0 NOT IN ( - CAST( NULL AS SIGNED ), - 99 )
----

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL col0 FROM tab1 cor0 WHERE + col0 NOT IN ( - CAST ( NULL AS INTEGER ), - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - + COUNT( * ) * COUNT( * ) * 43 AS col2 FROM tab0 AS cor0
----
-387

skipif mysql # not compatible
query I rowsort label-4056
SELECT - + COUNT ( * ) * COUNT ( * ) * 43 AS col2 FROM tab0 AS cor0
----
-387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT DISTINCT - col1 + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT - col1 + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 3 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-222
-7566
-9406

query I rowsort
SELECT + col1 * 18 + - col1 AS col2 FROM tab1 AS cor0
----
238
799
85

query I rowsort
SELECT + - 16 * - 10 * + 15 AS col0 FROM tab0 AS cor0
----
2400
2400
2400

query II rowsort
SELECT ALL - col1 + + col1 AS col1, 10 AS col2 FROM tab2 AS cor0
----
0
10
0
10
0
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT 99 DIV + + col2 + ( - - col2 ) FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT 99 / + + col2 + ( - - col2 ) FROM tab1
----
60
69
97

query I rowsort
SELECT ALL - 65 - + + 55 FROM tab0
----
-120
-120
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4065
SELECT ALL - 60 * + col2 col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-1380
NULL
-2400
NULL
-3480
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4065
SELECT ALL - 60 * + col2 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1380
NULL
-2400
NULL
-3480
NULL

query I rowsort
SELECT ALL 94 * + + 9 * - col2 FROM tab1
----
-49914
-57528
-81216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 25 * + + 56 IS NOT NULL AND NULL = ( - col1 / + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL 60 * COUNT( * ) AS col1 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL 60 * COUNT ( * ) AS col1 FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT + MAX( + col1 ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + MAX ( + col1 ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
47

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 63 + 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query II rowsort
SELECT 65 AS col1, col2 FROM tab1
----
65
59
65
68
65
96

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * col0 + + col1 / + col0 BETWEEN col0 + col0 + - 73 + - col2 * col1 * + 86 * - ( - - col1 ) / - + ( - + 62 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + ( + col0 ) / - - ( - ( + - col1 ) ), 27 )
----

query II rowsort
SELECT - col0 AS col0, 90 AS col0 FROM tab0 AS cor0
----
-15
90
-87
90
-97
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4076
SELECT ALL ( CAST( + + col1 AS SIGNED ) ) AS col2, col0 FROM tab2 cor0
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-4076
SELECT ALL ( CAST ( + + col1 AS INTEGER ) ) AS col2, col0 FROM tab2 cor0
----
51
46
67
75
77
64

query I rowsort
SELECT ALL ( - 71 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - 98
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + col1 >= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL + COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * - + col2 FROM tab2 cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * - + col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4082
SELECT + ( - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4082
SELECT + ( - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) ) col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-4083
SELECT * FROM tab0 WHERE NOT + col0 DIV 53 * + col2 * col2 BETWEEN col1 DIV + 19 + + col0 AND ( NULL )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4083
SELECT * FROM tab0 WHERE NOT + col0 / 53 * + col2 * col2 BETWEEN col1 / + 19 + + col0 AND ( NULL )
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT + 32 DIV + col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4084
SELECT + 32 / + col2 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 22
----

query II rowsort
SELECT col0 * + col2 AS col0, 78 AS col0 FROM tab0
----
705
78
870
78
9603
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ( + - MIN( ALL - 74 ) ) AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-4087
SELECT ( + - MIN ( ALL - 74 ) ) AS col2 FROM tab0
----
74

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + + col0 / + col0 - col0 = - col1 + + col0 + - + 10 * col1
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * + 32 < + ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 * col1 * col1, + col2 * - col2 AS col1 FROM tab2
----
-237160
-1600
-260362
-3364
-59823
-529

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4091
SELECT col2 AS col1, CAST( NULL AS DECIMAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4091
SELECT col2 AS col1, CAST ( NULL AS REAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - ( col1 ) + - + col0 <= + + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 98 + - 86 AS col2 FROM tab1 AS cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 32
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 >= - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4096
SELECT + COUNT( * ) + + COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4096
SELECT + COUNT ( * ) + + COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT + COUNT( * ) + 94 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4097
SELECT + COUNT ( * ) + 94 FROM tab2 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 WHERE - + 95 * col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT IN ( + col0, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 - - + col2 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL + 6 * + CAST( 57 AS SIGNED ) FROM tab0
----
342
342
342

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + 6 * + CAST ( 57 AS INTEGER ) FROM tab0
----
342
342
342

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT DISTINCT col1 DIV - + 49 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT col1 / - + 49 AS col1 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4103
SELECT ALL + SUM( ALL col0 ) DIV - - COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL + SUM ( ALL col0 ) / - - COUNT ( * ) AS col0 FROM tab2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT + CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4104
SELECT + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT + ( MIN( + CAST( NULL AS SIGNED ) ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT + ( MIN ( + CAST ( NULL AS INTEGER ) ) ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - ( - + 52 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT - 94 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - 94 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT + col1 * + - 31 + col2 - - col2 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT + col1 * + - 31 + col2 - - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 63 <> col2
----

query II rowsort
SELECT col0 * + col1 * col1 AS col0, 85 FROM tab1
----
201019
85
2125
85
9996
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 BETWEEN 66 AND - col1 * col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4112
SELECT CAST( NULL AS DECIMAL ), - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-4112
SELECT CAST ( NULL AS REAL ), - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query II rowsort
SELECT ALL - 80, - 61 AS col2 FROM tab0
----
-80
-61
-80
-61
-80
-61

query I rowsort
SELECT DISTINCT col2 * - 33 FROM tab2
----
-1320
-1914
-759

query II rowsort
SELECT DISTINCT col2 + - col1 * + 4, col2 FROM tab0
----
-277
47
-74
10
95
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL MIN( - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL MIN ( - col2 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + 56 / 38 + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + ( - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + SUM( ALL + col0 ) FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN - col1 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT + SUM ( ALL + col0 ) FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN - col1 AND NULL )
----
NULL

query I rowsort
SELECT + 97 + 99 + + col0 AS col0 FROM tab2 cor0
----
242
260
271

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col1, ( - 19 ) / + + col0 * - - col0, + col2 + col2, - col2 )
----

query II rowsort
SELECT ALL + col1, + col2 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT 11 * 73 + col2 <> - - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - + 76 - - COUNT( * ) col2 FROM tab1 cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4123
SELECT - + 76 - - COUNT ( * ) col2 FROM tab1 cor0
----
-73

query I rowsort
SELECT DISTINCT + col2 - col0 + + + 46 * col0 FROM tab0 AS cor0
----
3925
4464
722

query I rowsort
SELECT DISTINCT - - 58 + col2 FROM tab1 AS cor0
----
117
126
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT + - 92 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4126
SELECT + - 92 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-95

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2, col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + COUNT( - col2 ) - - COUNT( * ) + + 61 * + COUNT( * ) * + COUNT( * ) FROM tab1
----
555

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + COUNT ( - col2 ) - - COUNT ( * ) + + 61 * + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT ALL MIN( + + col2 ) * - COUNT( * ) AS col0, + 19 DIV MIN( - + 45 ) FROM tab0
----
-30
0

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL MIN ( + + col2 ) * - COUNT ( * ) AS col0, + 19 / MIN ( - + 45 ) FROM tab0
----
-30
0

query I rowsort
SELECT col1 + col0 + - + col0 AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT DISTINCT MAX( DISTINCT + 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT MAX ( DISTINCT + 72 ) FROM tab2
----
72

query I rowsort
SELECT - 7 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + ( + 77 )
----

query II rowsort
SELECT - + col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query II rowsort
SELECT + 19 * 98 AS col0, ( - col2 ) + - 14 FROM tab0
----
1862
-113
1862
-24
1862
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 + - + 80 col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, 11 FROM tab0
----
-1
11
-21
11
-81
11

query II rowsort
SELECT - + 2, col2 FROM tab1 AS cor0
----
-2
59
-2
68
-2
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4138
SELECT - COUNT( * ) AS col1, + 67 AS col1 FROM tab0 AS cor0
----
-3
67

skipif mysql # not compatible
query II rowsort label-4138
SELECT - COUNT ( * ) AS col1, + 67 AS col1 FROM tab0 AS cor0
----
-3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + MIN( ALL + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + col2 + - col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + MIN ( ALL + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + col2 + - col1 IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT col2 DIV - - 75 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4140
SELECT col2 / - - 75 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 58 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT col1 * + col2 + + CAST( NULL AS SIGNED ) * + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT col1 * + col2 + + CAST ( NULL AS INTEGER ) * + - col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ( col0 ), - 96 FROM tab1 AS cor0
----
51
-96
85
-96
91
-96

query I rowsort
SELECT DISTINCT - + ( - + col1 ) + + col0 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) NOT BETWEEN NULL AND - + col0
----
87
21
10

query I rowsort
SELECT ALL - 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT * FROM tab2 WHERE - - col1 - - ( col0 ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * col1 - 4 < + 30
----

query I rowsort
SELECT DISTINCT - col1 + + 14 * - + ( - + col0 ) FROM tab2 AS cor0
----
593
819
983

query I rowsort
SELECT ALL - - 83 - - - col2 AS col1 FROM tab1 AS cor0
----
-13
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + COUNT( DISTINCT + 70 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4151
SELECT + COUNT ( DISTINCT + 70 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL col0 * col1 * 66 AS col0 FROM tab2 AS cor0
----
154836
325248
331650

query I rowsort
SELECT DISTINCT + col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT + 59 * + COUNT( * ) * 52 AS col0 FROM tab1 AS cor0
----
9204

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 59 * + COUNT ( * ) * 52 AS col0 FROM tab1 AS cor0
----
9204

query I rowsort
SELECT + 9 AS col0 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
9
9
9

query I rowsort
SELECT + 77 * - 32 FROM tab1
----
-2464
-2464
-2464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4157
SELECT - COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4157
SELECT - COUNT ( - CAST ( NULL AS REAL ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col0 FROM tab1
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL - - 29 + + col2 + + - 28 DIV + col0 + + col0 FROM tab0 AS cor0
----
126
225
90

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - - 29 + + col2 + + - 28 / + col0 + + col0 FROM tab0 AS cor0
----
126
225
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT + + col0 * 91 * + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
232960
395850
96278

skipif mysql # not compatible
query I rowsort label-4160
SELECT + + col0 * 91 * + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
232960
395850
96278

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 78 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 78 NOT BETWEEN + - col0 AND NULL
----
0

query II rowsort
SELECT + 9, + 91 * + col2 * - 61 + + 82 AS col2 FROM tab0 AS cor0
----
9
-260815
9
-549467
9
-55428

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + 77 AS col2, col1 FROM tab0
----
77
1
77
21
77
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4165
SELECT DISTINCT - SUM( + col2 ) AS col0, COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-156
3

skipif mysql # not compatible
query II rowsort label-4165
SELECT DISTINCT - SUM ( + col2 ) AS col0, COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-156
3

query II rowsort
SELECT DISTINCT 22, col2 AS col1 FROM tab2
----
22
23
22
40
22
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + 4 FROM tab2
----
23
4
40
4
58
4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4168
SELECT DISTINCT col1 * - - col0 AS col2, - CAST( NULL AS DECIMAL ) - - - col0 - - col2 FROM tab0 WHERE NOT + col0 < NULL
----

skipif mysql # not compatible
query II rowsort label-4168
SELECT DISTINCT col1 * - - col0 AS col2, - CAST ( NULL AS REAL ) - - - col0 - - col2 FROM tab0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT + ( + col2 ) - + 97 FROM tab2 AS cor0
----
-39
-57
-74

query I rowsort
SELECT ALL - - col2 - + 67 + - col1 * 80 FROM tab0 AS cor0
----
-1737
-48
-6500

query II rowsort
SELECT DISTINCT + 86 AS col1, + col2 AS col2 FROM tab2
----
86
23
86
40
86
58

query I rowsort
SELECT DISTINCT + 46 * - + ( - 66 ) AS col1 FROM tab1
----
3036

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL + MIN( - 46 ) AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + MIN ( - 46 ) AS col2 FROM tab1
----
-46

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 * - col2 * + 28 * col2 + - 17 AS col2 FROM tab2
----
23
681335
40
2867183
58
7064383

query I rowsort
SELECT DISTINCT - col1 * - ( - - col1 ) FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT 68 * - MAX( DISTINCT - col2 ) AS col0 FROM tab0
----
680

skipif mysql # not compatible
query I rowsort label-4177
SELECT 68 * - MAX ( DISTINCT - col2 ) AS col0 FROM tab0
----
680

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT COUNT( - col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4178
SELECT COUNT ( - col1 ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 * - 62 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT 76 * + + COUNT( * ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-4180
SELECT 76 * + + COUNT ( * ) FROM tab1
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 col1 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT DISTINCT 92 * + + 86, MAX( DISTINCT - - col0 ) AS col2 FROM tab2
----
7912
75

skipif mysql # not compatible
query II rowsort label-4182
SELECT DISTINCT 92 * + + 86, MAX ( DISTINCT - - col0 ) AS col2 FROM tab2
----
7912
75

query I rowsort
SELECT ( - 89 ) FROM tab1
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT 55 * + - COUNT( * ) AS col0 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-4184
SELECT 55 * + - COUNT ( * ) AS col0 FROM tab0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + + MIN( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + + MIN ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> + col2 / - + col0 / - ( col0 ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 * + 72 NOT IN ( - 57 )
----
6

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 * + 72 NOT IN ( - 57 )
----
6

query I rowsort
SELECT col0 + + + col2 - - 97 AS col1 FROM tab0
----
159
194
293

query III rowsort
SELECT * FROM tab2 WHERE + 7 + + + col1 < - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT col2 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT col2 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT 65 * COUNT( * ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT 65 * COUNT ( * ) FROM tab2
----
195

query I rowsort
SELECT + 44 * 80 * + + col2 FROM tab2
----
140800
204160
80960

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT DISTINCT 92 DIV + 68 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT 92 / + 68 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL MIN( - col2 ) * 3 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL MIN ( - col2 ) * 3 FROM tab1
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT ALL - + col0 DIV - 13 + + 29 + - col0 FROM tab1 AS cor0
----
-19
-50
-55

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - + col0 / - 13 + + 29 + - col0 FROM tab1 AS cor0
----
-19
-50
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * ( - col2 ) + - 22 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL + - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) >= - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) >= - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - 96 - + COUNT( * ) col2 FROM tab1
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4198
SELECT ALL - 96 - + COUNT ( * ) col2 FROM tab1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4199
SELECT DISTINCT 94 AS col0, + col2 AS col2, + CAST( NULL AS SIGNED ) / 76 FROM tab2
----
9 values hashing to e7643d1918d8ce6614816a038cf58b63

skipif mysql # not compatible
query III rowsort label-4199
SELECT DISTINCT 94 AS col0, + col2 AS col2, + CAST ( NULL AS INTEGER ) / 76 FROM tab2
----
9 values hashing to e7643d1918d8ce6614816a038cf58b63

query I rowsort
SELECT DISTINCT 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL - COUNT( * ) + + COUNT( - 42 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - COUNT ( * ) + + COUNT ( - 42 ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT DISTINCT - - 29 FROM tab2 AS cor0 WHERE + col2 + col1 - col2 * 50 + CAST( NULL AS SIGNED ) + - CAST( + 4 AS SIGNED ) * + 37 * col0 <= - col2
----

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT - - 29 FROM tab2 AS cor0 WHERE + col2 + col1 - col2 * 50 + CAST ( NULL AS INTEGER ) + - CAST ( + 4 AS INTEGER ) * + 37 * col0 <= - col2
----

query III rowsort
SELECT - 89 AS col2, col0 AS col2, + + ( 31 ) * + - col0 FROM tab2 AS cor0
----
9 values hashing to b81a2f28085a600771d441b02f0b2e7f

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT MIN( DISTINCT - + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT MIN ( DISTINCT - + col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + - 41 FROM tab1 cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab1 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT + ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + ( - - col1 ) * + col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT + 28 DIV - ( - - 70 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT + 28 / - ( - - 70 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL + 74 FROM tab2 AS cor0 WHERE NOT - CAST( - - col2 AS SIGNED ) > - col1
----

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + 74 FROM tab2 AS cor0 WHERE NOT - CAST ( - - col2 AS INTEGER ) > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT ( - col1 ) DIV - 73 + - col1 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-28
-36
-9

skipif mysql # not compatible
query I rowsort label-4213
SELECT ( - col1 ) / - 73 + - col1 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-28
-36
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT CAST( NULL AS SIGNED ) * + - ( COUNT( * ) ) + - MAX( ALL col0 ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4214
SELECT CAST ( NULL AS INTEGER ) * + - ( COUNT ( * ) ) + - MAX ( ALL col0 ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT - 20 / + + col0 FROM tab2 WHERE NOT col0 * ( + - col1 ) + + col2 NOT BETWEEN CAST( col1 AS SIGNED ) AND - 95
----

skipif mysql # not compatible
query I rowsort label-4215
SELECT - 20 / + + col0 FROM tab2 WHERE NOT col0 * ( + - col1 ) + + col2 NOT BETWEEN CAST ( col1 AS INTEGER ) AND - 95
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4216
SELECT + + COUNT( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4216
SELECT + + COUNT ( * ) col0, 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
24

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 3 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT + SUM( DISTINCT + 64 ) AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4219
SELECT + SUM ( DISTINCT + 64 ) AS col0 FROM tab0 AS cor0
----
64

query II rowsort
SELECT DISTINCT col2 AS col2, 76 FROM tab1 AS cor0
----
59
76
68
76
96
76

query II rowsort
SELECT - - 50 AS col1, col1 + + 5 FROM tab0 AS cor0
----
50
26
50
6
50
86

query I rowsort
SELECT ALL 65 + - + col0 * + 76 + - + 24 * col2 AS col2 FROM tab2 AS cor0
----
-3983
-5759
-7027

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4223
SELECT ALL * FROM tab2 cor0 WHERE - CAST( col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4223
SELECT ALL * FROM tab2 cor0 WHERE - CAST ( col0 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0, - col0 AS col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT ALL - col1 * + - col1 * 84 AS col0 FROM tab2
----
218484
377076
498036

query III rowsort
SELECT * FROM tab1 WHERE 22 IS NULL
----

query I rowsort
SELECT - col1 * + + col1 + - col2 AS col2 FROM tab1
----
-2277
-292
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4228
SELECT CAST( + col1 AS SIGNED ) DIV - col2 + - col0 DIV - + 26 + + - 53 + + + col0 + + col1 - + 74 FROM tab0
----
-18
-26
-32

skipif mysql # not compatible
query I rowsort label-4228
SELECT CAST ( + col1 AS INTEGER ) / - col2 + - col0 / - + 26 + + - 53 + + + col0 + + col1 - + 74 FROM tab0
----
-18
-26
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT + SUM( ALL + col0 ) + - 42 AS col1 FROM tab1
----
185

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + SUM ( ALL + col0 ) + - 42 AS col1 FROM tab1
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT ( 13 ) + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT ( 13 ) + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT DISTINCT - - 28 * - col0 + col0 DIV - col1 FROM tab2 AS cor0
----
-1288
-1792
-2101

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - - 28 * - col0 + col0 / - col1 FROM tab2 AS cor0
----
-1288
-1792
-2101

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT + + col1 * + 3 + - col1 * col1 DIV - col2 FROM tab1 AS cor0
----
15
173
44

skipif mysql # not compatible
query I rowsort label-4232
SELECT + + col1 * + 3 + - col1 * col1 / - col2 FROM tab1 AS cor0
----
15
173
44

query I rowsort
SELECT col2 + - - col1 + + col1 - + + col2 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4234
SELECT DISTINCT + 18 DIV + - CAST( + 25 AS SIGNED ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + 18 / + - CAST ( + 25 AS INTEGER ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT 44 * - 83 AS col2 FROM tab2 AS cor0
----
-3652

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4237
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4237
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 * 0 + + 33 AS col2 FROM tab2 AS cor0
----
33
33
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * - 26 * - + col2 col0 FROM tab1
----
23003136
5339854
8175232

query I rowsort
SELECT + 80 + - col0 FROM tab1 WHERE NOT + 54 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4242
SELECT 39, CAST( + col2 AS SIGNED ) col1 FROM tab0
----
39
10
39
47
39
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4242
SELECT 39, CAST ( + col2 AS INTEGER ) col1 FROM tab0
----
39
10
39
47
39
99

query II rowsort
SELECT DISTINCT - col0, col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT COUNT( * ), 75 AS col0 FROM tab2
----
3
75

skipif mysql # not compatible
query II rowsort label-4244
SELECT COUNT ( * ), 75 AS col0 FROM tab2
----
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL + MAX( col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + MAX ( col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + COUNT( * ) * + - 2 * + - COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + COUNT ( * ) * + - 2 * + - COUNT ( * ) AS col1 FROM tab0
----
18

query I rowsort
SELECT + col1 * + ( + + 7 ) FROM tab0
----
147
567
7

query I rowsort
SELECT DISTINCT + 15 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT 25 FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN ( - col1 ) AND - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT + ( + COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4250
SELECT DISTINCT + ( + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + col0 AS col1, col0 * + col0 * - + col1 * - col1 FROM tab1 AS cor0
----
51
509796
85
180625
91
18292729

query I rowsort
SELECT 72 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
72
72
72

query I rowsort
SELECT DISTINCT 73 * + col1 FROM tab2 AS cor0
----
3723
4891
5621

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT - MIN( DISTINCT 67 ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-76

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - MIN ( DISTINCT 67 ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-76

query I rowsort
SELECT DISTINCT 60 * + 6 + - col1 FROM tab0 cor0
----
279
339
359

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col1 < + col2
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 0 + - col1 col0, - col1 + col0 + + col0 * + 68 + - - col2 AS col1 FROM tab2 AS cor0
----
-51
3146
-67
5166
-77
4379

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4259
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4259
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col2 ) * - + col1 + + + col2 + + 0 FROM tab1 cor0
----
-1248
-236
-3128

query I rowsort
SELECT 41 + 26 FROM tab1
----
67
67
67

query I rowsort
SELECT - 72 + - 71 AS col1 FROM tab2
----
-143
-143
-143

query I rowsort
SELECT ALL + 24 - col0 AS col2 FROM tab0
----
-63
-73
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT 49 * + + COUNT( * ) AS col2 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-4264
SELECT 49 * + + COUNT ( * ) AS col2 FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT DISTINCT - SUM( DISTINCT 74 ) col1 FROM tab2
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4265
SELECT DISTINCT - SUM ( DISTINCT 74 ) col1 FROM tab2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT CAST( 48 AS SIGNED ) * - 11 AS col2 FROM tab1
----
-528
-528
-528

skipif mysql # not compatible
query I rowsort label-4266
SELECT CAST ( 48 AS INTEGER ) * - 11 AS col2 FROM tab1
----
-528
-528
-528

query III rowsort
SELECT * FROM tab1 WHERE + - 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT 90 * - 87 * - COUNT( * ) FROM tab2
----
23490

skipif mysql # not compatible
query I rowsort label-4268
SELECT 90 * - 87 * - COUNT ( * ) FROM tab2
----
23490

query I rowsort
SELECT ALL + - col2 + + + col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT 83 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
83

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 29 AS col0 FROM tab2 AS cor0 WHERE 65 IS NOT NULL OR NOT - + col0 >= 62
----
29
29
29

query I rowsort
SELECT ALL + col1 + 81 FROM tab1
----
128
86
95

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 ) AND col1 / - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + MIN( - 35 ) FROM tab2 WHERE NOT ( col1 - + col0 ) IS NULL
----
-35

skipif mysql # not compatible
query I rowsort label-4275
SELECT + MIN ( - 35 ) FROM tab2 WHERE NOT ( col1 - + col0 ) IS NULL
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + 11 col1 FROM tab2
----
-12
-29
-47

query I rowsort
SELECT ALL - 29 FROM tab0 WHERE NOT ( NULL ) <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 + - ( col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 + - ( col0 ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( + 7 + - col1 ) <> ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( + 7 + - col1 ) <> ( col2 )
----
0

query I rowsort
SELECT col1 + - 85 AS col2 FROM tab2
----
-18
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT 94 + - COUNT( * ) * + SUM( ALL 63 ) AS col2 FROM tab0
----
-473

skipif mysql # not compatible
query I rowsort label-4281
SELECT 94 + - COUNT ( * ) * + SUM ( ALL 63 ) AS col2 FROM tab0
----
-473

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 - - col2 col0 FROM tab1
----
117
126
154

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col1 FROM tab2 WHERE - col2 NOT IN ( col0 + + col0 )
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + - 25 col2 FROM tab2
----
-2
15
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 37 - - ( + 83 ) col2 FROM tab2
----
1785
2451
2858

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - COUNT( * ) + - COUNT( - col2 ) * - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4286
SELECT - COUNT ( * ) + - COUNT ( - col2 ) * - COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col0 * - col2 AS col0 FROM tab1 WHERE NOT col2 NOT BETWEEN + col0 * - col1 AND ( - col2 )
----

query I rowsort
SELECT 35 + 24 FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL COUNT( - col2 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4290
SELECT ALL COUNT ( - col2 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT - 90 + COUNT( * ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-4291
SELECT - 90 + COUNT ( * ) AS col0 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - COUNT( * ) + 91 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-4292
SELECT - COUNT ( * ) + 91 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4293
SELECT DISTINCT + COUNT( * ) DIV 15 FROM tab2 AS cor0 CROSS JOIN tab1
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + COUNT ( * ) / 15 FROM tab2 AS cor0 CROSS JOIN tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 AS cor0 WHERE 50 / + 47 + 67 NOT BETWEEN ( NULL ) AND ( col1 )
----
14
47
5

query I rowsort
SELECT ALL - + col2 + + 25 FROM tab2 cor0
----
-15
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT - MIN( DISTINCT 6 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4296
SELECT - MIN ( DISTINCT 6 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE 75 + + 22 NOT BETWEEN NULL AND 7
----
1
21
81

query I rowsort
SELECT + 59 * - 83 FROM tab0 AS cor0 WHERE ( - col1 ) NOT BETWEEN 60 AND NULL
----
-4897
-4897
-4897

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND - col2 * - col2 + ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - - col2 < ( NULL )
----

query I rowsort
SELECT + col2 * 59 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2773
5841
590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT - 94 DIV COUNT( * ) - 11 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4302
SELECT - 94 / COUNT ( * ) - 11 FROM tab1 AS cor0
----
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> NULL OR NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( - col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT + ( + ( - COUNT( ALL + col2 ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT + ( + ( - COUNT ( ALL + col2 ) ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT col1 + 39 AS col2 FROM tab0
----
120
40
60

query I rowsort
SELECT + col0 + ( - 83 ) / 62 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT 21 + + - 53 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT ALL - 56 * + col2 FROM tab0 WHERE NOT + col1 * col0 + - 12 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT - 19 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) - col1 NOT BETWEEN - 40 / + col0 AND col0 + col0
----

skipif mysql # not compatible
query I rowsort label-4311
SELECT - 19 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) - col1 NOT BETWEEN - 40 / + col0 AND col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT - 82 + - 18 + SUM( DISTINCT 18 + - col1 ) * + COUNT( DISTINCT + ( col0 ) / + col2 + col1 ) AS col1 FROM tab1
----
-136

skipif mysql # not compatible
query I rowsort label-4312
SELECT - 82 + - 18 + SUM ( DISTINCT 18 + - col1 ) * + COUNT ( DISTINCT + ( col0 ) / + col2 + col1 ) AS col1 FROM tab1
----
-136

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 > - 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL MIN( + col2 ) * COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL MIN ( + col2 ) * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * 52 NOT BETWEEN - 55 + + col1 AND col0
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT ALL + col2 * - + col2 + col0 DIV - ( - col2 + - 94 ) FROM tab0 cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + col2 * - + col2 + col0 / - ( - col2 + - 94 ) FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - 16 * COUNT( * ) col0 FROM tab1, tab2 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4318
SELECT - 16 * COUNT ( * ) col0 FROM tab1, tab2 AS cor0
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4320
SELECT ALL - 67 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - 67 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 75 col2, + col0 * + 89 FROM tab1 AS cor0
----
75
4539
75
7565
75
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 10 ) col2 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) / + + 1 ) IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) / + + 1 ) IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT CAST( NULL AS SIGNED ) / + 33 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 70 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT CAST ( NULL AS INTEGER ) / + 33 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 70 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL + - MAX( ALL + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + - MAX ( ALL + col0 ) FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + SUM( DISTINCT 37 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT + SUM ( DISTINCT 37 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT DISTINCT - - col1 DIV - col1 - + col1 FROM tab2 cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - - col1 / - col1 - + col1 FROM tab2 cor0
----
-52
-68
-78

query II rowsort
SELECT DISTINCT - + col2, col1 * 38 AS col2 FROM tab1 AS cor0
----
-59
190
-68
1786
-96
532

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, col0 * 62 FROM tab0 AS cor0
----
1
6014
21
5394
81
930

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL + col0 * - 47 AS col2 FROM tab1
----
-2397
-3995
-4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4333
SELECT DISTINCT + 29 * 19 DIV CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + 29 * 19 / CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-183

query II rowsort
SELECT col2 * - 27, + col2 FROM tab0
----
-1269
47
-2673
99
-270
10

query I rowsort
SELECT ALL col1 * + - col1 * + + col0 AS col0 FROM tab0
----
-38367
-97
-98415

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + - ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT MIN( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
----
-75
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4337
SELECT MIN ( - col0 ) col2, 17 AS col1 FROM tab2 AS cor0
----
-75
17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + 16 / - + 74 <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 78 IS NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT 55 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4341
SELECT 55 / col2 FROM tab2
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / + col0 >= ( col2 * - - 32 - col2 * - ( col0 ) )
----

query I rowsort
SELECT DISTINCT - 15 + + - col2 FROM tab2 AS cor0
----
-38
-55
-73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - col2 IN ( - + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT + - COUNT( * ) + CAST( NULL AS SIGNED ) * 23 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4346
SELECT DISTINCT + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * 23 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT - - ( + 38 ) AS col1 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL + COUNT( * ) + - 66 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + COUNT ( * ) + - 66 FROM tab1 AS cor0
----
-63

query II rowsort
SELECT - col2 AS col2, col0 * - + col0 FROM tab1 cor0
----
-59
-7225
-68
-8281
-96
-2601

query I rowsort
SELECT + 26 * + - 20 AS col2 FROM tab0
----
-520
-520
-520

query I rowsort
SELECT DISTINCT - col0 + - + ( - - col1 ) FROM tab2
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 * + - ( - 96 ) - 21 / + col0 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL + col1 * + 11 FROM tab1 WHERE NOT - col1 BETWEEN ( - + col2 + col2 + + - CAST( NULL AS SIGNED ) - + 74 ) AND - col2
----
154
517
55

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + col1 * + 11 FROM tab1 WHERE NOT - col1 BETWEEN ( - + col2 + col2 + + - CAST ( NULL AS INTEGER ) - + 74 ) AND - col2
----
154
517
55

query I rowsort
SELECT DISTINCT + 70 * - col1 - - - col0 AS col1 FROM tab1
----
-1031
-3381
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT + MAX( ALL - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4356
SELECT + MAX ( ALL - - col1 ) FROM tab1
----
47

query I rowsort
SELECT ALL + - ( col1 ) + - 78 + - col1 * 70 FROM tab0 WHERE NOT + 19 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT COUNT( * ) * + - ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab1, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4358
SELECT COUNT ( * ) * + - ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1, tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 37 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col0, 5 * col1 FROM tab0 AS cor0
----
15
405
87
105
97
5

query II rowsort
SELECT - - col2, col1 AS col2 FROM tab2 cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( + ( - 21 ) ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4363
SELECT * FROM tab1 AS cor0 WHERE NOT 60 NOT BETWEEN + - CAST( - col2 AS SIGNED ) - - - col2 AND ( - CAST( 61 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4363
SELECT * FROM tab1 AS cor0 WHERE NOT 60 NOT BETWEEN + - CAST ( - col2 AS INTEGER ) - - - col2 AND ( - CAST ( 61 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 90 * 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - - 13 ) * col2 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT - + col0 * - + col0 + + 15 + col0 FROM tab0 AS cor0
----
255
7671
9521

query I rowsort
SELECT + col2 * + col1 * - col0 * + - ( - - col2 ) FROM tab2 AS cor0
----
1241034
16904100
7884800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4369
SELECT - 84 DIV CAST( + 94 AS SIGNED ) + ( 40 ) - + + col1 * + + 31 * - 53 FROM tab1 AS cor0
----
23042
77261
8255

skipif mysql # not compatible
query I rowsort label-4369
SELECT - 84 / CAST ( + 94 AS INTEGER ) + ( 40 ) - + + col1 * + + 31 * - 53 FROM tab1 AS cor0
----
23042
77261
8255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT - ( + col1 ) / col2 FROM tab2 AS cor0 WHERE NOT col0 * + col0 / + CAST( NULL AS SIGNED ) - col0 <> col0 * - 43
----

skipif mysql # not compatible
query I rowsort label-4370
SELECT - ( + col1 ) / col2 FROM tab2 AS cor0 WHERE NOT col0 * + col0 / + CAST ( NULL AS INTEGER ) - col0 <> col0 * - 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4371
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - 56 + - + CAST( NULL AS SIGNED ) * col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-4371
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - 56 + - + CAST ( NULL AS INTEGER ) * col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NOT ( NULL ) IS NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4373
SELECT ALL + CAST( NULL AS SIGNED ), 73 AS col1 FROM tab1
----
NULL
73
NULL
73
NULL
73

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL + CAST ( NULL AS INTEGER ), 73 AS col1 FROM tab1
----
NULL
73
NULL
73
NULL
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4374
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) * - + col2 * - 94 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) * - + col2 * - 94 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 68 * - col1 * + + 12 AS col0, col1 * + col1 FROM tab0
----
-17136
441
-66096
6561
-816
1

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL BETWEEN NULL AND - 70 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4377
SELECT DISTINCT + 19 * - CAST( + MAX( ALL + 92 ) AS SIGNED ) AS col2 FROM tab2
----
-1748

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT + 19 * - CAST ( + MAX ( ALL + 92 ) AS INTEGER ) AS col2 FROM tab2
----
-1748

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 42 + + - 25 * + col1 * + col1 + + - 61 ) IS NULL
----

query I rowsort
SELECT + col0 * - ( + - 81 ) + - 11 FROM tab0 AS cor0
----
1204
7036
7846

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT - - COUNT( * ) + 46 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4380
SELECT - - COUNT ( * ) + 46 FROM tab0 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - MAX( - col0 ) AS col0 FROM tab1 WHERE ( + col2 >= ( + col0 ) )
----
51

skipif mysql # not compatible
query I rowsort label-4381
SELECT - MAX ( - col0 ) AS col0 FROM tab1 WHERE ( + col2 >= ( + col0 ) )
----
51

query I rowsort
SELECT - 92 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT ( - col2 ) >= - 25 - - + ( 82 ) + - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * col0 - 83 AS col2 FROM tab1
----
342
4194
631

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4385
SELECT + col1 * - col2 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

skipif mysql # not compatible
query II rowsort label-4385
SELECT + col1 * - col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
-1173
NULL
-3080
NULL
-3886
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + ( - + SUM( 82 ) ) AS col2 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-4386
SELECT + ( - + SUM ( 82 ) ) AS col2 FROM tab0
----
-246

query I rowsort
SELECT ( col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4388
SELECT DISTINCT + col0 * - col2 + + 65 + - col1 DIV + col0 AS col1 FROM tab1 AS cor0 WHERE 27 - + - col0 * - + CAST( NULL AS SIGNED ) IS NULL
----
-4831
-4950
-6123

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + col0 * - col2 + + 65 + - col1 / + col0 AS col1 FROM tab1 AS cor0 WHERE 27 - + - col0 * - + CAST ( NULL AS INTEGER ) IS NULL
----
-4831
-4950
-6123

query I rowsort
SELECT DISTINCT - - col0 * + - col1 + + 8 * col1 FROM tab0 AS cor0
----
-1659
-567
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT 1 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4390
SELECT 1 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT ALL - CAST( NULL AS SIGNED ) * + 41 col0 FROM tab0 AS cor0 WHERE - 74 >= - 92
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4392
SELECT ALL - CAST ( NULL AS INTEGER ) * + 41 col0 FROM tab0 AS cor0 WHERE - 74 >= - 92
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + + col1 ) >= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - - 12 col1 FROM tab0 AS cor0
----
109
27
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT DISTINCT - COUNT( * ) DIV + 33 * + 61 AS col2 FROM tab2 cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - COUNT ( * ) / + 33 * + 61 AS col2 FROM tab2 cor0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - 82 * - 72 * - COUNT( * ) - - 76 AS col0 FROM tab1
----
-17636

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - 82 * - 72 * - COUNT ( * ) - - 76 AS col0 FROM tab1
----
-17636

query III rowsort
SELECT * FROM tab0 WHERE - - col2 < NULL
----

query I rowsort
SELECT - col0 * - - col2 / + + col1 AS col2 FROM tab2 WHERE ( - + col1 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + + col2 col2 FROM tab0
----
109
20
57

query III rowsort
SELECT ALL * FROM tab2 WHERE + 38 * + col1 NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 90 * + col2 AS col1 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT + 8 * ( - 98 ) AS col1 FROM tab2
----
-784
-784
-784

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4404
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( 66 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4404
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( 66 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 72 FROM tab2 AS cor0
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - COUNT( - 43 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4406
SELECT - COUNT ( - 43 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT DISTINCT col0, col2 * - - 89 AS col1 FROM tab2
----
46
2047
64
3560
75
5162

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + 87 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4409
SELECT ALL CAST( NULL AS SIGNED ) AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4409
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 15 ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + MIN( DISTINCT + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL col1 + - 95 * - col0 AS col0 FROM tab0 AS cor0
----
1506
8286
9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4413
SELECT * FROM tab1 cor0 WHERE NOT - CAST( - 77 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4413
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( - 77 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----
0

query I rowsort
SELECT + + 60 + col0 * col2 FROM tab1 AS cor0
----
4956
5075
6248

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT MIN( + ( + + 96 ) ) * - 52 FROM tab2
----
-4992

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT MIN ( + ( + + 96 ) ) * - 52 FROM tab2
----
-4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4417
SELECT MAX( - 16 ) + - - COUNT( * ) DIV COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-4417
SELECT MAX ( - 16 ) + - - COUNT ( * ) / COUNT ( * ) FROM tab1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT 32 + - + CAST( + + col2 AS SIGNED ) AS col0 FROM tab0
----
-15
-67
22

skipif mysql # not compatible
query I rowsort label-4418
SELECT 32 + - + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
-15
-67
22

query III rowsort
SELECT * FROM tab1 WHERE ( 8 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL + MIN( DISTINCT + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + MIN ( DISTINCT + - col1 ) FROM tab0
----
-81

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col2 = ( - col1 ) + - 52 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4422
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + 8 FROM tab0 WHERE NOT - col2 + - col1 + + - 52 IN ( col2, + col1 )
----
-13
-73
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 14 * + col1 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 13 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT - - 6 + + - col0 + col2 * 26 FROM tab1 AS cor0
----
1455
1683
2451

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4428
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN CAST( - ( + col2 ) AS DECIMAL ) * - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4428
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN CAST ( - ( + col2 ) AS REAL ) * - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL + AVG ( ALL + + 96 ) + - 92 - - + CAST( NULL AS SIGNED ) / - 76 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + AVG ( ALL + + 96 ) + - 92 - - + CAST ( NULL AS INTEGER ) / - 76 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL = + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT DISTINCT + + col0 * - + col1 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + + col0 * - + col1 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT + 52 DIV + 27 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + 52 / + 27 AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT + + CAST( - 65 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4433
SELECT + + CAST ( - 65 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col2 ) col1 FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col1 ) NOT IN ( + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT DISTINCT - MAX( 36 ) AS col1 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - MAX ( 36 ) AS col1 FROM tab2
----
-36

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 34 IS NOT NULL
----

query I rowsort
SELECT ALL ( - ( - col2 ) ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT SUM( DISTINCT col1 ) * - - 34 AS col1 FROM tab2 AS cor0
----
6630

skipif mysql # not compatible
query I rowsort label-4439
SELECT SUM ( DISTINCT col1 ) * - - 34 AS col1 FROM tab2 AS cor0
----
6630

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - - col1 AND ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT col2 DIV - - col2 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT col2 / - - col2 AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4442
SELECT - MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL 33 + + col2 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
178962
2133
9834

query I rowsort
SELECT DISTINCT + ( - + col2 ) + + - col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT - COUNT( DISTINCT + + 58 ) AS col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + col2 + - col2 * - 92 + - - col1 / + 35 NOT BETWEEN 4 * + + col0 - + 73 AND col0 * + + 53
----
0

skipif mysql # not compatible
query I rowsort label-4445
SELECT - COUNT ( DISTINCT + + 58 ) AS col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + col2 + - col2 * - 92 + - - col1 / + 35 NOT BETWEEN 4 * + + col0 - + 73 AND col0 * + + 53
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 28 * col2 col1 FROM tab2 AS cor0
----
1120
1624
644

query I rowsort
SELECT - - col2 * + 40 AS col2 FROM tab0 AS cor0
----
1880
3960
400

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 8 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL MIN( ALL + - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL MIN ( ALL + - col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT ALL + 18 + col0 + - col0 FROM tab0
----
18
18
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT DISTINCT - 1 AS col0, - MIN( col0 ) + COUNT( DISTINCT col0 ) FROM tab0
----
-1
-12

skipif mysql # not compatible
query II rowsort label-4451
SELECT DISTINCT - 1 AS col0, - MIN ( col0 ) + COUNT ( DISTINCT col0 ) FROM tab0
----
-1
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT - - ( + 3 ) + - 47 + + 38 DIV - col0 AS col1 FROM tab0 cor0
----
-44
-44
-46

skipif mysql # not compatible
query I rowsort label-4452
SELECT - - ( + 3 ) + - 47 + + 38 / - col0 AS col1 FROM tab0 cor0
----
-44
-44
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - ( - ( + 15 ) ) + - 40 / - CAST( - + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4453
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - ( - ( + 15 ) ) + - 40 / - CAST ( - + col0 AS INTEGER ) AND NULL
----

query II rowsort
SELECT + + col1 * - 81 * - + col2 * - - col1 + - col0 + + col0 AS col0, col1 AS col2 FROM tab2 cor0
----
19209960
77
21089322
67
4845663
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 77 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4456
SELECT ALL + col0 + col0 col2, col2 DIV - col0 AS col2 FROM tab2
----
128
0
150
0
92
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4456
SELECT ALL + col0 + col0 col2, col2 / - col0 AS col2 FROM tab2
----
128
0
150
0
92
0

query I rowsort
SELECT - - 32 - + col0 AS col1 FROM tab2 AS cor0
----
-14
-32
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4458
SELECT SUM( ALL - 98 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT SUM ( ALL - 98 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT - COUNT( ALL + 27 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4459
SELECT - COUNT ( ALL + 27 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 * + 50 AS col0 FROM tab1 AS cor0
----
2350
250
700

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 17 / - 76 * + - col2 + col2 + col2 * 66 + - - ( + col1 ) * - + 56 + + 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab2 cor0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4464
SELECT ALL 74, MIN( + col2 ) col0 FROM tab1
----
74
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4464
SELECT ALL 74, MIN ( + col2 ) col0 FROM tab1
----
74
59

query I rowsort
SELECT DISTINCT + 85 * - col2 AS col2 FROM tab2
----
-1955
-3400
-4930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT + CAST( NULL AS SIGNED ) + + 98 + ( - COUNT( * ) ) col1 FROM tab1 AS cor0 WHERE NOT - 88 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4466
SELECT + CAST ( NULL AS INTEGER ) + + 98 + ( - COUNT ( * ) ) col1 FROM tab1 AS cor0 WHERE NOT - 88 * + col2 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL 97 * - col1 AS col0, col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 < + + col2 * - + col0
----
-1358
14
-4559
47
-485
5

query I rowsort
SELECT 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + 97 = NULL
----

query I rowsort
SELECT DISTINCT - 54 + + col2 AS col2 FROM tab0 AS cor0
----
-44
-7
45

query I rowsort
SELECT - - col2 + + + col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 + - col2 - + col1 AND - CAST( NULL AS SIGNED ) / - - col1 - - col2 + + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4472
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 + - col2 - + col1 AND - CAST ( NULL AS INTEGER ) / - - col1 - - col2 + + + col1
----

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 99 + ( + + 28 ) FROM tab1 AS cor0
----
127

query I rowsort
SELECT DISTINCT - + 12 AS col1 FROM tab0 cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 + - 73 col1 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT - + col1 * col2 + + 22 FROM tab2 AS cor0
----
-1151
-3058
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + - COUNT( - col1 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4478
SELECT ALL + - COUNT ( - col1 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT DISTINCT - 84 * - 34 * + + SUM( col0 ) FROM tab1
----
648312

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT - 84 * - 34 * + + SUM ( col0 ) FROM tab1
----
648312

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL MIN( - + col2 ) - 65 + - 69 * + 6 AS col1 FROM tab1
----
-575

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL MIN ( - + col2 ) - 65 + - 69 * + 6 AS col1 FROM tab1
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL MAX( DISTINCT - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL MAX ( DISTINCT - - col1 ) FROM tab0
----
81

query II rowsort
SELECT 77 AS col2, col1 AS col2 FROM tab0
----
77
1
77
21
77
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4483
SELECT - - CAST( - col0 AS DECIMAL ) AS col0 FROM tab1 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-4483
SELECT - - CAST ( - col0 AS REAL ) AS col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col1 ) col2, + col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT COUNT( * ) * + 33 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT COUNT ( * ) * + 33 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT col0 * + col2 BETWEEN NULL AND - col0
----
51
67
77

query II rowsort
SELECT + col0 + + col1 + + 90 * - col2 AS col0, + 57 FROM tab0 cor0 WHERE NOT - col0 - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - + ( + col2 ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL + + MAX( DISTINCT 50 ) AS col1 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + + MAX ( DISTINCT 50 ) AS col1 FROM tab2 AS cor0
----
50

query II rowsort
SELECT ALL + 19, + 97 AS col1 FROM tab2 AS cor0
----
19
97
19
97
19
97

query I rowsort
SELECT - col2 * + - col2 + col1 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT DISTINCT + - ( + 51 ) AS col2 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4494
SELECT COUNT( * ) DIV + - 12 + 85 col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4494
SELECT COUNT ( * ) / + - 12 + 85 col1 FROM tab2 AS cor0
----
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL + 24 * SUM( + 54 ) FROM tab1
----
3888

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + 24 * SUM ( + 54 ) FROM tab1
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL SUM( 40 ) * + + COUNT( ALL col0 ) FROM tab1
----
360

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL SUM ( 40 ) * + + COUNT ( ALL col0 ) FROM tab1
----
360

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT ALL - - SUM( + 61 ) AS col1, 36 FROM tab1 AS cor0
----
183
36

skipif mysql # not compatible
query II rowsort label-4499
SELECT ALL - - SUM ( + 61 ) AS col1, 36 FROM tab1 AS cor0
----
183
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT + col1 + col0 * 71 + - + 67 + - 37 DIV + 28 AS col1 FROM tab2 AS cor0
----
3249
4553
5324

skipif mysql # not compatible
query I rowsort label-4500
SELECT + col1 + col0 * 71 + - + 67 + - 37 / + 28 AS col1 FROM tab2 AS cor0
----
3249
4553
5324

query I rowsort
SELECT ALL 12 * + col1 AS col1 FROM tab1
----
168
564
60

query I rowsort
SELECT ALL - col2 + + 78 FROM tab1 AS cor0
----
-18
10
19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + 56 <= NULL
----

query I rowsort
SELECT ALL - 97 + - ( + 65 ) AS col1 FROM tab1 AS cor0
----
-162
-162
-162

query I rowsort
SELECT ALL col0 * col2 + - col0 FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT - COUNT( * ) AS col0, 0 AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4506
SELECT - COUNT ( * ) AS col0, 0 AS col0 FROM tab2 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT - + COUNT( * ) + - COUNT( col1 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( col1 ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4508
SELECT CAST( NULL AS DECIMAL ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4508
SELECT CAST ( NULL AS REAL ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - COUNT( - ( + 25 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4509
SELECT - COUNT ( - ( + 25 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col2 + - - col1 + - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 20 * + col1 - + - col1 AS col0 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT ALL col2 * + col0 + col0 FROM tab0 AS cor0
----
720
957
9700

query I rowsort
SELECT ALL - col0 + + col1 * + 6 FROM tab2 cor0
----
260
327
398

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL IN ( + col2 )
----
0

query II rowsort
SELECT DISTINCT + 8, col2 FROM tab0 AS cor0
----
8
10
8
47
8
99

query I rowsort
SELECT ALL - col1 * + - ( 12 ) - - 41 * - col1 * - col1 FROM tab0 AS cor0
----
18333
269973
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 col2, - ( + col1 ) FROM tab2 cor0
----
85
-51
85
-67
85
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 col0 FROM tab2 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT col0 DIV 23 DIV + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4520
SELECT col0 / 23 / + col1 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT 59 AS col0, - col0 + - 89 AS col0 FROM tab1
----
59
-140
59
-174
59
-180

query I rowsort
SELECT ALL col0 * - - col2 AS col1 FROM tab0
----
705
870
9603

query II rowsort
SELECT ALL ( - col2 ) + + 22 * + 87, + 98 AS col1 FROM tab1
----
1818
98
1846
98
1855
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - 96 + - COUNT( * ) AS col1 FROM tab2 WHERE + col1 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - 96 + - COUNT ( * ) AS col1 FROM tab2 WHERE + col1 IS NULL
----
-96

query I rowsort
SELECT DISTINCT - col1 * + col2 * - - 11 + - + col1 + + 39 + 4 * col2 AS col0 FROM tab0 AS cor0
----
-2252
-41731
-655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT - col1 * + ( col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - col1 * + ( col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 60 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + - 75 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL col2 + + col2 + col2 * - 99 * col2 * + + 23 FROM tab1 AS cor0
----
-10528712
-20984640
-7926119

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + COUNT( * ) - SUM( ALL + - col0 ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + COUNT ( * ) - SUM ( ALL + - col0 ) FROM tab1 AS cor0
----
230

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 37 * - col1 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - MAX( 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4534
SELECT - MAX ( 74 ) FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4535
SELECT ALL + COUNT( * ) DIV - + ( + 22 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + COUNT ( * ) / - + ( + 22 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT CAST( NULL AS SIGNED ) * AVG ( - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT CAST ( NULL AS INTEGER ) * AVG ( - col1 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 7 - + 88 AS col2 FROM tab1
----
-81

query I rowsort
SELECT col1 * - 85 FROM tab2
----
-4335
-5695
-6545

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT ALL + col0 DIV 87 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + col0 / 87 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE - 56 IS NULL
----

query I rowsort
SELECT + ( ( + ( ( - col0 ) ) ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT SUM( ALL - + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT SUM ( ALL - + col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT AVG ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT AVG ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - 64 * MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
3008

skipif mysql # not compatible
query I rowsort label-4545
SELECT - 64 * MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
3008

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 NOT BETWEEN + - 20 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT col1 DIV - 69 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT col1 / - 69 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4548
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE + col1 IS NULL
----
0

query II rowsort
SELECT + col2 AS col1, + col0 * + - 4 AS col2 FROM tab0
----
10
-348
47
-60
99
-388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + - col0 + - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4552
SELECT ALL + MAX( + 60 ) + - - CAST( NULL AS DECIMAL ) AS col0, + 53 AS col0 FROM tab0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-4552
SELECT ALL + MAX ( + 60 ) + - - CAST ( NULL AS REAL ) AS col0, + 53 AS col0 FROM tab0
----
NULL
53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( - col1 * col0, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 + 49 FROM tab0 AS cor0
----
-32
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - - ( - - COUNT( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4555
SELECT - - ( - - COUNT ( * ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4556
SELECT ALL - col2 AS col0, 32 DIV 46 * col1 AS col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-4556
SELECT ALL - col2 AS col0, 32 / 46 * col1 AS col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT + MIN( ALL + 31 ) + + + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + MIN ( ALL + 31 ) + + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4558
SELECT + 26 DIV + + 72 * + + COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 26 / + + 72 * + + COUNT ( * ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT + SUM( DISTINCT - + col1 ) AS col0, - 71 AS col1 FROM tab2 AS cor0
----
-195
-71

skipif mysql # not compatible
query II rowsort label-4559
SELECT + SUM ( DISTINCT - + col1 ) AS col0, - 71 AS col1 FROM tab2 AS cor0
----
-195
-71

query I rowsort
SELECT 38 * col2 - - 58 AS col0 FROM tab0 AS cor0
----
1844
3820
438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT DISTINCT - - col0 + - - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - - col0 + - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 24 - - col2 AS col1 FROM tab2 AS cor0
----
-1
16
34

query I rowsort
SELECT col2 - ( - col2 ) AS col1 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT ALL + col0 + - - col1 - - col0 DIV - col0 FROM tab0 AS cor0
----
107
95
97

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + col0 + - - col1 - - col0 / - col0 FROM tab0 AS cor0
----
107
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL - MAX( + - col2 ) - - 13 AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - MAX ( + - col2 ) - - 13 AS col0 FROM tab2
----
36

query I rowsort
SELECT DISTINCT col2 - + col2 - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IN ( - 1 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IN ( - 1 + - col2 )
----
0

query II rowsort
SELECT ALL ( - 63 ) AS col0, col0 AS col0 FROM tab2
----
-63
46
-63
64
-63
75

query I rowsort
SELECT + 11 + + col1 FROM tab2
----
62
78
88

query I rowsort
SELECT 11 FROM tab0 AS cor0 WHERE NOT - 37 * + + col0 = ( NULL )
----

query I rowsort
SELECT 45 * - 93 AS col1 FROM tab0 cor0
----
-4185
-4185
-4185

query I rowsort
SELECT ALL + - 81 AS col2 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT ALL col0 DIV + - 8 AS col2 FROM tab0 AS cor0
----
-1
-10
-12

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL col0 / + - 8 AS col2 FROM tab0 AS cor0
----
-1
-10
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 71 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4576
SELECT 42 * CAST( NULL AS SIGNED ) AS col1, 49 FROM tab1, tab0 AS cor0
----
18 values hashing to 1a2c4235b54544e94ff1cef8310ec40f

skipif mysql # not compatible
query II rowsort label-4576
SELECT 42 * CAST ( NULL AS INTEGER ) AS col1, 49 FROM tab1, tab0 AS cor0
----
18 values hashing to 1a2c4235b54544e94ff1cef8310ec40f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL - + CAST( - 65 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - + CAST ( - 65 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - - 73 * col0 AS col1 FROM tab1 AS cor0
----
3723
6205
6643

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= - + 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT ALL + 65 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + 65 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL + col0 AS col0, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 / - + 28 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT 28 + + - col1 DIV col0 DIV col1 AS col0 FROM tab1
----
28
28
28

skipif mysql # not compatible
query I rowsort label-4584
SELECT 28 + + - col1 / col0 / col1 AS col0 FROM tab1
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4585
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4585
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + col1 * col1 * - - 55 AS col1 FROM tab1
----
10780
121495
1375

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT SUM( + 67 ) AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-4587
SELECT SUM ( + 67 ) AS col0 FROM tab1
----
201

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT DISTINCT ( - - 59 ) + + - MAX( DISTINCT - col1 ) AS col2, COUNT( * ) FROM tab1
----
64
3

skipif mysql # not compatible
query II rowsort label-4588
SELECT DISTINCT ( - - 59 ) + + - MAX ( DISTINCT - col1 ) AS col2, COUNT ( * ) FROM tab1
----
64
3

query I rowsort
SELECT DISTINCT + ( + - 93 ) AS col0 FROM tab0 cor0
----
-93

query III rowsort
SELECT * FROM tab1 cor0 WHERE 92 BETWEEN + col0 + - col2 AND NULL
----

query I rowsort
SELECT ALL col0 + + 39 * - - col1 FROM tab1 AS cor0
----
1924
280
597

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 94 ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 10 ) AS col0 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT - ( - 10 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 + col0 + 7 * 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 10 - - - col0 AS col1 FROM tab1 AS cor0 WHERE + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 col1 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND - col2
----

query I rowsort
SELECT DISTINCT + 2 + - + col0 FROM tab0 AS cor0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL + MIN( col0 ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL + MIN ( col0 ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
49

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 + + + col0 col0 FROM tab1 AS cor0
----
135
169
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - + 93 * - MAX( col1 ) col2 FROM tab0 AS cor0
----
7533

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4603
SELECT - + 93 * - MAX ( col1 ) col2 FROM tab0 AS cor0
----
7533

query I rowsort
SELECT ALL col1 - - col1 + + col1 * - col2 FROM tab2
----
-1071
-2926
-3752

query I rowsort
SELECT ( + 67 ) FROM tab1
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - COUNT( col0 ) AS col0 FROM tab1 WHERE NOT + - col2 <> col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-4606
SELECT - COUNT ( col0 ) AS col0 FROM tab1 WHERE NOT + - col2 <> col1 + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT ( - ( 32 ) ) * COUNT( * ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT ( - ( 32 ) ) * COUNT ( * ) AS col1 FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT 64 * + COUNT( * ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT 64 * + COUNT ( * ) FROM tab0 AS cor0
----
192

query II rowsort
SELECT DISTINCT + 85 AS col1, - 62 FROM tab1 AS cor0
----
85
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-4610
SELECT ALL 75 DIV - col0 AS col2, + 79 * - 57 * + + col1 * - - col1 col1 FROM tab2
----
-1
-11712303
-1
-20213967
-1
-26698287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4610
SELECT ALL 75 / - col0 AS col2, + 79 * - 57 * + + col1 * - - col1 col1 FROM tab2
----
-1
-11712303
-1
-20213967
-1
-26698287

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4611
SELECT DISTINCT 2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) + - 60 AND - - col2
----

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT 2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS REAL ) + - 60 AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT ALL - + col2 * - 82 * + + col1 + col0 AS col1 FROM tab2 WHERE + CAST( + - ( - col2 ) AS SIGNED ) = ( - CAST( + + col1 AS SIGNED ) ) + - + col2
----

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - + col2 * - 82 * + + col1 + col0 AS col1 FROM tab2 WHERE + CAST ( + - ( - col2 ) AS INTEGER ) = ( - CAST ( + + col1 AS INTEGER ) ) + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT DISTINCT - 97 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT - 97 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT COUNT( * ) * + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4614
SELECT COUNT ( * ) * + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col0 * + col2 + - col0 FROM tab2 AS cor0 WHERE NOT ( NOT + - col1 * col1 NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL + - 2 * + - col2, col0 AS col0 FROM tab0 AS cor0
----
198
97
20
87
94
15

query I rowsort
SELECT ALL + 28 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( ( col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4619
SELECT + + MAX( - + col0 ) AS col1, MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-51
5

skipif mysql # not compatible
query II rowsort label-4619
SELECT + + MAX ( - + col0 ) AS col1, MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-51
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT + MAX( DISTINCT + - col2 ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT + MAX ( DISTINCT + - col2 ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT + 39 DIV + col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4621
SELECT + 39 / + col0 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 46 + + + ( + + col1 ) - - 33 FROM tab0
----
100
160
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4623
SELECT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 45 + + + 94 + - - col1 * + col1 AS col2 FROM tab2 AS cor0
----
2740
4628
6068

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1 AS cor0 WHERE col0 * + 81 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT - 87 DIV + col1 - + col2 + + 60 AS col1 FROM tab0 AS cor0
----
-126
12
46

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - 87 / + col1 - + col2 + + 60 AS col1 FROM tab0 AS cor0
----
-126
12
46

query I rowsort
SELECT - col2 + - + 38 * - col1 AS col0 FROM tab2 AS cor0
----
1915
2488
2886

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * + col0 BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 88 < NULL
----

query I rowsort
SELECT DISTINCT - - 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT + + 38 - - + col1 + - - col0 AS col0 FROM tab2 AS cor0
----
135
179
180

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 IS NULL OR NOT ( + - ( - col2 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT DISTINCT ( + + ( - - 39 ) ) - - col2 + - - col2 + + - col1 DIV 43 FROM tab2 AS cor0
----
118
154
84

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT ( + + ( - - 39 ) ) - - col2 + - - col2 + + - col1 / 43 FROM tab2 AS cor0
----
118
154
84

query I rowsort
SELECT DISTINCT - + col2 + + col0 * - 46 AS col1 FROM tab0 AS cor0
----
-4012
-4561
-737

query I rowsort
SELECT ( + col0 ) FROM tab1 WHERE NOT col2 / + col2 < NULL
----

query II rowsort
SELECT DISTINCT col2, + 35 AS col0 FROM tab0
----
10
35
47
35
99
35

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN + - col1 AND + col2 / + + col0 * + col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COUNT( * ) * MAX( ALL - + 88 ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COUNT ( * ) * MAX ( ALL - + 88 ) FROM tab1
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + COUNT( * ) * + - 80 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-4639
SELECT + COUNT ( * ) * + - 80 FROM tab2
----
-240

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col2 + 86 - + 85 * 93 IS NOT NULL
----

query I rowsort
SELECT ALL + 49 * col2 AS col2 FROM tab1
----
2891
3332
4704

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 91 * - col2 AS col0 FROM tab2 cor0
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT + - COUNT( * ) + + COUNT( ALL - 77 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( ALL - 77 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT - + 10 + + COUNT( DISTINCT - col2 ) FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4647
SELECT - + 10 + + COUNT ( DISTINCT - col2 ) FROM tab0 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT + + COUNT( * ) + 44 AS col1 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT + + COUNT ( * ) + 44 AS col1 FROM tab0 AS cor0
----
47

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col1 FROM tab2 cor0
----
51
67
77

query II rowsort
SELECT ALL - 15, col0 * + 55 AS col2 FROM tab1 AS cor0
----
-15
2805
-15
4675
-15
5005

query I rowsort
SELECT ALL + col1 + + 7 - - col2 FROM tab1
----
117
122
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT DISTINCT + CAST( - MAX( col1 ) AS SIGNED ) * + 82 FROM tab0
----
-6642

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + CAST ( - MAX ( col1 ) AS INTEGER ) * + 82 FROM tab0
----
-6642

onlyif mysql # DIV for integer division: 
query II rowsort label-4653
SELECT col0 DIV + col2, col2 FROM tab2
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-4653
SELECT col0 / + col2, col2 FROM tab2
----
1
40
1
58
2
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4654
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col0, ( - - col0 ) FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4654
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col0, ( - - col0 ) FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT 7 DIV - col1 FROM tab0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT 7 / - col1 FROM tab0
----
-7
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT + - COUNT( * ) * - 44 FROM tab0 WHERE + 23 <> + 87 + col2 * 38
----
132

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + - COUNT ( * ) * - 44 FROM tab0 WHERE + 23 <> + 87 + col2 * 38
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1 - col0 + - - ( + + col1 ) col0, 59 * - 79 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab0 WHERE NOT - col0 IS NULL
----
1
21
81

query I rowsort
SELECT - - col2 + + - 7 AS col0 FROM tab2 AS cor0 WHERE - 75 IS NULL
----

query I rowsort
SELECT DISTINCT + + 24 FROM tab0 AS cor0 WHERE NULL <= 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT - + CAST( NULL AS SIGNED ) * + col1 - + + col1 * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT - + CAST ( NULL AS INTEGER ) * + col1 - + + col1 * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 2 - + col2 FROM tab0 AS cor0
----
-101
-12
-49

query II rowsort
SELECT DISTINCT col0, col0 * - 80 AS col1 FROM tab1
----
51
-4080
85
-6800
91
-7280

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT 52 * - COUNT( * ) - 69 AS col2 FROM tab0 AS cor0 WHERE NOT - 92 * + - col2 IS NULL
----
-225

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT 52 * - COUNT ( * ) - 69 AS col2 FROM tab0 AS cor0 WHERE NOT - 92 * + - col2 IS NULL
----
-225

query II rowsort
SELECT ALL - 54 AS col1, ( - col1 ) + ( + 9 ) + col0 * 91 + + col0 + + col1 * 45 FROM tab1 cor0
----
-54
10449
-54
5317
-54
8049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * - - col0 + - col1 - + 59 + + 65 * + 11 col1 FROM tab0 AS cor0
----
1970
8726
9676

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT - + 73 DIV + col1 FROM tab0 AS cor0
----
-3
-73
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT - + 73 / + col1 FROM tab0 AS cor0
----
-3
-73
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT - - 18 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col0 + - + col0 >= ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-4668
SELECT - - 18 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col0 + - + col0 >= ( + col0 )
----

query II rowsort
SELECT col0 AS col0, + ( + 8 ) * - - col1 FROM tab2 AS cor0
----
46
408
64
616
75
536

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT MIN( + 46 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT MIN ( + 46 ) FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( + 82 ) + - col2 * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT DISTINCT - 49 * col1 DIV + col2 FROM tab0
----
-102
-84
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 49 * col1 / + col2 FROM tab0
----
-102
-84
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT + 86 DIV + 37 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 86 / + 37 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT col2 + + + ( + - 65 ) - + 21 * + ( 21 ) + CAST( NULL AS SIGNED ) * + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT col2 + + + ( + - 65 ) - + 21 * + ( 21 ) + CAST ( NULL AS INTEGER ) * + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 + + col1 + - col1, ( + - col2 ) AS col0 FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - ( + COUNT( + + 52 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4676
SELECT - ( + COUNT ( + + 52 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + 93 * 94 FROM tab0
----
8742
8742
8742

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( + + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4678
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( + + col2 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 + - - 68 FROM tab0 AS cor0
----
115
167
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4681
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - ( + + CAST( NULL AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4681
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - ( + + CAST ( NULL AS INTEGER ) ) AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT 97 + + - COUNT( + ( + col1 ) ) - - COUNT( * ) - 88 DIV 21 AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-4682
SELECT 97 + + - COUNT ( + ( + col1 ) ) - - COUNT ( * ) - 88 / 21 AS col2 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT 84 + - 46 * - COUNT( * ) AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-4683
SELECT 84 + - 46 * - COUNT ( * ) AS col2 FROM tab2
----
222

query I rowsort
SELECT DISTINCT col0 * - 47 * - + col2 + - + col0 FROM tab0 AS cor0
----
33120
40803
451244

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - ( COUNT( * ) ) + 94 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4685
SELECT - ( COUNT ( * ) ) + 94 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL 10 + - col1 FROM tab0 AS cor0
----
-11
-71
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 - - - col0 <> ( + 86 ) / + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 - - - col0 <> ( + 86 ) / + - col0
----
0

query I rowsort
SELECT DISTINCT - 36 / + 48 + col2 AS col1 FROM tab1 AS cor0 WHERE col0 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 34 * - + MIN( DISTINCT - col1 ) - + 71 FROM tab2
----
2547

skipif mysql # not compatible
query I rowsort label-4689
SELECT 34 * - + MIN ( DISTINCT - col1 ) - + 71 FROM tab2
----
2547

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 - col2 IS NOT NULL OR + col1 BETWEEN col2 * + col2 * + col0 + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT + MAX( - - 62 ) AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT + MAX ( - - 62 ) AS col1 FROM tab2 AS cor0
----
62

query I rowsort
SELECT DISTINCT col2 * 41 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + col2 * - 95 * - - 41 * - 38 + + col1 AND + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT + ( CAST( - MIN( DISTINCT 0 ) AS SIGNED ) ) / - 17 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT + ( CAST ( - MIN ( DISTINCT 0 ) AS INTEGER ) ) / - 17 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - 59 col2, + 48 FROM tab0 AS cor0
----
-2773
48
-5841
48
-590
48

query II rowsort
SELECT DISTINCT + 1 AS col1, col1 + - - col2 * - - col2 FROM tab1
----
1
3486
1
4671
1
9230

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4697
SELECT ALL * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4697
SELECT ALL * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4698
SELECT + 68 AS col1, CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
68
14
68
47
68
5

skipif mysql # not compatible
query II rowsort label-4698
SELECT + 68 AS col1, CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
68
14
68
47
68
5

query II rowsort
SELECT ALL - 85, 83 * + - col0 AS col2 FROM tab2
----
-85
-3818
-85
-5312
-85
-6225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT DISTINCT + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + + 68 FROM tab1 AS cor0 WHERE NOT - 31 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT + MIN( - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4702
SELECT + MIN ( - col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT + 96 FROM tab2 WHERE ( col0 ) <= ( col0 )
----
96
96
96

query I rowsort
SELECT - 31 + col2 AS col0 FROM tab1
----
28
37
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - ( MIN( DISTINCT + col0 ) ) * COUNT( * ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4705
SELECT - ( MIN ( DISTINCT + col0 ) ) * COUNT ( * ) AS col1 FROM tab0
----
-45

query I rowsort
SELECT 43 AS col1 FROM tab0 WHERE 21 <= - 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT DISTINCT + ( col0 ) + col0 DIV 3 FROM tab1
----
113
121
68

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT + ( col0 ) + col0 / 3 FROM tab1
----
113
121
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT COUNT( * ) FROM tab1 WHERE NOT 28 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT COUNT ( * ) FROM tab1 WHERE NOT 28 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 37 + col1 AS col2 FROM tab2
----
104
114
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT 74 + + COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4710
SELECT 74 + + COUNT ( * ) FROM tab0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT COUNT( * ) * + 92 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-4711
SELECT COUNT ( * ) * + 92 FROM tab0
----
276

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( - col2 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + 37 col0 FROM tab2
----
9
9
9

query I rowsort
SELECT col2 * + 0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 89 + + 43 AS col0 FROM tab2
----
132

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 63 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 * - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4718
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 * - col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT col0 / + col1 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-4719
SELECT col0 / + col1 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 + - col2 col2 FROM tab2
----
-103
-121
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT ALL - COUNT( * ) DIV 86 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - COUNT ( * ) / 86 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + col1 * col2 IN ( col1 + - col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( col1 + - 71 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = ( col0 / 50 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT ALL - 83 DIV 33 + col0 FROM tab0 AS cor0
----
13
85
95

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL - 83 / 33 + col0 FROM tab0 AS cor0
----
13
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL COUNT( * ) + 48 col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4726
SELECT ALL COUNT ( * ) + 48 col0 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4727
SELECT COUNT( - col0 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT COUNT ( - col0 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) BETWEEN ( NULL ) AND + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 + - 54 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4730
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 + - 54 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col0 <> 55
----

query I rowsort
SELECT ALL 29 * 78 FROM tab0
----
2262
2262
2262

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4734
SELECT - COUNT( ALL - col1 ) DIV 5 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT - COUNT ( ALL - col1 ) / 5 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 - col2 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT col1 DIV 86 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4736
SELECT col1 / 86 col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) * col2 NOT BETWEEN 83 AND ( NULL )
----

query I rowsort
SELECT + col1 * 11 AS col1 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - + MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4740
SELECT - + MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 cor0 WHERE - col0 + + col0 * + col0 = - 91 + + col2 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 cor0 WHERE - col0 + + col0 * + col0 = - 91 + + col2 * + col0
----
0

query I rowsort
SELECT ( + col2 ) * - col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col0 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - 35 IN ( - col0 )
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT DISTINCT 65 - + MAX( 94 ) AS col0 FROM tab0 WHERE NULL <= ( col0 / ( - col1 / + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT 65 - + MAX ( 94 ) AS col0 FROM tab0 WHERE NULL <= ( col0 / ( - col1 / + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL 8 - 27 DIV - col1 FROM tab1 WHERE ( + 28 * - col0 ) <> ( col1 + col1 )
----
13
8
9

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL 8 - 27 / - col1 FROM tab1 WHERE ( + 28 * - col0 ) <> ( col1 + col1 )
----
13
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 19 FROM tab0 AS cor0 WHERE ( - 89 * - col1 ) IS NOT NULL
----
19
19
19

query I rowsort
SELECT - + col0 + - col1 * col1 FROM tab2 AS cor0
----
-2647
-4564
-5993

query I rowsort
SELECT - 58 + + col1 - - col1 AS col1 FROM tab2 AS cor0
----
44
76
96

query I rowsort
SELECT + 1 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - 54 * + - ( + 60 ) + 30 FROM tab0 cor0
----
3270
3270
3270

query I rowsort
SELECT + - 85 + - col1 FROM tab0 AS cor0
----
-106
-166
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT + 93 - CAST( - 84 - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( + col2 * col0 ) IS NULL
----
177

skipif mysql # not compatible
query I rowsort label-4754
SELECT + 93 - CAST ( - 84 - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( + col2 * col0 ) IS NULL
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4755
SELECT DISTINCT + - ( COUNT( * ) ) DIV COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4755
SELECT DISTINCT + - ( COUNT ( * ) ) / COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT + col0 DIV + col0 + + ( - col1 ) FROM tab2 cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + col0 / + col0 + + ( - col1 ) FROM tab2 cor0
----
-50
-66
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-4757
SELECT 78 col0, ( + 88 ) DIV col2 FROM tab2 AS cor0
----
78
1
78
2
78
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4757
SELECT 78 col0, ( + 88 ) / col2 FROM tab2 AS cor0
----
78
1
78
2
78
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT SUM( + - col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4758
SELECT SUM ( + - col1 ) AS col2 FROM tab2 cor0
----
-195

query I rowsort
SELECT DISTINCT - 95 + + ( - col2 ) FROM tab0 AS cor0
----
-105
-142
-194

query I rowsort
SELECT - col0 + col2 AS col0 FROM tab1 AS cor0 WHERE + 87 * col2 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL SUM( DISTINCT + col0 ) + - COUNT( DISTINCT 67 ) FROM tab2 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL SUM ( DISTINCT + col0 ) + - COUNT ( DISTINCT 67 ) FROM tab2 AS cor0
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT DISTINCT - CAST( + col0 AS SIGNED ) - + + col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) - + + col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - 87 * 40 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT DISTINCT + 86 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + 86 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 33 * + + 17 + - - col0 AS col1 FROM tab0
----
576
648
658

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab2 WHERE NOT ( col0 * col0 ) IS NULL
----
31

query I rowsort
SELECT - 60 + + col2 AS col0 FROM tab0
----
-13
-50
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT col2 + ( - col2 ) DIV - + ( - col1 ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4768
SELECT col2 + ( - col2 ) / - + ( - col1 ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT 68 * - 18 AS col0 FROM tab0
----
-1224
-1224
-1224

query I rowsort
SELECT ALL ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col2 + col1 AS col2 FROM tab0 AS cor0 WHERE ( + + 0 * col2 IN ( - col1 / - 29 + + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + + 44 col1 FROM tab2 AS cor0
----
-2244
-2948
-3388

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( 35 * + col0 + - col2 NOT IN ( 78 / + ( + col2 ) ) ) )
----

query I rowsort
SELECT + col1 / col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT + - COUNT( * ) * 74 AS col2 FROM tab1 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + - COUNT ( * ) * 74 AS col2 FROM tab1 cor0
----
-222

query I rowsort
SELECT ALL 34 FROM tab0 AS cor0 WHERE + col2 / 58 BETWEEN ( NULL ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT - col2 DIV + col2 FROM tab2 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4777
SELECT - col2 / + col2 FROM tab2 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL SUM( col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL SUM ( col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 * - col2 - - - ( + 18 ) ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > + 64 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL 20 * + MAX( ALL + col0 ) col2 FROM tab1 AS cor0
----
1820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4781
SELECT ALL 20 * + MAX ( ALL + col0 ) col2 FROM tab1 AS cor0
----
1820

query I rowsort
SELECT ALL 88 * col0 AS col2 FROM tab0 AS cor0
----
1320
7656
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 88 col1 FROM tab2 AS cor0
----
-4488
-5896
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ( ( - + COUNT( * ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4784
SELECT ( ( - + COUNT ( * ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * 15 < ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col2 ) / col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( col0 - - col2 * + + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + MIN( - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + MIN ( - col0 ) FROM tab1 cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT DISTINCT - - ( - + 33 ) DIV + col0 * + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT - - ( - + 33 ) / + col0 * + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + - MAX( ALL - col0 ) * 97 AS col2 FROM tab1 AS cor0 WHERE NOT - 46 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + - MAX ( ALL - col0 ) * 97 AS col2 FROM tab1 AS cor0 WHERE NOT - 46 * + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL SUM( 7 ) FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL SUM ( 7 ) FROM tab0 cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT ALL + CAST( - 70 AS SIGNED ) AS col1 FROM tab2
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + CAST ( - 70 AS INTEGER ) AS col1 FROM tab2
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT - MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4792
SELECT - MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT - ( + ( + 51 ) ) DIV + - 38 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4793
SELECT - ( + ( + 51 ) ) / + - 38 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT * FROM tab1 WHERE NOT - 54 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - COUNT( * ) * - + 99 AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - COUNT ( * ) * - + 99 AS col2 FROM tab0
----
297

query I rowsort
SELECT DISTINCT - 4 + - col1 * + + col0 * - 89 FROM tab2
----
208790
438588
447221

query I rowsort
SELECT ALL - 87 + col1 * - col2 * 69 FROM tab1 AS cor0
----
-20442
-220611
-92823

query I rowsort
SELECT - col1 + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 ) / + + 9 - col0 + - col1 / + col2 * + 60 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4799
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 ) / + + 9 - col0 + - col1 / + col2 * + 60 IS NOT NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT DISTINCT - + 23 DIV - 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - + 23 / - 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - 52 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT - 95 AS col1 FROM tab2 cor0
----
-95
-95
-95

query II rowsort
SELECT + col0 AS col1, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 13 <> ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) < col2
----

query II rowsort
SELECT 14 AS col0, 52 FROM tab1
----
14
52
14
52
14
52

query I rowsort
SELECT DISTINCT col2 - - ( + col2 ) AS col1 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL 90 - + + 50 AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT col1 + + col1 AS col0 FROM tab0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL 56 - - ( 66 ) AS col1 FROM tab0
----
122
122
122

query III rowsort
SELECT * FROM tab1 WHERE ( - 94 ) >= ( NULL ) OR NOT - 86 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 11 AS col0 FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + + COUNT( - - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + + COUNT ( - - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 66 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
66
66
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT COUNT( * ), 2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
2

skipif mysql # not compatible
query II rowsort label-4815
SELECT COUNT ( * ), 2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
2

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT + - 34 col2, 46 DIV - col2 FROM tab2 AS cor0
----
-34
-1
-34
-2
-34
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4816
SELECT + - 34 col2, 46 / - col2 FROM tab2 AS cor0
----
-34
-1
-34
-2
-34
0

query I rowsort
SELECT ALL + 54 * col1 * - ( col2 ) FROM tab0
----
-11340
-205578
-5346

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 43 < NULL
----

query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + 10
----
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + 10
----
0

query I rowsort
SELECT - col2 * + 38 FROM tab2 AS cor0
----
-1520
-2204
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT col0 * 49 DIV + col0 col2 FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT col0 * 49 / + col0 col2 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT - col2 * 32 FROM tab1 cor0
----
-1888
-2176
-3072

query I rowsort
SELECT - col0 * - 26 AS col2 FROM tab2
----
1196
1664
1950

query I rowsort
SELECT ALL - 71 * + + col2 FROM tab0
----
-3337
-7029
-710

query I rowsort
SELECT 29 + + col1 + + 18 AS col0 FROM tab0
----
128
48
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT ALL col2 DIV col0 AS col0 FROM tab1 WHERE col0 IS NOT NULL AND + 56 - + + col0 * 79 * - col2 NOT IN ( + col1, + col0 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL col2 / col0 AS col0 FROM tab1 WHERE col0 IS NOT NULL AND + 56 - + + col0 * 79 * - col2 NOT IN ( + col1, + col0 )
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT 36 + + 83 DIV - 97 + + col2 AS col1 FROM tab1
----
104
132
95

skipif mysql # not compatible
query I rowsort label-4828
SELECT 36 + + 83 / - 97 + + col2 AS col1 FROM tab1
----
104
132
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL CAST( - col0 AS SIGNED ) * + col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL CAST ( - col0 AS INTEGER ) * + col2 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + ( - col2 ) - - col1 * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4831
SELECT 39 * - + COUNT( + + 0 ) + + ( + 31 ), - 49 + - - 68 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-4831
SELECT 39 * - + COUNT ( + + 0 ) + + ( + 31 ), - 49 + - - 68 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
-86
NULL

query I rowsort
SELECT ALL - 0 + + - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4833
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4833
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT - 81 * + - 93 * - + col1 AS col0 FROM tab1
----
-105462
-354051
-37665

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT DISTINCT col1 + - 5 DIV - 73 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT col1 + - 5 / - 73 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + + col0 - + col0 * - col1 * + col1 FROM tab1 AS cor0
----
10047
201110
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL COUNT( * ) + - 15 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL COUNT ( * ) + - 15 FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT DISTINCT + COUNT( * ) + 99 AS col0 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT + COUNT ( * ) + 99 AS col0 FROM tab2 AS cor0
----
102

query I rowsort
SELECT - 55 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
2901
4734
5073

query I rowsort
SELECT + - 36 + - 39 AS col1 FROM tab1 AS cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 + + col1 col2 FROM tab1 AS cor0
----
51
60
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 + 96 * - - 74 col0 FROM tab1 AS cor0
----
7024
7060
7067

query I rowsort
SELECT - - 73 FROM tab2 WHERE NOT NULL >= 3 * col1 * - col1 + col1 * col1
----

query I rowsort
SELECT col1 * + - 38 FROM tab1
----
-1786
-190
-532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 26 * - - 94 col0 FROM tab1
----
144196
166192
234624

query I rowsort
SELECT DISTINCT col0 + col1 * + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 80 * 14 * col2 AS col2 FROM tab2
----
-25760
-44800
-64960

query I rowsort
SELECT col2 * + + col1 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + + col1 IN ( + ( + - col2 ) * - col2 + col2 * col1 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4852
SELECT - CAST( NULL AS DECIMAL ) / CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT - CAST ( NULL AS REAL ) / CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 4 * + + col1 FROM tab2
----
204
268
308

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4854
SELECT + COUNT( * ), - 69 DIV 56 AS col0 FROM tab2 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-4854
SELECT + COUNT ( * ), - 69 / 56 AS col0 FROM tab2 AS cor0
----
3
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT ( MIN( DISTINCT CAST( + + 6 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT ( MIN ( DISTINCT CAST ( + + 6 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT 80 + - col1 AS col0 FROM tab2 AS cor0
----
13
29
3

query I rowsort
SELECT DISTINCT + col0 * 91 FROM tab2 cor0
----
4186
5824
6825

query II rowsort
SELECT 93 + - + 85 AS col0, col2 AS col1 FROM tab2
----
8
23
8
40
8
58

query I rowsort
SELECT col2 * - 44 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4861
SELECT ALL - COUNT( * ) DIV COUNT( * ), 93 col1 FROM tab0
----
-1
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4861
SELECT ALL - COUNT ( * ) / COUNT ( * ), 93 col1 FROM tab0
----
-1
93

query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL - 9 + + ( + 15 ) AS col1 FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 3 + col1 AS col1 FROM tab1 AS cor0
----
17
50
8

query I rowsort
SELECT ALL 18 * - 16 + - - 32 AS col2 FROM tab0 AS cor0
----
-256
-256
-256

query II rowsort
SELECT + col1 + - col0 + col1 AS col0, + 21 AS col0 FROM tab2
----
56
21
59
21
90
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT DISTINCT + 82 DIV - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + 82 / - col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + 72 + - + COUNT( * ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4869
SELECT + 72 + - + COUNT ( * ) AS col2 FROM tab0
----
69

query I rowsort
SELECT ALL 43 - + + col2 * + + col0 FROM tab2 cor0
----
-1015
-2517
-4307

query I rowsort
SELECT DISTINCT + + 83 * col2 + + col0 FROM tab0 AS cor0
----
3916
8314
917

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT MAX( ALL 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4872
SELECT MAX ( ALL 72 ) FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT - ( - CAST( + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4873
SELECT - ( - CAST ( + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT ALL - 81 AS col0, 54 FROM tab1
----
-81
54
-81
54
-81
54

query II rowsort
SELECT col1, col0 + - col0 FROM tab0
----
1
0
21
0
81
0

query II rowsort
SELECT col0, - col1 * + col1 * - col0 AS col0 FROM tab0
----
15
98415
87
38367
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col1 ) * col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-4878
SELECT DISTINCT col2 DIV - - col0 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT col2 / - - col0 AS col2 FROM tab0
----
0
1
3

query II rowsort
SELECT ALL - col0, col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT + ( 83 ) AS col2, - 51 + + col0 / - + 91 + - + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 76 * - 49 * + 10 FROM tab1
----
37240
37240
37240

query II rowsort
SELECT DISTINCT - 71 AS col1, 95 FROM tab1
----
-71
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4883
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) + - ( - 0 ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4883
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) + - ( - 0 ) FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT 81 * + - SUM( ALL + col1 ) col0 FROM tab2 AS cor0
----
-15795

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4884
SELECT 81 * + - SUM ( ALL + col1 ) col0 FROM tab2 AS cor0
----
-15795

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT DISTINCT - col1 DIV + 38 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - col1 / + 38 FROM tab0 AS cor0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL < - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL < - col1 )
----
0

query II rowsort
SELECT ALL - 42 AS col2, + 3 * 48 FROM tab2 AS cor0
----
-42
144
-42
144
-42
144

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4889
SELECT + CAST( - - 7 AS SIGNED ) AS col1, col2 * - + 55 AS col0 FROM tab1
----
7
-3245
7
-3740
7
-5280

skipif mysql # not compatible
query II rowsort label-4889
SELECT + CAST ( - - 7 AS INTEGER ) AS col1, col2 * - + 55 AS col0 FROM tab1
----
7
-3245
7
-3740
7
-5280

query I rowsort
SELECT - - 34 AS col2 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + col2 * - ( col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-3486
-4671
-9230

query I rowsort
SELECT ALL col1 + + col0 * + 1 + + 4 FROM tab0 AS cor0
----
100
102
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT - col0 * - col2 * - 16 + + col0 AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4893
SELECT - col0 * - col2 * - 16 + + col0 AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - col2 * + 79 * - + col1 AS col0 FROM tab0
----
16590
300753
7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col0 FROM tab2
----
-21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
9

query I rowsort
SELECT - col2 - + col2 + + col0 FROM tab0
----
-101
-79
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT CAST( - col1 AS SIGNED ) - col1 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-4899
SELECT CAST ( - col1 AS INTEGER ) - col1 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - COUNT( 33 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4900
SELECT - COUNT ( 33 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - ( - 53 ) * - 63 * col1 * col0 * - 15 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 58, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT DISTINCT - col1 * ( CAST( - 91 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
4641
6097
7007

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - col1 * ( CAST ( - 91 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
4641
6097
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT col0 DIV - + col1 AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT col0 / - + col1 AS col0 FROM tab2 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + - MAX( 96 ) FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + - MAX ( 96 ) FROM tab0 cor0
----
-96

query I rowsort
SELECT DISTINCT + + col0 + - + ( + 52 ) FROM tab2 WHERE + col0 IS NOT NULL
----
-6
12
23

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + SUM( + 44 ) AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-4908
SELECT + SUM ( + 44 ) AS col2 FROM tab2
----
132

query II rowsort
SELECT - col1, col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL ( 26 ) * - + COUNT( * ) AS col2 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL ( 26 ) * - + COUNT ( * ) AS col2 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL - 36 * + ( COUNT( * ) ) FROM tab0 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - 36 * + ( COUNT ( * ) ) FROM tab0 cor0
----
-108

query I rowsort
SELECT ALL - col2 * + + col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT SUM( DISTINCT + 70 ) col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4913
SELECT DISTINCT SUM ( DISTINCT + 70 ) col0 FROM tab1 AS cor0
----
70

query I rowsort
SELECT + + 75 FROM tab1 AS cor0 WHERE NOT + col0 * - + col2 IS NULL
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL - + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

query I rowsort
SELECT ALL - - col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT col2, + col0, - 48 FROM tab0 AS cor0
----
9 values hashing to c0bcfdb403dd5f4c7781d3bdc22e8cd5

query I rowsort
SELECT DISTINCT - col1 + + 81 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - SUM( DISTINCT col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT ( - COUNT( * ) ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4923
SELECT DISTINCT ( - COUNT ( * ) ) col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL + COUNT( * ) + - SUM( 65 ) + CAST( 11 AS SIGNED ) FROM tab2 cor0
----
-181

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + COUNT ( * ) + - SUM ( 65 ) + CAST ( 11 AS INTEGER ) FROM tab2 cor0
----
-181

query II rowsort
SELECT DISTINCT 76 AS col0, col2 + + - col0 AS col2 FROM tab1 AS cor0
----
76
-23
76
-26
76
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 48 IS NOT NULL
----

query I rowsort
SELECT - 24 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL MAX( - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL MAX ( - col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4930
SELECT CAST( + + 82 AS SIGNED ) * + col2 AS col0, - col2 AS col2 FROM tab2
----
1886
-23
3280
-40
4756
-58

skipif mysql # not compatible
query II rowsort label-4930
SELECT CAST ( + + 82 AS INTEGER ) * + col2 AS col0, - col2 AS col2 FROM tab2
----
1886
-23
3280
-40
4756
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - ( - + MIN( + 5 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4931
SELECT - ( - + MIN ( + 5 ) ) AS col1 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT + 59 DIV - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4932
SELECT + 59 / - col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT 9 - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT + col0 * col2 FROM tab0 cor0 WHERE ( col0 < col2 * CAST( + - 65 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4934
SELECT + col0 * col2 FROM tab0 cor0 WHERE ( col0 < col2 * CAST ( + - 65 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL - 63 - 94, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-157
3

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL - 63 - 94, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-157
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 + + 13 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + 29, - col0 + + 55 + + col1 col0 FROM tab2 AS cor0
----
-22
60
-38
47
-48
68

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4938
SELECT + 35 + - + CAST( NULL AS DECIMAL ), + col1 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
-2601
NULL
-4489
NULL
-5929

skipif mysql # not compatible
query II rowsort label-4938
SELECT + 35 + - + CAST ( NULL AS REAL ), + col1 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
-2601
NULL
-4489
NULL
-5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + + COUNT( * ) - - + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + + COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 < + 48 * - col1 + - - col1
----
59
68
96

query I rowsort
SELECT DISTINCT ( + col1 ) * + 26 AS col2 FROM tab1 cor0
----
1222
130
364

query I rowsort
SELECT ALL - col1 * col0 AS col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT ALL - ( + + ( + CAST( NULL AS SIGNED ) ) ) * + 19 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - ( + + ( + CAST ( NULL AS INTEGER ) ) ) * + 19 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4945
SELECT ( + col1 ) + + + col1 AS col2, 66 / + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
102
NULL
134
NULL
154
NULL

skipif mysql # not compatible
query II rowsort label-4945
SELECT ( + col1 ) + + + col1 AS col2, 66 / + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
102
NULL
134
NULL
154
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4946
SELECT ALL + + col2 * - col1 * + - 2 * 93 AS col0, - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
218178
NULL
572880
NULL
722796
NULL

skipif mysql # not compatible
query II rowsort label-4946
SELECT ALL + + col2 * - col1 * + - 2 * 93 AS col0, - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
218178
NULL
572880
NULL
722796
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT + 65 * + COUNT( - col1 ) AS col1 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-4949
SELECT + 65 * + COUNT ( - col1 ) AS col1 FROM tab1
----
195

query I rowsort
SELECT ALL + ( col1 ) FROM tab1 WHERE NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT - COUNT( * ) * + + MIN( DISTINCT + col2 ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - COUNT ( * ) * + + MIN ( DISTINCT + col2 ) AS col1 FROM tab1
----
-177

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT ( + + col1 ), col2 * col2 AS col2 FROM tab2
----
51
529
67
3364
77
1600

query I rowsort
SELECT col2 + - - col2 AS col0 FROM tab2
----
116
46
80

query II rowsort
SELECT + 66 + + col1 + + - col0, col2 + - ( + 94 ) * - col2 AS col0 FROM tab2 AS cor0 WHERE 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 71 + + ( 63 ) AS col1 FROM tab2 AS cor0
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4958
SELECT DISTINCT + col0 - + col0 + - + col0 AS col0, ( - CAST( + - 47 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-51
47
-85
47
-91
47

skipif mysql # not compatible
query II rowsort label-4958
SELECT DISTINCT + col0 - + col0 + - + col0 AS col0, ( - CAST ( + - 47 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-51
47
-85
47
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + 51 * - col2 + ( - col1 ) + + col0 FROM tab0 AS cor0
----
-2463
-444
-4953

query I rowsort
SELECT ALL col2 - + 37 + + 0 + + col1 FROM tab0 AS cor0
----
-6
63
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4962
SELECT - COUNT( ALL 21 ) * - 37 + MIN( + col1 ), - 95 AS col1 FROM tab1 AS cor0
----
116
-95

skipif mysql # not compatible
query II rowsort label-4962
SELECT - COUNT ( ALL 21 ) * - 37 + MIN ( + col1 ), - 95 AS col1 FROM tab1 AS cor0
----
116
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT - 76 + - ( col2 ) FROM tab2
----
-116
-134
-99

query I rowsort
SELECT ALL - col0 + + col1 + + col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - 94 + + COUNT( * ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4966
SELECT - 94 + + COUNT ( * ) FROM tab1
----
-91

query I rowsort
SELECT - col1 * - 16 + + col1 AS col1 FROM tab0
----
1377
17
357

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT 59 + COUNT( * ) * - 1 AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4968
SELECT 59 + COUNT ( * ) * - 1 AS col2 FROM tab1
----
56

query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab0 cor0 WHERE NULL <> 7
----

query I rowsort
SELECT 13 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
13
13
13

query II rowsort
SELECT + + 81, - 54 AS col1 FROM tab2 AS cor0
----
81
-54
81
-54
81
-54

query II rowsort
SELECT ALL - ( - col0 ) AS col1, - 58 * - col2 AS col1 FROM tab0
----
15
2726
87
580
97
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT + COUNT( * ) * - + ( 42 ) FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4973
SELECT + COUNT ( * ) * - + ( 42 ) FROM tab1 AS cor0
----
-126

query II rowsort
SELECT DISTINCT col0 * - 87 + ( ( col2 ) ) * - col0 * - col0, - col1 AS col2 FROM tab2 AS cor0
----
158272
-77
319725
-67
44666
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL - MAX( + 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - MAX ( + 50 ) FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4976
SELECT + COUNT( * ) DIV + + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4976
SELECT + COUNT ( * ) / + + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4977
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4977
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ( MAX( DISTINCT - - ( - col0 ) ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4978
SELECT ( MAX ( DISTINCT - - ( - col0 ) ) ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col0 + - 13 FROM tab2
----
51
33
67
62
77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL - 70 * + COUNT( * ) col2 FROM tab1
----
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT ALL - 70 * + COUNT ( * ) col2 FROM tab1
----
-210

query II rowsort
SELECT 67, - ( col0 ) AS col2 FROM tab0
----
67
-15
67
-87
67
-97

query II rowsort
SELECT DISTINCT ( - + 26 ) + - col1 AS col2, 49 + + 45 FROM tab0
----
-107
94
-27
94
-47
94

query I rowsort
SELECT ALL col2 * col0 * + 39 FROM tab1
----
190944
195585
241332

query I rowsort
SELECT col0 + - 57 + - col0 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT ALL + col1 * + col0 * 17 FROM tab1
----
12138
7225
72709

query I rowsort
SELECT DISTINCT 58 + + col0 AS col1 FROM tab1 AS cor0
----
109
143
149

query II rowsort
SELECT DISTINCT col2 + + col2 AS col1, 25 * + + 81 FROM tab1 cor0
----
118
2025
136
2025
192
2025

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 96 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 = - col2 + + col0 + - col2
----

query I rowsort
SELECT + + col1 + 74 AS col2 FROM tab1 AS cor0 WHERE NULL >= 17
----

query I rowsort
SELECT ALL - - col2 * - + col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + - 59 * + - col0 * 91 FROM tab1 AS cor0
----
273819
456365
488579

query I rowsort
SELECT - col2 * 16 FROM tab2
----
-368
-640
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL MIN( + col1 ) - + COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL MIN ( + col1 ) - + COUNT ( * ) FROM tab0
----
-2

query I rowsort
SELECT DISTINCT col0 - - 59 FROM tab0
----
146
156
74

query I rowsort
SELECT ALL 33 * 29 FROM tab2
----
957
957
957

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT DISTINCT - SUM( + ( - 23 ) ) AS col0, 14 * + COUNT( - 21 ) FROM tab2 AS cor0
----
69
42

skipif mysql # not compatible
query II rowsort label-4997
SELECT DISTINCT - SUM ( + ( - 23 ) ) AS col0, 14 * + COUNT ( - 21 ) FROM tab2 AS cor0
----
69
42

query II rowsort
SELECT - col2 AS col0, 96 + + 31 FROM tab1 AS cor0
----
-59
127
-68
127
-96
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 53 AS col1, + 49 * + - col0 col0 FROM tab2 AS cor0
----
53
-2254
53
-3136
53
-3675

onlyif mysql # DIV for integer division: 
query I rowsort label-5000
SELECT 34 DIV + 31 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5000
SELECT 34 / + 31 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + - col2 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5002
SELECT + ( COUNT( * ) ) DIV 54 - - 16 AS col2 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5002
SELECT + ( COUNT ( * ) ) / 54 - - 16 AS col2 FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5003
SELECT DISTINCT col2 col2, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5003
SELECT DISTINCT col2 col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 * + - col0 BETWEEN - col1 * - - col2 AND NULL )
----

query I rowsort
SELECT DISTINCT + ( - + ( col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - - 70 * - MAX( 20 ) * + - 68 AS col1 FROM tab2 AS cor0
----
95200

skipif mysql # not compatible
query I rowsort label-5006
SELECT - - 70 * - MAX ( 20 ) * + - 68 AS col1 FROM tab2 AS cor0
----
95200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT CAST( + ( + 10 ) AS SIGNED ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT CAST ( + ( + 10 ) AS INTEGER ) FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT + + COUNT( * ) * - + 58 AS col2 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5008
SELECT + + COUNT ( * ) * - + 58 AS col2 FROM tab0 AS cor0
----
-174

query I rowsort
SELECT + - 91 AS col1 FROM tab1 cor0
----
-91
-91
-91

query II rowsort
SELECT ALL 11, col0 AS col2 FROM tab1 AS cor0
----
11
51
11
85
11
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + 72 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT - 91 DIV - + col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5012
SELECT - 91 / - + col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 81 + + + ( + col0 ) FROM tab1 AS cor0
----
132
166
172

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 BETWEEN - - col2 / + col1 / - 79 + + col2 + - ( + col1 ) AND NULL
----

query I rowsort
SELECT col0 + + ( - col1 ) + + col1 * + col2 + + 11 FROM tab2 AS cor0
----
1179
3078
3905

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( ( col1 ) ) AND + 5
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 87 > + col1 + + + col2
----
46
51
23

query I rowsort
SELECT ALL 92 * 63 + + 14 + + col0 AS col0 FROM tab2 AS cor0
----
5856
5874
5885

onlyif mysql # DIV for integer division: 
query II rowsort label-5019
SELECT DISTINCT + - 95 + - + 66, + col2 DIV - 58 col2 FROM tab1 AS cor0
----
-161
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5019
SELECT DISTINCT + - 95 + - + 66, + col2 / - 58 col2 FROM tab1 AS cor0
----
-161
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT + 28, COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
28
9

skipif mysql # not compatible
query II rowsort label-5020
SELECT + 28, COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
28
9

query I rowsort
SELECT DISTINCT + 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL + + CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5022
SELECT ALL + + CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 3 - + col0 AS col0 FROM tab0 cor0
----
-100
-18
-90

query I rowsort
SELECT + ( - col1 ) + - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + col1 - col2 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT col2 + - 10 - + + 41 DIV - 25 FROM tab1
----
50
59
87

skipif mysql # not compatible
query I rowsort label-5027
SELECT col2 + - 10 - + + 41 / - 25 FROM tab1
----
50
59
87

query I rowsort
SELECT ALL + col1 * col2 - - 13 AS col1 FROM tab0
----
112
223
3820

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL - SUM( ALL 90 ) AS col0 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL - SUM ( ALL 90 ) AS col0 FROM tab2
----
-270

query I rowsort
SELECT ALL + col2 * + 45 FROM tab1
----
2655
3060
4320

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN col2 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col2 + - 66 / col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col2 + - 66 / col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 5 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT + - CAST( ( + 11 ) AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 46
----

skipif mysql # not compatible
query I rowsort label-5034
SELECT + - CAST ( ( + 11 ) AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> 46
----

query I rowsort
SELECT ALL ( - ( + + 83 ) ) AS col0 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + 25 FROM tab2 AS cor0 WHERE NOT - col0 * + col0 >= NULL
----

query II rowsort
SELECT DISTINCT - + col2 AS col0, + col2 / + 5 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT ALL ( - 87 ) FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT 91 * + - col1 * 80 FROM tab2
----
-371280
-487760
-560560

query I rowsort
SELECT ( - col1 ) * - - 46 AS col1 FROM tab2
----
-2346
-3082
-3542

query II rowsort
SELECT + 59, col1 AS col2 FROM tab0
----
59
1
59
21
59
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT - 28 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - 28 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 53 + + + col0 FROM tab2 AS cor0
----
117
128
99

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + 43 + + - 94 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - 60 + COUNT( DISTINCT - col1 ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 60 + COUNT ( DISTINCT - col1 ) AS col1 FROM tab2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL col0 * + col2 - + col0 * - + CAST( + - col2 AS SIGNED ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL col0 * + col2 - + col0 * - + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE NOT NULL >= + - col2 - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL - ( + COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5050
SELECT ALL - ( + COUNT ( * ) ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - - AVG ( - ( + 71 ) ) / + COUNT( * ) + - 28 FROM tab1 AS cor0 WHERE col0 / + col0 BETWEEN col2 AND - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT - - AVG ( - ( + 71 ) ) / + COUNT ( * ) + - 28 FROM tab1 AS cor0 WHERE col0 / + col0 BETWEEN col2 AND - + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 - + - 72 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 - + - 72 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT 67 * + col0 / 87 NOT BETWEEN - 92 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT 67 * + col0 / 87 NOT BETWEEN - 92 AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT COUNT( * ) * COUNT( - + 94 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5054
SELECT COUNT ( * ) * COUNT ( - + 94 ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT ALL - + 18 + - COUNT( * ) AS col0, - 30 * - COUNT( * ) col1 FROM tab1 AS cor0
----
-21
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5055
SELECT ALL - + 18 + - COUNT ( * ) AS col0, - 30 * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-21
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - 84 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5056
SELECT - 84 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) + - - COUNT( ALL + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) + - - COUNT ( ALL + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT 16 - - col0 AS col2 FROM tab0
----
103
113
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 43 ) col1 FROM tab1
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT ( - 47 ) * COUNT( * ) AS col2 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT ( - 47 ) * COUNT ( * ) AS col2 FROM tab0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 0 * + col0 * + - col0 col0, + col2 FROM tab0
----
0
10
0
47
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * + + col2 col1 FROM tab0 AS cor0
----
-1363
-2871
-290

query I rowsort
SELECT + col1 * 29 + 91 + 66 AS col2 FROM tab2 AS cor0
----
1636
2100
2390

query I rowsort
SELECT - col2 * + + 67 FROM tab0 AS cor0
----
-3149
-6633
-670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT DISTINCT - + CAST( - COUNT( DISTINCT 85 ) AS SIGNED ) + + - 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - + CAST ( - COUNT ( DISTINCT 85 ) AS INTEGER ) + + - 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-56

query I rowsort
SELECT DISTINCT col2 + - 3 AS col0 FROM tab0
----
44
7
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT ALL MAX( ALL - col2 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL MAX ( ALL - col2 ) / COUNT ( * ) FROM tab2 AS cor0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT DISTINCT + COUNT( * ) * + 95 * 20 + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT + COUNT ( * ) * + 95 * 20 + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * + col1 col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT SUM( - - 14 ) AS col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5070
SELECT SUM ( - - 14 ) AS col0 FROM tab2 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT DISTINCT - + 33 DIV 97 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - + 33 / 97 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + + 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 74 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 66 AS col2 FROM tab1
----
3102
330
924

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - COUNT( * ) + 44 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5075
SELECT - COUNT ( * ) + 44 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL - MAX( ALL col1 ) + + 31 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - MAX ( ALL col1 ) + + 31 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + 46 + + COUNT( * ) + + 63 * + 73 AS col2 FROM tab1 AS cor0
----
4648

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 46 + + COUNT ( * ) + + 63 * + 73 AS col2 FROM tab1 AS cor0
----
4648

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 96 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + 17 + - COUNT( * ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5079
SELECT + 17 + - COUNT ( * ) FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 13 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 13 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 66 + - 2 AS col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT + 50 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
50
50
50

query I rowsort
SELECT DISTINCT - 59 - - 92 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
33

query II rowsort
SELECT col1 AS col2, - 43 AS col0 FROM tab1
----
14
-43
47
-43
5
-43

query I rowsort
SELECT + col2 - col1 * + + ( - col1 ) * col2 FROM tab0 cor0
----
198
308414
4420

query I rowsort
SELECT + col2 + + 49 + - col0 * - - 64 - + 39 AS col1 FROM tab1 AS cor0
----
-3158
-5371
-5746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col0 * - 51 + - + 31 * + 70 col2 FROM tab0 AS cor0
----
-13645
-388189
-482029

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT DISTINCT - 48 DIV + col0 - - 6 + - 67 AS col1 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - 48 / + col0 - - 6 + - 67 AS col1 FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5089
SELECT + - CAST( NULL AS SIGNED ) col1, - 33 + 52 FROM tab0 AS cor0
----
NULL
19
NULL
19
NULL
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5089
SELECT + - CAST ( NULL AS INTEGER ) col1, - 33 + 52 FROM tab0 AS cor0
----
NULL
19
NULL
19
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT + MAX( DISTINCT - col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + MAX ( DISTINCT - col1 ) FROM tab2 cor0
----
-51

query I rowsort
SELECT ALL + - 0 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT + ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab0, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5092
SELECT + ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0, tab0 cor0
----
-9

query I rowsort
SELECT + col0 + ( - col0 ) * col0 * - - col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT 21 * + 80 FROM tab1
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT MIN( - 91 ) * + 9 FROM tab1
----
-819

skipif mysql # not compatible
query I rowsort label-5095
SELECT MIN ( - 91 ) * + 9 FROM tab1
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT - MAX( + 94 ) AS col2 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5096
SELECT - MAX ( + 94 ) AS col2 FROM tab2 cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT - - CAST( + AVG ( ALL col1 ) AS SIGNED ) col1 FROM tab0 cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5097
SELECT - - CAST ( + AVG ( ALL col1 ) AS INTEGER ) col1 FROM tab0 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 col1 FROM tab1 AS cor0
----
87
87
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( + + col0 ), col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT ALL ( + col0 ) DIV 12 FROM tab1 cor0
----
4
7
7

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL ( + col0 ) / 12 FROM tab1 cor0
----
4
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + COUNT( col0 ) * + + COUNT( - 50 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5101
SELECT + COUNT ( col0 ) * + + COUNT ( - 50 ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT 61 * + + col1 AS col2 FROM tab2
----
3111
4087
4697

query III rowsort
SELECT * FROM tab1 WHERE NOT 19 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT + CAST( + - 71 AS SIGNED ) + - col1 AS col2 FROM tab1 cor0
----
-118
-76
-85

skipif mysql # not compatible
query I rowsort label-5104
SELECT + CAST ( + - 71 AS INTEGER ) + - col1 AS col2 FROM tab1 cor0
----
-118
-76
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( * ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5105
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( * ) col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5106
SELECT - + COUNT( * ) - - 22 + MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE CAST( + + 84 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT - + COUNT ( * ) - - 22 + MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE CAST ( + + 84 AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT ALL - - col2 + - + 58 + - 16 - - col1 * + col1 AS col1 FROM tab0 cor0
----
26
377
6534

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 5
----

query I rowsort
SELECT 19 + 27 - col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT DISTINCT ( + CAST( - COUNT( * ) AS SIGNED ) ) * + COUNT( * ) + - 35 AS col0 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + COUNT ( * ) + - 35 AS col0 FROM tab2 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col0 + - + 36 AS col1 FROM tab2 cor0
----
10
28
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5113
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL - COUNT( * ) * + 4 + 62 AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL - COUNT ( * ) * + 4 + 62 AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5115
SELECT DISTINCT + - 25 AS col0, - col1 * - 0 - - + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + + + col0 * + - col1 FROM tab1 AS cor0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-5115
SELECT DISTINCT + - 25 AS col0, - col1 * - 0 - - + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + + + col0 * + - col1 FROM tab1 AS cor0
----
-25
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT - MIN( ALL col1 ) DIV 71 * - + 57 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT - MIN ( ALL col1 ) / 71 * - + 57 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL - SUM( - col0 ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5117
SELECT ALL - SUM ( - col0 ) col0 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT + MAX( + + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5118
SELECT + MAX ( + + col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL col2 * - - col1 * + + 29 + col0 FROM tab1
----
39027
8640
92775

query I rowsort
SELECT ALL col1 + - - col1 * col0 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT + COUNT( * ) + + 77 col1 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5121
SELECT DISTINCT + COUNT ( * ) + + 77 col1 FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT + 11 - col2 * + - 50 * + col2 FROM tab0
----
110461
490061
5011

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 23 + + - 70 * - 59 - - col2 BETWEEN + col0 + + col1 - - 1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT + 54 DIV + - col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT + 54 / + - col2 FROM tab2 AS cor0
----
-1
-2
0

query II rowsort
SELECT DISTINCT - 89 * + col1 + - + col1, col2 FROM tab0 AS cor0
----
-1890
10
-7290
47
-90
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <= col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( - col2 ) / + col2 * - col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT - 50 * + CAST( NULL AS SIGNED ) / - 82 + + + 83 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT - 50 * + CAST ( NULL AS INTEGER ) / - 82 + + + 83 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT MIN( DISTINCT + - 65 ) AS col2, + ( + COUNT( * ) ) FROM tab2
----
-65
3

skipif mysql # not compatible
query II rowsort label-5130
SELECT MIN ( DISTINCT + - 65 ) AS col2, + ( + COUNT ( * ) ) FROM tab2
----
-65
3

query II rowsort
SELECT col0 AS col0, - 67 FROM tab2
----
46
-67
64
-67
75
-67

query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5133
SELECT ALL 11 AS col0, - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
11
-3

skipif mysql # not compatible
query II rowsort label-5133
SELECT ALL 11 AS col0, - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
11
-3

query I rowsort
SELECT - col0 * - col2 + + - col0 + + 26 FROM tab0 AS cor0
----
716
809
9532

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + 0 + - - MAX( col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5135
SELECT + 0 + - - MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - - ( + 8 ) AS col1 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT ALL 63 * - 76 * + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-220294
-306496
-359175

query II rowsort
SELECT ALL - 61 + ( - col1 ) AS col2, + col1 + - col0 FROM tab2 AS cor0
----
-112
5
-128
-8
-138
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + SUM( + + 26 ) FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-5139
SELECT + SUM ( + + 26 ) FROM tab1 cor0
----
78

query I rowsort
SELECT ALL - col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT ALL COUNT( * ) DIV + 53 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL COUNT ( * ) / + 53 FROM tab2
----
0

query I rowsort
SELECT 86 + + 16 + - col0 FROM tab0
----
15
5
87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 82 + 76 IS NOT NULL
----

query I rowsort
SELECT - col1 * - ( - col1 ) * + - col1 + - col0 - - - col2 + 22 * - 98 + - - ( col1 ) AS col0 FROM tab0
----
-2350
529304
7029

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT + - col0 DIV - 97 + - col1 AS col1 FROM tab0 AS cor0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT + - col0 / - 97 + - col1 AS col1 FROM tab0 AS cor0
----
-21
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 + + col1 col2 FROM tab2 AS cor0
----
63
79
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT col2 DIV + 55 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5147
SELECT col2 / + 55 AS col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL col0 - ( - col1 + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL col0 - ( - col1 + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT ALL + 47 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + 47 / col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5150
SELECT 25 DIV - CAST( - col2 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5150
SELECT 25 / - CAST ( - col2 AS INTEGER ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col2 + ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * 80 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT COUNT( ALL col1 ) FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5153
SELECT COUNT ( ALL col1 ) FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 / 7 col0 FROM tab1 WHERE 65 IS NULL
----

query I rowsort
SELECT DISTINCT - ( 61 ) + 80 AS col1 FROM tab0
----
19

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col1 + 99 * 14 IN ( - col0 + + 31 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT 46 + COUNT( * ) * COUNT( * ) col1 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5157
SELECT DISTINCT 46 + COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT + COUNT( DISTINCT col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5158
SELECT + COUNT ( DISTINCT col0 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT ALL col2 DIV - col2 + + col0 AS col2 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL col2 / - col2 + + col0 AS col2 FROM tab2
----
45
63
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab1 WHERE NULL IN ( + 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT - CAST( + 91 AS SIGNED ) * 13 NOT IN ( + 43 * col0 + 35 )
----

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT - CAST ( + 91 AS INTEGER ) * 13 NOT IN ( + 43 * col0 + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT COUNT( * ) FROM tab0 WHERE NOT 81 + 88 * + 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5162
SELECT COUNT ( * ) FROM tab0 WHERE NOT 81 + 88 * + 5 IS NOT NULL
----
0

query I rowsort
SELECT 70 AS col1 FROM tab2 WHERE NULL IS NULL
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + SUM( ALL col0 ) FROM tab2 WHERE NOT - col2 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + SUM ( ALL col0 ) FROM tab2 WHERE NOT - col2 IS NULL
----
185

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + MIN( - 64 ) * - MIN( - ( + col2 ) ) + + 46 FROM tab1
----
-6098

skipif mysql # not compatible
query I rowsort label-5167
SELECT + MIN ( - 64 ) * - MIN ( - ( + col2 ) ) + + 46 FROM tab1
----
-6098

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 18 AND ( - col0 )
----

query I rowsort
SELECT - col0 + 37 FROM tab0
----
-50
-60
22

query I rowsort
SELECT - 50 + - col0 FROM tab0
----
-137
-147
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( - 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT ALL col1 * ( CAST( NULL AS SIGNED ) * col1 ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL col1 * ( CAST ( NULL AS INTEGER ) * col1 ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL + 50 + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL + 50 + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
50

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) >= 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 <= NULL
----

query I rowsort
SELECT ALL - col2 + + 16 FROM tab1
----
-43
-52
-80

query I rowsort
SELECT + col0 * col0 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 * col0 )
----

query I rowsort
SELECT ALL + col1 + + 1 AS col1 FROM tab0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * col2 col1 FROM tab1 WHERE NULL NOT IN ( 94 * + col1 )
----

query I rowsort
SELECT DISTINCT - 79 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
-39
-56

query I rowsort
SELECT 94 FROM tab2 cor0 WHERE NOT col2 <> + col1 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) + col2 <= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 9 * 34 - - 92 NOT IN ( 19 )
----
0

skipif mysql # not compatible
query I rowsort label-5184
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 9 * 34 - - 92 NOT IN ( 19 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col0 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT COUNT( ALL + 9 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5186
SELECT COUNT ( ALL + 9 ) FROM tab1
----
3

query I rowsort
SELECT 23 * + col2 + col2 AS col2 FROM tab1
----
1416
1632
2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL 62 * - col2 AS col1 FROM tab0 WHERE col2 + - CAST( + col0 AS SIGNED ) NOT BETWEEN ( ( - 69 ) ) AND col2
----
-620

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL 62 * - col2 AS col1 FROM tab0 WHERE col2 + - CAST ( + col0 AS INTEGER ) NOT BETWEEN ( ( - 69 ) ) AND col2
----
-620

query I rowsort
SELECT ALL - 83 + + col0 FROM tab0 AS cor0
----
-68
14
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 5 + col0 >= + 80
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL MAX( ALL + col2 ) + + 7 FROM tab1 cor0
----
103

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL MAX ( ALL + col2 ) + + 7 FROM tab1 cor0
----
103

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT + 91 DIV - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + 91 / - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 + + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL CAST( NULL AS SIGNED ) / 4 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL CAST ( NULL AS INTEGER ) / 4 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + 93 ) * 88 IN ( 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 60 - 75 * 38 FROM tab1 WHERE ( NULL ) IN ( 0 + - ( col1 ) / + 44 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) - + 12 BETWEEN + col0 + col0 AND 86 * 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT 35 * 3 - - MAX( col1 ) * MIN( DISTINCT - col0 * col1 ) col0 FROM tab2
----
-386820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5200
SELECT DISTINCT 35 * 3 - - MAX ( col1 ) * MIN ( DISTINCT - col0 * col1 ) col0 FROM tab2
----
-386820

query I rowsort
SELECT DISTINCT + ( + 39 ) * col0 FROM tab1
----
1989
3315
3549

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * + ( col1 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT ALL + 11 DIV + 70 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + 11 / + 70 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT ALL + 6 + col1 + col1 DIV + 75 AS col0 FROM tab2
----
57
73
84

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + 6 + col1 + col1 / + 75 AS col0 FROM tab2
----
57
73
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col2 FROM tab0
----
88

query I rowsort
SELECT DISTINCT 41 + - + 35 - 37 * + col0 AS col1 FROM tab1
----
-1881
-3139
-3361

query I rowsort
SELECT + 59 * - + col0 * + col2 - - col2 FROM tab0
----
-41548
-51320
-566478

query I rowsort
SELECT + 63 * - + col2 * - col1 - - col0 FROM tab0
----
13317
239856
6334

query I rowsort
SELECT DISTINCT + - 97 + - col1 AS col1 FROM tab0 AS cor0
----
-118
-178
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 >= ( NULL )
----

query I rowsort
SELECT - + col2 + + col2 + 42 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + 21 + 87 * - col2 FROM tab2 AS cor0
----
-1980
-3459
-5025

query I rowsort
SELECT ALL + col0 * + col0 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col0 BETWEEN NULL AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT DISTINCT + 84 DIV - ( - col2 ) AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + 84 / - ( - col2 ) AS col1 FROM tab1
----
0
1

query I rowsort
SELECT 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT DISTINCT + COUNT( * ) DIV + MAX( ALL col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + COUNT ( * ) / + MAX ( ALL col0 ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT + + 30 DIV + + col0 * + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5218
SELECT + + 30 / + + col0 * + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 5 * - - 26 AS col0 FROM tab2 AS cor0
----
-130
-130
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT DISTINCT + CAST( + 69 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT + CAST ( + 69 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL + 12 AS col1 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT - col1 DIV - 80 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT - col1 / - 80 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - - COUNT( * ) * - 77 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-5223
SELECT - - COUNT ( * ) * - 77 FROM tab2 AS cor0
----
-231

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT COUNT( * ) FROM tab1 WHERE NOT - - ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT COUNT ( * ) FROM tab1 WHERE NOT - - ( col2 ) IS NOT NULL
----
0

query I rowsort
SELECT + - col2 + col2 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + ( - + 69 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5227
SELECT + ( - + 69 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( col1 * + + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT MAX( - + col0 ) + + 48 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5229
SELECT MAX ( - + col0 ) + + 48 FROM tab0 AS cor0
----
33

query II rowsort
SELECT ALL 27 AS col2, + 63 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + col1 + + col0 * 59 AS col0 FROM tab0 AS cor0
----
5154
5724
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - + COUNT( * ) + COUNT( * ) col2 FROM tab2 WHERE + col1 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT - + COUNT ( * ) + COUNT ( * ) col2 FROM tab2 WHERE + col1 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5233
SELECT + col1 col1, CAST( + 31 AS SIGNED ) FROM tab2 AS cor0
----
51
31
67
31
77
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5233
SELECT + col1 col1, CAST ( + 31 AS INTEGER ) FROM tab2 AS cor0
----
51
31
67
31
77
31

query I rowsort
SELECT ALL ( - 59 ) + - col0 * + 69 - - col0 FROM tab0 AS cor0
----
-1079
-5975
-6655

query I rowsort
SELECT - col2 - + col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT CAST( NULL AS SIGNED ) - + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT CAST ( NULL AS INTEGER ) - + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT DISTINCT + + COUNT( * ), 72 AS col0 FROM tab1 AS cor0
----
3
72

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT + + COUNT ( * ), 72 AS col0 FROM tab1 AS cor0
----
3
72

query I rowsort
SELECT col1 * + col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 39 * 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col1 col0 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT - col2 + + col1 FROM tab1 WHERE + 32 IS NOT NULL
----
-21
-54
-82

query I rowsort
SELECT - col0 * - col0 * + - col2 + col0 AS col0 FROM tab2
----
-163776
-326175
-48622

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT ALL 87, - MIN( - - 64 ) AS col0 FROM tab0, tab0 AS cor0
----
87
-64

skipif mysql # not compatible
query II rowsort label-5242
SELECT ALL 87, - MIN ( - - 64 ) AS col0 FROM tab0, tab0 AS cor0
----
87
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - - COUNT( * ) col0 FROM tab2 WHERE - + 69 + + 86 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5243
SELECT - - COUNT ( * ) col0 FROM tab2 WHERE - + 69 + + 86 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT DISTINCT 78 AS col1, + COUNT( * ) col0 FROM tab1
----
78
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5244
SELECT DISTINCT 78 AS col1, + COUNT ( * ) col0 FROM tab1
----
78
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + COUNT( - - col2 ) * ( - ( - + COUNT( * ) ) ) * + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + COUNT ( - - col2 ) * ( - ( - + COUNT ( * ) ) ) * + COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT DISTINCT - col2 - + col1 + - - col1 + col0 * - col0 AS col2 FROM tab1
----
-2697
-7284
-8349

query II rowsort
SELECT ALL col2 AS col0, + col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT ALL + col0 + - col2 FROM tab2 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT ALL col2 + 80 FROM tab2
----
103
120
138

query II rowsort
SELECT col1 AS col1, col0 + - 4 AS col0 FROM tab1
----
14
47
47
87
5
81

query I rowsort
SELECT DISTINCT ( - - 96 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 / - col1 NOT IN ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE 63 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE 63 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT DISTINCT - col2 DIV + - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - col2 / + - col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT DISTINCT col1 * 43 DIV + col1 AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT col1 * 43 / + col1 AS col0 FROM tab0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT DISTINCT + AVG ( - 82 ) * - CAST( - ( - COUNT( * ) ) AS SIGNED ) / 47 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + AVG ( - 82 ) * - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / 47 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 col2, - col0 * + 51 * col1 FROM tab2 WHERE NOT + 65 * - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5258
SELECT DISTINCT - CAST( - 75 AS SIGNED ), COUNT( * ) + + - ( - COUNT( * ) ) AS col0, ( - + 54 ) AS col0 FROM tab2
----
75
6
-54

skipif mysql # not compatible
query III rowsort label-5258
SELECT DISTINCT - CAST ( - 75 AS INTEGER ), COUNT ( * ) + + - ( - COUNT ( * ) ) AS col0, ( - + 54 ) AS col0 FROM tab2
----
75
6
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5259
SELECT CAST( + + col0 AS SIGNED ) * - col2 AS col0, + 63 AS col1 FROM tab0 AS cor0
----
-705
63
-870
63
-9603
63

skipif mysql # not compatible
query II rowsort label-5259
SELECT CAST ( + + col0 AS INTEGER ) * - col2 AS col0, + 63 AS col1 FROM tab0 AS cor0
----
-705
63
-870
63
-9603
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT 40 * CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0 WHERE NOT ( ( - col1 ) ) * - col0 / - ( - 21 ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT 40 * CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0 WHERE NOT ( ( - col1 ) ) * - col0 / - ( - 21 ) > ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 74 + - ( - col1 ) col1 FROM tab0 AS cor0
----
3559
7327
761

query II rowsort
SELECT ALL 72 AS col0, - col2 FROM tab0
----
72
-10
72
-47
72
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, - 38 FROM tab2
----
51
-38
67
-38
77
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + SUM( + - ( - 61 ) ) AS col2 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-5265
SELECT + SUM ( + - ( - 61 ) ) AS col2 FROM tab0
----
183

query I rowsort
SELECT ALL - col1 * - 47 FROM tab1
----
2209
235
658

query II rowsort
SELECT DISTINCT - 25 AS col0, + col1 AS col1 FROM tab2
----
-25
51
-25
67
-25
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5268
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( - - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5268
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( - - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5269
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * - col1 AS col2, + 24 FROM tab2
----
NULL
24
NULL
24
NULL
24

skipif mysql # not compatible
query II rowsort label-5269
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * - col1 AS col2, + 24 FROM tab2
----
NULL
24
NULL
24
NULL
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT DISTINCT 42 + - MIN( + col2 ), + 61 AS col1 FROM tab2
----
19
61

skipif mysql # not compatible
query II rowsort label-5271
SELECT DISTINCT 42 + - MIN ( + col2 ), + 61 AS col1 FROM tab2
----
19
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL - 94 + - COUNT( * ) + + COUNT( * ) * + 56 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL - 94 + - COUNT ( * ) + + COUNT ( * ) * + 56 FROM tab1
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 * - + 77 col0 FROM tab0 AS cor0
----
1
-7623
21
-770
81
-3619

query I rowsort
SELECT + 99 FROM tab2 WHERE ( NULL <> 43 )
----

query I rowsort
SELECT 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT 60 + ( MIN( col2 ) ) FROM tab1
----
119

skipif mysql # not compatible
query I rowsort label-5276
SELECT 60 + ( MIN ( col2 ) ) FROM tab1
----
119

query I rowsort
SELECT ALL - 7 + col2 * col0 + - 51 AS col0 FROM tab2
----
1000
2502
4292

query I rowsort
SELECT ALL - - 5 + - 3 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ALL - 76 - + MIN( - - 90 ) AS col0 FROM tab2 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - 76 - + MIN ( - - 90 ) AS col0 FROM tab2 AS cor0
----
-166

query II rowsort
SELECT 21, col2 * - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
21
-1173
21
-3080
21
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 67 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL + 18 + - MAX( + col1 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + 18 + - MAX ( + col1 ) FROM tab1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5283
SELECT + COUNT( DISTINCT col2 ) DIV 76 - - COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5283
SELECT + COUNT ( DISTINCT col2 ) / 76 - - COUNT ( * ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - col0 - - col0 + col1 * col1 AS col2 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5285
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL AND NOT ( NOT - CAST( NULL AS SIGNED ) * - col2 IN ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-5285
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL AND NOT ( NOT - CAST ( NULL AS INTEGER ) * - col2 IN ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL 93 * - SUM( DISTINCT + 97 ) FROM tab2
----
-9021

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL 93 * - SUM ( DISTINCT + 97 ) FROM tab2
----
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT COUNT( DISTINCT - 57 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT COUNT ( DISTINCT - 57 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL - COUNT( + col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - COUNT ( + col2 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + - 36 * COUNT( * ) FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5289
SELECT + - 36 * COUNT ( * ) FROM tab2 AS cor0
----
-108

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 91 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col2 FROM tab1 WHERE NOT ( + + col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT - MIN( DISTINCT - + 34 ) col2 FROM tab1
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5292
SELECT DISTINCT - MIN ( DISTINCT - + 34 ) col2 FROM tab1
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 >= 18 + + - col0 * - + col2 * + 12
----

query I rowsort
SELECT - 8 * col1 - 42 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, + 78 FROM tab1 AS cor0
----
-59
78
-68
78
-96
78

query I rowsort
SELECT DISTINCT col2 * 9 * - - col2 * - col2 * + col2 FROM tab0 AS cor0 WHERE NOT - 70 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - SUM( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE ( - col0 + - - 81 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE ( - col0 + - - 81 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5298
SELECT - + MAX( DISTINCT col0 ) DIV - COUNT( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
25

skipif mysql # not compatible
query I rowsort label-5298
SELECT - + MAX ( DISTINCT col0 ) / - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1, 72 / - - col0 * + col2 )
----

query I rowsort
SELECT 35 * col0 + + + col0 AS col2 FROM tab2 AS cor0
----
1656
2304
2700

query I rowsort
SELECT + col1 * + - col2 * + 14 * - - col2 + - 54 AS col2 FROM tab2 AS cor0
----
-1724854
-3155486
-377760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5302
SELECT ALL + + COUNT( * ) AS col0, + 97 DIV + COUNT( * ) FROM tab2 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-5302
SELECT ALL + + COUNT ( * ) AS col0, + 97 / + COUNT ( * ) FROM tab2 AS cor0
----
3
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 21 col2 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT + col2 * + col0 + + col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5305
SELECT 95 * - 55 col2, CAST( - CAST( + + 42 AS SIGNED ) AS SIGNED ) * - col1 + + + 25 + col2 * - 51 FROM tab1
----
-5225
-1469
-5225
-2774
-5225
-4283

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5305
SELECT 95 * - 55 col2, CAST ( - CAST ( + + 42 AS INTEGER ) AS INTEGER ) * - col1 + + + 25 + col2 * - 51 FROM tab1
----
-5225
-1469
-5225
-2774
-5225
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT + COUNT( * ) * + + 71 * + ( 32 ) FROM tab0
----
6816

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT + COUNT ( * ) * + + 71 * + ( 32 ) FROM tab0
----
6816

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT BETWEEN - col2 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL NOT IN ( - col0, + 53 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 37 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 37 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 43 = col0 + + col1
----

query II rowsort
SELECT DISTINCT + 83 * + col1, - col2 AS col2 FROM tab2
----
4233
-23
5561
-58
6391
-40

query I rowsort
SELECT col0 + + + col0 AS col1 FROM tab0 cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL + SUM( + - col2 ) * + 77 + 25 AS col1 FROM tab0 AS cor0
----
-11987

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL + SUM ( + - col2 ) * + 77 + 25 AS col1 FROM tab0 AS cor0
----
-11987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 * col0 * - col1 * - + 88 FROM tab2 AS cor0
----
-27754496
-33165000
-9496608

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT + 85 + + - COUNT( * ) AS col0, - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
76
-9

skipif mysql # not compatible
query II rowsort label-5316
SELECT + 85 + + - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
76
-9

query I rowsort
SELECT 81 * + 61 AS col1 FROM tab0
----
4941
4941
4941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 67 + - ( col0 ) AS col1, - 84 FROM tab0 AS cor0
----
-20
-84
-30
-84
52
-84

query I rowsort
SELECT - col2 - - 9 AS col2 FROM tab0 AS cor0
----
-1
-38
-90

query I rowsort
SELECT + 42 + 54 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT - CAST( NULL AS SIGNED ) + - col2 + - 61 * + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT - CAST ( NULL AS INTEGER ) + - col2 + - 61 * + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5323
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5323
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT - CAST( + col2 AS SIGNED ) + + 77 * col0 AS col2 FROM tab1 AS cor0
----
3831
6486
6939

skipif mysql # not compatible
query I rowsort label-5324
SELECT - CAST ( + col2 AS INTEGER ) + + 77 * col0 AS col2 FROM tab1 AS cor0
----
3831
6486
6939

query I rowsort
SELECT DISTINCT + 3 * + 64 * - 19 + + col1 FROM tab1 cor0
----
-3601
-3634
-3643

query III rowsort
SELECT ALL * FROM tab2 WHERE 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL >= + col2
----
0

query I rowsort
SELECT DISTINCT 92 * + ( col1 ) * - col0 - + + col1 AS col2 FROM tab2
----
-215883
-453453
-462367

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 >= + + col0 * - 35 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 90 * + ( col1 ) FROM tab0
----
-1890
-7290
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT SUM( ALL + ( - - col2 ) ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5332
SELECT SUM ( ALL + ( - - col2 ) ) AS col2 FROM tab2
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 26 - + + 57 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT - 79 DIV + + 21 FROM tab2 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-5334
SELECT - 79 / + + 21 FROM tab2 cor0
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - 33 + + 35
----

query I rowsort
SELECT ALL ( 97 ) AS col2 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - - 69 AS col0 FROM tab1 cor0
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <> ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 10 + col1 IS NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 20 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT ALL COUNT( * ) col0, 87 FROM tab0
----
3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5341
SELECT ALL COUNT ( * ) col0, 87 FROM tab0
----
3
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE NULL BETWEEN - 2 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE NULL BETWEEN - 2 AND - col0
----
0

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE 11 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT 4 + 35 DIV + 50 AS col0 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5344
SELECT 4 + 35 / + 50 AS col0 FROM tab0 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - 86 * + 93 col1 FROM tab2 AS cor0
----
8044
8062
8073

query I rowsort
SELECT - col2 / - col0 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 + + col2 + col1 * col2 IS NOT NULL
----

query II rowsort
SELECT ( - 89 ), col0 FROM tab2
----
-89
46
-89
64
-89
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL - COUNT( DISTINCT 66 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - COUNT ( DISTINCT 66 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT + col0 * - + 35 * - col0 FROM tab1
----
252875
289835
91035

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 92 > + 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT 10 * SUM( DISTINCT + 93 ) * 86 + + COUNT( * ) FROM tab0
----
79983

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT 10 * SUM ( DISTINCT + 93 ) * 86 + + COUNT ( * ) FROM tab0
----
79983

query II rowsort
SELECT DISTINCT + col2 * + 98, - col2 + col1 AS col2 FROM tab0
----
4606
34
9702
-98
980
11

query I rowsort
SELECT DISTINCT col1 + - col0 + + ( + col2 ) * - col2 FROM tab1
----
-3561
-4668
-9253

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + MIN( DISTINCT + 85 ) * + - MAX( DISTINCT + - 79 ) + - + MAX( - 18 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT + MIN ( DISTINCT + 85 ) * + - MAX ( DISTINCT + - 79 ) + - + MAX ( - 18 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 82 + - + 30 AS col2 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + ( + ( MIN( DISTINCT - col2 ) ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5357
SELECT + ( + ( MIN ( DISTINCT - col2 ) ) ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT + col2 + - col0 + + 88 + + ( + 39 ) + col2 FROM tab1
----
160
172
268

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE - ( col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE - ( col1 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5361
SELECT DISTINCT 28 DIV + col2 col0, + 40 AS col1 FROM tab2
----
0
40
1
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5361
SELECT DISTINCT 28 / + col2 col0, + 40 AS col1 FROM tab2
----
0
40
1
40

query I rowsort
SELECT 71 + + col2 AS col1 FROM tab1
----
130
139
167

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT DISTINCT col2 DIV + + 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT col2 / + + 71 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * - col2 col0 FROM tab1
----
-1330
-290
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT 94 + - 11 - - SUM( ALL col0 ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-5365
SELECT 94 + - 11 - - SUM ( ALL col0 ) FROM tab0
----
282

query I rowsort
SELECT col2 + + - col0 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL MIN( DISTINCT - - 81 ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL MIN ( DISTINCT - - 81 ) AS col0 FROM tab1
----
81

query I rowsort
SELECT DISTINCT + - 31 AS col1 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT ALL ( + + col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( 74 ) + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT + - MIN( DISTINCT ( - col1 ) ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5371
SELECT DISTINCT + - MIN ( DISTINCT ( - col1 ) ) col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + 44 + col0 + col1 FROM tab0 AS cor0 WHERE NOT - 8 * + + ( col1 ) BETWEEN - col1 AND + 42
----
140
142
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT MAX( - 60 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-5373
SELECT MAX ( - 60 ) FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ( + + MAX( + 73 ) ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-5374
SELECT ( + + MAX ( + 73 ) ) FROM tab1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT + MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + col0, + col1 AS col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5377
SELECT ALL + COUNT( * ) AS col1, MAX( - col1 ) + + 16 FROM tab2
----
3
-35

skipif mysql # not compatible
query II rowsort label-5377
SELECT ALL + COUNT ( * ) AS col1, MAX ( - col1 ) + + 16 FROM tab2
----
3
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + 50 - - ( ( COUNT( * ) ) ) FROM tab0, tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5378
SELECT + 50 - - ( ( COUNT ( * ) ) ) FROM tab0, tab2 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL - col0 * 96 - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - col0 * 96 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col0, col1 * - - col2 AS col0 FROM tab0 AS cor0
----
15
3807
87
210
97
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5381
SELECT COUNT( * ) DIV - + MAX( ALL + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5381
SELECT COUNT ( * ) / - + MAX ( ALL + col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT DISTINCT 91 + - - COUNT( * ) AS col1 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT 91 + - - COUNT ( * ) AS col1 FROM tab1 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5383
SELECT ALL + 7 + - - CAST( NULL AS SIGNED ) AS col2, + col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL
108
NULL
96
NULL
98

skipif mysql # not compatible
query II rowsort label-5383
SELECT ALL + 7 + - - CAST ( NULL AS INTEGER ) AS col2, + col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL
108
NULL
96
NULL
98

query I rowsort
SELECT + + 13 AS col0 FROM tab1 cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT - col1 DIV 86 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5385
SELECT - col1 / 86 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col1 / - 78 * + + col2
----

query I rowsort
SELECT ALL - col0 * - 27 AS col1 FROM tab0 AS cor0
----
2349
2619
405

query I rowsort
SELECT DISTINCT + col2 + - col0 + + + 70 + ( + ( - 44 ) ) AS col2 FROM tab1 AS cor0
----
0
3
71

query I rowsort
SELECT - 91 * col0 FROM tab2 AS cor0
----
-4186
-5824
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT + MIN( DISTINCT - col1 ) + - + 66 + - 45 * + - 74 * + 98 FROM tab1
----
326227

skipif mysql # not compatible
query I rowsort label-5390
SELECT + MIN ( DISTINCT - col1 ) + - + 66 + - 45 * + - 74 * + 98 FROM tab1
----
326227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT DISTINCT + 9 FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) IN ( + 98 + - - col2, col2 * 66 - 9 - + - 7 * col1, col2 )
----

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + 9 FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) IN ( + 98 + - - col2, col2 * 66 - 9 - + - 7 * col1, col2 )
----

query I rowsort
SELECT DISTINCT + col1 + + 20 FROM tab1
----
25
34
67

query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-425
-4277
-714

query I rowsort
SELECT ALL + 84 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT + 87 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
87

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + 77 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-5398
SELECT - 92 DIV + col0 + - col1 + - + 52 * - 24 + 74, + col0 FROM tab0 AS cor0
----
1235
15
1300
87
1321
97

skipif mysql # not compatible
query II rowsort label-5398
SELECT - 92 / + col0 + - col1 + - + 52 * - 24 + 74, + col0 FROM tab0 AS cor0
----
1235
15
1300
87
1321
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT SUM( ALL + + col1 ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT SUM ( ALL + + col1 ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL - + 66 * + MIN( ALL + + col0 ) FROM tab2 AS cor0
----
-3036

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - + 66 * + MIN ( ALL + + col0 ) FROM tab2 AS cor0
----
-3036

query I rowsort
SELECT DISTINCT + - col2 * + - col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5402
SELECT ALL + COUNT( * ) DIV - 17 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL + COUNT ( * ) / - 17 AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + - 38 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + - 38 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col1 FROM tab1
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 84 IN ( + ( col0 ), - 21, + col0 * + col1, col1, + col0 )
----

query I rowsort
SELECT 85 AS col2 FROM tab0 WHERE NOT - 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT - COUNT( + + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5407
SELECT - COUNT ( + + col0 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5408
SELECT + ( MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT + ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 65 * + + 91 * - col1 AS col1 FROM tab0
----
-124215
-479115
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT SUM( ALL - 61 ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-5410
SELECT SUM ( ALL - 61 ) FROM tab1
----
-183

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 9 AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT - MAX( + 67 ) * - + 89 + + 47 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 + - 71 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - MAX ( + 67 ) * - + 89 + + 47 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 + - 71 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5414
SELECT ALL 21 + COUNT( * ) * COUNT( * ) DIV ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL 21 + COUNT ( * ) * COUNT ( * ) / ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
30

query I rowsort
SELECT - 85 + col1 AS col2 FROM tab0
----
-4
-64
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) + - - 48 AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) + - - 48 AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL - COUNT( * ) + - 66 AS col2 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - COUNT ( * ) + - 66 AS col2 FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5418
SELECT CAST( NULL AS SIGNED ), + MIN( CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5418
SELECT CAST ( NULL AS INTEGER ), + MIN ( CAST ( NULL AS REAL ) ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT ALL - col1 + + col0 + - col0 DIV - - 3 AS col0 FROM tab0 AS cor0
----
-71
37
64

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - col1 + + col0 + - col0 / - - 3 AS col0 FROM tab0 AS cor0
----
-71
37
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 60 * - - col0 AS col1 FROM tab0 AS cor0
----
-5220
-5820
-900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5423
SELECT ALL * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) + + 16 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5423
SELECT ALL * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) + + 16 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5424
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - + col0 - + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5424
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - + col0 - + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 71 - - 61 FROM tab1
----
132

query I rowsort
SELECT DISTINCT ( - + 0 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col0 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT col2 - - 63 FROM tab0
----
110
162
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( 73 )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 26 ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 - + - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT COUNT( * ) * COUNT( DISTINCT - col1 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT - col1 ) AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL - col0 * - + ( - 99 ) FROM tab1 cor0
----
-5049
-8415
-9009

query I rowsort
SELECT ALL + - col2 * + 31 AS col1 FROM tab0 AS cor0
----
-1457
-3069
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT + - 47 * COUNT( * ) * - COUNT( * ) - - 20 AS col2 FROM tab0 AS cor0
----
443

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + - 47 * COUNT ( * ) * - COUNT ( * ) - - 20 AS col2 FROM tab0 AS cor0
----
443

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL - COUNT( * ) * + 30 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - COUNT ( * ) * + 30 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT ( + 10 ) AS col1 FROM tab1 AS cor0
----
10

query I rowsort
SELECT ALL - 21 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-21
-21
-21

query II rowsort
SELECT + col1 AS col2, + ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
-51
47
-91
5
-85

query I rowsort
SELECT - - 8 FROM tab2 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT - COUNT( DISTINCT + ( 94 ) ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - COUNT ( DISTINCT + ( 94 ) ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5442
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL + + MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + + MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT COUNT( * ) DIV + + 8 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5444
SELECT COUNT ( * ) / + + 8 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT COUNT( + - 19 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT COUNT ( + - 19 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 4 col1 FROM tab2
----
184
256
300

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 82 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 42, + col1 AS col0 FROM tab2
----
42
51
42
67
42
77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - 84
----

query II rowsort
SELECT + 4, col2 FROM tab1
----
4
59
4
68
4
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5451
SELECT DISTINCT + 39 * col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3159
NULL
39
NULL
819
NULL

skipif mysql # not compatible
query II rowsort label-5451
SELECT DISTINCT + 39 * col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3159
NULL
39
NULL
819
NULL

query I rowsort
SELECT - col0 / 80 / + + 63 + + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - 10 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5453
SELECT CAST( NULL AS DECIMAL ) + + ( + 78 ) + col0 AS col2, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5453
SELECT CAST ( NULL AS REAL ) + + ( + 78 ) + col0 AS col2, + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - + 8 + - ( col0 ) FROM tab1 AS cor0
----
-59
-93
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT + col1 DIV - 37 + 76 AS col1 FROM tab0 AS cor0
----
74
76
76

skipif mysql # not compatible
query I rowsort label-5455
SELECT + col1 / - 37 + 76 AS col1 FROM tab0 AS cor0
----
74
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 2 ) col2 FROM tab1
----
-2
-2
-2

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - - MAX( - 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5458
SELECT - - MAX ( - 39 ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT ALL + 17 * - 54 + + col2 AS col1 FROM tab0 AS cor0
----
-819
-871
-908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL - - COUNT( * ) + CAST( NULL AS SIGNED ) * COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 + 24 col2, col1 + + 21 FROM tab1 AS cor0
----
46
26
46
35
46
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - COUNT( * ) + - + 37 col0 FROM tab2 cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5463
SELECT - COUNT ( * ) + - + 37 col0 FROM tab2 cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * ( - - col0 ) - - 78 + 41 FROM tab1 AS cor0
----
2720
7344
8400

query I rowsort
SELECT ALL + 2 * col1 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-97
115
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT DISTINCT + 50 - - - CAST( NULL AS SIGNED ) + - + MIN( col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + 50 - - - CAST ( NULL AS INTEGER ) + - + MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col1 * 52 * + ( + ( + 59 ) ) col0 FROM tab2
----
156445
205498
236196

query I rowsort
SELECT col0 + + + col0 + - 51 AS col0 FROM tab1
----
119
131
51

query I rowsort
SELECT DISTINCT - 70 FROM tab1 WHERE ( - col0 ) / + - 58 IS NULL
----

query I rowsort
SELECT - 18 + + - 93 FROM tab1 WHERE - - col1 IS NOT NULL
----
-111
-111
-111

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 <> col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 90 * 29 FROM tab1 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - 56 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 65 * + 89 + + col2 + - col1 FROM tab1 cor0
----
5806
5839
5867

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + 77 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( + + col2 ) IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + 77 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( + + col2 ) IS NOT NULL
----
80

query I rowsort
SELECT ALL ( + ( + - col2 ) ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT MAX( DISTINCT - - ( - col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5479
SELECT MAX ( DISTINCT - - ( - col1 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5480
SELECT ALL - - col0 * - + CAST( NULL AS DECIMAL ) / - - col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - - col0 * - + CAST ( NULL AS REAL ) / - - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * - + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT COUNT( ALL + + 21 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5482
SELECT COUNT ( ALL + + 21 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5483
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 90 ) FROM tab2 AS cor0
----
90

query II rowsort
SELECT DISTINCT col1, - 35 AS col1 FROM tab1 cor0
----
14
-35
47
-35
5
-35

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT + 3 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL + col2 / + - 24 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT ALL col1 + + col0 - - col0 * col1 * col0 * - ( col0 ), col0 * - col0 + + col0 AS col1 FROM tab1 cor0
----
-1857049
-2550
-3070535
-7140
-35417699
-8190

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( NULL ) = - col0 - col1 * - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT ALL - col2 * + - col0 + - ( - CAST( NULL AS SIGNED ) ) + - col1 - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - col2 * + - col0 + - ( - CAST ( NULL AS INTEGER ) ) + - col1 - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col2 ) col2, - col2 * - + col2 + - 21 FROM tab0 AS cor0 WHERE NOT col1 / + + 15 * col0 IN ( + - col2, + col0 * + + col1 + - + col2 * + col2 * col2 * + col1 + + - 48 )
----
10
79
47
2188
99
9780

query I rowsort
SELECT ALL - 41 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL COUNT( * ) - + SUM( 29 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL COUNT ( * ) - + SUM ( 29 ) FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + MAX( DISTINCT col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5495
SELECT + MAX ( DISTINCT col1 ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT MIN( ALL - 84 ) * + - MAX( - col2 ) FROM tab0
----
-840

skipif mysql # not compatible
query I rowsort label-5496
SELECT MIN ( ALL - 84 ) * + - MAX ( - col2 ) FROM tab0
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT - MIN( ALL + col2 ) - + 37 - + + COUNT( * ) AS col2 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-5497
SELECT - MIN ( ALL + col2 ) - + 37 - + + COUNT ( * ) AS col2 FROM tab1
----
-99

query I rowsort
SELECT DISTINCT - - 20 AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
20

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col0 AND - + col2 + + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT 9 - - COUNT( * ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT 9 - - COUNT ( * ) AS col1 FROM tab1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT - - ( col2 ) DIV + - ( + - col2 ) + - 79 * - 36 AS col0 FROM tab0 AS cor0
----
2845
2845
2845

skipif mysql # not compatible
query I rowsort label-5501
SELECT - - ( col2 ) / + - ( + - col2 ) + - 79 * - 36 AS col0 FROM tab0 AS cor0
----
2845
2845
2845

query I rowsort
SELECT ( + col0 ) FROM tab1 WHERE NOT - + 9 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT DISTINCT CAST( + - 5 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT CAST ( + - 5 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT + - MIN( DISTINCT + 4 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT + - MIN ( DISTINCT + 4 ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT ALL + ( - 64 ) FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT MIN( ALL + col2 ) * 35 AS col0 FROM tab2 cor0
----
805

skipif mysql # not compatible
query I rowsort label-5507
SELECT MIN ( ALL + col2 ) * 35 AS col0 FROM tab2 cor0
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + COUNT( ALL - col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5508
SELECT + COUNT ( ALL - col0 ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT + 93 * - - 94 FROM tab2 AS cor0
----
8742
8742
8742

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5510
SELECT ALL * FROM tab0 WHERE + - col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5510
SELECT ALL * FROM tab0 WHERE + - col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col2 FROM tab1
----
36
36
36

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 8 * - + ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT - ( col0 ) * + CAST( col0 AS SIGNED ) * + col1 * - 65 FROM tab0 WHERE ( + + 12 ) IS NOT NULL
----
10331685
1184625
611585

skipif mysql # not compatible
query I rowsort label-5513
SELECT - ( col0 ) * + CAST ( col0 AS INTEGER ) * + col1 * - 65 FROM tab0 WHERE ( + + 12 ) IS NOT NULL
----
10331685
1184625
611585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT ALL col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL 54 + - col0 + + col2 * + + col0 FROM tab1
----
4899
4984
6151

query I rowsort
SELECT 43 + - col2 FROM tab2 AS cor0
----
-15
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5517
SELECT - col2 + - col2 AS col2, + col2 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-118
NULL
-136
NULL
-192
NULL

skipif mysql # not compatible
query II rowsort label-5517
SELECT - col2 + - col2 AS col2, + col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-118
NULL
-136
NULL
-192
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 60 col2 FROM tab2 AS cor0
----
111
127
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT - col0 + CAST( - + 22 AS SIGNED ) - + + col2 + - col1 FROM tab0 AS cor0
----
-140
-165
-219

skipif mysql # not compatible
query I rowsort label-5519
SELECT - col0 + CAST ( - + 22 AS INTEGER ) - + + col2 + - col1 FROM tab0 AS cor0
----
-140
-165
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL COUNT( * ) * MAX( DISTINCT - 96 ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL COUNT ( * ) * MAX ( DISTINCT - 96 ) FROM tab1 AS cor0
----
-288

query I rowsort
SELECT DISTINCT 88 + + + col2 FROM tab1 AS cor0
----
147
156
184

query II rowsort
SELECT - - 88 AS col0, col0 AS col0 FROM tab2 AS cor0 WHERE col1 <= + col0 * col0
----
88
46
88
64
88
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + - 28 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + - 28 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 3 + - - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-20
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 73 col2 FROM tab1 AS cor0
----
-23
14
5

query II rowsort
SELECT col1 AS col0, 13 * + - col2 * - - col1 - 34 AS col2 FROM tab0
----
1
-1321
21
-2764
81
-49525

query II rowsort
SELECT ALL col2, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT DISTINCT 73 AS col0, + col1 FROM tab0 AS cor0
----
73
1
73
21
73
81

query I rowsort
SELECT ALL + col0 * + 63 AS col0 FROM tab2 AS cor0
----
2898
4032
4725

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE NOT - col2 <> - col2 + 72 + + + col1 * col2
----

query II rowsort
SELECT ALL - - col2 AS col0, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5534
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col0, + col0 + + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
51
147
85
144
91
159

skipif mysql # not compatible
query II rowsort label-5534
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col0, + col0 + + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
51
147
85
144
91
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col0 FROM tab0 cor0
----
33

query I rowsort
SELECT - col2 + - 79 AS col1 FROM tab2 cor0
----
-102
-119
-137

query II rowsort
SELECT ALL col1 + + 62 AS col1, ( - col1 ) FROM tab0 AS cor0
----
143
-81
63
-1
83
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 - 83 col0 FROM tab2 AS cor0 WHERE NOT col0 > - - col2 + col0
----
-70
-70
-70

query I rowsort
SELECT 90 FROM tab0 WHERE NOT + 64 IS NULL
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 84 col0, col1 AS col2 FROM tab2
----
84
51
84
67
84
77

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT ALL - col2, + col0 + - - col2 AS col1 FROM tab0
----
-10
97
-47
62
-99
196

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5543
SELECT - col0 AS col2, + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5543
SELECT - col0 AS col2, + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + COUNT( DISTINCT + ( - col1 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5544
SELECT + COUNT ( DISTINCT + ( - col1 ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT - - 83 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - - 83 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
249

query III rowsort
SELECT * FROM tab1 WHERE col0 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT DISTINCT + - COUNT( ALL + 67 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT + - COUNT ( ALL + 67 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - col0 + - 9 * + 98 FROM tab1
----
-933
-967
-973

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT col1 + + col2 DIV 13 + + ( - 95 ) FROM tab2
----
-15
-24
-43

skipif mysql # not compatible
query I rowsort label-5549
SELECT col1 + + col2 / 13 + + ( - 95 ) FROM tab2
----
-15
-24
-43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 >= - 33 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 - 49 FROM tab0 AS cor0
----
-34
38
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + col0 - col1 col2 FROM tab2 cor0
----
-4329
-6029
-7042

query I rowsort
SELECT DISTINCT - - 47 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT DISTINCT col2 * - + 48 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT MIN( + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT MIN ( + col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT ALL - col0 * - col2 * col1 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ALL + - 39 * + 47 + + + col2 FROM tab0 AS cor0
----
-1734
-1786
-1823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5559
SELECT ALL + CAST( NULL AS SIGNED ), - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-5559
SELECT ALL + CAST ( NULL AS INTEGER ), - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT col2 * col0 * 68 AS col1 FROM tab1
----
332928
341020
420784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5561
SELECT DISTINCT COUNT( * ) AS col2, - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5561
SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

query II rowsort
SELECT DISTINCT + col2, + ( 82 ) FROM tab2
----
23
82
40
82
58
82

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 * - 99 + - ( + col2 ) * + col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----

query II rowsort
SELECT col1, + 5 AS col2 FROM tab2 AS cor0
----
51
5
67
5
77
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5566
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 + - + 83 + - - CAST( NULL AS SIGNED ) * - 1 * + 68 * - + col1 NOT BETWEEN NULL AND 2 - col2
----

skipif mysql # not compatible
query III rowsort label-5566
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 + - + 83 + - - CAST ( NULL AS INTEGER ) * - 1 * + 68 * - + col1 NOT BETWEEN NULL AND 2 - col2
----

query I rowsort
SELECT ALL - + col2 + - col1 - - col0 * col1 + - 89 AS col1 FROM tab1 AS cor0
----
272
4073
515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5568
SELECT ALL - COUNT( * ) DIV + - 56 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - COUNT ( * ) / + - 56 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT DISTINCT - col1 + + + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT - col1 + + + col2 / + col0 AS col2 FROM tab1 AS cor0
----
-13
-47
-5

query II rowsort
SELECT 67 AS col2, - col2 + - col1 AS col2 FROM tab1 AS cor0
----
67
-110
67
-115
67
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5571
SELECT - 72, + 70 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-72
-210

skipif mysql # not compatible
query II rowsort label-5571
SELECT - 72, + 70 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-72
-210

query II rowsort
SELECT + col0 AS col1, - 74 FROM tab2 AS cor0
----
46
-74
64
-74
75
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT col2 DIV + - 26 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5573
SELECT col2 / + - 26 AS col2 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5575
SELECT ALL * FROM tab2 cor0 WHERE NOT + 18 / + - CAST( + 63 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5575
SELECT ALL * FROM tab2 cor0 WHERE NOT + 18 / + - CAST ( + 63 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * col1 + - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL + 13 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + 13 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col2 + + col1 * + col2 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5579
SELECT ALL - col2 + - + 13 DIV - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-112
-47

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - col2 + - + 13 / - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-112
-47

query I rowsort
SELECT ALL + col2 - + - 93 + - col1 AS col1 FROM tab0 cor0
----
191
59
82

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 53 + - - col0 NOT IN ( - col2, col0, + col0, + 32 / col2 + + ( + 57 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT DISTINCT - SUM( DISTINCT - 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - SUM ( DISTINCT - 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT 50 * 81 * + col2 + col1 * + col0 * - + 29 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
4650021
673811
718875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 52 >= - + 32 * + + col2 + - 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 53 + - 63 FROM tab0 AS cor0
----
-116
-116
-116

query II rowsort
SELECT + + col1, - ( + col0 ) AS col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT DISTINCT + + col2, ( + col0 ) FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT - - 55 AS col1, + col2 FROM tab2 AS cor0
----
55
23
55
40
55
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT - MAX( - ( + col2 ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - MAX ( - ( + col2 ) ) FROM tab1 cor0
----
59

query II rowsort
SELECT ALL ( - col1 ) AS col2, + col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + 46 * + col0 FROM tab2
----
2116
2944
3450

query II rowsort
SELECT 91 * - - col1, + col1 AS col2 FROM tab2
----
4641
51
6097
67
7007
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= col1 / col2 * - col2 + + - 54
----

query I rowsort
SELECT DISTINCT + 24 * col0 FROM tab0
----
2088
2328
360

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <> col2
----

onlyif mysql # DIV for i