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 integer division: 
query I rowsort label-5597
SELECT - col2 DIV + - 26 col0 FROM tab2 cor0
----
0
1
2

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

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

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

query I rowsort
SELECT DISTINCT - - 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

query I rowsort
SELECT DISTINCT - col2 + ( - col1 ) FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT col1 + 54 FROM tab1 AS cor0
----
101
59
68

query I rowsort
SELECT ALL - 2 + - col2 FROM tab2 cor0
----
-25
-42
-60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
51
85
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, - col1 col2 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL + ( + 6 ) * 75 + SUM( ALL + col0 ) FROM tab1
----
677

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL + ( + 6 ) * 75 + SUM ( ALL + col0 ) FROM tab1
----
677

query I rowsort
SELECT ALL col2 * + col2 + + col2 + + + col0 FROM tab0
----
197
2271
9997

query I rowsort
SELECT DISTINCT + 96 * + - col0 FROM tab0
----
-1440
-8352
-9312

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

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

query III rowsort
SELECT * FROM tab2 WHERE 17 - col0 BETWEEN - 91 AND NULL
----

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

query I rowsort
SELECT ALL + 92 + - col2 + - - col0 FROM tab0 AS cor0
----
169
60
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL - + SUM( ALL + 90 ) AS col2 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - + SUM ( ALL + 90 ) AS col2 FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT + 8 * - 65, + 66 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-520
69

skipif mysql # not compatible
query II rowsort label-5614
SELECT + 8 * - 65, + 66 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-520
69

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 74 NOT IN ( ( - + 16 ), 42 + + col1, - col2, col1, - - ( + col1 ), + + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 22 * - 32 FROM tab1 AS cor0
----
-704
-704
-704

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT ALL + 48, MIN( DISTINCT + 76 ) AS col1 FROM tab1
----
48
76

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + 48, MIN ( DISTINCT + 76 ) AS col1 FROM tab1
----
48
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT MIN( ALL 21 ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5622
SELECT MIN ( ALL 21 ) AS col0 FROM tab1
----
21

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

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) FROM tab2 WHERE + col2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE ( NOT - col1 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + col1 * - ( 61 ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT - col1 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + col1 * - ( 61 ) IS NULL )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5626
SELECT ALL 76 AS col1, + CAST( + 92 AS SIGNED ) + - COUNT( ALL + col2 ) FROM tab2
----
76
89

skipif mysql # not compatible
query II rowsort label-5626
SELECT ALL 76 AS col1, + CAST ( + 92 AS INTEGER ) + - COUNT ( ALL + col2 ) FROM tab2
----
76
89

query I rowsort
SELECT DISTINCT - col0 * 20 * - - col0 AS col1 FROM tab1
----
-144500
-165620
-52020

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT ALL - + col2 * + - CAST( NULL AS SIGNED ) * + col1 AS col1, col2 AS col1 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5630
SELECT ALL - + col2 * + - CAST ( NULL AS INTEGER ) * + col1 AS col1, col2 AS col1 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT + 55 FROM tab0 AS cor0 WHERE NULL < + col0
----

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

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab1 AS cor0
----
41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + - + col0 * + col1 * 33 + + col2 + + + 5 * col2 * + - col0 / + 11 AND col1 * 1 * - 52 + col0
----

query I rowsort
SELECT + - col2 * - 65 FROM tab2 cor0
----
1495
2600
3770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5636
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( col1 ) AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5636
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( col1 ) AND ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 71 * 39 ) NOT BETWEEN 95 * 53 AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT 49 * COUNT( ALL 28 ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT 49 * COUNT ( ALL 28 ) FROM tab2
----
147

query III rowsort
SELECT * FROM tab1 WHERE ( col2 - + 98 ) = - col0
----

query I rowsort
SELECT ALL - 10 * 84 FROM tab2 WHERE NOT - col0 - ( + col2 + col0 ) IS NULL
----
-840
-840
-840

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5641
SELECT ALL * FROM tab1 WHERE NOT - CAST( col2 AS DECIMAL ) * 70 <= 58 + 99
----

skipif mysql # not compatible
query III rowsort label-5641
SELECT ALL * FROM tab1 WHERE NOT - CAST ( col2 AS REAL ) * 70 <= 58 + 99
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - ( - col2 ) ) + - col0 <> col0 + col1
----

query I rowsort
SELECT ALL col0 * ( col0 * + col2 ) AS col1 FROM tab1
----
249696
426275
563108

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5645
SELECT + 13 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT + 13 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 + col0 * - col2 AS col0 FROM tab0
----
-707
-872
-9605

query I rowsort
SELECT + col0 * + 87 FROM tab1
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) col2 FROM tab2
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 > col0 + + 61
----

query I rowsort
SELECT ALL - 54 AS col1 FROM tab1 WHERE ( - col2 + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 85 - - 86 AS col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + COUNT( * ) * MIN( - col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5653
SELECT + COUNT ( * ) * MIN ( - col1 ) FROM tab2
----
-231

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

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

skipif mysql # not compatible
query III rowsort label-5655
SELECT * FROM tab1 WHERE col0 - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT DISTINCT CAST( 77 AS SIGNED ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5656
SELECT DISTINCT CAST ( 77 AS INTEGER ) col1 FROM tab2
----
77

query I rowsort
SELECT 19 FROM tab0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT col0 + col2 * + col2 AS col2 FROM tab1
----
3566
4715
9267

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT + col1 * - ( - col0 DIV col2 ) - col2 FROM tab0
----
-47
-99
158

skipif mysql # not compatible
query I rowsort label-5659
SELECT + col1 * - ( - col0 / col2 ) - col2 FROM tab0
----
-47
-99
158

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

query I rowsort
SELECT ( col2 ) + + col0 * - 56 FROM tab0 AS cor0 WHERE 42 IS NOT NULL
----
-4862
-5333
-793

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT COUNT( * ) * 83 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5662
SELECT COUNT ( * ) * 83 FROM tab2 AS cor0
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * col0 col0 FROM tab1 AS cor0
----
2550
7140
8190

query I rowsort
SELECT + 48 - - col0 FROM tab2 cor0
----
112
123
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT ALL col0 DIV - 16 - - col1 * - col2 AS col1 FROM tab1
----
-1347
-300
-3201

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL col0 / - 16 - - col1 * - col2 AS col1 FROM tab1
----
-1347
-300
-3201

query I rowsort
SELECT DISTINCT 53 + - col0 FROM tab2
----
-11
-22
7

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

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

query I rowsort
SELECT 96 FROM tab2 WHERE NOT col1 * - col0 IN ( - col0 - 94 / - 18 )
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT ALL 87 DIV ( - col0 * col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL 87 / ( - col0 * col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col2 * - 62 FROM tab2 AS cor0
----
1426
2480
3596

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT MAX( DISTINCT 9 ) * 65 FROM tab0 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-5674
SELECT MAX ( DISTINCT 9 ) * 65 FROM tab0 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 + 3 * + ( + col0 ) NOT BETWEEN + col1 / col1 AND 42 + col0
----
0

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 + 3 * + ( + col0 ) NOT BETWEEN + col1 / col1 AND 42 + col0
----
0

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

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

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

query I rowsort
SELECT 3 * + col2 AS col2 FROM tab1 cor0
----
177
204
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( - col0 * - ( col0 * 12 ) - 86 ) AND + col2 - + col0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5679
SELECT - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( - col0 * - ( col0 * 12 ) - 86 ) AND + col2 - + col0
----
-15
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - SUM( ALL 99 ) AS col2 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - SUM ( ALL 99 ) AS col2 FROM tab2
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT + MAX( DISTINCT col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT + MAX ( DISTINCT col0 ) FROM tab0
----
97

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT - 70 + - ( + SUM ( + 4 ) ) FROM tab2
----
-82

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col1 BETWEEN NULL AND col2
----
15
81
47
87
21
10

query I rowsort
SELECT col1 * - 30 * - col0 FROM tab0
----
2910
36450
54810

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT COUNT( * ) + + 62 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-5690
SELECT COUNT ( * ) + + 62 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
71

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

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

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

query I rowsort
SELECT ALL ( 94 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * col0 + + col1 * 73 col0 FROM tab0
----
7068
7542
8232

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab0 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 86 AS col2 FROM tab1 cor0
----
-18
-27
10

query I rowsort
SELECT ALL col0 + - col1 + + + col2 FROM tab0 AS cor0
----
-19
195
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( col2 ) >= ( col1 * - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT MAX( ALL 6 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5700
SELECT MAX ( ALL 6 ) FROM tab2
----
6

query I rowsort
SELECT 81 * + col2 - + col1 + col1 AS col0 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT - col2 - + 31 + - - col0 + + col2 * - col2 FROM tab0
----
-2272
-54
-9834

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

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

query I rowsort
SELECT DISTINCT col2 * - 97 + + col2 AS col1 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN ( NULL ) AND ( - 56 )
----
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ( col2 ) * ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + 61 >= ( + CAST( 0 AS SIGNED ) - - 90 )
----

skipif mysql # not compatible
query I rowsort label-5705
SELECT ( col2 ) * ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + 61 >= ( + CAST ( 0 AS INTEGER ) - - 90 )
----

query I rowsort
SELECT ALL 96 AS col1 FROM tab1 AS cor0 WHERE ( NULL <> ( - col1 ) )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( - col2 - col2 * + 15 ) NOT IN ( - 39 )
----

query II rowsort
SELECT - 64, col1 + - col1 AS col2 FROM tab2
----
-64
0
-64
0
-64
0

query II rowsort
SELECT DISTINCT - col1, - 89 AS col0 FROM tab0
----
-1
-89
-21
-89
-81
-89

query I rowsort
SELECT col1 * + col0 + + 33 - + col1 * 96 FROM tab0 AS cor0
----
-156
-6528
34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + 27 )
----

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

query II rowsort
SELECT - + col2, col1 + + + col2 AS col0 FROM tab0 cor0
----
-10
31
-47
128
-99
100

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

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

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

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab2 WHERE NOT col1 NOT IN ( - - col0 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <> 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 70 + - col0 FROM tab0
----
-17
-27
55

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - 39 + + col0
----

query I rowsort
SELECT col0 + + + 69 AS col0 FROM tab0 AS cor0
----
156
166
84

query I rowsort
SELECT DISTINCT + - ( - col2 ) * - ( col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

query III rowsort
SELECT * FROM tab0 cor0 WHERE 73 IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT MIN( - col1 ) * - MAX( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
4512

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5725
SELECT MIN ( - col1 ) * - MAX ( DISTINCT col2 ) col0 FROM tab1 AS cor0
----
4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT CAST( + col0 AS SIGNED ) * 40 FROM tab2
----
1840
2560
3000

skipif mysql # not compatible
query I rowsort label-5726
SELECT CAST ( + col0 AS INTEGER ) * 40 FROM tab2
----
1840
2560
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 19 - - + col0 col1 FROM tab2 cor0
----
65
83
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5728
SELECT DISTINCT + col2 + col2, - CAST( NULL AS SIGNED ) * - - ( - col0 ) AS col1 FROM tab2 AS cor0
----
116
NULL
46
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-5728
SELECT DISTINCT + col2 + col2, - CAST ( NULL AS INTEGER ) * - - ( - col0 ) AS col1 FROM tab2 AS cor0
----
116
NULL
46
NULL
80
NULL

query II rowsort
SELECT - 68 - - col1 AS col0, col1 FROM tab2 AS cor0
----
-1
67
-17
51
9
77

query I rowsort
SELECT + col2 - - col0 * 24 FROM tab2 AS cor0
----
1127
1576
1858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 + + col1, - 87 col1 FROM tab2 AS cor0
----
102
-87
134
-87
154
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 - 11 + - 90 col2 FROM tab1 AS cor0
----
-25

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

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

query I rowsort
SELECT ALL + + 52 + col0 AS col0 FROM tab2 AS cor0
----
116
127
98

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5739
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) + + + col1 = - 11
----

skipif mysql # not compatible
query III rowsort label-5739
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) + + + col1 = - 11
----

query I rowsort
SELECT ALL + col2 * col2 * - + 63 - - + col1 AS col2 FROM tab2
----
-100723
-211865
-33276

query I rowsort
SELECT DISTINCT 49 * + + col1 * - col0 FROM tab0 WHERE NOT - - 12 NOT IN ( - col0 )
----

query I rowsort
SELECT col1 * + - ( - + col2 ) FROM tab2
----
1173
3080
3886

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE - col0 BETWEEN + 76 AND 2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL + MIN( DISTINCT - col1 ) * 4 AS col1 FROM tab0 AS cor0
----
-324

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL + MIN ( DISTINCT - col1 ) * 4 AS col1 FROM tab0 AS cor0
----
-324

query I rowsort
SELECT - col1 * - - 30 AS col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 6 * - 10 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 43 * + - ( + col1 ), + col0 + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2193
92
2881
150
3311
128

query I rowsort
SELECT DISTINCT 50 / + col1 + - - col0 + - col1 * ( - + 97 ) AS col0 FROM tab2 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - 31 * - + col1 AS col1 FROM tab1
----
1457
155
434

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

query I rowsort
SELECT + 72 * - 57 FROM tab0 AS cor0
----
-4104
-4104
-4104

query I rowsort
SELECT - 40 * col1 FROM tab2 cor0
----
-2040
-2680
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT ALL col0 DIV - + 35 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL col0 / - + 35 FROM tab1 AS cor0
----
-1
-2
-2

query I rowsort
SELECT DISTINCT - 2 * ( - col1 ) FROM tab1 AS cor0
----
10
28
94

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

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + 62 / COUNT ( * ) FROM tab0 AS cor0
----
20

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

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

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

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

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

query I rowsort
SELECT - ( + col0 ) * + - col2 + - - col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5761
SELECT DISTINCT + col0 * + col0 * - 69 + - - CAST( ( + - col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT + col0 * + col0 * - 69 + - - CAST ( ( + - col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query II rowsort
SELECT DISTINCT + col0, col1 + - col2 FROM tab0 cor0
----
15
34
87
11
97
-98

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

query II rowsort
SELECT ALL 58, col1 AS col0 FROM tab1
----
58
14
58
47
58
5

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

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

query I rowsort
SELECT DISTINCT col0 + + 78 * - 8 AS col1 FROM tab1 AS cor0
----
-533
-539
-573

query I rowsort
SELECT ALL + + col2 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT + col1 + 57 AS col1 FROM tab0 AS cor0
----
138
58
78

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

query I rowsort
SELECT ALL + col2 * + col1 - - col2 FROM tab2 AS cor0
----
1196
3120
3944

query II rowsort
SELECT 93 + + 27 * col0, col0 + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 28 ) + - col2 FROM tab2 cor0
----
-51
-68
-86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 8 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col2 ), col0 col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT 46 * 22 - - + col1 FROM tab0
----
1013
1033
1093

query I rowsort
SELECT - 15 * 60 FROM tab0, tab1 AS cor0
----
9 values hashing to 2009361ff305b7ea116c18d2877caea9

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - col2 col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT DISTINCT - SUM( DISTINCT + - col1 ) * MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
-1030

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT - SUM ( DISTINCT + - col1 ) * MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1030

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * 20 AS col2 FROM tab1 cor0
----
100
280
940

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - - col0 col2 FROM tab0 AS cor0
----
348
388
60

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

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

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

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

query I rowsort
SELECT - col1 * + - col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

query II rowsort
SELECT col2 + + col0 AS col1, col2 FROM tab1
----
144
59
147
96
159
68

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + col2 - 64
----

query I rowsort
SELECT - + 31 - + 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL - 69 * + + col2 * + col2 FROM tab1
----
-240189
-319056
-635904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 - + 39 * col0 col2 FROM tab0 AS cor0
----
-3350
-3740
-542

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT ALL + 64 * + col2 FROM tab2 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL + 64 * + col2 FROM tab2 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) NOT IN ( col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL - MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL - MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - col1 - - 92 AS col2 FROM tab1 WHERE ( - col0 ) >= NULL
----

query I rowsort
SELECT - - ( + - col0 ) * col2 + - col0 AS col1 FROM tab0 WHERE NOT 55 NOT BETWEEN 26 AND NULL
----

query II rowsort
SELECT col1, + 34 FROM tab0
----
1
34
21
34
81
34

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND 29
----

query I rowsort
SELECT + 48 * 12 FROM tab2
----
576
576
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - - col1 col0 FROM tab1
----
1148
3854
410

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

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

query II rowsort
SELECT - - col2 AS col1, ( col2 ) + + 5 * + col0 FROM tab1 AS cor0
----
59
484
68
523
96
351

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = 2
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 14 <> NULL
----

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

query I rowsort
SELECT ALL + - ( + + 57 ) + col1 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT col1 * col1 DIV 44 * - col2 AS col1 FROM tab0 AS cor0
----
-100
-7003
0

skipif mysql # not compatible
query I rowsort label-5819
SELECT col1 * col1 / 44 * - col2 AS col1 FROM tab0 AS cor0
----
-100
-7003
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT MAX( + ( - + 80 ) ) * - COUNT( * ) AS col2 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-5820
SELECT MAX ( + ( - + 80 ) ) * - COUNT ( * ) AS col2 FROM tab2
----
240

query I rowsort
SELECT col0 * + 61 FROM tab0
----
5307
5917
915

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

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

query I rowsort
SELECT DISTINCT - 31 * - - col0 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT ALL col2 * - 14 FROM tab0
----
-1386
-140
-658

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - COUNT( * ) FROM tab0 WHERE ( 92 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-5826
SELECT - COUNT ( * ) FROM tab0 WHERE ( 92 IS NOT NULL )
----
-3

query I rowsort
SELECT + col2 * 96 AS col1 FROM tab1
----
5664
6528
9216

query II rowsort
SELECT col0, col2 * - col2 + + ( 91 ) FROM tab1
----
51
-9125
85
-3390
91
-4533

query I rowsort
SELECT - AVG ( DISTINCT 86 ) FROM tab0 WHERE 26 / 97 + + col1 * + col2 IS NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT ALL col2 DIV - col1 col0 FROM tab1
----
-1
-11
-6

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5833
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + col0 / + col0 = + - CAST( - col2 AS DECIMAL ) * + 29 * col0 / - col1 - + 96 - - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5833
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + col0 / + col0 = + - CAST ( - col2 AS REAL ) * + 29 * col0 / - col1 - + 96 - - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * + col2 * ( - col1 ) * + 80 + - - col1 < ( - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * + col2 * ( - col1 ) * + 80 + - - col1 < ( - - col2 )
----
0

query I rowsort
SELECT ALL - + col2 * - + col0 + - - col2 AS col1 FROM tab2 cor0
----
1081
2600
4408

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5837
SELECT ALL 62 DIV + - col1 AS col2, 10 col1 FROM tab0 AS cor0
----
-2
10
-62
10
0
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5837
SELECT ALL 62 / + - col1 AS col2, 10 col1 FROM tab0 AS cor0
----
-2
10
-62
10
0
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * - col2 NOT IN ( + ( - col0 ), col1, - - 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5841
SELECT - MAX ( col1 ) col0 FROM tab2
----
-77

query II rowsort
SELECT DISTINCT + col2, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT + COUNT( * ) + - AVG ( - + col1 ) / 4 * + + 6 col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5843
SELECT DISTINCT + COUNT ( * ) + - AVG ( - + col1 ) / 4 * + + 6 col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 cor0 WHERE NOT col1 <= + + col2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT - + col2 * col0 + + - col1 + col2 DIV + col0 - ( + col0 ) FROM tab0 cor0
----
-798
-9700
-978

skipif mysql # not compatible
query I rowsort label-5846
SELECT - + col2 * col0 + + - col1 + col2 / + col0 - ( + col0 ) FROM tab0 cor0
----
-798
-9700
-978

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

skipif mysql # not compatible
query III rowsort label-5847
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * CAST ( NULL AS INTEGER ) < - - 37
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + 13 * + COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5849
SELECT + 13 * + COUNT ( * ) FROM tab1 AS cor0
----
39

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

query I rowsort
SELECT + - 83 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

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

query I rowsort
SELECT DISTINCT col0 + - + 21 + col2 FROM tab0 AS cor0
----
175
41
76

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

query I rowsort
SELECT DISTINCT 53 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT DISTINCT - 81 * + - 19 * + col0 + - col2 * + ( - col1 ) * - - col2 + + CAST( col1 AS SIGNED ) * - - 69 + col1 AS col2 FROM tab1 AS cor0
----
148570
208493
360667

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - 81 * + - 19 * + col0 + - col2 * + ( - col1 ) * - - col2 + + CAST ( col1 AS INTEGER ) * - - 69 + col1 AS col2 FROM tab1 AS cor0
----
148570
208493
360667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 36 ) col0 FROM tab0 AS cor0
----
36
36
36

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

query I rowsort
SELECT ALL + 17 * 86 AS col1 FROM tab2 AS cor0
----
1462
1462
1462

query I rowsort
SELECT DISTINCT + col2 * + 83 * - col0 AS col1 FROM tab2
----
-212480
-361050
-87814

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT - col0 + - col0 + - col0 DIV + col2 FROM tab0
----
-182
-194
-30

skipif mysql # not compatible
query I rowsort label-5863
SELECT - col0 + - col0 + - col0 / + col2 FROM tab0
----
-182
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT - COUNT( * ) + - MIN( - 90 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-5864
SELECT - COUNT ( * ) + - MIN ( - 90 ) FROM tab2
----
87

query I rowsort
SELECT ALL + col0 * + ( col1 ) * col1 * + + col2 AS col2 FROM tab1
----
125375
13669292
959616

query II rowsort
SELECT - 70 + - - col2, col1 FROM tab2
----
-12
67
-30
77
-47
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT DISTINCT + col1 DIV - ( col1 ) + - 32 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + col1 / - ( col1 ) + - 32 FROM tab2
----
-33

query II rowsort
SELECT - col1 * + col0 AS col2, ( - 48 ) FROM tab2 AS cor0
----
-2346
-48
-4928
-48
-5025
-48

query II rowsort
SELECT DISTINCT - 57 - + 86, 46 AS col0 FROM tab1 AS cor0
----
-143
46

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

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

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

query II rowsort
SELECT DISTINCT - col0 AS col1, - 22 AS col1 FROM tab2 AS cor0
----
-46
-22
-64
-22
-75
-22

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5878
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + 47 * CAST( NULL AS SIGNED ) col1, col2 DIV + col0 FROM tab0 AS cor0
----
NULL
0
NULL
1
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5878
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + 47 * CAST ( NULL AS INTEGER ) col1, col2 / + col0 FROM tab0 AS cor0
----
NULL
0
NULL
1
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT ALL + - col2 DIV + col1 * 55 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + - col2 / + col1 * 55 - + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 20 + + col1 - + + ( + - col0 ) < NULL )
----

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

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

query I rowsort
SELECT col2 * - + 87 FROM tab1
----
-5133
-5916
-8352

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * 39 col1, 84 FROM tab0
----
3393
84
3783
84
585
84

query I rowsort
SELECT - col2 * + 51 * + + col0 AS col0 FROM tab1
----
-249696
-255765
-315588

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - MIN( DISTINCT 81 ) * + COUNT( DISTINCT - 64 ) AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5888
SELECT - MIN ( DISTINCT 81 ) * + COUNT ( DISTINCT - 64 ) AS col0 FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT DISTINCT - 62 + + COUNT( * ) DIV + - 12 AS col0 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT - 62 + + COUNT ( * ) / + - 12 AS col0 FROM tab0 AS cor0
----
-62

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

query I rowsort
SELECT DISTINCT + 94 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( - + ( 53 ) ) AND - - col2
----

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

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

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

query II rowsort
SELECT 71 + - col0 - + col0 AS col2, col1 AS col2 FROM tab1
----
-111
47
-31
14
-99
5

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

query I rowsort
SELECT - col2 + col1 * + col2 + + col1 + + ( - - col0 ) AS col1 FROM tab2 AS cor0
----
1247
3181
3970

onlyif mysql # DIV for integer division: 
query II rowsort label-5897
SELECT - col2 + 69 DIV - 65, ( - 94 ) * 37 AS col0 FROM tab1 AS cor0
----
-60
-3478
-69
-3478
-97
-3478

skipif mysql # not compatible
query II rowsort label-5897
SELECT - col2 + 69 / - 65, ( - 94 ) * 37 AS col0 FROM tab1 AS cor0
----
-60
-3478
-69
-3478
-97
-3478

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5900
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * + + 9 + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5900
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * + + 9 + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT + COUNT( * ) + + 23 + 33 AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT + COUNT ( * ) + + 23 + 33 AS col2 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ( + 21 ) - + 83 FROM tab2 AS cor0 WHERE + col1 * + col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT - MIN( + 61 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 * + CAST( - col1 AS SIGNED ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT - MIN ( + 61 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 * + CAST ( - col1 AS INTEGER ) ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 76 AS col1 FROM tab1
----
123
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - MIN( ALL 54 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-5906
SELECT - MIN ( ALL 54 ) FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - 77 * 16 - + COUNT( * ) AS col2 FROM tab1
----
-1235

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 77 * 16 - + COUNT ( * ) AS col2 FROM tab1
----
-1235

query II rowsort
SELECT ALL - col1 AS col1, + col0 * + 60 AS col0 FROM tab1
----
-14
3060
-47
5460
-5
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT + COUNT( * ) - - + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5909
SELECT + COUNT ( * ) - - + COUNT ( * ) FROM tab1
----
6

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

query I rowsort
SELECT DISTINCT - col0 + + - col1 - + col2 AS col1 FROM tab2 cor0
----
-120
-181
-200

query II rowsort
SELECT + col1 * - col0 AS col2, + col1 AS col1 FROM tab0
----
-1215
81
-1827
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - SUM( ALL 12 ) AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5913
SELECT - SUM ( ALL 12 ) AS col1 FROM tab1
----
-36

query II rowsort
SELECT DISTINCT ( col2 ), col2 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT + col1 * + col2 * - col0 - col2 + + + col1 FROM tab2 AS cor0
----
-197083
-291441
-53930

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

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

query I rowsort
SELECT ALL - col1 + - 16 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
-30
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col1 ), - col1 col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT - - 75 DIV 40 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5920
SELECT - - 75 / 40 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

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

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

query I rowsort
SELECT ( - + 19 ) FROM tab1 WHERE NOT NULL = - 82 * - - col1 + col1 - + 8 * - 45 + + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT 31 * - + MIN( + col1 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT 31 * - + MIN ( + col1 ) FROM tab0
----
-31

query II rowsort
SELECT DISTINCT col0, - col2 * + ( - col0 ) FROM tab1
----
51
4896
85
5015
91
6188

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + - 79
----

query I rowsort
SELECT - 84 + col1 AS col2 FROM tab0 AS cor0
----
-3
-63
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT - + 20 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - + 20 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT - 59 + col2 + 47 FROM tab2 AS cor0
----
11
28
46

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 * - + col1 col0 FROM tab0
----
-1470
-5670
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT ALL + - 71 DIV + col1 + 47 FROM tab0 AS cor0
----
-24
44
47

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + - 71 / + col1 + 47 FROM tab0 AS cor0
----
-24
44
47

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5939
SELECT + + 40 - - col2 DIV 87 * + col0 AS col1, - col1 * col2 AS col1 FROM tab2 cor0
----
40
-1173
40
-3080
40
-3886

skipif mysql # not compatible
query II rowsort label-5939
SELECT + + 40 - - col2 / 87 * + col0 AS col1, - col1 * col2 AS col1 FROM tab2 cor0
----
40
-1173
40
-3080
40
-3886

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

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

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

query I rowsort
SELECT ALL + - 10 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 13 * - 71 * - col1 FROM tab1
----
12922
43381
4615

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT DISTINCT - COUNT( ALL + 99 ) - + COUNT( * ), 66 AS col0 FROM tab1
----
-6
66

skipif mysql # not compatible
query II rowsort label-5944
SELECT DISTINCT - COUNT ( ALL + 99 ) - + COUNT ( * ), 66 AS col0 FROM tab1
----
-6
66

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5946
SELECT ALL * FROM tab2 WHERE NOT 46 NOT BETWEEN - + 25 AND - 47 / + col1 * + 50 - - - CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5946
SELECT ALL * FROM tab2 WHERE NOT 46 NOT BETWEEN - + 25 AND - 47 / + col1 * + 50 - - - CAST ( - - col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL 36 - - COUNT( * ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 36 - - COUNT ( * ) AS col2 FROM tab0
----
39

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

query I rowsort
SELECT DISTINCT - col2 + - + col1 FROM tab0
----
-100
-128
-31

query II rowsort
SELECT - col2 AS col2, + col2 + - - 74 + - - col1 AS col1 FROM tab2 AS cor0
----
-23
148
-40
191
-58
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - SUM( ALL - col1 ) * + 88 FROM tab2 AS cor0
----
17160

skipif mysql # not compatible
query I rowsort label-5951
SELECT - SUM ( ALL - col1 ) * + 88 FROM tab2 AS cor0
----
17160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT 63 * + COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT 63 * + COUNT ( * ) FROM tab1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + 25 * + - SUM( DISTINCT + 79 ) FROM tab1 AS cor0
----
-1975

skipif mysql # not compatible
query I rowsort label-5954
SELECT + 25 * + - SUM ( DISTINCT + 79 ) FROM tab1 AS cor0
----
-1975

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT ( + ( - ( + 54 ) ) + - 74 IS NULL )
----
59
68
96

query I rowsort
SELECT ALL 2 * - - 39 FROM tab1 AS cor0
----
78
78
78

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT + col2 DIV - + 83 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT + col2 / - + 83 AS col2 FROM tab1
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT + 26 * COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT + 26 * COUNT ( * ) FROM tab2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5962
SELECT + 15 DIV + MAX( - 96 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT + 15 / + MAX ( - 96 ) FROM tab2
----
0

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

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

query I rowsort
SELECT ALL + - 46 FROM tab2 AS cor0
----
-46
-46
-46

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

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

query I rowsort
SELECT - col2 + col0 + - col0 * - + col0 + + + col0 AS col1 FROM tab2
----
2185
4184
5717

query I rowsort
SELECT DISTINCT + col2 + + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1168
-1817
2

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

query II rowsort
SELECT - + col2 AS col2, col0 * - - col2 FROM tab1 cor0
----
-59
5015
-68
6188
-96
4896

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

query I rowsort
SELECT ALL - col1 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
2397
5005
5092

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

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

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

query I rowsort
SELECT DISTINCT - col0 + 17 AS col2 FROM tab1 cor0
----
-34
-68
-74

query I rowsort
SELECT DISTINCT + - 64 * - col2 FROM tab0 AS cor0
----
3008
6336
640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5977
SELECT + - 54 AS col1, + CAST( + 36 AS SIGNED ) + - - 30 + 45 * + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-54
198

skipif mysql # not compatible
query II rowsort label-5977
SELECT + - 54 AS col1, + CAST ( + 36 AS INTEGER ) + - - 30 + 45 * + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-54
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5978
SELECT ALL + 80 - + MIN( ALL + col2 ) * + + 30 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + 80 - + MIN ( ALL + col2 ) * + + 30 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5979
SELECT DISTINCT col0 - - - col1 AS col2, + 28 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-13
NULL
-5
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-5979
SELECT DISTINCT col0 - - - col1 AS col2, + 28 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-13
NULL
-5
NULL
8
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT ALL + CAST( - - col1 AS SIGNED ) * + + CAST( - + col2 AS SIGNED ) + - 68 + - - 30 col0 FROM tab0
----
-137
-248
-3845

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5980
SELECT ALL + CAST ( - - col1 AS INTEGER ) * + + CAST ( - + col2 AS INTEGER ) + - 68 + - - 30 col0 FROM tab0
----
-137
-248
-3845

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

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

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - - 20 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + 53 - + - COUNT( * ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-5983
SELECT + 53 - + - COUNT ( * ) FROM tab2
----
56

query I rowsort
SELECT col2 - - 43 * + col0 - - col1 + - - 95 AS col2 FROM tab1
----
2398
3814
4123

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

query I rowsort
SELECT - col0 + - - ( - - col0 ) FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( ( 67 ) ) AS col1 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT COUNT( + + 95 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT COUNT ( + + 95 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - 49, + 92 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + + col1 * col0
----

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

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

query I rowsort
SELECT ALL + 75 AS col0 FROM tab0
----
75
75
75

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - + col2 FROM tab1
----
-1344
-295
-3196

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

query II rowsort
SELECT col1 AS col1, + col0 + 7 + + 56 - + - col1 AS col1 FROM tab0
----
1
161
21
171
81
159

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

query I rowsort
SELECT DISTINCT - col0 * 70 * + + col1 AS col1 FROM tab0
----
-127890
-6790
-85050

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6002
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6002
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT 92 DIV - col1 AS col0 FROM tab0
----
-1
-4
-92

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT 92 / - col1 AS col0 FROM tab0
----
-1
-4
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ( - MIN( DISTINCT + col2 ) ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6007
SELECT ( - MIN ( DISTINCT + col2 ) ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT - 75 + - 75 FROM tab0 AS cor0
----
-150
-150
-150

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT - - 69 DIV + - col0 + col2 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-6010
SELECT - - 69 / + - col0 + col2 FROM tab1 AS cor0
----
59
68
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + col2 AS col2, + col1 * - 28 col0 FROM tab0 AS cor0
----
196
-28
62
-2268
97
-588

query I rowsort
SELECT DISTINCT col2 + - - 80 * + + 98 AS col1 FROM tab2 AS cor0
----
7863
7880
7898

query I rowsort
SELECT col2 + - col1 + col1 AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NULL > + + col1 * - 77 - + col0
----

query I rowsort
SELECT ALL col1 - col2 * 7 AS col1 FROM tab0
----
-248
-49
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT SUM( col2 ) - + MIN( ALL 29 ) AS col2 FROM tab0
----
127

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT SUM ( col2 ) - + MIN ( ALL 29 ) AS col2 FROM tab0
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6017
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + - 22 + - ( - - 92 ) - + col1 * - col1 / CAST( col2 AS SIGNED ) <> - 36
----

skipif mysql # not compatible
query III rowsort label-6017
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + - 22 + - ( - - 92 ) - + col1 * - col1 / CAST ( col2 AS INTEGER ) <> - 36
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6018
SELECT DISTINCT COUNT( * ), 23 AS col0 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-6018
SELECT DISTINCT COUNT ( * ), 23 AS col0 FROM tab2
----
3
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 50 col1 FROM tab1
----
2550
4250
4550

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6021
SELECT DISTINCT + ( col0 ) * col0 AS col2 FROM tab0 AS cor0 WHERE NULL > + 26 * - CAST( NULL AS DECIMAL ) - - col1
----

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT + ( col0 ) * col0 AS col2 FROM tab0 AS cor0 WHERE NULL > + 26 * - CAST ( NULL AS REAL ) - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + MAX( ALL 19 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-6022
SELECT + MAX ( ALL 19 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
19

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

query I rowsort
SELECT - + 27 * col2 FROM tab1 AS cor0
----
-1593
-1836
-2592

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NOT + 2 * 21 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6026
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 / 15 * 95 > - CAST( NULL AS DECIMAL ) * col1 + col1
----
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 / 15 * 95 > - CAST ( NULL AS REAL ) * col1 + col1
----
0

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

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

query I rowsort
SELECT ALL + + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - 92 FROM tab2 WHERE NOT - - col2 / col0 * 58 BETWEEN + col2 AND + col1
----
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 54 + + 45 <= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT DISTINCT CAST( NULL AS SIGNED ) + + MAX( + 38 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + MAX ( + 38 ) FROM tab2
----
NULL

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

query II rowsort
SELECT ALL col0 AS col1, 93 FROM tab0
----
15
93
87
93
97
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + - col2 > NULL
----

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

query I rowsort
SELECT + col1 + + 49 * + 36 AS col0 FROM tab0
----
1765
1785
1845

query I rowsort
SELECT - + 68 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL + + 74 * + - COUNT( * ) + - - 72 AS col2 FROM tab0 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + + 74 * + - COUNT ( * ) + - - 72 AS col2 FROM tab0 cor0
----
-150

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 47 < NULL
----

query II rowsort
SELECT DISTINCT - 29 AS col1, 62 * - + col2 FROM tab0 AS cor0
----
-29
-2914
-29
-6138
-29
-620

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT + 3 / + 32 - + col0 - - CAST( NULL AS SIGNED ) - + 70 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT + 3 / + 32 - + col0 - - CAST ( NULL AS INTEGER ) - + 70 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT DISTINCT CAST( + 75 AS SIGNED ) FROM tab2 AS cor0 WHERE 64 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT CAST ( + 75 AS INTEGER ) FROM tab2 AS cor0 WHERE 64 NOT BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col2 * - + 88 * + col0 FROM tab2
----
-225280
-382800
-93104

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= + 20
----

query I rowsort
SELECT + col1 + - 58 * - col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
2807
5743
601

query I rowsort
SELECT 23 * + - col0 AS col2 FROM tab2
----
-1058
-1472
-1725

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 WHERE NULL BETWEEN + col0 AND 81
----

query I rowsort
SELECT 8 * + - 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90c5b6c0575605b061956336e5442058

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

query II rowsort
SELECT - col1 AS col1, 53 + col0 FROM tab2 AS cor0
----
-51
99
-67
128
-77
117

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

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

query I rowsort
SELECT ALL - - col2 + + 40 FROM tab2 AS cor0
----
63
80
98

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

query II rowsort
SELECT col0 AS col2, 34 * - col1 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15
-2754
87
-714
97
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + SUM( ( 85 ) ) + - COUNT( * ) - MIN( - col2 ) AS col2 FROM tab1
----
348

skipif mysql # not compatible
query I rowsort label-6064
SELECT + SUM ( ( 85 ) ) + - COUNT ( * ) - MIN ( - col2 ) AS col2 FROM tab1
----
348

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT - - 0 DIV col2 AS col2 FROM tab1 WHERE - - 30 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6065
SELECT - - 0 / col2 AS col2 FROM tab1 WHERE - - 30 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL col1 * + col0 * - col1 AS col2 FROM tab1
----
-201019
-2125
-9996

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

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

query I rowsort
SELECT 36 * - col2 + col0 FROM tab0
----
-1677
-273
-3467

query I rowsort
SELECT DISTINCT + 9 * col1 FROM tab2
----
459
603
693

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

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT - 82 + + - ( COUNT ( * ) ) FROM tab0
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL + COUNT( DISTINCT ( + 29 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + COUNT ( DISTINCT ( + 29 ) ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) + col1 col1 FROM tab0
----
162
2
42

query I rowsort
SELECT - + col2 * - + 25 FROM tab2 AS cor0
----
1000
1450
575

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 AS col2 FROM tab0 WHERE - col2 <> NULL
----

query I rowsort
SELECT 1 + - - 0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + col1 * + col1 AS col1 FROM tab0 cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT 81 DIV + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6082
SELECT 81 / + col0 FROM tab0 AS cor0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 18
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <> + + col2 * 95 + 41 + + + col2
----

query I rowsort
SELECT ALL + col1 * - col1 * + col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0, + col1 * + col1 col2 FROM tab0 AS cor0
----
15
6561
87
441
97
1

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

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

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

query II rowsort
SELECT DISTINCT - col1, + 48 AS col1 FROM tab2
----
-51
48
-67
48
-77
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - 84 + + 20 FROM tab0
----
10
-64
47
-64
99
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6091
SELECT 78 AS col1, + MIN( DISTINCT + col2 ) AS col1 FROM tab1
----
78
59

skipif mysql # not compatible
query II rowsort label-6091
SELECT 78 AS col1, + MIN ( DISTINCT + col2 ) AS col1 FROM tab1
----
78
59

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6093
SELECT + 89 DIV - CAST( - + ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6093
SELECT + 89 / - CAST ( - + ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL 12 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
12
12

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

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - 21 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT 62 + 24 DIV - MIN( ALL + col0 ) AS col2 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-6097
SELECT 62 + 24 / - MIN ( ALL + col0 ) AS col2 FROM tab0
----
61

query I rowsort
SELECT DISTINCT col2 + 63 FROM tab1
----
122
131
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 + - - col0 col2 FROM tab2 AS cor0
----
69
87
98

query I rowsort
SELECT ALL - 33 + - - col2 * col0 * + col0 FROM tab0 AS cor0
----
10542
75657
931458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + + - col1 col2 FROM tab0 AS cor0
----
-100
-128
-31

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6106
SELECT - col2 / + + col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 92 + + + col0 * + 91 * + col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6108
SELECT DISTINCT COUNT( * ) AS col2, 44 AS col2 FROM tab1
----
3
44

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT COUNT ( * ) AS col2, 44 AS col2 FROM tab1
----
3
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT col2 DIV + 1 + + + col2 AS col2 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT col2 / + 1 + + + col2 AS col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6110
SELECT - 95 * + SUM( - + 8 ) / + CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT - 95 * + SUM ( - + 8 ) / + CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT 38 - - COUNT( * ) AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-6111
SELECT 38 - - COUNT ( * ) AS col0 FROM tab1
----
41

query I rowsort
SELECT - + col2 * - col1 + - + col0 FROM tab0 WHERE - 37 NOT BETWEEN - - 26 AND NULL
----
123
2
3792

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

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

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

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

query I rowsort
SELECT col0 * ( col0 ) + 36 FROM tab1
----
2637
7261
8317

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL MIN( + ( col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL MIN ( + ( col1 ) ) FROM tab1
----
5

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

skipif mysql # not compatible
query I rowsort label-6117
SELECT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6118
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 WHERE NOT + ( + CAST( col1 AS DECIMAL ) ) * + 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6118
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + ( + CAST ( col1 AS REAL ) ) * + 36 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 8 ) <> ( NULL )
----

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

query I rowsort
SELECT col1 * col0 FROM tab0 WHERE 15 IS NULL
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 BETWEEN ( NULL ) AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + SUM( 92 ) col2 FROM tab1
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6127
SELECT + SUM ( 92 ) col2 FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT ( COUNT( * ) ) * + 52 col1 FROM tab2 WHERE ( NULL ) IN ( + 92 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6128
SELECT DISTINCT ( COUNT ( * ) ) * + 52 col1 FROM tab2 WHERE ( NULL ) IN ( + 92 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / col0 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE col1 = + col0
----
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE col1 = + col0
----
0

query I rowsort
SELECT - 90 + col2 AS col0 FROM tab1
----
-22
-31
6

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( + 30 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col2 + 42 FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT MIN( col2 ) + - 68 * 95 col1 FROM tab1 AS cor0
----
-6401

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6135
SELECT MIN ( col2 ) + - 68 * 95 col1 FROM tab1 AS cor0
----
-6401

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

query I rowsort
SELECT ALL - 26 * + col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query I rowsort
SELECT ALL - col2 + 7 FROM tab2 cor0
----
-16
-33
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6139
SELECT DISTINCT - 78 DIV CAST( 68 AS SIGNED ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - 78 / CAST ( 68 AS INTEGER ) FROM tab1
----
-1

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

query III rowsort
SELECT * FROM tab0 WHERE col1 + col2 NOT IN ( + col0 / 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL NOT IN ( + 62 * 73 )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + 38 FROM tab2 AS cor0
----
-2
-20
15

query I rowsort
SELECT DISTINCT - col1 + - 3 FROM tab0 AS cor0
----
-24
-4
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT ALL - col0 DIV col2 + - 86 * - 77 FROM tab2 AS cor0
----
6620
6621
6621

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - col0 / col2 + - 86 * - 77 FROM tab2 AS cor0
----
6620
6621
6621

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT - + 23 + MIN( + col2 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6151
SELECT - + 23 + MIN ( + col2 ) FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT col1 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL + + 76 * 39 AS col2 FROM tab0 AS cor0
----
2964
2964
2964

query I rowsort
SELECT - col2 + - 44 AS col1 FROM tab2 cor0
----
-102
-67
-84

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

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN ( - col1 + col2 ) AND + 30 * 88 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6157
SELECT DISTINCT 6 * + 22 * ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT 6 * + 22 * ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT ALL - 88 DIV col0 * col2 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - 88 / col0 * col2 AS col0 FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT 99 * - col2 AS col2 FROM tab0
----
-4653
-9801
-990

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * - 63 ) BETWEEN 30 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT ALL 45 + 70 AS col0 FROM tab1 AS cor0
----
115
115
115

query I rowsort
SELECT - 73 * 33 - - col1 AS col1 FROM tab1 AS cor0
----
-2362
-2395
-2404

query I rowsort
SELECT + col0 - - col1 * 18 AS col2 FROM tab2 AS cor0
----
1281
1450
964

query I rowsort
SELECT - + ( col0 ) - + col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT ( + 24 ) * COUNT( * ) + 82 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < ( NULL )
----
82

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT ( + 24 ) * COUNT ( * ) + 82 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < ( NULL )
----
82

query I rowsort
SELECT 20 AS col0 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + 95 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-6173
SELECT + 95 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
285

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6174
SELECT - - col2 / CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + ( + + col1 ) * 99 + col2 * + col2 FROM tab1 AS cor0
----
10602
3976
9277

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT + + 18 DIV - 92 - - 93 FROM tab0 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-6177
SELECT + + 18 / - 92 - - 93 FROM tab0 AS cor0
----
93
93
93

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT ALL 58 AS col1, MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
58
-97

skipif mysql # not compatible
query II rowsort label-6179
SELECT ALL 58 AS col1, MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
58
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col0 FROM tab2 AS cor0 WHERE NOT - col2 * + col2 + col0 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
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-6181
SELECT ALL + SUM ( col0 ) col0 FROM tab2
----
185

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 91 NOT IN ( + 76 * col1 )
----

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

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

query II rowsort
SELECT DISTINCT - + col0 + + + 2 AS col0, 76 AS col2 FROM tab1 AS cor0
----
-49
76
-83
76
-89
76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT DISTINCT 33 * - col2 - - - 51 + - CAST( col2 AS SIGNED ) col0 FROM tab0 cor0
----
-1649
-3417
-391

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6187
SELECT DISTINCT 33 * - col2 - - - 51 + - CAST ( col2 AS INTEGER ) col0 FROM tab0 cor0
----
-1649
-3417
-391

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT ( - - MIN( DISTINCT - - col2 ) ) * 18 FROM tab1 AS cor0
----
1062

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT ( - - MIN ( DISTINCT - - col2 ) ) * 18 FROM tab1 AS cor0
----
1062

query I rowsort
SELECT ALL - col0 * 50 + + - col2 FROM tab1 AS cor0
----
-2646
-4309
-4618

query I rowsort
SELECT DISTINCT + - col1 * + - ( - - col0 ) FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( NOT col2 = - ( - 22 ) ) )
----

query I rowsort
SELECT ALL + - 44 + + col2 * col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 52 AND NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 * - col2 * - CAST( NULL AS DECIMAL ) ) AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6194
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 * - col2 * - CAST ( NULL AS REAL ) ) AND ( col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 33 <= + 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT ALL CAST( + col1 AS SIGNED ) * + col0 + - - 88 + + 15 * col1 FROM tab1 AS cor0
----
1012
5070
588

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL CAST ( + col1 AS INTEGER ) * + col0 + - - 88 + + 15 * col1 FROM tab1 AS cor0
----
1012
5070
588

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) < ( - 86 )
----
87
21
10
97
1
99

query I rowsort
SELECT + col2 * - col2 - col0 AS col2 FROM tab1
----
-3566
-4715
-9267

onlyif mysql # DIV for integer division: 
query II rowsort label-6202
SELECT ALL 55 DIV + col1 AS col0, + col1 FROM tab0
----
0
81
2
21
55
1

skipif mysql # not compatible
query II rowsort label-6202
SELECT ALL 55 / + col1 AS col0, + col1 FROM tab0
----
0
81
2
21
55
1

query I rowsort
SELECT + col1 - col1 * + - col1 FROM tab2
----
2652
4556
6006

query I rowsort
SELECT ( - col2 ) - - 52 AS col2 FROM tab2
----
-6
12
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col0 col1 FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - 38 ) NOT IN ( 92, col2 * + 61 - col1 )
----

query I rowsort
SELECT - col2 - - - 41 FROM tab0
----
-140
-51
-88

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

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

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

query I rowsort
SELECT ALL - - col2 + - + col1 * + - col2 FROM tab2 cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * 47 + + col0 AS col2 FROM tab2 cor0
----
1127
1944
2801

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * 47 + + col0 AS col2 FROM tab2 cor0
----
1127
1944
2801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL + 98 * + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL + 98 * + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col0 + col1 + + 16 < NULL
----

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

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

query I rowsort
SELECT ALL - + col2 - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> - 92
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 49 * - col0 <= ( + col2 * ( 98 ) * - col1 ) )
----

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6221
SELECT COUNT ( - 62 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col2 * 77 FROM tab0
----
-3619
-7623
-770

query I rowsort
SELECT 21 * - col0 * 21 * col1 FROM tab1
----
-187425
-1886157
-314874

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

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

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

query I rowsort
SELECT col1 + + - 98 AS col0 FROM tab2
----
-21
-31
-47

onlyif mysql # DIV for integer division: 
query III rowsort label-6227
SELECT ALL - - col1 + + 18 DIV - 98, + col1 AS col2, + 61 + col1 * - 53 * + col0 * + col0 + - col0 AS col2 FROM tab2 cor0
----
9 values hashing to bf5547a31df6b17645841c112cc30144

skipif mysql # not compatible
query III rowsort label-6227
SELECT ALL - - col1 + + 18 / - 98, + col1 AS col2, + 61 + col1 * - 53 * + col0 * + col0 + - col0 AS col2 FROM tab2 cor0
----
9 values hashing to bf5547a31df6b17645841c112cc30144

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

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

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

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

query I rowsort
SELECT - 4 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - - 77 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6233
SELECT - - 77 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 9 NOT IN ( 75 )
----
-3

skipif mysql # not compatible
query I rowsort label-6234
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 9 NOT IN ( 75 )
----
-3

query I rowsort
SELECT ALL + - 11 + col0 * + ( col0 ) FROM tab0 AS cor0
----
214
7558
9398

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT DISTINCT - col1 DIV - col1 + col0 AS col1 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT - col1 / - col1 + col0 AS col1 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + - COUNT( * ) + + - 36 AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6237
SELECT + - COUNT ( * ) + + - 36 AS col2 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - - 15 + + 92 AS col1 FROM tab2 AS cor0
----
107

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

skipif mysql # not compatible
query III rowsort label-6239
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST ( + + CAST ( col2 AS REAL ) AS INTEGER ) - + col1 * 81 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6240
SELECT ALL + + 94 * col0 DIV - + col2 + - - col2 AS col1, 90 FROM tab1 AS cor0
----
-57
90
-76
90
47
90

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL + + 94 * col0 / - + col2 + - - col2 AS col1, 90 FROM tab1 AS cor0
----
-57
90
-76
90
47
90

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col0 < - 34
----

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

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

query I rowsort
SELECT 58 * - 25 FROM tab2
----
-1450
-1450
-1450

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

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

query I rowsort
SELECT ALL - col2 - col1 + - 8 AS col1 FROM tab0
----
-108
-136
-39

query III rowsort
SELECT * FROM tab2 WHERE NOT + 72 <> col0
----

query I rowsort
SELECT 7 * - - 39 AS col1 FROM tab0
----
273
273
273

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT - COUNT( * ) * - COUNT( ALL - col2 ), SUM( DISTINCT - 44 ) AS col1 FROM tab0 AS cor0
----
9
-44

skipif mysql # not compatible
query II rowsort label-6248
SELECT - COUNT ( * ) * - COUNT ( ALL - col2 ), SUM ( DISTINCT - 44 ) AS col1 FROM tab0 AS cor0
----
9
-44

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT ALL + + ( + - CAST( - + col0 AS SIGNED ) ) / - - col1 AS col1 FROM tab1 WHERE col0 BETWEEN NULL AND 12
----

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL + + ( + - CAST ( - + col0 AS INTEGER ) ) / - - col1 AS col1 FROM tab1 WHERE col0 BETWEEN NULL AND 12
----

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

skipif mysql # not compatible
query I rowsort label-6253
SELECT + MAX ( - ( - 38 ) ) AS col1 FROM tab0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6254
SELECT + CAST( - + CAST( + COUNT( + col2 ) AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6254
SELECT + CAST ( - + CAST ( + COUNT ( + col2 ) AS REAL ) AS INTEGER ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT - 35 * + + col0 FROM tab1 AS cor0
----
-1785
-2975
-3185

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT ALL + ( + - col0 ) DIV - - 27 AS col1 FROM tab0 AS cor0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + ( + - col0 ) / - - 27 AS col1 FROM tab0 AS cor0
----
-3
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + 40 * + + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
400

skipif mysql # not compatible
query I rowsort label-6257
SELECT + 40 * + + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
400

query I rowsort
SELECT ALL - + col2 * + 18 + 94 FROM tab1 AS cor0
----
-1130
-1634
-968

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT DISTINCT 13 DIV + - 45 * ( col2 ) - - col2 * ( col2 ) FROM tab0 cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT 13 / + - 45 * ( col2 ) - - col2 * ( col2 ) FROM tab0 cor0
----
100
2209
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6260
SELECT DISTINCT - - col0, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6260
SELECT DISTINCT - - col0, + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

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

query II rowsort
SELECT ALL 52, + ( 9 ) AS col1 FROM tab2 cor0
----
52
9
52
9
52
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT ALL SUM( + 72 ) FROM tab0, tab1 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL SUM ( + 72 ) FROM tab0, tab1 AS cor0
----
648

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( 93 * + 91 ) IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 * + col2 col2, + col2 col1 FROM tab0
----
2914
47
6138
99
620
10

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col0 * - 15 * + - 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT DISTINCT + 34 + + + col2 DIV col2 FROM tab2 cor0
----
35

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + 34 + + + col2 / col2 FROM tab2 cor0
----
35

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

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

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

skipif mysql # not compatible
query I rowsort label-6271
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT - 10 + - COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - 10 + - COUNT ( * ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + 70 + + 2 FROM tab1 AS cor0
----
72

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

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

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

query I rowsort
SELECT - col2 * + 62 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2914
-6138
-620

query I rowsort
SELECT ALL 21 + col0 + - ( + col0 ) * + - 95 + - 53 AS col1 FROM tab2 AS cor0
----
4384
6112
7168

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL 48 * + 36 * + MIN( col0 ) / + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL 48 * + 36 * + MIN ( col0 ) / + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 - + - 6 AS col1 FROM tab0 AS cor0
----
103
21
93

query I rowsort
SELECT ALL - 76 - + 89 + + col1 FROM tab0
----
-144
-164
-84

query II rowsort
SELECT - col2 * + col2, col0 FROM tab2
----
-1600
64
-3364
75
-529
46

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 - col2 - 45 < ( - ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT ALL - + 42 + - 77 DIV - 13 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - + 42 + - 77 / - 13 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-37
-37
-37

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

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

query II rowsort
SELECT + col0, col2 * + + col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 / + 52
----

query I rowsort
SELECT DISTINCT + 60 * + col1 FROM tab2 cor0
----
3060
4020
4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 cor0 WHERE NOT ( - 30 + + 24 ) <= col1
----

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 38 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 * col2 + + - col1 col1 FROM tab1 AS cor0
----
1470
150165
18802

query I rowsort
SELECT 31 * + 6 + + 31 * - + 87 * + + 25 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-67239
-67239
-67239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col1 * - + col1 col1 FROM tab0 AS cor0
----
-431
-6514
98

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

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

query I rowsort
SELECT DISTINCT + 27 + - + col1 FROM tab2 cor0
----
-24
-40
-50

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

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

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

query I rowsort
SELECT + 46 + - - col1 + + 8 + - - col2 AS col0 FROM tab1
----
118
164
169

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

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 * col2 + + - 50 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - col2 ) + - col2 AS col0 FROM tab1
----
-118
-136
-192

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6303
SELECT ALL - MIN ( + + ( + + 86 ) ) col2 FROM tab0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT ALL col2 DIV 9 DIV + + col1 + col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL col2 / 9 / + + col1 + col2 AS col0 FROM tab2
----
23
40
58

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

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

query II rowsort
SELECT ALL - 97 AS col1, col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-97
1215
-97
1827
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT ALL - col1 * - + 63 * - 16 - + CAST( - + 27 AS SIGNED ) + ( - 58 ) - - col2 AS col2 FROM tab1
----
-14047
-47339
-5012

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL - col1 * - + 63 * - 16 - + CAST ( - + 27 AS INTEGER ) + ( - 58 ) - - col2 AS col2 FROM tab1
----
-14047
-47339
-5012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT 56 * CAST( NULL AS SIGNED ) / 68 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT 56 * CAST ( NULL AS INTEGER ) / 68 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 + - col2 col2 FROM tab1
----
-112
-133
-139

onlyif mysql # DIV for integer division: 
query II rowsort label-6311
SELECT DISTINCT 72 DIV + 48 col2, - col2 + + 44 FROM tab1
----
1
-15
1
-24
1
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6311
SELECT DISTINCT 72 / + 48 col2, - col2 + + 44 FROM tab1
----
1
-15
1
-24
1
-52

query I rowsort
SELECT - col1 + - 84 AS col1 FROM tab1 AS cor0
----
-131
-89
-98

query I rowsort
SELECT + 10 + + col0 + - col0 AS col2 FROM tab1 AS cor0
----
10
10
10

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6315
SELECT - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

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

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

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

query II rowsort
SELECT DISTINCT 59 * - - 40 * - + col0 AS col0, 26 AS col0 FROM tab1
----
-120360
26
-200600
26
-214760
26

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

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

query I rowsort
SELECT + 60 * 2 AS col2 FROM tab1 AS cor0
----
120
120
120

query I rowsort
SELECT - - 25 + - 91 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND 93 * - col1 * - ( + col1 ) - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + col1 ) * - ( + + 15 ) * - 34 < 14
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - + col1 < + - col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 25 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL + COUNT( * ) * 50 col0 FROM tab0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6325
SELECT ALL + COUNT ( * ) * 50 col0 FROM tab0
----
150

query II rowsort
SELECT DISTINCT - - col1, + col1 AS col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - + 9 AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * - - ( - col0 ) * - 12 - col1 + - 51 col1 FROM tab1
----
119887
2412130
25444

query I rowsort
SELECT ALL 78 * + - col2 AS col1 FROM tab0
----
-3666
-7722
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT 42 DIV col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-6330
SELECT 42 / col1 FROM tab1
----
0
3
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6331
SELECT ALL - col2 DIV - - 74 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL - col2 / - - 74 FROM tab2
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT + col1 DIV 89 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + col1 / 89 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT DISTINCT 12 * + CAST( - 44 AS SIGNED ) FROM tab0
----
-528

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT 12 * + CAST ( - 44 AS INTEGER ) FROM tab0
----
-528

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

skipif mysql # not compatible
query I rowsort label-6337
SELECT - col1 + + CAST ( NULL AS REAL ) * col1 + - 27 * - ( + + col1 ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 + - col1 + col0 AS col0 FROM tab1 AS cor0
----
112
133
139

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT DISTINCT - 75 + + - 36 + col1 DIV + - col2 FROM tab2 AS cor0
----
-112
-113

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - 75 + + - 36 + col1 / + - col2 FROM tab2 AS cor0
----
-112
-113

query I rowsort
SELECT DISTINCT + - col2 + - - ( + - 77 ) AS col1 FROM tab0 cor0
----
-124
-176
-87

query I rowsort
SELECT col1 + + + 1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT ALL col0 * + 81 FROM tab1
----
4131
6885
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL 51 - - - COUNT( - + col0 ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL 51 - - - COUNT ( - + col0 ) AS col2 FROM tab0
----
48

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

query I rowsort
SELECT + - ( 47 ) + col1 - col2 * + + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-145
-236
-3773

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT DISTINCT 3, COUNT( * ) * 13 col2 FROM tab2
----
3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6346
SELECT DISTINCT 3, COUNT ( * ) * 13 col2 FROM tab2
----
3
39

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

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

skipif mysql # not compatible
query II rowsort label-6348
SELECT ALL + 41 AS col1, COUNT ( ALL - col2 ) AS col0 FROM tab0 cor0
----
41
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6350
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 66 NOT BETWEEN NULL AND + 73 * + col0 * + + 97 - CAST( - col2 AS SIGNED ) + - 58
----

skipif mysql # not compatible
query III rowsort label-6350
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 66 NOT BETWEEN NULL AND + 73 * + col0 * + + 97 - CAST ( - col2 AS INTEGER ) + - 58
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 BETWEEN - + 66 AND NULL
----
51
14
96
91
47
68

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT CAST( + + ( - col1 ) AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6355
SELECT CAST ( + + ( - col1 ) AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT COUNT( 22 ) FROM tab1 WHERE NOT - 93 / - + 61 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6356
SELECT COUNT ( 22 ) FROM tab1 WHERE NOT - 93 / - + 61 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT + 50 DIV - - COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-6357
SELECT + 50 / - - COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT DISTINCT col2 * + 65 + + col2 FROM tab0
----
3102
6534
660

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6360
SELECT ALL + 44 * + col1 + - + CAST( NULL AS SIGNED ) AS col1, - 98 FROM tab0 cor0
----
NULL
-98
NULL
-98
NULL
-98

skipif mysql # not compatible
query II rowsort label-6360
SELECT ALL + 44 * + col1 + - + CAST ( NULL AS INTEGER ) AS col1, - 98 FROM tab0 cor0
----
NULL
-98
NULL
-98
NULL
-98

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT - - col0 DIV + 81 + - col1 - + col0 + + col0 AS col0 FROM tab0 AS cor0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-6364
SELECT - - col0 / + 81 + - col1 - + col0 + + col0 AS col0 FROM tab0 AS cor0
----
-20
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + - col2 + + + col0 * + + col0 col1 FROM tab2 AS cor0
----
2143
4106
5617

query I rowsort
SELECT - 53 + + 75 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT - 63 + - col2 AS col2 FROM tab0 AS cor0
----
-110
-162
-73

query I rowsort
SELECT DISTINCT + - 14 * 96 + - ( + + 78 ) + col0 FROM tab2 AS cor0
----
-1347
-1358
-1376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col2 col2 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT DISTINCT + ( - col1 ) DIV - - col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT + ( - col1 ) / - - col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 * - + ( + 28 ) FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT 60 * + col1 + + col0 - col1 FROM tab1
----
2864
380
877

query I rowsort
SELECT ALL ( + + col2 ) + - + ( 93 ) FROM tab1
----
-25
-34
3

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

query I rowsort
SELECT - 11 FROM tab0 AS cor0 WHERE + col2 >= NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6378
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( ( CAST( NULL AS DECIMAL ) ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-6378
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( ( CAST ( NULL AS REAL ) ) + col0 )
----

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

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

query I rowsort
SELECT + + ( + ( - col0 ) ) * + - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - col2 * + - col0 * + col1 + - 54 FROM tab0 AS cor0
----
18216
57051
9549

query I rowsort
SELECT DISTINCT + + 57 * - + 78 AS col2 FROM tab0 AS cor0
----
-4446

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6384
SELECT 7 / CAST( NULL AS DECIMAL ) + - + col0 + - + ( + col0 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT 7 / CAST ( NULL AS REAL ) + - + col0 + - + ( + col0 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT - + CAST( + - col0 AS SIGNED ) / - ( - + col0 ) + col1 + ( + col2 ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 + 68 AND col2
----

skipif mysql # not compatible
query I rowsort label-6385
SELECT - + CAST ( + - col0 AS INTEGER ) / - ( - + col0 ) + col1 + ( + col2 ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 + 68 AND col2
----

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

query II rowsort
SELECT - col1 * + - col2 + + + 20 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
1364
-96
315
-59
3216
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( + col2, col0 * 50, - 50 * col2 * 60 - 35 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT col2 DIV - - 49 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6389
SELECT col2 / - - 49 AS col2 FROM tab0
----
0
0
2

query II rowsort
SELECT - col1 AS col1, + col0 * - col0 + - - ( + col0 ) AS col2 FROM tab1
----
-14
-2550
-47
-8190
-5
-7140

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

query II rowsort
SELECT DISTINCT col1, - 37 AS col1 FROM tab1 WHERE + - 58 IS NULL
----

query II rowsort
SELECT - col1 AS col2, 14 + - - 81 AS col0 FROM tab0
----
-1
95
-21
95
-81
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT MAX( DISTINCT - col0 ) * COUNT( * ) + COUNT( * ) + + + 43 + + + 74 AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-6395
SELECT MAX ( DISTINCT - col0 ) * COUNT ( * ) + COUNT ( * ) + + + 43 + + + 74 AS col0 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT + 70 + + COUNT( * ) + 82 FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT + 70 + + COUNT ( * ) + 82 FROM tab1 AS cor0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 > + + col1
----
2

skipif mysql # not compatible
query I rowsort label-6397
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 > + + col1
----
2

query I rowsort
SELECT ALL col1 + + - 44 AS col0 FROM tab2 cor0
----
23
33
7

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

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

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

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

query II rowsort
SELECT 40 * 30, - col2 AS col1 FROM tab1 AS cor0
----
1200
-59
1200
-68
1200
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT COUNT( * ) * 91 AS col1 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-6402
SELECT COUNT ( * ) * 91 AS col1 FROM tab0
----
273

query II rowsort
SELECT + 17 AS col0, + 89 + 10 AS col0 FROM tab2
----
17
99
17
99
17
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 49 NOT IN ( col1 * 86, 59, 40 + - col1 )
----

query I rowsort
SELECT ALL 71 - col0 * - 13 FROM tab2
----
1046
669
903

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6406
SELECT - CAST( NULL AS SIGNED ) - - 23 * + col2 AS col2, 18 + - + ( + - col0 ) - col1 FROM tab1
----
NULL
55
NULL
62
NULL
98

skipif mysql # not compatible
query II rowsort label-6406
SELECT - CAST ( NULL AS INTEGER ) - - 23 * + col2 AS col2, 18 + - + ( + - col0 ) - col1 FROM tab1
----
NULL
55
NULL
62
NULL
98

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT ALL col0 - 11 DIV + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL col0 - 11 / + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 76 AND 75
----

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

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

query I rowsort
SELECT ALL + 34 * col1 FROM tab2
----
1734
2278
2618

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6413
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) < + col1
----

skipif mysql # not compatible
query III rowsort label-6413
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) < + col1
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT - COUNT( ALL - + col1 ) DIV - 20 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT - COUNT ( ALL - + col1 ) / - 20 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6417
SELECT ALL - 17 DIV + col2 * + 81 DIV - 25 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - 17 / + col2 * + 81 / - 25 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6418
SELECT ALL + col0 DIV + + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
0
1
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6419
SELECT COUNT( DISTINCT - col0 ) DIV + - SUM( + + col1 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6419
SELECT COUNT ( DISTINCT - col0 ) / + - SUM ( + + col1 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6420
SELECT DISTINCT - 88 DIV - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - 88 / - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT + - 84 * - col1 - - - col2 DIV 15 FROM tab0 AS cor0
----
1764
6801
78

skipif mysql # not compatible
query I rowsort label-6422
SELECT + - 84 * - col1 - - - col2 / 15 FROM tab0 AS cor0
----
1764
6801
78

query I rowsort
SELECT DISTINCT - + col1 * - - 77 FROM tab0 AS cor0
----
-1617
-6237
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT - SUM( DISTINCT 58 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-6424
SELECT - SUM ( DISTINCT 58 ) FROM tab1
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT COUNT( * ) * 83 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT COUNT ( * ) * 83 FROM tab0
----
249

query I rowsort
SELECT DISTINCT + 83 FROM tab2 WHERE NULL IS NULL
----
83

query I rowsort
SELECT ALL + col2 + - 5 FROM tab1
----
54
63
91

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

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

query I rowsort
SELECT DISTINCT - 69 FROM tab2, tab1 cor0
----
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + 95 + - - 1 * - 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

query I rowsort
SELECT 58 - - col0 + - col0 AS col2 FROM tab0 AS cor0
----
58
58
58

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

query I rowsort
SELECT + col1 + + 25 AS col2 FROM tab0 AS cor0
----
106
26
46

query I rowsort
SELECT ALL col0 + - - col2 + + col1 * + col2 FROM tab1 cor0
----
1491
3355
439

query I rowsort
SELECT 75 + col1 AS col2 FROM tab1 cor0
----
122
80
89

query I rowsort
SELECT col1 + col0 - - col0 AS col1 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - SUM( DISTINCT 41 ) + - 9 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6441
SELECT - SUM ( DISTINCT 41 ) + - 9 FROM tab0 AS cor0
----
-50

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

query I rowsort
SELECT + 95 + + col0 + - col2 AS col0 FROM tab2 AS cor0
----
112
118
119

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

skipif mysql # not compatible
query I rowsort label-6444
SELECT - - ( 74 ) AS col1 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
74
74
74

query II rowsort
SELECT ALL col0 * + 26, col1 FROM tab0
----
2262
21
2522
1
390
81

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - col1 + + 50 < - col1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 29 * - - 48 FROM tab1 AS cor0
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT COUNT( DISTINCT col1 ) * 83 FROM tab0 cor0
----
249

skipif mysql # not compatible
query I rowsort label-6448
SELECT COUNT ( DISTINCT col1 ) * 83 FROM tab0 cor0
----
249

query II rowsort
SELECT 51 AS col1, 91 * - - 75 AS col0 FROM tab2 AS cor0
----
51
6825
51
6825
51
6825

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT + col0 DIV ( + col2 ) FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6452
SELECT + col0 / ( + col2 ) FROM tab0
----
0
0
8

query I rowsort
SELECT ALL - col2 * + - ( col0 ) * - col2 * - - 60 + col0 - + col2 + - 97 FROM tab0
----
-1988229
-522020
-57041919

query I rowsort
SELECT ALL - ( - col1 ) * - col1 + + + 76 FROM tab2
----
-2525
-4413
-5853

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 92
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / + col1 IN ( + - col2 * + 25 * + - 75 * 88, - col1, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 28 ) + 94 + + col2 + - + 80 * 27 FROM tab1
----
-1942
-1970
-1979

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT COUNT( * ) + - 4 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6459
SELECT COUNT ( * ) + - 4 AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT DISTINCT - SUM( ALL + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE + 71 <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE + 71 <> col1
----
NULL

query I rowsort
SELECT ALL 51 AS col2 FROM tab0 WHERE NULL IS NULL
----
51
51
51

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE ( + ( col0 ) ) NOT BETWEEN - col2 AND - + col1
----
-10
-47
-99

query I rowsort
SELECT + 97 * - 21 FROM tab2 AS cor0
----
-2037
-2037
-2037

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6466
SELECT ALL - + MIN( - col0 ) + + + 98 + ( SUM( ALL + + 31 ) ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - + MIN ( - col0 ) + + + 98 + ( SUM ( ALL + + 31 ) ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL 86 + + + COUNT( * ) + - ( 41 ) FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL 86 + + + COUNT ( * ) + - ( 41 ) FROM tab0 cor0
----
48

query I rowsort
SELECT ALL - col0 + + 76 AS col1 FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL 92 - + COUNT( * ) AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL 92 - + COUNT ( * ) AS col1 FROM tab2
----
89

query I rowsort
SELECT + col1 - + ( col1 ) + - + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT COUNT( DISTINCT + + col1 ) - - 63 AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT COUNT ( DISTINCT + + col1 ) - - 63 AS col2 FROM tab1
----
66

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

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6474
SELECT DISTINCT - COUNT( * ) AS col0, CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-6474
SELECT DISTINCT - COUNT ( * ) AS col0, CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-3
3

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

skipif mysql # not compatible
query I rowsort label-6475
SELECT ( - - ( MAX ( col1 ) ) ) AS col2 FROM tab2
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT + + 43 * SUM( ( + + col1 ) ) FROM tab0 AS cor0
----
4429

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT + + 43 * SUM ( ( + + col1 ) ) FROM tab0 AS cor0
----
4429

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT 41 * - COUNT( * ), + COUNT( * ) * 0 AS col2 FROM tab0
----
-123
0

skipif mysql # not compatible
query II rowsort label-6478
SELECT 41 * - COUNT ( * ), + COUNT ( * ) * 0 AS col2 FROM tab0
----
-123
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6480
SELECT MAX ( ALL - 55 ) AS col1 FROM tab2
----
-55

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

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

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

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

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

query I rowsort
SELECT ALL 83 * - col2 FROM tab1
----
-4897
-5644
-7968

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + 69 BETWEEN - col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT DISTINCT 28 DIV - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT 28 / - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6488
SELECT - col2 + ( + CAST( NULL AS SIGNED ) ) AS col1, col1 * - col1 AS col0 FROM tab2
----
NULL
-2601
NULL
-4489
NULL
-5929

skipif mysql # not compatible
query II rowsort label-6488
SELECT - col2 + ( + CAST ( NULL AS INTEGER ) ) AS col1, col1 * - col1 AS col0 FROM tab2
----
NULL
-2601
NULL
-4489
NULL
-5929

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

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

query I rowsort
SELECT ALL + col2 + col2 + - + 19 FROM tab1
----
117
173
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - 78 col2 FROM tab0 WHERE - - 23 IS NOT NULL
----
-3276
-3276
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT 84 * - + COUNT( * ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT 84 * - + COUNT ( * ) FROM tab1
----
-252

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT - MIN( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6495
SELECT - MIN ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col1 + + 14 NOT BETWEEN NULL AND + + ( + 27 )
----
-14
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT SUM( 90 ) AS col2 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-6497
SELECT SUM ( 90 ) AS col2 FROM tab0 AS cor0
----
270

query I rowsort
SELECT + 19 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT COUNT( * ) + - + MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6499
SELECT COUNT ( * ) + - + MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT + COUNT( * ) + - + 63 AS col1 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6500
SELECT + COUNT ( * ) + - + 63 AS col1 FROM tab1 cor0
----
-60

query I rowsort
SELECT + col2 + - + col2 + + col0 + + col1 FROM tab0 AS cor0
----
108
96
98

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6505
SELECT - ( - 97 ) + + CAST( - col2 AS SIGNED ) + col1 FROM tab2 cor0
----
106
125
134

skipif mysql # not compatible
query I rowsort label-6505
SELECT - ( - 97 ) + + CAST ( - col2 AS INTEGER ) + col1 FROM tab2 cor0
----
106
125
134

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

query II rowsort
SELECT col1 - - col0 - - - col0 AS col1, col0 + + col1 * + + col2 / 90 / - 96 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT DISTINCT + SUM( 24 ) DIV - + COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + SUM ( 24 ) / - + COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 WHERE NOT 88 IS NULL
----
-46
-64
-75

query I rowsort
SELECT col0 * 82 AS col1 FROM tab2
----
3772
5248
6150

query I rowsort
SELECT - - col2 AS col1 FROM tab2 WHERE NOT 66 * + + 83 * - - 65 NOT IN ( - 9 * + 60 * col1 * + + ( + col0 ) / - col0 + + + 69 / - col1, 78, 44 )
----

query I rowsort
SELECT - col1 * + col1 * - col2 + - ( - 61 ) FROM tab1 AS cor0
----
150273
1536
18877

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

query I rowsort
SELECT ALL - ( - col0 ) * 4 * + col2 FROM tab2 AS cor0
----
10240
17400
4232

onlyif mysql # aggregate syntax: 
query II rowsort label-6515
SELECT ALL - COUNT( * ) col1, 94 AS col2 FROM tab0
----
-3
94

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE NOT - col0 <> + + col2
----
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NOT - col0 <> + + col2
----
0

query I rowsort
SELECT + col2 + + 77 * col0 * 96 AS col1 FROM tab0 AS cor0
----
110927
643114
717123

query II rowsort
SELECT + col1 * col0 + + col2 * + + 13, col2 FROM tab1 AS cor0
----
1192
59
1962
96
5161
68

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

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

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

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

query I rowsort
SELECT ALL col0 + + + col1 AS col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6525
SELECT ALL COUNT( * ), + CAST( NULL AS SIGNED ) + 90 AS col2 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6525
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) + 90 AS col2 FROM tab1 AS cor0
----
3
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT DISTINCT 16 * + SUM( ALL 17 ) col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6527
SELECT DISTINCT 16 * + SUM ( ALL 17 ) col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query II rowsort
SELECT - 15 AS col0, 31 FROM tab2 AS cor0
----
-15
31
-15
31
-15
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
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-6529
SELECT - + ( - + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6532
SELECT ALL CAST( - 50 AS SIGNED ) + COUNT( + ( col1 ) ) * - 62 AS col1 FROM tab1 cor0
----
-236

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL CAST ( - 50 AS INTEGER ) + COUNT ( + ( col1 ) ) * - 62 AS col1 FROM tab1 cor0
----
-236

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

skipif mysql # not compatible
query II rowsort label-6533
SELECT DISTINCT + 32 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
32
3

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

query I rowsort
SELECT ALL + + col0 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
10575
75690
931491

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL + SUM( - + 13 ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + SUM ( - + 13 ) AS col1 FROM tab1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT - col1 DIV col1 * + 24 * + + col0 AS col1 FROM tab0
----
-2088
-2328
-360

skipif mysql # not compatible
query I rowsort label-6539
SELECT - col1 / col1 * + 24 * + + col0 AS col1 FROM tab0
----
-2088
-2328
-360

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

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

query I rowsort
SELECT ALL 93 + + + col2 FROM tab1
----
152
161
189

query I rowsort
SELECT col0 * - - col1 + - col1 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT COUNT( * ) + + 49 AS col1 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT COUNT ( * ) + + 49 AS col1 FROM tab2 cor0
----
52

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

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

query I rowsort
SELECT ALL 81 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query II rowsort
SELECT 20, + col2 * + col2 AS col0 FROM tab0
----
20
100
20
2209
20
9801

query I rowsort
SELECT 42 * + ( - 25 ) FROM tab2
----
-1050
-1050
-1050

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

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

query I rowsort
SELECT ALL col2 + - + col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 - + + col0 + + col0 - + + col1 * + + col1 col1 FROM tab2 AS cor0
----
-3774
-8375
-9009

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( ( 29 ) )
----

query I rowsort
SELECT ALL - 67 + - col2 FROM tab0 AS cor0
----
-114
-166
-77

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6555
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - + col1 AS SIGNED ) BETWEEN - + 61 AND + col1
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-6555
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - + col1 AS INTEGER ) BETWEEN - + 61 AND + col1
----
64
77
40
75
67
58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT DISTINCT + COUNT( * ), + 2 col2 FROM tab1 cor0
----
3
2

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

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

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

query I rowsort
SELECT ALL 85 * - col0 * - - 3 FROM tab1
----
-13005
-21675
-23205

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 84 * + col1 AS col2 FROM tab0
----
1764
6804
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - 70 * - col2 AS col2 FROM tab2
----
1610
2800
4060

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

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

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

query I rowsort
SELECT ALL - - 22 + - 78 FROM tab1 AS cor0
----
-56
-56
-56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT DISTINCT - + col1 DIV col0 + + col1 + + col0 + - col0 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT - + col1 / col0 + + col1 + + col0 + - col0 AS col1 FROM tab1 AS cor0
----
14
47
5

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

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

query I rowsort
SELECT + 19 + + + 72 AS col2 FROM tab1 AS cor0
----
91
91
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col2 * + - 33 * + col1 IS NULL
----

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

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

query I rowsort
SELECT + col1 + + - 54 FROM tab0 AS cor0
----
-33
-53
27

query I rowsort
SELECT DISTINCT - - 97 + - col0 AS col0 FROM tab1 AS cor0
----
12
46
6

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

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

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

query I rowsort
SELECT - 21 * - 32 + + 6 AS col0 FROM tab2
----
678
678
678

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 81 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - 42 - + col0 col0 FROM tab1
----
-14
-93
-47
-133
-5
-127

query I rowsort
SELECT 24 + - ( + - col1 ) FROM tab2
----
101
75
91

query I rowsort
SELECT DISTINCT + + col0 + - 15 AS col2 FROM tab2 AS cor0
----
31
49
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT SUM( DISTINCT - 51 ) + COUNT( * ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT SUM ( DISTINCT - 51 ) + COUNT ( * ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + col1 + - 4 + - col0 AS col0 FROM tab0 AS cor0
----
-100
-70
62

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6588
SELECT ALL col0 col0, 22 * - ( + - ( - CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6588
SELECT ALL col0 col0, 22 * - ( + - ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + 78 * col1 - - col1 + - - 1 AS col0 FROM tab1
----
1107
3714
396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL + ( 45 ) - - col1 - + 0 * CAST( + 67 AS SIGNED ) AS col0 FROM tab0
----
126
46
66

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + ( 45 ) - - col1 - + 0 * CAST ( + 67 AS INTEGER ) AS col0 FROM tab0
----
126
46
66

query II rowsort
SELECT col0 * + col1 AS col0, + col1 FROM tab0
----
1215
81
1827
21
97
1

query I rowsort
SELECT ALL - + col2 * - col0 - - + ( + - col2 ) * - + 16 FROM tab0 AS cor0
----
1030
11187
1457

query I rowsort
SELECT DISTINCT - 50 * - + col1 FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT ALL 38 * col1 - col0 FROM tab2 AS cor0
----
1892
2471
2862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * + col0 col0 FROM tab1 AS cor0
----
4947
8245
8827

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT ALL - SUM( - CAST( + col0 AS SIGNED ) ) FROM tab2
----
185

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

query I rowsort
SELECT ALL col0 * 67 FROM tab1
----
3417
5695
6097

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

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

query I rowsort
SELECT ALL + col1 + col1 AS col1 FROM tab0 WHERE - col2 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - - - col0 <> - 70
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6602
SELECT DISTINCT + 80 DIV + SUM( ALL + 99 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6602
SELECT DISTINCT + 80 / + SUM ( ALL + 99 ) col1 FROM tab1
----
0

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

query I rowsort
SELECT - - 6 * - col1 AS col1 FROM tab1 AS cor0
----
-282
-30
-84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 74 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 74 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - ( col1 ) * - col2 ) = ( NULL )
----

query I rowsort
SELECT 90 * + ( col0 ) FROM tab2
----
4140
5760
6750

query I rowsort
SELECT DISTINCT + col2 + - 60 * + col0 AS col1 FROM tab2
----
-2737
-3800
-4442

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + COUNT( * ) * 31 AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-6612
SELECT + COUNT ( * ) * 31 AS col2 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + MIN( - col1 ) * - COUNT( DISTINCT 14 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6613
SELECT + MIN ( - col1 ) * - COUNT ( DISTINCT 14 ) FROM tab1
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6614
SELECT + CAST( NULL AS DECIMAL ) * - 10 col1 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 34 * ( 63 ) FROM tab1
----
-2142
-2142
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT SUM( col1 ) FROM tab2 WHERE col1 * + col0 < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT SUM ( col1 ) FROM tab2 WHERE col1 * + col0 < col2
----
NULL

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

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

query I rowsort
SELECT 57 + 88 AS col2 FROM tab2
----
145
145
145

query I rowsort
SELECT DISTINCT col0 * - col2 AS col1 FROM tab2 WHERE col2 / 9 IS NULL
----

query I rowsort
SELECT 57 + + 7 AS col1 FROM tab2
----
64
64
64

query I rowsort
SELECT ALL + 76 * 45 AS col0 FROM tab1
----
3420
3420
3420

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

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

query I rowsort
SELECT - 72 AS col1 FROM tab1 WHERE NOT + 24 * + 65 + 79 IS NOT NULL
----

query I rowsort
SELECT + col0 + - ( 52 + 26 ) FROM tab2
----
-14
-3
-32

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

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

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT NULL >= - ( 41 ) + col2
----

query I rowsort
SELECT DISTINCT - col2 * 29 AS col0 FROM tab2
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT COUNT( 27 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6629
SELECT DISTINCT COUNT ( 27 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT - SUM( ( - col1 ) ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6630
SELECT DISTINCT - SUM ( ( - col1 ) ) col2 FROM tab1
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT 35 + MAX( DISTINCT col2 ) AS col2 FROM tab1
----
131

skipif mysql # not compatible
query I rowsort label-6632
SELECT 35 + MAX ( DISTINCT col2 ) AS col2 FROM tab1
----
131

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6633
SELECT ALL * FROM tab2 WHERE 30 * + 65 + col2 NOT BETWEEN col0 AND ( CAST( 75 AS DECIMAL ) + 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6633
SELECT ALL * FROM tab2 WHERE 30 * + 65 + col2 NOT BETWEEN col0 AND ( CAST ( 75 AS REAL ) + 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6634
SELECT COUNT ( * ) / - 79 + - COUNT ( * ) AS col1 FROM tab2
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + + col0 col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT ALL 35 + - 68 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT - col2 + 94 FROM tab0
----
-5
47
84

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

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

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

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

query I rowsort
SELECT ALL col0 + - ( 43 ) FROM tab0 AS cor0
----
-28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT DISTINCT + 22 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + - col1 * + col2 <= col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + 22 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + - col1 * + col2 <= col1 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 45 - + col1 FROM tab1 AS cor0
----
-2
31
40

query I rowsort
SELECT DISTINCT col2 + - 17 AS col0 FROM tab2 AS cor0
----
23
41
6

query I rowsort
SELECT DISTINCT - 52 - - col0 AS col1 FROM tab1 AS cor0
----
-1
33
39

query I rowsort
SELECT DISTINCT + col2 * - col1 - col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6647
SELECT DISTINCT + CAST( ( - col2 ) AS SIGNED ) DIV + 71 + - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + CAST ( ( - col2 ) AS INTEGER ) / + 71 + - col0 AS col0 FROM tab0 AS cor0
----
-15
-87
-98

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 WHERE NOT NULL >= ( NULL )
----

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

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

query I rowsort
SELECT ALL - 72 * col1 FROM tab1 AS cor0
----
-1008
-3384
-360

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

query I rowsort
SELECT ALL + - col0 * + 70 FROM tab1 AS cor0
----
-3570
-5950
-6370

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

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

query I rowsort
SELECT DISTINCT 7 * - col2 FROM tab0 cor0
----
-329
-693
-70

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

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

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

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

query I rowsort
SELECT 77 * - + col0 AS col1 FROM tab2
----
-3542
-4928
-5775

query I rowsort
SELECT col0 * 82 FROM tab2 WHERE NOT NULL IS NULL OR NOT col0 * 93 IS NULL
----
3772
5248
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT SUM( + 41 ) col1 FROM tab1
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6660
SELECT SUM ( + 41 ) col1 FROM tab1
----
123

query I rowsort
SELECT ALL + 46 * - col2 FROM tab2
----
-1058
-1840
-2668

query I rowsort
SELECT DISTINCT col1 * + 20 AS col2 FROM tab2
----
1020
1340
1540

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

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

query I rowsort
SELECT DISTINCT + 52 * - col2 AS col1 FROM tab1
----
-3068
-3536
-4992

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) + - col0 * col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) + - col0 * col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * + - col2 col0 FROM tab1 AS cor0
----
-1770
-2040
-2880

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

query I rowsort
SELECT + 44 * + - col1 * + + 45 * ( 79 ) AS col1 FROM tab2
----
-10480140
-12044340
-7977420

query I rowsort
SELECT DISTINCT + 56 * - ( col0 ) AS col1 FROM tab0
----
-4872
-5432
-840

query I rowsort
SELECT ALL col2 + col0 - + - 41 * 78 FROM tab2
----
3267
3302
3331

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab2 WHERE 1 NOT BETWEEN col0 * 55 AND - 31
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT ALL - ( + + col2 ) DIV - col2 + ( col1 ) + + col1 AS col1 FROM tab2
----
103
135
155

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - ( + + col2 ) / - col2 + ( col1 ) + + col1 AS col1 FROM tab2
----
103
135
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - 48 * - COUNT( * ) FROM tab2 cor0 WHERE 56 + - 18 + col1 / col2 IS NOT NULL
----
144

skipif mysql # not compatible
query I rowsort label-6677
SELECT - 48 * - COUNT ( * ) FROM tab2 cor0 WHERE 56 + - 18 + col1 / col2 IS NOT NULL
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL + - MIN( col1 ) + - 49 FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + - MIN ( col1 ) + - 49 FROM tab0 cor0
----
-50

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 39 * ( 57 ) * col0 NOT IN ( - col0 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT col2 * col0 + + col0 DIV - col0 FROM tab1 AS cor0
----
4895
5014
6187

skipif mysql # not compatible
query I rowsort label-6680
SELECT col2 * col0 + + col0 / - col0 FROM tab1 AS cor0
----
4895
5014
6187

query I rowsort
SELECT ALL col1 * ( + col1 / + 22 ) FROM tab2 AS cor0 WHERE ( - 7 ) IN ( ( + 20 ) - 16 )
----

query I rowsort
SELECT + + 40 + + 77 FROM tab1 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT DISTINCT - 64 DIV - 94 + + - COUNT( col1 ) + 52 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - 64 / - 94 + + - COUNT ( col1 ) + 52 FROM tab2 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 + + - col2 col2 FROM tab1 AS cor0
----
-111
-120
-148

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + col0 * - col0 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT ALL - + col1 + - - CAST( - 52 AS SIGNED ) FROM tab1 AS cor0
----
-57
-66
-99

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - + col1 + - - CAST ( - 52 AS INTEGER ) FROM tab1 AS cor0
----
-57
-66
-99

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

query I rowsort
SELECT - + col2 + + - 7 + + col1 FROM tab2 AS cor0
----
2
21
30

query I rowsort
SELECT - 64 + - col1 FROM tab1 AS cor0
----
-111
-69
-78

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

query I rowsort
SELECT + 76 + - ( + - col2 ) * - + 73 FROM tab2
----
-1603
-2844
-4158

query I rowsort
SELECT ( + - 56 ) + + col1 AS col1 FROM tab1
----
-42
-51
-9

query I rowsort
SELECT ALL + 19 - col2 AS col1 FROM tab0
----
-28
-80
9

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = - 77
----

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

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

query I rowsort
SELECT ALL + col0 / - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT - 51 / col0 FROM tab2
----
-1
0

query I rowsort
SELECT ALL - col0 * - 13 + - col2 FROM tab1 AS cor0
----
1046
1115
567

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

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

query I rowsort
SELECT - col1 * + + col1 - col1 FROM tab1 AS cor0
----
-210
-2256
-30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT ALL + col0 + CAST( - - 22 AS SIGNED ) + 40 * col2 FROM tab0 AS cor0
----
1917
4079
509

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL + col0 + CAST ( - - 22 AS INTEGER ) + 40 * col2 FROM tab0 AS cor0
----
1917
4079
509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6705
SELECT - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) * + col1 + + 62 * col0 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-6705
SELECT - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) * + col1 + + 62 * col0 + - col1 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ( + + ( - COUNT( * ) ) ) * + ( + ( - MAX( - 98 ) ) ) AS col1 FROM tab0 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6710
SELECT ( + + ( - COUNT ( * ) ) ) * + ( + ( - MAX ( - 98 ) ) ) AS col1 FROM tab0 cor0
----
-294

query I rowsort
SELECT ALL - 19 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 64 BETWEEN + 42 / 74 * - 36 AND NULL
----
40
49
77

query I rowsort
SELECT ALL - 91 * + 50 + col2 FROM tab1 cor0 WHERE NOT - col0 = + + col2
----
-4454
-4482
-4491

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + 51 * 22 + + - MIN( ALL - col0 ) FROM tab0 AS cor0
----
1219

skipif mysql # not compatible
query I rowsort label-6713
SELECT + 51 * 22 + + - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
1219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) / + col2 - + + col2 IN ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) / + col2 - + + col2 IN ( 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT + SUM( + col0 ) / - 64 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT + SUM ( + col0 ) / - 64 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - col0
----
NULL

query I rowsort
SELECT DISTINCT 16 * - col1 AS col1 FROM tab1
----
-224
-752
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6717
SELECT + COUNT( * ) AS col2, 10 AS col0 FROM tab2
----
3
10

skipif mysql # not compatible
query II rowsort label-6717
SELECT + COUNT ( * ) AS col2, 10 AS col0 FROM tab2
----
3
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + COUNT( - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6719
SELECT + COUNT ( - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

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

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

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

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

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

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

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT + 78 NOT IN ( + + col2 * - col1 + 79 )
----

query II rowsort
SELECT col1, + ( - col2 ) FROM tab2
----
51
-23
67
-58
77
-40

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

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

query I rowsort
SELECT ALL + - col1 + ( + col2 ) FROM tab1 cor0
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col0 ) col1 FROM tab1 WHERE + 46 IN ( 58, 82, - 33 + 73 )
----

query I rowsort
SELECT 61 + + 30 AS col1 FROM tab1
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT SUM( ALL - 73 ) FROM tab2 WHERE - + col2 / - col2 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT SUM ( ALL - 73 ) FROM tab2 WHERE - + col2 / - col2 * col1 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL - COUNT( * ) + - MAX( ALL - 75 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - COUNT ( * ) + - MAX ( ALL - 75 ) FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6732
SELECT DISTINCT + - 62 - - + 74, + CAST( + 46 AS SIGNED ) * col2 + 16 * col2 - + 66 AS col0 FROM tab2 AS cor0
----
12
1360
12
2414
12
3530

skipif mysql # not compatible
query II rowsort label-6732
SELECT DISTINCT + - 62 - - + 74, + CAST ( + 46 AS INTEGER ) * col2 + 16 * col2 - + 66 AS col0 FROM tab2 AS cor0
----
12
1360
12
2414
12
3530

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL - SUM( + 75 ) + - 92 AS col0 FROM tab0 AS cor0
----
-317

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - SUM ( + 75 ) + - 92 AS col0 FROM tab0 AS cor0
----
-317

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

query I rowsort
SELECT - 33 - col2 + + + col0 + - col2 AS col2 FROM tab2 cor0
----
-33
-49
-74

query I rowsort
SELECT DISTINCT 46 - + col2 AS col2 FROM tab1
----
-13
-22
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ( COUNT( * ) ) FROM tab0 WHERE NOT - col0 + - ( + + col1 ) - + 94 IS NULL OR ( ( NULL ) > NULL )
----
3

skipif mysql # not compatible
query I rowsort label-6737
SELECT ( COUNT ( * ) ) FROM tab0 WHERE NOT - col0 + - ( + + col1 ) - + 94 IS NULL OR ( ( NULL ) > NULL )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT 21 DIV col2 AS col2 FROM tab1 WHERE + col0 + - - col1 NOT BETWEEN - col2 * + col1 + - - 13 AND - 16 DIV col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6738
SELECT 21 / col2 AS col2 FROM tab1 WHERE + col0 + - - col1 NOT BETWEEN - col2 * + col1 + - - 13 AND - 16 / col2
----
0
0
0

query I rowsort
SELECT ALL - 17 FROM tab0 WHERE col1 BETWEEN 26 AND - ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - ( - 60 ), 65 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT col1 / + 93 AS col0 FROM tab2
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col1 + col0
----

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

query I rowsort
SELECT ALL 77 AS col2 FROM tab1 WHERE NOT col2 IN ( + 47 + - col0, 12, 20 * - - col0 * + col0 )
----
77
77
77

query I rowsort
SELECT - col2 + - 87 AS col0 FROM tab0
----
-134
-186
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT ALL - 57 DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL - 57 / col0 FROM tab1
----
-1
0
0

query II rowsort
SELECT DISTINCT + - 25, - col0 AS col0 FROM tab2 AS cor0 WHERE col1 + - - col1 * ( col2 ) IS NOT NULL
----
-25
-46
-25
-64
-25
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - + col1 * - 8 * - 93 >= ( NULL )
----

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

query I rowsort
SELECT DISTINCT col2 * - - col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-6753
SELECT col0 DIV 22 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-6753
SELECT col0 / 22 FROM tab1 AS cor0
----
2
3
4

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

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

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

query II rowsort
SELECT col1, - col1 FROM tab0 WHERE NOT - col1 IS NULL
----
1
-1
21
-21
81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 86 * - col1 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = col0 * + col0
----

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

query I rowsort
SELECT - + ( - 82 ) * + - col1 FROM tab1 AS cor0
----
-1148
-3854
-410

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 >= + + 53
----
15
81
47

query I rowsort
SELECT + col2 * - 30 * 77 FROM tab0 AS cor0
----
-108570
-228690
-23100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT + COUNT( * ) * - 61 AS col0 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-6763
SELECT + COUNT ( * ) * - 61 AS col0 FROM tab2
----
-183

query II rowsort
SELECT ALL + 95, + col1 AS col2 FROM tab2
----
95
51
95
67
95
77

query I rowsort
SELECT - col0 + - 65 FROM tab1
----
-116
-150
-156

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

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL - ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col0 * - 29 + - 19 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT COUNT( * ) + + 99 col1 FROM tab2
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6768
SELECT COUNT ( * ) + + 99 col1 FROM tab2
----
102

query I rowsort
SELECT - col0 * col0 * col2 * - col2 FROM tab2 AS cor0
----
1119364
18922500
6553600

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6771
SELECT 34, col0 AS col2, col0 * - CAST( NULL AS SIGNED ) / ( + col0 ) * col0 * - 57 + + col2 - 49 + ( + 93 ) + + col0 col0 FROM tab1
----
9 values hashing to 32b01e6e6f4ada40903487837cb6fe6e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6771
SELECT 34, col0 AS col2, col0 * - CAST ( NULL AS INTEGER ) / ( + col0 ) * col0 * - 57 + + col2 - 49 + ( + 93 ) + + col0 col0 FROM tab1
----
9 values hashing to 32b01e6e6f4ada40903487837cb6fe6e

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

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

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

query I rowsort
SELECT - col1 - - 58 FROM tab2
----
-19
-9
7

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

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT + - COUNT ( * ) / + SUM ( DISTINCT col0 ) + + - 7 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL col1 + + 77 FROM tab2 AS cor0
----
128
144
154

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

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

query I rowsort
SELECT DISTINCT 12 + + + col1 + col2 FROM tab1 AS cor0
----
122
127
76

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

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

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

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

query I rowsort
SELECT ALL + ( - - 62 ) + col1 + + col1 FROM tab0 cor0
----
104
224
64

query II rowsort
SELECT ALL col2 AS col1, 41 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
59
146
68
1859
96
478

query I rowsort
SELECT ALL - - col2 + 93 FROM tab2 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - 22 / - 50 * + - 74
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL COUNT( ALL col0 ) - + 90 col1 FROM tab1
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6788
SELECT ALL COUNT ( ALL col0 ) - + 90 col1 FROM tab1
----
-87

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

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

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

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

query I rowsort
SELECT ALL - 12 * - - 16 FROM tab2
----
-192
-192
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 * + col0 col2 FROM tab2 AS cor0
----
-1564
-2176
-2550

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6795
SELECT DISTINCT 31 DIV CAST( 44 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT 31 / CAST ( 44 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 6 + + col1 FROM tab1 cor0
----
-1
41
8

query I rowsort
SELECT - - col1 * - - col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL - ( - + MIN( DISTINCT - 53 ) ) col2 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6798
SELECT ALL - ( - + MIN ( DISTINCT - 53 ) ) col2 FROM tab0 AS cor0
----
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - col0 + + 43 IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 92 * 90 FROM tab1 AS cor0
----
-8280
-8280
-8280

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 93 - ( + 98 ) + - - 62 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT + CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6804
SELECT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT + col0 + col0 AS col0 FROM tab0 WHERE + + col2 > + col0
----
194
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT - 77 - - - MAX( DISTINCT 77 ), - 67 AS col0 FROM tab0 AS cor0 WHERE 48 >= - col2 * + col1
----
-154
-67

skipif mysql # not compatible
query II rowsort label-6806
SELECT - 77 - - - MAX ( DISTINCT 77 ), - 67 AS col0 FROM tab0 AS cor0 WHERE 48 >= - col2 * + col1
----
-154
-67

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col0 FROM tab0
----
6
6
6

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

skipif mysql # not compatible
query I rowsort label-6810
SELECT COUNT ( * ) * 75 FROM tab2
----
225

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6812
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + col2 <= - col1 + + + 65
----

skipif mysql # not compatible
query III rowsort label-6812
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + col2 <= - col1 + + + 65
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6815
SELECT ALL - + 69 + 36 * - 90 AS col2, - ( ( - COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3309
3

skipif mysql # not compatible
query II rowsort label-6815
SELECT ALL - + 69 + 36 * - 90 AS col2, - ( ( - COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3309
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 84 NOT BETWEEN col2 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT 97 - - 92 * 55 FROM tab0 AS cor0
----
5157

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

query I rowsort
SELECT DISTINCT + - 72 * col2 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
1253160
15647616
9289728

query II rowsort
SELECT + col1, 11 + - - 79 FROM tab1
----
14
90
47
90
5
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT ALL MAX( col2 ), - 88 AS col0 FROM tab2
----
58
-88

skipif mysql # not compatible
query II rowsort label-6822
SELECT ALL MAX ( col2 ), - 88 AS col0 FROM tab2
----
58
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * + col0 col0 FROM tab1
----
4131
6885
7371

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT + 20 DIV + 49 * - 84 * + 93 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6826
SELECT + 20 / + 49 * - 84 * + 93 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 2 * + col2 * + col1 * 11 * ( - col0 ) AS col2 FROM tab1
----
-1507968
-551650
-6398392

query I rowsort
SELECT + 80 + + 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 17b10acf07e16d67b01bcec56d331023

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT + ( col2 ) * + 71 + + 35 + 65 * col0 DIV + - col1 FROM tab1 AS cor0
----
3119
4738
6615

skipif mysql # not compatible
query I rowsort label-6830
SELECT + ( col2 ) * + 71 + + 35 + 65 * col0 / + - col1 FROM tab1 AS cor0
----
3119
4738
6615

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT - - ( + - 95 ) DIV + - col2 + + - 78 * - 44 * - col0 AS col0 FROM tab0 AS cor0
----
-298575
-332904
-51478

skipif mysql # not compatible
query I rowsort label-6831
SELECT - - ( + - 95 ) / + - col2 + + - 78 * - 44 * - col0 AS col0 FROM tab0 AS cor0
----
-298575
-332904
-51478

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE - 6 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

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

query I rowsort
SELECT + col0 * 23 * col0 * - 53 + 59 FROM tab1
----
-10094480
-3170560
-8807216

query III rowsort
SELECT ALL * FROM tab2 WHERE - 0 BETWEEN - - 80 AND ( - col0 * + col0 )
----

query I rowsort
SELECT DISTINCT - 73 + col2 AS col2 FROM tab1 WHERE NULL NOT IN ( + 20, - col0 + + - 38, + 51 + - - col2 * 89 / col0, 90 )
----

query I rowsort
SELECT + ( - + 79 ) FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE + col2 > + 81 + - 41
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT + + COUNT( * ) AS col2, 63 * 76 AS col2 FROM tab1 AS cor0 WHERE - 46 IS NOT NULL
----
3
4788

skipif mysql # not compatible
query II rowsort label-6840
SELECT + + COUNT ( * ) AS col2, 63 * 76 AS col2 FROM tab1 AS cor0 WHERE - 46 IS NOT NULL
----
3
4788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT 83 / CAST( + + col2 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL - + col1 * - 25 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= + ( ( ( - col1 ) ) )
----

query I rowsort
SELECT + - 96 FROM tab1 AS cor0 WHERE 82 * - 41 <= + col0
----
-96
-96
-96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col1 col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL - + 51 AS col2 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT + CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6847
SELECT + CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6848
SELECT - + MAX( ALL + col1 ), + 55 AS col0 FROM tab2 AS cor0
----
-77
55

skipif mysql # not compatible
query II rowsort label-6848
SELECT - + MAX ( ALL + col1 ), + 55 AS col0 FROM tab2 AS cor0
----
-77
55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 34 + + col2 > NULL
----

query II rowsort
SELECT - + ( + col1 ) AS col2, col2 AS col0 FROM tab2 WHERE NOT col0 <= - + col1
----
-51
23
-67
58
-77
40

query I rowsort
SELECT + col1 * - 29 AS col2 FROM tab2
----
-1479
-1943
-2233

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT + col0 DIV + 35 AS col2 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-6853
SELECT + col0 / + 35 AS col2 FROM tab0 AS cor0
----
0
2
2

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

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

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

query II rowsort
SELECT ALL - col2, - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-23
-1173
-40
-3080
-58
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col0 FROM tab0 AS cor0 WHERE NOT 8 / - 12 * col1 = NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

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

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

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

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

query I rowsort
SELECT ALL + - 57 * col0 * + + 22 FROM tab0 AS cor0
----
-109098
-121638
-18810

query I rowsort
SELECT col2 * col0 * - - col1 FROM tab2
----
197120
291450
53958

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

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

query II rowsort
SELECT col1 * + col2, - col2 * + 23 AS col0 FROM tab0
----
210
-230
3807
-1081
99
-2277

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

query I rowsort
SELECT DISTINCT 55 + - col2 FROM tab0
----
-44
45
8

query I rowsort
SELECT col0 - + col2 * + 25 AS col0 FROM tab0
----
-1160
-163
-2378

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6873
SELECT COUNT( * ) + + 38 AS col0, - 39 FROM tab1
----
41
-39

skipif mysql # not compatible
query II rowsort label-6873
SELECT COUNT ( * ) + + 38 AS col0, - 39 FROM tab1
----
41
-39

query I rowsort
SELECT - col2 * + - 47 * - - col2 + 73 FROM tab1 AS cor0
----
163680
217401
433225

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT + COUNT( * ) * + - 52 * - + 41 - MIN( - - 50 ) + + 31 AS col0 FROM tab1 AS cor0
----
6377

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT + COUNT ( * ) * + - 52 * - + 41 - MIN ( - - 50 ) + + 31 AS col0 FROM tab1 AS cor0
----
6377

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT + 97 * - + ( + 20 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1937

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT + 97 * - + ( + 20 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1937

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

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL ( + ( COUNT ( ALL - col2 ) ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 68 AND - 54
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT + + ( + 59 ) DIV - 96 * COUNT( ALL col1 ) * + MAX( ALL + col2 ) - - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT + + ( + 59 ) / - 96 * COUNT ( ALL col1 ) * + MAX ( ALL + col2 ) - - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6883
SELECT MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
-58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6885
SELECT DISTINCT - ( 89 ), COUNT( * ) col2 FROM tab0
----
-89
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT MAX( - + 60 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-6886
SELECT MAX ( - + 60 ) FROM tab2
----
-60

query I rowsort
SELECT 94 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
94
94
94

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

skipif mysql # not compatible
query II rowsort label-6888
SELECT COUNT ( DISTINCT + + col1 ) AS col2, ( 2 ) AS col0 FROM tab0
----
3
2

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

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

query I rowsort
SELECT + 90 AS col0 FROM tab0 WHERE NOT - + 53 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 9 IN ( - ( + ( - col1 ) ), + 28 )
----

query I rowsort
SELECT + col0 + - 48 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2
16
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT ALL - - 41 AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
41
3

skipif mysql # not compatible
query II rowsort label-6896
SELECT ALL - - 41 AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
41
3

query II rowsort
SELECT - - col2 AS col1, + 58 + col0 + + 98 - + 34 * + col1 AS col0 FROM tab2 AS cor0 WHERE col2 < NULL
----

query I rowsort
SELECT ( + col2 ) + - ( col0 ) * - col0 * - col2 FROM tab2 AS cor0
----
-163800
-326192
-48645

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

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

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

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT + CAST ( NULL AS REAL ) * + + MIN ( - 64 ) FROM tab1 AS cor0
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 79 / - + col2 FROM tab1
----
-1
-1
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT DISTINCT + col0 * 47 DIV - + 29 FROM tab0
----
-141
-157
-24

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT + col0 * 47 / - + 29 FROM tab0
----
-141
-157
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT - - CAST( 34 AS SIGNED ) * COUNT( * ) + - 33 AS col0 FROM tab2 WHERE + 87 + + + col0 + col2 + - - col1 - - col1 IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-6906
SELECT - - CAST ( 34 AS INTEGER ) * COUNT ( * ) + - 33 AS col0 FROM tab2 WHERE + 87 + + + col0 + col2 + - - col1 - - col1 IS NOT NULL
----
69

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT COUNT( * ) - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL COUNT( * ) - 24 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL COUNT ( * ) - 24 FROM tab2
----
-21

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

query I rowsort
SELECT 38 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - MAX( DISTINCT + + 82 ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-6915
SELECT - MAX ( DISTINCT + + 82 ) AS col0 FROM tab0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 cor0 WHERE - col1 - + col1 NOT IN ( - - ( + 95 ) )
----
23
40
58

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

skipif mysql # not compatible
query I rowsort label-6917
SELECT - col2 / - + col2 AS col2 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT + 72 AS col0 FROM tab2 cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT - COUNT( * ) * + COUNT( * ) + + ( + 35 ) - 28 AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6920
SELECT - COUNT ( * ) * + COUNT ( * ) + + ( + 35 ) - 28 AS col2 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT - 21 * + + 52 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-1092
1
-1092
21
-1092
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6922
SELECT - col0 / + - ( - col0 ) AS col2, + 98 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6922
SELECT - col0 / + - ( - col0 ) AS col2, + 98 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL 89 / COUNT ( * ) * + COUNT ( * ) FROM tab0
----
87

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - - col1 ) >= - - 80
----

query I rowsort
SELECT 80 * + + col2 AS col1 FROM tab2
----
1840
3200
4640

query II rowsort
SELECT ALL - col2, 66 AS col0 FROM tab0
----
-10
66
-47
66
-99
66

query I rowsort
SELECT + col1 * + + col1 * + ( - 80 ) FROM tab2 AS cor0
----
-208080
-359120
-474320

query I rowsort
SELECT ALL + col1 * + 87 * + col0 + + 91 AS col1 FROM tab1 AS cor0
----
37066
372190
62209

query I rowsort
SELECT ALL + 39 * - col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - col1 * + 75 + - col0 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE 95 NOT BETWEEN ( + col2 + CAST( NULL AS SIGNED ) ) AND col2
----
21
81

skipif mysql # not compatible
query I rowsort label-6932
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE 95 NOT BETWEEN ( + col2 + CAST ( NULL AS INTEGER ) ) AND col2
----
21
81

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

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + - 71 - - COUNT ( DISTINCT 47 ) AS col1 FROM tab2 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6934
SELECT DISTINCT + col2 DIV 51 + + + col0 - + col1 + - col2 * + + col1 + col2 - - CAST( + 37 AS SIGNED ), + col0 FROM tab1 cor0
----
-1173
51
-118
85
-3046
91

skipif mysql # not compatible
query II rowsort label-6934
SELECT DISTINCT + col2 / 51 + + + col0 - + col1 + - col2 * + + col1 + col2 - - CAST ( + 37 AS INTEGER ), + col0 FROM tab1 cor0
----
-1173
51
-118
85
-3046
91

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

query I rowsort
SELECT 52 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT + COUNT( * ) * + - AVG ( ALL ( - 17 ) ) AS col1 FROM tab2 cor0 WHERE NULL IN ( ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT + COUNT ( * ) * + - AVG ( ALL ( - 17 ) ) AS col1 FROM tab2 cor0 WHERE NULL IN ( ( - col1 ) )
----
NULL

query I rowsort
SELECT 98 + - + 41 FROM tab2 WHERE NULL IS NULL
----
57
57
57

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

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

query I rowsort
SELECT 71 - + + ( col1 ) * - col2 * col2 + + col0 AS col0 FROM tab2
----
123335
225534
27096

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 36 ) > + - 45
----

query I rowsort
SELECT 20 + + 14 * - - 56 * ( - 97 ) + - + 91 + + 31 AS col1 FROM tab0
----
-76088
-76088
-76088

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <> + + col2 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - ( - 76 ), 6, - 31, - - 1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT + COUNT( * ), + 40 + + + COUNT( DISTINCT + - col2 ) AS col2 FROM tab2
----
3
43

skipif mysql # not compatible
query II rowsort label-6946
SELECT + COUNT ( * ), + 40 + + + COUNT ( DISTINCT + - col2 ) AS col2 FROM tab2
----
3
43

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

query I rowsort
SELECT ALL - col1 * - 88 AS col2 FROM tab2 AS cor0
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT + + MIN( DISTINCT + + col2 ) AS col0, 51 FROM tab1 AS cor0
----
59
51

skipif mysql # not compatible
query II rowsort label-6949
SELECT + + MIN ( DISTINCT + + col2 ) AS col0, 51 FROM tab1 AS cor0
----
59
51

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

skipif mysql # not compatible
query I rowsort label-6950
SELECT + + MIN ( + 84 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL - col0 * 74 - - col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT - - ( + col0 ) DIV + col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6952
SELECT - - ( + col0 ) / + col2 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6953
SELECT + MAX( + col0 ) DIV + COUNT( ALL - col2 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-6953
SELECT + MAX ( + col0 ) / + COUNT ( ALL - col2 ) FROM tab0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6954
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) <= + + 4 * - + 99
----

skipif mysql # not compatible
query III rowsort label-6954
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS REAL ) <= + + 4 * - + 99
----

query I rowsort
SELECT - col1 * + col2 + + - col2 * col0 FROM tab0
----
-1080
-4512
-9702

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE 28 + 99 + + 16 + - - 17 <> + 22
----
14
47
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6958
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + - 24 > - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6958
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + - 24 > - CAST ( - col2 AS INTEGER )
----

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

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

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

query I rowsort
SELECT DISTINCT - ( - 3 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT + SUM( - + ( + 89 ) ) AS col1 FROM tab2, tab1 AS cor0
----
-801

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT + SUM ( - + ( + 89 ) ) AS col1 FROM tab2, tab1 AS cor0
----
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT 98 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6965
SELECT - + 71 DIV 57 + SUM( DISTINCT - 63 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-6965
SELECT - + 71 / 57 + SUM ( DISTINCT - 63 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query I rowsort
SELECT DISTINCT + - 26 * - 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1872

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col0 ) * + ( + col1 ) + - + col2 col1 FROM tab2 cor0
----
2323
4888
4967

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT + COUNT( * ) * - 31 col2 FROM tab1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6971
SELECT + COUNT ( * ) * - 31 col2 FROM tab1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6972
SELECT ALL 65 * MAX( + col0 ) * MIN( ALL + + col2 ) - + MIN( ALL col0 ) DIV + COUNT( * ) col2 FROM tab0
----
63045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6972
SELECT ALL 65 * MAX ( + col0 ) * MIN ( ALL + + col2 ) - + MIN ( ALL col0 ) / + COUNT ( * ) col2 FROM tab0
----
63045

query I rowsort
SELECT + 6 AS col2 FROM tab0 WHERE - col1 + + col1 - + 94 + - col0 * + + 96 * + col2 / - - col2 < - + col0
----
6
6
6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6975
SELECT ALL + MIN( + col1 ) AS col1, - 44 AS col2 FROM tab1
----
5
-44

skipif mysql # not compatible
query II rowsort label-6975
SELECT ALL + MIN ( + col1 ) AS col1, - 44 AS col2 FROM tab1
----
5
-44

query I rowsort
SELECT DISTINCT col2 * + 83 + + + col0 AS col0 FROM tab2
----
1955
3384
4889

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT ALL + 61 * + COUNT( * ) + ( - 62 ) AS col2, - MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
121
-51

skipif mysql # not compatible
query II rowsort label-6977
SELECT ALL + 61 * + COUNT ( * ) + ( - 62 ) AS col2, - MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
121
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6978
SELECT - 23 DIV - - COUNT( * ), + 95 AS col1 FROM tab1 AS cor0
----
-7
95

skipif mysql # not compatible
query II rowsort label-6978
SELECT - 23 / - - COUNT ( * ), + 95 AS col1 FROM tab1 AS cor0
----
-7
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT + SUM( + 97 ) * 49 AS col2 FROM tab1 AS cor0
----
14259

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT + SUM ( + 97 ) * 49 AS col2 FROM tab1 AS cor0
----
14259

query I rowsort
SELECT DISTINCT col0 * - 18 * - 78 AS col2 FROM tab1
----
119340
127764
71604

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

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

query I rowsort
SELECT DISTINCT 74 * - 76 FROM tab0 AS cor0
----
-5624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT + SUM( 96 ) AS col2 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6984
SELECT + SUM ( 96 ) AS col2 FROM tab0 AS cor0
----
288

query II rowsort
SELECT col0, + col1 - ( - + col2 ) FROM tab2
----
46
74
64
117
75
125

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <= - col1 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 89 * + 49 col0 FROM tab0
----
-4262
-4314
-4351

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

query I rowsort
SELECT ALL col2 + - + col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + 6 col0 FROM tab0
----
522
582
90

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

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

query I rowsort
SELECT ALL 63 + 31 FROM tab2
----
94
94
94

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 4 * + + 97 + + + col1 col0 FROM tab0 AS cor0
----
-307
-367
-387

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

query I rowsort
SELECT DISTINCT - 84 * - 11 - - col1 + - - 99 FROM tab0 AS cor0
----
1024
1044
1104

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

query I rowsort
SELECT + 64 * - + col0 AS col0 FROM tab0
----
-5568
-6208
-960

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

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NULL >= + 78
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + - col2 * - 4 + + 76 * + - col0 * + col1 * col1 FROM tab0 AS cor0
----
-2915852
-6976
-7479352

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7007
SELECT COUNT( * ) - - 30 * - - 37, 78 col2 FROM tab0
----
1113
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7007
SELECT COUNT ( * ) - - 30 * - - 37, 78 col2 FROM tab0
----
1113
78

query I rowsort
SELECT DISTINCT + 76 - 76 AS col0 FROM tab1
----
0

query I rowsort
SELECT 64 + + col2 FROM tab2
----
104
122
87

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

query I rowsort
SELECT + 21 + + 54 AS col2 FROM tab1
----
75
75
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT MIN( DISTINCT - 18 ) col1 FROM tab1
----
-18

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

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

skipif mysql # not compatible
query II rowsort label-7014
SELECT ALL COUNT ( * ) AS col1, ( - + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab1
----
3
-9

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 46 AS col0, 22 + + col0 + 53 * - 32 FROM tab2 AS cor0
----
46
-1599
46
-1610
46
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT ALL - MIN( - 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - MIN ( - 99 ) FROM tab0
----
99

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NOT + 26 * - 39 + + + col2 + + col1 + + col0 - + col2 * 0 * ( + - col0 ) * - col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 + - col0, + col1 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7020
SELECT ALL ( - MIN ( - 98 ) ) col1 FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT + CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7021
SELECT + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL = + 57
----

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

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

query II rowsort
SELECT 1 + col0 * - col1 AS col2, col1 AS col1 FROM tab1
----
-424
5
-4276
47
-713
14

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

query I rowsort
SELECT 62 + - col1 + + col0 AS col1 FROM tab0
----
-4
128
158

query I rowsort
SELECT DISTINCT + col2 * + - 12 FROM tab2
----
-276
-480
-696

onlyif mysql # DIV for integer division: 
query II rowsort label-7028
SELECT ALL col0 * col1 * - col1 DIV - col1 + + + col1 AS col0, + col1 FROM tab1
----
430
5
4324
47
728
14

skipif mysql # not compatible
query II rowsort label-7028
SELECT ALL col0 * col1 * - col1 / - col1 + + + col1 AS col0, + col1 FROM tab1
----
430
5
4324
47
728
14

query I rowsort
SELECT DISTINCT col2 * 15 FROM tab1
----
1020
1440
885

query I rowsort
SELECT ALL + 92 + - 63 AS col0 FROM tab0
----
29
29
29

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7031
SELECT - col2 AS col0, + 58 / + CAST ( - + col2 AS INTEGER ) col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 76 * - - col2 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - 28 AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-2268

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - 28 AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
-2268

query III rowsort
SELECT * FROM tab0 WHERE - col2 / - 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT 28 + + SUM( ALL - 72 ) FROM tab0
----
-188

skipif mysql # not compatible
query I rowsort label-7035
SELECT 28 + + SUM ( ALL - 72 ) FROM tab0
----
-188

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2 * - 82
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT + COUNT( * ) + MIN( ALL col2 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7038
SELECT + COUNT ( * ) + MIN ( ALL col2 ) FROM tab0 AS cor0
----
13

query II rowsort
SELECT ALL - col2 + col2, + col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT ALL + 17 - + 36 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + + ( 20 ) * - - col2 + + - col1 + col2 FROM tab2 AS cor0
----
1151
432
763

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT - + MAX( col1 ) + + + 57 AS col1 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7042
SELECT - + MAX ( col1 ) + + + 57 AS col1 FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7043
SELECT DISTINCT 27 * - 37 - + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0, 33 DIV + 70 AS col2 FROM tab0 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7043
SELECT DISTINCT 27 * - 37 - + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0, 33 / + 70 AS col2 FROM tab0 AS cor0
----
NULL
0

query II rowsort
SELECT ALL col0 AS col0, + col0 * - ( col0 ) FROM tab0 cor0
----
15
-225
87
-7569
97
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT + - col0 DIV - - 16 FROM tab1 AS cor0
----
-3
-5
-5

skipif mysql # not compatible
query I rowsort label-7045
SELECT + - col0 / - - 16 FROM tab1 AS cor0
----
-3
-5
-5

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

query II rowsort
SELECT + col0 * col0 AS col1, + col1 * - + col2 AS col1 FROM tab0 AS cor0
----
225
-3807
7569
-210
9409
-99

query I rowsort
SELECT ALL + 23 * - - col1 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT col0 * + 82 + col1 FROM tab0
----
1311
7155
7955

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + 74 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + 74 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
222

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 > + + col1
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT - - col1 DIV + + 31 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7055
SELECT - - col1 / + + 31 FROM tab1 AS cor0
----
0
0
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7057
SELECT + col1 DIV + 12, col0 AS col0 FROM tab1
----
0
85
1
51
3
91

skipif mysql # not compatible
query II rowsort label-7057
SELECT + col1 / + 12, col0 AS col0 FROM tab1
----
0
85
1
51
3
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT 31 DIV + - 22 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7059
SELECT 31 / + - 22 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + 5 * col1 * - col1 FROM tab2
----
-13005
-22445
-29645

query I rowsort
SELECT DISTINCT + col1 * + + col1 + + + 68 + - - col0 AS col0 FROM tab2
----
2715
4632
6061

query I rowsort
SELECT + col1 * - - col2 * - + col1 AS col2 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7063
SELECT DISTINCT - 37 + CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - 37 + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
-40

query I rowsort
SELECT ALL - 32 + col1 FROM tab0
----
-11
-31
49

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL NOT BETWEEN + 33 AND - - 65
----

query I rowsort
SELECT 80 + - + col2 FROM tab2 cor0
----
22
40
57

query I rowsort
SELECT ALL + + 75 + - col0 + - - 70 AS col2 FROM tab1 AS cor0
----
54
60
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7068
SELECT DISTINCT - + COUNT( * ) + 42 AS col1, MIN( DISTINCT + + col1 ) FROM tab2 AS cor0
----
39
51

skipif mysql # not compatible
query II rowsort label-7068
SELECT DISTINCT - + COUNT ( * ) + 42 AS col1, MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
39
51

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

query I rowsort
SELECT ALL - col1 * + - col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL 40 + - COUNT( * ) - - 66 + + 71 * - + 22 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-1465

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL 40 + - COUNT ( * ) - - 66 + + 71 * - + 22 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-1465

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT 8 DIV + 45 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7072
SELECT 8 / + 45 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ALL + MIN( ALL + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL + MIN ( ALL + col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT ALL col2 + - col2 + - - 19 + - - col2 FROM tab2
----
42
59
77

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

skipif mysql # not compatible
query I rowsort label-7075
SELECT 56 / + - col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - MAX( col1 ) - - 82 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7076
SELECT - MAX ( col1 ) - - 82 FROM tab1 AS cor0
----
35

query I rowsort
SELECT DISTINCT 30 + 42 AS col2 FROM tab1 AS cor0
----
72

query II rowsort
SELECT DISTINCT - 79 * - + 14 + + + col2 + + 42 * - col1 * + 31, col2 + + col0 AS col2 FROM tab0 AS cor0
----
-104309
62
-26226
97
-97
196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 15 + + ( - ( + - 31 ) )
----

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

query I rowsort
SELECT DISTINCT + + col0 * - - 4 * 31 - + col2 AS col1 FROM tab2 AS cor0
----
5681
7896
9242

query I rowsort
SELECT ALL - col2 * col0 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

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

query I rowsort
SELECT col2 * + + col2 * + col1 AS col0 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - MAX( DISTINCT + + 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7085
SELECT - MAX ( DISTINCT + + 10 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7086
SELECT ALL MAX( col2 ) DIV - COUNT( * ) col0 FROM tab0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7086
SELECT ALL MAX ( col2 ) / - COUNT ( * ) col0 FROM tab0
----
-33

query I rowsort
SELECT + ( 49 ) AS col1 FROM tab1
----
49
49
49

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

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

query II rowsort
SELECT DISTINCT 92, + col2 AS col0 FROM tab0
----
92
10
92
47
92
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2, 37 )
----

query II rowsort
SELECT + col2 * + col0 AS col2, 92 AS col0 FROM tab1 AS cor0
----
4896
92
5015
92
6188
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT - MAX( ALL 56 ) AS col1 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7092
SELECT - MAX ( ALL 56 ) AS col1 FROM tab2 AS cor0
----
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT + col1 * + col0 + col0 + + 77 + + col2 FROM tab2 cor0
----
2492
5109
5235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT ALL - CAST( + MAX( DISTINCT col0 ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT + col1 + + ( col2 ) IS NULL
----
-75

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT - 42 + + col0 * + col1 + + + CAST( NULL AS SIGNED ) FROM tab2 WHERE + + col2 = - 39
----

skipif mysql # not compatible
query I rowsort label-7099
SELECT - 42 + + col0 * + col1 + + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + + col2 = - 39
----

query I rowsort
SELECT DISTINCT + + col1 + + + col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT DISTINCT - 53 + - col0 AS col0 FROM tab0 AS cor0
----
-140
-150
-68

query I rowsort
SELECT + + 3 * ( + col1 ) - + + col1 + + 18 AS col2 FROM tab2 AS cor0
----
120
152
172

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

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

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

query I rowsort
SELECT + col0 * - 64 AS col1 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT DISTINCT + 13 + - 0 FROM tab0
----
13

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

query I rowsort
SELECT col2 * 81 AS col2 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT ALL 59 * - col0 AS col0 FROM tab1 WHERE - 93 >= ( NULL )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT col2 DIV ( + col2 ) + 78 AS col1 FROM tab2
----
79
79
79

skipif mysql # not compatible
query I rowsort label-7115
SELECT col2 / ( + col2 ) + 78 AS col1 FROM tab2
----
79
79
79

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7116
SELECT CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 WHERE col2 = - col1
----
0

query I rowsort
SELECT DISTINCT col2 * col0 + - col2 AS col2 FROM tab1 WHERE NOT ( + 20 ) NOT IN ( 83 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT + ( + col0 ) * + 93 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT NULL < + col1 + 11 * + col0
----

query I rowsort
SELECT + col2 * 88 + + col0 * - 89 FROM tab2 WHERE NOT col0 + - col2 * - 76 <> col1 - + col0
----

query I rowsort
SELECT ALL col0 * col2 - col1 AS col1 FROM tab0
----
624
849
9602

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

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

query I rowsort
SELECT ALL col0 * + col0 + - col0 FROM tab2
----
2070
4032
5550

query I rowsort
SELECT DISTINCT 95 FROM tab1 WHERE - col1 <= col0
----
95

query I rowsort
SELECT DISTINCT + 63 * - 7 + col2 FROM tab1
----
-345
-373
-382

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

query I rowsort
SELECT ALL + 70 * ( - col1 ) FROM tab0 AS cor0
----
-1470
-5670
-70

query I rowsort
SELECT - 92 * - col1 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT ( col0 ) * - col0 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 28 ) NOT BETWEEN col1 AND 19
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT SUM( ALL 25 ) * - 86 FROM tab2 AS cor0
----
-6450

skipif mysql # not compatible
query I rowsort label-7132
SELECT SUM ( ALL 25 ) * - 86 FROM tab2 AS cor0
----
-6450

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 <= ( col2 - col2 * + ( + 64 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - col1 ) + + col1 AS col2 FROM tab1
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * + col0 col1 FROM tab1 AS cor0
----
4743
7905
8463

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

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

query I rowsort
SELECT ALL - + col0 + 40 AS col0 FROM tab2 AS cor0
----
-24
-35
-6

query I rowsort
SELECT DISTINCT 3 + 10 FROM tab1 AS cor0
----
13

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

query I rowsort
SELECT 50 FROM tab1 AS cor0 WHERE NULL IS NULL
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 59 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 36 * 9 ) IS NULL
----

query I rowsort
SELECT ALL 68 * col2 + + col1 FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
1615
2797
4011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3481
-4624
-9216

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 71 col1 FROM tab1
----
3337
355
994

query I rowsort
SELECT col0 FROM tab0 WHERE - col0 <> NULL
----

query I rowsort
SELECT - 96 - col0 FROM tab1
----
-147
-181
-187

query I rowsort
SELECT 62 - col1 AS col1 FROM tab0
----
-19
41
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL + 69 * - COUNT( ALL + col0 ) AS col0 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL + 69 * - COUNT ( ALL + col0 ) AS col0 FROM tab2
----
-207

query I rowsort
SELECT - col2 - - 54 AS col1 FROM tab0
----
-45
44
7

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

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

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab2 AS cor0 WHERE ( - col1 * col0 ) NOT IN ( + col1 * + 14 )
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE ( col2 * col1 - 30 ) NOT BETWEEN ( 56 ) AND ( + col2 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7156
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE ( col2 * col1 - 30 ) NOT BETWEEN ( 56 ) AND ( + col2 )
----
3

query II rowsort
SELECT DISTINCT - 64, col0 AS col0 FROM tab0 AS cor0
----
-64
15
-64
87
-64
97

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7161
SELECT ALL - 24 + - col1 FROM tab2 AS cor0 WHERE NOT col2 * - CAST( col1 AS DECIMAL ) * 28 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - 24 + - col1 FROM tab2 AS cor0 WHERE NOT col2 * - CAST ( col1 AS REAL ) * 28 < CAST ( NULL AS INTEGER )
----

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

query II rowsort
SELECT ALL ( + + 29 ) AS col0, - col2 + + + col0 * - col2 AS col0 FROM tab0
----
29
-752
29
-880
29
-9702

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7165
SELECT * FROM tab0 WHERE NOT ( CAST( - + 6 AS SIGNED ) ) <> col2 * - 19
----

skipif mysql # not compatible
query III rowsort label-7165
SELECT * FROM tab0 WHERE NOT ( CAST ( - + 6 AS INTEGER ) ) <> col2 * - 19
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - - 89 - - - 23 NOT IN ( + col0 )
----
51
85
91

query I rowsort
SELECT ALL + col1 * + - col1 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - 9 * 70 AS col2 FROM tab0
----
-630

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 91 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 2 * - col2 FROM tab0
----
198
20
94

query I rowsort
SELECT - 28 + ( + 64 ) FROM tab2 WHERE NULL > ( + + col0 - + col0 )
----

query I rowsort
SELECT + + 99 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7173
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) > - 90
----

skipif mysql # not compatible
query III rowsort label-7173
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) > - 90
----

query I rowsort
SELECT DISTINCT col2 + ( + 66 ) + + col1 FROM tab0
----
166
194
97

query I rowsort
SELECT - col2 * - 87 + - col2 AS col1 FROM tab0 cor0
----
4042
8514
860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL + 17 + + + col1 + col0 - 68 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-3014
-4194
-4941

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + 17 + + + col1 + col0 - 68 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-3014
-4194
-4941

query I rowsort
SELECT - col0 + + col0 * - col0 FROM tab0 AS cor0
----
-240
-7656
-9506

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT col2 DIV - 60 + + col1 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
231
3888
99

skipif mysql # not compatible
query I rowsort label-7180
SELECT col2 / - 60 + + col1 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
231
3888
99

query I rowsort
SELECT ALL + - col0 * col0 - col1 FROM tab0 AS cor0
----
-306
-7590
-9410

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / - col0 - + 17 / - 14 / ( col2 / - col2 ) > - 22 + col2 / col2
----

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col0 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL - 20 + 75 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT MIN( ALL + + ( - + ( + + col0 ) ) ) * + MAX( DISTINCT + col0 ) FROM tab0
----
-9409

skipif mysql # not compatible
query I rowsort label-7185
SELECT MIN ( ALL + + ( - + ( + + col0 ) ) ) * + MAX ( DISTINCT + col0 ) FROM tab0
----
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7186
SELECT * FROM tab1 WHERE + col2 * - 47 + 22 - - col2 / CAST( col2 + + 22 * 50 AS SIGNED ) NOT BETWEEN - 17 * - col1 + + 47 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7186
SELECT * FROM tab1 WHERE + col2 * - 47 + 22 - - col2 / CAST ( col2 + + 22 * 50 AS INTEGER ) NOT BETWEEN - 17 * - col1 + + 47 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query II rowsort label-7187
SELECT DISTINCT 32 AS col1, COUNT ( * ) FROM tab2
----
32
3

query I rowsort
SELECT ALL - col0 + - 16 AS col0 FROM tab0 cor0
----
-103
-113
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + MAX( + col0 ) - 51 AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7189
SELECT + MAX ( + col0 ) - 51 AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT - CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7190
SELECT - CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7191
SELECT + col1 * - col2 DIV - - col2 + + col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-7191
SELECT + col1 * - col2 / - - col2 + + col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 56 + + 12 IS NULL
----

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab2 WHERE + - 4 IN ( ( - col1 ) )
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7196
SELECT CAST( 3 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 51 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7196
SELECT CAST ( 3 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 51 ) IS NOT NULL
----

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

query II rowsort
SELECT - 67 * + 5 AS col2, 68 AS col1 FROM tab1 AS cor0
----
-335
68
-335
68
-335
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 40 )
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) IN ( 21, 4, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + 19 + + col0 AS col2 FROM tab1
----
1020
1700
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7204
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + COUNT( * ), + 37 AS col0 FROM tab0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7204
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + COUNT ( * ), + 37 AS col0 FROM tab0
----
NULL
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - 60 + - 89 col0 FROM tab1 cor0
----
-58
-64
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-7206
SELECT ALL 65 DIV col1 AS col1, 94 * + 0 FROM tab1
----
1
0
13
0
4
0

skipif mysql # not compatible
query II rowsort label-7206
SELECT ALL 65 / col1 AS col1, 94 * + 0 FROM tab1
----
1
0
13
0
4
0

query I rowsort
SELECT ALL + 48 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT - 85 * - COUNT( * ) AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-7208
SELECT - 85 * - COUNT ( * ) AS col0 FROM tab2
----
255

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT + - CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7211
SELECT + - CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - 95 * 35 * + 34 * 95 + - 54 + 86 AS col0 FROM tab0 cor0
----
-10739718

query I rowsort
SELECT ALL col1 + - ( - - 60 ) AS col0 FROM tab0 AS cor0
----
-39
-59
21

query I rowsort
SELECT ALL col0 - + ( - 70 ) AS col1 FROM tab2 AS cor0
----
116
134
145

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( NOT ( ( NULL ) IS NOT NULL ) ) OR NOT ( NULL ) > - ( 58 )
----
51
67
77

query I rowsort
SELECT DISTINCT - 90 + - 73 FROM tab2 cor0
----
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT ALL + COUNT( * ) * - + 37, COUNT( * ) * + MAX( DISTINCT 76 ) * + 82 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-111
-56088

skipif mysql # not compatible
query II rowsort label-7217
SELECT ALL + COUNT ( * ) * - + 37, COUNT ( * ) * + MAX ( DISTINCT 76 ) * + 82 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-111
-56088

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL + 42 - 78 * + - COUNT( * ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + 42 - 78 * + - COUNT ( * ) FROM tab0
----
276

query I rowsort
SELECT - col2 + + + col0 + col0 + + col0 * 31 + 62 AS col0 FROM tab1
----
1649
2808
2997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 93 col0 FROM tab0 WHERE - 99 - col2 IS NOT NULL
----
-46
-83
6

query I rowsort
SELECT col1 + - - 66 FROM tab1
----
113
71
80

query I rowsort
SELECT + 51 + + 92 AS col2 FROM tab2
----
143
143
143

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT ALL - 15 DIV + col2 col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - col0 + - - 87 AS col2 FROM tab0
----
-10
0
72

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

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

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

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

query I rowsort
SELECT ALL col1 * col1 + col0 AS col2 FROM tab0 cor0
----
528
6576
98

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

query I rowsort
SELECT - 63 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT MIN( ALL - - 44 ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT MIN ( ALL - - 44 ) AS col0 FROM tab1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - - 33 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - - 33 AS INTEGER ) IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT - col0, col2 * - col2 AS col0 FROM tab0 AS cor0
----
-15
-2209
-87
-100
-97
-9801

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT 75, SUM( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75
185

skipif mysql # not compatible
query II rowsort label-7238
SELECT 75, SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75
185

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

query I rowsort
SELECT + col1 * - 21 - col1 FROM tab1 AS cor0
----
-1034
-110
-308

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL SUM( DISTINCT - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL SUM ( DISTINCT - col1 ) FROM tab1
----
-66

query I rowsort
SELECT ( col2 ) + + 30 - + col1 FROM tab1
----
112
51
84

query I rowsort
SELECT - - AVG ( ALL + + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT - + 52 + + 28 FROM tab2 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT + COUNT( DISTINCT 16 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL < ( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT + COUNT ( DISTINCT 16 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL < ( 98 )
----
0

query II rowsort
SELECT ALL col1 + - 33 - - col0, col1 FROM tab2 AS cor0
----
108
77
109
67
64
51

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

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

query I rowsort
SELECT DISTINCT - + col2 * + 28 + + col1 + + col2 - col0 FROM tab0 AS cor0
----
-1203
-2769
-336

query I rowsort
SELECT + 78 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT ALL - col2 * + col0 + ( - + 85 ) DIV + - ( + + col0 ) - + + 41 FROM tab1 AS cor0
----
-4936
-5055
-6229

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - col2 * + col0 + ( - + 85 ) / + - ( + + col0 ) - + + 41 FROM tab1 AS cor0
----
-4936
-5055
-6229

query I rowsort
SELECT ALL col2 - + 72 AS col1 FROM tab1
----
-13
-4
24

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0 * - col0, + 83 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT ( 65 ) AS col0, - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
65
0

skipif mysql # not compatible
query II rowsort label-7259
SELECT ( 65 ) AS col0, - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
65
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7261
SELECT ALL 66, - col1 DIV + 6 AS col2 FROM tab1
----
66
-2
66
-7
66
0

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL 66, - col1 / + 6 AS col2 FROM tab1
----
66
-2
66
-7
66
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7264
SELECT - ( + + MAX ( - + 93 ) ) FROM tab1 AS cor0
----
93

query II rowsort
SELECT DISTINCT + col1 * - 4 AS col1, 58 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( col1 + - col0 )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7269
SELECT ALL - ( - 61 ) DIV + col1, col0 AS col2 FROM tab1 AS cor0
----
1
91
12
85
4
51

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL - ( - 61 ) / + col1, col0 AS col2 FROM tab1 AS cor0
----
1
91
12
85
4
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 * - - col1 + + + 51 col0 FROM tab1
----
126
261
756

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT 63 * - - 86 * + - COUNT( * ) AS col0 FROM tab2
----
-16254

skipif mysql # not compatible
query I rowsort label-7272
SELECT 63 * - - 86 * + - COUNT ( * ) AS col0 FROM tab2
----
-16254

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

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

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

query I rowsort
SELECT DISTINCT col1 + ( - 92 ) - + col1 * - + col1 FROM tab0 AS cor0
----
-90
370
6550

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT - col0 DIV + + col2 - col0 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-7278
SELECT - col0 / + + col2 - col0 FROM tab2 AS cor0
----
-48
-65
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT ALL 22 DIV + 84 + - + ( 24 ) AS col0 FROM tab0 cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL 22 / + 84 + - + ( 24 ) AS col0 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - col1 + + 90 FROM tab2 cor0
----
13
23
39

query I rowsort
SELECT DISTINCT 93 * - col1 AS col2 FROM tab1 AS cor0
----
-1302
-4371
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT - MAX( DISTINCT col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7282
SELECT - MAX ( DISTINCT col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT - 91 * + col0 * + 47 FROM tab2
----
-196742
-273728
-320775

query I rowsort
SELECT - col1 + col0 FROM tab2 WHERE NOT NULL = + 31 + + 7 / + col2
----

query I rowsort
SELECT ALL - 41 * - 14 AS col1 FROM tab0 cor0
----
574
574
574

query II rowsort
SELECT + - col2, + 56 AS col0 FROM tab0 cor0
----
-10
56
-47
56
-99
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT MIN( - - ( - 97 ) ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT MIN ( - - ( - 97 ) ) FROM tab2
----
-97

query I rowsort
SELECT ALL + + 93 FROM tab1 WHERE NULL < - col0
----

query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT + + MAX( - + col0 ) DIV 57 col2 FROM tab2 AS cor0 WHERE NOT + col1 * - ( - col1 ) + - col0 * - 56 + - + col0 BETWEEN + - ( + col2 ) + - col0 AND + - 51 * + col1 * + 53 * + 47 + + 27
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7293
SELECT + + MAX ( - + col0 ) / 57 col2 FROM tab2 AS cor0 WHERE NOT + col1 * - ( - col1 ) + - col0 * - 56 + - + col0 BETWEEN + - ( + col2 ) + - col0 AND + - 51 * + col1 * + 53 * + 47 + + 27
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT - col0 DIV - col2 col2 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7296
SELECT DISTINCT - col0 / - col2 col2 FROM tab0 cor0
----
0
8

onlyif mysql # DIV for integer division: 
query II rowsort label-7297
SELECT - col2 + - - col1 AS col1, - col1 + + 98 DIV + 52 FROM tab2 AS cor0
----
28
-50
37
-76
9
-66

skipif mysql # not compatible
query II rowsort label-7297
SELECT - col2 + - - col1 AS col1, - col1 + + 98 / + 52 FROM tab2 AS cor0
----
28
-50
37
-76
9
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT + 77 * + COUNT( + 18 ) FROM tab1 WHERE - col1 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT + 77 * + COUNT ( + 18 ) FROM tab1 WHERE - col1 + - col1 IS NULL
----
0

query I rowsort
SELECT ALL + col2 * - + col0 * - col1 * - col0 FROM tab2
----
-12615680
-21858750
-2482068

query I rowsort
SELECT ALL - 99 + + + col2 + + 9 AS col0 FROM tab1 AS cor0
----
-22
-31
6

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

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

query I rowsort
SELECT ALL - 74 - - 8 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT SUM( DISTINCT - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT SUM ( DISTINCT - - col1 ) FROM tab2
----
195

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-7308
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7308
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) NOT BETWEEN + CAST ( NULL AS REAL ) AND NULL
----

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

query I rowsort
SELECT ( + 34 ) FROM tab2 cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT - col1 DIV + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT - col1 / + + col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

query II rowsort
SELECT DISTINCT - 95, + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-95
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT 97 * + + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-2231
-3880
-5626

skipif mysql # not compatible
query I rowsort label-7316
SELECT 97 * + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-2231
-3880
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT DISTINCT - COUNT( * ) * 85 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT - COUNT ( * ) * 85 FROM tab1
----
-255

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col1 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT MAX( + ( - - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7319
SELECT MAX ( + ( - - col2 ) ) FROM tab2
----
58

query I rowsort
SELECT DISTINCT col2 * + 96 FROM tab0
----
4512
9504
960

query I rowsort
SELECT ALL col0 * - 6 FROM tab0
----
-522
-582
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7322
SELECT 56 AS col2, SUM( + col2 ) FROM tab1
----
56
223

skipif mysql # not compatible
query II rowsort label-7322
SELECT 56 AS col2, SUM ( + col2 ) FROM tab1
----
56
223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + 58 IS NULL
----

query II rowsort
SELECT - col1 AS col1, + col0 * - + 14 AS col2 FROM tab0 AS cor0
----
-1
-1358
-21
-1218
-81
-210

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col2 * col0 IS NULL
----

query I rowsort
SELECT ALL + col2 + - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <> + col2 - - CAST( - - 32 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <> + col2 - - CAST ( - - 32 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 76
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7329
SELECT 96 - - + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT 96 - - + MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 * - - col0 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT - col0 + + + 52 + - col2 FROM tab0
----
-10
-144
-45

query I rowsort
SELECT 37 + col2 FROM tab0
----
136
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL + COUNT( + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + COUNT ( + col0 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col0 + - 15 + col2 IS NULL
----

query I rowsort
SELECT + col0 + - col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - + col2 - + ( col2 ) + 77 FROM tab0 AS cor0
----
-121
-17
57

query III rowsort
SELECT col1 AS col2, 9 * - - col1, - col1 * + col0 + - col2 AS col1 FROM tab2
----
9 values hashing to 6ce5983d6d544230df91c2f867e938f6

query I rowsort
SELECT ALL + 22 + 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT - MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7339
SELECT - MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col1 FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7341
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + - CAST( - col2 AS SIGNED ) + + + col1 + - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7341
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + - CAST ( - col2 AS INTEGER ) + + + col1 + - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 79 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col2 FROM tab2 AS cor0
----
55
55
55

query II rowsort
SELECT col2 AS col0, + 87 * + col1 AS col2 FROM tab0
----
10
1827
47
7047
99
87

query II rowsort
SELECT ALL - 85, col0 FROM tab2
----
-85
46
-85
64
-85
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL + MIN( - 38 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL + MIN ( - 38 ) FROM tab0
----
-38

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( + col0 * 90 * col2 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL + SUM( ALL + 32 ) * + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2
----
-864

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + SUM ( ALL + 32 ) * + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2
----
-864

query II rowsort
SELECT col2 AS col0, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7351
SELECT ( - ( CAST( ( + 47 ) AS SIGNED ) ) ) AS col0 FROM tab0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-7351
SELECT ( - ( CAST ( ( + 47 ) AS INTEGER ) ) ) AS col0 FROM tab0
----
-47
-47
-47

query I rowsort
SELECT ALL + col0 - + - col2 + - col0 - - 62 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
121
130
158

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT 73 DIV + col2 + + + col1 FROM tab2 AS cor0
----
54
68
78

skipif mysql # not compatible
query I rowsort label-7353
SELECT 73 / + col2 + + + col1 FROM tab2 AS cor0
----
54
68
78

query I rowsort
SELECT DISTINCT + - 38 * col0 + + 39 + col0 AS col1 FROM tab0 AS cor0
----
-3180
-3550
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL - 54 * + SUM( + + col1 ) AS col0 FROM tab2 AS cor0
----
-10530

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL - 54 * + SUM ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-10530

query II rowsort
SELECT DISTINCT 89 + - 87 + - 30 AS col2, - col2 FROM tab2 AS cor0
----
-28
-23
-28
-40
-28
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7357
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2, ( col1 ) FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7357
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2, ( col1 ) FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT - col0 + + + col2 + + col1 + + - 92 DIV - + 83 AS col2 FROM tab2
----
29
51
54

skipif mysql # not compatible
query I rowsort label-7358
SELECT - col0 + + + col2 + + col1 + + - 92 / - + 83 AS col2 FROM tab2
----
29
51
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 WHERE NOT - 41 BETWEEN NULL AND + - col0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + 39 AS col1 FROM tab1 WHERE NOT - - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT 24 * 63 + - 6 - MIN( + col0 ) AS col1 FROM tab0
----
1491

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT 24 * 63 + - 6 - MIN ( + col0 ) AS col1 FROM tab0
----
1491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7363
SELECT - COUNT( - col0 ) FROM tab0 WHERE ( - CAST( col2 AS SIGNED ) ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7363
SELECT - COUNT ( - col0 ) FROM tab0 WHERE ( - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT ALL - 0 DIV - 8 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - 0 / - 8 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT col1 DIV + 37 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7365
SELECT col1 / + 37 AS col1 FROM tab2
----
1
1
2

query II rowsort
SELECT - 79, - col1 AS col1 FROM tab0 AS cor0
----
-79
-1
-79
-21
-79
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT - 88 - + + col2 + - + col1 + + + col1 + + - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT - 88 - + + col2 + - + col1 + + + col1 + + - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 15 - - - ( + col0 ) FROM tab2 AS cor0
----
-31
-49
-60

query I rowsort
SELECT - ( + 21 ) - - col0 FROM tab2 AS cor0
----
25
43
54

query I rowsort
SELECT - col1 * + - col2 - col0 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT + col0 - + col1 + + col1 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 50 - + - col0 FROM tab2 cor0
----
114
125
96

query I rowsort
SELECT DISTINCT - 82 FROM tab0 WHERE NOT + + col0 * col0 * col1 >= NULL
----

query I rowsort
SELECT + col0 * ( 48 ) AS col2 FROM tab0
----
4176
4656
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT - COUNT( ALL + 99 ) * COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7375
SELECT - COUNT ( ALL + 99 ) * COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 0 col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT + - COUNT( * ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7379
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT col0 / + ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - 1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT col0 DIV - - 3 FROM tab0 AS cor0
----
29
32
5

skipif mysql # not compatible
query I rowsort label-7382
SELECT col0 / - - 3 FROM tab0 AS cor0
----
29
32
5

query I rowsort
SELECT + col0 * + 62 FROM tab1 AS cor0
----
3162
5270
5642

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ALL + + 62 DIV + col0 AS col2 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + + 62 / + col0 AS col2 FROM tab0 cor0
----
0
0
4

query II rowsort
SELECT ALL + col2, + 53 / - + col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 57 * - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7386
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col0 ) NOT IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7386
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col0 ) NOT IN ( - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT - + col1 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7388
SELECT - + col1 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT 5 * + - col1 AS col1 FROM tab2
----
-255
-335
-385

query I rowsort
SELECT - + 50 * + ( + + 80 ) FROM tab1 AS cor0
----
-4000
-4000
-4000

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT MIN( col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7391
SELECT MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT - + CAST( MIN( - col1 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT - + CAST ( MIN ( - col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( 31 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23, 89 col1 FROM tab1
----
23
89
23
89
23
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + col0 AS col0, - 71 FROM tab0 AS cor0
----
15
-71
87
-71
97
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + 81 col0 FROM tab0 cor0
----
-168
-178
-96

query I rowsort
SELECT DISTINCT + 42 + + 88 AS col0 FROM tab0 AS cor0
----
130

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7401
SELECT * FROM tab2 WHERE - col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7401
SELECT * FROM tab2 WHERE - col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col0 - 34 FROM tab0
----
-19
53
63

query II rowsort
SELECT col0 - - 61 * col1, 57 AS col1 FROM tab1
----
2958
57
390
57
905
57

query I rowsort
SELECT ALL - - col0 * + 16 AS col0 FROM tab1 WHERE NOT + + col2 + + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + 67 + + - MAX( ALL 48 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 67 + + - MAX ( ALL 48 ) FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT - 6 DIV col2 + - 1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7406
SELECT - 6 / col2 + - 1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7407
SELECT ALL - - 24 * - 70 * + + ( SUM( ALL + - 58 ) ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
292320
3

skipif mysql # not compatible
query II rowsort label-7407
SELECT ALL - - 24 * - 70 * + + ( SUM ( ALL + - 58 ) ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
292320
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7408
SELECT ALL col0, - 64 DIV - + col2 AS col1 FROM tab1
----
51
0
85
1
91
0

skipif mysql # not compatible
query II rowsort label-7408
SELECT ALL col0, - 64 / - + col2 AS col1 FROM tab1
----
51
0
85
1
91
0

query I rowsort
SELECT ALL + 55 * col1 AS col2 FROM tab2
----
2805
3685
4235

query II rowsort
SELECT DISTINCT col0, - col0 + - col2 FROM tab0
----
15
-62
87
-97
97
-196

query I rowsort
SELECT + 16 FROM tab1 WHERE NOT ( ( NULL ) BETWEEN + + col2 AND - ( - 80 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT - col1 <> + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7413
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT - col1 <> + col2
----

query I rowsort
SELECT ALL + col0 * - 10 FROM tab1 cor0
----
-510
-850
-910

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 47 >= NULL
----

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 91 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col0 * - 24 AS col1 FROM tab0 AS cor0
----
2088
2328
360

onlyif mysql # DIV for integer division: 
query II rowsort label-7418
SELECT DISTINCT + 8 DIV - col2 + col1, col1 col0 FROM tab2 cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7418
SELECT DISTINCT + 8 / - col2 + col1, col1 col0 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 * col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 * col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + + SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7420
SELECT + + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + - 26 AND + col1
----

query I rowsort
SELECT 86 AS col2 FROM tab0 WHERE NOT + col0 * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7423
SELECT - 5 + - CAST( NULL AS SIGNED ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7423
SELECT - 5 + - CAST ( NULL AS INTEGER ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT 39 * + + col0 + + - 20 AS col2 FROM tab0
----
3373
3763
565

query I rowsort
SELECT - col0 * + + col1 + - col1 FROM tab1
----
-430
-4324
-728

query II rowsort
SELECT ALL 91 + col1, + col1 AS col2 FROM tab1
----
105
14
138
47
96
5

query II rowsort
SELECT ALL col2 + col1, 45 * + 29 AS col0 FROM tab2 AS cor0
----
117
1305
125
1305
74
1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL - 5 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - 5 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 50 * - - col2 IS NULL
----

query I rowsort
SELECT col0 - + + col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT + + 28 + + 49 AS col2 FROM tab0 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT - col0 + - + col1 DIV - col1 AS col0 FROM tab0 cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-7432
SELECT - col0 + - + col1 / - col1 AS col0 FROM tab0 cor0
----
-14
-86
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7433
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT 73 + + 59 AS col2 FROM tab0 AS cor0
----
132

query I rowsort
SELECT col1 * - 77 + + col1 * - - ( - 68 ) - col0 * + 75 FROM tab0 AS cor0
----
-12870
-7420
-9570

query I rowsort
SELECT ALL - - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col2 - + - 18 AS col1 FROM tab1 AS cor0
----
-41
-50
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT - CAST( - 90 AS SIGNED ) * - COUNT( * ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-7438
SELECT - CAST ( - 90 AS INTEGER ) * - COUNT ( * ) FROM tab0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT DISTINCT + 67 - - + ( + + COUNT( * ) ) AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT + 67 - - + ( + + COUNT ( * ) ) AS col2 FROM tab2
----
70

query I rowsort
SELECT DISTINCT col0 - 53 - - 3 + 76 * - 37 * col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-227807
-2765
-59015

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT + col0 DIV + + 72 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7441
SELECT + col0 / + + 72 AS col0 FROM tab1
----
0
1
1

query II rowsort
SELECT col0 * + col0, col0 AS col1 FROM tab0 cor0
----
225
15
7569
87
9409
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + col1 <> - 36
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT DISTINCT MAX( - 82 ) + - COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-91
9

skipif mysql # not compatible
query II rowsort label-7444
SELECT DISTINCT MAX ( - 82 ) + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-91
9

query I rowsort
SELECT ALL col2 * - col2 - + 89 + + 39 FROM tab2 AS cor0
----
-1650
-3414
-579

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT + col2 * + + col0 DIV - col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + col2 * + + col0 / - col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7447
SELECT DISTINCT - COUNT( * ) DIV - ( + COUNT( * ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - COUNT ( * ) / - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7448
SELECT DISTINCT MIN( ALL 20 ) AS col0, - SUM( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
20
156

skipif mysql # not compatible
query II rowsort label-7448
SELECT DISTINCT MIN ( ALL 20 ) AS col0, - SUM ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
20
156

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7450
SELECT + 22 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT + 22 * + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 50 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL + COUNT( * ) * - 71 * + 29 + - 87 * + + COUNT( * ) + 96 AS col0 FROM tab2
----
-6342

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + COUNT ( * ) * - 71 * + 29 + - 87 * + + COUNT ( * ) + 96 AS col0 FROM tab2
----
-6342

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT SUM( ALL - - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7453
SELECT SUM ( ALL - - col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT ALL - 72 * - col0 AS col2 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT + COUNT( DISTINCT + col1 ) + - + 40 AS col1, 62 AS col2 FROM tab1 cor0
----
-37
62

skipif mysql # not compatible
query II rowsort label-7455
SELECT + COUNT ( DISTINCT + col1 ) + - + 40 AS col1, 62 AS col2 FROM tab1 cor0
----
-37
62

query I rowsort
SELECT ALL + - col1 * + col0 * + col0 AS col0 FROM tab1 WHERE NOT - - col0 IS NULL
----
-36125
-36414
-389207

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 49 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT - col0 + 76 FROM tab0
----
-11
-21
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + SUM( + + 68 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
612

skipif mysql # not compatible
query I rowsort label-7460
SELECT + SUM ( + + 68 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
612

query I rowsort
SELECT DISTINCT ( + 46 ) + - 55 FROM tab1, tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT - col1 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT - col1 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * + 1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 - - 56 * + ( + - col1 ) AS col2 FROM tab0 cor0
----
-1166
-4489
43

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = - 9 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL - COUNT( * ) - + COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - COUNT ( * ) - + COUNT ( * ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + COUNT( * ) * 31 AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7467
SELECT + COUNT ( * ) * 31 AS col2 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT - col1 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT - col1 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + SUM( - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + SUM ( - col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT 0 AS col1 FROM tab1 WHERE NOT + col2 NOT BETWEEN col0 AND - 39 / - col2
----

query I rowsort
SELECT DISTINCT - + 98 FROM tab1 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 6 * + + col2 AS col2 FROM tab1
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL - MAX( ALL - col1 ) * - 6 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - MAX ( ALL - col1 ) * - 6 FROM tab0
----
-6

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 23 <> col2 + - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT + COUNT( + + 99 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT + COUNT ( + + 99 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - col2 * + 94, col2 * + col1 / col1 + + - col1 * - ( + 2 ), + 67 )
----

query I rowsort
SELECT ALL + 28 * + - col2 FROM tab0
----
-1316
-2772
-280

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + + - col0 + col2 / + col2 BETWEEN NULL AND col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 + + + col1 AS col2 FROM tab0 AS cor0
----
10
108
47
96
99
98

query I rowsort
SELECT ALL + col1 * col2 * + 22 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + 3 * - SUM( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-669

skipif mysql # not compatible
query I rowsort label-7482
SELECT + 3 * - SUM ( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-669

query III rowsort
SELECT col0, + col1 + - 67 * - 22, - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to a0c6fcf1fa262f4c01746ddaaf9f3ced

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE NOT 24 IN ( - + 78 - + 30 + + - 65 / + col1 + - ( - col0 ) * col2 )
----
-10
-47
-99

query I rowsort
SELECT - 51 * + 70 FROM tab1 AS cor0
----
-3570
-3570
-3570

query I rowsort
SELECT DISTINCT + - 18 AS col1 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT col2 + - - 32 AS col2 FROM tab2
----
55
72
90

query II rowsort
SELECT col2 + + col1 AS col1, col2 FROM tab0
----
100
99
128
47
31
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL COUNT( * ) + 97 AS col0 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL COUNT ( * ) + 97 AS col0 FROM tab1
----
100

query I rowsort
SELECT col2 + col1 + + 14 AS col1 FROM tab1
----
124
129
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7491
SELECT + CAST( + 40 AS SIGNED ) AS col2, col2 AS col1 FROM tab1 AS cor0
----
40
59
40
68
40
96

skipif mysql # not compatible
query II rowsort label-7491
SELECT + CAST ( + 40 AS INTEGER ) AS col2, col2 AS col1 FROM tab1 AS cor0
----
40
59
40
68
40
96

query II rowsort
SELECT + + col1 - + + col1 AS col0, col0 * + 22 AS col0 FROM tab1 AS cor0
----
0
1122
0
1870
0
2002

query I rowsort
SELECT DISTINCT + 27 + col0 FROM tab1
----
112
118
78

query I rowsort
SELECT ALL 29 + 38 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT ALL + col2 + 38 * + col2 * ( + - ( + ( col2 ) ) ) + col0 FROM tab2 AS cor0
----
-127699
-20033
-60696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7496
SELECT ALL 97 AS col1, + 68 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7496
SELECT ALL 97 AS col1, + 68 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + col2 AS col2, + col2 FROM tab1 cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col0 FROM tab0 cor0
----
25
25
25

query I rowsort
SELECT ALL + - col1 * - - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - 97 / - col2 BETWEEN - + 16 * + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT - AVG ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT - AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7502
SELECT col2 DIV - 93 * - + ( + col2 ) AS col2, 33 AS col0 FROM tab2 AS cor0
----
0
33
0
33
0
33

skipif mysql # not compatible
query II rowsort label-7502
SELECT col2 / - 93 * - + ( + col2 ) AS col2, 33 AS col0 FROM tab2 AS cor0
----
0
33
0
33
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - COUNT( * ) * + 87 * 56 AS col2 FROM tab1 cor0
----
-14616

skipif mysql # not compatible
query I rowsort label-7503
SELECT - COUNT ( * ) * + 87 * 56 AS col2 FROM tab1 cor0
----
-14616

query I rowsort
SELECT + col1 + - 83 AS col0 FROM tab2
----
-16
-32
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + 59 col1 FROM tab1
----
123
169
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 0 col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 78 * - col0 FROM tab0
----
1170
6786
7566

query III rowsort
SELECT * FROM tab2 WHERE - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL 95 + + + COUNT( * ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL 95 + + + COUNT ( * ) FROM tab1
----
98

query I rowsort
SELECT - col1 + + 39 AS col1 FROM tab0
----
-42
18
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + COUNT( * ) + 73 + - 74 AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-7513
SELECT + COUNT ( * ) + 73 + - 74 AS col1 FROM tab0
----
2

query I rowsort
SELECT - col1 * + + 30 + - 76 AS col2 FROM tab1
----
-1486
-226
-496

query II rowsort
SELECT 38 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
38
14
38
47
38
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT DISTINCT MAX( col0 ), 11 AS col1 FROM tab1
----
91
11

skipif mysql # not compatible
query II rowsort label-7516
SELECT DISTINCT MAX ( col0 ), 11 AS col1 FROM tab1
----
91
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 1 + + 25 + + col2 NOT BETWEEN 40 AND - + col1
----

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab1 AS cor0 WHERE NOT + col1 / 13 * - col2 IS NULL
----
144
147
159

query II rowsort
SELECT ALL + ( + col1 ), - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT MAX( ALL + col2 ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT MAX ( ALL + col2 ) AS col1 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7521
SELECT ALL + col2 * + 77 AS col2, col0 * - - ( - + col0 ) + - ( + CAST( + + 81 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
1771
-2197
3080
-4177
4466
-5706

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7521
SELECT ALL + col2 * + 77 AS col2, col0 * - - ( - + col0 ) + - ( + CAST ( + + 81 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
1771
-2197
3080
-4177
4466
-5706

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7522
SELECT ALL - COUNT( + 10 ) AS col2, + 50 DIV - 63 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-7522
SELECT ALL - COUNT ( + 10 ) AS col2, + 50 / - 63 FROM tab2 AS cor0
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT DISTINCT + 79 * - + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT + 79 * - + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * ( 26 ) FROM tab2
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - MAX( col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7525
SELECT - MAX ( col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT CAST( - col1 AS SIGNED ) - + col2 AS col0 FROM tab0 WHERE NOT + + 4 IS NULL
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-7526
SELECT CAST ( - col1 AS INTEGER ) - + col2 AS col0 FROM tab0 WHERE NOT + + 4 IS NULL
----
-100
-128
-31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT 1 * - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7528
SELECT 1 * - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT DISTINCT COUNT( * ), + 70 AS col0 FROM tab0
----
3
70

skipif mysql # not compatible
query II rowsort label-7530
SELECT DISTINCT COUNT ( * ), + 70 AS col0 FROM tab0
----
3
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7531
SELECT ALL - 20 DIV - SUM( col0 ) col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7531
SELECT ALL - 20 / - SUM ( col0 ) col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
0

query II rowsort
SELECT DISTINCT + - 32, - col2 * - col2 AS col2 FROM tab0 AS cor0
----
-32
100
-32
2209
-32
9801

onlyif mysql # DIV for integer division: 
query II rowsort label-7533
SELECT - col1 DIV - - col1 + - col0, - col0 col2 FROM tab1 AS cor0
----
-52
-51
-86
-85
-92
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7533
SELECT - col1 / - - col1 + - col0, - col0 col2 FROM tab1 AS cor0
----
-52
-51
-86
-85
-92
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7534
SELECT * FROM tab2 WHERE NOT NULL = ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7534
SELECT * FROM tab2 WHERE NOT NULL = ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT COUNT( * ) AS col0 FROM tab0 WHERE 39 + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7535
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE 39 + col0 <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT - 1 + + ( col0 + col0 DIV col0 ) * - col2 FROM tab1
----
-4993
-5075
-6257

skipif mysql # not compatible
query I rowsort label-7536
SELECT - 1 + + ( col0 + col0 / col0 ) * - col2 FROM tab1
----
-4993
-5075
-6257

query I rowsort
SELECT + 91 + - col0 FROM tab0
----
-6
4
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ( + SUM( ALL + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7538
SELECT ( + SUM ( ALL + col2 ) ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col2 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT MIN( ALL 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7540
SELECT MIN ( ALL 62 ) FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + COUNT( * ) * 45 col1 FROM tab0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT ALL + COUNT ( * ) * 45 col1 FROM tab0
----
135

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( ( col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 / - col2 <= ( - ( 51 ) / 1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7544
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * - ( + COUNT( * ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - ( + COUNT ( * ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT + MAX( DISTINCT + col1 ) * 49 FROM tab2
----
3773

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + MAX ( DISTINCT + col1 ) * 49 FROM tab2
----
3773

query I rowsort
SELECT - col1 + 92 FROM tab1
----
45
78
87

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( ( - col0 ) / + 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL + COUNT( * ) FROM tab1 WHERE - ( + col2 ) IN ( 59 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + COUNT ( * ) FROM tab1 WHERE - ( + col2 ) IN ( 59 * + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL + CAST( NULL AS SIGNED ) + + ( + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( + col0 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * col1 + col2 IS NULL
----

query I rowsort
SELECT ( - ( col2 ) ) * col1 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT + col0 > NULL
----

query I rowsort
SELECT - col0 + 68 * + col0 FROM tab0 WHERE NULL > - col1 * - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 55 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * 57 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1197
-4617
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + 10 NOT BETWEEN - col0 AND col1 + - col0
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + col2 * - col2 IN ( col0 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * col2 col2 FROM tab1
----
-413
-476
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT DISTINCT MIN( + 13 ) * SUM( - col1 DIV 39 + 86 ) + + 10 col2 FROM tab0 AS cor0
----
3338

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7559
SELECT DISTINCT MIN ( + 13 ) * SUM ( - col1 / 39 + 86 ) + + 10 col2 FROM tab0 AS cor0
----
3338

query I rowsort
SELECT ALL 77 - - col0 FROM tab0 AS cor0
----
164
174
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7561
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <> + col1 / 90
----

skipif mysql # not compatible
query III rowsort label-7561
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> + col1 / 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * col1 - col2 col2 FROM tab0 AS cor0 WHERE ( col2 ) < 63
----
-2882
-745

query I rowsort
SELECT DISTINCT col1 - col1 * + 71 FROM tab2 AS cor0
----
-3570
-4690
-5390

query I rowsort
SELECT ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + col1 col1 FROM tab2 WHERE ( + 1 ) NOT IN ( - 78 )
----
59
75
85

query I rowsort
SELECT - 45 * + 4 + + col0 AS col0 FROM tab1
----
-129
-89
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL - SUM( ALL - col0 ) AS col1 FROM tab1 WHERE NOT 20 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL - SUM ( ALL - col0 ) AS col1 FROM tab1 WHERE NOT 20 < ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 * col0 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT + col0 DIV - 6 AS col1 FROM tab2 AS cor0
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-7569
SELECT + col0 / - 6 AS col1 FROM tab2 AS cor0
----
-10
-12
-7

query I rowsort
SELECT ALL + 33 AS col1 FROM tab1 cor0 WHERE NOT - 68 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 52 * col0 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - 7 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 >= 43 * col2 - - 16 * + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - ( 36 * + col2 ) FROM tab0 AS cor0
----
-25380
-31320
-345708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT + 83 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT + 83 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) BETWEEN ( 60 ) AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * 90 + - 20 FROM tab0 cor0 WHERE NOT + col0 + - col2 * - col1 IS NULL
----
1870
70
7270

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT DISTINCT 63 DIV ( col2 ) AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT 63 / ( col2 ) AS col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT - COUNT( * ) * COUNT( 9 / + col0 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7579
SELECT - COUNT ( * ) * COUNT ( 9 / + col0 ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT BETWEEN NULL AND 0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + 72 <> + col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT + SUM( DISTINCT - - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT + SUM ( DISTINCT - - col2 ) AS col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + MAX( + + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7584
SELECT + MAX ( + + col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT ALL 96 * - - col2 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT ALL + 0 * col1 * 31 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 95 * + 34 FROM tab0
----
3230
3230
3230

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <> - col0 + + 0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 <> ( + col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 93 col0 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT + 19 * col2 - col2 AS col2 FROM tab2 AS cor0
----
1044
414
720

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 58 )
----

query I rowsort
SELECT DISTINCT 6 FROM tab0 AS cor0 WHERE NOT - col2 * + col1 IN ( col2 * col1 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + MAX( + 18 ) FROM tab0, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7594
SELECT + MAX ( + 18 ) FROM tab0, tab2 AS cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( + col0 )
----

query I rowsort
SELECT - ( - 6 ) FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT + col2 * - - 74 FROM tab2 cor0
----
1702
2960
4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT 74 + + + 79 * - col2 FROM tab0 AS cor0
----
-3639
-716
-7747

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 + - - 7 ) BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL col2 * - col0 + - col0 FROM tab0 AS cor0 WHERE + col0 * + col2 > + 36 * col2 + + 45 * 4
----
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL + MAX( - 33 ) AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + MAX ( - 33 ) AS col0 FROM tab0
----
-33

query I rowsort
SELECT 79 + col0 FROM tab0
----
166
176
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 56 < + + 7 AND 62 NOT BETWEEN - col2 / 53 + col1 * col2 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 2 + + 59 + ( - - col0 ) * col1 AS col0 FROM tab2
----
2403
4985
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - 17 + COUNT( * ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - 17 + COUNT ( * ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT DISTINCT col1 + + col2 + - col0 * - 68 AS col0 FROM tab2 AS cor0
----
3202
4469
5225

query I rowsort
SELECT + + col0 + - col2 * + + col2 FROM tab2 AS cor0
----
-1536
-3289
-483

query I rowsort
SELECT ALL ( 10 ) FROM tab2 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT MAX( DISTINCT - - col0 ) + - - 87 + - 51 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT MAX ( DISTINCT - - col0 ) + - - 87 + - 51 FROM tab2 AS cor0
----
111

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 8 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 - + - col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL - col2 * 4 - col2 AS col2 FROM tab2 AS cor0
----
-115
-200
-290

query II rowsort
SELECT DISTINCT 49, + 9 AS col1 FROM tab1
----
49
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT COUNT( * ) * + - COUNT( * ) * + 74 FROM tab1
----
-666

skipif mysql # not compatible
query I rowsort label-7615
SELECT COUNT ( * ) * + - COUNT ( * ) * + 74 FROM tab1
----
-666

query I rowsort
SELECT DISTINCT + 57 FROM tab1 AS cor0 WHERE NOT 97 + - - col1 > col0
----

query I rowsort
SELECT DISTINCT - ( 37 ) * - ( 93 + - col2 / - col0 ) FROM tab0 AS cor0 WHERE NOT 15 * + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col1, + 64 + col1 )
----

query I rowsort
SELECT DISTINCT - + col0 * 74 * + 33 FROM tab0 AS cor0
----
-212454
-236874
-36630

query II rowsort
SELECT col2, 52 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
52
40
52
58
52

query II rowsort
SELECT ALL - 83 * col2 * + 70 AS col2, + col2 * + + 4 FROM tab2 cor0
----
-133630
92
-232400
160
-336980
232

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( + 46 * + col0 * - - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( + 46 * + col0 * - - col0 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT + - 20 DIV col0 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT + - 20 / col0 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT ALL col0 - col0 FROM tab0 AS cor0 WHERE ( + col2 * ( + CAST( + - col1 AS SIGNED ) ) ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL col0 - col0 FROM tab0 AS cor0 WHERE ( + col2 * ( + CAST ( + - col1 AS INTEGER ) ) ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL - col1 + + - col0 + 28 FROM tab0 cor0 WHERE col1 + col1 = NULL
----

query I rowsort
SELECT ALL + ( + - col1 ) * - - col2 + + - col2 AS col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT col0 * + + 13 AS col0 FROM tab2
----
598
832
975

query I rowsort
SELECT 22 + + 51 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + 39 + + 67 AS col2 FROM tab2
----
106
106
106

query I rowsort
SELECT + 55 FROM tab0 WHERE NOT - + col0 / - - 88 * + + col1 < col2
----

query I rowsort
SELECT ALL - 67 * - col0 AS col1 FROM tab0
----
1005
5829
6499

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7632
SELECT - 47 AS col1, - col1 + - + CAST( NULL AS SIGNED ) FROM tab0
----
-47
NULL
-47
NULL
-47
NULL

skipif mysql # not compatible
query II rowsort label-7632
SELECT - 47 AS col1, - col1 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
-47
NULL
-47
NULL
-47
NULL

query I rowsort
SELECT DISTINCT + 34 * + col0 AS col0 FROM tab2
----
1564
2176
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT DISTINCT ( col1 ) DIV + + col2 + - col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT ( col1 ) / + + col2 + - col0 AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col2 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT - 72 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col0 * + col2 IN ( col0 )
----
-72
-72
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 19 NOT IN ( ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT - SUM( - 60 ) FROM tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - SUM ( - 60 ) FROM tab1 AS cor0
----
180

query III rowsort
SELECT * FROM tab0 WHERE + - col0 NOT BETWEEN NULL AND - + 25
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT ALL 27 + + CAST( + - AVG ( DISTINCT col0 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL 27 + + CAST ( + - AVG ( DISTINCT col0 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7641
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( CAST( NULL AS DECIMAL ), col1 ) AND NOT ( - 51 * - col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7641
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ), col1 ) AND NOT ( - 51 * - col1 ) IS NULL
----

query I rowsort
SELECT ALL + col0 + + - 12 AS col2 FROM tab1 AS cor0
----
39
73
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - ( + - 32 ) + - - COUNT( * ) col2 FROM tab2 cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7643
SELECT - ( + - 32 ) + - - COUNT ( * ) col2 FROM tab2 cor0
----
35

query I rowsort
SELECT 96 FROM tab2 AS cor0 WHERE NULL IS NULL
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT - ( + col2 ) + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT - ( + col2 ) + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + col0 * - - 56 col0 FROM tab1 AS cor0
----
2786
4690
5026

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col1
----

query I rowsort
SELECT - - 62 * - col1 + col0 + - 69 * - 67 AS col1 FROM tab1 AS cor0
----
1800
3806
4398

query I rowsort
SELECT DISTINCT - + 53 * - - col1 + col2 FROM tab0 AS cor0
----
-1103
-4246
46

query I rowsort
SELECT - - 1 + + - 31 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7651
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - ( - ( - + 17 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT - CAST ( NULL AS REAL ) - - ( - ( - + 17 ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + col0 FROM tab0 AS cor0 WHERE - col2 * + col2 + - col1 IS NOT NULL
----
-66
66
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7653
SELECT DISTINCT - 81 + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * + CAST( NULL AS DECIMAL ) + - 20 * + col0 + + col1 + - - col0 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT - 81 + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * + CAST ( NULL AS REAL ) + - 20 * + col0 + + col1 + - - col0 * + col0 )
----

query I rowsort
SELECT - 36 * - col0 + - + col1 + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
1630
2937
3093

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7655
SELECT DISTINCT - col1 * + - col2 * + + col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
129024
NULL
17405
NULL
217328
NULL

skipif mysql # not compatible
query II rowsort label-7655
SELECT DISTINCT - col1 * + - col2 * + + col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
129024
NULL
17405
NULL
217328
NULL

query I rowsort
SELECT DISTINCT 41 * - + 78 - + col0 AS col1 FROM tab1
----
-3249
-3283
-3289

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7657
SELECT ALL - 28 / ( CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL - 28 / ( CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT + ( + MIN( ALL - col0 ) ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7658
SELECT + ( + MIN ( ALL - col0 ) ) col1 FROM tab2
----
-75

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE col0 BETWEEN NULL AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7660
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7660
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT ALL - + ( + + 6 ) + ( + CAST( NULL AS SIGNED ) ) * - - col2 col2 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7661
SELECT ALL - + ( + + 6 ) + ( + CAST ( NULL AS INTEGER ) ) * - - col2 col2 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT - 57 * - col0 - 80 FROM tab0
----
4879
5449
775

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7663
SELECT + - CAST( NULL AS DECIMAL ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT + - CAST ( NULL AS REAL ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 90 * - 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 018cafe8571bde1126d6e2339093654c

query III rowsort
SELECT * FROM tab0 WHERE NOT + 33 + + col2 <= - - 51 / + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 43 + + - 48 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( - col1 + col2 IS NULL )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * + col2 col1 FROM tab0 AS cor0
----
-2914
-6138
-620

query I rowsort
SELECT + 33 * - - col1 FROM tab0 AS cor0
----
2673
33
693

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT DISTINCT - 66 * + COUNT( * ), + 34 AS col0 FROM tab1 AS cor0
----
-198
34

skipif mysql # not compatible
query II rowsort label-7670
SELECT DISTINCT - 66 * + COUNT ( * ), + 34 AS col0 FROM tab1 AS cor0
----
-198
34

query I rowsort
SELECT - + col0 * 63 + + col2 FROM tab1 AS cor0
----
-3117
-5296
-5665

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - 19 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT + MAX( + 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + MAX ( + 5 ) FROM tab2
----
5

query II rowsort
SELECT col0, + col2 * - col2 FROM tab0
----
15
-2209
87
-100
97
-9801

query I rowsort
SELECT ALL 57 * + - col1 * - + 52 AS col2 FROM tab2
----
151164
198588
228228

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col0, + col1 AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT DISTINCT 2 + COUNT( * ) col0 FROM tab0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT DISTINCT 2 + COUNT ( * ) col0 FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT DISTINCT + 2 + - - col1 DIV ( - + col2 ) * col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT + 2 + - - col1 / ( - + col2 ) * col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL col2 + - col1 - + col2 - - - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-147
45
95

query III rowsort
SELECT * FROM tab0 WHERE - + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7682
SELECT ( COUNT( * ) ) AS col2, 88 col1 FROM tab0
----
3
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7682
SELECT ( COUNT ( * ) ) AS col2, 88 col1 FROM tab0
----
3
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT ALL - 72 + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-67
-72
-72

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - 72 + col1 / + col0 AS col1 FROM tab0 AS cor0
----
-67
-72
-72

query I rowsort
SELECT DISTINCT - 97 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-97

query I rowsort
SELECT DISTINCT + AVG ( - 9 ) AS col1 FROM tab0 AS cor0 WHERE + col0 * - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL col0 + + - 20 + + col0 AS col1 FROM tab0 AS cor0
----
10
154
174

query I rowsort
SELECT DISTINCT col2 * col1 + + - col1 FROM tab2 cor0
----
1122
3003
3819

query I rowsort
SELECT - - col2 - - 62 FROM tab2 AS cor0
----
102
120
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL + COUNT( * ) + - 90 FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL + COUNT ( * ) + - 90 FROM tab2 cor0
----
-87

query I rowsort
SELECT DISTINCT col1 + - 31 * - 94 FROM tab1 AS cor0
----
2919
2928
2961

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - - 85 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 - 71 * 89 col0 FROM tab0
----
-6314
-6314
-6314

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7693
SELECT ALL * FROM tab2 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) > 13 )
----

skipif mysql # not compatible
query III rowsort label-7693
SELECT ALL * FROM tab2 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) > 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) col0 FROM tab2 WHERE + + col1 / col1 < - - 38 * + - col2 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 + - - col2 * col2 IS NULL
----

query I rowsort
SELECT + ( - col0 ) * col2 + - 19 + + - col1 * - 46 + 37 AS col0 FROM tab0 WHERE NULL IS NULL
----
-9539
114
3039

query III rowsort
SELECT * FROM tab1 WHERE + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 38 AS col1 FROM tab1
----
-1938
-3230
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL - 5 * - COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - 5 * - COUNT ( * ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab2 WHERE NOT ( 17 - + + 77 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT DISTINCT + 72 DIV col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + 72 / col2 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE 11 NOT BETWEEN + 91 AND + 26
----
-3

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE 11 NOT BETWEEN + 91 AND + 26
----
-3

query II rowsort
SELECT 47 AS col1, 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 5788aa0ae2a408ec62ff6b89ef57087d

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7705
SELECT * FROM tab2 WHERE NOT ( - CAST( + 82 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7705
SELECT * FROM tab2 WHERE NOT ( - CAST ( + 82 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - col2 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) + - - 66 * + ( 61 ) BETWEEN NULL AND + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT - MIN( ALL - ( CAST( col0 AS SIGNED ) ) ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT - MIN ( ALL - ( CAST ( col0 AS INTEGER ) ) ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - 46 >= NULL
----

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT 64 = - - ( - col1 )
----
51
67
77

query I rowsort
SELECT - 92 * + - ( col2 ) + + 72 FROM tab2 cor0
----
2188
3752
5408

query I rowsort
SELECT - 41 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( + + col2 ) * 95, ( + - 57 ), + col0, 66 )
----

query I rowsort
SELECT ALL - + ( + ( - + col1 ) ) FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT 68 + - ( + 71 ) AS col0, 25 FROM tab0 AS cor0
----
-3
25
-3
25
-3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT DISTINCT + SUM( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT + SUM ( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT + col0 + - 4 FROM tab2
----
42
60
71

query I rowsort
SELECT - col2 + - 33 + + - col0 + col2 FROM tab0
----
-120
-130
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT col1 + + col2 DIV ( col0 ) + col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-7719
SELECT col1 + + col2 / ( col0 ) + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + - col0 + + 57 FROM tab1 WHERE NOT - ( - col2 ) * - - col2 IS NULL
----
-28
-34
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT DISTINCT + COUNT( DISTINCT - col0 ) * - COUNT( * ) + COUNT( * ) col1 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7721
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) * - COUNT ( * ) + COUNT ( * ) col1 FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col1 + + - col2 / col0, - col1 + + + 82 + + ( - + 56 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 43 NOT BETWEEN NULL AND + 87
----

query I rowsort
SELECT DISTINCT 9 * - - col0 + - 85 + col0 * - - 15 * + col2 AS col0 FROM tab0 AS cor0
----
10625
13748
144833

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - - MAX( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7725
SELECT - - MAX ( - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + 84 NOT BETWEEN NULL AND + - 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( - col0 ) - + + ( - + col1 ) + - col1 col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

query II rowsort
SELECT ALL + - col0 * - - col0, - col2 AS col0 FROM tab1 AS cor0
----
-2601
-96
-7225
-59
-8281
-68

query I rowsort
SELECT 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT - COUNT( * ) + + + COUNT( * ) + + ( + - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7730
SELECT - COUNT ( * ) + + + COUNT ( * ) + + ( + - COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT - COUNT( * ) + - 78 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - COUNT ( * ) + - 78 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT + + COUNT( 22 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + + COUNT ( 22 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT COUNT( * ) + - SUM( - col0 ) FROM tab2 cor0
----
188

skipif mysql # not compatible
query I rowsort label-7733
SELECT COUNT ( * ) + - SUM ( - col0 ) FROM tab2 cor0
----
188

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - + col1 * + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7735
SELECT CAST( NULL AS DECIMAL ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT CAST ( NULL AS REAL ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT - + ( + + col2 ) + - - col0 < col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT 22 * - SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
-4906

skipif mysql # not compatible
query I rowsort label-7737
SELECT 22 * - SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
-4906

query I rowsort
SELECT ( + col0 ) * - - 24 * ( - col1 ) AS col0 FROM tab2
----
-118272
-120600
-56304

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT - ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7739
SELECT - ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + 21 * - + col1 * + 24 AS col1 FROM tab2 AS cor0
----
-25704
-33768
-38808

query I rowsort
SELECT 68 * - 48 AS col1 FROM tab0 AS cor0
----
-3264
-3264
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL ( + COUNT( DISTINCT col0 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL ( + COUNT ( DISTINCT col0 ) ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 15 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
15
-1
15
-21
15
-81

query II rowsort
SELECT DISTINCT 55 AS col1, col1 * + col2 FROM tab2 AS cor0
----
55
1173
55
3080
55
3886

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col1 NOT BETWEEN NULL AND + + 43 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7746
SELECT DISTINCT col2 DIV + 97 AS col2, + col2 AS col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-7746
SELECT DISTINCT col2 / + 97 AS col2, + col2 AS col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7747
SELECT ALL CAST( - col2 AS SIGNED ), 67 + col1 + - + col2 AS col1 FROM tab1
----
-59
13
-68
46
-96
-15

skipif mysql # not compatible
query II rowsort label-7747
SELECT ALL CAST ( - col2 AS INTEGER ), 67 + col1 + - + col2 AS col1 FROM tab1
----
-59
13
-68
46
-96
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + COUNT( 92 ) * - 40 AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7748
SELECT + COUNT ( 92 ) * - 40 AS col2 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT DISTINCT - col0 * col1 + - col0 - - col0 - - col0 AS col2 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL col1 * - ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT 56 * COUNT( * ) FROM tab0 cor0
----
168

skipif mysql # not compatible
query I rowsort label-7751
SELECT 56 * COUNT ( * ) FROM tab0 cor0
----
168

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 52 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * - col0 col2 FROM tab1 AS cor0
----
-357
-595
-637

query III rowsort
SELECT * FROM tab1 WHERE - - 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + SUM( + 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-7756
SELECT + SUM ( + 80 ) FROM tab0
----
240

query I rowsort
SELECT - col0 + + 61 + - col2 FROM tab2
----
-43
-72
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT ALL 95 + + COUNT( ALL - col1 ) * + COUNT( * ) AS col2 FROM tab2
----
104

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL 95 + + COUNT ( ALL - col1 ) * + COUNT ( * ) AS col2 FROM tab2
----
104

onlyif mysql # DIV for integer division: 
query II rowsort label-7759
SELECT col2 + - 79 + + 71 AS col2, + 0 DIV col1 * - - col1 col0 FROM tab1 cor0
----
51
0
60
0
88
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7759
SELECT col2 + - 79 + + 71 AS col2, + 0 / col1 * - - col1 col0 FROM tab1 cor0
----
51
0
60
0
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT + - MAX( col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT + - MAX ( col1 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT - MIN( ALL + col2 ) FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab0 WHERE NOT - + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT + COUNT( * ) * + 98 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-7762
SELECT + COUNT ( * ) * + 98 FROM tab0
----
294

query I rowsort
SELECT - 83 * + col0 AS col0 FROM tab0
----
-1245
-7221
-8051

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * - 34 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL + CAST( - col0 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + CAST ( - col0 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT - COUNT( DISTINCT col1 ) + + ( COUNT( ALL - 60 ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - COUNT ( DISTINCT col1 ) + + ( COUNT ( ALL - 60 ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT - col2 DIV + col2 - - col1 AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-7767
SELECT - col2 / + col2 - - col1 AS col2 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT + AVG ( + - 22 ) FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL ( + - MAX( ALL 5 ) ) + - - SUM( + col0 ) + - 93 AS col1 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL ( + - MAX ( ALL 5 ) ) + - - SUM ( + col0 ) + - 93 AS col1 FROM tab2 AS cor0
----
87

query I rowsort
SELECT ALL + ( - - 52 ) AS col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL - - 3 * + - 17 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ALL col2 * - + 8 AS col0 FROM tab0 cor0
----
-376
-792
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - 82 * - COUNT( * ) AS col0 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 82 * - COUNT ( * ) AS col0 FROM tab0
----
246

query II rowsort
SELECT - col2 AS col1, col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + MAX( ALL + - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7776
SELECT + MAX ( ALL + - col2 ) FROM tab2
----
-23

query I rowsort
SELECT ALL - ( - 53 ) FROM tab0
----
53
53
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 * col0 + - ( - - 24 ) * + + col0 / 39 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7779
SELECT ALL - 49 * + + 67 + - ( + ( + COUNT( * ) ) ), 10 * - + MAX( - 81 ) * MIN( DISTINCT - col0 ) - 6 + + + 3 col0 FROM tab2 cor0
----
-3286
-60753

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7779
SELECT ALL - 49 * + + 67 + - ( + ( + COUNT ( * ) ) ), 10 * - + MAX ( - 81 ) * MIN ( DISTINCT - col0 ) - 6 + + + 3 col0 FROM tab2 cor0
----
-3286
-60753

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT + MIN( DISTINCT - - col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-7780
SELECT + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2 cor0
----
46

query II rowsort
SELECT - + col0 AS col1, - 84 FROM tab2 AS cor0
----
-46
-84
-64
-84
-75
-84

query II rowsort
SELECT ALL - 24, - col0 * - + 21 * - col2 AS col2 FROM tab0 cor0
----
-24
-14805
-24
-18270
-24
-201663

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab0, tab2 AS cor0
----
71

query I rowsort
SELECT ALL - 31 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ALL - 16 + + ( col2 ) AS col2 FROM tab2
----
24
42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - MIN( col0 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - MIN ( col0 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT ( 6 ) * + MIN( DISTINCT + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7788
SELECT ( 6 ) * + MIN ( DISTINCT + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - col2 + 1 * - col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query II rowsort
SELECT DISTINCT + + col0, + 5 AS col1 FROM tab0 cor0
----
15
5
87
5
97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT + ( + 60 ) + - COUNT( * ) FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-7791
SELECT + ( + 60 ) + - COUNT ( * ) FROM tab0 cor0
----
57

query I rowsort
SELECT ( - col0 ) + col1 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + + ( - + 72 ) + + + SUM( DISTINCT 14 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7793
SELECT + + ( - + 72 ) + + + SUM ( DISTINCT 14 ) FROM tab0 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7794
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + CAST( + col1 AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-7794
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + CAST ( + col1 AS INTEGER ) AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE - ( + 81 ) + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col1 + - + ( - + col0 ) AS col2 FROM tab0
----
-1200
-1740
0

query II rowsort
SELECT ALL + 20 AS col2, col2 FROM tab1 AS cor0
----
20
59
20
68
20
96

query I rowsort
SELECT - 40 * 8 FROM tab0 cor0
----
-320
-320
-320

query I rowsort
SELECT DISTINCT - - col0 * - col2 - - col1 + - - col1 FROM tab0 AS cor0
----
-543
-828
-9601

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 83 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - + col2 * 0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * ( + col0 ) + + 69 FROM tab2 AS cor0
----
-2047
-4027
-5556

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL + + MAX( - - 73 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL + + MAX ( - - 73 ) FROM tab1 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, - col1 + - 96 col0 FROM tab1 AS cor0
----
-14
-110
-47
-143
-5
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT + AVG ( - + 57 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT + AVG ( - + 57 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col2 FROM tab1
----
13

query I rowsort
SELECT DISTINCT + col0 * - + 23 AS col1 FROM tab0
----
-2001
-2231
-345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col2, col2 col1 FROM tab0
----
705
47
870
10
9603
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col1 + + + col0 <= - col0
----
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col0 * - col1 col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT DISTINCT col0 * - 38 - - - 95 + - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1982
-3240
-3462

query I rowsort
SELECT + col2 * - + col2 + - + 35 FROM tab2
----
-1635
-3399
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT 50 + - COUNT( * ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7814
SELECT 50 + - COUNT ( * ) FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT COUNT( * ) + + - 71 AS col1 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-7815
SELECT COUNT ( * ) + + - 71 AS col1 FROM tab0
----
-68

query II rowsort
SELECT col0 AS col0, + col0 AS col2 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT ALL - 72 + + - SUM( ALL - col0 ) col0, + COUNT( - ( + col1 ) ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
127
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7817
SELECT ALL - 72 + + - SUM ( ALL - col0 ) col0, + COUNT ( - ( + col1 ) ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
127
9

query I rowsort
SELECT DISTINCT + col0 + + - 72 FROM tab0 AS cor0
----
-57
15
25

query I rowsort
SELECT ALL + + 41 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT + 11 * + 92 + - col0 AS col0 FROM tab2 AS cor0
----
937
948
966

query I rowsort
SELECT DISTINCT - + ( - - 38 ) + + col2 FROM tab2 AS cor0
----
-15
2
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT ALL 97 * ( + + COUNT( * ) ) DIV 57 + COUNT( + + col1 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL 97 * ( + + COUNT ( * ) ) / 57 + COUNT ( + + col1 ) FROM tab2 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7824
SELECT ALL + COUNT( * ) AS col0, SUM( ALL + col1 ) col0 FROM tab2
----
3
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7824
SELECT ALL + COUNT ( * ) AS col0, SUM ( ALL + col1 ) col0 FROM tab2
----
3
195

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7826
SELECT * FROM tab2 WHERE ( + 70 - CAST( NULL AS SIGNED ) + + col0 * - col1 * - col2 * col2 / + col0 ) = + 94
----

skipif mysql # not compatible
query III rowsort label-7826
SELECT * FROM tab2 WHERE ( + 70 - CAST ( NULL AS INTEGER ) + + col0 * - col1 * - col2 * col2 / + col0 ) = + 94
----

query I rowsort
SELECT - 2 + col0 FROM tab2
----
44
62
73

query II rowsort
SELECT ALL col1, - col1 AS col2 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - MIN( col2 ) + - - 30 AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-7829
SELECT - MIN ( col2 ) + - - 30 AS col1 FROM tab0
----
20

query I rowsort
SELECT + col1 + - - 3 AS col0 FROM tab1
----
17
50
8

query III rowsort
SELECT * FROM tab0 WHERE 37 IS NULL
----

query II rowsort
SELECT ALL + 86 + + + col0 * - col0 * col2 AS col0, - col1 FROM tab1
----
-249610
-14
-426189
-5
-563022
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL COUNT( ALL - + ( col2 ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * 71
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL COUNT ( ALL - + ( col2 ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + COUNT( DISTINCT + - 79 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7835
SELECT + COUNT ( DISTINCT + - 79 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7836
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-7836
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT 49 - + - MIN( - ( + + 54 ) ) FROM tab1, tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7838
SELECT 49 - + - MIN ( - ( + + 54 ) ) FROM tab1, tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + - 36 AS col2 FROM tab2 cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + - 89 FROM tab2 AS cor0 WHERE NOT - 89 IS NULL
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + + 48, 52 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN 4 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7844
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 79 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 48
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7847
SELECT + + 31 DIV + col2 + + CAST( + + 2 AS SIGNED ) FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7847
SELECT + + 31 / + col2 + + CAST ( + + 2 AS INTEGER ) FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL - - COUNT( * ) FROM tab1 WHERE NULL > - col1 + + 30
----
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NULL > - col1 + + 30
----
0

query II rowsort
SELECT ALL col2, 99 FROM tab0
----
10
99
47
99
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT COUNT( * ) AS col0, 69 * + 42 FROM tab1
----
3
2898

skipif mysql # not compatible
query II rowsort label-7850
SELECT COUNT ( * ) AS col0, 69 * + 42 FROM tab1
----
3
2898

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7851
SELECT col1, + CAST( NULL AS SIGNED ) * + - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7851
SELECT col1, + CAST ( NULL AS INTEGER ) * + - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT + - col0, + col0 AS col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT MIN( - + 91 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT MIN ( - + 91 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND col0
----

query I rowsort
SELECT ALL 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT col0 DIV - - 23 AS col0 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-7856
SELECT col0 / - - 23 AS col0 FROM tab1
----
2
3
3

query III rowsort
SELECT * FROM tab0 WHERE 13 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT + + 57 + - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT + + 57 + - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
48

query I rowsort
SELECT DISTINCT - col0 + + + col0 * + + col2 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT ALL + col0 + - 64 FROM tab0 AS cor0
----
-49
23
33

query I rowsort
SELECT 45 / + + col2 - + 78 + - 91 + col2 / + 15 FROM tab1 cor0 WHERE 1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - 10 AS col1 FROM tab1 AS cor0
----
-5
37
4

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE ( NULL ) = - col0
----

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - col0 + - - col0 * - 20 AS col1 FROM tab1 AS cor0
----
-1122
-1870
-2002

query I rowsort
SELECT + col1 * - ( - col0 ) * 63 FROM tab1
----
26775
269451
44982

onlyif mysql # aggregate syntax: 
query II rowsort label-7868
SELECT ALL 27 * - - MIN( ALL + col1 ) AS col2, - COUNT( * ) FROM tab0
----
27
-3

skipif mysql # not compatible
query II rowsort label-7868
SELECT ALL 27 * - - MIN ( ALL + col1 ) AS col2, - COUNT ( * ) FROM tab0
----
27
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 76
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7870
SELECT - CAST( - AVG ( ALL + + CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT - CAST ( - AVG ( ALL + + CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) * + col1 + + - 93 + - 73 col2 FROM tab1
----
-4443
-591
-880

onlyif mysql # DIV for integer division: 
query II rowsort label-7872
SELECT ALL col0 DIV + col0 AS col1, col0 FROM tab0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-7872
SELECT ALL col0 / + col0 AS col1, col0 FROM tab0
----
1
15
1
87
1
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT DISTINCT CAST( - 36 AS SIGNED ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT CAST ( - 36 AS INTEGER ) AS col1 FROM tab0
----
-36

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 <= + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + col1 + + - 20 col1 FROM tab0 AS cor0 WHERE NOT - ( - + 61 ) * - col0 / col2 IS NULL
----
76
78
88

query II rowsort
SELECT + + 47, col1 AS col1 FROM tab0 cor0
----
47
1
47
21
47
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7877
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + CAST( NULL AS SIGNED ) + - 69
----

skipif mysql # not compatible
query III rowsort label-7877
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + CAST ( NULL AS INTEGER ) + - 69
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 9 * col1 * - 42 IS NULL )
----

query I rowsort
SELECT ALL + + 16 FROM tab1 AS cor0 WHERE NOT + 20 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 84 IS NULL
----

query II rowsort
SELECT ALL + 79, + col1 FROM tab2 AS cor0
----
79
51
79
67
79
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT + col2 DIV + ( - 46 ) AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT + col2 / + ( - 46 ) AS col1 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7883
SELECT ( + COUNT( * ) ) col0, COUNT( * ) * + - 45 AS col2 FROM tab0
----
3
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7883
SELECT ( + COUNT ( * ) ) col0, COUNT ( * ) * + - 45 AS col2 FROM tab0
----
3
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT - - COUNT( 76 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT - - COUNT ( 76 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + ( + - col0 ) ) col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT col2 * ( + col2 ) FROM tab1 AS cor0 WHERE NOT - 23 * 41 * - col2 * + col0 <= - - col1
----
3481
4624
9216

query I rowsort
SELECT ALL 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - MAX( - 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7888
SELECT - MAX ( - 69 ) FROM tab0
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-7889
SELECT - 82 AS col2, - 38 DIV - - col1 AS col0 FROM tab2 AS cor0
----
-82
0
-82
0
-82
0

skipif mysql # not compatible
query II rowsort label-7889
SELECT - 82 AS col2, - 38 / - - col1 AS col0 FROM tab2 AS cor0
----
-82
0
-82
0
-82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT COUNT( ALL - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7890
SELECT COUNT ( ALL - col1 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - ( - ( - col1 ) ) + col0 AS col1 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT ALL - + 79 + + col1 + + ( + - ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + col0 * - - col2 + - col2 + + ( + col0 ) * + 33 - - 35 FROM tab0 AS cor0
----
1188
12740
3766

query I rowsort
SELECT ALL - + col2 + - - col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN CAST( NULL AS SIGNED ) AND + col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col2 ) + + col1 col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - col2 - + 43 FROM tab2
----
-101
-66
-83

query I rowsort
SELECT ALL + col2 - 94 * + + 25 - - - 29 AS col1 FROM tab2
----
-2321
-2339
-2356

query I rowsort
SELECT - ( - 96 ) + + col1 AS col0 FROM tab0
----
117
177
97

query I rowsort
SELECT ALL 11 FROM tab2 WHERE NOT col1 * - col2 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL + SUM( ALL - + 67 ) FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + SUM ( ALL - + 67 ) FROM tab2
----
-201

query I rowsort
SELECT ALL + col2 + + - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + 62 + - - col1 * - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT ALL ( + ( - COUNT( * ) ) ) DIV - 1 AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL ( + ( - COUNT ( * ) ) ) / - 1 AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 41 * + - col0, + 80 AS col2 FROM tab0 cor0
----
-3567
80
-3977
80
-615
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 73 * - + ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 92 * - + 42 * - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT CAST( - + col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7908
SELECT CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 48 * 94 AS col2 FROM tab2
----
4512
4512
4512

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) <= + ( + col1 ) OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7911
SELECT - CAST( 48 AS SIGNED ) * - - CAST( + MIN( + col2 ) AS SIGNED ) AS col2, - 63 AS col1 FROM tab1 AS cor0
----
-2832
-63

skipif mysql # not compatible
query II rowsort label-7911
SELECT - CAST ( 48 AS INTEGER ) * - - CAST ( + MIN ( + col2 ) AS INTEGER ) AS col2, - 63 AS col1 FROM tab1 AS cor0
----
-2832
-63

query I rowsort
SELECT ALL - ( - 61 ) FROM tab2 cor0
----
61
61
61

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT - col0 DIV - - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7914
SELECT - col0 / - - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab2 AS cor0 WHERE NOT - 98 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT SUM( ALL 67 ) AS col0 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-7916
SELECT SUM ( ALL 67 ) AS col0 FROM tab2
----
201

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 * + + col2 AS col1 FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT col0 + + 9 FROM tab1
----
100
60
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT ALL 28 DIV col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL 28 / col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL + MAX( - col0 ) col2 FROM tab1 WHERE NULL IN ( + 60 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7920
SELECT ALL + MAX ( - col0 ) col2 FROM tab1 WHERE NULL IN ( + 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL - SUM( ALL + ( col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - SUM ( ALL + ( col2 ) ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col0 * - col0 col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT - ( + COUNT( ALL col1 ) ) AS col0 FROM tab2 AS cor0 WHERE col2 * - + col2 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT - ( + COUNT ( ALL col1 ) ) AS col0 FROM tab2 AS cor0 WHERE col2 * - + col2 >= - col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7924
SELECT - 97 AS col1, COUNT( * ) FROM tab1 AS cor0
----
-97
3

skipif mysql # not compatible
query II rowsort label-7924
SELECT - 97 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-97
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT - MAX( DISTINCT + col1 ) DIV - 46 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7925
SELECT - MAX ( DISTINCT + col1 ) / - 46 AS col0 FROM tab1
----
1

query II rowsort
SELECT ALL - - 47 AS col2, 73 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 00c1eb8744bec593cc8ac796adabd604

query I rowsort
SELECT DISTINCT + - 51 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 80 + - + ( + col0 ) + - col2 * col0 * - ( + - ( + - 6 ) ) * + 57 AS col1 FROM tab2
----
1487545
361710
875376

query I rowsort
SELECT ( - 52 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < - 11 - + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7931
SELECT ALL - 68 col1 FROM tab2 AS cor0 WHERE ( + col2 / - ( + 84 ) <> + col1 * + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7931
SELECT ALL - 68 col1 FROM tab2 AS cor0 WHERE ( + col2 / - ( + 84 ) <> + col1 * + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + 69 + + col1 AS col2 FROM tab2 cor0
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT + 76 + - COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + 76 + - COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7934
SELECT - COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL ( col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 - - col2 + + - col0 FROM tab0 AS cor0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT MIN( ALL - + col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7938
SELECT DISTINCT MIN ( ALL - + col2 ) col2 FROM tab2
----
-58

query I rowsort
SELECT ALL 19 - - col0 AS col0 FROM tab2
----
65
83
94

query II rowsort
SELECT - 91 AS col2, - 37 AS col0 FROM tab0
----
-91
-37
-91
-37
-91
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < 58 - - + 76 - + + 70 * - + 27 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7943
SELECT * FROM tab2 WHERE NOT ( - - col2 ) < CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-7943
SELECT * FROM tab2 WHERE NOT ( - - col2 ) < CAST ( NULL AS INTEGER ) + - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7944
SELECT col2, col1 * - col1 DIV col1 * col2 - + col0 AS col0 FROM tab2
----
23
-1219
40
-3144
58
-3961

skipif mysql # not compatible
query II rowsort label-7944
SELECT col2, col1 * - col1 / col1 * col2 - + col0 AS col0 FROM tab2
----
23
-1219
40
-3144
58
-3961

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query II rowsort
SELECT ALL + 42 * - col0 - - + col0 + + 28, + col1 FROM tab0 AS cor0
----
-3539
21
-3949
1
-587
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 29 col2, ( - 80 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + 83 FROM tab1, tab1 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT - 69 * + col2 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL - COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT ALL + col0 DIV + 7 AS col0 FROM tab1 AS cor0
----
12
13
7

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + col0 / + 7 AS col0 FROM tab1 AS cor0
----
12
13
7

query II rowsort
SELECT + col2 * + - 75 * col1 * 49 AS col1, col0 - - col2 FROM tab2 AS cor0
----
-11319000
104
-14281050
133
-4310775
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7953
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 * - 57 AS col0 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT - col1 + - - col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT - MIN( ALL + col0 ) + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT - MIN ( ALL + col0 ) + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL + + 22 + + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + + 22 + + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT - col1 + + + 9 AS col2 FROM tab2 AS cor0
----
-42
-58
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT DISTINCT COUNT( * ) AS col1, MIN( - - col2 ) FROM tab0 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-7961
SELECT DISTINCT COUNT ( * ) AS col1, MIN ( - - col2 ) FROM tab0 AS cor0
----
3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT - COUNT( ALL - - col1 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7962
SELECT DISTINCT - COUNT ( ALL - - col1 ) col1 FROM tab0
----
-3

query I rowsort
SELECT ALL - ( + 43 ) + - col0 FROM tab0
----
-130
-140
-58

query I rowsort
SELECT ALL + col2 * - col1 + col2 - col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT DISTINCT col2 + CAST( - - col1 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT col2 + CAST ( - - col1 AS INTEGER ) FROM tab2
----
117
125
74

query I rowsort
SELECT col1 * - col0 * + col0 AS col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT ALL 29 + - 89 * + 4 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT + + col1 DIV + ( - + 39 ) - + - 11 * - col0 FROM tab0 AS cor0
----
-1067
-167
-957

skipif mysql # not compatible
query I rowsort label-7968
SELECT + + col1 / + ( - + 39 ) - + - 11 * - col0 FROM tab0 AS cor0
----
-1067
-167
-957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT CAST( NULL AS SIGNED ) - + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT CAST ( NULL AS INTEGER ) - + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - col1 - col0 * - ( - 84 ) FROM tab1 AS cor0
----
-11921
-4998
-7565

query I rowsort
SELECT ALL - col0 + - - 46 AS col0 FROM tab0 AS cor0
----
-41
-51
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT + ( - CAST( NULL AS SIGNED ) ) * - + 47 * + col2 + col2 * - col1 * + + 5 col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7972
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - + 47 * + col2 + col2 * - col1 * + + 5 col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 96 - - col0 AS col1 FROM tab1 cor0
----
-11
-45
-5

query I rowsort
SELECT 77 * 18 FROM tab2
----
1386
1386
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL - CAST( + MIN( - 73 ) AS SIGNED ) col1 FROM tab0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7975
SELECT ALL - CAST ( + MIN ( - 73 ) AS INTEGER ) col1 FROM tab0
----
73

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE col1 + + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7977
SELECT DISTINCT col2 * + - CAST( + col0 AS SIGNED ) * - - 28 - + 10 AS col1, + ( 5 ) + + - 3 AS col0 FROM tab0
----
-19750
2
-24370
2
-268894
2

skipif mysql # not compatible
query II rowsort label-7977
SELECT DISTINCT col2 * + - CAST ( + col0 AS INTEGER ) * - - 28 - + 10 AS col1, + ( 5 ) + + - 3 AS col0 FROM tab0
----
-19750
2
-24370
2
-268894
2

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT + 18 * + + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + 18 * + + COUNT ( * ) FROM tab2
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 >= - + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 20 <= col0 + + 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT DISTINCT - col0 + col0 + + col2 DIV + col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - col0 + col0 + + col2 / + col0 FROM tab0 AS cor0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 * - ( - - 34 ) - - + col0 col0 FROM tab0 AS cor0
----
130
2688
780

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT - SUM( DISTINCT 80 ) FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - SUM ( DISTINCT 80 ) FROM tab2 cor0
----
-80

query I rowsort
SELECT ALL - - col2 + 94 FROM tab0 AS cor0
----
104
141
193

query I rowsort
SELECT ALL + col0 + - 8 - - - 0 FROM tab2 AS cor0
----
38
56
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7987
SELECT DISTINCT + - 22 AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-22
-3

skipif mysql # not compatible
query II rowsort label-7987
SELECT DISTINCT + - 22 AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-22
-3

query II rowsort
SELECT + col0, + 36 * + col2 * + + 8 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 > col0 + - col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT 9 + - 99, ( - 12 ) + MAX( DISTINCT col0 ) AS col0 FROM tab2
----
-90
63

skipif mysql # not compatible
query II rowsort label-7990
SELECT 9 + - 99, ( - 12 ) + MAX ( DISTINCT col0 ) AS col0 FROM tab2
----
-90
63

query II rowsort
SELECT col1 + - - col2 AS col0, - col0 + + col0 * col0 - + col2 * 6 FROM tab0
----
100
8718
128
-72
31
7422

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL MAX( DISTINCT - 98 ) * 17 AS col0 FROM tab2
----
-1666

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL MAX ( DISTINCT - 98 ) * 17 AS col0 FROM tab2
----
-1666

query I rowsort
SELECT + col0 * - col0 * + + 38 + - + 44 + + col2 + + col1 AS col1 FROM tab2
----
-155575
-213669
-80378

query I rowsort
SELECT col0 + - col0 - + - col1 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 36 * + 2 FROM tab1
----
-72

query III rowsort
SELECT * FROM tab0 WHERE - 75 NOT BETWEEN + 98 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 32 IS NOT NULL
----

query I rowsort
SELECT ALL 74 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL + col2 * ( col1 ) FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - - 45 + + col1 * 45 FROM tab0 AS cor0
----
3690
90
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - SUM( + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - SUM ( + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT col1 * + + 73 FROM tab0 AS cor0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT MAX( + 34 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8004
SELECT MAX ( + 34 ) FROM tab0 AS cor0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT DISTINCT + MAX( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8006
SELECT DISTINCT * FROM tab1 WHERE - CAST( - ( - ( - col1 ) ) AS SIGNED ) * - 23 * - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8006
SELECT DISTINCT * FROM tab1 WHERE - CAST ( - ( - ( - col1 ) ) AS INTEGER ) * - 23 * - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 5 AS col1, + col0 FROM tab0
----
-5
15
-5
87
-5
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT 41 + + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT 41 + + - col2 IS NOT NULL
----
0

query I rowsort
SELECT + - col0 AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT ALL COUNT( DISTINCT col1 ) DIV + + 26 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL COUNT ( DISTINCT col1 ) / + + 26 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT + 94 * COUNT( * ) * + COUNT( * ) - - 49 AS col0 FROM tab1 cor0 WHERE NOT + col1 + 84 IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-8012
SELECT + 94 * COUNT ( * ) * + COUNT ( * ) - - 49 AS col0 FROM tab1 cor0 WHERE NOT + col1 + 84 IS NOT NULL
----
49

query I rowsort
SELECT 58 * ( 58 ) + - col1 AS col2 FROM tab2 AS cor0
----
3287
3297
3313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8014
SELECT + 40 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8014
SELECT + 40 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT - 44 * - MAX( DISTINCT - 78 ) FROM tab0 AS cor0
----
-3432

skipif mysql # not compatible
query I rowsort label-8015
SELECT - 44 * - MAX ( DISTINCT - 78 ) FROM tab0 AS cor0
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT 9 * + + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-1404

skipif mysql # not compatible
query I rowsort label-8016
SELECT 9 * + + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-1404

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT ALL - col1 + col2 + - + col1 DIV 14 * - - col2 + col2 FROM tab0
----
-11
-222
197

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - col1 + col2 + - + col1 / 14 * - - col2 + col2 FROM tab0
----
-11
-222
197

query I rowsort
SELECT + 29 + + col1 + 64 AS col0 FROM tab2 WHERE NOT + 20 + + - col2 IS NULL
----
144
160
170

query I rowsort
SELECT DISTINCT 86 + ( - 12 ) AS col0 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + 78 + 40 + + - MIN( ALL - + 31 ) AS col2 FROM tab2 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + 78 + 40 + + - MIN ( ALL - + 31 ) AS col2 FROM tab2 AS cor0
----
149

query I rowsort
SELECT - col2 * 82 * + + 7 * col0 FROM tab2 AS cor0
----
-1469440
-2496900
-607292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 18 + + + col2 col0 FROM tab1 AS cor0
----
128
133
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT DISTINCT MIN( - col0 ) AS col0, 70 - 83 col2 FROM tab0 AS cor0
----
-97
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8023
SELECT DISTINCT MIN ( - col0 ) AS col0, 70 - 83 col2 FROM tab0 AS cor0
----
-97
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + + col2 * + + 9, 48 + 4 * + + col2 col1 FROM tab1 AS cor0
----
472
284
544
320
768
432

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 48 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT col2 DIV ( + - ( + - col1 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT col2 / ( + - ( + - col1 ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT + COUNT( * ) + + - 10 AS col0 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-8027
SELECT + COUNT ( * ) + + - 10 AS col0 FROM tab2
----
-7

query III rowsort
SELECT * FROM tab2 WHERE col0 * col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + - 63 FROM tab1
----
-3213
-5355
-5733

query I rowsort
SELECT ALL col0 + - - col0 * - col0 FROM tab0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8031
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NULL = - col0 / + - 19
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NULL = - col0 / + - 19
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT DISTINCT - 75 DIV - col2 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT - 75 / - col2 FROM tab2
----
1
3

query I rowsort
SELECT 61 + - 83 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT + 42 * col1 + - col2 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT CAST( NULL AS SIGNED ) / 49 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT CAST ( NULL AS INTEGER ) / 49 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col0 + + 83 FROM tab2
----
2429
5011
5108

query I rowsort
SELECT - ( - 13 ) + + col2 AS col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT 13 FROM tab0 WHERE NOT - 42 * + 50 + 96 NOT BETWEEN ( + 66 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col2 FROM tab0
----
18
18
18

query I rowsort
SELECT col2 + 68 AS col0 FROM tab0
----
115
167
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + 77 + + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-8043
SELECT + 77 + + COUNT ( * ) FROM tab2
----
80

query I rowsort
SELECT col2 + col2 * + col0 AS col1 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT - 62 * + col2 FROM tab2 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 BETWEEN ( col0 ) + - col1 / + col2 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + 71 - + MIN( DISTINCT + col0 ) FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT + 71 - + MIN ( DISTINCT + col0 ) FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT COUNT( * ) DIV 89 FROM tab0 WHERE col0 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT COUNT ( * ) / 89 FROM tab0 WHERE col0 + + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col2 FROM tab0 WHERE 24 IS NOT NULL
----
37

query I rowsort
SELECT DISTINCT - ( + 9 ) FROM tab1 AS cor0 WHERE ( col1 ) > NULL
----

query I rowsort
SELECT 90 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - 91 AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL MAX( col1 ) * 31 FROM tab2
----
2387

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL MAX ( col1 ) * 31 FROM tab2
----
2387

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL NOT IN ( + 70 )
----

query I rowsort
SELECT ( col1 ) FROM tab1 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT + + col0 * + col0 + col1 FROM tab1 cor0
----
2615
7230
8328

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT - COUNT( * ) + + ( COUNT( ALL col0 ) + 73 ) * 89 FROM tab1 AS cor0
----
6761

skipif mysql # not compatible
query I rowsort label-8057
SELECT - COUNT ( * ) + + ( COUNT ( ALL col0 ) + 73 ) * 89 FROM tab1 AS cor0
----
6761

query I rowsort
SELECT DISTINCT 53 + 45 FROM tab1 AS cor0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT + col2 + - col0 DIV - col1 FROM tab1 cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-8059
SELECT + col2 + - col0 / - col1 FROM tab1 cor0
----
69
76
99

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + ( MIN( ALL - 33 ) ) + - MAX( ALL 98 ) AS col0 FROM tab2 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-8061
SELECT + ( MIN ( ALL - 33 ) ) + - MAX ( ALL 98 ) AS col0 FROM tab2 AS cor0
----
-131

query I rowsort
SELECT ALL + ( + col1 ) * col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT + - 78 + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8063
SELECT + - 78 + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT col0 * + - col1 * col0 + - col0 AS col0 FROM tab2
----
-107962
-315456
-376950

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT ALL + col2 - - col1 + - 3 DIV ( 7 * - col2 + col0 ) AS col0 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + col2 - - col1 + - 3 / ( 7 * - col2 + col0 ) AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT - col2 * + 62 FROM tab1
----
-3658
-4216
-5952

query I rowsort
SELECT ALL + 74 FROM tab0 WHERE + 57 * col1 < col2 / - 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 + + 62 col1 FROM tab1
----
148
148
148

query I rowsort
SELECT + ( + 17 ) - + col1 * col0 FROM tab2 AS cor0
----
-2329
-4911
-5008

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT DISTINCT + - 58 + + col0 + - col1 DIV - col2 FROM tab1 AS cor0
----
-7
27
33

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + - 58 + + col0 + - col1 / - col2 FROM tab1 AS cor0
----
-7
27
33

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE col1 * col2 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE - 48 BETWEEN 43 AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) < 29
----

query I rowsort
SELECT DISTINCT - - 63 AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT - + 82 * - 61 FROM tab2 AS cor0
----
5002
5002
5002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT ALL - - 51 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - - 51 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col0 + - 85 - col0 col0 FROM tab1 AS cor0
----
-4453
-595
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT + + 43 DIV - 12 FROM tab1 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8081
SELECT + + 43 / - 12 FROM tab1 cor0
----
-3
-3
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 57 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8083
SELECT ALL CAST( - col1 AS DECIMAL ) / 16 AS col0 FROM tab2 AS cor0
----
-3
-4
-4

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL CAST ( - col1 AS REAL ) / 16 AS col0 FROM tab2 AS cor0
----
-3
-4
-4

query I rowsort
SELECT ALL col1 * col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 69 + - col0 AND ( - 15 )
----

query I rowsort
SELECT - - 74 * - + col1 + - col1 FROM tab1 AS cor0
----
-1050
-3525
-375

query I rowsort
SELECT DISTINCT col0 / + col0 FROM tab0 cor0 WHERE NOT ( 41 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 88
----

query I rowsort
SELECT - - 59 * col0 + - 0 AS col0 FROM tab0 AS cor0
----
5133
5723
885

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 NOT BETWEEN - - col2 / ( + 17 / col0 + - ( 59 ) ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 18 * 42 FROM tab1
----
-756

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 55 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( + + col0 ) NOT BETWEEN ( NULL ) AND col2 * - 30 + + 70 / col2
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 * + col2 * - ( - col1 ) AS col0 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT col2 * col2 FROM tab1 WHERE NOT col2 < ( col0 * col1 - - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) >= - 31
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8097
SELECT + ( + col0 ) / + 86 FROM tab2 AS cor0 WHERE NOT ( col0 / + ( - + 82 ) ) NOT BETWEEN ( CAST( col2 AS DECIMAL ) / + col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8097
SELECT + ( + col0 ) / + 86 FROM tab2 AS cor0 WHERE NOT ( col0 / + ( - + 82 ) ) NOT BETWEEN ( CAST ( col2 AS REAL ) / + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 54 * + col0 FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT MIN( DISTINCT - 28 ) DIV + 70 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * + col0 + 82 + - col1 >= - col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT MIN ( DISTINCT - 28 ) / + 70 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * + col0 + 82 + - col1 >= - col2 * col0
----
0

query I rowsort
SELECT ALL 43 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( - + 70 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 49 NOT IN ( - - ( - - col0 ) )
----

query I rowsort
SELECT ALL ( col2 ) + + 54 FROM tab1
----
113
122
150

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT DISTINCT - col1 DIV + col0 + - ( + 44 ) + col1 - col1 * col2 * ( + col1 * col1 ) FROM tab1 AS cor0
----
-263454
-7059961
-7414

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT - col1 / + col0 + - ( + 44 ) + col1 - col1 * col2 * ( + col1 * col1 ) FROM tab1 AS cor0
----
-263454
-7059961
-7414

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 > - 77 * - col1 * - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 9 + col1 FROM tab0 AS cor0 WHERE col0 - col2 BETWEEN NULL AND ( + - 78 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 / col1 IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL col2 / + CAST( NULL AS SIGNED ) + 74 AS col2 FROM tab0 WHERE NOT - 85 + + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL col2 / + CAST ( NULL AS INTEGER ) + 74 AS col2 FROM tab0 WHERE NOT - 85 + + col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 55 ) AS col2 FROM tab1
----
-55

query II rowsort
SELECT col0 + + col2 AS col0, - 75 AS col0 FROM tab0
----
196
-75
62
-75
97
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8110
SELECT ALL col1 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8110
SELECT ALL col1 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + 34 AS col0 FROM tab1 WHERE NULL < - 4
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT DISTINCT 6, + ( - + COUNT( * ) ) AS col2 FROM tab0
----
6
-3

skipif mysql # not compatible
query II rowsort label-8112
SELECT DISTINCT 6, + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
6
-3

query I rowsort
SELECT - + col1 FROM tab2 WHERE + col0 * + + col1 * + col2 <= NULL
----

query I rowsort
SELECT col1 + 65 AS col1 FROM tab0
----
146
66
86

query I rowsort
SELECT ALL - 39 * - col2 - - col2 AS col1 FROM tab2 AS cor0
----
1600
2320
920

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + col0 <= ( - 81 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT ALL - CAST( + + 6 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - CAST ( + + 6 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT col0 + - 29 * col2 * - col0 + - 59 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT + + 80 * - MAX( + 84 ) AS col1 FROM tab2 cor0
----
-6720

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT + + 80 * - MAX ( + 84 ) AS col1 FROM tab2 cor0
----
-6720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT DISTINCT - MIN( - CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8121
SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8122
SELECT ALL COUNT( DISTINCT + col2 ) DIV + SUM( ALL + 63 ) * - 89 * + - 84 DIV + 25 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL COUNT ( DISTINCT + col2 ) / + SUM ( ALL + 63 ) * - 89 * + - 84 / + 25 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * 84 - - col1 * - 91 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IN ( + col1, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 51 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 51 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col1, + col1 FROM tab2
----
-51
51
-67
67
-77
77

query II rowsort
SELECT DISTINCT + col2 * + 14 * - 81, 57 * + 96 + - + col1 * + col2 AS col0 FROM tab2
----
-26082
4299
-45360
2392
-65772
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - - col2 = ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - - col2 = ( col2 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8131
SELECT + - col0 DIV + 91 + - col0 + - + col1 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-141
64
-142
75
-97
46

skipif mysql # not compatible
query II rowsort label-8131
SELECT + - col0 / + 91 + - col0 + - + col1 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-141
64
-142
75
-97
46

query I rowsort
SELECT ALL ( - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col1 + 87 + - col1 * - + col0 * + + col1 ) AND NULL
----

query I rowsort
SELECT col1 + - col2 - + col0 FROM tab2 AS cor0
----
-18
-27
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT ALL col0 + - CAST( - - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT ALL col0 + - CAST ( - - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT - 2 + + COUNT( DISTINCT col2 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - 2 + + COUNT ( DISTINCT col2 ) FROM tab2 cor0
----
1

query I rowsort
SELECT + col2 + - + col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + col1 * + col0 + - - col1 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT ALL col1 - - + 86 FROM tab0 AS cor0
----
107
167
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT + MAX( DISTINCT + 78 ) AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + MAX ( DISTINCT + 78 ) AS col1 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT COUNT( * ) FROM tab1 WHERE - - 0 <= + col1
----
3

skipif mysql # not compatible
query I rowsort label-8141
SELECT COUNT ( * ) FROM tab1 WHERE - - 0 <= + col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - SUM( ALL 53 ) AS col0 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-8142
SELECT - SUM ( ALL 53 ) AS col0 FROM tab1
----
-159

query III rowsort
SELECT * FROM tab2 WHERE + col0 > + 67 / - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - 26 ) * 17 AS col0 FROM tab1 WHERE NOT NULL BETWEEN + col0 AND + - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL + MAX( DISTINCT - + col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + MAX ( DISTINCT - + col1 ) AS col0 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab1 WHERE - ( 57 ) BETWEEN col2 + + 79 AND NULL
----

query II rowsort
SELECT DISTINCT - - col0 AS col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL col2 * + ( - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 37 * - 59 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL - col0 * - ( + 87 ) AS col0 FROM tab2
----
4002
5568
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ALL + ( + COUNT( * ) ) FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT + + 50 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 AS cor0 INNER JOIN tab2 AS cor1 ON NOT + + 50 IS NOT NULL
----
0

query II rowsort
SELECT col2 * - col0 AS col0, col2 FROM tab2 AS cor0
----
-1058
23
-2560
40
-4350
58

query I rowsort
SELECT - col1 * + 22 - + col1 FROM tab1 cor0
----
-1081
-115
-322

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT 28 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT - ( col0 ) DIV + + col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8156
SELECT - ( col0 ) / + + col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL + MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( col1, + col2, col1 * + 42 )
----

query I rowsort
SELECT + 95 * + + col0 FROM tab2 AS cor0
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT + COUNT( * ) * 28 * + - SUM( - - col1 ) FROM tab0
----
-8652

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + COUNT ( * ) * 28 * + - SUM ( - - col1 ) FROM tab0
----
-8652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8161
SELECT ALL + COUNT( * ) col0 FROM tab2 WHERE NULL = + - CAST( - 55 AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8161
SELECT ALL + COUNT ( * ) col0 FROM tab2 WHERE NULL = + - CAST ( - 55 AS INTEGER )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NOT ( + col2 ) NOT IN ( ( + + col0 ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT - COUNT( col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8163
SELECT - COUNT ( col1 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL + 90 + COUNT( * ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + 90 + COUNT ( * ) AS col0 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - 4 )
----
0

skipif mysql # not compatible
query I rowsort label-8165
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - 4 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8166
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 59 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL 41 + - 78 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL 41 + - 78 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT ALL - 9 * + col2 - - 18 + 14 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - col0 IN ( + 21, + 29, - col0, + CAST( + 51 AS SIGNED ) )
----
-499
-580
-832

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - 9 * + col2 - - 18 + 14 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - col0 IN ( + 21, + 29, - col0, + CAST ( + 51 AS INTEGER ) )
----
-499
-580
-832

query I rowsort
SELECT - col1 + 12 AS col1 FROM tab2
----
-39
-55
-65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = col1 + + - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT + MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8171
SELECT + MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - ( + - 97 ) - col0 FROM tab0 AS cor0
----
0
10
82

query I rowsort
SELECT ALL + col0 + + + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT DISTINCT + col2 * col1 * - - CAST( NULL AS SIGNED ) + + 68 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + col2 * col1 * - - CAST ( NULL AS INTEGER ) + + 68 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 - 59 col1 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + - 21 - - - COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + - 21 - - - COUNT ( * ) FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT ALL 22 * COUNT( * ) + - + COUNT( * ) col1, + 99 FROM tab1 AS cor0
----
63
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8177
SELECT ALL 22 * COUNT ( * ) + - + COUNT ( * ) col1, + 99 FROM tab1 AS cor0
----
63
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - col2 + 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - + col2 * + 49 + - - 79 col0, col2 FROM tab2
----
-1002
23
-1817
40
-2688
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT + col0 DIV + - col0 + col1 AS col0 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8180
SELECT + col0 / + - col0 + col1 AS col0 FROM tab2
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT 29 + - 67 + - + 32 * - SUM( ALL - col1 ) AS col2 FROM tab0
----
-3334

skipif mysql # not compatible
query I rowsort label-8181
SELECT 29 + - 67 + - + 32 * - SUM ( ALL - col1 ) AS col2 FROM tab0
----
-3334

query I rowsort
SELECT ALL + 63 * col1 AS col0 FROM tab1
----
2961
315
882

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT DISTINCT + 30 DIV + + 54 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8183
SELECT DISTINCT + 30 / + + 54 col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND - - col1 * + ( + + 15 ) + + col2 - - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 59 IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( 90 ) BETWEEN 94 AND NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT CAST( - 76 AS SIGNED ) FROM tab2
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-8187
SELECT CAST ( - 76 AS INTEGER ) FROM tab2
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT MIN( DISTINCT 50 ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT MIN ( DISTINCT 50 ) AS col2 FROM tab1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 11 col2 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 14 + + CAST( + col2 AS SIGNED ), col2, - col2 * + col1 + col2 + + - col0 + - col0 + + col2 * + 78 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-8190
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 14 + + CAST ( + col2 AS INTEGER ), col2, - col2 * + col1 + col2 + + - col0 + - col0 + + col2 * + 78 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8191
SELECT DISTINCT - + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8191
SELECT DISTINCT - + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + 85 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN col2 + ( - + 62 ) + + - col2 AND 11 * ( - + col2 )
----

query II rowsort
SELECT ALL + col0, 36 FROM tab0 AS cor0
----
15
36
87
36
97
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT DISTINCT + + CAST( - - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + 64 + + - COUNT( * ) col2 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8196
SELECT + 64 + + - COUNT ( * ) col2 FROM tab0 AS cor0
----
61

query I rowsort
SELECT + col1 + - col2 - - col2 FROM tab2
----
51
67
77

query II rowsort
SELECT DISTINCT - col1 * + col0 AS col1, ( col0 ) AS col0 FROM tab0
----
-1215
15
-1827
87
-97
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + ( - + col1 ) col0 FROM tab0
----
-44
16
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8201
SELECT + COUNT( * ), 82 AS col0 FROM tab0
----
3
82

skipif mysql # not compatible
query II rowsort label-8201
SELECT + COUNT ( * ), 82 AS col0 FROM tab0
----
3
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8203
SELECT - 3 DIV COUNT( * ) * - - 2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8203
SELECT - 3 / COUNT ( * ) * - - 2 FROM tab1
----
-2

query I rowsort
SELECT - + col0 - - - col0 * + + 66 AS col1 FROM tab1 WHERE NULL IS NULL
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + - MAX( ALL + 78 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8205
SELECT + - MAX ( ALL + 78 ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT ALL - - col1 + + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT DISTINCT 14 - - - col1 AS col2 FROM tab0 AS cor0
----
-67
-7
13

query I rowsort
SELECT ALL + col0 * + - col0 + + 67 AS col0 FROM tab0 AS cor0
----
-158
-7502
-9342

query I rowsort
SELECT - + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL - COUNT( * ) - + MAX( DISTINCT col0 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - COUNT ( * ) - + MAX ( DISTINCT col0 ) FROM tab0
----
-100

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + col0 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8212
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8213
SELECT + ( col1 ) FROM tab1 AS cor0 WHERE - CAST( - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8213
SELECT + ( col1 ) FROM tab1 AS cor0 WHERE - CAST ( - col2 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - ( - - col2 ) + - col1 * - - 1 * - col0 * - + 6 FROM tab0 AS cor0
----
-10972
-681
-7337

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL SUM( 81 ) - - + COUNT( * ) + + + 2 FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL SUM ( 81 ) - - + COUNT ( * ) + + + 2 FROM tab1 AS cor0
----
248

query I rowsort
SELECT ALL col1 * + col2 - ( + 8 ) AS col1 FROM tab1 AS cor0
----
1336
287
3188

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT ALL ( - + col0 ) DIV - col0 col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8217
SELECT ALL ( - + col0 ) / - col0 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 46 * col2 FROM tab0
----
2162
4554
460

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL + ( COUNT( ALL + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + ( COUNT ( ALL + col0 ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL <> 17 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT ALL - COUNT( * ) DIV 89 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - COUNT ( * ) / 89 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + COUNT( * ) + + - 84 AS col2 FROM tab0 WHERE NOT ( NULL IS NULL )
----
-84

skipif mysql # not compatible
query I rowsort label-8222
SELECT + COUNT ( * ) + + - 84 AS col2 FROM tab0 WHERE NOT ( NULL IS NULL )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT + 49 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT + 49 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8225
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * 90 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8225
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * 90 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab0
----
32
32
32

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 + - - col2 = 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL - - ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN 93 AND 49 + + + 70 + col1 / + - 10 * - + col2
----

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - - ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN 93 AND 49 + + + 70 + col1 / + - 10 * - + col2
----

query I rowsort
SELECT - col2 * + - 25 FROM tab1 AS cor0
----
1475
1700
2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 AS cor0 WHERE NOT col0 * + col1 - col0 IS NOT NULL
----

query I rowsort
SELECT - + ( + 51 ) * + col0 AS col2 FROM tab2 AS cor0
----
-2346
-3264
-3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col2 FROM tab2 WHERE - col2 <> ( 33 )
----
25
25
25

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT DISTINCT - MIN( + + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - MIN ( + + col0 ) FROM tab1
----
-51

query I rowsort
SELECT ALL - AVG ( col0 ) AS col0 FROM tab0 WHERE NULL <> - - 76 + - ( + 13 )
----
NULL

query I rowsort
SELECT - col0 + + + col2 AS col1 FROM tab1
----
-23
-26
45

query I rowsort
SELECT + col1 + + 77 FROM tab1
----
124
82
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + + 70 - col1 col1 FROM tab0 AS cor0
----
136
166
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT - 60 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT - 60 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT ALL - col1 - - col1 * - col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

query II rowsort
SELECT DISTINCT 91, col1 AS col2 FROM tab0 AS cor0
----
91
1
91
21
91
81

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 - - 1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 54 + col2 col1 FROM tab2
----
30
31
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + ( + + COUNT( DISTINCT col1 ) ) AS col1 FROM tab1 WHERE ( - col1 > ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT + ( + + COUNT ( DISTINCT col1 ) ) AS col1 FROM tab1 WHERE ( - col1 > ( col2 ) )
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( 2, - col1 )
----

query II rowsort
SELECT col2 AS col1, + ( - + col2 ) + col2 AS col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

query I rowsort
SELECT DISTINCT 6 * + col1 AS col1 FROM tab2
----
306
402
462

query I rowsort
SELECT - - 76 + 61 FROM tab0 WHERE NOT 32 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 13 ) col0 FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - 69 col2, col2 FROM tab2
----
-3174
23
-4416
40
-5175
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8252
SELECT - MAX( col1 ), 30 AS col0 FROM tab0
----
-81
30

skipif mysql # not compatible
query II rowsort label-8252
SELECT - MAX ( col1 ), 30 AS col0 FROM tab0
----
-81
30

query I rowsort
SELECT - ( + 43 ) * 94 FROM tab2
----
-4042
-4042
-4042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * + col2 col1 FROM tab2
----
1794
3120
4524

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 76 BETWEEN + + col0 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8256
SELECT 1 * + col0 AS col0, + col2 * - 68 + + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8256
SELECT 1 * + col0 AS col0, + col2 * - 68 + + + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT DISTINCT 5 * - - 22 FROM tab1
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8258
SELECT ALL COUNT( * ) DIV SUM( DISTINCT + + col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( * ) / SUM ( DISTINCT + + col0 ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT + CAST( NULL AS SIGNED ) * 92 / + ( - 18 ) * - col0 + - 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT + CAST ( NULL AS INTEGER ) * 92 / + ( - 18 ) * - col0 + - 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT + COUNT( * ) * COUNT( col0 ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT + COUNT ( * ) * COUNT ( col0 ) AS col1 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8261
SELECT + COUNT( + ( + 8 ) ) col0, - COUNT( * ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8261
SELECT + COUNT ( + ( + 8 ) ) col0, - COUNT ( * ) AS col0 FROM tab0
----
3
-3

query I rowsort
SELECT + AVG ( ALL + 34 ) AS col1 FROM tab2 WHERE NOT NULL <= + ( + col0 )
----
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) + - col1 + col2 * + + col0 AS col0 FROM tab1 AS cor0
----
4933
5095
6232

query I rowsort
SELECT ALL + col2 + - - 86 FROM tab1 AS cor0
----
145
154
182

query I rowsort
SELECT ALL col1 + + col2 FROM tab0 AS cor0 WHERE NOT 7 + + col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7, - 20 col0 FROM tab2 AS cor0
----
7
-20

query I rowsort
SELECT ALL - 17 * + + col1 + col0 FROM tab0 AS cor0
----
-1362
-270
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + COUNT( ALL + 36 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + COUNT ( ALL + 36 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - col0 / + + col2 col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 98 * - ( + 89 ) * - + 11 + + col0 AS col0 FROM tab1
----
-95851
-95857
-95891

query I rowsort
SELECT ALL 87 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col2 + + col1 ) AND col0
----

query I rowsort
SELECT DISTINCT - 10 + col2 FROM tab0
----
0
37
89

query I rowsort
SELECT ALL col1 + 79 FROM tab2 AS cor0
----
130
146
156

query I rowsort
SELECT DISTINCT col1 * + - col0 + - + col0 AS col2 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT ALL + 39 * + - 12 * CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1404

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + 39 * + - 12 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1404

query II rowsort
SELECT DISTINCT - - 86 AS col2, - col1 / + 83 FROM tab2 cor0 WHERE - col2 / + col0 >= + 13
----

query I rowsort
SELECT DISTINCT - + 89 * col2 FROM tab2 AS cor0
----
-2047
-3560
-5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col1 * col0 * + - col0 FROM tab2
----
-51
-107916
-67
-376875
-77
-315392

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - - col0 * 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 26 col2 FROM tab0
----
-1222
-2574
-260

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * col0, col0 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 37 col0, - 10 FROM tab0 cor0
----
37
-10
37
-10
37
-10

query I rowsort
SELECT DISTINCT ( - - col1 ) * - + col0 * + - ( col0 ) AS col1 FROM tab0 AS cor0
----
158949
18225
9409

query II rowsort
SELECT DISTINCT - col1, col1 + col2 AS col1 FROM tab2 AS cor0
----
-51
74
-67
125
-77
117

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 27 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT - 76 DIV - COUNT( * ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-8287
SELECT - 76 / - COUNT ( * ) FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - + SUM( + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8288
SELECT - + SUM ( + col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + col0 * - ( ( + 78 ) ) FROM tab2 cor0
----
-3588
-4992
-5850

query I rowsort
SELECT ALL + col1 * - 49 + - col0 FROM tab1 AS cor0
----
-2394
-330
-737

query I rowsort
SELECT ALL - ( - + 78 ) FROM tab0 AS cor0
----
78
78
78

query II rowsort
SELECT DISTINCT col0, 34 AS col2 FROM tab2
----
46
34
64
34
75
34

query II rowsort
SELECT ALL - 64 AS col1, 22 AS col1 FROM tab1
----
-64
22
-64
22
-64
22

query I rowsort
SELECT + 65 / - 41 * - + 25 * + + col2 * - 15 AS col2 FROM tab2 WHERE + col2 > + 27 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 98 col1 FROM tab1
----
149
183
189

query I rowsort
SELECT col1 + - - 77 + - - col1 + - 36 + - col1 AS col2 FROM tab2
----
108
118
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT DISTINCT 18 * CAST( NULL AS SIGNED ) * - + ( + + COUNT( * ) ) + 99 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT 18 * CAST ( NULL AS INTEGER ) * - + ( + + COUNT ( * ) ) + 99 FROM tab1
----
NULL

query I rowsort
SELECT col2 + + 80 + col2 + 57 * - - col2 * - col2 FROM tab1
----
-198219
-263352
-525040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT DISTINCT + 1 * + ( ( - + CAST( NULL AS SIGNED ) ) ) + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + 1 * + ( ( - + CAST ( NULL AS INTEGER ) ) ) + col2 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8300
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8300
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) col1 FROM tab1
----
NULL

query I rowsort
SELECT - + col1 FROM tab1 WHERE + + 20 < NULL
----

query I rowsort
SELECT 16 + - - col1 FROM tab2 AS cor0
----
67
83
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab2 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL col1 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT DISTINCT - col2 + - 75 AS col2 FROM tab1 AS cor0
----
-134
-143
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT DISTINCT ( - ( + CAST( + 82 AS SIGNED ) ) ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT ( - ( + CAST ( + 82 AS INTEGER ) ) ) FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT - - MIN( - - col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT - - MIN ( - - col1 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - - MAX( - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8308
SELECT - - MAX ( - col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT - 16 + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
30
48
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT - col1 col1 FROM tab1 cor0 WHERE NOT + CAST( 7 AS SIGNED ) + + col0 = col2
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8310
SELECT - col1 col1 FROM tab1 cor0 WHERE NOT + CAST ( 7 AS INTEGER ) + + col0 = col2
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT COUNT( ALL - col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8311
SELECT COUNT ( ALL - col1 ) col1 FROM tab2
----
3

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query II rowsort
SELECT col1 AS col2, - 56 FROM tab0
----
1
-56
21
-56
81
-56

query I rowsort
SELECT col0 * + 2 AS col2 FROM tab1
----
102
170
182

query II rowsort
SELECT DISTINCT 51 * + - 46 * - 83, - col0 * + col2 * + - col1 - + ( - + col2 ) AS col0 FROM tab1 WHERE NOT col0 <= + col2
----
194718
25134
194718
290904

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( 21 ) + + col2 * - col0 * - col2 AS col2 FROM tab0 cor0
----
33114
8679
950676

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8318
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( + col0 AS SIGNED ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8318
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( + col0 AS INTEGER ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 69 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + + ( - 76 ) AS col2 FROM tab0 AS cor0
----
-61
11
21

query I rowsort
SELECT DISTINCT + + col0 + - 53 + - 90 FROM tab2 AS cor0
----
-68
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - MIN( + col1 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8322
SELECT - MIN ( + col1 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-54

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE - 32 * - col0 NOT BETWEEN - 44 AND + col0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL - SUM( - ( 22 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - SUM ( - ( 22 ) ) FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8327
SELECT - 21 AS col1, + ( COUNT( * ) ) FROM tab0 WHERE + CAST( NULL AS DECIMAL ) + + 80 IN ( - col0, col0 )
----
-21
0

skipif mysql # not compatible
query II rowsort label-8327
SELECT - 21 AS col1, + ( COUNT ( * ) ) FROM tab0 WHERE + CAST ( NULL AS REAL ) + + 80 IN ( - col0, col0 )
----
-21
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT ALL + col0 DIV 14 AS col2 FROM tab0
----
1
6
6

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + col0 / 14 AS col2 FROM tab0
----
1
6
6

query II rowsort
SELECT ALL - col2 * - col0 * - col0 + - col0 + col2, + col1 FROM tab1
----
-249651
14
-426301
5
-563131
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT + ( + col1 ) DIV + 63 - - col2 FROM tab2 AS cor0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-8330
SELECT + ( + col1 ) / + 63 - - col2 FROM tab2 AS cor0
----
23
41
59

query II rowsort
SELECT DISTINCT col2 AS col2, - col2 AS col0 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - COUNT( 17 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8332
SELECT - COUNT ( 17 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col1 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - + 95 * COUNT( * ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-8334
SELECT - + 95 * COUNT ( * ) FROM tab1 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + - MIN( DISTINCT - 61 ) col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT + - MIN ( DISTINCT - 61 ) col0 FROM tab2 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT - ( - - col0 ) DIV + col1 + + col0 col1 FROM tab1 AS cor0
----
48
68
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8337
SELECT - ( - - col0 ) / + col1 + + col0 col1 FROM tab1 AS cor0
----
48
68
90

query II rowsort
SELECT DISTINCT + col2 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + + col0 * + col1 * + 39 FROM tab2 cor0
----
192192
195975
91494

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT DISTINCT 58 * ( col0 ) DIV - - col1 + + + col2 AS col2 FROM tab1
----
1045
180
307

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT 58 * ( col0 ) / - - col1 + + + col2 AS col2 FROM tab1
----
1045
180
307

query I rowsort
SELECT AVG ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 21 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
22218
53760
91350

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT - col0 * col1 >= 18 )
----

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-59

query I rowsort
SELECT ( + 23 ) FROM tab1
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - + COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8346
SELECT ALL - + COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT DISTINCT AVG ( ALL - 95 ) AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL COUNT( col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL COUNT ( col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL AND NOT + - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + - 62 + - col0 FROM tab0 AS cor0
----
-149
-159
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT DISTINCT - + col1 DIV - col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8350
SELECT DISTINCT - + col1 / - col1 FROM tab1 cor0
----
1

query I rowsort
SELECT - ( + col2 ) * col2 + - + 94 + - col1 AS col1 FROM tab2
----
-1771
-3525
-674

query I rowsort
SELECT col0 * + col2 + - - 76 AS col2 FROM tab0
----
781
946
9679

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < - col2
----

query II rowsort
SELECT ALL 58 AS col0, 59 FROM tab2 AS cor0
----
58
59
58
59
58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT DISTINCT - 22 * COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT - 22 * COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - + 77 AS col1 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND col2
----
-77
-77

query I rowsort
SELECT ALL - col1 * 87 * - col1 FROM tab0 cor0
----
38367
570807
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8358
SELECT CAST( - - col2 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT CAST ( - - col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 66 AS col1 FROM tab1
----
3366
5610
6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 / - + 64
----

query I rowsort
SELECT 49 * + - col0 * + col1 + + - 7 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
-210278
-21479
-35439

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT + + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----
0

query I rowsort
SELECT DISTINCT + ( 34 ) AS col0 FROM tab0
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 35 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 6 col0, + col1 AS col0 FROM tab1
----
6
14
6
47
6
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + 51 * - - 49 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab1
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL - - col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + + col0 AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL SUM( + + 86 ) col2 FROM tab0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8370
SELECT ALL SUM ( + + 86 ) col2 FROM tab0
----
258

query II rowsort
SELECT col0 + + 11 AS col0, col2 - + col1 + - col2 AS col2 FROM tab1
----
102
-47
62
-14
96
-5

query I rowsort
SELECT DISTINCT + ( + 11 ) * col2 + - - 14 AS col2 FROM tab1 AS cor0
----
1070
663
762

query I rowsort
SELECT DISTINCT - + 99 * - 7 - + col0 AS col2 FROM tab0 AS cor0
----
596
606
678

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8374
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN - + col2 * - col0 - - 83 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8374
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - + col2 * - col0 - - 83 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT CAST( - 91 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-8375
SELECT CAST ( - 91 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT ALL - col2 - CAST( NULL AS SIGNED ) - + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) - + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 43 FROM tab0 WHERE - col0 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, 65 AS col0 FROM tab0
----
15
65
87
65
97
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( + 37 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT col0 DIV 65 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8381
SELECT col0 / 65 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - - 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT + + 28 * - 64 * + COUNT( * ) * + + 43 FROM tab0 AS cor0
----
-231168

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT + + 28 * - 64 * + COUNT ( * ) * + + 43 FROM tab0 AS cor0
----
-231168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT DISTINCT + + 32 / CAST( NULL AS SIGNED ) + + 50 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT + + 32 / CAST ( NULL AS INTEGER ) + + 50 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> 65 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT - 40 DIV - 89 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT - 40 / - 89 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8387
SELECT DISTINCT + col0, + col2 DIV col2 col1 FROM tab1 AS cor0
----
51
1
85
1
91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8387
SELECT DISTINCT + col0, + col2 / col2 col1 FROM tab1 AS cor0
----
51
1
85
1
91
1

query II rowsort
SELECT + 36, 8 + col1 AS col0 FROM tab2 AS cor0
----
36
59
36
75
36
85

query I rowsort
SELECT ( 0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( col1 ) * + - 68 AS col0 FROM tab1 AS cor0
----
-3196
-340
-952

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8392
SELECT DISTINCT col0 AS col2, col0 * col1 DIV col2 - + 27 col2 FROM tab2 AS cor0
----
46
75
64
96
75
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8392
SELECT DISTINCT col0 AS col2, col0 * col1 / col2 - + 27 col2 FROM tab2 AS cor0
----
46
75
64
96
75
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col0 + ( - + 17 )
----

query I rowsort
SELECT + - 52 * + col0 FROM tab2 AS cor0
----
-2392
-3328
-3900

query I rowsort
SELECT - 25 AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-25
-25
-25

query II rowsort
SELECT ALL ( + - col2 ), - col0 + - ( col2 ) AS col1 FROM tab2
----
-23
-69
-40
-104
-58
-133

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8397
SELECT * FROM tab2 WHERE ( NOT col1 + - CAST( 42 AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8397
SELECT * FROM tab2 WHERE ( NOT col1 + - CAST ( 42 AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN + col0 + ( col1 ) AND + col1
----

query I rowsort
SELECT - col2 * - 90 * + col0 + - 89 AS col2 FROM tab2 AS cor0
----
230311
391411
95131

query I rowsort
SELECT DISTINCT ( + 96 ) AS col0 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT DISTINCT 75 + - SUM( ALL + 15 ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT 75 + - SUM ( ALL + 15 ) AS col0 FROM tab1
----
30

query I rowsort
SELECT + - col0 - - col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE ( NULL ) IN ( + col0, + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT - 36 - col2 DIV 61 col0 FROM tab0 AS cor0
----
-36
-36
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8404
SELECT - 36 - col2 / 61 col0 FROM tab0 AS cor0
----
-36
-36
-37

query I rowsort
SELECT + - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL - col2 - + - col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + col0 + 96 FROM tab2 cor0
----
142
160
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL - + MAX( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - + MAX ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - 94 * + SUM( - 48 ) col2 FROM tab0
----
13536

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8409
SELECT - 94 * + SUM ( - 48 ) col2 FROM tab0
----
13536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT + col0 * + + 15 * - + ( CAST( + col2 AS SIGNED ) ) * + col2 AS col2 FROM tab2
----
-1536000
-365010
-3784500

skipif mysql # not compatible
query I rowsort label-8410
SELECT + col0 * + + 15 * - + ( CAST ( + col2 AS INTEGER ) ) * + col2 AS col2 FROM tab2
----
-1536000
-365010
-3784500

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 90 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 65 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT + col2 DIV + - 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT + col2 / + - 99 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN col0 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8415
SELECT * FROM tab0 WHERE NOT + - col2 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8415
SELECT * FROM tab0 WHERE NOT + - col2 >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * - + col2 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + 43 * + + 42 FROM tab2
----
1806

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 / - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL MIN( DISTINCT - col0 ) * - 93 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
25389

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL MIN ( DISTINCT - col0 ) * - 93 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
25389

query I rowsort
SELECT DISTINCT - + ( 32 ) AS col1 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT - ( - + COUNT( ALL - + 44 ) ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8421
SELECT - ( - + COUNT ( ALL - + 44 ) ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL + MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL ( - + col0 ) * 77 AS col0 FROM tab1
----
-3927
-6545
-7007

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT - 66 DIV - col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-8424
SELECT - 66 / - col1 FROM tab1
----
1
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT 65 * - CAST( - + col0 AS SIGNED ) FROM tab0
----
5655
6305
975

skipif mysql # not compatible
query I rowsort label-8425
SELECT 65 * - CAST ( - + col0 AS INTEGER ) FROM tab0
----
5655
6305
975

query I rowsort
SELECT DISTINCT col2 * - + col2 * - col2 FROM tab0
----
1000
103823
970299

query I rowsort
SELECT ALL + 6 AS col2 FROM tab2 WHERE NULL IS NULL
----
6
6
6

query I rowsort
SELECT ALL 12 + - 5 FROM tab2
----
7
7
7

query III rowsort
SELECT ALL * FROM tab1 WHERE 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 AND + col2
----

query I rowsort
SELECT ALL - col1 * col0 + - ( + col2 ) + col1 FROM tab0 AS cor0
----
-1181
-1816
-195

query I rowsort
SELECT - col0 + - col2 + + col0 FROM tab2 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + 25 * + col0 * + - ( + ( 45 ) ) + - col1 + - + col1 AS col0 FROM tab0 AS cor0
----
109123
16713
97833

query I rowsort
SELECT DISTINCT + col0 + + + col2 AS col1 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 85 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - - SUM( col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8436
SELECT - - SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT + - col2 * col2 + 54 AS col0, - 83 AS col2 FROM tab0 cor0
----
-2155
-83
-46
-83
-9747
-83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8439
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL <> NULL
----
0

query II rowsort
SELECT ALL - col2 AS col0, 30 * col1 AS col0 FROM tab0
----
-10
630
-47
2430
-99
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT + 40 AS col0, COUNT( * ) - + + 65 AS col0 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - 14 + + col2
----
40
-63

skipif mysql # not compatible
query II rowsort label-8441
SELECT + 40 AS col0, COUNT ( * ) - + + 65 AS col0 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - 14 + + col2
----
40
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 60 col0 FROM tab0
----
-5220
-5820
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT ALL + + COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8443
SELECT ALL + + COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT MAX( - + ( 68 ) ) AS col1 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8444
SELECT MAX ( - + ( 68 ) ) AS col1 FROM tab1 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8445
SELECT * FROM tab0 cor0 WHERE NOT + col2 / - + 36 + - 49 NOT IN ( + CAST( NULL AS SIGNED ), 22, - col1 )
----

skipif mysql # not compatible
query III rowsort label-8445
SELECT * FROM tab0 cor0 WHERE NOT + col2 / - + 36 + - 49 NOT IN ( + CAST ( NULL AS INTEGER ), 22, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT - - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT - - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8448
SELECT DISTINCT COUNT( * ) + 48 DIV COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT COUNT ( * ) + 48 / COUNT ( * ) FROM tab0
----
19

query I rowsort
SELECT 35 * - 86 FROM tab0
----
-3010
-3010
-3010

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT 19 DIV + col0 + col0 * 65 AS col0 FROM tab1
----
3315
5525
5915

skipif mysql # not compatible
query I rowsort label-8450
SELECT 19 / + col0 + col0 * 65 AS col0 FROM tab1
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - 30 * + COUNT( * ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 30 * + COUNT ( * ) AS col0 FROM tab2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT col2 + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT col2 + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + 95 FROM tab0
----
14
74
94

query I rowsort
SELECT DISTINCT + 83 + - col0 FROM tab2
----
19
37
8

query III rowsort
SELECT * FROM tab1 WHERE - col0 <= - col0 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT ALL + col1 DIV col1 + + col0 DIV col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL + col1 / col1 + + col0 / col2 FROM tab1
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col1 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
NULL

query I rowsort
SELECT + col0 + 63 FROM tab2
----
109
127
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + ( MAX( col2 ) ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8461
SELECT + ( MAX ( col2 ) ) AS col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT - 37 * - col0 AS col0 FROM tab2
----
1702
2368
2775

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + col0 BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + MAX( col2 ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8464
SELECT ALL + MAX ( col2 ) col1 FROM tab1
----
96

query I rowsort
SELECT 82 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT 81 * - SUM( col1 ) col0 FROM tab2
----
-15795

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8466
SELECT 81 * - SUM ( col1 ) col0 FROM tab2
----
-15795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col1 FROM tab2 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT col2 * + 17 FROM tab1
----
1003
1156
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT CAST( + ( - 33 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT CAST ( + ( - 33 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE - col2 <> ( col2 )
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1 WHERE ( 85 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + col0 IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE ( col0 - + col1 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 + col2 col0 FROM tab0
----
-38
-75
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT - COUNT( DISTINCT col0 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT - COUNT ( DISTINCT col0 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 14 col2 FROM tab0
----
-4
33
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT + 75 + - 73 DIV col2 AS col1 FROM tab1 AS cor0
----
74
74
75

skipif mysql # not compatible
query I rowsort label-8477
SELECT + 75 + - 73 / col2 AS col1 FROM tab1 AS cor0
----
74
74
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT DISTINCT 80 + + CAST( NULL AS SIGNED ) * + 76 FROM tab2 AS cor0 WHERE ( - 32 ) + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT 80 + + CAST ( NULL AS INTEGER ) * + 76 FROM tab2 AS cor0 WHERE ( - 32 ) + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 * col2 + 48 AS col0 FROM tab1 AS cor0
----
4944
5063
6236

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - + ( 94 ) FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT col2 * - 46 AS col2 FROM tab0 AS cor0
----
-2162
-4554
-460

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN 14 + col1 AND col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL + MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL <> 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL <> 68
----
NULL

query I rowsort
SELECT DISTINCT + 26 FROM tab0 AS cor0 WHERE ( + col1 ) NOT BETWEEN col1 + col0 / ( + col2 ) AND 58
----
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <> ( + 94 * col0 - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT ALL + 4 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + 4 / - - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8488
SELECT * FROM tab1 WHERE NOT CAST( 22 AS SIGNED ) * CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8488
SELECT * FROM tab1 WHERE NOT CAST ( 22 AS INTEGER ) * CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( ( + 5 ) * - 17 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT + CAST( + 61 AS SIGNED ) AS col1 FROM tab1
----
61
61
61

skipif mysql # not compatible
query I rowsort label-8490
SELECT + CAST ( + 61 AS INTEGER ) AS col1 FROM tab1
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT col0 + + CAST( col0 AS SIGNED ) FROM tab0 WHERE NOT col2 IS NULL
----
174
194
30

skipif mysql # not compatible
query I rowsort label-8491
SELECT col0 + + CAST ( col0 AS INTEGER ) FROM tab0 WHERE NOT col2 IS NULL
----
174
194
30

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col2 ) IN ( 14 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8493
SELECT + 22 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8493
SELECT + 22 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - 47 + col2 * - col1 FROM tab0 AS cor0
----
-170
-3839
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL - SUM( 12 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-108

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL - SUM ( 12 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-108

query I rowsort
SELECT - col2 * 87 * - col2 * col2 AS col2 FROM tab0
----
84416013
87000
9032601

query II rowsort
SELECT DISTINCT + 86 AS col0, + col0 * - 49 FROM tab1
----
86
-2499
86
-4165
86
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 * - 9 * + col2 )
----

query I rowsort
SELECT col1 + + + col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT ALL - - 70 * + 26 FROM tab0 AS cor0
----
1820
1820
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT col1 + - col2 + + col1 DIV - 83 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8502
SELECT col1 + - col2 + + col1 / - 83 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT - 41 * + col0 FROM tab2 AS cor0
----
-1886
-2624
-3075

query I rowsort
SELECT + 24 AS col2 FROM tab2 AS cor0 WHERE ( col1 ) NOT BETWEEN ( - col0 * + col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL col2 - + 21 FROM tab2 AS cor0
----
19
2
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT ALL 28 DIV - ( 92 ) + col1 AS col2 FROM tab1 WHERE NOT - col2 IN ( - col0 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL 28 / - ( 92 ) + col1 AS col2 FROM tab1 WHERE NOT - col2 IN ( - col0 )
----
14
47
5

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT ( + 20 * + + ( 74 ) ) = ( 82 + - col0 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8508
SELECT * FROM tab2 WHERE col0 NOT IN ( CAST( ( - 54 ) AS SIGNED ) / col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8508
SELECT * FROM tab2 WHERE col0 NOT IN ( CAST ( ( - 54 ) AS INTEGER ) / col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 82 < ( + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT + + SUM( col2 ) + - 19 AS col2 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8510
SELECT + + SUM ( col2 ) + - 19 AS col2 FROM tab2 AS cor0
----
102

query I rowsort
SELECT - + 96 + col1 FROM tab2 AS cor0
----
-19
-29
-45

query I rowsort
SELECT + + 27 + 17 + 71 + - col1 AS col1 FROM tab2 AS cor0
----
38
48
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL MIN( ALL 71 ) AS col2 FROM tab2 WHERE - ( + col2 ) - + - col1 * + 94 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL MIN ( ALL 71 ) AS col2 FROM tab2 WHERE - ( + col2 ) - + - col1 * + 94 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT COUNT( * ) + 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT COUNT ( * ) + 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71

query I rowsort
SELECT ALL - 23 AS col0 FROM tab2 cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + - col0 * + col0 * - 19 AS col1 FROM tab1 AS cor0
----
137275
157339
49419

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT DISTINCT + 5 / 15 / 9 * CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT + 5 / 15 / 9 * CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) - - 0 + - 50 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - - 0 + - 50 AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, col1, col1 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT + col1 * + - CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-8521
SELECT + col1 * + - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE + col1 + + 90 NOT BETWEEN - + col1 AND ( - col1 )
----
51
67
77

query I rowsort
SELECT col1 * - + 41 AS col2 FROM tab0 AS cor0
----
-3321
-41
-861

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 92 / + + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT - COUNT( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - COUNT ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 32 * - + col0 + + 50 FROM tab1 AS cor0
----
1682
2770
2962

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8527
SELECT * FROM tab1 WHERE NOT + CAST( + col2 AS SIGNED ) / 90 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8527
SELECT * FROM tab1 WHERE NOT + CAST ( + col2 AS INTEGER ) / 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-8528
SELECT ( - 5 ), COUNT( * ) * - - COUNT( * ) AS col0, 5 AS col2 FROM tab1
----
-5
9
5

skipif mysql # not compatible
query III rowsort label-8528
SELECT ( - 5 ), COUNT ( * ) * - - COUNT ( * ) AS col0, 5 AS col2 FROM tab1
----
-5
9
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - MAX( DISTINCT - 37 ) AS col1 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-8529
SELECT - MAX ( DISTINCT - 37 ) AS col1 FROM tab2
----
37

query I rowsort
SELECT ALL - col0 * - - 30 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL MIN( ALL ( col0 ) ) * - CAST( ( + ( - 22 ) ) AS SIGNED ) FROM tab2 AS cor0
----
1012

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL MIN ( ALL ( col0 ) ) * - CAST ( ( + ( - 22 ) ) AS INTEGER ) FROM tab2 AS cor0
----
1012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE col2 / + 26 + - col2 BETWEEN + + col1 AND + CAST( + ( - col0 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8532
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE col2 / + 26 + - col2 BETWEEN + + col1 AND + CAST ( + ( - col0 ) AS INTEGER )
----

query I rowsort
SELECT ALL + col1 + - col0 * col1 AS col2 FROM tab0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
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-8534
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 WHERE col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - 84 * - ( - - ( - + col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT - MIN( ALL + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - MIN ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT col1 DIV - 54 AS col1 FROM tab1 cor0 WHERE - ( + 13 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT col1 / - 54 AS col1 FROM tab1 cor0 WHERE - ( + 13 ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT + - 60 * + 34 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 - 87 FROM tab0 AS cor0 WHERE ( + - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + + ( 70 ) / - - 95 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT - 20 DIV - - COUNT( * ) + + 80 DIV 98 FROM tab2 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-8542
SELECT - 20 / - - COUNT ( * ) + + 80 / 98 FROM tab2 WHERE NULL IS NULL
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT ALL 4 AS col1, SUM( col1 ) FROM tab0
----
4
103

skipif mysql # not compatible
query II rowsort label-8543
SELECT ALL 4 AS col1, SUM ( col1 ) FROM tab0
----
4
103

query I rowsort
SELECT ALL ( - - 68 ) FROM tab1
----
68
68
68

query I rowsort
SELECT DISTINCT - ( - 9 ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE ( col2 + + + col0 * col2 ) > ( - col2 - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-8546
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE ( col2 + + + col0 * col2 ) > ( - col2 - col2 )
----
3

query I rowsort
SELECT 26 + + col1 + + - 18 AS col2 FROM tab0
----
29
89
9

query I rowsort
SELECT - 70 + col0 AS col1 FROM tab1
----
-19
15
21

query I rowsort
SELECT DISTINCT - col0 + - + col2 + + 5 FROM tab1 AS cor0
----
-139
-142
-154

query II rowsort
SELECT + 5 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
5
10
5
47
5
99

query I rowsort
SELECT DISTINCT col0 + - - 63 * + - col2 AS col2 FROM tab0 AS cor0
----
-2946
-543
-6140

query II rowsort
SELECT DISTINCT - - col1, + ( col0 ) AS col1 FROM tab1 cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL + 28 + - - col0 - ( col2 ) FROM tab0 AS cor0
----
-4
105
26

query I rowsort
SELECT DISTINCT - col1 - - - col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + - ( 84 ) ) / - 9 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - MIN( 89 ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - MIN ( 89 ) FROM tab1
----
-89

query I rowsort
SELECT + 80 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT col1 * - col1 * + col2 * - + col0 * col0 FROM tab2 AS cor0
----
126585468
1464536250
971407360

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT DISTINCT + - 43 * - + col2 + - col1 DIV - col1 - + col2 + - col0 AS col0 FROM tab0 AS cor0
----
1960
334
4062

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT + - 43 * - + col2 + - col1 / - col1 - + col2 + - col0 AS col0 FROM tab0 AS cor0
----
1960
334
4062

query I rowsort
SELECT - 70 + - col2 FROM tab1 AS cor0 WHERE NOT - 65 + + col0 NOT IN ( - ( + col1 ) * - - col2 * - ( - col2 ) - 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT - ( + - SUM( ALL - 80 ) ) AS col2 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-8562
SELECT - ( + - SUM ( ALL - 80 ) ) AS col2 FROM tab2 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT SUM( + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8563
SELECT SUM ( + col0 ) AS col2 FROM tab0
----
199

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + 10 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= col1 * + col0 * col1 - 9 AND col1 + - col0 * - 70 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * 72 AS col0 FROM tab0
----
-1512
-5832
-72

query I rowsort
SELECT DISTINCT + 83 * - col2 - 10 + - - col1 - 60 + + 48 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 90 < - col1 + + - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + 99 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 9 <= + - ( - + ( - - col2 ) ) * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + - + 13 + - 87 FROM tab0 AS cor0
----
-13
-3
-85

query I rowsort
SELECT DISTINCT - - 50 AS col2 FROM tab0 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT DISTINCT 8 * col0 * col1 * - CAST( NULL AS SIGNED ) / + 86 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT 8 * col0 * col1 * - CAST ( NULL AS INTEGER ) / + 86 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * - 84 FROM tab1
----
4284
7140
7644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 2 + col2 + 56 * - - 78 * - - 19 col1 FROM tab1 AS cor0
----
83049
83058
83086

query I rowsort
SELECT ALL - col1 * col2 + + - col1 FROM tab2 cor0
----
-1224
-3157
-3953

query I rowsort
SELECT DISTINCT - - col1 + + 83 AS col0 FROM tab1 cor0
----
130
88
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 10 + + 52 * 62 col1 FROM tab2 AS cor0
----
3214
3214
3214

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8579
SELECT * FROM tab0 AS cor0 WHERE + 29 / col1 IN ( 99 + - ( - + col0 ), ( + + ( - col1 ) ) * col2 + 32 + - CAST( NULL AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-8579
SELECT * FROM tab0 AS cor0 WHERE + 29 / col1 IN ( 99 + - ( - + col0 ), ( + + ( - col1 ) ) * col2 + 32 + - CAST ( NULL AS INTEGER ) * - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 14 * - col2 + + - col2 >= NULL
----

query II rowsort
SELECT - + 42 AS col0, - col1 FROM tab1 AS cor0
----
-42
-14
-42
-47
-42
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 61 col0 FROM tab2
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - COUNT( * ) - - - SUM( DISTINCT - - col2 ) + - COUNT( * ) FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-8583
SELECT - COUNT ( * ) - - - SUM ( DISTINCT - - col2 ) + - COUNT ( * ) FROM tab2
----
-127

query III rowsort
SELECT * FROM tab2 WHERE + + col0 <= NULL
----

query I rowsort
SELECT ALL - 71 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-71
-71
-71

query I rowsort
SELECT ALL col2 + col1 * + col1 FROM tab1 WHERE NOT - + 35 BETWEEN + 89 AND - 0
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL 31 * + - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL 31 * + - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + + SUM( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8588
SELECT + + SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL - 78 / - col0 AS col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * + - col1 * col0 - col0 * col1 AS col1 FROM tab0 cor0
----
0
36540
97200

query I rowsort
SELECT + col0 * 32 AS col1 FROM tab2 cor0
----
1472
2048
2400

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 < + 61 )
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8593
SELECT + 7 DIV + + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8593
SELECT + 7 / + + COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8595
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST( + 55 AS SIGNED ) ) <= ( - 17 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8595
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST ( + 55 AS INTEGER ) ) <= ( - 17 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 85 AS col2 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT - - ( - CAST( NULL AS SIGNED ) ) * - ( 36 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT - - ( - CAST ( NULL AS INTEGER ) ) * - ( 36 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT - - 84 * + col2 - - col1 + - CAST( 1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
4028
8316
860

skipif mysql # not compatible
query I rowsort label-8598
SELECT - - 84 * + col2 - - col1 + - CAST ( 1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
4028
8316
860

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL COUNT( * ) * - + 10 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL COUNT ( * ) * - + 10 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL + 92 AS col2 FROM tab0 WHERE NOT - 55 <> + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col0 + + col0 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT ALL CAST( + col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL CAST ( + col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 * + 1 FROM tab1
----
57

query III rowsort
SELECT * FROM tab0 WHERE - 37 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT 84 + - + MIN( DISTINCT + col0 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT 84 + - + MIN ( DISTINCT + col0 ) FROM tab0
----
69

query I rowsort
SELECT ( + col0 ) + col1 * col0 AS col1 FROM tab1
----
4368
510
765

query II rowsort
SELECT + col0 + col1, col0 FROM tab2
----
141
64
142
75
97
46

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN + 25 * col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL COUNT( * ) + + COUNT( * ) + + 34 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL COUNT ( * ) + + COUNT ( * ) + + 34 FROM tab2
----
40

query I rowsort
SELECT 73 + - + col0 FROM tab2 AS cor0
----
-2
27
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8611
SELECT * FROM tab2 AS cor0 WHERE 46 * + col1 * CAST( + col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8611
SELECT * FROM tab2 AS cor0 WHERE 46 * + col1 * CAST ( + col2 AS INTEGER ) > NULL
----

query II rowsort
SELECT DISTINCT col1 + + col1, col0 AS col2 FROM tab2 AS cor0
----
102
46
134
75
154
64

query I rowsort
SELECT ALL - 24 * - + 50 FROM tab0 cor0
----
1200
1200
1200

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE NOT ( ( NOT col1 IS NOT NULL ) )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT ALL + CAST( NULL AS SIGNED ) + + ( + ( + col2 ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( + ( + col2 ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT + - 16 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8616
SELECT + - 16 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT col2 * - - 2 - col0 DIV + 21 FROM tab0 AS cor0
----
16
194
94

skipif mysql # not compatible
query I rowsort label-8617
SELECT col2 * - - 2 - col0 / + 21 FROM tab0 AS cor0
----
16
194
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT - - ( COUNT( * ) ) col0 FROM tab2 AS cor0 WHERE - col0 + + - col0 + + - col0 NOT BETWEEN + 3 AND - 71
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8618
SELECT DISTINCT - - ( COUNT ( * ) ) col0 FROM tab2 AS cor0 WHERE - col0 + + - col0 + + - col0 NOT BETWEEN + 3 AND - 71
----
3

query I rowsort
SELECT ALL - ( col0 ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL col0 + - 6 AS col2 FROM tab1 AS cor0
----
45
79
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT DISTINCT - 32 DIV + 75 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT - 32 / + 75 AS col2 FROM tab0
----
0

query I rowsort
SELECT 77 * 47 AS col2 FROM tab0
----
3619
3619
3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col1 * + col2 col2 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT COUNT( * ) AS col1, - COUNT( * ) * COUNT( * ) * + + 77 FROM tab2
----
3
-693

skipif mysql # not compatible
query II rowsort label-8624
SELECT COUNT ( * ) AS col1, - COUNT ( * ) * COUNT ( * ) * + + 77 FROM tab2
----
3
-693

query I rowsort
SELECT DISTINCT + 25 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 * + - 64 FROM tab1
----
-3008
-320
-896

query II rowsort
SELECT col0 * 19 AS col2, - 61 FROM tab1
----
1615
-61
1729
-61
969
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col1 * - + col1 * col0 AS col1 FROM tab2 AS cor0
----
51
-119646
67
-336675
77
-379456

query I rowsort
SELECT ALL - 21 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 col2, - ( col1 ) * - + 57 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 95 * col2 + + - col0 + - - 29 + - - col1 AND col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 63 <= col2 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT + + 20 + col0 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT 68 + col1 * ( + col1 ) AS col1 FROM tab0
----
509
6629
69

query II rowsort
SELECT ALL 10, + 47 AS col2 FROM tab1
----
10
47
10
47
10
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT 55 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8638
SELECT 55 / + col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT 14 * MIN( - 43 ) FROM tab1
----
-602

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT 14 * MIN ( - 43 ) FROM tab1
----
-602

query I rowsort
SELECT + col1 * - ( + 65 ) / - - 49 AS col0 FROM tab2 WHERE ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL MAX( - 81 ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL MAX ( - 81 ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT DISTINCT col2 * - 79 FROM tab1 AS cor0
----
-4661
-5372
-7584

query I rowsort
SELECT - col2 + + 19 * col1 AS col0 FROM tab2
----
1215
1423
946

query I rowsort
SELECT DISTINCT 55 + - 15 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - MAX( DISTINCT + 62 ) AS col0 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8645
SELECT - MAX ( DISTINCT + 62 ) AS col0 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT ALL - col0 + - 93 AS col1 FROM tab0 AS cor0
----
-108
-180
-190

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE 60 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL col1 + 19 AS col2 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT + ( - - 64 ) AS col2 FROM tab1 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT COUNT( 57 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8651
SELECT COUNT ( 57 ) AS col2 FROM tab0 cor0
----
3

query II rowsort
SELECT + ( + col0 ) AS col1, + col0 AS col2 FROM tab1 cor0
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT 98 * - ( CAST( - col1 AS SIGNED ) ) AS col0 FROM tab2
----
4998
6566
7546

skipif mysql # not compatible
query I rowsort label-8654
SELECT 98 * - ( CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab2
----
4998
6566
7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT - COUNT( * ) * - 87 col2 FROM tab2 WHERE NOT - CAST( - 66 AS SIGNED ) IS NULL
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8655
SELECT - COUNT ( * ) * - 87 col2 FROM tab2 WHERE NOT - CAST ( - 66 AS INTEGER ) IS NULL
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL + MIN( + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + MIN ( + - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT - ( - - col2 ) * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT col1 * - 17 * + col0 + - 47 AS col1 FROM tab0 AS cor0
----
-1696
-20702
-31106

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT + + col0 DIV - 74 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT + + col0 / - 74 FROM tab0 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + COUNT( 99 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8660
SELECT + COUNT ( 99 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT DISTINCT col2 DIV - 3 AS col0 FROM tab2
----
-13
-19
-7

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT col2 / - 3 AS col0 FROM tab2
----
-13
-19
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL 60 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 57 BETWEEN - 20 AND col1 * col0 * 74 + + col0 OR + ( 38 ) * + + col1 <= ( - col1 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT - 47 DIV - 23 + - col2 * col1 + - col2 AS col2 FROM tab2 cor0
----
-1194
-3118
-3942

skipif mysql # not compatible
query I rowsort label-8666
SELECT - 47 / - 23 + - col2 * col1 + - col2 AS col2 FROM tab2 cor0
----
-1194
-3118
-3942

query I rowsort
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE NOT 28 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT - COUNT( * ) + - MAX( ALL col1 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT - COUNT ( * ) + - MAX ( ALL col1 ) FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT - MAX( + 94 ) col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8672
SELECT DISTINCT - MAX ( + 94 ) col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT ALL + col2 * + + col0 FROM tab0 AS cor0 WHERE NOT + 11 IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL + COUNT( * ) * - SUM( - col0 ) AS col1 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + COUNT ( * ) * - SUM ( - col0 ) AS col1 FROM tab1
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT + col0 + + - col0 + 19 DIV - col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT + col0 + + - col0 + 19 / - col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT ALL 96 + - 53 DIV + MIN( DISTINCT - col1 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL 96 + - 53 / + MIN ( DISTINCT - col1 ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT COUNT( * ) + - - 98 * - 92 FROM tab1
----
-9013

skipif mysql # not compatible
query I rowsort label-8677
SELECT COUNT ( * ) + - - 98 * - 92 FROM tab1
----
-9013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT - col0 + + CAST( NULL AS SIGNED ) + - - col0 * col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT - col0 + + CAST ( NULL AS INTEGER ) + - - col0 * col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 + + - 99 BETWEEN + col2 AND + + 66
----

query I rowsort
SELECT - 63 + col1 FROM tab2 AS cor0
----
-12
14
4

query I rowsort
SELECT ALL - col2 * + + col2 + + 4 FROM tab0 AS cor0
----
-2205
-96
-9797

query I rowsort
SELECT - + 31 FROM tab0 AS cor0 WHERE NULL = - 64 + col2
----

query II rowsort
SELECT ALL - col1 - - col2, col1 FROM tab2 AS cor0
----
-28
51
-37
77
-9
67

query I rowsort
SELECT + + 64 * + - col0 FROM tab0 AS cor0
----
-5568
-6208
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70 / + col2 col2, + col1 / col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + - col2 - + + col1 AND 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL >= ( - col1 ) * - - 25
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL >= ( - col1 ) * - - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL - SUM( DISTINCT + - ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL - SUM ( DISTINCT + - ( col1 ) ) FROM tab0
----
103

query I rowsort
SELECT col0 - - + ( - 53 ) AS col1 FROM tab2
----
-7
11
22

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT COUNT( * ) * - MAX( + col0 ) AS col0 FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT COUNT ( * ) * - MAX ( + col0 ) AS col0 FROM tab1 cor0
----
-273

query I rowsort
SELECT ALL - 25 * + - 86 FROM tab1 AS cor0
----
2150
2150
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT - MAX( + ( + - ( - + 59 ) ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT - MAX ( + ( + - ( - + 59 ) ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT - AVG ( col2 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT - AVG ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 53 FROM tab1 WHERE NOT + ( + col2 ) IS NULL
----
53
53
53

query II rowsort
SELECT - col0 * + col0 AS col1, + 24 AS col2 FROM tab0
----
-225
24
-7569
24
-9409
24

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT col1 / col0 IS NOT NULL
----

query I rowsort
SELECT + 48 * - col0 FROM tab1
----
-2448
-4080
-4368

query II rowsort
SELECT DISTINCT 97 * - col0 AS col1, col1 AS col1 FROM tab1
----
-4947
14
-8245
5
-8827
47

query I rowsort
SELECT - 16 * + - 84 * col1 FROM tab1
----
18816
63168
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT col1 DIV 1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8700
SELECT col1 / 1 AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT COUNT( * ) AS col0, 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
75

skipif mysql # not compatible
query II rowsort label-8701
SELECT COUNT ( * ) AS col0, 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
75

query I rowsort
SELECT + col1 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + col1 + - col1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8703
SELECT ALL MIN( DISTINCT CAST( + col1 AS DECIMAL ) ) * + 32 + - - 13 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL MIN ( DISTINCT CAST ( + col1 AS REAL ) ) * + 32 + - - 13 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 / - col1 * + + col2 * - - col1 - 72 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 / - col1 * + + col2 * - - col1 - 72 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) + 66 AS col0 FROM tab1 AS cor0
----
-2
-30
7

query I rowsort
SELECT 12 + + 23 AS col0 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT + SUM( col1 ) * COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8708
SELECT + SUM ( col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT + 68 DIV ( - col1 ) DIV - 33 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8709
SELECT + 68 / ( - col1 ) / - 33 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8710
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) * - - 82 AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8710
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) * - - 82 AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 col1, 24 * - col1 + col0 AS col2 FROM tab2
----
32
-1178
32
-1533
32
-1784

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT - 35 DIV + col2 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8712
SELECT - 35 / + col2 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE - 44 IS NULL
----

query II rowsort
SELECT col1, 8 FROM tab1
----
14
8
47
8
5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT - COUNT( * ) * + + 18 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - COUNT ( * ) * + + 18 FROM tab1
----
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 48 < 42 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-8717
SELECT ALL col1, - 29 DIV - - col1 AS col1 FROM tab1 AS cor0
----
14
-2
47
0
5
-5

skipif mysql # not compatible
query II rowsort label-8717
SELECT ALL col1, - 29 / - - col1 AS col1 FROM tab1 AS cor0
----
14
-2
47
0
5
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + - 73, + col2 - + col0 + + 93, + ( + col2 ) )
----

query I rowsort
SELECT DISTINCT 89 - + 38 - + col1 * + col1 AS col0 FROM tab0
----
-390
-6510
50

query I rowsort
SELECT + - 81 + 17 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < - - col1
----

query I rowsort
SELECT DISTINCT 92 * col1 * col1 AS col2 FROM tab1 AS cor0
----
18032
203228
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + + 28 * + COUNT( DISTINCT + - col0 ) * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-8724
SELECT + + 28 * + COUNT ( DISTINCT + - col0 ) * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
252

query I rowsort
SELECT + ( - - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - col0 <= - col1 * + - 75
----
97
1
99

query I rowsort
SELECT ALL - 29 * + - 53 FROM tab1
----
1537
1537
1537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT + COUNT( - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT + COUNT ( - col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL col0 * + 88 FROM tab1
----
4488
7480
8008

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col0 > 96
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - + ( - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT col0 NOT IN ( + 73 * col2 + + + CAST( NULL AS SIGNED ) / - 65 + col1 + + col2, 88 + + 42 + + 18 )
----

skipif mysql # not compatible
query I rowsort label-8735
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT col0 NOT IN ( + 73 * col2 + + + CAST ( NULL AS INTEGER ) / - 65 + col1 + + col2, 88 + + 42 + + 18 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8736
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 12 FROM tab2
----
276
480
696

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT DISTINCT - col2 + + - 70 DIV + 77 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - col2 + + - 70 / + 77 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col0 + + col1 - - col2 FROM tab0
----
118
143
197

query I rowsort
SELECT + - ( + col1 ) * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT DISTINCT - CAST( CAST( - 57 AS SIGNED ) AS SIGNED ) + + col0 FROM tab0 cor0
----
144
154
72

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT - CAST ( CAST ( - 57 AS INTEGER ) AS INTEGER ) + + col0 FROM tab0 cor0
----
144
154
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT + + MAX( ALL col1 ) - - MAX( ALL - col2 ) * COUNT( ALL + 77 ) FROM tab1 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-8742
SELECT + + MAX ( ALL col1 ) - - MAX ( ALL - col2 ) * COUNT ( ALL + 77 ) FROM tab1 AS cor0
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT - col2 + - 85 * + - CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT - col2 + - 85 * + - CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + ( + 57 ) AS col2 FROM tab2
----
115
80
97

query I rowsort
SELECT + 19 + - col2 AS col0 FROM tab2
----
-21
-39
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT SUM( DISTINCT - col0 ) * + MIN( + col2 ) + + + 80 + + 43 AS col0 FROM tab0
----
-1867

skipif mysql # not compatible
query I rowsort label-8746
SELECT SUM ( DISTINCT - col0 ) * + MIN ( + col2 ) + + + 80 + + 43 AS col0 FROM tab0
----
-1867

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 77 + - 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT DISTINCT 27, 1 AS col1 FROM tab1
----
27
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 <> col1 * 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT - 17 DIV col0 * col2 * - - col0 FROM tab0
----
-705
0
0

skipif mysql # not compatible
query I rowsort label-8751
SELECT - 17 / col0 * col2 * - - col0 FROM tab0
----
-705
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8752
SELECT DISTINCT - col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8752
SELECT DISTINCT - col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT ALL col1 AS col0, - col1 AS col2 FROM tab1 cor0
----
14
-14
47
-47
5
-5

query II rowsort
SELECT ALL - col0 * + col0 * + 84 AS col2, + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-218484
51
-606900
85
-695604
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - 34 * col1 + col2 * + col0 / - col1 * - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT + - COUNT( * ) AS col1, - COUNT( * ) col0 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8756
SELECT + - COUNT ( * ) AS col1, - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
-3

query I rowsort
SELECT + col0 * - - col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8758
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 62 ) <= ( NULL )
----

query I rowsort
SELECT + col0 * - - col2 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + + + 63 * 32 - - col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 86 FROM tab1 AS cor0 WHERE NOT 66 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL 40 * + + 73 + + col1 FROM tab2 cor0
----
2971
2987
2997

query II rowsort
SELECT + ( + col2 ) AS col0, + col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + COUNT( * ) * - 8 AS col1 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8765
SELECT + COUNT ( * ) * - 8 AS col1 FROM tab2
----
-24

query I rowsort
SELECT DISTINCT + 45 * + - 92 FROM tab1
----
-4140

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col1 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8768
SELECT * FROM tab2 WHERE NULL = - col0 * - - 71 * - ( + col0 ) + - col2 * + col0 + - + ( - + col2 ) - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8768
SELECT * FROM tab2 WHERE NULL = - col0 * - - 71 * - ( + col0 ) + - col2 * + col0 + - + ( - + col2 ) - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT + CAST( + 51 AS SIGNED ) + col2 + col2 AS col1 FROM tab0
----
145
249
71

skipif mysql # not compatible
query I rowsort label-8769
SELECT + CAST ( + 51 AS INTEGER ) + col2 + col2 AS col1 FROM tab0
----
145
249
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8770
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 97 + + CAST( NULL AS SIGNED ) * - 20 * + ( 76 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8770
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 97 + + CAST ( NULL AS INTEGER ) * - 20 * + ( 76 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 74 + 22 AS col2 FROM tab2 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - col2 <= col2 + + col1 + col2 + 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL COUNT( ALL 97 ) FROM tab1 AS cor0 WHERE col1 NOT IN ( + - col0, + col1 * + 49, + col1 * - 96 )
----
3

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL COUNT ( ALL 97 ) FROM tab1 AS cor0 WHERE col1 NOT IN ( + - col0, + col1 * + 49, + col1 * - 96 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT COUNT( * ) - 11 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT COUNT ( * ) - 11 FROM tab1 AS cor0
----
-8

query II rowsort
SELECT ALL - + col0 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT DISTINCT + COUNT( * ) + 32 AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT + COUNT ( * ) + 32 AS col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT + 29 * - + col1 AS col2 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + 47 * + MAX( ALL 87 ) FROM tab1
----
4089

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 47 * + MAX ( ALL 87 ) FROM tab1
----
4089

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 IN ( col0, + col1 + + 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - + ( + - col2 ) AS col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL col0 * + 61 FROM tab1
----
3111
5185
5551

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT - 73 DIV + 16 AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - 73 / + 16 AS col0 FROM tab0
----
-4

query III rowsort
SELECT * FROM tab0 WHERE - col2 * 96 + + + 51 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8784
SELECT ALL * FROM tab1 WHERE NOT NULL >= CAST( NULL AS SIGNED ) AND NOT col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8784
SELECT ALL * FROM tab1 WHERE NOT NULL >= CAST ( NULL AS INTEGER ) AND NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8785
SELECT + col0 / + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE ( NOT - ( col0 ) * - 17 > NULL )
----

skipif mysql # not compatible
query I rowsort label-8785
SELECT + col0 / + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE ( NOT - ( col0 ) * - 17 > NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 >= + col1 * - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8787
SELECT + COUNT( * ) DIV - ( 87 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( * ) / - ( 87 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * + 6 AS col0 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT 13 * - + 39 FROM tab0
----
-507
-507
-507

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 / ( - col0 ) - - 52, 10 + + - 66 + + + 27, + 30 )
----

query I rowsort
SELECT DISTINCT 71 * 83 FROM tab2, tab0 AS cor0
----
5893

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT + 7 + MIN( + - ( + + col0 ) ) AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + 7 + MIN ( + - ( + + col0 ) ) AS col0 FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT DISTINCT - 98 + + 15, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-83
-3

skipif mysql # not compatible
query II rowsort label-8793
SELECT DISTINCT - 98 + + 15, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-83
-3

query I rowsort
SELECT - ( + col1 ) FROM tab0 AS cor0 WHERE col2 * - 5 * + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8797
SELECT - CAST( + 97 AS SIGNED ), COUNT( * ) AS col1 FROM tab0
----
-97
3

skipif mysql # not compatible
query II rowsort label-8797
SELECT - CAST ( + 97 AS INTEGER ), COUNT ( * ) AS col1 FROM tab0
----
-97
3

query I rowsort
SELECT ALL + 4 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT COUNT( * ) + + 26 AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT COUNT ( * ) + + 26 AS col1 FROM tab2 AS cor0
----
29

query I rowsort
SELECT - + ( + col0 ) - + ( + 71 ) FROM tab1 AS cor0
----
-122
-156
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT - COUNT( * ) - - 59 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT - COUNT ( * ) - - 59 FROM tab0 AS cor0
----
56

query I rowsort
SELECT col0 - + col2 + - - 45 * + 89 FROM tab0 AS cor0
----
3973
4003
4082

query I rowsort
SELECT ALL col2 + + 47 AS col1 FROM tab0 AS cor0
----
146
57
94

query I rowsort
SELECT ALL col1 - - + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + ( - + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT DISTINCT col0 * + + col2 * - + ( + 24 ) - + col0 DIV + ( 18 ) FROM tab0
----
-16920
-20884
-230477

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT col0 * + + col2 * - + ( + 24 ) - + col0 / + ( 18 ) FROM tab0
----
-16920
-20884
-230477

query II rowsort
SELECT + col0 * + + col1 + - 42 AS col1, col1 FROM tab1
----
383
5
4235
47
672
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT COUNT( * ) + - 7 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-8808
SELECT COUNT ( * ) + - 7 FROM tab1
----
-4

query II rowsort
SELECT + col2 AS col2, col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT + 12 * - + COUNT( * ) col1 FROM tab0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8810
SELECT + 12 * - + COUNT ( * ) col1 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT + COUNT( - ( + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8811
SELECT + COUNT ( - ( + col1 ) ) FROM tab2
----
3

query I rowsort
SELECT + 39 * col2 FROM tab1
----
2301
2652
3744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8813
SELECT - col1 AS col2, 51 * + CAST( + + 34 AS SIGNED ) AS col1 FROM tab2
----
-51
1734
-67
1734
-77
1734

skipif mysql # not compatible
query II rowsort label-8813
SELECT - col1 AS col2, 51 * + CAST ( + + 34 AS INTEGER ) AS col1 FROM tab2
----
-51
1734
-67
1734
-77
1734

query I rowsort
SELECT - 93 * + ( + - col1 ) * 95 + - - col2 AS col1 FROM tab1 AS cor0
----
123786
415313
44234

query I rowsort
SELECT ALL - col0 * + - 46 FROM tab1 cor0
----
2346
3910
4186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * 67 col0 FROM tab0 AS cor0
----
5025

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + - 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 39 col2 FROM tab0 AS cor0
----
39
39
39

query II rowsort
SELECT + col0 * + 82, + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT 4 DIV + + 29 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8820
SELECT 4 / + + 29 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT ALL - + COUNT( * ) DIV 2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - + COUNT ( * ) / 2 FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col0 + 65 * + 71 col0, - col0 FROM tab0 AS cor0
----
4615
-15
4615
-87
4615
-97

query I rowsort
SELECT col0 + - + col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT 82 DIV + col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-8824
SELECT 82 / + col1 FROM tab1
----
1
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + MAX( DISTINCT - - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8825
SELECT + MAX ( DISTINCT - - col2 ) AS col1 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT ALL - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT 11 + + col1 AS col2 FROM tab0
----
12
32
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT MAX( ALL + + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT MAX ( ALL + + col2 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8829
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8829
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT col2 NOT IN ( - 41 * - + 52, + col0 * - 89 * - col2, - + col2, + 75 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 81 AND + col0
----

query I rowsort
SELECT ALL col0 + 85 AS col0 FROM tab2 AS cor0
----
131
149
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT col1 / 57 + - - col0 AS col0 FROM tab1 cor0 WHERE - 35 NOT BETWEEN + 93 * - CAST( NULL AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8833
SELECT col1 / 57 + - - col0 AS col0 FROM tab1 cor0 WHERE - 35 NOT BETWEEN + 93 * - CAST ( NULL AS INTEGER ) * + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT ALL + col2 - - col2 - + col1 + + + col1 DIV - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
-2
127
28

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + col2 - - col2 - + col1 + + + col1 / - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
-2
127
28

query I rowsort
SELECT ALL - ( - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col2, + col1 FROM tab1 cor0
----
27
14
27
47
27
5

query I rowsort
SELECT DISTINCT - ( - + col0 ) * + col2 FROM tab2 AS cor0 WHERE col2 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT AVG ( ALL + ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT AVG ( ALL + ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 30 + + 2 + - col0 AS col0 FROM tab1 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL + COUNT( ALL - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + COUNT ( ALL - - col1 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ) col2, - 25 FROM tab1
----
-59
-25
-68
-25
-96
-25

query I rowsort
SELECT DISTINCT - 25 FROM tab2 WHERE NULL <> - col1 * + + 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT - - ( - col1 ) DIV + ( - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8843
SELECT - - ( - col1 ) / + ( - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab2 AS cor0 WHERE NOT col2 + + - col0 IS NULL
----
0
0
0

query II rowsort
SELECT + + col2 * - col2, + col2 AS col1 FROM tab1 AS cor0
----
-3481
59
-4624
68
-9216
96

query I rowsort
SELECT DISTINCT + col1 * + ( + col1 ) * - col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT ALL 4 - - col2 - ( 62 ) FROM tab0 WHERE - col0 / col0 + CAST( NULL AS SIGNED ) BETWEEN 56 + + col1 AND 72
----

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL 4 - - col2 - ( 62 ) FROM tab0 WHERE - col0 / col0 + CAST ( NULL AS INTEGER ) BETWEEN 56 + + col1 AND 72
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT DISTINCT - COUNT( * ), + 48 AS col2 FROM tab0
----
-3
48

skipif mysql # not compatible
query II rowsort label-8848
SELECT DISTINCT - COUNT ( * ), + 48 AS col2 FROM tab0
----
-3
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT DISTINCT - col2 * + + ( + 57 ) * - + col2 * 43 + - col0 + - + CAST( 11 AS SIGNED ) + + + 97 * - 93 FROM tab1 AS cor0
----
11324301
22579333
8522814

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - col2 * + + ( + 57 ) * - + col2 * 43 + - col0 + - + CAST ( 11 AS INTEGER ) + + + 97 * - 93 FROM tab1 AS cor0
----
11324301
22579333
8522814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8850
SELECT DISTINCT + COUNT( * ) DIV + MIN( - + 22 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + COUNT ( * ) / + MIN ( - + 22 ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + col1 + + + col2 NOT BETWEEN col1 AND col1 * 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 60 * - 15 + - + col1 FROM tab0 AS cor0
----
-901
-921
-981

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - 4 ) * + 31 * 89 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - 96 * + - COUNT( * ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8854
SELECT - 96 * + - COUNT ( * ) FROM tab0 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL + SUM( DISTINCT + col0 ) col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8855
SELECT ALL + SUM ( DISTINCT + col0 ) col2 FROM tab2 cor0
----
185

query I rowsort
SELECT DISTINCT - 26 - + col0 FROM tab0 WHERE - col0 IS NOT NULL
----
-113
-123
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT + col1 * col1 DIV + 72 + - - 66 DIV 8 * + 74 * + - 39 FROM tab0
----
-22997
-23082
-23088

skipif mysql # not compatible
query I rowsort label-8857
SELECT + col1 * col1 / + 72 + - - 66 / 8 * + 74 * + - 39 FROM tab0
----
-22997
-23082
-23088

query I rowsort
SELECT 59 + + 19 + col0 * col2 FROM tab0
----
783
948
9681

query I rowsort
SELECT DISTINCT + 11 + + col2 + + col0 FROM tab1
----
155
158
170

query II rowsort
SELECT - 73, - col0 FROM tab0 WHERE - 9 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + 3 + - col0 * - + 26 FROM tab0 AS cor0
----
2265
2525
393

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT ALL + 74 + - - COUNT( * ) AS col0, MAX( - col1 ) FROM tab2 AS cor0
----
77
-51

skipif mysql # not compatible
query II rowsort label-8862
SELECT ALL + 74 + - - COUNT ( * ) AS col0, MAX ( - col1 ) FROM tab2 AS cor0
----
77
-51

query I rowsort
SELECT DISTINCT ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col1 + - col2 + col1 AS col0 FROM tab0 cor0
----
-97
115
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8865
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + col2 AS SIGNED ) + - 98 * col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8865
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + col2 AS INTEGER ) + - 98 * col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab1, tab0 AS cor0
----
-9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 66 IS NOT NULL
----

query I rowsort
SELECT - 48 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL - - SUM( + - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - - SUM ( + - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT ALL col0 * - + col2 - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL col0 * - + col2 - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT + ( COUNT( * ) ) + - ( - 12 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT + ( COUNT ( * ) ) + - ( - 12 ) AS col2 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + - 50 + col0, + col0 col1 FROM tab2 AS cor0
----
-42
75
-55
46
-63
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 - - col0 IS NULL
----

query I rowsort
SELECT ALL ( 74 ) FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT MAX( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8875
SELECT MAX ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT ALL - col1 AS col0, 83 FROM tab1
----
-14
83
-47
83
-5
83

query II rowsort
SELECT 51 AS col2, - ( - col0 ) * col2 * + col1 FROM tab0
----
51
18270
51
57105
51
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8878
SELECT * FROM tab0 WHERE NOT NULL <= col1 / 2 * 38 + CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8878
SELECT * FROM tab0 WHERE NOT NULL <= col1 / 2 * 38 + CAST ( + - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 29 * 16 AS col1 FROM tab2
----
464

query I rowsort
SELECT + col2 - - 22 FROM tab1 WHERE NOT - col2 NOT BETWEEN - ( - col0 ) AND col2
----

query II rowsort
SELECT DISTINCT + col1 * - col0 AS col2, col0 FROM tab2 AS cor0
----
-2346
46
-4928
64
-5025
75

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 * col0, + 78 col2 FROM tab0
----
1320
78
7656
78
8536
78

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT ( - ( + - 25 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 76 * - 67 + col1 > NULL
----

query I rowsort
SELECT + col0 + + 12 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
109
27
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT col1 DIV - + col0 + col0 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-8887
SELECT col1 / - + col0 + col0 FROM tab2 AS cor0
----
45
63
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT ( col0 ), + 86 + - 2 FROM tab0 AS cor0
----
15
84
87
84
97
84

query II rowsort
SELECT - 54, col2 AS col1 FROM tab0
----
-54
10
-54
47
-54
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT DISTINCT col0 * + col2 * + - col0 + - col1 * + 5 * col2 + - 83 + + col1 DIV - col0 AS col2 FROM tab0
----
-29698
-76823
-932069

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT col0 * + col2 * + - col0 + - col1 * + 5 * col2 + - 83 + + col1 / - col0 AS col2 FROM tab0
----
-29698
-76823
-932069

query I rowsort
SELECT ALL + 1 * + - col0 * - col2 * - 87 AS col0 FROM tab2
----
-222720
-378450
-92046

query I rowsort
SELECT ALL + col1 / + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 15 + - - ( col1 ) AS col1, col0 * col2 AS col1 FROM tab0 AS cor0
----
16
9603
36
870
96
705

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - 57 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( CAST( 8 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8897
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( CAST ( 8 AS INTEGER ) )
----

query I rowsort
SELECT 59 * + col1 AS col0 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT DISTINCT + col2 * - 39 + col1 AS col1 FROM tab2
----
-1483
-2195
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT - 17 * - COUNT( * ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8900
SELECT - 17 * - COUNT ( * ) AS col1 FROM tab2
----
51

query I rowsort
SELECT + 34 * - 86 FROM tab0
----
-2924
-2924
-2924

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 55 col0 FROM tab1
----
106
140
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT - 76 * COUNT( * ) FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - 76 * COUNT ( * ) FROM tab0
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL - CAST( NULL AS SIGNED ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8905
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 95 + - col2 AS col1 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT + 19 AS col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT ALL 38 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL 38 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT ALL + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) < + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> 64 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - COUNT( * ) + COUNT( * ) * + 50 AS col0 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-8912
SELECT - COUNT ( * ) + COUNT ( * ) * + 50 AS col0 FROM tab0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 56 ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL + 21 * - COUNT( * ) + + 32 AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + 21 * - COUNT ( * ) + + 32 AS col1 FROM tab1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT + ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 65 ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8919
SELECT DISTINCT 52 FROM tab0 WHERE - col0 >= CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT 52 FROM tab0 WHERE - col0 >= CAST ( col0 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8920
SELECT - col2 AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + CAST( + 18 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8920
SELECT - col2 AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + CAST ( + 18 AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) + - 57 * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) + - 57 * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT DISTINCT + CAST( - 75 AS SIGNED ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT 66 + 52 FROM tab1
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IN ( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IN ( + 78 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT DISTINCT CAST( + 79 AS SIGNED ) col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8925
SELECT DISTINCT CAST ( + 79 AS INTEGER ) col0 FROM tab2 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col2 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT 1 * - 71 FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL col0 + 70 FROM tab1 AS cor0 WHERE NOT col1 * - col1 NOT BETWEEN ( 80 + col0 ) AND + col1 * - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT MIN( ALL col0 ) + COUNT( * ) col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8930
SELECT MIN ( ALL col0 ) + COUNT ( * ) col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL ( - 17 ) AS col0 FROM tab2 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 * - ( col2 ) col2 FROM tab1
----
2360
2720
3840

query I rowsort
SELECT ALL - 58 + col0 AS col1 FROM tab0
----
-43
29
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT DISTINCT + 34 DIV col0 + col0 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT + 34 / col0 + col0 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + col2 + 50 * + col1 AS col2 FROM tab1 AS cor0
----
2418
309
796

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 cor0 WHERE NOT + 62 * col2 NOT BETWEEN + 58 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col2 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 5 * col2 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE NOT - col1 + col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 14 * + col2 AS col1 FROM tab1 AS cor0
----
-1344
-826
-952

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 * - col1 AND ( 14 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - 34 NOT BETWEEN - col0 - 65 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - 72 + 21 * 68
----

query I rowsort
SELECT DISTINCT col0 * + 75 AS col1 FROM tab2
----
3450
4800
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT col2 + + + 47 DIV 37 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-8947
SELECT col2 + + + 47 / 37 FROM tab0
----
100
11
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 + - + 67 + - 17 * - 58 col2 FROM tab0
----
954

query I rowsort
SELECT ALL 1 * ( - col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE col2 + - 30 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8950
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE col2 + - 30 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT COUNT( * ) * 88 + 68 FROM tab2
----
332

skipif mysql # not compatible
query I rowsort label-8951
SELECT COUNT ( * ) * 88 + 68 FROM tab2
----
332

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT ALL - 43 DIV + col2 + - 86 FROM tab2
----
-86
-87
-87

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - 43 / + col2 + - 86 FROM tab2
----
-86
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT ALL 11 FROM tab1 WHERE ( ( CAST( NULL AS SIGNED ) ) / 98 ) <= col0
----

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL 11 FROM tab1 WHERE ( ( CAST ( NULL AS INTEGER ) ) / 98 ) <= col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / + col2 BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT + - SUM( + col0 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT + - SUM ( + col0 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 28 * 38 ) < + 21
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8957
SELECT ALL - CAST( NULL AS DECIMAL ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - CAST ( NULL AS REAL ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - - col1 col0 FROM tab1
----
21
54
82

query I rowsort
SELECT - 71 * 74 FROM tab2
----
-5254
-5254
-5254

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT - SUM( 37 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-333

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - SUM ( 37 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-333

query I rowsort
SELECT DISTINCT - 85 + + 81 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - MAX( - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8963
SELECT - MAX ( - + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT + + 40 * col0 AS col1 FROM tab1 AS cor0
----
2040
3400
3640

query I rowsort
SELECT + 44 * col2 AS col2 FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT COUNT( + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8966
SELECT COUNT ( + col2 ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT DISTINCT + col1 DIV - col0 FROM tab1 AS cor0 WHERE NOT + col0 * - + 14 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT + col1 / - col0 FROM tab1 AS cor0 WHERE NOT + col0 * - + 14 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT ALL - - 36 DIV + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - - 36 / + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 38 * col2 * - 84 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT - CAST( + col0 AS SIGNED ) * + + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-8970
SELECT - CAST ( + col0 AS INTEGER ) * + + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col1 FROM tab0
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT + col2 DIV + + col0 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8972
SELECT + col2 / + + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * 38 AS col2 FROM tab0 cor0
----
-3306
-3686
-570

query I rowsort
SELECT ALL ( - 32 ) FROM tab1 AS cor0
----
-32
-32
-32

query II rowsort
SELECT ALL - col0 AS col0, + col2 + + 63 * - - 58 FROM tab2
----
-46
3677
-64
3694
-75
3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT - col0 + + CAST( + + ( + + 24 ) AS SIGNED ) AS col1 FROM tab1
----
-27
-61
-67

skipif mysql # not compatible
query I rowsort label-8976
SELECT - col0 + + CAST ( + + ( + + 24 ) AS INTEGER ) AS col1 FROM tab1
----
-27
-61
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 + col0 + + 61 + - col0 col1 FROM tab0
----
120
120
120

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 0 / col2 + + - 13 * - ( + col0 ) * col0 + + col1 * + 14 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT SUM( col1 ) + 78 AS col2 FROM tab1 AS cor0 WHERE ( + ( col1 ) ) >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT SUM ( col1 ) + 78 AS col2 FROM tab1 AS cor0 WHERE ( + ( col1 ) ) >= + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 + - col2 col1 FROM tab0 AS cor0
----
-22
-74
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT DISTINCT 82 * - - CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 23 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT 82 * - - CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col2 + - col0 + - ( + + col1 ) * col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col2 + - col0 + - ( + + col1 ) * col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT COUNT( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8983
SELECT COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 / - - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 95 - 90 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + 6 * - col2 AS col1 FROM tab1 AS cor0
----
-354
-408
-576

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 * 85 * 98 + - col1 ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8988
SELECT CAST( NULL AS SIGNED ) * + col0, 80 * + ( - - 47 ) AS col1 FROM tab2
----
NULL
3760
NULL
3760
NULL
3760

skipif mysql # not compatible
query II rowsort label-8988
SELECT CAST ( NULL AS INTEGER ) * + col0, 80 * + ( - - 47 ) AS col1 FROM tab2
----
NULL
3760
NULL
3760
NULL
3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE - - col2 * + col1 IN ( + + ( col1 ) - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE - - col2 * + col1 IN ( + + ( col1 ) - + col1 )
----
NULL

query I rowsort
SELECT ALL col0 + - 37 FROM tab2 AS cor0
----
27
38
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 64 - + ( 62 ) col2 FROM tab2 WHERE NOT 90 IS NULL
----
-126
-126
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 * + - col1 col0 FROM tab2
----
-3978
-5226
-6006

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - 8 ) + - col2 + - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( - - col2 ) NOT IN ( - 39, 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL - MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT + MIN( col2 ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8996
SELECT DISTINCT + MIN ( col2 ) col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 5 IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * - + 46 - - 74 / - col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND 56
----

query II rowsort
SELECT - 13 * - + col0 AS col1, col1 FROM tab2 cor0
----
598
51
832
77
975
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - - MIN( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT col0 < + col1 )
----
81

skipif mysql # not compatible
query I rowsort label-9000
SELECT - - MIN ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT col0 < + col1 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT DISTINCT + ( - col0 ) * + - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT + ( - col0 ) * + - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT DISTINCT ( MIN( DISTINCT - col2 ) ) DIV ( - 59 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT ( MIN ( DISTINCT - col2 ) ) / ( - 59 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9003
SELECT + SUM( DISTINCT - col0 ) AS col2, + COUNT( * ) * - COUNT( ALL - + 47 ) AS col0 FROM tab1 AS cor0
----
-227
-9

skipif mysql # not compatible
query II rowsort label-9003
SELECT + SUM ( DISTINCT - col0 ) AS col2, + COUNT ( * ) * - COUNT ( ALL - + 47 ) AS col0 FROM tab1 AS cor0
----
-227
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT DISTINCT - - 55 / + - COUNT( * ) + + MAX( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - - 55 / + - COUNT ( * ) + + MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT + - 40 * CAST( - 49 AS SIGNED ) AS col0 FROM tab0 cor0
----
1960
1960
1960

skipif mysql # not compatible
query I rowsort label-9006
SELECT + - 40 * CAST ( - 49 AS INTEGER ) AS col0 FROM tab0 cor0
----
1960
1960
1960

onlyif mysql # DIV for integer division: 
query I rowsort label-9007
SELECT DISTINCT - col1 DIV + + col0 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9007
SELECT DISTINCT - col1 / + + col0 col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT ALL ( + + CAST( + - ( - 95 ) AS SIGNED ) ) FROM tab0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL ( + + CAST ( + - ( - 95 ) AS INTEGER ) ) FROM tab0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9009
SELECT DISTINCT col1, col0 * + CAST( + 27 AS SIGNED ) AS col0 FROM tab2
----
51
1242
67
2025
77
1728

skipif mysql # not compatible
query II rowsort label-9009
SELECT DISTINCT col1, col0 * + CAST ( + 27 AS INTEGER ) AS col0 FROM tab2
----
51
1242
67
2025
77
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT COUNT( - 47 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT COUNT ( - 47 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL ( - 29 ) FROM tab1
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + 67 * + ( ( + col0 ) ) FROM tab2
----
3082
4288
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT - - COUNT( * ) * 75 - COUNT( * ) FROM tab0 WHERE NOT - 46 <= - col2
----
148

skipif mysql # not compatible
query I rowsort label-9013
SELECT - - COUNT ( * ) * 75 - COUNT ( * ) FROM tab0 WHERE NOT - 46 <= - col2
----
148

query I rowsort
SELECT + col0 * 19 AS col2 FROM tab1
----
1615
1729
969

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT ALL + 41 DIV 68 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + 41 / 68 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT DISTINCT ( - COUNT( * ) ) AS col0, + 48 AS col2 FROM tab0
----
-3
48

skipif mysql # not compatible
query II rowsort label-9016
SELECT DISTINCT ( - COUNT ( * ) ) AS col0, + 48 AS col2 FROM tab0
----
-3
48

query I rowsort
SELECT col2 FROM tab2 WHERE ( + 81 ) <> NULL
----

query I rowsort
SELECT DISTINCT - - 2 + col0 AS col1 FROM tab0 AS cor0
----
17
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - 17 - SUM( + ( + - col0 ) ) FROM tab0 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-9019
SELECT - 17 - SUM ( + ( + - col0 ) ) FROM tab0 AS cor0
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) * - - 71 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - 71 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT DISTINCT MIN( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT MIN ( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 64 <= NULL
----

query I rowsort
SELECT 12 + - col0 AS col0 FROM tab1 AS cor0
----
-39
-73
-79

query II rowsort
SELECT ALL col2 + - - col0 AS col0, col2 AS col2 FROM tab1 AS cor0
----
144
59
147
96
159
68

query II rowsort
SELECT DISTINCT + col1 * - + col1 * 88 + col1 - + col1 + col2 * - - col0, + col0 AS col2 FROM tab0 cor0
----
-37938
87
-576663
15
9515
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT - CAST( NULL AS SIGNED ) - + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9026
SELECT - CAST ( NULL AS INTEGER ) - + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT 14 * CAST( col0 AS SIGNED ) + + + col2 FROM tab2
----
1108
667
936

skipif mysql # not compatible
query I rowsort label-9027
SELECT 14 * CAST ( col0 AS INTEGER ) + + + col2 FROM tab2
----
1108
667
936

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT COUNT( * ) + COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9028
SELECT COUNT ( * ) + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
6

query I rowsort
SELECT DISTINCT + 45 FROM tab0 WHERE NOT + + 61 BETWEEN + col0 AND col2 + - col2 * + + col1
----
45

query I rowsort
SELECT - col2 + + 62 FROM tab1
----
-34
-6
3

query II rowsort
SELECT 18, + col0 AS col2 FROM tab0
----
18
15
18
87
18
97

query I rowsort
SELECT ALL col1 + - 62 - + 56 * - + col1 FROM tab2
----
2845
3757
4327

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT - COUNT( + ( + col1 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9033
SELECT - COUNT ( + ( + col1 ) ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT ALL col2 + - - 15 * + + col2 AS col0, ( + col1 ) AS col1 FROM tab1
----
1088
47
1536
14
944
5

query I rowsort
SELECT + 50 * col2 * - - col2 * col1 FROM tab0 AS cor0
----
105000
490050
8946450

query I rowsort
SELECT DISTINCT + ( + 93 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9037
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + 40 * - col1 * col2 BETWEEN ( + col2 ) AND - CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9037
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + 40 * - col1 * col2 BETWEEN ( + col2 ) AND - CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9038
SELECT + COUNT( * ) AS col1, - MIN( ALL col0 ) AS col0 FROM tab2
----
3
-46

skipif mysql # not compatible
query II rowsort label-9038
SELECT + COUNT ( * ) AS col1, - MIN ( ALL col0 ) AS col0 FROM tab2
----
3
-46

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT DISTINCT col2 DIV - - col1 * - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT col2 / - - col1 * - col2 FROM tab2
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 96 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT + - col0 DIV 90 * + col1 DIV - 88 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9042
SELECT + - col0 / 90 * + col1 / - 88 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT + col1 * + col1 * - CAST( + - ( - 83 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-16268
-183347
-2075

skipif mysql # not compatible
query I rowsort label-9043
SELECT + col1 * + col1 * - CAST ( + - ( - 83 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-16268
-183347
-2075

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN - col1 AND + col0 / - - 89
----
75
67
58

query I rowsort
SELECT 98 FROM tab0 AS cor0 WHERE NOT 68 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 87 ) * + col1 + - 98 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - col2 * col2 * - col1 FROM tab1 cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + + col0 + col0 * - col2 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 74 AND NULL
----

query II rowsort
SELECT ALL - ( - - 15 ) AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-15
-23
-15
-40
-15
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - 75 ) / - col0 + - 74 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - - 88 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + - 20 AND NULL
----

query I rowsort
SELECT + col1 * - - 25 FROM tab1 AS cor0
----
1175
125
350

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT COUNT( ALL + - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9054
SELECT COUNT ( ALL + - col1 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9055
SELECT ALL * FROM tab2 WHERE - CAST( col1 AS SIGNED ) - col2 + + ( ( - - col1 ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9055
SELECT ALL * FROM tab2 WHERE - CAST ( col1 AS INTEGER ) - col2 + + ( ( - - col1 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9056
SELECT ALL + col1 * - col0 col1, col1 DIV + - 71 * + 32 FROM tab1
----
-425
0
-4277
0
-714
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9056
SELECT ALL + col1 * - col0 col1, col1 / + - 71 * + 32 FROM tab1
----
-425
0
-4277
0
-714
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col0 >= + - col1 * col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT SUM( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE 4 + - col1 IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-9058
SELECT SUM ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE 4 + - col1 IS NOT NULL
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-9059
SELECT DISTINCT - + MIN( DISTINCT - col1 ) AS col1, 83 col2 FROM tab1 cor0
----
47
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9059
SELECT DISTINCT - + MIN ( DISTINCT - col1 ) AS col1, 83 col2 FROM tab1 cor0
----
47
83

query I rowsort
SELECT DISTINCT 73 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
73

query I rowsort
SELECT - ( + + 45 ) * - 64 AS col1 FROM tab0 AS cor0
----
2880
2880
2880

query I rowsort
SELECT DISTINCT + ( 27 ) + - + 32 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL - - COUNT( * ) + + 19 AS col0 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - - COUNT ( * ) + + 19 AS col0 FROM tab1 cor0
----
22

query II rowsort
SELECT col1, col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 48 col0 FROM tab0 AS cor0
----
-51
1
38

query II rowsort
SELECT ALL + col0 AS col1, 37 * + - 35 + - col0 + - col2 AS col2 FROM tab2 cor0
----
46
-1364
64
-1399
75
-1428

query I rowsort
SELECT ALL + + col1 - + - ( + - 16 ) AS col2 FROM tab1 AS cor0
----
-11
-2
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT - CAST( 36 AS SIGNED ) * + - col2 FROM tab0
----
1692
3564
360

skipif mysql # not compatible
query I rowsort label-9068
SELECT - CAST ( 36 AS INTEGER ) * + - col2 FROM tab0
----
1692
3564
360

query I rowsort
SELECT ALL 57 - + 78 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + - 28 * + 21 AS col1 FROM tab2 cor0
----
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + + MAX( DISTINCT + + 52 ) AS col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9072
SELECT + + MAX ( DISTINCT + + 52 ) AS col1 FROM tab2 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9073
SELECT COUNT( * ) AS col1, - 17 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
-17

skipif mysql # not compatible
query II rowsort label-9073
SELECT COUNT ( * ) AS col1, - 17 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
-17

query I rowsort
SELECT ALL - 0 + - ( + 88 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT COUNT( * ) * - 51 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT COUNT ( * ) * - 51 FROM tab2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL - 53 * - COUNT( * ) AS col0 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - 53 * - COUNT ( * ) AS col0 FROM tab1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL + COUNT( - 95 ) * - + 99 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + COUNT ( - 95 ) * - + 99 FROM tab0 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9078
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) * + col2, 72 AS col1 FROM tab2 AS cor0
----
NULL
72
NULL
72
NULL
72

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) * + col2, 72 AS col1 FROM tab2 AS cor0
----
NULL
72
NULL
72
NULL
72

query I rowsort
SELECT ALL col0 * - + 86 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + + col2, + col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + MIN( ALL + col0 ) * COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-9081
SELECT + MIN ( ALL + col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT col0 * - - col0 AS col1 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT DISTINCT - 50 DIV 99 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT - 50 / 99 AS col0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9085
SELECT DISTINCT col2 + col1 * CAST( NULL AS SIGNED ) + col0, + 37 + - - col2 * + - col2 col0 FROM tab2
----
NULL
-1563
NULL
-3327
NULL
-492

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9085
SELECT DISTINCT col2 + col1 * CAST ( NULL AS INTEGER ) + col0, + 37 + - - col2 * + - col2 col0 FROM tab2
----
NULL
-1563
NULL
-3327
NULL
-492

query I rowsort
SELECT col0 + - col1 + col0 FROM tab1
----
135
165
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - SUM( - + col1 ) + - 48 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9087
SELECT - SUM ( - + col1 ) + - 48 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT MAX( + - 35 ) FROM tab2 cor0 WHERE 13 < ( - col1 - + - 71 )
----
-35

skipif mysql # not compatible
query I rowsort label-9088
SELECT MAX ( + - 35 ) FROM tab2 cor0 WHERE 13 < ( - col1 - + - 71 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + 34 * - MAX( ALL 40 ) * - MIN( col1 ) AS col0 FROM tab2
----
69360

skipif mysql # not compatible
query I rowsort label-9089
SELECT + 34 * - MAX ( ALL 40 ) * - MIN ( col1 ) AS col0 FROM tab2
----
69360

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-77
2
32

query I rowsort
SELECT + ( - 68 ) - - + col1 * col2 * - col1 FROM tab0 AS cor0
----
-167
-308435
-4478

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT MIN( DISTINCT 47 ) * - + 7 - - + 85 AS col0 FROM tab1 AS cor0
----
-244

skipif mysql # not compatible
query I rowsort label-9092
SELECT MIN ( DISTINCT 47 ) * - + 7 - - + 85 AS col0 FROM tab1 AS cor0
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - COUNT( * ) + - ( - - SUM( ALL + + 10 ) ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9093
SELECT - COUNT ( * ) + - ( - - SUM ( ALL + + 10 ) ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30

query II rowsort
SELECT DISTINCT + - 60 - + col1, + col0 FROM tab0 AS cor0
----
-141
15
-61
97
-81
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9095
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED ) - - 55 AND NOT NULL > col2 - + 12
----

skipif mysql # not compatible
query III rowsort label-9095
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER ) - - 55 AND NOT NULL > col2 - + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT + 58 + + + CAST( NULL AS SIGNED ) + + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT + 58 + + + CAST ( NULL AS INTEGER ) + + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9097
SELECT DISTINCT * FROM tab0 WHERE - 62 NOT BETWEEN + col0 * - 66 * 82 AND - - CAST( + 83 AS SIGNED ) + + - col0
----

skipif mysql # not compatible
query III rowsort label-9097
SELECT DISTINCT * FROM tab0 WHERE - 62 NOT BETWEEN + col0 * - 66 * 82 AND - - CAST ( + 83 AS INTEGER ) + + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT DISTINCT CAST( - 68 AS SIGNED ) AS col0 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT CAST ( - 68 AS INTEGER ) AS col0 FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT COUNT( - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT COUNT ( - - col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col0 + - 57 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col0 + - 57 IS NOT NULL
----

query I rowsort
SELECT + col1 * + + col1 - - col1 AS col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT - 49, + ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 > NULL
----
-49
0

skipif mysql # not compatible
query II rowsort label-9102
SELECT - 49, + ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 > NULL
----
-49
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 60 <> - col1 - - col2 * + col0
----

query I rowsort
SELECT + 66 * + col1 AS col2 FROM tab0
----
1386
5346
66

query I rowsort
SELECT col1 * + 0 * + + col0 * - - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - 22 + - col1 * + - col1 + + 18 / col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( + - col2 ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT 83 * - CAST( - + col2 AS SIGNED ) + + ( col0 ) FROM tab0 AS cor0
----
3916
8314
917

skipif mysql # not compatible
query I rowsort label-9108
SELECT 83 * - CAST ( - + col2 AS INTEGER ) + + ( col0 ) FROM tab0 AS cor0
----
3916
8314
917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 * - - 49 AS col0, 19 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2254
19
3136
19
3675
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col1 FROM tab2 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9111
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1 * CAST( - + 37 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9111
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1 * CAST ( - + 37 AS INTEGER )
----

query II rowsort
SELECT col1 + + col0 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
108
-10
96
-47
98
-99

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( NULL ) OR NOT - col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, + col0 * - col1 AS col1 FROM tab0
----
1
-97
21
-1827
81
-1215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT MAX( DISTINCT col1 ) + + ( - 5 ) AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT MAX ( DISTINCT col1 ) + + ( - 5 ) AS col0 FROM tab1
----
42

query I rowsort
SELECT ALL col0 * + col2 * - col0 AS col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL col2 + 20 AS col2 FROM tab0
----
119
30
67

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT 61 AS col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT col0 DIV col2 DIV - + col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT col0 / col2 / - + col1 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 52 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col1 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT + + 69 + COUNT( * ) col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9124
SELECT DISTINCT + + 69 + COUNT ( * ) col1 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL + ( 2 ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + ( 2 ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9126
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT ALL + CAST( NULL AS SIGNED ) - + - 44 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 44 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 * - 47 - - col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT CAST( + COUNT( * ) AS SIGNED ) + - SUM( ALL + col2 ) + - + 74 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-192

skipif mysql # not compatible
query I rowsort label-9129
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - SUM ( ALL + col2 ) + - + 74 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-192

query I rowsort
SELECT ALL + col1 + + + col1 * 87 AS col2 FROM tab0 AS cor0
----
1848
7128
88

query I rowsort
SELECT ALL + + col2 + + 84 + - col1 + - col2 * + 8 AS col1 FROM tab2 AS cor0
----
-128
-273
-389

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 43 * + ( 62 ) IS NULL OR NOT - 35 IN ( - col1 + + ( + + 72 ), 91 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL col1 + + + col0 * CAST( + col1 AS SIGNED ) + + col1 AS col1 FROM tab2 cor0
----
2448
5082
5159

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL col1 + + + col0 * CAST ( + col1 AS INTEGER ) + + col1 AS col1 FROM tab2 cor0
----
2448
5082
5159

query I rowsort
SELECT DISTINCT 18 - - col1 AS col0 FROM tab1 AS cor0
----
23
32
65

query I rowsort
SELECT ALL + col0 * - - col0 + col1 FROM tab1 AS cor0 WHERE NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - - col1 ) col1, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL + col2 * - col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-14493249
-44100
-9801

query I rowsort
SELECT ( + 53 ) FROM tab0 cor0
----
53
53
53

query I rowsort
SELECT ALL - + 41 * 4 FROM tab1 AS cor0
----
-164
-164
-164

query II rowsort
SELECT + col0 AS col1, 73 FROM tab1 AS cor0
----
51
73
85
73
91
73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT SUM( - col1 ) col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9142
SELECT SUM ( - col1 ) col0 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 * - 21 col0, col1 AS col1 FROM tab0
----
-336
1
-336
21
-336
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT - 69 * 83 + + COUNT( * ) - + 26 FROM tab1 AS cor0
----
-5750

skipif mysql # not compatible
query I rowsort label-9144
SELECT - 69 * 83 + + COUNT ( * ) - + 26 FROM tab1 AS cor0
----
-5750

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + 82 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + - - col2 col1 FROM tab1 WHERE NOT - - 7 / col1 < - + 92
----
11
2
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT + ( - col1 ) * CAST( NULL AS SIGNED ) - - 16 * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT + ( - col1 ) * CAST ( NULL AS INTEGER ) - - 16 * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + 76 AS col1 FROM tab2 AS cor0
----
122
140
151

query II rowsort
SELECT DISTINCT + col1 AS col0, - 72 AS col0 FROM tab2 AS cor0
----
51
-72
67
-72
77
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT ALL + SUM( ALL + - ( + + 40 ) ) AS col1, + COUNT( + 86 ) col1 FROM tab1 AS cor0
----
-120
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9150
SELECT ALL + SUM ( ALL + - ( + + 40 ) ) AS col1, + COUNT ( + 86 ) col1 FROM tab1 AS cor0
----
-120
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL + COUNT( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + - + col2 col1 FROM tab1 AS cor0
----
-41
-50
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col1 * 11 col1 FROM tab1 AS cor0
----
2156
24299
275

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT - + COUNT( * ) * + - ( - 83 ) FROM tab2 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9154
SELECT - + COUNT ( * ) * + - ( - 83 ) FROM tab2 cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + MAX( + 58 ) col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9155
SELECT + MAX ( + 58 ) col0 FROM tab0 AS cor0
----
58

query I rowsort
SELECT 34 + + ( - col2 ) FROM tab2
----
-24
-6
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + COUNT( * ) + 17 + - + 40 col0 FROM tab1
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9157
SELECT + COUNT ( * ) + 17 + - + 40 col0 FROM tab1
----
-20

query I rowsort
SELECT col2 + + + col2 - - - 57 FROM tab2 AS cor0
----
-11
23
59

query I rowsort
SELECT DISTINCT - - 98 * col1 - col0 FROM tab1 AS cor0
----
1321
405
4515

query I rowsort
SELECT DISTINCT + col2 - + 60 + - - col0 * - 17 * - 59 FROM tab1 AS cor0
----
51189
85254
91281

query I rowsort
SELECT ALL - 18 + - col1 AS col2 FROM tab2 WHERE NOT NULL > ( - col0 )
----

query I rowsort
SELECT col0 - + col1 - 71 FROM tab1
----
-27
-34
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT col1 DIV 11 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-9163
SELECT col1 / 11 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT - - ( - 55 ) AS col1 FROM tab2 cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT + - col1 * 76 * col0 AS col2 FROM tab0 AS cor0
----
-138852
-7372
-92340

query I rowsort
SELECT ALL - col2 + - col0 + col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT + - col1 = col1 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL - 87 * + + COUNT( * ) + + 13 col0 FROM tab2 AS cor0
----
-248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9167
SELECT ALL - 87 * + + COUNT ( * ) + + 13 col0 FROM tab2 AS cor0
----
-248

query I rowsort
SELECT DISTINCT ( - + col2 ) * - + col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9169
SELECT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9170
SELECT - SUM( + 28 ) AS col2, 96 FROM tab2
----
-84
96

skipif mysql # not compatible
query II rowsort label-9170
SELECT - SUM ( + 28 ) AS col2, 96 FROM tab2
----
-84
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + MIN( ALL 55 ) AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-9171
SELECT + MIN ( ALL 55 ) AS col2 FROM tab0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-9172
SELECT + col1 AS col0, 2 DIV 78 * col2 * - + 72 * + 83 + - ( - col2 ) * + col2 col2 FROM tab2
----
51
529
67
3364
77
1600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9172
SELECT + col1 AS col0, 2 / 78 * col2 * - + 72 * + 83 + - ( - col2 ) * + col2 col2 FROM tab2
----
51
529
67
3364
77
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT MIN( - 94 ) * 60 FROM tab0
----
-5640

skipif mysql # not compatible
query I rowsort label-9173
SELECT MIN ( - 94 ) * 60 FROM tab0
----
-5640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9174
SELECT ALL + CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT COUNT( col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9175
SELECT DISTINCT COUNT ( col1 ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col1 * + 32 FROM tab2 AS cor0
----
1632
2144
2464

onlyif mysql # aggregate syntax: 
query II rowsort label-9177
SELECT DISTINCT + MIN( DISTINCT + col1 ) AS col0, + 44 FROM tab2 AS cor0
----
51
44

skipif mysql # not compatible
query II rowsort label-9177
SELECT DISTINCT + MIN ( DISTINCT + col1 ) AS col0, + 44 FROM tab2 AS cor0
----
51
44

query I rowsort
SELECT DISTINCT + + 77 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9179
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) + - + col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9179
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + - + col0 col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * + - 11 + - + col2 * col2 * - 68 + - + col1 AS col2 FROM tab2 AS cor0
----
109570
229422
36482

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 + + col2 / 4, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT ALL + - COUNT( * ) + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL + - COUNT ( * ) + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9183
SELECT * FROM tab1 AS cor0 WHERE ( - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9183
SELECT * FROM tab1 AS cor0 WHERE ( - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT - - ( COUNT( * ) ) * - 33 AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9184
SELECT - - ( COUNT ( * ) ) * - 33 AS col0 FROM tab0 cor0
----
-99

query II rowsort
SELECT col1, 53 AS col0 FROM tab2
----
51
53
67
53
77
53

query I rowsort
SELECT - - 67 * - col2 + + - col2 + + 30 AS col2 FROM tab0 WHERE NULL IS NULL
----
-3166
-650
-6702

query II rowsort
SELECT + col2 AS col1, - 67 FROM tab2
----
23
-67
40
-67
58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 28 ) col1 FROM tab1
----
-28

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) IN ( 56, 1 / col0 * + + col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL + 24 + - COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + 24 + - COUNT ( * ) FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL + col0 DIV + - col1 + + - ( + col2 ) FROM tab1 cor0
----
-69
-76
-99

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + col0 / + - col1 + + - ( + col2 ) FROM tab1 cor0
----
-69
-76
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + - COUNT( + col2 ) * + + 66 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT + - COUNT ( + col2 ) * + + 66 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - col1 + - 40 AS col0 FROM tab2 AS cor0
----
-107
-117
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL + - SUM( ALL col0 ) col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9194
SELECT ALL + - SUM ( ALL col0 ) col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT + + CAST( - 60 AS SIGNED ) * 20 + ( col2 ) FROM tab1 AS cor0
----
-1104
-1132
-1141

skipif mysql # not compatible
query I rowsort label-9195
SELECT + + CAST ( - 60 AS INTEGER ) * 20 + ( col2 ) FROM tab1 AS cor0
----
-1104
-1132
-1141

query I rowsort
SELECT ALL - col2 * - 15 AS col0 FROM tab1 AS cor0
----
1020
1440
885

query I rowsort
SELECT DISTINCT - col1 * - 78 AS col2 FROM tab2 AS cor0
----
3978
5226
6006

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col0 * col2 * col1 FROM tab0 AS cor0
----
182700
2683935
950697

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT ALL COUNT( * ) AS col2, - 19 FROM tab1
----
3
-19

skipif mysql # not compatible
query II rowsort label-9200
SELECT ALL COUNT ( * ) AS col2, - 19 FROM tab1
----
3
-19

query I rowsort
SELECT DISTINCT + 10 FROM tab0 WHERE NULL IS NULL
----
10

query I rowsort
SELECT + + 26 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL + + 40 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + + 40 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT - col2 * CAST( NULL AS SIGNED ) + - col0 * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT - col2 * CAST ( NULL AS INTEGER ) + - col0 * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + - 14 + - + ( - + 8 ) AS col2 FROM tab0 AS cor0
----
-5
15
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT ALL 90 + col2 + col1 DIV + - col2 + + 66 AS col0 FROM tab2
----
177
195
213

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL 90 + col2 + col1 / + - col2 + + 66 AS col0 FROM tab2
----
177
195
213

onlyif mysql # DIV for integer division: 
query I rowsort label-9207
SELECT DISTINCT - col1 DIV - col0 + col0 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - col1 / - col0 + col0 FROM tab2 AS cor0
----
47
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL < + 5
----
0

skipif mysql # not compatible
query I rowsort label-9208
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < + 5
----
0

query II rowsort
SELECT col0 AS col0, - 68 AS col1 FROM tab2 cor0
----
46
-68
64
-68
75
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9210
SELECT * FROM tab1 AS cor0 WHERE - 58 / 70 * - - CAST( - 36 AS DECIMAL ) + col1 - - 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9210
SELECT * FROM tab1 AS cor0 WHERE - 58 / 70 * - - CAST ( - 36 AS REAL ) + col1 - - 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT col1 + - - col0 DIV 48 FROM tab0
----
22
3
81

skipif mysql # not compatible
query I rowsort label-9211
SELECT col1 + - - col0 / 48 FROM tab0
----
22
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT + 58 + - COUNT( * ) AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + 58 + - COUNT ( * ) AS col2 FROM tab0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9213
SELECT - 9 DIV - + 82, COUNT( * ) AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-9213
SELECT - 9 / - + 82, COUNT ( * ) AS col1 FROM tab2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT + 58 ) + - COUNT( * ) AS col2 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT + 58 ) + - COUNT ( * ) AS col2 FROM tab0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT DISTINCT + CAST( - AVG ( + + col2 ) AS SIGNED ) + - 62 FROM tab1 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + CAST ( - AVG ( + + col2 ) AS INTEGER ) + - 62 FROM tab1 AS cor0
----
-136

query I rowsort
SELECT DISTINCT - col2 * + + 56 + - col1 FROM tab1 AS cor0
----
-3309
-3855
-5390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9218
SELECT - col2 * col2 / + - col1 * + CAST( NULL AS DECIMAL ) / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT - col2 * col2 / + - col1 * + CAST ( NULL AS REAL ) / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - 2 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT ALL col0 * - col0 + col2 DIV - col1 FROM tab0 AS cor0
----
-225
-7569
-9508

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL col0 * - col0 + col2 / - col1 FROM tab0 AS cor0
----
-225
-7569
-9508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 32, col0 * + col0 * - + col0 col1 FROM tab0 AS cor0
----
-32
-3375
-32
-658503
-32
-912673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT COUNT( * ) DIV COUNT( * ) DIV - + 98 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT COUNT ( * ) / COUNT ( * ) / - + 98 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 31 * + 93 AS col2 FROM tab1
----
2883

query II rowsort
SELECT DISTINCT + 25 * - col0 AS col2, - 66 AS col2 FROM tab2
----
-1150
-66
-1600
-66
-1875
-66

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - + col2 < ( col0 )
----

query I rowsort
SELECT - 14 * - - 12 FROM tab2
----
-168
-168
-168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9228
SELECT ALL CAST( NULL AS DECIMAL ) * - 2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL CAST ( NULL AS REAL ) * - 2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT col2 DIV + 16 - 36 AS col1 FROM tab2 AS cor0
----
-33
-34
-35

skipif mysql # not compatible
query I rowsort label-9229
SELECT col2 / + 16 - 36 AS col1 FROM tab2 AS cor0
----
-33
-34
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT + COUNT( * ) * - 40 + + 50 col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9230
SELECT DISTINCT + COUNT ( * ) * - 40 + + 50 col0 FROM tab0 AS cor0
----
-70

query II rowsort
SELECT ALL col0 AS col2, ( - col2 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT DISTINCT 37 + + COUNT( + col1 ) * + - COUNT( - 19 ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT 37 + + COUNT ( + col1 ) * + - COUNT ( - 19 ) FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT - COUNT( * ) - - 44 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - COUNT ( * ) - - 44 FROM tab0 AS cor0
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-9235
SELECT DISTINCT - col0 DIV + + 4 - 98, + col0 AS col0 FROM tab0 cor0
----
-101
15
-119
87
-122
97

skipif mysql # not compatible
query II rowsort label-9235
SELECT DISTINCT - col0 / + + 4 - 98, + col0 AS col0 FROM tab0 cor0
----
-101
15
-119
87
-122
97

query I rowsort
SELECT - col2 * - + col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - col2
----

query II rowsort
SELECT - 88 AS col2, ( - 70 ) AS col2 FROM tab2
----
-88
-70
-88
-70
-88
-70

query II rowsort
SELECT 5 AS col1, col1 - - col0 FROM tab2
----
5
141
5
142
5
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT DISTINCT col0 * - col2 DIV + + col2 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT col0 * - col2 / + + col2 AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT ALL 72 DIV - ( + ( - + 95 ) ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL 72 / - ( + ( - + 95 ) ) FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT ALL - CAST( + + col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL - CAST ( + + col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL - MAX( ALL - - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - MAX ( ALL - - col0 ) FROM tab0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT ALL + 29 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + 29 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + + col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT ALL + 92 AS col2, col1 + + col0 FROM tab2 AS cor0
----
92
141
92
142
92
97

query II rowsort
SELECT DISTINCT 93, - col0 AS col1 FROM tab2 AS cor0
----
93
-46
93
-64
93
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 50 ) col0 FROM tab0 cor0
----
-50
-50
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NOT + col0 / col1 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT col1 DIV + - col1 + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9250
SELECT col1 / + - col1 + col0 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT + col0 DIV + ( - 68 ) + + - ( + col1 ) * 84 + + + col1 FROM tab0 AS cor0
----
-1744
-6723
-84

skipif mysql # not compatible
query I rowsort label-9251
SELECT + col0 / + ( - 68 ) + + - ( + col1 ) * 84 + + + col1 FROM tab0 AS cor0
----
-1744
-6723
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ( - - COUNT( * ) ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9252
SELECT ( - - COUNT ( * ) ) * COUNT ( * ) FROM tab1 cor0
----
9

query II rowsort
SELECT + - ( 58 ) AS col2, col0 * col2 AS col1 FROM tab0 cor0
----
-58
705
-58
870
-58
9603

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE - 80 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT - + col1 * 34 DIV + col2 AS col1 FROM tab2 AS cor0
----
-39
-65
-75

skipif mysql # not compatible
query I rowsort label-9255
SELECT - + col1 * 34 / + col2 AS col1 FROM tab2 AS cor0
----
-39
-65
-75

query I rowsort
SELECT + col2 * - col1 / - - 92 FROM tab0 AS cor0 WHERE NOT NULL < - col1 / - 4
----

query I rowsort
SELECT ( + 42 ) AS col2 FROM tab0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9258
SELECT DISTINCT * FROM tab1 WHERE NOT 36 + - CAST( + col2 AS SIGNED ) > 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9258
SELECT DISTINCT * FROM tab1 WHERE NOT 36 + - CAST ( + col2 AS INTEGER ) > 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 / - col2 + - 95 IS NOT NULL
----

query I rowsort
SELECT ALL - 65 * + 94 AS col0 FROM tab2
----
-6110
-6110
-6110

query I rowsort
SELECT DISTINCT + 42 FROM tab2 WHERE NULL IS NULL
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9262
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS DECIMAL ) * col2 * 43 < NULL
----

skipif mysql # not compatible
query III rowsort label-9262
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS REAL ) * col2 * 43 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - + 61
----

query I rowsort
SELECT DISTINCT + 96 + - 76 AS col0 FROM tab0
----
20

query I rowsort
SELECT - col2 + col1 - + 37 AS col2 FROM tab0
----
-135
-26
-3

query I rowsort
SELECT + + 20 + - + 98 * - col1 * - 14 * col2 AS col0 FROM tab2 cor0
----
-1609336
-4225740
-5331572

query II rowsort
SELECT ALL + + col0 AS col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + 32 * - - 87 FROM tab0 AS cor0
----
2784

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT ALL + + MAX( col1 ), - 22 col2 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----
NULL
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9269
SELECT ALL + + MAX ( col1 ), - 22 col2 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----
NULL
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - ( - col2 ) col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL - 92 + + + 31 + - - col2 AS col0 FROM tab1
----
-2
35
7

query I rowsort
SELECT DISTINCT + col1 + - ( + 94 ) - - ( + 99 ) * + 83 * ( + 22 ) FROM tab1 AS cor0
----
180685
180694
180727

query I rowsort
SELECT ALL + col1 * 23 + + col0 AS col0 FROM tab1 AS cor0
----
1172
200
373

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9274
SELECT DISTINCT + col0 - - col0 / + 81 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + col0 - - col0 / + 81 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT - 96 DIV + 99 + - + col1 + + 91 + col2 AS col2 FROM tab1 AS cor0
----
112
145
173

skipif mysql # not compatible
query I rowsort label-9275
SELECT - 96 / + 99 + - + col1 + + 91 + col2 AS col2 FROM tab1 AS cor0
----
112
145
173

query I rowsort
SELECT - - col0 AS col1 FROM tab0 cor0 WHERE + col1 NOT BETWEEN NULL AND - + col1 * - - col0 + - col2
----
15
87
97

query II rowsort
SELECT ALL - 84 AS col0, + ( + col2 ) FROM tab1 AS cor0 WHERE col0 + - - col2 IS NOT NULL
----
-84
59
-84
68
-84
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + - 81 col0 FROM tab1 AS cor0
----
-34
-67
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL col2 DIV + + col2 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL col2 / + + col2 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9280
SELECT + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT ALL 72 DIV - col0 - col2 FROM tab2
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL 72 / - col0 - col2 FROM tab2
----
-24
-41
-58

query I rowsort
SELECT DISTINCT 83 * col0 AS col1 FROM tab1
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - 70 * + COUNT( * ) AS col0 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-9283
SELECT - 70 * + COUNT ( * ) AS col0 FROM tab2
----
-210

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > col0 + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 38 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + + col2 ) + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - - ( + SUM( col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9288
SELECT - - ( + SUM ( col1 ) ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT - 70 AS col1, col1 FROM tab2 AS cor0
----
-70
51
-70
67
-70
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9291
SELECT + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + - ( COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + - ( COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 17 + + 87 + - 37 col1 FROM tab2 AS cor0
----
-341
-630
-936

query I rowsort
SELECT - 65 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = col2
----

query II rowsort
SELECT - - 54, + col2 FROM tab1 AS cor0
----
54
59
54
68
54
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 4 * - + col0, col1 col2 FROM tab1
----
204
14
340
5
364
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9296
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9296
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col2 + 13 + col2 + - + 13 * - col1 * 99 + - col1, col0 FROM tab2
----
65645
46
86291
75
99115
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9298
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) + - - col1 BETWEEN - col2 AND col1
----

skipif mysql # not compatible
query III rowsort label-9298
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) + - - col1 BETWEEN - col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9299
SELECT DISTINCT col0 * col1 DIV - col0 + - CAST( - - col2 AS SIGNED ) + 16 FROM tab2
----
-101
-109
-58

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT col0 * col1 / - col0 + - CAST ( - - col2 AS INTEGER ) + 16 FROM tab2
----
-101
-109
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + + 47 col2 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col2 * 98 * + - col2 AS col1 FROM tab1 AS cor0 WHERE col0 <> + - col2
----
341138
453152
903168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE 10 + + 96 + + - col0 - + col1 / - col2 + + + 49 * + - 22 = - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE + + col2 + col1 + + + 29 - + + col0 + - col2 + 29 * 76 IS NULL
----

query I rowsort
SELECT - 5 + - col0 AS col1 FROM tab1
----
-56
-90
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT 42 + - col1 + + CAST( - + col1 AS SIGNED ) AS col2 FROM tab2
----
-112
-60
-92

skipif mysql # not compatible
query I rowsort label-9305
SELECT 42 + - col1 + + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2
----
-112
-60
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT ALL CAST( NULL AS SIGNED ) + - - 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL CAST ( NULL AS INTEGER ) + - - 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 48 ) - col1 * - - 52 * + + col2 * - 60 AS col0 FROM tab0 AS cor0
----
11877792
308832
655152

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - 80
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + + 7 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + - ( + COUNT( - + 0 ) ) * + 1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9310
SELECT + - ( + COUNT ( - + 0 ) ) * + 1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - + 66 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + 35 - + col0 + + 76 + + col1 * col0 - 96 + - - ( - + 49 ) AND NULL
----

query I rowsort
SELECT - 1 - + col1 * - col0 AS col0 FROM tab1 AS cor0
----
424
4276
713

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL + COUNT( * ) + MIN( ALL + col2 ) + COUNT( * ) AS col1 FROM tab1 WHERE NOT + 85 + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL + COUNT ( * ) + MIN ( ALL + col2 ) + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 85 + col2 <> NULL
----
NULL

query I rowsort
SELECT + col0 * col0 + + + 67 * - - 56 * - - col0 * + - 19 * + 39 + + - col0 AS col0 FROM tab0 AS cor0
----
-241872702
-269673192
-41703270

query I rowsort
SELECT ALL - 40 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( - - 24 * 3 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + ( + 95 ) * - - COUNT( * ) + + + 95 AS col2 FROM tab1 AS cor0
----
380

skipif mysql # not compatible
query I rowsort label-9316
SELECT + ( + 95 ) * - - COUNT ( * ) + + + 95 AS col2 FROM tab1 AS cor0
----
380

query I rowsort
SELECT ALL - 16 * + 88 AS col2 FROM tab1 AS cor0
----
-1408
-1408
-1408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT ALL - 1 AS col2 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - 1 AS col2 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 * + + 85 * - 54 + + col0 * col2 FROM tab2
----
23
235148
40
355990
58
311880

query I rowsort
SELECT DISTINCT 51 + 28 FROM tab2
----
79

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9322
SELECT DISTINCT + 55 DIV COUNT( * ) + - - 27 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT + 55 / COUNT ( * ) + - - 27 FROM tab1 AS cor0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9323
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT col2 AS col0, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT - - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9325
SELECT - - col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT ALL + 56 DIV - col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + 56 / - col0 FROM tab2 AS cor0
----
-1
0
0

query II rowsort
SELECT + 53 AS col1, col1 FROM tab0 AS cor0
----
53
1
53
21
53
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9328
SELECT + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT COUNT( - - col2 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9329
SELECT COUNT ( - - col2 ) * COUNT ( * ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 89 col2 FROM tab2
----
112
129
147

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT - 87 + COUNT( * ) AS col0 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - 87 + COUNT ( * ) AS col0 FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL col2 * - col2 + col0 - 80 - - 96 * + 88 * - - 17 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL col2 * - col2 + col0 - 80 - - 96 * + 88 * - - 17 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT DISTINCT CAST( col0 AS SIGNED ) + - + col2 + - col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - + col2 + - col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 + - + col1 AS col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT - + col1 + + col0 FROM tab0 AS cor0 WHERE 40 * 89 IS NOT NULL
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= col0 * + col1 + ( col1 )
----

query I rowsort
SELECT col0 - + 95 AS col0 FROM tab0
----
-8
-80
2

query I rowsort
SELECT col2 * - col1 * col2 - + + col1 FROM tab0
----
-179010
-2121
-9802

query I rowsort
SELECT + 70 + - + col2 AS col2 FROM tab0 AS cor0
----
-29
23
60

query II rowsort
SELECT 34 + + col2 AS col2, + 63 FROM tab1 AS cor0
----
102
63
130
63
93
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - + 2 + + + 49 * - + COUNT( * ) * - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
1321

skipif mysql # not compatible
query I rowsort label-9342
SELECT - + 2 + + + 49 * - + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
1321

query I rowsort
SELECT DISTINCT col2 + + ( + + col2 ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT DISTINCT + CAST( - 41 AS SIGNED ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT + CAST ( - 41 AS INTEGER ) FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - 54 * - COUNT( * ) AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - 54 * - COUNT ( * ) AS col2 FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT COUNT( * ) * + 63 col1 FROM tab2
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT DISTINCT COUNT ( * ) * + 63 col1 FROM tab2
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9347
SELECT DISTINCT - 5, - CAST( NULL AS SIGNED ) + + + col1 col1 FROM tab2 AS cor0
----
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9347
SELECT DISTINCT - 5, - CAST ( NULL AS INTEGER ) + + + col1 col1 FROM tab2 AS cor0
----
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT DISTINCT + - SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT + - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <> + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL - SUM( ALL ( - 10 ) ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - SUM ( ALL ( - 10 ) ) FROM tab2
----
30

query I rowsort
SELECT ALL col2 * + col2 FROM tab1 WHERE NOT + col0 IS NULL
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT + CAST( NULL AS SIGNED ) * 16 + 4 AS col0 FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND col0
----

skipif mysql # not compatible
query I rowsort label-9353
SELECT + CAST ( NULL AS INTEGER ) * 16 + 4 AS col0 FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL + CAST( NULL AS SIGNED ) + ( + col2 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + CAST ( NULL AS INTEGER ) + ( + col2 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 6 + col0 * col1 AS col0 FROM tab1
----
4283
431
720

query I rowsort
SELECT ALL 23 * 24 + 86 FROM tab2
----
638
638
638

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9357
SELECT DISTINCT * FROM tab1 WHERE CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * col0 BETWEEN 20 AND col1 / - col2 + col0
----

skipif mysql # not compatible
query III rowsort label-9357
SELECT DISTINCT * FROM tab1 WHERE CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * col0 BETWEEN 20 AND col1 / - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT + COUNT( * ) * 8 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT + COUNT ( * ) * 8 FROM tab1
----
24

query I rowsort
SELECT col2 * - col0 + + col2 * 23 FROM tab1
----
-2688
-3658
-4624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9360
SELECT - MIN( + 93 ) / - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 WHERE - 5 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT - MIN ( + 93 ) / - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 WHERE - 5 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + 95 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 * + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT + SUM( 14 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-9363
SELECT + SUM ( 14 ) FROM tab0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT - CAST( 66 AS SIGNED ) + COUNT( * ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-9364
SELECT - CAST ( 66 AS INTEGER ) + COUNT ( * ) FROM tab2
----
-63

query I rowsort
SELECT ALL AVG ( + col2 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9366
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) * + 58 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 58 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL - SUM( + 98 ) + - COUNT( * ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - SUM ( + 98 ) + - COUNT ( * ) FROM tab1
----
-297

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9369
SELECT * FROM tab0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9369
SELECT * FROM tab0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1 + + col2 )
----

query I rowsort
SELECT ALL + 55 * + col1 AS col0 FROM tab1
----
2585
275
770

query I rowsort
SELECT ALL + col0 * ( 6 ) FROM tab1
----
306
510
546

query I rowsort
SELECT col2 / 16 FROM tab1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT + 52 - + col0 AS col2 FROM tab2 AS cor0
----
-12
-23
6

query I rowsort
SELECT 39 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col2 / - 4 )
----

query I rowsort
SELECT ALL - 25 - 14 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT + 33 + + col2 AS col0 FROM tab0 AS cor0
----
132
43
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 83 * - col2 NOT BETWEEN ( - col1 ) AND + 7 * - col2
----

query I rowsort
SELECT - col1 * + col2 + - col0 * 68 AS col2 FROM tab0 cor0
----
-4827
-6126
-6695

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL > 81
----

query I rowsort
SELECT ALL + col1 - 33 FROM tab2
----
18
34
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT ALL CAST( NULL AS SIGNED ) * + 80 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL CAST ( NULL AS INTEGER ) * + 80 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 FROM tab1 WHERE 3 * col0 > - 30 + col2
----
-14
-47
-5

query I rowsort
SELECT 17 FROM tab0 AS cor0 WHERE NOT ( + col2 * 31 ) IS NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - - COUNT( * ) * + 7 AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9385
SELECT - - COUNT ( * ) * + 7 AS col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT - - ( 17 ) FROM tab2 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT DISTINCT + - col0 * ( + CAST( CAST( - ( + ( - col0 ) ) AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + - col0 * ( + CAST ( CAST ( - ( + ( - col0 ) ) AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ( + ( col2 ) ) + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT - MAX( - 58 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT - MAX ( - 58 ) FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9390
SELECT ALL COUNT( col1 ) DIV 25 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 ) AND CAST( col1 AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9390
SELECT ALL COUNT ( col1 ) / 25 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 ) AND CAST ( col1 AS INTEGER )
----
0

query I rowsort
SELECT - - 6 * 36 AS col0 FROM tab1 AS cor0
----
216
216
216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + 71 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 86 > col0
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT 2 - - 6 AS col1 FROM tab2 WHERE 93 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT 62 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) / - 73 NOT IN ( 11 + col0 )
----

skipif mysql # not compatible
query I rowsort label-9395
SELECT 62 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) / - 73 NOT IN ( 11 + col0 )
----

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT - col2 / col0 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT + col0 DIV 69 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9399
SELECT + col0 / 69 AS col2 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col0 * + col2
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 29 + col1 ) BETWEEN col2 + + col0 AND - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - SUM( + + col0 ) * 97 col2 FROM tab0 AS cor0
----
-19303

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9402
SELECT - SUM ( + + col0 ) * 97 col2 FROM tab0 AS cor0
----
-19303

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT col0 DIV - - ( 22 ) + + col2 AS col1 FROM tab1 AS cor0
----
62
72
98

skipif mysql # not compatible
query I rowsort label-9403
SELECT col0 / - - ( 22 ) + + col2 AS col1 FROM tab1 AS cor0
----
62
72
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + 89 + + COUNT( * ) FROM tab2, tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9404
SELECT + 89 + + COUNT ( * ) FROM tab2, tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT MAX( ALL - 96 ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9405
SELECT MAX ( ALL - 96 ) AS col1 FROM tab2
----
-96

query I rowsort
SELECT ALL + 3 * - - col2 FROM tab2
----
120
174
69

query II rowsort
SELECT col2 AS col0, col2 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col1 AND - 19
----

query II rowsort
SELECT + col0 AS col2, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT + + MIN( DISTINCT + - col1 ) col1 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9410
SELECT + + MIN ( DISTINCT + - col1 ) col1 FROM tab0 cor0
----
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT + + MIN( - 92 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9412
SELECT + + MIN ( - 92 ) FROM tab2 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT - - COUNT( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9413
SELECT - - COUNT ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT + + ( + COUNT( * ) ) + - MIN( DISTINCT 47 ) + 11 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9414
SELECT + + ( + COUNT ( * ) ) + - MIN ( DISTINCT 47 ) + 11 FROM tab1 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) * ( 58 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) * ( 58 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9416
SELECT CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) * + COUNT( * ) + COUNT( * ) / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) / CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE col1 * + - 83 * 14 - col0 = - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9417
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE col1 * + - 83 * 14 - col0 = - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT ALL - MAX( ALL + 41 ) DIV MIN( DISTINCT - - col1 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - MAX ( ALL + 41 ) / MIN ( DISTINCT - - col1 ) FROM tab1
----
-8

query I rowsort
SELECT ALL ( - - 70 ) FROM tab0
----
70
70
70

query I rowsort
SELECT ALL ( - col1 ) + + col2 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT col2 + col1, 55 AS col1 FROM tab1
----
110
55
115
55
64
55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 14 * - col0 ) BETWEEN NULL AND - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9423
SELECT * FROM tab1 WHERE + col0 * 63 NOT BETWEEN + col2 + - col1 * CAST( 76 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9423
SELECT * FROM tab1 WHERE + col0 * 63 NOT BETWEEN + col2 + - col1 * CAST ( 76 AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + 25 + COUNT( DISTINCT + - col0 ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-9424
SELECT + 25 + COUNT ( DISTINCT + - col0 ) AS col0 FROM tab0
----
28

query I rowsort
SELECT ALL + ( + col0 ) + + + 0 + + 5 FROM tab1 AS cor0
----
56
90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE + 13 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE + 13 IS NULL
----
0

query I rowsort
SELECT DISTINCT - - 78 + col2 * + col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col1 AND NULL
----
2287

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 28 * + - 65 + col0 * + col2 + col1 <> ( 49 )
----

query I rowsort
SELECT DISTINCT 63 * - 81 FROM tab0
----
-5103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 49, + ( + col0 ) + + + col2 + col2 * + 95 col1 FROM tab0
----
49
1047
49
4527
49
9601

query I rowsort
SELECT col1 * - + 24 FROM tab0 cor0
----
-1944
-24
-504

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / + col2 + col1 - - col0 + col2 * col0 IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * - + 74 + + col1 ) > NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-9434
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 DIV + col0 * - 99 > + + col0
----

skipif mysql # not compatible
query III rowsort label-9434
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / + col0 * - 99 > + + col0
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - 97 AS col2 FROM tab1
----
59
-97
68
-97
96
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT + ( CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0 WHERE NOT ( + + ( - + col1 ) + + - col2 + + + col1 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9436
SELECT + ( CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 WHERE NOT ( + + ( - + col1 ) + + - col2 + + + col1 ) <> ( NULL )
----

query II rowsort
SELECT ALL - 8 AS col0, - col1 + - - 99 AS col0 FROM tab0
----
-8
18
-8
78
-8
98

query III rowsort
SELECT * FROM tab2 WHERE NOT 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 5 AS col0, + col1 FROM tab2
----
-5
51
-5
67
-5
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT - COUNT( * ) AS col0, 41 AS col2 FROM tab2
----
-3
41

skipif mysql # not compatible
query II rowsort label-9440
SELECT - COUNT ( * ) AS col0, 41 AS col2 FROM tab2
----
-3
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 * + 5 + + - 40 * - - ( col2 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 99 / - ( + col2 ) - 14 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 / - col2 + + 41 + - col2 * ( 96 ) * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - col2 / + + 41 + 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 + + 72, + 46 AS col0 FROM tab0
----
153
46
73
46
93
46

query I rowsort
SELECT ALL col2 * + col0 + 46 + - 56 FROM tab1 AS cor0
----
4886
5005
6178

query I rowsort
SELECT ALL - 89 + 74 * + col2 FROM tab1 AS cor0
----
4277
4943
7015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) * + - col1 + + col1 * - - col0
----

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * + - col1 + + col1 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT + CAST( 60 AS SIGNED ) col2 FROM tab0 cor0
----
60
60
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9448
SELECT + CAST ( 60 AS INTEGER ) col2 FROM tab0 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + - ( + COUNT( DISTINCT 83 ) ) * - COUNT( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + - ( + COUNT ( DISTINCT 83 ) ) * - COUNT ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - ( - + COUNT( * ) ) * + 11 * - - SUM( ALL - ( col1 ) ) FROM tab2 AS cor0
----
-6435

skipif mysql # not compatible
query I rowsort label-9450
SELECT - ( - + COUNT ( * ) ) * + 11 * - - SUM ( ALL - ( col1 ) ) FROM tab2 AS cor0
----
-6435

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL + SUM( + - ( - 76 ) ) FROM tab1 AS cor0 WHERE col2 * col2 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + SUM ( + - ( - 76 ) ) FROM tab1 AS cor0 WHERE col2 * col2 = ( NULL )
----
NULL

query I rowsort
SELECT + 69 * - - 40 FROM tab0
----
2760
2760
2760

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) = 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9455
SELECT * FROM tab0 WHERE + - CAST( 10 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9455
SELECT * FROM tab0 WHERE + - CAST ( 10 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 35 * + col2 AS col0 FROM tab0
----
1645
3465
350

onlyif mysql # DIV for integer division: 
query I rowsort label-9457
SELECT ALL 74 DIV - - col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL 74 / - - col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9458
SELECT * FROM tab2 WHERE ( + 52 + - 78 + + 96 / - CAST( NULL AS SIGNED ) - + col0 ) NOT BETWEEN col1 AND - col0
----

skipif mysql # not compatible
query III rowsort label-9458
SELECT * FROM tab2 WHERE ( + 52 + - 78 + + 96 / - CAST ( NULL AS INTEGER ) - + col0 ) NOT BETWEEN col1 AND - col0
----

query I rowsort
SELECT + 53 * + + col1 AS col0 FROM tab0
----
1113
4293
53

query I rowsort
SELECT ALL + 64 * ( 39 ) FROM tab2
----
2496
2496
2496

query I rowsort
SELECT ALL + 58 + + col0 FROM tab0
----
145
155
73

query I rowsort
SELECT - col2 + + col2 * - - col2 AS col1 FROM tab2 AS cor0
----
1560
3306
506

query I rowsort
SELECT DISTINCT + 21 - + col1 + col0 * 72 FROM tab0 AS cor0
----
1020
6264
7004

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - COUNT( * ) + + + 70 col2 FROM tab1 cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9464
SELECT - COUNT ( * ) + + + 70 col2 FROM tab1 cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9465
SELECT MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
51

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 8 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + - col1 + - col2 * - + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT 18 AS col0, - col0 FROM tab0
----
18
-15
18
-87
18
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT ALL col0 DIV - - 19 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL col0 / - - 19 FROM tab2
----
2
3
3

query I rowsort
SELECT col1 * col2 FROM tab2 WHERE NOT ( - 27 + + col0 + col0 ) IS NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT ALL COUNT( * ), 41 AS col2 FROM tab0
----
3
41

skipif mysql # not compatible
query II rowsort label-9473
SELECT ALL COUNT ( * ), 41 AS col2 FROM tab0
----
3
41

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - + 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 12 * + col2 + - + ( + + col2 ) AS col0 FROM tab2
----
253
440
638

query I rowsort
SELECT + + col1 - + 10 FROM tab0 WHERE NOT - + 43 <> 35 * col2
----

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col2 + + + ( - - col2 ) * col1 AS col0 FROM tab2
----
126280
229274
28152

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + - COUNT( * ) + - 95 AS col2 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9478
SELECT + - COUNT ( * ) + - 95 AS col2 FROM tab0 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT + - 97 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT + - 97 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 19 * - + col1 FROM tab1 cor0
----
-266
-893
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + SUM( + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + SUM ( + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT COUNT( * ), 57 AS col0 FROM tab1
----
3
57

skipif mysql # not compatible
query II rowsort label-9482
SELECT COUNT ( * ), 57 AS col0 FROM tab1
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + ( + COUNT( * ) ) * + - 21 + - 37 - - MIN( DISTINCT + - col0 ) col2 FROM tab0 cor0
----
-197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9483
SELECT + ( + COUNT ( * ) ) * + - 21 + - 37 - - MIN ( DISTINCT + - col0 ) col2 FROM tab0 cor0
----
-197

query I rowsort
SELECT DISTINCT - 39 * + - 33 + - + 42 AS col0 FROM tab2 AS cor0
----
1245

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT + - SUM( 72 ) - + 10 + + + SUM( DISTINCT + + col0 ) - - ( + COUNT( * ) ) + - + COUNT( * ) + + MIN( - col0 ) FROM tab2 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-9485
SELECT + - SUM ( 72 ) - + 10 + + + SUM ( DISTINCT + + col0 ) - - ( + COUNT ( * ) ) + - + COUNT ( * ) + + MIN ( - col0 ) FROM tab2 AS cor0
----
-116

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9486
SELECT DISTINCT + 63 + + col0 + col1 DIV + col1 + col2 + + 10 DIV - 55 * col0 DIV CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
133
168
197

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + 63 + + col0 + col1 / + col1 + col2 + + 10 / - 55 * col0 / CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
133
168
197

query I rowsort
SELECT - - ( 15 ) + + - 63 + - col2 FROM tab2 cor0
----
-106
-71
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 + col0 + + - col0 * - - col2 col2 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT + + 44 + - 20 / + ( + col1 ) - - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT + + 44 + - 20 / + ( + col1 ) - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9490
SELECT - MIN( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE ( - 52 ) BETWEEN NULL AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT ALL - col1 - col1 DIV + + col2 FROM tab2 cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL - col1 - col1 / + + col2 FROM tab2 cor0
----
-53
-68
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 <= NULL
----

query I rowsort
SELECT ALL + ( - 3 ) AS col0 FROM tab0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT 32 + + SUM( ALL col1 ) FROM tab2
----
227

skipif mysql # not compatible
query I rowsort label-9495
SELECT 32 + + SUM ( ALL col1 ) FROM tab2
----
227

query I rowsort
SELECT + 51 * 61 FROM tab1
----
3111
3111
3111

query I rowsort
SELECT DISTINCT ( - 3 ) + ( 98 ) * - - 97 * + 0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT + + 75 * + COUNT( * ) * - COUNT( DISTINCT 56 ) + + 75 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT + + 75 * + COUNT ( * ) * - COUNT ( DISTINCT 56 ) + + 75 FROM tab0 AS cor0
----
-150

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( - - 54 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 col1, col0 AS col2 FROM tab0
----
92
15
92
87
92
97

query II rowsort
SELECT - 26 AS col1, + col0 FROM tab2
----
-26
46
-26
64
-26
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + COUNT( * ) * - 57 * + + 90 FROM tab1
----
-15390

skipif mysql # not compatible
query I rowsort label-9502
SELECT + COUNT ( * ) * - 57 * + + 90 FROM tab1
----
-15390

query I rowsort
SELECT + - col0 * - 33 FROM tab2 AS cor0
----
1518
2112
2475

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 * col1 < + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + 73 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9506
SELECT - col2 * + col0 * + col1 * - 70 * + - 87 + - + 88 * CAST( NULL AS DECIMAL ) + + - 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT - col2 * + col0 * + col1 * - 70 * + - 87 + - + 88 * CAST ( NULL AS REAL ) + + - 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 71 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - ( + 47 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col1 ) col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT COUNT( * ) + - 59 * COUNT( * ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT COUNT ( * ) + - 59 * COUNT ( * ) FROM tab1
----
-174

query I rowsort
SELECT ALL col2 + - col1 + - 92 AS col2 FROM tab0 cor0
----
-103
-126
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL + + SUM( + 25 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + + SUM ( + 25 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT + 62 * + col1 + + col0 FROM tab0 AS cor0
----
1389
159
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT 69 + + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9514
SELECT 69 + + COUNT ( * ) FROM tab1
----
72

query I rowsort
SELECT + 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL 68 + + COUNT( * ) AS col2 FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 68 + + COUNT ( * ) AS col2 FROM tab1 cor0
----
71

query I rowsort
SELECT ALL + - col2 - + 81 * - col0 FROM tab0 cor0
----
1168
7037
7758

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col0 * col2 * - + col0 - - 5 * col1 + + - 93 <> + + ( col0 )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT - MIN( + + CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9519
SELECT - MIN ( + + CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL + col1 * + col2 + - col1 AS col1 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 6 - + 19 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT DISTINCT - + 7 + + COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT - + 7 + + COUNT ( * ) FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - COUNT( ALL 83 ) * + 97 - MIN( DISTINCT - + col1 ) + + MAX( ALL + 76 ) + COUNT( * ) * - - 17 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - COUNT ( ALL 83 ) * + 97 - MIN ( DISTINCT - + col1 ) + + MAX ( ALL + 76 ) + COUNT ( * ) * - - 17 FROM tab1 AS cor0
----
-117

query II rowsort
SELECT + - 8 AS col2, - 50 * - + col2 + col2 + + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-8
3094
-8
3559
-8
4947

query II rowsort
SELECT ALL col0, - 12 FROM tab2
----
46
-12
64
-12
75
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT MAX( ALL + 89 ) * - + SUM( + + col0 ) - - + 30 AS col2 FROM tab1
----
-20173

skipif mysql # not compatible
query I rowsort label-9526
SELECT MAX ( ALL + 89 ) * - + SUM ( + + col0 ) - - + 30 AS col2 FROM tab1
----
-20173

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9529
SELECT ALL + - 3 col1, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9529
SELECT ALL + - 3 col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT DISTINCT + col1 * + - col2 - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-200
-3760
0

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + col1 * + - col2 - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT + - 54 * + - COUNT( * ) * - + 86 FROM tab0 AS cor0
----
-13932

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT + - 54 * + - COUNT ( * ) * - + 86 FROM tab0 AS cor0
----
-13932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - + 12 ) * 26 - col1 col1 FROM tab2 AS cor0
----
235
245
261

query I rowsort
SELECT - col0 * + 76 FROM tab0 AS cor0
----
-1140
-6612
-7372

query I rowsort
SELECT + + col0 * + - 70 AS col1 FROM tab0 AS cor0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - + SUM( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT - + SUM ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT DISTINCT col2 DIV + + ( - col0 ) col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9536
SELECT DISTINCT col2 / + + ( - col0 ) col2 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ( + SUM( DISTINCT + 23 ) ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9538
SELECT ( + SUM ( DISTINCT + 23 ) ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9539
SELECT - + ( - - 27 ) AS col0, 91 DIV + - col1 FROM tab2 AS cor0
----
-27
-1
-27
-1
-27
-1

skipif mysql # not compatible
query II rowsort label-9539
SELECT - + ( - - 27 ) AS col0, 91 / + - col1 FROM tab2 AS cor0
----
-27
-1
-27
-1
-27
-1

query I rowsort
SELECT DISTINCT - 49 FROM tab1, tab2 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT DISTINCT CAST( - 97 AS SIGNED ) FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT CAST ( - 97 AS INTEGER ) FROM tab1
----
-97

query I rowsort
SELECT DISTINCT - col1 * - + col0 * - ( col0 ) AS col1 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE col0 - + col1 * - 14 NOT BETWEEN 56 AND NULL
----

query I rowsort
SELECT 59 + 79 AS col2 FROM tab1
----
138
138
138

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 > NULL
----

query I rowsort
SELECT - 91 + + - col2 FROM tab0 cor0
----
-101
-138
-190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( + col0 ) ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col0 * + col1 + col1 + + col1 FROM tab1 AS cor0
----
435
4371
742

query I rowsort
SELECT - 8 * - + col2 FROM tab0 cor0
----
376
792
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, 8 col1 FROM tab0 cor0
----
-10
8
-47
8
-99
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9551
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN col1 AND + CAST( - col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9551
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN col1 AND + CAST ( - col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - ( + 48 ) col0 FROM tab2 AS cor0
----
-16
-27
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 - - - col1 + + + col1 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col0 - col1 * + + 81 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9555
SELECT * FROM tab1 WHERE NOT NULL <> + - CAST( + 26 AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-9555
SELECT * FROM tab1 WHERE NOT NULL <> + - CAST ( + 26 AS INTEGER ) * col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + 63 + + - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT 32 * - SUM( + + ( + col2 ) ) FROM tab0
----
-4992

skipif mysql # not compatible
query I rowsort label-9557
SELECT 32 * - SUM ( + + ( + col2 ) ) FROM tab0
----
-4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 51 col1, col2 AS col1 FROM tab2
----
51
23
51
40
51
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT col2 DIV + 37 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9559
SELECT col2 / + 37 AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT 39 * - - 59 AS col1 FROM tab1
----
2301
2301
2301

query I rowsort
SELECT DISTINCT - - ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9562
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9562
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col2 IS NULL
----

query II rowsort
SELECT ALL + + col2, 80 * 37 AS col1 FROM tab1 AS cor0
----
59
2960
68
2960
96
2960

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - + MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9564
SELECT - + MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + col2 * + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 76 * - ( col1 ) + + col0 * - 25 / col2 NOT IN ( - - 32 )
----

query II rowsort
SELECT - col1 + - + col1 - + ( - + col1 ), col0 - - col2 * - col1 FROM tab1 cor0 WHERE 98 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + col0 / col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 = 67
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT ALL + SUM( - col0 ) AS col1, 10 FROM tab1 AS cor0
----
-227
10

skipif mysql # not compatible
query II rowsort label-9570
SELECT ALL + SUM ( - col0 ) AS col1, 10 FROM tab1 AS cor0
----
-227
10

query II rowsort
SELECT col0 * col1 * - + col1 * + 11 AS col0, col0 + + 4 - + - 93 FROM tab2 cor0
----
-1316106
143
-3703425
172
-4174016
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col2 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - ( COUNT( * ) ) FROM tab2 WHERE + 31 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab2 WHERE + 31 IS NOT NULL
----
-3

query I rowsort
SELECT + 30 - 62 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT MIN( ALL col1 ), - COUNT( * ) * + 75 AS col0 FROM tab2
----
51
-225

skipif mysql # not compatible
query II rowsort label-9575
SELECT MIN ( ALL col1 ), - COUNT ( * ) * + 75 AS col0 FROM tab2
----
51
-225

query I rowsort
SELECT ALL col2 * + + 45 FROM tab2
----
1035
1800
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT MAX( + - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9577
SELECT MAX ( + - col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT col1 * + + col0 + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL MIN( ALL - CAST( col1 AS SIGNED ) ) * COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL MIN ( ALL - CAST ( col1 AS INTEGER ) ) * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL CAST( NULL AS SIGNED ) + + col0 + + col1 + - 6 * + + col2 / + col0 * - - col1 * - - col0 FROM tab2 WHERE + 69 / - 97 + - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 + + col1 + - 6 * + + col2 / + col0 * - - col1 * - - col0 FROM tab2 WHERE + 69 / - 97 + - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col0 ) + - col2 + col0 * - - 71 * col1 AS col1 FROM tab2 AS cor0
----
166589
349912
356792

query I rowsort
SELECT DISTINCT + col0 * + ( + 48 ) * - 70 AS col0 FROM tab0 AS cor0
----
-292320
-325920
-50400

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) * - col2 NOT BETWEEN + 92 - - 14 + + 96 * col0 * 31 AND NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL + - 54 - + + COUNT( * ) + + MIN( DISTINCT - + ( 31 ) ) col2 FROM tab2 cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9584
SELECT ALL + - 54 - + + COUNT ( * ) + + MIN ( DISTINCT - + ( 31 ) ) col2 FROM tab2 cor0
----
-88

query I rowsort
SELECT + col2 + - ( - 69 ) AS col0 FROM tab2 AS cor0
----
109
127
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + 7 + + MIN( + col1 ) FROM tab2 AS cor0 WHERE - col1 >= - + col1 + - col2
----
58

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 7 + + MIN ( + col1 ) FROM tab2 AS cor0 WHERE - col1 >= - + col1 + - col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + 48 + SUM( DISTINCT - - 66 ) col2 FROM tab0
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9587
SELECT + 48 + SUM ( DISTINCT - - 66 ) col2 FROM tab0
----
114

query I rowsort
SELECT DISTINCT - 41 + - - col1 AS col1 FROM tab2 AS cor0
----
10
26
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col2 col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col0 - + 90 col1 FROM tab1 cor0
----
-4367
-515
-804

onlyif mysql # DIV for integer division: 
query II rowsort label-9591
SELECT + + col1, + 35 DIV + + ( + col2 ) FROM tab2 AS cor0
----
51
1
67
0
77
0

skipif mysql # not compatible
query II rowsort label-9591
SELECT + + col1, + 35 / + + ( + col2 ) FROM tab2 AS cor0
----
51
1
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - MAX( DISTINCT + 57 ) AS col2 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9592
SELECT - MAX ( DISTINCT + 57 ) AS col2 FROM tab1 cor0
----
-57

query II rowsort
SELECT + col1 AS col0, col0 * - col2 FROM tab2 cor0
----
51
-1058
67
-4350
77
-2560

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + - 29 < - col0 * col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9596
SELECT col2 col1, col2 DIV col0 FROM tab2 WHERE NOT col0 IS NULL
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9596
SELECT col2 col1, col2 / col0 FROM tab2 WHERE NOT col0 IS NULL
----
23
0
40
0
58
0

query I rowsort
SELECT ALL 92 AS col0 FROM tab2 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - 72 * - SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
14328

skipif mysql # not compatible
query I rowsort label-9598
SELECT - 72 * - SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
14328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col0 FROM tab2 WHERE NOT NULL IN ( - col2, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 + - + col2 IS NOT NULL
----

query I rowsort
SELECT + + ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + 14 * - COUNT( * ) * + SUM( + col2 ) + ( - 84 ) col1 FROM tab2 AS cor0
----
-5166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9602
SELECT + 14 * - COUNT ( * ) * + SUM ( + col2 ) + ( - 84 ) col1 FROM tab2 AS cor0
----
-5166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9603
SELECT + CAST( NULL AS SIGNED ) AS col2, col1 * + col0 * col2, - col2 FROM tab0 AS cor0 WHERE col1 > col1 + col0
----

skipif mysql # not compatible
query III rowsort label-9603
SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 * + col0 * col2, - col2 FROM tab0 AS cor0 WHERE col1 > col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 20 col0 FROM tab0 AS cor0
----
1740
1940
300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9605
SELECT 2 * CAST( + - 82 AS SIGNED ) AS col2, col2 * - col1 FROM tab2 AS cor0
----
-164
-1173
-164
-3080
-164
-3886

skipif mysql # not compatible
query II rowsort label-9605
SELECT 2 * CAST ( + - 82 AS INTEGER ) AS col2, col2 * - col1 FROM tab2 AS cor0
----
-164
-1173
-164
-3080
-164
-3886

query I rowsort
SELECT DISTINCT col0 + - 25 - - - col0 FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL SUM( + ( - - 94 ) ) AS col1 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL SUM ( + ( - - 94 ) ) AS col1 FROM tab2 AS cor0
----
282

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9608
SELECT - 3 + + CAST( NULL AS DECIMAL ) + + col0 + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 3 + + CAST ( NULL AS REAL ) + + col0 + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - 73 AS col2 FROM tab2 cor0
----
1679
2920
4234

query I rowsort
SELECT col1 + + - 86 AS col2 FROM tab2 AS cor0
----
-19
-35
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT ALL CAST( + 82 AS SIGNED ) * col0 FROM tab1
----
4182
6970
7462

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL CAST ( + 82 AS INTEGER ) * col0 FROM tab1
----
4182
6970
7462

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT - COUNT( DISTINCT - col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT 44 FROM tab2 WHERE NULL NOT IN ( - col1, + 6 / - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 66 AS col0, - col0 + 70 FROM tab0
----
66
-17
66
-27
66
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT + col0 + + - CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT + col0 + + - CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) + - 31 - - 72 AS col0 FROM tab1
----
46
55
88

query I rowsort
SELECT - 93 + - - col2 FROM tab1
----
-25
-34
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT - CAST( col0 AS SIGNED ) * - 93 + - col2 AS col1 FROM tab2
----
4255
5912
6917

skipif mysql # not compatible
query I rowsort label-9620
SELECT - CAST ( col0 AS INTEGER ) * - 93 + - col2 AS col1 FROM tab2
----
4255
5912
6917

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL - 10 + + ( - + MAX( - - 49 ) ) * - + COUNT( * ) FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - 10 + + ( - + MAX ( - - 49 ) ) * - + COUNT ( * ) FROM tab2
----
137

query I rowsort
SELECT - - ( - 72 ) FROM tab2 cor0
----
-72
-72
-72

query I rowsort
SELECT ALL - 3 + - 41 + col0 FROM tab2 AS cor0
----
2
20
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9624
SELECT - - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9624
SELECT - - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
-3

query I rowsort
SELECT ALL - col0 + + - ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT + 88 DIV + col1 col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9626
SELECT DISTINCT + 88 / + col1 col1 FROM tab1
----
1
17
6

query I rowsort
SELECT 30 - col2 FROM tab1
----
-29
-38
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT - CAST( NULL AS SIGNED ) / + 66 * + col2 * 71 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT - CAST ( NULL AS INTEGER ) / + 66 * + col2 * 71 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT + COUNT( - - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT + COUNT ( - - col2 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + + 24 * - - 88 AS col2, col1 + + col2 FROM tab2 AS cor0
----
2112
117
2112
125
2112
74

query I rowsort
SELECT + 40 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT ALL 4 DIV + 35 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL 4 / + 35 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT ALL 86 * - 52 * - ( col2 ) + 10 FROM tab0 AS cor0
----
210194
442738
44730

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT ALL col1 DIV + col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL col1 / + col2 FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( - ( col2 ) / - - col1, col2, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9637
SELECT DISTINCT - - col1 DIV + - 31, + col0 FROM tab1 AS cor0
----
-1
91
0
51
0
85

skipif mysql # not compatible
query II rowsort label-9637
SELECT DISTINCT - - col1 / + - 31, + col0 FROM tab1 AS cor0
----
-1
91
0
51
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + MAX( ALL + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9638
SELECT + MAX ( ALL + col1 ) AS col2 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, 20 col1 FROM tab2
----
23
20
40
20
58
20

query II rowsort
SELECT ALL col2, 69 AS col2 FROM tab1
----
59
69
68
69
96
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 23 * - col2 + col2 + + 53 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT + COUNT( - CAST( - ( + + 97 ) AS SIGNED ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9642
SELECT + COUNT ( - CAST ( - ( + + 97 ) AS INTEGER ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT + + col2 + + - col2 FROM tab2 WHERE NOT NULL = - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9643
SELECT + + col2 + + - col2 FROM tab2 WHERE NOT NULL = - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 71, col2 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - ( + col2 ) col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9646
SELECT - - col2, CAST( - - col2 AS SIGNED ) DIV - col0 * col2 - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
query II rowsort label-9646
SELECT - - col2, CAST ( - - col2 AS INTEGER ) / - col0 * col2 - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9648
SELECT - col2 AS col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-9648
SELECT - col2 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT DISTINCT + COUNT( ALL - col2 ) + - 98 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + COUNT ( ALL - col2 ) + - 98 FROM tab1
----
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 >= + 33 + - col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ALL + - MAX( ALL 11 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL + - MAX ( ALL 11 ) FROM tab1 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + col1 - - ( - col2 ) FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT col0, + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + + ( - MAX( ALL + col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + + ( - MAX ( ALL + col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT DISTINCT col2, + 82 FROM tab1
----
59
82
68
82
96
82

query I rowsort
SELECT DISTINCT - ( col2 ) + + + 48 * - 22 FROM tab0
----
-1066
-1103
-1155

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT + ( + col1 ) DIV col0 DIV + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT + ( + col1 ) / col0 / + + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT DISTINCT + MAX( DISTINCT - + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT + - COUNT( ALL + 9 ) FROM tab1 AS cor0 WHERE NOT + 5 + - col1 >= col1 + - col2
----
-1

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + - COUNT ( ALL + 9 ) FROM tab1 AS cor0 WHERE NOT + 5 + - col1 >= col1 + - col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * 49 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * 49 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - - 33 + COUNT( * ) FROM tab0 cor0
----
36

skipif mysql # not compatible
query I rowsort label-9662
SELECT - - 33 + COUNT ( * ) FROM tab0 cor0
----
36

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9664
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-9664
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) * + col2
----

query I rowsort
SELECT ALL - - col1 * + col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
119669
336733
379496

query I rowsort
SELECT + col2 * 68 AS col0 FROM tab0 cor0
----
3196
6732
680

query I rowsort
SELECT DISTINCT - - 53 * - 93 FROM tab1 AS cor0
----
-4929

onlyif mysql # aggregate syntax: 
query II rowsort label-9668
SELECT ALL COUNT( + col0 ) AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9668
SELECT ALL COUNT ( + col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + col1 * 94 FROM tab1 cor0
----
1316
4418
470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT + ( - CAST( - + ( - col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9670
SELECT + ( - CAST ( - + ( - col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT + COUNT( * ) * - 5 * - + COUNT( * ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9671
SELECT + COUNT ( * ) * - 5 * - + COUNT ( * ) FROM tab1 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9672
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * 92 + ( + + 42 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9672
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * 92 + ( + + 42 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE + - col0 * - - 91 * col2 + + + 15 + + + col1 NOT BETWEEN NULL AND - + col2 + - col0 * - 35
----

query I rowsort
SELECT DISTINCT + 43 * 81 AS col2 FROM tab0
----
3483

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9675
SELECT * FROM tab0 WHERE NOT + CAST( + col0 AS DECIMAL ) + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9675
SELECT * FROM tab0 WHERE NOT + CAST ( + col0 AS REAL ) + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col1 AS col0, col2 AS col2 FROM tab1 WHERE NOT - col0 + - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + 14 * MAX( DISTINCT - col0 ) FROM tab2
----
-644

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 14 * MAX ( DISTINCT - col0 ) FROM tab2
----
-644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 - + + 3 col0 FROM tab1
----
141
144
156

query I rowsort
SELECT + - col1 + - + col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT 23 + + - col0 FROM tab0 AS cor0
----
-64
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + SUM( + 91 ) + + 43 FROM tab0 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-9681
SELECT + SUM ( + 91 ) + + 43 FROM tab0 AS cor0
----
316

query I rowsort
SELECT DISTINCT 67 * - col1 + - col0 AS col0 FROM tab1
----
-3240
-420
-989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT + col2 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + col2 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46 - + - col1 + - col0 AS col2, - 70 col2 FROM tab2 cor0
----
38
-70
51
-70
59
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT ALL - col2 + + col0 + + 7 DIV 79 + - 55 + + ( - - col1 ) FROM tab2 AS cor0
----
19
29
46

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - col2 + + col0 + + 7 / 79 + - 55 + + ( - - col1 ) FROM tab2 AS cor0
----
19
29
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 89 * + + 16 + + 53 >= col0
----

query III rowsort
SELECT * FROM tab2 WHERE 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + COUNT( * ) + - ( + 26 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-9688
SELECT + COUNT ( * ) + - ( + 26 ) FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9691
SELECT COUNT( * ) DIV + 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9691
SELECT COUNT ( * ) / + 70 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9692
SELECT col1 DIV + 92 AS col1, col2 * + - CAST( - 13 AS SIGNED ) + + col0 AS col1 FROM tab0
----
0
1384
0
217
0
626

skipif mysql # not compatible
query II rowsort label-9692
SELECT col1 / + 92 AS col1, col2 * + - CAST ( - 13 AS INTEGER ) + + col0 AS col1 FROM tab0
----
0
1384
0
217
0
626

query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 AS col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL + MIN( + - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + MIN ( + - col0 ) AS col1 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col0 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 62 - 70 col0 FROM tab1 AS cor0
----
-132

query I rowsort
SELECT DISTINCT - col2 + + + 14 * + col2 FROM tab1 AS cor0
----
1248
767
884

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT ALL - COUNT( * ), 7 AS col0 FROM tab2
----
-3
7

skipif mysql # not compatible
query II rowsort label-9699
SELECT ALL - COUNT ( * ), 7 AS col0 FROM tab2
----
-3
7

query I rowsort
SELECT ALL col0 * + 26 AS col2 FROM tab0
----
2262
2522
390

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9701
SELECT DISTINCT + - 55 DIV - + 61 AS col2, + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 <> 11
----
0
0

skipif mysql # not compatible
query II rowsort label-9701
SELECT DISTINCT + - 55 / - + 61 AS col2, + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 <> 11
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - - ( - SUM( + - col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9702
SELECT - - ( - SUM ( + - col1 ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab0 cor0
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9704
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - + 26 * - - 54 * + col0 * + col2 + + ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9704
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - + 26 * - - 54 * + col0 * + col2 + + ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

query II rowsort
SELECT 60 AS col2, - 48 AS col1 FROM tab0
----
60
-48
60
-48
60
-48

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE - + 25 > - + 44
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT DISTINCT - 89 * + + MIN( - col1 ) FROM tab1
----
4183

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - 89 * + + MIN ( - col1 ) FROM tab1
----
4183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9708
SELECT + col0 DIV + - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9708
SELECT + col0 / + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT col1 * 39 FROM tab0
----
3159
39
819

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT MAX( ALL + 33 ) + + 44 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT MAX ( ALL + 33 ) + + 44 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9711
SELECT CAST( NULL AS DECIMAL ) + - + CAST( NULL AS SIGNED ) + - 71 * - col1 FROM tab0 WHERE NOT col1 * + col2 < col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT CAST ( NULL AS REAL ) + - + CAST ( NULL AS INTEGER ) + - 71 * - col1 FROM tab0 WHERE NOT col1 * + col2 < col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col1 FROM tab2 WHERE ( NOT + 17 * + col2 * + 89 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9713
SELECT 78 AS col0, + ( + col2 ) + + col0 DIV 59 FROM tab1
----
78
60
78
69
78
96

skipif mysql # not compatible
query II rowsort label-9713
SELECT 78 AS col0, + ( + col2 ) + + col0 / 59 FROM tab1
----
78
60
78
69
78
96

query I rowsort
SELECT DISTINCT - col2 + - + 20 AS col2 FROM tab2
----
-43
-60
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT + MAX( ALL 41 ) col0 FROM tab1
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9715
SELECT DISTINCT + MAX ( ALL 41 ) col0 FROM tab1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT ALL - col2 + 57 + col1 DIV - col1 + - + col1 AS col1 FROM tab1 AS cor0
----
-54
-59
-8

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - col2 + 57 + col1 / - col1 + - + col1 AS col1 FROM tab1 AS cor0
----
-54
-59
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT - 14 * - ( - MAX( ALL - ( - col1 ) ) ) AS col2, + 21 + - ( - SUM( ALL - col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9717
SELECT - 14 * - ( - MAX ( ALL - ( - col1 ) ) ) AS col2, + 21 + - ( - SUM ( ALL - col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + + col1 - + - ( + - col2 ) FROM tab0 AS cor0
----
-195
-76
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT ALL - col1 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - col1 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 + - 65 FROM tab2 cor0 WHERE + col2 + - - 11 > + col0
----

query I rowsort
SELECT 59 + + - col2 AS col0 FROM tab0
----
-40
12
49

query II rowsort
SELECT ALL + col1 * - col0 AS col1, 3 FROM tab2
----
-2346
3
-4928
3
-5025
3

query I rowsort
SELECT DISTINCT + col1 * 42 FROM tab1
----
1974
210
588

query I rowsort
SELECT + + 77 * - - 20 * - col0 * 7 FROM tab0 AS cor0
----
-1045660
-161700
-937860

query II rowsort
SELECT DISTINCT + col2 * 10 AS col2, - col2 AS col2 FROM tab2 AS cor0
----
230
-23
400
-40
580
-58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - - col0 + + - col2 * - - col0 AS col2 FROM tab0
----
-609
-762
-9505

query III rowsort
SELECT * FROM tab2 WHERE + col0 / + col0 NOT IN ( + - col2, 57 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 53 - + - col1 FROM tab1
----
100
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 8 col1 FROM tab1
----
104
67
76

query I rowsort
SELECT ALL col2 + + col1 * + col2 FROM tab1
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - - 17 AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - - 17 AS col2 FROM tab0
----
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + - MIN( - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9735
SELECT + - MIN ( - col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT - col1, + col0 + + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-14
37
-47
44
-5
80

query I rowsort
SELECT + 63 * - 94 FROM tab2
----
-5922
-5922
-5922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col1 FROM tab2
----
2
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9739
SELECT ALL 38 * col1, col1 DIV col0 + + col2 * - 33 AS col1 FROM tab2 cor0
----
1938
-758
2546
-1914
2926
-1319

skipif mysql # not compatible
query II rowsort label-9739
SELECT ALL 38 * col1, col1 / col0 + + col2 * - 33 AS col1 FROM tab2 cor0
----
1938
-758
2546
-1914
2926
-1319

query I rowsort
SELECT 5 * + 40 FROM tab0 AS cor0
----
200
200
200

query I rowsort
SELECT + 16 * 57 AS col1 FROM tab2 AS cor0
----
912
912
912

query II rowsort
SELECT + col0 * + 23 AS col0, 21 AS col2 FROM tab0 AS cor0
----
2001
21
2231
21
345
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT - - 69 DIV 26 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9743
SELECT - - 69 / 26 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT 45 * + + COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-9744
SELECT 45 * + + COUNT ( * ) FROM tab1
----
135

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN col2 * - 9 - + col1 + - - col2 AND - - col2 / - col2 * - + col2 + - + 7 + - col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT 3 * + + col2 FROM tab0
----
141
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL - 23 * - COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL - 23 * - COUNT ( * ) FROM tab2
----
69

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / - col0 - + + ( + - ( + col1 ) ) NOT BETWEEN + + 50 AND + col1 / - - col1 - col0
----

query II rowsort
SELECT ALL - col1 AS col0, col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT col0 + - + 7 * + - col0 FROM tab1
----
408
680
728

query I rowsort
SELECT DISTINCT col1 + + ( - 76 ) + - - col2 * - 25 * - 9 FROM tab0
----
10580
2195
22200

query II rowsort
SELECT col0 * col2, col2 + 31 FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT ALL col0 + + + col2 FROM tab0
----
196
62
97

query I rowsort
SELECT - + col0 + - col2 * - ( 17 ) AS col2 FROM tab1 AS cor0
----
1065
1581
918

query I rowsort
SELECT ALL + 48 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9756
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9756
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 49 * col2 AS col0 FROM tab1
----
2891
3332
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - SUM( - 30 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9758
SELECT - SUM ( - 30 ) FROM tab2
----
90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) <> - 37 + + - col1 + col1
----

query I rowsort
SELECT DISTINCT 2 + ( col2 ) AS col1 FROM tab1
----
61
70
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT DISTINCT + col2 + CAST( - - col0 AS SIGNED ) + - - ( - col1 ) FROM tab0 AS cor0
----
-19
195
76

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + col2 + CAST ( - - col0 AS INTEGER ) + - - ( - col1 ) FROM tab0 AS cor0
----
-19
195
76

query I rowsort
SELECT - col2 - - 61 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT - 4 * - 44 - + - 80 * + 96 * - MAX( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-621904

skipif mysql # not compatible
query I rowsort label-9763
SELECT - 4 * - 44 - + - 80 * + 96 * - MAX ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-621904

query I rowsort
SELECT - - col1 + + 16 * col0 + col2 FROM tab1 AS cor0
----
1424
1571
926

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9765
SELECT DISTINCT + 10 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT + 10 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9766
SELECT ALL MIN( + 11 ), - COUNT( DISTINCT + + CAST( - ( + - col0 ) AS SIGNED ) ) AS col2 FROM tab1
----
11
-3

skipif mysql # not compatible
query II rowsort label-9766
SELECT ALL MIN ( + 11 ), - COUNT ( DISTINCT + + CAST ( - ( + - col0 ) AS INTEGER ) ) AS col2 FROM tab1
----
11
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9767
SELECT ALL 92 DIV - + 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL 92 / - + 97 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT + 41 DIV + 64 * 63 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT + 41 / + 64 * 63 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT + 40 AS col1, 59 FROM tab0 WHERE NOT - col2 <> - col1
----

query II rowsort
SELECT - 7 * + col1 AS col1, col0 FROM tab0
----
-147
87
-567
15
-7
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9771
SELECT DISTINCT SUM( ALL + + col2 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT SUM ( ALL + + col2 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 38 * - 6 FROM tab1
----
228
228
228

onlyif mysql # DIV for integer division: 
query II rowsort label-9773
SELECT 92 DIV col0 AS col0, + 64 * ( 10 ) FROM tab0
----
0
640
1
640
6
640

skipif mysql # not compatible
query II rowsort label-9773
SELECT 92 / col0 AS col0, + 64 * ( 10 ) FROM tab0
----
0
640
1
640
6
640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col2, 28 col0 FROM tab1
----
3481
28
4624
28
9216
28

query II rowsort
SELECT DISTINCT - 48 * - - col0 * + col0, + 34 * - col2 + - - col0 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT DISTINCT + COUNT( * ) * + + CAST( - + CAST( 36 AS SIGNED ) AS SIGNED ) + + - 72 AS col0 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT + COUNT ( * ) * + + CAST ( - + CAST ( 36 AS INTEGER ) AS INTEGER ) + + - 72 AS col0 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL - 92 * + 68 * + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( - CAST( + col1 AS SIGNED ) - 65 + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - 92 * + 68 * + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( - CAST ( + col1 AS INTEGER ) - 65 + col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT SUM( ALL col0 ) + - ( - - 46 ) * - 55 FROM tab0 AS cor0
----
2729

skipif mysql # not compatible
query I rowsort label-9779
SELECT SUM ( ALL col0 ) + - ( - - 46 ) * - 55 FROM tab0 AS cor0
----
2729

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9780
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + 85 AS SIGNED ) / - 73 * - col0 + 10 > + - col1
----

skipif mysql # not compatible
query III rowsort label-9780
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + 85 AS INTEGER ) / - 73 * - col0 + 10 > + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT DISTINCT CAST( - 69 AS SIGNED ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT CAST ( - 69 AS INTEGER ) FROM tab2 AS cor0
----
-69

query II rowsort
SELECT ALL + 62 * - 18, + col2 * + col1 AS col2 FROM tab2
----
-1116
1173
-1116
3080
-1116
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT MIN( DISTINCT - col1 ) * - 13 AS col1 FROM tab1
----
611

skipif mysql # not compatible
query I rowsort label-9783
SELECT MIN ( DISTINCT - col1 ) * - 13 AS col1 FROM tab1
----
611

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT ALL - 11 + + ( + col1 ) + col2 DIV 98 * + 63 * + col1 FROM tab2
----
40
56
66

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - 11 + + ( + col1 ) + col2 / 98 * + 63 * + col1 FROM tab2
----
40
56
66

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 4 + + - 40 + + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + - col2 + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9787
SELECT ALL col1 + + - CAST( CAST( col0 AS SIGNED ) AS DECIMAL ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL col1 + + - CAST ( CAST ( col0 AS INTEGER ) AS REAL ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT + 83 * - + SUM( ALL col1 ) AS col1 FROM tab2
----
-16185

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT + 83 * - + SUM ( ALL col1 ) AS col1 FROM tab2
----
-16185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT + CAST( NULL AS SIGNED ) + - col1 + 74 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT + CAST ( NULL AS INTEGER ) + - col1 + 74 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 AS col1, - col0 AS col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9792
SELECT ALL * FROM tab2 WHERE NOT CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9792
SELECT ALL * FROM tab2 WHERE NOT CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( + + 60 ) col2 FROM tab1
----
111
145
151

query I rowsort
SELECT DISTINCT 79 + - + col1 AS col2 FROM tab1 AS cor0
----
32
65
74

query I rowsort
SELECT - - col2 - 50 AS col2 FROM tab2 AS cor0
----
-10
-27
8

query I rowsort
SELECT ALL + 23 + 33 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT COUNT( * ) - - + COUNT( * ) + + + COUNT( * ) * + + 83 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9797
SELECT COUNT ( * ) - - + COUNT ( * ) + + + COUNT ( * ) * + + 83 FROM tab1 AS cor0
----
255

query II rowsort
SELECT + ( ( + col2 ) ) - - + 70 * + 40 AS col0, col2 FROM tab2 AS cor0
----
2823
23
2840
40
2858
58

query I rowsort
SELECT + 69 * - - col0 AS col0 FROM tab1 AS cor0
----
3519
5865
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT col0 DIV - + col1 + + - 78 FROM tab1 AS cor0 WHERE NOT col1 + col0 < + col2
----
-79
-95

skipif mysql # not compatible
query I rowsort label-9800
SELECT col0 / - + col1 + + - 78 FROM tab1 AS cor0 WHERE NOT col1 + col0 < + col2
----
-79
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL MAX( col0 ) * 4 FROM tab1
----
364

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL MAX ( col0 ) * 4 FROM tab1
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + SUM( - - 81 ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9802
SELECT + SUM ( - - 81 ) FROM tab2
----
243

query I rowsort
SELECT ALL ( 42 ) AS col0 FROM tab2
----
42
42
42

query II rowsort
SELECT ALL - 68 * - col2 AS col1, - col0 FROM tab1 cor0
----
4012
-85
4624
-91
6528
-51

query II rowsort
SELECT - 34 * + + col2 AS col1, 27 FROM tab2 AS cor0
----
-1360
27
-1972
27
-782
27

query I rowsort
SELECT DISTINCT 14 * - + col1 * + - col0 AS col0 FROM tab0 AS cor0
----
1358
17010
25578

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col1 + + col0 < + col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + 15 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + 22 - 89 * col2 FROM tab2 WHERE ( NULL ) = + 62
----

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT + 55 + + MAX( DISTINCT + col0 ) AS col2 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + 55 + + MAX ( DISTINCT + col0 ) AS col2 FROM tab1
----
146

query I rowsort
SELECT ALL + 88 + - col2 AS col2 FROM tab0 AS cor0
----
-11
41
78

query I rowsort
SELECT ALL + ( - 17 ) FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + ( + ( - 74 ) ) FROM tab1 AS cor0
----
-74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT COUNT( * ) DIV - + ( COUNT( * ) ) + - - 64 * ( 9 ) FROM tab2 AS cor0
----
575

skipif mysql # not compatible
query I rowsort label-9816
SELECT COUNT ( * ) / - + ( COUNT ( * ) ) + - - 64 * ( 9 ) FROM tab2 AS cor0
----
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT - 22 + + CAST( - + col2 AS SIGNED ) AS col0 FROM tab1
----
-118
-81
-90

skipif mysql # not compatible
query I rowsort label-9818
SELECT - 22 + + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1
----
-118
-81
-90

query III rowsort
SELECT * FROM tab1 WHERE ( col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <= + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT - COUNT( * ) + + 59 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-9821
SELECT - COUNT ( * ) + + 59 FROM tab0
----
56

query I rowsort
SELECT + 60 + + col1 FROM tab2
----
111
127
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL - + col2 - col0 - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - + col2 - col0 - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE col2 + + col0 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE col2 + + col0 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col0 IN ( - 63 * - 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT - col0 DIV 58 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9826
SELECT - col0 / 58 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9827
SELECT CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT CAST ( NULL AS REAL ) / + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 39 + - col2 FROM tab2
----
-1
-19
16

query I rowsort
SELECT 92 * + col0 FROM tab2
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ( + 50 ) + COUNT( * ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-9830
SELECT ( + 50 ) + COUNT ( * ) FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT 18 * COUNT( col2 ) + - COUNT( * ) * MIN( ( 65 ) * 92 ) col0 FROM tab0
----
-17886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9831
SELECT 18 * COUNT ( col2 ) + - COUNT ( * ) * MIN ( ( 65 ) * 92 ) col0 FROM tab0
----
-17886

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE ( col2 ) NOT BETWEEN - 39 + col1 AND + col2
----

query I rowsort
SELECT ALL ( 59 ) AS col2 FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + ( 92 ) * COUNT( * ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + ( 92 ) * COUNT ( * ) FROM tab1
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT - SUM( DISTINCT + col2 ) + 97 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT - SUM ( DISTINCT + col2 ) + 97 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - 5 FROM tab2 WHERE NOT + col1 + col2 < col2
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9837
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT + 65 - col2 * CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9839
SELECT + 65 - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 5 - ( col1 ) FROM tab1 WHERE NOT 18 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9841
SELECT col1 * - 36 + ( + 40 ) DIV - col0 AS col1 FROM tab1 WHERE + ( CAST( col2 AS SIGNED ) ) IS NOT NULL
----
-1692
-180
-504

skipif mysql # not compatible
query I rowsort label-9841
SELECT col1 * - 36 + ( + 40 ) / - col0 AS col1 FROM tab1 WHERE + ( CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
-1692
-180
-504

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * + 18 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( 59 ) NOT BETWEEN + ( 17 ) AND col2 / - col0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT + COUNT( * ) + - SUM( 26 ) * 65 FROM tab2
----
-5067

skipif mysql # not compatible
query I rowsort label-9844
SELECT + COUNT ( * ) + - SUM ( 26 ) * 65 FROM tab2
----
-5067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT CAST( NULL AS SIGNED ) * ( col2 ) + col0 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT CAST ( NULL AS INTEGER ) * ( col2 ) + col0 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 85 + + col2 * - col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1259
-210
-3111

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 + 40 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9848
SELECT + COUNT( * ) DIV + ( + COUNT( * ) * + COUNT( * ) ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9848
SELECT + COUNT ( * ) / + ( + COUNT ( * ) * + COUNT ( * ) ) col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 19 * col2 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN ( 49 ) AND ( col2 + col0 )
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9851
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) <> + 78 * - 40
----

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) <> + 78 * - 40
----

query I rowsort
SELECT DISTINCT 99 * - 73 AS col2 FROM tab2 AS cor0
----
-7227

query I rowsort
SELECT DISTINCT - col1 * + 42 FROM tab2 AS cor0
----
-2142
-2814
-3234

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 > 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT CAST( NULL AS SIGNED ) * MIN( 79 * - col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT CAST ( NULL AS INTEGER ) * MIN ( 79 * - col2 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - MIN( 86 ) FROM tab0 AS cor0 WHERE NOT 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT - MIN ( 86 ) FROM tab0 AS cor0 WHERE NOT 82 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT COUNT( * ) * + COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9857
SELECT COUNT ( * ) * + COUNT ( * ) col1 FROM tab1
----
9

query I rowsort
SELECT col2 + + 60 FROM tab1
----
119
128
156

query I rowsort
SELECT ALL ( - col0 ) FROM tab0 WHERE ( + col2 ) BETWEEN col2 - col0 AND col1 * + 45
----
-15
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 70 col2 FROM tab2 AS cor0
----
-24
-6
5

query I rowsort
SELECT col2 + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * - 13 NOT IN ( + col2 * col0 )
----

query I rowsort
SELECT ALL + - 23 + + col0 FROM tab1 AS cor0
----
28
62
68

query I rowsort
SELECT col1 * col2 FROM tab0 AS cor0 WHERE ( col1 * col1 ) IS NOT NULL
----
210
3807
99

query I rowsort
SELECT ALL + + 77 + - 89 * + col0 FROM tab0 AS cor0
----
-1258
-7666
-8556

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 82 ) IS NULL
----

query I rowsort
SELECT + - 88 * - col1 FROM tab0 AS cor0
----
1848
7128
88

query I rowsort
SELECT ( + col2 ) * + 7 AS col1 FROM tab2
----
161
280
406

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + COUNT( DISTINCT 66 ) * + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9869
SELECT + COUNT ( DISTINCT 66 ) * + COUNT ( * ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> + ( - 26 ) OR NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT col2 * - 37 AS col0 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT + col1 * - col1 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT + col1 * - col1 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 7 AS col2 FROM tab1 WHERE 9 IS NOT NULL
----
7
7
7

query I rowsort
SELECT ALL ( + 30 ) AS col2 FROM tab2
----
30
30
30

query III rowsort
SELECT * FROM tab2 WHERE - col1 > ( 48 )
----

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ( + MIN( col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9878
SELECT ( + MIN ( col2 ) ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + 35 * ( - ( 48 ) * col2 ) FROM tab1
----
-104135
-120428
-166176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 + col0 + 19 col1 FROM tab0
----
106
24
96

query I rowsort
SELECT col0 + - - col1 + col1 AS col0 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT DISTINCT + ( + 2 ) - ( + 20 + + col0 DIV col0 ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT + ( + 2 ) - ( + 20 + + col0 / col0 ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT DISTINCT - col1 - + - col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL col0 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * 24 IS NOT NULL
----

query I rowsort
SELECT - + 7 * + col1 AS col1 FROM tab2 cor0
----
-357
-469
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - SUM( ALL 72 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 * - 34 ) IN ( col0 )
----
-216

skipif mysql # not compatible
query I rowsort label-9886
SELECT - SUM ( ALL 72 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 * - 34 ) IN ( col0 )
----
-216

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT - col1 * + col2 * col1 DIV + col1 + - ( + ( 47 ) + 95 ) FROM tab2 AS cor0
----
-1315
-3222
-4028

skipif mysql # not compatible
query I rowsort label-9888
SELECT - col1 * + col2 * col1 / + col1 + - ( + ( 47 ) + 95 ) FROM tab2 AS cor0
----
-1315
-3222
-4028

onlyif mysql # aggregate syntax: 
query II rowsort label-9889
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9889
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT COUNT( DISTINCT - + 24 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9890
SELECT COUNT ( DISTINCT - + 24 ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT + - col2 AS col1, col1 * + 69 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-10
1428
-47
5508
-99
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT + - CAST( + + 5 AS SIGNED ) FROM tab2 cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9892
SELECT + - CAST ( + + 5 AS INTEGER ) FROM tab2 cor0
----
-5
-5
-5

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL >= + col0 * - 21 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT CAST( + + 10 AS SIGNED ) AS col2 FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-9894
SELECT CAST ( + + 10 AS INTEGER ) AS col2 FROM tab0
----
10
10
10

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col1 ) BETWEEN col2 AND - col1 + - col0 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( col2 * - - col2 * col0 + + col1 * 84 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9897
SELECT * FROM tab2 WHERE NOT ( - col1 ) * col2 BETWEEN ( NULL ) AND col2 * - CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-9897
SELECT * FROM tab2 WHERE NOT ( - col1 ) * col2 BETWEEN ( NULL ) AND col2 * - CAST ( NULL AS INTEGER ) + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT COUNT( * ) FROM tab0 WHERE NOT ( + + 24 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9898
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( + + 24 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL ( MAX( ( col1 ) ) ) * - 37 FROM tab2
----
-2849

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL ( MAX ( ( col1 ) ) ) * - 37 FROM tab2
----
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT ( - COUNT( DISTINCT col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT ( - COUNT ( DISTINCT col2 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT MIN( ALL + - 31 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT MIN ( ALL + - 31 ) FROM tab1 AS cor0
----
-31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL + + MAX( + col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9903
SELECT ALL + + MAX ( + col1 ) col1 FROM tab0 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 / - 52 <= NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + col1 FROM tab0 WHERE 19 IS NULL
----

query I rowsort
SELECT ALL 81 + - 87 AS col0 FROM tab0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT - 17 * col0 DIV + + 79 - + 22 * + + 1 FROM tab2 cor0
----
-31
-35
-38

skipif mysql # not compatible
query I rowsort label-9908
SELECT - 17 * col0 / + + 79 - + 22 * + + 1 FROM tab2 cor0
----
-31
-35
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - + COUNT( * ) + - 88 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9909
SELECT - + COUNT ( * ) + - 88 FROM tab2 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9910
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL <> - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9910
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL <> - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9911
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) * col2 IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-9911
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) * col2 IN ( + col2 )
----

query I rowsort
SELECT 49 + + 9 AS col0 FROM tab2
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT ALL ( col2 ) FROM tab0 WHERE NOT + CAST( + ( - 7 ) AS SIGNED ) + + col1 <> + col2 - - col2 * 15
----

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL ( col2 ) FROM tab0 WHERE NOT + CAST ( + ( - 7 ) AS INTEGER ) + + col1 <> + col2 - - col2 * 15
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - + col2, 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT 57 + + - MIN( ALL 82 ) AS col2 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-9915
SELECT 57 + + - MIN ( ALL 82 ) AS col2 FROM tab0
----
-25

query I rowsort
SELECT 81 AS col0 FROM tab1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - 49 + - col2 + + col2 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT DISTINCT col2 + + - 45 AS col1 FROM tab1
----
14
23
51

query II rowsort
SELECT + - col0 AS col2, + 62 FROM tab2 AS cor0
----
-46
62
-64
62
-75
62

onlyif mysql # DIV for integer division: 
query II rowsort label-9920
SELECT ALL + - col0 - - - ( + - col2 ) DIV - 52 AS col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-76
67

skipif mysql # not compatible
query II rowsort label-9920
SELECT ALL + - col0 - - - ( + - col2 ) / - 52 AS col0, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-76
67

query I rowsort
SELECT DISTINCT + 0 - col1 + 13 FROM tab2 AS cor0
----
-38
-54
-64

query I rowsort
SELECT DISTINCT - col2 * - + 22 * - 37 * col2 + - 23 FROM tab0 AS cor0
----
-1798149
-7978037
-81423

query I rowsort
SELECT - col2 - + 21 AS col2 FROM tab0
----
-120
-31
-68

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT ( - 11 ) >= 42
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT MIN( ALL - ( col2 ) ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9925
SELECT MIN ( ALL - ( col2 ) ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT + + 6 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - col1, col1 * col1 )
----

query II rowsort
SELECT + col2 * + - col0, col0 * 24 AS col0 FROM tab1
----
-4896
1224
-5015
2040
-6188
2184

query I rowsort
SELECT + + col1 * - 42 AS col2 FROM tab1 AS cor0
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT MIN( ALL - - 38 ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT MIN ( ALL - - 38 ) FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT + CAST( + - col0 AS SIGNED ) * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 * + col2 <> NULL )
----

skipif mysql # not compatible
query I rowsort label-9931
SELECT + CAST ( + - col0 AS INTEGER ) * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 * + col2 <> NULL )
----

query I rowsort
SELECT ALL - + 2 AS col1 FROM tab1 cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 66 / - col0 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9935
SELECT ALL * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) NOT IN ( + ( + col1 ), ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-9935
SELECT ALL * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) NOT IN ( + ( + col1 ), ( - col2 ) )
----

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 - + 82 FROM tab0
----
-1
-181
-21
-92
-81
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL SUM( 12 ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL SUM ( 12 ) AS col2 FROM tab1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9938
SELECT DISTINCT * FROM tab2 WHERE 63 IN ( - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9938
SELECT DISTINCT * FROM tab2 WHERE 63 IN ( - ( CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT + 10 AS col0, 94 FROM tab2
----
10
94
10
94
10
94

query II rowsort
SELECT col1 AS col1, ( - ( - col0 ) ) * col1 + + - col2 + + + 67 * + col0 * 29 * col0 AS col0 FROM tab0
----
1
18281685
21
14708384
81
438343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT DISTINCT + + 50 * + COUNT( * ) + - 17 DIV COUNT( * ) FROM tab0 cor0
----
145

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT + + 50 * + COUNT ( * ) + - 17 / COUNT ( * ) FROM tab0 cor0
----
145

query II rowsort
SELECT ALL - col0, col1 + col1 AS col0 FROM tab2 AS cor0
----
-46
102
-64
154
-75
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT + 48 * + COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-9944
SELECT + 48 * + COUNT ( * ) FROM tab0 AS cor0
----
144

query II rowsort
SELECT ALL col2 * 31, col2 AS col1 FROM tab1
----
1829
59
2108
68
2976
96

query I rowsort
SELECT - - 5 * - 93 - + - 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490ea7a06ebef5462a659301f0f30476

query I rowsort
SELECT + 84 * + col0 + col1 AS col2 FROM tab1
----
4298
7145
7691

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * + col1 * 82 + - - 24 NOT IN ( col0 + - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 < - 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT + COUNT( * ) + ( + + 26 ) AS col0 FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + COUNT ( * ) + ( + + 26 ) AS col0 FROM tab2 cor0
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + - col1 > NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT DISTINCT + COUNT( * ) * 57 * - + COUNT( * ) FROM tab1 AS cor0
----
-513

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT + COUNT ( * ) * 57 * - + COUNT ( * ) FROM tab1 AS cor0
----
-513

query I rowsort
SELECT 16 * col2 * 49 AS col1 FROM tab1 cor0
----
46256
53312
75264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9954
SELECT ALL - - col1 - - col0, col1 + CAST( - 48 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
138
-92
65
-85
90
-128

skipif mysql # not compatible
query II rowsort label-9954
SELECT ALL - - col1 - - col0, col1 + CAST ( - 48 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
138
-92
65
-85
90
-128

query I rowsort
SELECT 47 * - 22 * - 41 AS col2 FROM tab2
----
42394
42394
42394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT ALL CAST( - 44 AS SIGNED ) * - + col1 AS col2 FROM tab2
----
2244
2948
3388

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL CAST ( - 44 AS INTEGER ) * - + col1 AS col2 FROM tab2
----
2244
2948
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL - COUNT( * ) * + - COUNT( + col0 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - COUNT ( * ) * + - COUNT ( + col0 ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT + CAST( - ( - + col1 ) AS SIGNED ) FROM tab0 WHERE NULL NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-9958
SELECT + CAST ( - ( - + col1 ) AS INTEGER ) FROM tab0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT 88 - + col2 DIV - col0 * - 29 * + col2 + col2 + - - col1 + + 56 FROM tab2
----
218
261
269

skipif mysql # not compatible
query I rowsort label-9959
SELECT 88 - + col2 / - col0 * - 29 * + col2 + col2 + - - col1 + + 56 FROM tab2
----
218
261
269

query I rowsort
SELECT 6 - + + 10 AS col0 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT + 40 * - 21 - - col2 AS col1 FROM tab2
----
-782
-800
-817

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT 64 + - COUNT( * ) AS col0 FROM tab0 WHERE 13 + col1 + - - col2 IN ( - col1 * + col0 )
----
64

skipif mysql # not compatible
query I rowsort label-9962
SELECT 64 + - COUNT ( * ) AS col0 FROM tab0 WHERE 13 + col1 + - - col2 IN ( - col1 * + col0 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT ALL col1 FROM tab0 WHERE NOT - 98 * + ( - col2 ) - - 11 * 24 * - CAST( NULL AS SIGNED ) + - col2 * + + col2 / - ( + col1 ) + col0 IS NOT NULL AND NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL col1 FROM tab0 WHERE NOT - 98 * + ( - col2 ) - - 11 * 24 * - CAST ( NULL AS INTEGER ) + - col2 * + + col2 / - ( + col1 ) + col0 IS NOT NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9964
SELECT - col2 + - ( + 27 ) - + - col0 DIV - + col0, col0 AS col1 FROM tab1 AS cor0
----
-124
51
-87
85
-96
91

skipif mysql # not compatible
query II rowsort label-9964
SELECT - col2 + - ( + 27 ) - + - col0 / - + col0, col0 AS col1 FROM tab1 AS cor0
----
-124
51
-87
85
-96
91

query I rowsort
SELECT DISTINCT + + ( + + 94 ) FROM tab1 AS cor0
----
94

query I rowsort
SELECT - 19 AS col0 FROM tab1 AS cor0 WHERE NOT col1 < - 70
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT - 95, + 36 + - COUNT( * ) AS col0 FROM tab0
----
-95
33

skipif mysql # not compatible
query II rowsort label-9968
SELECT - 95, + 36 + - COUNT ( * ) AS col0 FROM tab0
----
-95
33

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( + col1 * 99 )
----

query I rowsort
SELECT DISTINCT 9 * + + 42 AS col2 FROM tab2 AS cor0
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT - COUNT( * ) AS col2, 24 AS col1 FROM tab1 AS cor0
----
-3
24

skipif mysql # not compatible
query II rowsort label-9971
SELECT - COUNT ( * ) AS col2, 24 AS col1 FROM tab1 AS cor0
----
-3
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - + SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - + SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL >= + 70 + - - 61 * - - 83 * + ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 96 AS col2 FROM tab0 AS cor0
----
15
96
87
96
97
96

query II rowsort
SELECT + - col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT DISTINCT - COUNT( * ) DIV - 85 + - COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9976
SELECT DISTINCT - COUNT ( * ) / - 85 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + 32 ) BETWEEN NULL AND col2 / ( + 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * + 81 + - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * + 81 + - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT + COUNT( * ) + - 97 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + COUNT ( * ) + - 97 FROM tab2
----
-94

query I rowsort
SELECT - ( 70 ) + + - 15 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL - COUNT( * ) * - + 38 FROM tab0 WHERE NOT - col2 IS NULL
----
114

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - COUNT ( * ) * - + 38 FROM tab0 WHERE NOT - col2 IS NULL
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 93 ) col2 FROM tab1
----
-93
-93
-93

query I rowsort
SELECT - col1 FROM tab0 WHERE + col1 IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + - col2 ) - - col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT 79 - - col1 * - col2 + + + 1 AS col0 FROM tab1 AS cor0
----
-1264
-215
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT - COUNT( * ) + - 4 AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9987
SELECT - COUNT ( * ) + - 4 AS col2 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT - 62 + - - col2 * + - col1 AS col0 FROM tab0 cor0 WHERE + 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT MIN( col2 ) + + - 13 AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9989
SELECT MIN ( col2 ) + + - 13 AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= + - 76
----

query I rowsort
SELECT ALL col0 * + 24 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 * col1 AS col2, 96 + - + 25 FROM tab2
----
-1173
71
-3080
71
-3886
71

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col2 AND ( + 2 )
----

query I rowsort
SELECT + ( - col1 ) FROM tab0 WHERE + 58 IS NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT 34 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE - 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT 76 * + COUNT( * ) * + + 43 FROM tab0
----
9804

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT 76 * + COUNT ( * ) * + + 43 FROM tab0
----
9804

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - - col1, ( + col1 ), - col1 ) AND NULL >= ( + col1 )
----

query I rowsort
SELECT ALL + + 9 * col0 * - - col1 AS col1 FROM tab1 AS cor0
----
3825
38493
6426

